1#! /bin/sh
| 1#! /bin/sh
|
2# From configure.in Revision: 1.325.2.2 .
| 2# From configure.in Revision: 1.331.2.2 .
|
3# Guess values for system-dependent variables and create Makefiles.
| 3# Guess values for system-dependent variables and create Makefiles.
|
4# Generated by GNU Autoconf 2.53 for Heimdal 0.5.1.
| 4# Generated by GNU Autoconf 2.53 for Heimdal 0.6.
|
5# 6# Report bugs to <heimdal-bugs@pdc.kth.se>. 7# 8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 9# Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12 13# Find the correct PATH separator. Usually this is `:', but 14# DJGPP uses `;' like DOS. 15if test "X${PATH_SEPARATOR+set}" != Xset; then 16 UNAME=${UNAME-`uname 2>/dev/null`} 17 case X$UNAME in 18 *-DOS) lt_cv_sys_path_separator=';' ;; 19 *) lt_cv_sys_path_separator=':' ;; 20 esac 21 PATH_SEPARATOR=$lt_cv_sys_path_separator 22fi 23 24 25# Check that we are running under the correct shell. 26SHELL=${CONFIG_SHELL-/bin/sh} 27 28case X$ECHO in 29X*--fallback-echo) 30 # Remove one level of quotation (which was required for Make). 31 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 32 ;; 33esac 34 35echo=${ECHO-echo} 36if test "X$1" = X--no-reexec; then 37 # Discard the --no-reexec flag, and continue. 38 shift 39elif test "X$1" = X--fallback-echo; then 40 # Avoid inline document here, it may be left over 41 : 42elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 43 # Yippee, $echo works! 44 : 45else 46 # Restart under the correct shell. 47 exec $SHELL "$0" --no-reexec ${1+"$@"} 48fi 49 50if test "X$1" = X--fallback-echo; then 51 # used as fallback echo 52 shift 53 cat <<EOF 54 55EOF 56 exit 0 57fi 58 59# The HP-UX ksh and POSIX shell print the target directory to stdout 60# if CDPATH is set. 61if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 62 63if test -z "$ECHO"; then 64if test "X${echo_test_string+set}" != Xset; then 65# find a string as large as possible, as long as the shell can cope with it 66 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 67 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 68 if (echo_test_string="`eval $cmd`") 2>/dev/null && 69 echo_test_string="`eval $cmd`" && 70 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 71 then 72 break 73 fi 74 done 75fi 76 77if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 78 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 79 test "X$echo_testing_string" = "X$echo_test_string"; then 80 : 81else 82 # The Solaris, AIX, and Digital Unix default echo programs unquote 83 # backslashes. This makes it impossible to quote backslashes using 84 # echo "$something" | sed 's/\\/\\\\/g' 85 # 86 # So, first we look for a working echo in the user's PATH. 87 88 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 89 for dir in $PATH /usr/ucb; do 90 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 91 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 92 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 93 test "X$echo_testing_string" = "X$echo_test_string"; then 94 echo="$dir/echo" 95 break 96 fi 97 done 98 IFS="$save_ifs" 99 100 if test "X$echo" = Xecho; then 101 # We didn't find a better echo, so look for alternatives. 102 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 103 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 104 test "X$echo_testing_string" = "X$echo_test_string"; then 105 # This shell has a builtin print -r that does the trick. 106 echo='print -r' 107 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 108 test "X$CONFIG_SHELL" != X/bin/ksh; then 109 # If we have ksh, try running configure again with it. 110 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 111 export ORIGINAL_CONFIG_SHELL 112 CONFIG_SHELL=/bin/ksh 113 export CONFIG_SHELL 114 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 115 else 116 # Try using printf. 117 echo='printf %s\n' 118 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 119 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 120 test "X$echo_testing_string" = "X$echo_test_string"; then 121 # Cool, printf works 122 : 123 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 124 test "X$echo_testing_string" = 'X\t' && 125 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 126 test "X$echo_testing_string" = "X$echo_test_string"; then 127 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 128 export CONFIG_SHELL 129 SHELL="$CONFIG_SHELL" 130 export SHELL 131 echo="$CONFIG_SHELL $0 --fallback-echo" 132 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 133 test "X$echo_testing_string" = 'X\t' && 134 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 135 test "X$echo_testing_string" = "X$echo_test_string"; then 136 echo="$CONFIG_SHELL $0 --fallback-echo" 137 else 138 # maybe with a smaller string... 139 prev=: 140 141 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 142 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 143 then 144 break 145 fi 146 prev="$cmd" 147 done 148 149 if test "$prev" != 'sed 50q "$0"'; then 150 echo_test_string=`eval $prev` 151 export echo_test_string 152 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 153 else 154 # Oops. We lost completely, so just stick with echo. 155 echo=echo 156 fi 157 fi 158 fi 159 fi 160fi 161fi 162 163# Copy echo and quote the copy suitably for passing to libtool from 164# the Makefile, instead of quoting the original, which is used later. 165ECHO=$echo 166if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 167 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 168fi 169 170 171 172if expr a : '\(a\)' >/dev/null 2>&1; then 173 as_expr=expr 174else 175 as_expr=false 176fi 177 178 179## --------------------- ## 180## M4sh Initialization. ## 181## --------------------- ## 182 183# Be Bourne compatible 184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 185 emulate sh 186 NULLCMD=: 187elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 188 set -o posix 189fi 190 191# NLS nuisances. 192# Support unset when possible. 193if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 194 as_unset=unset 195else 196 as_unset=false 197fi 198 199(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 200 { $as_unset LANG || test "${LANG+set}" != set; } || 201 { LANG=C; export LANG; } 202(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 203 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 204 { LC_ALL=C; export LC_ALL; } 205(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 206 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 207 { LC_TIME=C; export LC_TIME; } 208(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 209 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 210 { LC_CTYPE=C; export LC_CTYPE; } 211(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 212 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 213 { LANGUAGE=C; export LANGUAGE; } 214(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 215 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 216 { LC_COLLATE=C; export LC_COLLATE; } 217(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 218 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 219 { LC_NUMERIC=C; export LC_NUMERIC; } 220(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 221 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 222 { LC_MESSAGES=C; export LC_MESSAGES; } 223 224 225# Name of the executable. 226as_me=`(basename "$0") 2>/dev/null || 227$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 228 X"$0" : 'X\(//\)$' \| \ 229 X"$0" : 'X\(/\)$' \| \ 230 . : '\(.\)' 2>/dev/null || 231echo X/"$0" | 232 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 233 /^X\/\(\/\/\)$/{ s//\1/; q; } 234 /^X\/\(\/\).*/{ s//\1/; q; } 235 s/.*/./; q'` 236 237# PATH needs CR, and LINENO needs CR and PATH. 238# Avoid depending upon Character Ranges. 239as_cr_letters='abcdefghijklmnopqrstuvwxyz' 240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 241as_cr_Letters=$as_cr_letters$as_cr_LETTERS 242as_cr_digits='0123456789' 243as_cr_alnum=$as_cr_Letters$as_cr_digits 244 245# The user is always right. 246if test "${PATH_SEPARATOR+set}" != set; then 247 echo "#! /bin/sh" >conftest.sh 248 echo "exit 0" >>conftest.sh 249 chmod +x conftest.sh 250 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 251 PATH_SEPARATOR=';' 252 else 253 PATH_SEPARATOR=: 254 fi 255 rm -f conftest.sh 256fi 257 258 259 as_lineno_1=$LINENO 260 as_lineno_2=$LINENO 261 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 262 test "x$as_lineno_1" != "x$as_lineno_2" && 263 test "x$as_lineno_3" = "x$as_lineno_2" || { 264 # Find who we are. Look in the path if we contain no path at all 265 # relative or not. 266 case $0 in 267 *[\\/]* ) as_myself=$0 ;; 268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 269for as_dir in $PATH 270do 271 IFS=$as_save_IFS 272 test -z "$as_dir" && as_dir=. 273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 274done 275 276 ;; 277 esac 278 # We did not find ourselves, most probably we were run as `sh COMMAND' 279 # in which case we are not to be found in the path. 280 if test "x$as_myself" = x; then 281 as_myself=$0 282 fi 283 if test ! -f "$as_myself"; then 284 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 285 { (exit 1); exit 1; }; } 286 fi 287 case $CONFIG_SHELL in 288 '') 289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 290for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 291do 292 IFS=$as_save_IFS 293 test -z "$as_dir" && as_dir=. 294 for as_base in sh bash ksh sh5; do 295 case $as_dir in 296 /*) 297 if ("$as_dir/$as_base" -c ' 298 as_lineno_1=$LINENO 299 as_lineno_2=$LINENO 300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 301 test "x$as_lineno_1" != "x$as_lineno_2" && 302 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 303 CONFIG_SHELL=$as_dir/$as_base 304 export CONFIG_SHELL 305 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 306 fi;; 307 esac 308 done 309done 310;; 311 esac 312 313 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 314 # uniformly replaced by the line number. The first 'sed' inserts a 315 # line-number line before each line; the second 'sed' does the real 316 # work. The second script uses 'N' to pair each line-number line 317 # with the numbered line, and appends trailing '-' during 318 # substitution so that $LINENO is not a special case at line end. 319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 320 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 321 sed '=' <$as_myself | 322 sed ' 323 N 324 s,$,-, 325 : loop 326 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 327 t loop 328 s,-$,, 329 s,^['$as_cr_digits']*\n,, 330 ' >$as_me.lineno && 331 chmod +x $as_me.lineno || 332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 333 { (exit 1); exit 1; }; } 334 335 # Don't try to exec as it changes $[0], causing all sort of problems 336 # (the dirname of $[0] is not the place where we might find the 337 # original and so on. Autoconf is especially sensible to this). 338 . ./$as_me.lineno 339 # Exit status is that of the last command. 340 exit 341} 342 343 344case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 345 *c*,-n*) ECHO_N= ECHO_C=' 346' ECHO_T=' ' ;; 347 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 348 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 349esac 350 351if expr a : '\(a\)' >/dev/null 2>&1; then 352 as_expr=expr 353else 354 as_expr=false 355fi 356 357rm -f conf$$ conf$$.exe conf$$.file 358echo >conf$$.file 359if ln -s conf$$.file conf$$ 2>/dev/null; then 360 # We could just check for DJGPP; but this test a) works b) is more generic 361 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 362 if test -f conf$$.exe; then 363 # Don't use ln at all; we don't have any links 364 as_ln_s='cp -p' 365 else 366 as_ln_s='ln -s' 367 fi 368elif ln conf$$.file conf$$ 2>/dev/null; then 369 as_ln_s=ln 370else 371 as_ln_s='cp -p' 372fi 373rm -f conf$$ conf$$.exe conf$$.file 374 375as_executable_p="test -f" 376 377# Sed expression to map a string onto a valid CPP name. 378as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 379 380# Sed expression to map a string onto a valid variable name. 381as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 382 383 384# IFS 385# We need space, tab and new line, in precisely that order. 386as_nl=' 387' 388IFS=" $as_nl" 389 390# CDPATH. 391$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 392 393 394# Name of the host. 395# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 396# so uname gets run too. 397ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 398 399exec 6>&1 400 401# 402# Initializations. 403# 404ac_default_prefix=/usr/local 405cross_compiling=no 406subdirs= 407MFLAGS= 408MAKEFLAGS= 409SHELL=${CONFIG_SHELL-/bin/sh} 410 411# Maximum number of lines to put in a shell here document. 412# This variable seems obsolete. It should probably be removed, and 413# only ac_max_sed_lines should be used. 414: ${ac_max_here_lines=38} 415 416# Identity of this package. 417PACKAGE_NAME='Heimdal' 418PACKAGE_TARNAME='heimdal'
| 5# 6# Report bugs to <heimdal-bugs@pdc.kth.se>. 7# 8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 9# Free Software Foundation, Inc. 10# This configure script is free software; the Free Software Foundation 11# gives unlimited permission to copy, distribute and modify it. 12 13# Find the correct PATH separator. Usually this is `:', but 14# DJGPP uses `;' like DOS. 15if test "X${PATH_SEPARATOR+set}" != Xset; then 16 UNAME=${UNAME-`uname 2>/dev/null`} 17 case X$UNAME in 18 *-DOS) lt_cv_sys_path_separator=';' ;; 19 *) lt_cv_sys_path_separator=':' ;; 20 esac 21 PATH_SEPARATOR=$lt_cv_sys_path_separator 22fi 23 24 25# Check that we are running under the correct shell. 26SHELL=${CONFIG_SHELL-/bin/sh} 27 28case X$ECHO in 29X*--fallback-echo) 30 # Remove one level of quotation (which was required for Make). 31 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 32 ;; 33esac 34 35echo=${ECHO-echo} 36if test "X$1" = X--no-reexec; then 37 # Discard the --no-reexec flag, and continue. 38 shift 39elif test "X$1" = X--fallback-echo; then 40 # Avoid inline document here, it may be left over 41 : 42elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 43 # Yippee, $echo works! 44 : 45else 46 # Restart under the correct shell. 47 exec $SHELL "$0" --no-reexec ${1+"$@"} 48fi 49 50if test "X$1" = X--fallback-echo; then 51 # used as fallback echo 52 shift 53 cat <<EOF 54 55EOF 56 exit 0 57fi 58 59# The HP-UX ksh and POSIX shell print the target directory to stdout 60# if CDPATH is set. 61if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 62 63if test -z "$ECHO"; then 64if test "X${echo_test_string+set}" != Xset; then 65# find a string as large as possible, as long as the shell can cope with it 66 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 67 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 68 if (echo_test_string="`eval $cmd`") 2>/dev/null && 69 echo_test_string="`eval $cmd`" && 70 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 71 then 72 break 73 fi 74 done 75fi 76 77if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 78 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 79 test "X$echo_testing_string" = "X$echo_test_string"; then 80 : 81else 82 # The Solaris, AIX, and Digital Unix default echo programs unquote 83 # backslashes. This makes it impossible to quote backslashes using 84 # echo "$something" | sed 's/\\/\\\\/g' 85 # 86 # So, first we look for a working echo in the user's PATH. 87 88 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 89 for dir in $PATH /usr/ucb; do 90 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 91 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 92 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 93 test "X$echo_testing_string" = "X$echo_test_string"; then 94 echo="$dir/echo" 95 break 96 fi 97 done 98 IFS="$save_ifs" 99 100 if test "X$echo" = Xecho; then 101 # We didn't find a better echo, so look for alternatives. 102 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 103 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 104 test "X$echo_testing_string" = "X$echo_test_string"; then 105 # This shell has a builtin print -r that does the trick. 106 echo='print -r' 107 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 108 test "X$CONFIG_SHELL" != X/bin/ksh; then 109 # If we have ksh, try running configure again with it. 110 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 111 export ORIGINAL_CONFIG_SHELL 112 CONFIG_SHELL=/bin/ksh 113 export CONFIG_SHELL 114 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 115 else 116 # Try using printf. 117 echo='printf %s\n' 118 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 119 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 120 test "X$echo_testing_string" = "X$echo_test_string"; then 121 # Cool, printf works 122 : 123 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 124 test "X$echo_testing_string" = 'X\t' && 125 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 126 test "X$echo_testing_string" = "X$echo_test_string"; then 127 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 128 export CONFIG_SHELL 129 SHELL="$CONFIG_SHELL" 130 export SHELL 131 echo="$CONFIG_SHELL $0 --fallback-echo" 132 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 133 test "X$echo_testing_string" = 'X\t' && 134 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 135 test "X$echo_testing_string" = "X$echo_test_string"; then 136 echo="$CONFIG_SHELL $0 --fallback-echo" 137 else 138 # maybe with a smaller string... 139 prev=: 140 141 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 142 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 143 then 144 break 145 fi 146 prev="$cmd" 147 done 148 149 if test "$prev" != 'sed 50q "$0"'; then 150 echo_test_string=`eval $prev` 151 export echo_test_string 152 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 153 else 154 # Oops. We lost completely, so just stick with echo. 155 echo=echo 156 fi 157 fi 158 fi 159 fi 160fi 161fi 162 163# Copy echo and quote the copy suitably for passing to libtool from 164# the Makefile, instead of quoting the original, which is used later. 165ECHO=$echo 166if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 167 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 168fi 169 170 171 172if expr a : '\(a\)' >/dev/null 2>&1; then 173 as_expr=expr 174else 175 as_expr=false 176fi 177 178 179## --------------------- ## 180## M4sh Initialization. ## 181## --------------------- ## 182 183# Be Bourne compatible 184if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 185 emulate sh 186 NULLCMD=: 187elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 188 set -o posix 189fi 190 191# NLS nuisances. 192# Support unset when possible. 193if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 194 as_unset=unset 195else 196 as_unset=false 197fi 198 199(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 200 { $as_unset LANG || test "${LANG+set}" != set; } || 201 { LANG=C; export LANG; } 202(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 203 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 204 { LC_ALL=C; export LC_ALL; } 205(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 206 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 207 { LC_TIME=C; export LC_TIME; } 208(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 209 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 210 { LC_CTYPE=C; export LC_CTYPE; } 211(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 212 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 213 { LANGUAGE=C; export LANGUAGE; } 214(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 215 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 216 { LC_COLLATE=C; export LC_COLLATE; } 217(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 218 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 219 { LC_NUMERIC=C; export LC_NUMERIC; } 220(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 221 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 222 { LC_MESSAGES=C; export LC_MESSAGES; } 223 224 225# Name of the executable. 226as_me=`(basename "$0") 2>/dev/null || 227$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 228 X"$0" : 'X\(//\)$' \| \ 229 X"$0" : 'X\(/\)$' \| \ 230 . : '\(.\)' 2>/dev/null || 231echo X/"$0" | 232 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 233 /^X\/\(\/\/\)$/{ s//\1/; q; } 234 /^X\/\(\/\).*/{ s//\1/; q; } 235 s/.*/./; q'` 236 237# PATH needs CR, and LINENO needs CR and PATH. 238# Avoid depending upon Character Ranges. 239as_cr_letters='abcdefghijklmnopqrstuvwxyz' 240as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 241as_cr_Letters=$as_cr_letters$as_cr_LETTERS 242as_cr_digits='0123456789' 243as_cr_alnum=$as_cr_Letters$as_cr_digits 244 245# The user is always right. 246if test "${PATH_SEPARATOR+set}" != set; then 247 echo "#! /bin/sh" >conftest.sh 248 echo "exit 0" >>conftest.sh 249 chmod +x conftest.sh 250 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 251 PATH_SEPARATOR=';' 252 else 253 PATH_SEPARATOR=: 254 fi 255 rm -f conftest.sh 256fi 257 258 259 as_lineno_1=$LINENO 260 as_lineno_2=$LINENO 261 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 262 test "x$as_lineno_1" != "x$as_lineno_2" && 263 test "x$as_lineno_3" = "x$as_lineno_2" || { 264 # Find who we are. Look in the path if we contain no path at all 265 # relative or not. 266 case $0 in 267 *[\\/]* ) as_myself=$0 ;; 268 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 269for as_dir in $PATH 270do 271 IFS=$as_save_IFS 272 test -z "$as_dir" && as_dir=. 273 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 274done 275 276 ;; 277 esac 278 # We did not find ourselves, most probably we were run as `sh COMMAND' 279 # in which case we are not to be found in the path. 280 if test "x$as_myself" = x; then 281 as_myself=$0 282 fi 283 if test ! -f "$as_myself"; then 284 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 285 { (exit 1); exit 1; }; } 286 fi 287 case $CONFIG_SHELL in 288 '') 289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 290for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 291do 292 IFS=$as_save_IFS 293 test -z "$as_dir" && as_dir=. 294 for as_base in sh bash ksh sh5; do 295 case $as_dir in 296 /*) 297 if ("$as_dir/$as_base" -c ' 298 as_lineno_1=$LINENO 299 as_lineno_2=$LINENO 300 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 301 test "x$as_lineno_1" != "x$as_lineno_2" && 302 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 303 CONFIG_SHELL=$as_dir/$as_base 304 export CONFIG_SHELL 305 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 306 fi;; 307 esac 308 done 309done 310;; 311 esac 312 313 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 314 # uniformly replaced by the line number. The first 'sed' inserts a 315 # line-number line before each line; the second 'sed' does the real 316 # work. The second script uses 'N' to pair each line-number line 317 # with the numbered line, and appends trailing '-' during 318 # substitution so that $LINENO is not a special case at line end. 319 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 320 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 321 sed '=' <$as_myself | 322 sed ' 323 N 324 s,$,-, 325 : loop 326 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 327 t loop 328 s,-$,, 329 s,^['$as_cr_digits']*\n,, 330 ' >$as_me.lineno && 331 chmod +x $as_me.lineno || 332 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 333 { (exit 1); exit 1; }; } 334 335 # Don't try to exec as it changes $[0], causing all sort of problems 336 # (the dirname of $[0] is not the place where we might find the 337 # original and so on. Autoconf is especially sensible to this). 338 . ./$as_me.lineno 339 # Exit status is that of the last command. 340 exit 341} 342 343 344case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 345 *c*,-n*) ECHO_N= ECHO_C=' 346' ECHO_T=' ' ;; 347 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 348 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 349esac 350 351if expr a : '\(a\)' >/dev/null 2>&1; then 352 as_expr=expr 353else 354 as_expr=false 355fi 356 357rm -f conf$$ conf$$.exe conf$$.file 358echo >conf$$.file 359if ln -s conf$$.file conf$$ 2>/dev/null; then 360 # We could just check for DJGPP; but this test a) works b) is more generic 361 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 362 if test -f conf$$.exe; then 363 # Don't use ln at all; we don't have any links 364 as_ln_s='cp -p' 365 else 366 as_ln_s='ln -s' 367 fi 368elif ln conf$$.file conf$$ 2>/dev/null; then 369 as_ln_s=ln 370else 371 as_ln_s='cp -p' 372fi 373rm -f conf$$ conf$$.exe conf$$.file 374 375as_executable_p="test -f" 376 377# Sed expression to map a string onto a valid CPP name. 378as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 379 380# Sed expression to map a string onto a valid variable name. 381as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 382 383 384# IFS 385# We need space, tab and new line, in precisely that order. 386as_nl=' 387' 388IFS=" $as_nl" 389 390# CDPATH. 391$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 392 393 394# Name of the host. 395# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 396# so uname gets run too. 397ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 398 399exec 6>&1 400 401# 402# Initializations. 403# 404ac_default_prefix=/usr/local 405cross_compiling=no 406subdirs= 407MFLAGS= 408MAKEFLAGS= 409SHELL=${CONFIG_SHELL-/bin/sh} 410 411# Maximum number of lines to put in a shell here document. 412# This variable seems obsolete. It should probably be removed, and 413# only ac_max_sed_lines should be used. 414: ${ac_max_here_lines=38} 415 416# Identity of this package. 417PACKAGE_NAME='Heimdal' 418PACKAGE_TARNAME='heimdal'
|
419PACKAGE_VERSION='0.5.1' 420PACKAGE_STRING='Heimdal 0.5.1'
| 419PACKAGE_VERSION='0.6' 420PACKAGE_STRING='Heimdal 0.6'
|
421PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se' 422 423ac_unique_file="kuser/kinit.c" 424ac_default_prefix=/usr/heimdal 425# Factoring default headers for most tests. 426ac_includes_default="\ 427#include <stdio.h> 428#if HAVE_SYS_TYPES_H 429# include <sys/types.h> 430#endif 431#if HAVE_SYS_STAT_H 432# include <sys/stat.h> 433#endif 434#if STDC_HEADERS 435# include <stdlib.h> 436# include <stddef.h> 437#else 438# if HAVE_STDLIB_H 439# include <stdlib.h> 440# endif 441#endif 442#if HAVE_STRING_H 443# if !STDC_HEADERS && HAVE_MEMORY_H 444# include <memory.h> 445# endif 446# include <string.h> 447#endif 448#if HAVE_STRINGS_H 449# include <strings.h> 450#endif 451#if HAVE_INTTYPES_H 452# include <inttypes.h> 453#else 454# if HAVE_STDINT_H 455# include <stdint.h> 456# endif 457#endif 458#if HAVE_UNISTD_H 459# include <unistd.h> 460#endif" 461 462 463# Initialize some variables set by options. 464ac_init_help= 465ac_init_version=false 466# The variables have the same names as the options, with 467# dashes changed to underlines. 468cache_file=/dev/null 469exec_prefix=NONE 470no_create= 471no_recursion= 472prefix=NONE 473program_prefix=NONE 474program_suffix=NONE 475program_transform_name=s,x,x, 476silent= 477site= 478srcdir= 479verbose= 480x_includes=NONE 481x_libraries=NONE 482 483# Installation directory options. 484# These are left unexpanded so users can "make install exec_prefix=/foo" 485# and all the variables that are supposed to be based on exec_prefix 486# by default will actually change. 487# Use braces instead of parens because sh, perl, etc. also accept them. 488bindir='${exec_prefix}/bin' 489sbindir='${exec_prefix}/sbin' 490libexecdir='${exec_prefix}/libexec' 491datadir='${prefix}/share' 492sysconfdir='${prefix}/etc' 493sharedstatedir='${prefix}/com' 494localstatedir='${prefix}/var' 495libdir='${exec_prefix}/lib' 496includedir='${prefix}/include' 497oldincludedir='/usr/include' 498infodir='${prefix}/info' 499mandir='${prefix}/man' 500 501ac_prev= 502for ac_option 503do 504 # If the previous option needs an argument, assign it. 505 if test -n "$ac_prev"; then 506 eval "$ac_prev=\$ac_option" 507 ac_prev= 508 continue 509 fi 510 511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 512 513 # Accept the important Cygnus configure options, so we can diagnose typos. 514 515 case $ac_option in 516 517 -bindir | --bindir | --bindi | --bind | --bin | --bi) 518 ac_prev=bindir ;; 519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 520 bindir=$ac_optarg ;; 521 522 -build | --build | --buil | --bui | --bu) 523 ac_prev=build_alias ;; 524 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 525 build_alias=$ac_optarg ;; 526 527 -cache-file | --cache-file | --cache-fil | --cache-fi \ 528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 529 ac_prev=cache_file ;; 530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 532 cache_file=$ac_optarg ;; 533 534 --config-cache | -C) 535 cache_file=config.cache ;; 536 537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 538 ac_prev=datadir ;; 539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 540 | --da=*) 541 datadir=$ac_optarg ;; 542 543 -disable-* | --disable-*) 544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 545 # Reject names that are not valid shell variable names. 546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 548 { (exit 1); exit 1; }; } 549 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 550 eval "enable_$ac_feature=no" ;; 551 552 -enable-* | --enable-*) 553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 554 # Reject names that are not valid shell variable names. 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 557 { (exit 1); exit 1; }; } 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 559 case $ac_option in 560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 561 *) ac_optarg=yes ;; 562 esac 563 eval "enable_$ac_feature='$ac_optarg'" ;; 564 565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 567 | --exec | --exe | --ex) 568 ac_prev=exec_prefix ;; 569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 571 | --exec=* | --exe=* | --ex=*) 572 exec_prefix=$ac_optarg ;; 573 574 -gas | --gas | --ga | --g) 575 # Obsolete; use --with-gas. 576 with_gas=yes ;; 577 578 -help | --help | --hel | --he | -h) 579 ac_init_help=long ;; 580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 581 ac_init_help=recursive ;; 582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 583 ac_init_help=short ;; 584 585 -host | --host | --hos | --ho) 586 ac_prev=host_alias ;; 587 -host=* | --host=* | --hos=* | --ho=*) 588 host_alias=$ac_optarg ;; 589 590 -includedir | --includedir | --includedi | --included | --include \ 591 | --includ | --inclu | --incl | --inc) 592 ac_prev=includedir ;; 593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 594 | --includ=* | --inclu=* | --incl=* | --inc=*) 595 includedir=$ac_optarg ;; 596 597 -infodir | --infodir | --infodi | --infod | --info | --inf) 598 ac_prev=infodir ;; 599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 600 infodir=$ac_optarg ;; 601 602 -libdir | --libdir | --libdi | --libd) 603 ac_prev=libdir ;; 604 -libdir=* | --libdir=* | --libdi=* | --libd=*) 605 libdir=$ac_optarg ;; 606 607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 608 | --libexe | --libex | --libe) 609 ac_prev=libexecdir ;; 610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 611 | --libexe=* | --libex=* | --libe=*) 612 libexecdir=$ac_optarg ;; 613 614 -localstatedir | --localstatedir | --localstatedi | --localstated \ 615 | --localstate | --localstat | --localsta | --localst \ 616 | --locals | --local | --loca | --loc | --lo) 617 ac_prev=localstatedir ;; 618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 621 localstatedir=$ac_optarg ;; 622 623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 624 ac_prev=mandir ;; 625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 626 mandir=$ac_optarg ;; 627 628 -nfp | --nfp | --nf) 629 # Obsolete; use --without-fp. 630 with_fp=no ;; 631 632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 633 | --no-cr | --no-c | -n) 634 no_create=yes ;; 635 636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 638 no_recursion=yes ;; 639 640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 642 | --oldin | --oldi | --old | --ol | --o) 643 ac_prev=oldincludedir ;; 644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 647 oldincludedir=$ac_optarg ;; 648 649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 650 ac_prev=prefix ;; 651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 652 prefix=$ac_optarg ;; 653 654 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 655 | --program-pre | --program-pr | --program-p) 656 ac_prev=program_prefix ;; 657 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 659 program_prefix=$ac_optarg ;; 660 661 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 662 | --program-suf | --program-su | --program-s) 663 ac_prev=program_suffix ;; 664 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 666 program_suffix=$ac_optarg ;; 667 668 -program-transform-name | --program-transform-name \ 669 | --program-transform-nam | --program-transform-na \ 670 | --program-transform-n | --program-transform- \ 671 | --program-transform | --program-transfor \ 672 | --program-transfo | --program-transf \ 673 | --program-trans | --program-tran \ 674 | --progr-tra | --program-tr | --program-t) 675 ac_prev=program_transform_name ;; 676 -program-transform-name=* | --program-transform-name=* \ 677 | --program-transform-nam=* | --program-transform-na=* \ 678 | --program-transform-n=* | --program-transform-=* \ 679 | --program-transform=* | --program-transfor=* \ 680 | --program-transfo=* | --program-transf=* \ 681 | --program-trans=* | --program-tran=* \ 682 | --progr-tra=* | --program-tr=* | --program-t=*) 683 program_transform_name=$ac_optarg ;; 684 685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 686 | -silent | --silent | --silen | --sile | --sil) 687 silent=yes ;; 688 689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 690 ac_prev=sbindir ;; 691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 692 | --sbi=* | --sb=*) 693 sbindir=$ac_optarg ;; 694 695 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 697 | --sharedst | --shareds | --shared | --share | --shar \ 698 | --sha | --sh) 699 ac_prev=sharedstatedir ;; 700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 703 | --sha=* | --sh=*) 704 sharedstatedir=$ac_optarg ;; 705 706 -site | --site | --sit) 707 ac_prev=site ;; 708 -site=* | --site=* | --sit=*) 709 site=$ac_optarg ;; 710 711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 712 ac_prev=srcdir ;; 713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 714 srcdir=$ac_optarg ;; 715 716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 717 | --syscon | --sysco | --sysc | --sys | --sy) 718 ac_prev=sysconfdir ;; 719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 721 sysconfdir=$ac_optarg ;; 722 723 -target | --target | --targe | --targ | --tar | --ta | --t) 724 ac_prev=target_alias ;; 725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 726 target_alias=$ac_optarg ;; 727 728 -v | -verbose | --verbose | --verbos | --verbo | --verb) 729 verbose=yes ;; 730 731 -version | --version | --versio | --versi | --vers | -V) 732 ac_init_version=: ;; 733 734 -with-* | --with-*) 735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 736 # Reject names that are not valid shell variable names. 737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 738 { echo "$as_me: error: invalid package name: $ac_package" >&2 739 { (exit 1); exit 1; }; } 740 ac_package=`echo $ac_package| sed 's/-/_/g'` 741 case $ac_option in 742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 743 *) ac_optarg=yes ;; 744 esac 745 eval "with_$ac_package='$ac_optarg'" ;; 746 747 -without-* | --without-*) 748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 749 # Reject names that are not valid shell variable names. 750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 751 { echo "$as_me: error: invalid package name: $ac_package" >&2 752 { (exit 1); exit 1; }; } 753 ac_package=`echo $ac_package | sed 's/-/_/g'` 754 eval "with_$ac_package=no" ;; 755 756 --x) 757 # Obsolete; use --with-x. 758 with_x=yes ;; 759 760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 761 | --x-incl | --x-inc | --x-in | --x-i) 762 ac_prev=x_includes ;; 763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 765 x_includes=$ac_optarg ;; 766 767 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 769 ac_prev=x_libraries ;; 770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 772 x_libraries=$ac_optarg ;; 773 774 -*) { echo "$as_me: error: unrecognized option: $ac_option 775Try \`$0 --help' for more information." >&2 776 { (exit 1); exit 1; }; } 777 ;; 778 779 *=*) 780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 781 # Reject names that are not valid shell variable names. 782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 784 { (exit 1); exit 1; }; } 785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 786 eval "$ac_envvar='$ac_optarg'" 787 export $ac_envvar ;; 788 789 *) 790 # FIXME: should be removed in autoconf 3.0. 791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 795 ;; 796 797 esac 798done 799 800if test -n "$ac_prev"; then 801 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 802 { echo "$as_me: error: missing argument to $ac_option" >&2 803 { (exit 1); exit 1; }; } 804fi 805 806# Be sure to have absolute paths. 807for ac_var in exec_prefix prefix 808do 809 eval ac_val=$`echo $ac_var` 810 case $ac_val in 811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 813 { (exit 1); exit 1; }; };; 814 esac 815done 816 817# Be sure to have absolute paths. 818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 819 localstatedir libdir includedir oldincludedir infodir mandir 820do 821 eval ac_val=$`echo $ac_var` 822 case $ac_val in 823 [\\/$]* | ?:[\\/]* ) ;; 824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 825 { (exit 1); exit 1; }; };; 826 esac 827done 828 829# There might be people who depend on the old broken behavior: `$host' 830# used to hold the argument of --host etc. 831# FIXME: To remove some day. 832build=$build_alias 833host=$host_alias 834target=$target_alias 835 836# FIXME: To remove some day. 837if test "x$host_alias" != x; then 838 if test "x$build_alias" = x; then 839 cross_compiling=maybe 840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 841 If a cross compiler is detected then cross compile mode will be used." >&2 842 elif test "x$build_alias" != "x$host_alias"; then 843 cross_compiling=yes 844 fi 845fi 846 847ac_tool_prefix= 848test -n "$host_alias" && ac_tool_prefix=$host_alias- 849 850test "$silent" = yes && exec 6>/dev/null 851 852 853# Find the source files, if location was not specified. 854if test -z "$srcdir"; then 855 ac_srcdir_defaulted=yes 856 # Try the directory containing this script, then its parent. 857 ac_confdir=`(dirname "$0") 2>/dev/null || 858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 859 X"$0" : 'X\(//\)[^/]' \| \ 860 X"$0" : 'X\(//\)$' \| \ 861 X"$0" : 'X\(/\)' \| \ 862 . : '\(.\)' 2>/dev/null || 863echo X"$0" | 864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 865 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 866 /^X\(\/\/\)$/{ s//\1/; q; } 867 /^X\(\/\).*/{ s//\1/; q; } 868 s/.*/./; q'` 869 srcdir=$ac_confdir 870 if test ! -r $srcdir/$ac_unique_file; then 871 srcdir=.. 872 fi 873else 874 ac_srcdir_defaulted=no 875fi 876if test ! -r $srcdir/$ac_unique_file; then 877 if test "$ac_srcdir_defaulted" = yes; then 878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 879 { (exit 1); exit 1; }; } 880 else 881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 882 { (exit 1); exit 1; }; } 883 fi 884fi 885srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 886ac_env_build_alias_set=${build_alias+set} 887ac_env_build_alias_value=$build_alias 888ac_cv_env_build_alias_set=${build_alias+set} 889ac_cv_env_build_alias_value=$build_alias 890ac_env_host_alias_set=${host_alias+set} 891ac_env_host_alias_value=$host_alias 892ac_cv_env_host_alias_set=${host_alias+set} 893ac_cv_env_host_alias_value=$host_alias 894ac_env_target_alias_set=${target_alias+set} 895ac_env_target_alias_value=$target_alias 896ac_cv_env_target_alias_set=${target_alias+set} 897ac_cv_env_target_alias_value=$target_alias 898ac_env_CC_set=${CC+set} 899ac_env_CC_value=$CC 900ac_cv_env_CC_set=${CC+set} 901ac_cv_env_CC_value=$CC 902ac_env_CFLAGS_set=${CFLAGS+set} 903ac_env_CFLAGS_value=$CFLAGS 904ac_cv_env_CFLAGS_set=${CFLAGS+set} 905ac_cv_env_CFLAGS_value=$CFLAGS 906ac_env_LDFLAGS_set=${LDFLAGS+set} 907ac_env_LDFLAGS_value=$LDFLAGS 908ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 909ac_cv_env_LDFLAGS_value=$LDFLAGS 910ac_env_CPPFLAGS_set=${CPPFLAGS+set} 911ac_env_CPPFLAGS_value=$CPPFLAGS 912ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 913ac_cv_env_CPPFLAGS_value=$CPPFLAGS 914ac_env_CPP_set=${CPP+set} 915ac_env_CPP_value=$CPP 916ac_cv_env_CPP_set=${CPP+set} 917ac_cv_env_CPP_value=$CPP 918 919# 920# Report the --help message. 921# 922if test "$ac_init_help" = "long"; then 923 # Omit some internal or obsolete options to make the list less imposing. 924 # This message is too long to be a string in the A/UX 3.1 sh. 925 cat <<_ACEOF
| 421PACKAGE_BUGREPORT='heimdal-bugs@pdc.kth.se' 422 423ac_unique_file="kuser/kinit.c" 424ac_default_prefix=/usr/heimdal 425# Factoring default headers for most tests. 426ac_includes_default="\ 427#include <stdio.h> 428#if HAVE_SYS_TYPES_H 429# include <sys/types.h> 430#endif 431#if HAVE_SYS_STAT_H 432# include <sys/stat.h> 433#endif 434#if STDC_HEADERS 435# include <stdlib.h> 436# include <stddef.h> 437#else 438# if HAVE_STDLIB_H 439# include <stdlib.h> 440# endif 441#endif 442#if HAVE_STRING_H 443# if !STDC_HEADERS && HAVE_MEMORY_H 444# include <memory.h> 445# endif 446# include <string.h> 447#endif 448#if HAVE_STRINGS_H 449# include <strings.h> 450#endif 451#if HAVE_INTTYPES_H 452# include <inttypes.h> 453#else 454# if HAVE_STDINT_H 455# include <stdint.h> 456# endif 457#endif 458#if HAVE_UNISTD_H 459# include <unistd.h> 460#endif" 461 462 463# Initialize some variables set by options. 464ac_init_help= 465ac_init_version=false 466# The variables have the same names as the options, with 467# dashes changed to underlines. 468cache_file=/dev/null 469exec_prefix=NONE 470no_create= 471no_recursion= 472prefix=NONE 473program_prefix=NONE 474program_suffix=NONE 475program_transform_name=s,x,x, 476silent= 477site= 478srcdir= 479verbose= 480x_includes=NONE 481x_libraries=NONE 482 483# Installation directory options. 484# These are left unexpanded so users can "make install exec_prefix=/foo" 485# and all the variables that are supposed to be based on exec_prefix 486# by default will actually change. 487# Use braces instead of parens because sh, perl, etc. also accept them. 488bindir='${exec_prefix}/bin' 489sbindir='${exec_prefix}/sbin' 490libexecdir='${exec_prefix}/libexec' 491datadir='${prefix}/share' 492sysconfdir='${prefix}/etc' 493sharedstatedir='${prefix}/com' 494localstatedir='${prefix}/var' 495libdir='${exec_prefix}/lib' 496includedir='${prefix}/include' 497oldincludedir='/usr/include' 498infodir='${prefix}/info' 499mandir='${prefix}/man' 500 501ac_prev= 502for ac_option 503do 504 # If the previous option needs an argument, assign it. 505 if test -n "$ac_prev"; then 506 eval "$ac_prev=\$ac_option" 507 ac_prev= 508 continue 509 fi 510 511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 512 513 # Accept the important Cygnus configure options, so we can diagnose typos. 514 515 case $ac_option in 516 517 -bindir | --bindir | --bindi | --bind | --bin | --bi) 518 ac_prev=bindir ;; 519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 520 bindir=$ac_optarg ;; 521 522 -build | --build | --buil | --bui | --bu) 523 ac_prev=build_alias ;; 524 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 525 build_alias=$ac_optarg ;; 526 527 -cache-file | --cache-file | --cache-fil | --cache-fi \ 528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 529 ac_prev=cache_file ;; 530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 532 cache_file=$ac_optarg ;; 533 534 --config-cache | -C) 535 cache_file=config.cache ;; 536 537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 538 ac_prev=datadir ;; 539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 540 | --da=*) 541 datadir=$ac_optarg ;; 542 543 -disable-* | --disable-*) 544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 545 # Reject names that are not valid shell variable names. 546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 548 { (exit 1); exit 1; }; } 549 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 550 eval "enable_$ac_feature=no" ;; 551 552 -enable-* | --enable-*) 553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 554 # Reject names that are not valid shell variable names. 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 557 { (exit 1); exit 1; }; } 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 559 case $ac_option in 560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 561 *) ac_optarg=yes ;; 562 esac 563 eval "enable_$ac_feature='$ac_optarg'" ;; 564 565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 567 | --exec | --exe | --ex) 568 ac_prev=exec_prefix ;; 569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 571 | --exec=* | --exe=* | --ex=*) 572 exec_prefix=$ac_optarg ;; 573 574 -gas | --gas | --ga | --g) 575 # Obsolete; use --with-gas. 576 with_gas=yes ;; 577 578 -help | --help | --hel | --he | -h) 579 ac_init_help=long ;; 580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 581 ac_init_help=recursive ;; 582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 583 ac_init_help=short ;; 584 585 -host | --host | --hos | --ho) 586 ac_prev=host_alias ;; 587 -host=* | --host=* | --hos=* | --ho=*) 588 host_alias=$ac_optarg ;; 589 590 -includedir | --includedir | --includedi | --included | --include \ 591 | --includ | --inclu | --incl | --inc) 592 ac_prev=includedir ;; 593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 594 | --includ=* | --inclu=* | --incl=* | --inc=*) 595 includedir=$ac_optarg ;; 596 597 -infodir | --infodir | --infodi | --infod | --info | --inf) 598 ac_prev=infodir ;; 599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 600 infodir=$ac_optarg ;; 601 602 -libdir | --libdir | --libdi | --libd) 603 ac_prev=libdir ;; 604 -libdir=* | --libdir=* | --libdi=* | --libd=*) 605 libdir=$ac_optarg ;; 606 607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 608 | --libexe | --libex | --libe) 609 ac_prev=libexecdir ;; 610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 611 | --libexe=* | --libex=* | --libe=*) 612 libexecdir=$ac_optarg ;; 613 614 -localstatedir | --localstatedir | --localstatedi | --localstated \ 615 | --localstate | --localstat | --localsta | --localst \ 616 | --locals | --local | --loca | --loc | --lo) 617 ac_prev=localstatedir ;; 618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 621 localstatedir=$ac_optarg ;; 622 623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 624 ac_prev=mandir ;; 625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 626 mandir=$ac_optarg ;; 627 628 -nfp | --nfp | --nf) 629 # Obsolete; use --without-fp. 630 with_fp=no ;; 631 632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 633 | --no-cr | --no-c | -n) 634 no_create=yes ;; 635 636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 638 no_recursion=yes ;; 639 640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 642 | --oldin | --oldi | --old | --ol | --o) 643 ac_prev=oldincludedir ;; 644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 647 oldincludedir=$ac_optarg ;; 648 649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 650 ac_prev=prefix ;; 651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 652 prefix=$ac_optarg ;; 653 654 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 655 | --program-pre | --program-pr | --program-p) 656 ac_prev=program_prefix ;; 657 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 659 program_prefix=$ac_optarg ;; 660 661 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 662 | --program-suf | --program-su | --program-s) 663 ac_prev=program_suffix ;; 664 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 666 program_suffix=$ac_optarg ;; 667 668 -program-transform-name | --program-transform-name \ 669 | --program-transform-nam | --program-transform-na \ 670 | --program-transform-n | --program-transform- \ 671 | --program-transform | --program-transfor \ 672 | --program-transfo | --program-transf \ 673 | --program-trans | --program-tran \ 674 | --progr-tra | --program-tr | --program-t) 675 ac_prev=program_transform_name ;; 676 -program-transform-name=* | --program-transform-name=* \ 677 | --program-transform-nam=* | --program-transform-na=* \ 678 | --program-transform-n=* | --program-transform-=* \ 679 | --program-transform=* | --program-transfor=* \ 680 | --program-transfo=* | --program-transf=* \ 681 | --program-trans=* | --program-tran=* \ 682 | --progr-tra=* | --program-tr=* | --program-t=*) 683 program_transform_name=$ac_optarg ;; 684 685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 686 | -silent | --silent | --silen | --sile | --sil) 687 silent=yes ;; 688 689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 690 ac_prev=sbindir ;; 691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 692 | --sbi=* | --sb=*) 693 sbindir=$ac_optarg ;; 694 695 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 697 | --sharedst | --shareds | --shared | --share | --shar \ 698 | --sha | --sh) 699 ac_prev=sharedstatedir ;; 700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 703 | --sha=* | --sh=*) 704 sharedstatedir=$ac_optarg ;; 705 706 -site | --site | --sit) 707 ac_prev=site ;; 708 -site=* | --site=* | --sit=*) 709 site=$ac_optarg ;; 710 711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 712 ac_prev=srcdir ;; 713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 714 srcdir=$ac_optarg ;; 715 716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 717 | --syscon | --sysco | --sysc | --sys | --sy) 718 ac_prev=sysconfdir ;; 719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 721 sysconfdir=$ac_optarg ;; 722 723 -target | --target | --targe | --targ | --tar | --ta | --t) 724 ac_prev=target_alias ;; 725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 726 target_alias=$ac_optarg ;; 727 728 -v | -verbose | --verbose | --verbos | --verbo | --verb) 729 verbose=yes ;; 730 731 -version | --version | --versio | --versi | --vers | -V) 732 ac_init_version=: ;; 733 734 -with-* | --with-*) 735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 736 # Reject names that are not valid shell variable names. 737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 738 { echo "$as_me: error: invalid package name: $ac_package" >&2 739 { (exit 1); exit 1; }; } 740 ac_package=`echo $ac_package| sed 's/-/_/g'` 741 case $ac_option in 742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 743 *) ac_optarg=yes ;; 744 esac 745 eval "with_$ac_package='$ac_optarg'" ;; 746 747 -without-* | --without-*) 748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 749 # Reject names that are not valid shell variable names. 750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 751 { echo "$as_me: error: invalid package name: $ac_package" >&2 752 { (exit 1); exit 1; }; } 753 ac_package=`echo $ac_package | sed 's/-/_/g'` 754 eval "with_$ac_package=no" ;; 755 756 --x) 757 # Obsolete; use --with-x. 758 with_x=yes ;; 759 760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 761 | --x-incl | --x-inc | --x-in | --x-i) 762 ac_prev=x_includes ;; 763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 765 x_includes=$ac_optarg ;; 766 767 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 769 ac_prev=x_libraries ;; 770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 772 x_libraries=$ac_optarg ;; 773 774 -*) { echo "$as_me: error: unrecognized option: $ac_option 775Try \`$0 --help' for more information." >&2 776 { (exit 1); exit 1; }; } 777 ;; 778 779 *=*) 780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 781 # Reject names that are not valid shell variable names. 782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 784 { (exit 1); exit 1; }; } 785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 786 eval "$ac_envvar='$ac_optarg'" 787 export $ac_envvar ;; 788 789 *) 790 # FIXME: should be removed in autoconf 3.0. 791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 795 ;; 796 797 esac 798done 799 800if test -n "$ac_prev"; then 801 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 802 { echo "$as_me: error: missing argument to $ac_option" >&2 803 { (exit 1); exit 1; }; } 804fi 805 806# Be sure to have absolute paths. 807for ac_var in exec_prefix prefix 808do 809 eval ac_val=$`echo $ac_var` 810 case $ac_val in 811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 813 { (exit 1); exit 1; }; };; 814 esac 815done 816 817# Be sure to have absolute paths. 818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 819 localstatedir libdir includedir oldincludedir infodir mandir 820do 821 eval ac_val=$`echo $ac_var` 822 case $ac_val in 823 [\\/$]* | ?:[\\/]* ) ;; 824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 825 { (exit 1); exit 1; }; };; 826 esac 827done 828 829# There might be people who depend on the old broken behavior: `$host' 830# used to hold the argument of --host etc. 831# FIXME: To remove some day. 832build=$build_alias 833host=$host_alias 834target=$target_alias 835 836# FIXME: To remove some day. 837if test "x$host_alias" != x; then 838 if test "x$build_alias" = x; then 839 cross_compiling=maybe 840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 841 If a cross compiler is detected then cross compile mode will be used." >&2 842 elif test "x$build_alias" != "x$host_alias"; then 843 cross_compiling=yes 844 fi 845fi 846 847ac_tool_prefix= 848test -n "$host_alias" && ac_tool_prefix=$host_alias- 849 850test "$silent" = yes && exec 6>/dev/null 851 852 853# Find the source files, if location was not specified. 854if test -z "$srcdir"; then 855 ac_srcdir_defaulted=yes 856 # Try the directory containing this script, then its parent. 857 ac_confdir=`(dirname "$0") 2>/dev/null || 858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 859 X"$0" : 'X\(//\)[^/]' \| \ 860 X"$0" : 'X\(//\)$' \| \ 861 X"$0" : 'X\(/\)' \| \ 862 . : '\(.\)' 2>/dev/null || 863echo X"$0" | 864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 865 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 866 /^X\(\/\/\)$/{ s//\1/; q; } 867 /^X\(\/\).*/{ s//\1/; q; } 868 s/.*/./; q'` 869 srcdir=$ac_confdir 870 if test ! -r $srcdir/$ac_unique_file; then 871 srcdir=.. 872 fi 873else 874 ac_srcdir_defaulted=no 875fi 876if test ! -r $srcdir/$ac_unique_file; then 877 if test "$ac_srcdir_defaulted" = yes; then 878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 879 { (exit 1); exit 1; }; } 880 else 881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 882 { (exit 1); exit 1; }; } 883 fi 884fi 885srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 886ac_env_build_alias_set=${build_alias+set} 887ac_env_build_alias_value=$build_alias 888ac_cv_env_build_alias_set=${build_alias+set} 889ac_cv_env_build_alias_value=$build_alias 890ac_env_host_alias_set=${host_alias+set} 891ac_env_host_alias_value=$host_alias 892ac_cv_env_host_alias_set=${host_alias+set} 893ac_cv_env_host_alias_value=$host_alias 894ac_env_target_alias_set=${target_alias+set} 895ac_env_target_alias_value=$target_alias 896ac_cv_env_target_alias_set=${target_alias+set} 897ac_cv_env_target_alias_value=$target_alias 898ac_env_CC_set=${CC+set} 899ac_env_CC_value=$CC 900ac_cv_env_CC_set=${CC+set} 901ac_cv_env_CC_value=$CC 902ac_env_CFLAGS_set=${CFLAGS+set} 903ac_env_CFLAGS_value=$CFLAGS 904ac_cv_env_CFLAGS_set=${CFLAGS+set} 905ac_cv_env_CFLAGS_value=$CFLAGS 906ac_env_LDFLAGS_set=${LDFLAGS+set} 907ac_env_LDFLAGS_value=$LDFLAGS 908ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 909ac_cv_env_LDFLAGS_value=$LDFLAGS 910ac_env_CPPFLAGS_set=${CPPFLAGS+set} 911ac_env_CPPFLAGS_value=$CPPFLAGS 912ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 913ac_cv_env_CPPFLAGS_value=$CPPFLAGS 914ac_env_CPP_set=${CPP+set} 915ac_env_CPP_value=$CPP 916ac_cv_env_CPP_set=${CPP+set} 917ac_cv_env_CPP_value=$CPP 918 919# 920# Report the --help message. 921# 922if test "$ac_init_help" = "long"; then 923 # Omit some internal or obsolete options to make the list less imposing. 924 # This message is too long to be a string in the A/UX 3.1 sh. 925 cat <<_ACEOF
|
926\`configure' configures Heimdal 0.5.1 to adapt to many kinds of systems.
| 926\`configure' configures Heimdal 0.6 to adapt to many kinds of systems.
|
927 928Usage: $0 [OPTION]... [VAR=VALUE]... 929 930To assign environment variables (e.g., CC, CFLAGS...), specify them as 931VAR=VALUE. See below for descriptions of some of the useful variables. 932 933Defaults for the options are specified in brackets. 934 935Configuration: 936 -h, --help display this help and exit 937 --help=short display options specific to this package 938 --help=recursive display the short help of all the included packages 939 -V, --version display version information and exit 940 -q, --quiet, --silent do not print \`checking...' messages 941 --cache-file=FILE cache test results in FILE [disabled] 942 -C, --config-cache alias for \`--cache-file=config.cache' 943 -n, --no-create do not create output files 944 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 945 946_ACEOF 947 948 cat <<_ACEOF 949Installation directories: 950 --prefix=PREFIX install architecture-independent files in PREFIX 951 [$ac_default_prefix] 952 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 953 [PREFIX] 954 955By default, \`make install' will install all the files in 956\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 957an installation prefix other than \`$ac_default_prefix' using \`--prefix', 958for instance \`--prefix=\$HOME'. 959 960For better control, use the options below. 961 962Fine tuning of the installation directories: 963 --bindir=DIR user executables [EPREFIX/bin] 964 --sbindir=DIR system admin executables [EPREFIX/sbin] 965 --libexecdir=DIR program executables [EPREFIX/libexec] 966 --datadir=DIR read-only architecture-independent data [PREFIX/share] 967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 969 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 970 --libdir=DIR object code libraries [EPREFIX/lib] 971 --includedir=DIR C header files [PREFIX/include] 972 --oldincludedir=DIR C header files for non-gcc [/usr/include] 973 --infodir=DIR info documentation [PREFIX/info] 974 --mandir=DIR man documentation [PREFIX/man] 975_ACEOF 976 977 cat <<\_ACEOF 978 979Program names: 980 --program-prefix=PREFIX prepend PREFIX to installed program names 981 --program-suffix=SUFFIX append SUFFIX to installed program names 982 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 983 984X features: 985 --x-includes=DIR X include files are in DIR 986 --x-libraries=DIR X library files are in DIR 987 988System types: 989 --build=BUILD configure for building on BUILD [guessed] 990 --host=HOST cross-compile to build programs to run on HOST [BUILD] 991_ACEOF 992fi 993 994if test -n "$ac_init_help"; then 995 case $ac_init_help in
| 927 928Usage: $0 [OPTION]... [VAR=VALUE]... 929 930To assign environment variables (e.g., CC, CFLAGS...), specify them as 931VAR=VALUE. See below for descriptions of some of the useful variables. 932 933Defaults for the options are specified in brackets. 934 935Configuration: 936 -h, --help display this help and exit 937 --help=short display options specific to this package 938 --help=recursive display the short help of all the included packages 939 -V, --version display version information and exit 940 -q, --quiet, --silent do not print \`checking...' messages 941 --cache-file=FILE cache test results in FILE [disabled] 942 -C, --config-cache alias for \`--cache-file=config.cache' 943 -n, --no-create do not create output files 944 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 945 946_ACEOF 947 948 cat <<_ACEOF 949Installation directories: 950 --prefix=PREFIX install architecture-independent files in PREFIX 951 [$ac_default_prefix] 952 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 953 [PREFIX] 954 955By default, \`make install' will install all the files in 956\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 957an installation prefix other than \`$ac_default_prefix' using \`--prefix', 958for instance \`--prefix=\$HOME'. 959 960For better control, use the options below. 961 962Fine tuning of the installation directories: 963 --bindir=DIR user executables [EPREFIX/bin] 964 --sbindir=DIR system admin executables [EPREFIX/sbin] 965 --libexecdir=DIR program executables [EPREFIX/libexec] 966 --datadir=DIR read-only architecture-independent data [PREFIX/share] 967 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 968 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 969 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 970 --libdir=DIR object code libraries [EPREFIX/lib] 971 --includedir=DIR C header files [PREFIX/include] 972 --oldincludedir=DIR C header files for non-gcc [/usr/include] 973 --infodir=DIR info documentation [PREFIX/info] 974 --mandir=DIR man documentation [PREFIX/man] 975_ACEOF 976 977 cat <<\_ACEOF 978 979Program names: 980 --program-prefix=PREFIX prepend PREFIX to installed program names 981 --program-suffix=SUFFIX append SUFFIX to installed program names 982 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 983 984X features: 985 --x-includes=DIR X include files are in DIR 986 --x-libraries=DIR X library files are in DIR 987 988System types: 989 --build=BUILD configure for building on BUILD [guessed] 990 --host=HOST cross-compile to build programs to run on HOST [BUILD] 991_ACEOF 992fi 993 994if test -n "$ac_init_help"; then 995 case $ac_init_help in
|
996 short | recursive ) echo "Configuration of Heimdal 0.5.1:";;
| 996 short | recursive ) echo "Configuration of Heimdal 0.6:";;
|
997 esac 998 cat <<\_ACEOF 999 1000Optional Features: 1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1003 --disable-dependency-tracking Speeds up one-time builds 1004 --enable-dependency-tracking Do not reject slow dependency extractors
| 997 esac 998 cat <<\_ACEOF 999 1000Optional Features: 1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1003 --disable-dependency-tracking Speeds up one-time builds 1004 --enable-dependency-tracking Do not reject slow dependency extractors
|
| 1005 --enable-maintainer-mode enable make rules and dependencies not useful 1006 (and sometimes confusing) to the casual installer
|
1005 --disable-largefile omit support for large files 1006 --enable-shared=PKGS build shared libraries default=no 1007 --enable-static=PKGS build static libraries default=yes 1008 --enable-fast-install=PKGS optimize for fast installation default=yes 1009 --disable-libtool-lock avoid locking (might break parallel builds) 1010 --enable-dce if you want support for DCE/DFS PAG's 1011 --disable-berkeley-db if you don't want berkeley db 1012 --disable-otp if you don't want OTP support 1013 --enable-osfc2 enable some OSF C2 support 1014 --disable-mmap disable use of mmap 1015 --enable-bigendian the target is big endian 1016 --enable-littleendian the target is little endian 1017 --disable-dynamic-afs do not use loaded AFS library with AIX 1018 --enable-netinfo enable netinfo for configuration lookup 1019 1020Optional Packages: 1021 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1022 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1023 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 1024 --with-gnu-ld assume the C compiler uses GNU ld default=no 1025 --with-pic try to use only PIC/non-PIC objects default=use both 1026 --with-openldap=dir use openldap in dir 1027 --with-openldap-lib=dir use openldap libraries in dir 1028 --with-openldap-include=dir 1029 use openldap headers in dir 1030 --with-openldap-config=path 1031 config program for openldap 1032 --with-krb4=dir use krb4 in dir 1033 --with-krb4-lib=dir use krb4 libraries in dir 1034 --with-krb4-include=dir use krb4 headers in dir 1035 --with-krb4-config=path config program for krb4 1036 --with-openssl=dir use openssl in dir 1037 --with-openssl-lib=dir use openssl libraries in dir 1038 --with-openssl-include=dir 1039 use openssl headers in dir 1040 --without-ipv6 do not enable IPv6 support 1041 --with-readline=dir use readline in dir 1042 --with-readline-lib=dir use readline libraries in dir 1043 --with-readline-include=dir 1044 use readline headers in dir 1045 --with-readline-config=path 1046 config program for readline 1047 --with-hesiod=dir use hesiod in dir 1048 --with-hesiod-lib=dir use hesiod libraries in dir 1049 --with-hesiod-include=dir 1050 use hesiod headers in dir 1051 --with-hesiod-config=path 1052 config program for hesiod 1053 --with-x use the X Window System 1054 1055Some influential environment variables: 1056 CC C compiler command 1057 CFLAGS C compiler flags 1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1059 nonstandard directory <lib dir> 1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1061 headers in a nonstandard directory <include dir> 1062 CPP C preprocessor 1063 1064Use these variables to override the choices made by `configure' or to help 1065it to find libraries and programs with nonstandard names/locations. 1066 1067Report bugs to <heimdal-bugs@pdc.kth.se>. 1068_ACEOF 1069fi 1070 1071if test "$ac_init_help" = "recursive"; then 1072 # If there are subdirs, report their specific --help. 1073 ac_popdir=`pwd` 1074 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1075 test -d $ac_dir || continue 1076 ac_builddir=. 1077 1078if test "$ac_dir" != .; then 1079 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1080 # A "../" for each directory in $ac_dir_suffix. 1081 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1082else 1083 ac_dir_suffix= ac_top_builddir= 1084fi 1085 1086case $srcdir in 1087 .) # No --srcdir option. We are building in place. 1088 ac_srcdir=. 1089 if test -z "$ac_top_builddir"; then 1090 ac_top_srcdir=. 1091 else 1092 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1093 fi ;; 1094 [\\/]* | ?:[\\/]* ) # Absolute path. 1095 ac_srcdir=$srcdir$ac_dir_suffix; 1096 ac_top_srcdir=$srcdir ;; 1097 *) # Relative path. 1098 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1099 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1100esac 1101# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1102# absolute. 1103ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1104ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 1105ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1106ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1107 1108 cd $ac_dir 1109 # Check for guested configure; otherwise get Cygnus style configure. 1110 if test -f $ac_srcdir/configure.gnu; then 1111 echo 1112 $SHELL $ac_srcdir/configure.gnu --help=recursive 1113 elif test -f $ac_srcdir/configure; then 1114 echo 1115 $SHELL $ac_srcdir/configure --help=recursive 1116 elif test -f $ac_srcdir/configure.ac || 1117 test -f $ac_srcdir/configure.in; then 1118 echo 1119 $ac_configure --help 1120 else 1121 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1122 fi 1123 cd $ac_popdir 1124 done 1125fi 1126 1127test -n "$ac_init_help" && exit 0 1128if $ac_init_version; then 1129 cat <<\_ACEOF
| 1007 --disable-largefile omit support for large files 1008 --enable-shared=PKGS build shared libraries default=no 1009 --enable-static=PKGS build static libraries default=yes 1010 --enable-fast-install=PKGS optimize for fast installation default=yes 1011 --disable-libtool-lock avoid locking (might break parallel builds) 1012 --enable-dce if you want support for DCE/DFS PAG's 1013 --disable-berkeley-db if you don't want berkeley db 1014 --disable-otp if you don't want OTP support 1015 --enable-osfc2 enable some OSF C2 support 1016 --disable-mmap disable use of mmap 1017 --enable-bigendian the target is big endian 1018 --enable-littleendian the target is little endian 1019 --disable-dynamic-afs do not use loaded AFS library with AIX 1020 --enable-netinfo enable netinfo for configuration lookup 1021 1022Optional Packages: 1023 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1024 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1025 --with-mips-abi=abi ABI to use for IRIX (32, n32, or 64) 1026 --with-gnu-ld assume the C compiler uses GNU ld default=no 1027 --with-pic try to use only PIC/non-PIC objects default=use both 1028 --with-openldap=dir use openldap in dir 1029 --with-openldap-lib=dir use openldap libraries in dir 1030 --with-openldap-include=dir 1031 use openldap headers in dir 1032 --with-openldap-config=path 1033 config program for openldap 1034 --with-krb4=dir use krb4 in dir 1035 --with-krb4-lib=dir use krb4 libraries in dir 1036 --with-krb4-include=dir use krb4 headers in dir 1037 --with-krb4-config=path config program for krb4 1038 --with-openssl=dir use openssl in dir 1039 --with-openssl-lib=dir use openssl libraries in dir 1040 --with-openssl-include=dir 1041 use openssl headers in dir 1042 --without-ipv6 do not enable IPv6 support 1043 --with-readline=dir use readline in dir 1044 --with-readline-lib=dir use readline libraries in dir 1045 --with-readline-include=dir 1046 use readline headers in dir 1047 --with-readline-config=path 1048 config program for readline 1049 --with-hesiod=dir use hesiod in dir 1050 --with-hesiod-lib=dir use hesiod libraries in dir 1051 --with-hesiod-include=dir 1052 use hesiod headers in dir 1053 --with-hesiod-config=path 1054 config program for hesiod 1055 --with-x use the X Window System 1056 1057Some influential environment variables: 1058 CC C compiler command 1059 CFLAGS C compiler flags 1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1061 nonstandard directory <lib dir> 1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1063 headers in a nonstandard directory <include dir> 1064 CPP C preprocessor 1065 1066Use these variables to override the choices made by `configure' or to help 1067it to find libraries and programs with nonstandard names/locations. 1068 1069Report bugs to <heimdal-bugs@pdc.kth.se>. 1070_ACEOF 1071fi 1072 1073if test "$ac_init_help" = "recursive"; then 1074 # If there are subdirs, report their specific --help. 1075 ac_popdir=`pwd` 1076 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1077 test -d $ac_dir || continue 1078 ac_builddir=. 1079 1080if test "$ac_dir" != .; then 1081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1082 # A "../" for each directory in $ac_dir_suffix. 1083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1084else 1085 ac_dir_suffix= ac_top_builddir= 1086fi 1087 1088case $srcdir in 1089 .) # No --srcdir option. We are building in place. 1090 ac_srcdir=. 1091 if test -z "$ac_top_builddir"; then 1092 ac_top_srcdir=. 1093 else 1094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1095 fi ;; 1096 [\\/]* | ?:[\\/]* ) # Absolute path. 1097 ac_srcdir=$srcdir$ac_dir_suffix; 1098 ac_top_srcdir=$srcdir ;; 1099 *) # Relative path. 1100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1101 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1102esac 1103# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 1104# absolute. 1105ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 1106ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 1107ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 1108ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 1109 1110 cd $ac_dir 1111 # Check for guested configure; otherwise get Cygnus style configure. 1112 if test -f $ac_srcdir/configure.gnu; then 1113 echo 1114 $SHELL $ac_srcdir/configure.gnu --help=recursive 1115 elif test -f $ac_srcdir/configure; then 1116 echo 1117 $SHELL $ac_srcdir/configure --help=recursive 1118 elif test -f $ac_srcdir/configure.ac || 1119 test -f $ac_srcdir/configure.in; then 1120 echo 1121 $ac_configure --help 1122 else 1123 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1124 fi 1125 cd $ac_popdir 1126 done 1127fi 1128 1129test -n "$ac_init_help" && exit 0 1130if $ac_init_version; then 1131 cat <<\_ACEOF
|
1130Heimdal configure 0.5.1
| 1132Heimdal configure 0.6
|
1131generated by GNU Autoconf 2.53 1132 1133Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1134Free Software Foundation, Inc. 1135This configure script is free software; the Free Software Foundation 1136gives unlimited permission to copy, distribute and modify it. 1137_ACEOF 1138 exit 0 1139fi 1140exec 5>config.log 1141cat >&5 <<_ACEOF 1142This file contains any messages produced by compilers while 1143running configure, to aid debugging if configure makes a mistake. 1144
| 1133generated by GNU Autoconf 2.53 1134 1135Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 1136Free Software Foundation, Inc. 1137This configure script is free software; the Free Software Foundation 1138gives unlimited permission to copy, distribute and modify it. 1139_ACEOF 1140 exit 0 1141fi 1142exec 5>config.log 1143cat >&5 <<_ACEOF 1144This file contains any messages produced by compilers while 1145running configure, to aid debugging if configure makes a mistake. 1146
|
1145It was created by Heimdal $as_me 0.5.1, which was
| 1147It was created by Heimdal $as_me 0.6, which was
|
1146generated by GNU Autoconf 2.53. Invocation command line was 1147 1148 $ $0 $@ 1149 1150_ACEOF 1151{ 1152cat <<_ASUNAME 1153## --------- ## 1154## Platform. ## 1155## --------- ## 1156 1157hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1158uname -m = `(uname -m) 2>/dev/null || echo unknown` 1159uname -r = `(uname -r) 2>/dev/null || echo unknown` 1160uname -s = `(uname -s) 2>/dev/null || echo unknown` 1161uname -v = `(uname -v) 2>/dev/null || echo unknown` 1162 1163/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1164/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1165 1166/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1167/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1168/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1169hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1170/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1171/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1172/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1173 1174_ASUNAME 1175 1176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1177for as_dir in $PATH 1178do 1179 IFS=$as_save_IFS 1180 test -z "$as_dir" && as_dir=. 1181 echo "PATH: $as_dir" 1182done 1183 1184} >&5 1185 1186cat >&5 <<_ACEOF 1187 1188 1189## ----------- ## 1190## Core tests. ## 1191## ----------- ## 1192 1193_ACEOF 1194 1195 1196# Keep a trace of the command line. 1197# Strip out --no-create and --no-recursion so they do not pile up. 1198# Also quote any args containing shell meta-characters. 1199ac_configure_args= 1200ac_sep= 1201for ac_arg 1202do 1203 case $ac_arg in 1204 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1205 | --no-cr | --no-c | -n ) continue ;; 1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1208 continue ;; 1209 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1210 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1211 esac 1212 case " $ac_configure_args " in 1213 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1214 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1215 ac_sep=" " ;; 1216 esac 1217 # Get rid of the leading space. 1218done 1219 1220# When interrupted or exit'd, cleanup temporary files, and complete 1221# config.log. We remove comments because anyway the quotes in there 1222# would cause problems or look ugly. 1223# WARNING: Be sure not to use single quotes in there, as some shells, 1224# such as our DU 5.0 friend, will then `close' the trap. 1225trap 'exit_status=$? 1226 # Save into config.log some information that might help in debugging. 1227 { 1228 echo 1229 cat <<\_ASBOX 1230## ---------------- ## 1231## Cache variables. ## 1232## ---------------- ## 1233_ASBOX 1234 echo 1235 # The following way of writing the cache mishandles newlines in values, 1236{ 1237 (set) 2>&1 | 1238 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1239 *ac_space=\ *) 1240 sed -n \ 1241 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1243 ;; 1244 *) 1245 sed -n \ 1246 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1247 ;; 1248 esac; 1249} 1250 echo 1251 if test -s confdefs.h; then 1252 cat <<\_ASBOX 1253## ----------- ## 1254## confdefs.h. ## 1255## ----------- ## 1256_ASBOX 1257 echo 1258 sed "/^$/d" confdefs.h 1259 echo 1260 fi 1261 test "$ac_signal" != 0 && 1262 echo "$as_me: caught signal $ac_signal" 1263 echo "$as_me: exit $exit_status" 1264 } >&5 1265 rm -f core core.* *.core && 1266 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1267 exit $exit_status 1268 ' 0 1269for ac_signal in 1 2 13 15; do 1270 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1271done 1272ac_signal=0 1273 1274# confdefs.h avoids OS command line length limits that DEFS can exceed. 1275rm -rf conftest* confdefs.h 1276# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1277echo >confdefs.h 1278 1279# Predefined preprocessor variables. 1280 1281cat >>confdefs.h <<_ACEOF 1282#define PACKAGE_NAME "$PACKAGE_NAME" 1283_ACEOF 1284 1285 1286cat >>confdefs.h <<_ACEOF 1287#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1288_ACEOF 1289 1290 1291cat >>confdefs.h <<_ACEOF 1292#define PACKAGE_VERSION "$PACKAGE_VERSION" 1293_ACEOF 1294 1295 1296cat >>confdefs.h <<_ACEOF 1297#define PACKAGE_STRING "$PACKAGE_STRING" 1298_ACEOF 1299 1300 1301cat >>confdefs.h <<_ACEOF 1302#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1303_ACEOF 1304 1305 1306# Let the site file select an alternate cache file if it wants to. 1307# Prefer explicitly selected file to automatically selected ones. 1308if test -z "$CONFIG_SITE"; then 1309 if test "x$prefix" != xNONE; then 1310 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1311 else 1312 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1313 fi 1314fi 1315for ac_site_file in $CONFIG_SITE; do 1316 if test -r "$ac_site_file"; then 1317 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1318echo "$as_me: loading site script $ac_site_file" >&6;} 1319 sed 's/^/| /' "$ac_site_file" >&5 1320 . "$ac_site_file" 1321 fi 1322done 1323 1324if test -r "$cache_file"; then 1325 # Some versions of bash will fail to source /dev/null (special 1326 # files actually), so we avoid doing that. 1327 if test -f "$cache_file"; then 1328 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1329echo "$as_me: loading cache $cache_file" >&6;} 1330 case $cache_file in 1331 [\\/]* | ?:[\\/]* ) . $cache_file;; 1332 *) . ./$cache_file;; 1333 esac 1334 fi 1335else 1336 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1337echo "$as_me: creating cache $cache_file" >&6;} 1338 >$cache_file 1339fi 1340 1341# Check that the precious variables saved in the cache have kept the same 1342# value. 1343ac_cache_corrupted=false 1344for ac_var in `(set) 2>&1 | 1345 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1346 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1347 eval ac_new_set=\$ac_env_${ac_var}_set 1348 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1349 eval ac_new_val="\$ac_env_${ac_var}_value" 1350 case $ac_old_set,$ac_new_set in 1351 set,) 1352 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1353echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1354 ac_cache_corrupted=: ;; 1355 ,set) 1356 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1357echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1358 ac_cache_corrupted=: ;; 1359 ,);; 1360 *) 1361 if test "x$ac_old_val" != "x$ac_new_val"; then 1362 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1363echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1364 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1365echo "$as_me: former value: $ac_old_val" >&2;} 1366 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1367echo "$as_me: current value: $ac_new_val" >&2;} 1368 ac_cache_corrupted=: 1369 fi;; 1370 esac 1371 # Pass precious variables to config.status. 1372 if test "$ac_new_set" = set; then 1373 case $ac_new_val in 1374 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1375 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1376 *) ac_arg=$ac_var=$ac_new_val ;; 1377 esac 1378 case " $ac_configure_args " in 1379 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1380 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1381 esac 1382 fi 1383done 1384if $ac_cache_corrupted; then 1385 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1386echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1387 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1388echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1389 { (exit 1); exit 1; }; } 1390fi 1391 1392ac_ext=c 1393ac_cpp='$CPP $CPPFLAGS' 1394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1396ac_compiler_gnu=$ac_cv_c_compiler_gnu 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424# Add the stamp file to the list of files AC keeps track of, 1425# along with our hook. 1426ac_config_headers="$ac_config_headers include/config.h" 1427 1428 1429 1430 1431ac_ext=c 1432ac_cpp='$CPP $CPPFLAGS' 1433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1435ac_compiler_gnu=$ac_cv_c_compiler_gnu 1436if test -n "$ac_tool_prefix"; then 1437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1438set dummy ${ac_tool_prefix}gcc; ac_word=$2 1439echo "$as_me:$LINENO: checking for $ac_word" >&5 1440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1441if test "${ac_cv_prog_CC+set}" = set; then 1442 echo $ECHO_N "(cached) $ECHO_C" >&6 1443else 1444 if test -n "$CC"; then 1445 ac_cv_prog_CC="$CC" # Let the user override the test. 1446else 1447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1448for as_dir in $PATH 1449do 1450 IFS=$as_save_IFS 1451 test -z "$as_dir" && as_dir=. 1452 for ac_exec_ext in '' $ac_executable_extensions; do 1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1454 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1456 break 2 1457 fi 1458done 1459done 1460 1461fi 1462fi 1463CC=$ac_cv_prog_CC 1464if test -n "$CC"; then 1465 echo "$as_me:$LINENO: result: $CC" >&5 1466echo "${ECHO_T}$CC" >&6 1467else 1468 echo "$as_me:$LINENO: result: no" >&5 1469echo "${ECHO_T}no" >&6 1470fi 1471 1472fi 1473if test -z "$ac_cv_prog_CC"; then 1474 ac_ct_CC=$CC 1475 # Extract the first word of "gcc", so it can be a program name with args. 1476set dummy gcc; ac_word=$2 1477echo "$as_me:$LINENO: checking for $ac_word" >&5 1478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1479if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1480 echo $ECHO_N "(cached) $ECHO_C" >&6 1481else 1482 if test -n "$ac_ct_CC"; then 1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1484else 1485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1486for as_dir in $PATH 1487do 1488 IFS=$as_save_IFS 1489 test -z "$as_dir" && as_dir=. 1490 for ac_exec_ext in '' $ac_executable_extensions; do 1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1492 ac_cv_prog_ac_ct_CC="gcc" 1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1494 break 2 1495 fi 1496done 1497done 1498 1499fi 1500fi 1501ac_ct_CC=$ac_cv_prog_ac_ct_CC 1502if test -n "$ac_ct_CC"; then 1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1504echo "${ECHO_T}$ac_ct_CC" >&6 1505else 1506 echo "$as_me:$LINENO: result: no" >&5 1507echo "${ECHO_T}no" >&6 1508fi 1509 1510 CC=$ac_ct_CC 1511else 1512 CC="$ac_cv_prog_CC" 1513fi 1514 1515if test -z "$CC"; then 1516 if test -n "$ac_tool_prefix"; then 1517 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1518set dummy ${ac_tool_prefix}cc; ac_word=$2 1519echo "$as_me:$LINENO: checking for $ac_word" >&5 1520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1521if test "${ac_cv_prog_CC+set}" = set; then 1522 echo $ECHO_N "(cached) $ECHO_C" >&6 1523else 1524 if test -n "$CC"; then 1525 ac_cv_prog_CC="$CC" # Let the user override the test. 1526else 1527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1528for as_dir in $PATH 1529do 1530 IFS=$as_save_IFS 1531 test -z "$as_dir" && as_dir=. 1532 for ac_exec_ext in '' $ac_executable_extensions; do 1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1534 ac_cv_prog_CC="${ac_tool_prefix}cc" 1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1536 break 2 1537 fi 1538done 1539done 1540 1541fi 1542fi 1543CC=$ac_cv_prog_CC 1544if test -n "$CC"; then 1545 echo "$as_me:$LINENO: result: $CC" >&5 1546echo "${ECHO_T}$CC" >&6 1547else 1548 echo "$as_me:$LINENO: result: no" >&5 1549echo "${ECHO_T}no" >&6 1550fi 1551 1552fi 1553if test -z "$ac_cv_prog_CC"; then 1554 ac_ct_CC=$CC 1555 # Extract the first word of "cc", so it can be a program name with args. 1556set dummy cc; ac_word=$2 1557echo "$as_me:$LINENO: checking for $ac_word" >&5 1558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1560 echo $ECHO_N "(cached) $ECHO_C" >&6 1561else 1562 if test -n "$ac_ct_CC"; then 1563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1564else 1565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1566for as_dir in $PATH 1567do 1568 IFS=$as_save_IFS 1569 test -z "$as_dir" && as_dir=. 1570 for ac_exec_ext in '' $ac_executable_extensions; do 1571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1572 ac_cv_prog_ac_ct_CC="cc" 1573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1574 break 2 1575 fi 1576done 1577done 1578 1579fi 1580fi 1581ac_ct_CC=$ac_cv_prog_ac_ct_CC 1582if test -n "$ac_ct_CC"; then 1583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1584echo "${ECHO_T}$ac_ct_CC" >&6 1585else 1586 echo "$as_me:$LINENO: result: no" >&5 1587echo "${ECHO_T}no" >&6 1588fi 1589 1590 CC=$ac_ct_CC 1591else 1592 CC="$ac_cv_prog_CC" 1593fi 1594 1595fi 1596if test -z "$CC"; then 1597 # Extract the first word of "cc", so it can be a program name with args. 1598set dummy cc; ac_word=$2 1599echo "$as_me:$LINENO: checking for $ac_word" >&5 1600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1601if test "${ac_cv_prog_CC+set}" = set; then 1602 echo $ECHO_N "(cached) $ECHO_C" >&6 1603else 1604 if test -n "$CC"; then 1605 ac_cv_prog_CC="$CC" # Let the user override the test. 1606else 1607 ac_prog_rejected=no 1608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1609for as_dir in $PATH 1610do 1611 IFS=$as_save_IFS 1612 test -z "$as_dir" && as_dir=. 1613 for ac_exec_ext in '' $ac_executable_extensions; do 1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1615 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1616 ac_prog_rejected=yes 1617 continue 1618 fi 1619 ac_cv_prog_CC="cc" 1620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1621 break 2 1622 fi 1623done 1624done 1625 1626if test $ac_prog_rejected = yes; then 1627 # We found a bogon in the path, so make sure we never use it. 1628 set dummy $ac_cv_prog_CC 1629 shift 1630 if test $# != 0; then 1631 # We chose a different compiler from the bogus one. 1632 # However, it has the same basename, so the bogon will be chosen 1633 # first if we set CC to just the basename; use the full file name. 1634 shift 1635 set dummy "$as_dir/$ac_word" ${1+"$@"} 1636 shift 1637 ac_cv_prog_CC="$@" 1638 fi 1639fi 1640fi 1641fi 1642CC=$ac_cv_prog_CC 1643if test -n "$CC"; then 1644 echo "$as_me:$LINENO: result: $CC" >&5 1645echo "${ECHO_T}$CC" >&6 1646else 1647 echo "$as_me:$LINENO: result: no" >&5 1648echo "${ECHO_T}no" >&6 1649fi 1650 1651fi 1652if test -z "$CC"; then 1653 if test -n "$ac_tool_prefix"; then 1654 for ac_prog in cl 1655 do 1656 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1657set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1658echo "$as_me:$LINENO: checking for $ac_word" >&5 1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1660if test "${ac_cv_prog_CC+set}" = set; then 1661 echo $ECHO_N "(cached) $ECHO_C" >&6 1662else 1663 if test -n "$CC"; then 1664 ac_cv_prog_CC="$CC" # Let the user override the test. 1665else 1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1667for as_dir in $PATH 1668do 1669 IFS=$as_save_IFS 1670 test -z "$as_dir" && as_dir=. 1671 for ac_exec_ext in '' $ac_executable_extensions; do 1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1673 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1675 break 2 1676 fi 1677done 1678done 1679 1680fi 1681fi 1682CC=$ac_cv_prog_CC 1683if test -n "$CC"; then 1684 echo "$as_me:$LINENO: result: $CC" >&5 1685echo "${ECHO_T}$CC" >&6 1686else 1687 echo "$as_me:$LINENO: result: no" >&5 1688echo "${ECHO_T}no" >&6 1689fi 1690 1691 test -n "$CC" && break 1692 done 1693fi 1694if test -z "$CC"; then 1695 ac_ct_CC=$CC 1696 for ac_prog in cl 1697do 1698 # Extract the first word of "$ac_prog", so it can be a program name with args. 1699set dummy $ac_prog; ac_word=$2 1700echo "$as_me:$LINENO: checking for $ac_word" >&5 1701echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1702if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1703 echo $ECHO_N "(cached) $ECHO_C" >&6 1704else 1705 if test -n "$ac_ct_CC"; then 1706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1707else 1708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1709for as_dir in $PATH 1710do 1711 IFS=$as_save_IFS 1712 test -z "$as_dir" && as_dir=. 1713 for ac_exec_ext in '' $ac_executable_extensions; do 1714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1715 ac_cv_prog_ac_ct_CC="$ac_prog" 1716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1717 break 2 1718 fi 1719done 1720done 1721 1722fi 1723fi 1724ac_ct_CC=$ac_cv_prog_ac_ct_CC 1725if test -n "$ac_ct_CC"; then 1726 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1727echo "${ECHO_T}$ac_ct_CC" >&6 1728else 1729 echo "$as_me:$LINENO: result: no" >&5 1730echo "${ECHO_T}no" >&6 1731fi 1732 1733 test -n "$ac_ct_CC" && break 1734done 1735 1736 CC=$ac_ct_CC 1737fi 1738 1739fi 1740 1741 1742test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 1743echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 1744 { (exit 1); exit 1; }; } 1745 1746# Provide some information about the compiler. 1747echo "$as_me:$LINENO:" \ 1748 "checking for C compiler version" >&5 1749ac_compiler=`set X $ac_compile; echo $2` 1750{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1751 (eval $ac_compiler --version </dev/null >&5) 2>&5 1752 ac_status=$? 1753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1754 (exit $ac_status); } 1755{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1756 (eval $ac_compiler -v </dev/null >&5) 2>&5 1757 ac_status=$? 1758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1759 (exit $ac_status); } 1760{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1761 (eval $ac_compiler -V </dev/null >&5) 2>&5 1762 ac_status=$? 1763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1764 (exit $ac_status); } 1765 1766cat >conftest.$ac_ext <<_ACEOF 1767#line $LINENO "configure" 1768#include "confdefs.h" 1769 1770#ifdef F77_DUMMY_MAIN 1771# ifdef __cplusplus 1772 extern "C" 1773# endif 1774 int F77_DUMMY_MAIN() { return 1; } 1775#endif 1776int 1777main () 1778{ 1779 1780 ; 1781 return 0; 1782} 1783_ACEOF 1784ac_clean_files_save=$ac_clean_files 1785ac_clean_files="$ac_clean_files a.out a.exe" 1786# Try to create an executable without -o first, disregard a.out. 1787# It will help us diagnose broken compilers, and finding out an intuition 1788# of exeext. 1789echo "$as_me:$LINENO: checking for C compiler default output" >&5 1790echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1791ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1792if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1793 (eval $ac_link_default) 2>&5 1794 ac_status=$? 1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1796 (exit $ac_status); }; then 1797 # Find the output, starting from the most likely. This scheme is 1798# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1799# resort. 1800 1801# Be careful to initialize this variable, since it used to be cached. 1802# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1803ac_cv_exeext= 1804for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 1805 ls a.out conftest 2>/dev/null; 1806 ls a.* conftest.* 2>/dev/null`; do 1807 case $ac_file in 1808 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; 1809 a.out ) # We found the default executable, but exeext='' is most 1810 # certainly right. 1811 break;; 1812 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1813 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1814 export ac_cv_exeext 1815 break;; 1816 * ) break;; 1817 esac 1818done 1819else 1820 echo "$as_me: failed program was:" >&5 1821cat conftest.$ac_ext >&5 1822{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 1823echo "$as_me: error: C compiler cannot create executables" >&2;} 1824 { (exit 77); exit 77; }; } 1825fi 1826 1827ac_exeext=$ac_cv_exeext 1828echo "$as_me:$LINENO: result: $ac_file" >&5 1829echo "${ECHO_T}$ac_file" >&6 1830 1831# Check the compiler produces executables we can run. If not, either 1832# the compiler is broken, or we cross compile. 1833echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1834echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1835# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1836# If not cross compiling, check that we can run a simple program. 1837if test "$cross_compiling" != yes; then 1838 if { ac_try='./$ac_file' 1839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1840 (eval $ac_try) 2>&5 1841 ac_status=$? 1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1843 (exit $ac_status); }; }; then 1844 cross_compiling=no 1845 else 1846 if test "$cross_compiling" = maybe; then 1847 cross_compiling=yes 1848 else 1849 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1850If you meant to cross compile, use \`--host'." >&5 1851echo "$as_me: error: cannot run C compiled programs. 1852If you meant to cross compile, use \`--host'." >&2;} 1853 { (exit 1); exit 1; }; } 1854 fi 1855 fi 1856fi 1857echo "$as_me:$LINENO: result: yes" >&5 1858echo "${ECHO_T}yes" >&6 1859 1860rm -f a.out a.exe conftest$ac_cv_exeext 1861ac_clean_files=$ac_clean_files_save 1862# Check the compiler produces executables we can run. If not, either 1863# the compiler is broken, or we cross compile. 1864echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1865echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1866echo "$as_me:$LINENO: result: $cross_compiling" >&5 1867echo "${ECHO_T}$cross_compiling" >&6 1868 1869echo "$as_me:$LINENO: checking for suffix of executables" >&5 1870echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1872 (eval $ac_link) 2>&5 1873 ac_status=$? 1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1875 (exit $ac_status); }; then 1876 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1877# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1878# work properly (i.e., refer to `conftest.exe'), while it won't with 1879# `rm'. 1880for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1881 case $ac_file in 1882 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1884 export ac_cv_exeext 1885 break;; 1886 * ) break;; 1887 esac 1888done 1889else 1890 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 1891echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 1892 { (exit 1); exit 1; }; } 1893fi 1894 1895rm -f conftest$ac_cv_exeext 1896echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1897echo "${ECHO_T}$ac_cv_exeext" >&6 1898 1899rm -f conftest.$ac_ext 1900EXEEXT=$ac_cv_exeext 1901ac_exeext=$EXEEXT 1902echo "$as_me:$LINENO: checking for suffix of object files" >&5 1903echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1904if test "${ac_cv_objext+set}" = set; then 1905 echo $ECHO_N "(cached) $ECHO_C" >&6 1906else 1907 cat >conftest.$ac_ext <<_ACEOF 1908#line $LINENO "configure" 1909#include "confdefs.h" 1910 1911#ifdef F77_DUMMY_MAIN 1912# ifdef __cplusplus 1913 extern "C" 1914# endif 1915 int F77_DUMMY_MAIN() { return 1; } 1916#endif 1917int 1918main () 1919{ 1920 1921 ; 1922 return 0; 1923} 1924_ACEOF 1925rm -f conftest.o conftest.obj 1926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1927 (eval $ac_compile) 2>&5 1928 ac_status=$? 1929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1930 (exit $ac_status); }; then 1931 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1932 case $ac_file in 1933 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1934 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1935 break;; 1936 esac 1937done 1938else 1939 echo "$as_me: failed program was:" >&5 1940cat conftest.$ac_ext >&5 1941{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 1942echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 1943 { (exit 1); exit 1; }; } 1944fi 1945 1946rm -f conftest.$ac_cv_objext conftest.$ac_ext 1947fi 1948echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1949echo "${ECHO_T}$ac_cv_objext" >&6 1950OBJEXT=$ac_cv_objext 1951ac_objext=$OBJEXT 1952echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1953echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1954if test "${ac_cv_c_compiler_gnu+set}" = set; then 1955 echo $ECHO_N "(cached) $ECHO_C" >&6 1956else 1957 cat >conftest.$ac_ext <<_ACEOF 1958#line $LINENO "configure" 1959#include "confdefs.h" 1960 1961#ifdef F77_DUMMY_MAIN 1962# ifdef __cplusplus 1963 extern "C" 1964# endif 1965 int F77_DUMMY_MAIN() { return 1; } 1966#endif 1967int 1968main () 1969{ 1970#ifndef __GNUC__ 1971 choke me 1972#endif 1973 1974 ; 1975 return 0; 1976} 1977_ACEOF 1978rm -f conftest.$ac_objext 1979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1980 (eval $ac_compile) 2>&5 1981 ac_status=$? 1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1983 (exit $ac_status); } && 1984 { ac_try='test -s conftest.$ac_objext' 1985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1986 (eval $ac_try) 2>&5 1987 ac_status=$? 1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1989 (exit $ac_status); }; }; then 1990 ac_compiler_gnu=yes 1991else 1992 echo "$as_me: failed program was:" >&5 1993cat conftest.$ac_ext >&5 1994ac_compiler_gnu=no 1995fi 1996rm -f conftest.$ac_objext conftest.$ac_ext 1997ac_cv_c_compiler_gnu=$ac_compiler_gnu 1998 1999fi 2000echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2001echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2002GCC=`test $ac_compiler_gnu = yes && echo yes` 2003ac_test_CFLAGS=${CFLAGS+set} 2004ac_save_CFLAGS=$CFLAGS 2005CFLAGS="-g" 2006echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2007echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2008if test "${ac_cv_prog_cc_g+set}" = set; then 2009 echo $ECHO_N "(cached) $ECHO_C" >&6 2010else 2011 cat >conftest.$ac_ext <<_ACEOF 2012#line $LINENO "configure" 2013#include "confdefs.h" 2014 2015#ifdef F77_DUMMY_MAIN 2016# ifdef __cplusplus 2017 extern "C" 2018# endif 2019 int F77_DUMMY_MAIN() { return 1; } 2020#endif 2021int 2022main () 2023{ 2024 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029rm -f conftest.$ac_objext 2030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2031 (eval $ac_compile) 2>&5 2032 ac_status=$? 2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2034 (exit $ac_status); } && 2035 { ac_try='test -s conftest.$ac_objext' 2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2037 (eval $ac_try) 2>&5 2038 ac_status=$? 2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2040 (exit $ac_status); }; }; then 2041 ac_cv_prog_cc_g=yes 2042else 2043 echo "$as_me: failed program was:" >&5 2044cat conftest.$ac_ext >&5 2045ac_cv_prog_cc_g=no 2046fi 2047rm -f conftest.$ac_objext conftest.$ac_ext 2048fi 2049echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2050echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2051if test "$ac_test_CFLAGS" = set; then 2052 CFLAGS=$ac_save_CFLAGS 2053elif test $ac_cv_prog_cc_g = yes; then 2054 if test "$GCC" = yes; then 2055 CFLAGS="-g -O2" 2056 else 2057 CFLAGS="-g" 2058 fi 2059else 2060 if test "$GCC" = yes; then 2061 CFLAGS="-O2" 2062 else 2063 CFLAGS= 2064 fi 2065fi 2066# Some people use a C++ compiler to compile C. Since we use `exit', 2067# in C++ we need to declare it. In case someone uses the same compiler 2068# for both compiling C and C++ we need to have the C++ compiler decide 2069# the declaration of exit, since it's the most demanding environment. 2070cat >conftest.$ac_ext <<_ACEOF 2071#ifndef __cplusplus 2072 choke me 2073#endif 2074_ACEOF 2075rm -f conftest.$ac_objext 2076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2077 (eval $ac_compile) 2>&5 2078 ac_status=$? 2079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2080 (exit $ac_status); } && 2081 { ac_try='test -s conftest.$ac_objext' 2082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2083 (eval $ac_try) 2>&5 2084 ac_status=$? 2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2086 (exit $ac_status); }; }; then 2087 for ac_declaration in \ 2088 ''\ 2089 '#include <stdlib.h>' \ 2090 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2091 'extern "C" void std::exit (int); using std::exit;' \ 2092 'extern "C" void exit (int) throw ();' \ 2093 'extern "C" void exit (int);' \ 2094 'void exit (int);' 2095do 2096 cat >conftest.$ac_ext <<_ACEOF 2097#line $LINENO "configure" 2098#include "confdefs.h" 2099#include <stdlib.h> 2100$ac_declaration 2101#ifdef F77_DUMMY_MAIN 2102# ifdef __cplusplus 2103 extern "C" 2104# endif 2105 int F77_DUMMY_MAIN() { return 1; } 2106#endif 2107int 2108main () 2109{ 2110exit (42); 2111 ; 2112 return 0; 2113} 2114_ACEOF 2115rm -f conftest.$ac_objext 2116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2117 (eval $ac_compile) 2>&5 2118 ac_status=$? 2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2120 (exit $ac_status); } && 2121 { ac_try='test -s conftest.$ac_objext' 2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2123 (eval $ac_try) 2>&5 2124 ac_status=$? 2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2126 (exit $ac_status); }; }; then 2127 : 2128else 2129 echo "$as_me: failed program was:" >&5 2130cat conftest.$ac_ext >&5 2131continue 2132fi 2133rm -f conftest.$ac_objext conftest.$ac_ext 2134 cat >conftest.$ac_ext <<_ACEOF 2135#line $LINENO "configure" 2136#include "confdefs.h" 2137$ac_declaration 2138#ifdef F77_DUMMY_MAIN 2139# ifdef __cplusplus 2140 extern "C" 2141# endif 2142 int F77_DUMMY_MAIN() { return 1; } 2143#endif 2144int 2145main () 2146{ 2147exit (42); 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152rm -f conftest.$ac_objext 2153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2154 (eval $ac_compile) 2>&5 2155 ac_status=$? 2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2157 (exit $ac_status); } && 2158 { ac_try='test -s conftest.$ac_objext' 2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2160 (eval $ac_try) 2>&5 2161 ac_status=$? 2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2163 (exit $ac_status); }; }; then 2164 break 2165else 2166 echo "$as_me: failed program was:" >&5 2167cat conftest.$ac_ext >&5 2168fi 2169rm -f conftest.$ac_objext conftest.$ac_ext 2170done 2171rm -f conftest* 2172if test -n "$ac_declaration"; then 2173 echo '#ifdef __cplusplus' >>confdefs.h 2174 echo $ac_declaration >>confdefs.h 2175 echo '#endif' >>confdefs.h 2176fi 2177 2178else 2179 echo "$as_me: failed program was:" >&5 2180cat conftest.$ac_ext >&5 2181fi 2182rm -f conftest.$ac_objext conftest.$ac_ext 2183ac_ext=c 2184ac_cpp='$CPP $CPPFLAGS' 2185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2187ac_compiler_gnu=$ac_cv_c_compiler_gnu 2188 2189ac_ext=c 2190ac_cpp='$CPP $CPPFLAGS' 2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2193ac_compiler_gnu=$ac_cv_c_compiler_gnu 2194echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2195echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2196# On Suns, sometimes $CPP names a directory. 2197if test -n "$CPP" && test -d "$CPP"; then 2198 CPP= 2199fi 2200if test -z "$CPP"; then 2201 if test "${ac_cv_prog_CPP+set}" = set; then 2202 echo $ECHO_N "(cached) $ECHO_C" >&6 2203else 2204 # Double quotes because CPP needs to be expanded 2205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2206 do 2207 ac_preproc_ok=false 2208for ac_c_preproc_warn_flag in '' yes 2209do 2210 # Use a header file that comes with gcc, so configuring glibc 2211 # with a fresh cross-compiler works. 2212 # On the NeXT, cc -E runs the code through the compiler's parser, 2213 # not just through cpp. "Syntax error" is here to catch this case. 2214 cat >conftest.$ac_ext <<_ACEOF 2215#line $LINENO "configure" 2216#include "confdefs.h" 2217#include <assert.h> 2218 Syntax error 2219_ACEOF 2220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2222 ac_status=$? 2223 egrep -v '^ *\+' conftest.er1 >conftest.err 2224 rm -f conftest.er1 2225 cat conftest.err >&5 2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2227 (exit $ac_status); } >/dev/null; then 2228 if test -s conftest.err; then 2229 ac_cpp_err=$ac_c_preproc_warn_flag 2230 else 2231 ac_cpp_err= 2232 fi 2233else 2234 ac_cpp_err=yes 2235fi 2236if test -z "$ac_cpp_err"; then 2237 : 2238else 2239 echo "$as_me: failed program was:" >&5 2240 cat conftest.$ac_ext >&5 2241 # Broken: fails on valid input. 2242continue 2243fi 2244rm -f conftest.err conftest.$ac_ext 2245 2246 # OK, works on sane cases. Now check whether non-existent headers 2247 # can be detected and how. 2248 cat >conftest.$ac_ext <<_ACEOF 2249#line $LINENO "configure" 2250#include "confdefs.h" 2251#include <ac_nonexistent.h> 2252_ACEOF 2253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2254 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2255 ac_status=$? 2256 egrep -v '^ *\+' conftest.er1 >conftest.err 2257 rm -f conftest.er1 2258 cat conftest.err >&5 2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2260 (exit $ac_status); } >/dev/null; then 2261 if test -s conftest.err; then 2262 ac_cpp_err=$ac_c_preproc_warn_flag 2263 else 2264 ac_cpp_err= 2265 fi 2266else 2267 ac_cpp_err=yes 2268fi 2269if test -z "$ac_cpp_err"; then 2270 # Broken: success on invalid input. 2271continue 2272else 2273 echo "$as_me: failed program was:" >&5 2274 cat conftest.$ac_ext >&5 2275 # Passes both tests. 2276ac_preproc_ok=: 2277break 2278fi 2279rm -f conftest.err conftest.$ac_ext 2280 2281done 2282# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2283rm -f conftest.err conftest.$ac_ext 2284if $ac_preproc_ok; then 2285 break 2286fi 2287 2288 done 2289 ac_cv_prog_CPP=$CPP 2290 2291fi 2292 CPP=$ac_cv_prog_CPP 2293else 2294 ac_cv_prog_CPP=$CPP 2295fi 2296echo "$as_me:$LINENO: result: $CPP" >&5 2297echo "${ECHO_T}$CPP" >&6 2298ac_preproc_ok=false 2299for ac_c_preproc_warn_flag in '' yes 2300do 2301 # Use a header file that comes with gcc, so configuring glibc 2302 # with a fresh cross-compiler works. 2303 # On the NeXT, cc -E runs the code through the compiler's parser, 2304 # not just through cpp. "Syntax error" is here to catch this case. 2305 cat >conftest.$ac_ext <<_ACEOF 2306#line $LINENO "configure" 2307#include "confdefs.h" 2308#include <assert.h> 2309 Syntax error 2310_ACEOF 2311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2313 ac_status=$? 2314 egrep -v '^ *\+' conftest.er1 >conftest.err 2315 rm -f conftest.er1 2316 cat conftest.err >&5 2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2318 (exit $ac_status); } >/dev/null; then 2319 if test -s conftest.err; then 2320 ac_cpp_err=$ac_c_preproc_warn_flag 2321 else 2322 ac_cpp_err= 2323 fi 2324else 2325 ac_cpp_err=yes 2326fi 2327if test -z "$ac_cpp_err"; then 2328 : 2329else 2330 echo "$as_me: failed program was:" >&5 2331 cat conftest.$ac_ext >&5 2332 # Broken: fails on valid input. 2333continue 2334fi 2335rm -f conftest.err conftest.$ac_ext 2336 2337 # OK, works on sane cases. Now check whether non-existent headers 2338 # can be detected and how. 2339 cat >conftest.$ac_ext <<_ACEOF 2340#line $LINENO "configure" 2341#include "confdefs.h" 2342#include <ac_nonexistent.h> 2343_ACEOF 2344if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2346 ac_status=$? 2347 egrep -v '^ *\+' conftest.er1 >conftest.err 2348 rm -f conftest.er1 2349 cat conftest.err >&5 2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2351 (exit $ac_status); } >/dev/null; then 2352 if test -s conftest.err; then 2353 ac_cpp_err=$ac_c_preproc_warn_flag 2354 else 2355 ac_cpp_err= 2356 fi 2357else 2358 ac_cpp_err=yes 2359fi 2360if test -z "$ac_cpp_err"; then 2361 # Broken: success on invalid input. 2362continue 2363else 2364 echo "$as_me: failed program was:" >&5 2365 cat conftest.$ac_ext >&5 2366 # Passes both tests. 2367ac_preproc_ok=: 2368break 2369fi 2370rm -f conftest.err conftest.$ac_ext 2371 2372done 2373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2374rm -f conftest.err conftest.$ac_ext 2375if $ac_preproc_ok; then 2376 : 2377else 2378 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 2379echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2380 { (exit 1); exit 1; }; } 2381fi 2382 2383ac_ext=c 2384ac_cpp='$CPP $CPPFLAGS' 2385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2387ac_compiler_gnu=$ac_cv_c_compiler_gnu 2388 2389 2390echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2391echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2392if test "${ac_cv_prog_cc_stdc+set}" = set; then 2393 echo $ECHO_N "(cached) $ECHO_C" >&6 2394else 2395 ac_cv_prog_cc_stdc=no 2396ac_save_CC=$CC 2397cat >conftest.$ac_ext <<_ACEOF 2398#line $LINENO "configure" 2399#include "confdefs.h" 2400#include <stdarg.h> 2401#include <stdio.h> 2402#include <sys/types.h> 2403#include <sys/stat.h> 2404/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2405struct buf { int x; }; 2406FILE * (*rcsopen) (struct buf *, struct stat *, int); 2407static char *e (p, i) 2408 char **p; 2409 int i; 2410{ 2411 return p[i]; 2412} 2413static char *f (char * (*g) (char **, int), char **p, ...) 2414{ 2415 char *s; 2416 va_list v; 2417 va_start (v,p); 2418 s = g (p, va_arg (v,int)); 2419 va_end (v); 2420 return s; 2421} 2422int test (int i, double x); 2423struct s1 {int (*f) (int a);}; 2424struct s2 {int (*f) (double a);}; 2425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2426int argc; 2427char **argv; 2428#ifdef F77_DUMMY_MAIN 2429# ifdef __cplusplus 2430 extern "C" 2431# endif 2432 int F77_DUMMY_MAIN() { return 1; } 2433#endif 2434int 2435main () 2436{ 2437return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2438 ; 2439 return 0; 2440} 2441_ACEOF 2442# Don't try gcc -ansi; that turns off useful extensions and 2443# breaks some systems' header files. 2444# AIX -qlanglvl=ansi 2445# Ultrix and OSF/1 -std1 2446# HP-UX 10.20 and later -Ae 2447# HP-UX older versions -Aa -D_HPUX_SOURCE 2448# SVR4 -Xc -D__EXTENSIONS__ 2449for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2450do 2451 CC="$ac_save_CC $ac_arg" 2452 rm -f conftest.$ac_objext 2453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2454 (eval $ac_compile) 2>&5 2455 ac_status=$? 2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2457 (exit $ac_status); } && 2458 { ac_try='test -s conftest.$ac_objext' 2459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2460 (eval $ac_try) 2>&5 2461 ac_status=$? 2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2463 (exit $ac_status); }; }; then 2464 ac_cv_prog_cc_stdc=$ac_arg 2465break 2466else 2467 echo "$as_me: failed program was:" >&5 2468cat conftest.$ac_ext >&5 2469fi 2470rm -f conftest.$ac_objext 2471done 2472rm -f conftest.$ac_ext conftest.$ac_objext 2473CC=$ac_save_CC 2474 2475fi 2476 2477case "x$ac_cv_prog_cc_stdc" in 2478 x|xno) 2479 echo "$as_me:$LINENO: result: none needed" >&5 2480echo "${ECHO_T}none needed" >&6 ;; 2481 *) 2482 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2483echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2484 CC="$CC $ac_cv_prog_cc_stdc" ;; 2485esac 2486 2487 2488am__api_version="1.6" 2489ac_aux_dir= 2490for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2491 if test -f $ac_dir/install-sh; then 2492 ac_aux_dir=$ac_dir 2493 ac_install_sh="$ac_aux_dir/install-sh -c" 2494 break 2495 elif test -f $ac_dir/install.sh; then 2496 ac_aux_dir=$ac_dir 2497 ac_install_sh="$ac_aux_dir/install.sh -c" 2498 break 2499 elif test -f $ac_dir/shtool; then 2500 ac_aux_dir=$ac_dir 2501 ac_install_sh="$ac_aux_dir/shtool install -c" 2502 break 2503 fi 2504done 2505if test -z "$ac_aux_dir"; then 2506 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2507echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2508 { (exit 1); exit 1; }; } 2509fi 2510ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2511ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2512ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2513 2514# Find a good install program. We prefer a C program (faster), 2515# so one script is as good as another. But avoid the broken or 2516# incompatible versions: 2517# SysV /etc/install, /usr/sbin/install 2518# SunOS /usr/etc/install 2519# IRIX /sbin/install 2520# AIX /bin/install 2521# AmigaOS /C/install, which installs bootblocks on floppy discs 2522# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2523# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2524# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2525# ./install, which can be erroneously created by make from ./install.sh. 2526echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2527echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2528if test -z "$INSTALL"; then 2529if test "${ac_cv_path_install+set}" = set; then 2530 echo $ECHO_N "(cached) $ECHO_C" >&6 2531else 2532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2533for as_dir in $PATH 2534do 2535 IFS=$as_save_IFS 2536 test -z "$as_dir" && as_dir=. 2537 # Account for people who put trailing slashes in PATH elements. 2538case $as_dir/ in 2539 ./ | .// | /cC/* | \ 2540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2541 /usr/ucb/* ) ;; 2542 *) 2543 # OSF1 and SCO ODT 3.0 have their own names for install. 2544 # Don't use installbsd from OSF since it installs stuff as root 2545 # by default. 2546 for ac_prog in ginstall scoinst install; do 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2549 if test $ac_prog = install && 2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2551 # AIX install. It has an incompatible calling convention. 2552 : 2553 elif test $ac_prog = install && 2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2555 # program-specific install script used by HP pwplus--don't use. 2556 : 2557 else 2558 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2559 break 3 2560 fi 2561 fi 2562 done 2563 done 2564 ;; 2565esac 2566done 2567 2568 2569fi 2570 if test "${ac_cv_path_install+set}" = set; then 2571 INSTALL=$ac_cv_path_install 2572 else 2573 # As a last resort, use the slow shell script. We don't cache a 2574 # path for INSTALL within a source directory, because that will 2575 # break other packages using the cache if that directory is 2576 # removed, or if the path is relative. 2577 INSTALL=$ac_install_sh 2578 fi 2579fi 2580echo "$as_me:$LINENO: result: $INSTALL" >&5 2581echo "${ECHO_T}$INSTALL" >&6 2582 2583# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2584# It thinks the first close brace ends the variable substitution. 2585test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2586 2587test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2588 2589test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2590 2591echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2592echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2593# Just in case 2594sleep 1 2595echo timestamp > conftest.file 2596# Do `set' in a subshell so we don't clobber the current shell's 2597# arguments. Must try -L first in case configure is actually a 2598# symlink; some systems play weird games with the mod time of symlinks 2599# (eg FreeBSD returns the mod time of the symlink's containing 2600# directory). 2601if ( 2602 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2603 if test "$*" = "X"; then 2604 # -L didn't work. 2605 set X `ls -t $srcdir/configure conftest.file` 2606 fi 2607 rm -f conftest.file 2608 if test "$*" != "X $srcdir/configure conftest.file" \ 2609 && test "$*" != "X conftest.file $srcdir/configure"; then 2610 2611 # If neither matched, then we have a broken ls. This can happen 2612 # if, for instance, CONFIG_SHELL is bash and it inherits a 2613 # broken ls alias from the environment. This has actually 2614 # happened. Such a system could not be considered "sane". 2615 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2616alias in your environment" >&5 2617echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2618alias in your environment" >&2;} 2619 { (exit 1); exit 1; }; } 2620 fi 2621 2622 test "$2" = conftest.file 2623 ) 2624then 2625 # Ok. 2626 : 2627else 2628 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2629Check your system clock" >&5 2630echo "$as_me: error: newly created file is older than distributed files! 2631Check your system clock" >&2;} 2632 { (exit 1); exit 1; }; } 2633fi 2634echo "$as_me:$LINENO: result: yes" >&5 2635echo "${ECHO_T}yes" >&6 2636test "$program_prefix" != NONE && 2637 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2638# Use a double $ so make ignores it. 2639test "$program_suffix" != NONE && 2640 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2641# Double any \ or $. echo might interpret backslashes. 2642# By default was `s,x,x', remove it if useless. 2643cat <<\_ACEOF >conftest.sed 2644s/[\\$]/&&/g;s/;s,x,x,$// 2645_ACEOF 2646program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2647rm conftest.sed 2648 2649 2650# expand $ac_aux_dir to an absolute path 2651am_aux_dir=`cd $ac_aux_dir && pwd` 2652 2653test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2654# Use eval to expand $SHELL 2655if eval "$MISSING --run true"; then 2656 am_missing_run="$MISSING --run " 2657else 2658 am_missing_run= 2659 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2660echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2661fi 2662 2663for ac_prog in gawk mawk nawk awk 2664do 2665 # Extract the first word of "$ac_prog", so it can be a program name with args. 2666set dummy $ac_prog; ac_word=$2 2667echo "$as_me:$LINENO: checking for $ac_word" >&5 2668echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2669if test "${ac_cv_prog_AWK+set}" = set; then 2670 echo $ECHO_N "(cached) $ECHO_C" >&6 2671else 2672 if test -n "$AWK"; then 2673 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2674else 2675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_exec_ext in '' $ac_executable_extensions; do 2681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2682 ac_cv_prog_AWK="$ac_prog" 2683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2684 break 2 2685 fi 2686done 2687done 2688 2689fi 2690fi 2691AWK=$ac_cv_prog_AWK 2692if test -n "$AWK"; then 2693 echo "$as_me:$LINENO: result: $AWK" >&5 2694echo "${ECHO_T}$AWK" >&6 2695else 2696 echo "$as_me:$LINENO: result: no" >&5 2697echo "${ECHO_T}no" >&6 2698fi 2699 2700 test -n "$AWK" && break 2701done 2702 2703echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 2704echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2705set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2706if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2707 echo $ECHO_N "(cached) $ECHO_C" >&6 2708else 2709 cat >conftest.make <<\_ACEOF 2710all: 2711 @echo 'ac_maketemp="${MAKE}"' 2712_ACEOF 2713# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2714eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2715if test -n "$ac_maketemp"; then 2716 eval ac_cv_prog_make_${ac_make}_set=yes 2717else 2718 eval ac_cv_prog_make_${ac_make}_set=no 2719fi 2720rm -f conftest.make 2721fi 2722if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2723 echo "$as_me:$LINENO: result: yes" >&5 2724echo "${ECHO_T}yes" >&6 2725 SET_MAKE= 2726else 2727 echo "$as_me:$LINENO: result: no" >&5 2728echo "${ECHO_T}no" >&6 2729 SET_MAKE="MAKE=${MAKE-make}" 2730fi 2731 2732rm -f .deps 2>/dev/null 2733mkdir .deps 2>/dev/null 2734if test -d .deps; then 2735 DEPDIR=.deps 2736else 2737 # MS-DOS does not allow filenames that begin with a dot. 2738 DEPDIR=_deps 2739fi 2740rmdir .deps 2>/dev/null 2741 2742 2743ac_config_commands="$ac_config_commands depfiles" 2744 2745 2746am_make=${MAKE-make} 2747cat > confinc << 'END' 2748doit: 2749 @echo done 2750END 2751# If we don't find an include directive, just comment out the code. 2752echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2753echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2754am__include="#" 2755am__quote= 2756_am_result=none 2757# First try GNU make style include. 2758echo "include confinc" > confmf 2759# We grep out `Entering directory' and `Leaving directory' 2760# messages which can occur if `w' ends up in MAKEFLAGS. 2761# In particular we don't look at `^make:' because GNU make might 2762# be invoked under some other name (usually "gmake"), in which 2763# case it prints its new name instead of `make'. 2764if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2765 am__include=include 2766 am__quote= 2767 _am_result=GNU 2768fi 2769# Now try BSD make style include. 2770if test "$am__include" = "#"; then 2771 echo '.include "confinc"' > confmf 2772 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2773 am__include=.include 2774 am__quote="\"" 2775 _am_result=BSD 2776 fi 2777fi 2778 2779 2780echo "$as_me:$LINENO: result: $_am_result" >&5 2781echo "${ECHO_T}$_am_result" >&6 2782rm -f confinc confmf 2783 2784# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2785if test "${enable_dependency_tracking+set}" = set; then 2786 enableval="$enable_dependency_tracking" 2787 2788fi; 2789if test "x$enable_dependency_tracking" != xno; then 2790 am_depcomp="$ac_aux_dir/depcomp" 2791 AMDEPBACKSLASH='\' 2792fi 2793 2794 2795if test "x$enable_dependency_tracking" != xno; then 2796 AMDEP_TRUE= 2797 AMDEP_FALSE='#' 2798else 2799 AMDEP_TRUE='#' 2800 AMDEP_FALSE= 2801fi 2802 2803 2804 2805 # test to see if srcdir already configured 2806if test "`cd $srcdir && pwd`" != "`pwd`" && 2807 test -f $srcdir/config.status; then 2808 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2809echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2810 { (exit 1); exit 1; }; } 2811fi 2812 2813# Define the identity of the package. 2814 PACKAGE=heimdal
| 1148generated by GNU Autoconf 2.53. Invocation command line was 1149 1150 $ $0 $@ 1151 1152_ACEOF 1153{ 1154cat <<_ASUNAME 1155## --------- ## 1156## Platform. ## 1157## --------- ## 1158 1159hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1160uname -m = `(uname -m) 2>/dev/null || echo unknown` 1161uname -r = `(uname -r) 2>/dev/null || echo unknown` 1162uname -s = `(uname -s) 2>/dev/null || echo unknown` 1163uname -v = `(uname -v) 2>/dev/null || echo unknown` 1164 1165/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1166/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1167 1168/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1169/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1170/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1171hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1172/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1173/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1174/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1175 1176_ASUNAME 1177 1178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1179for as_dir in $PATH 1180do 1181 IFS=$as_save_IFS 1182 test -z "$as_dir" && as_dir=. 1183 echo "PATH: $as_dir" 1184done 1185 1186} >&5 1187 1188cat >&5 <<_ACEOF 1189 1190 1191## ----------- ## 1192## Core tests. ## 1193## ----------- ## 1194 1195_ACEOF 1196 1197 1198# Keep a trace of the command line. 1199# Strip out --no-create and --no-recursion so they do not pile up. 1200# Also quote any args containing shell meta-characters. 1201ac_configure_args= 1202ac_sep= 1203for ac_arg 1204do 1205 case $ac_arg in 1206 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1207 | --no-cr | --no-c | -n ) continue ;; 1208 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1209 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1210 continue ;; 1211 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1212 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1213 esac 1214 case " $ac_configure_args " in 1215 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1216 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1217 ac_sep=" " ;; 1218 esac 1219 # Get rid of the leading space. 1220done 1221 1222# When interrupted or exit'd, cleanup temporary files, and complete 1223# config.log. We remove comments because anyway the quotes in there 1224# would cause problems or look ugly. 1225# WARNING: Be sure not to use single quotes in there, as some shells, 1226# such as our DU 5.0 friend, will then `close' the trap. 1227trap 'exit_status=$? 1228 # Save into config.log some information that might help in debugging. 1229 { 1230 echo 1231 cat <<\_ASBOX 1232## ---------------- ## 1233## Cache variables. ## 1234## ---------------- ## 1235_ASBOX 1236 echo 1237 # The following way of writing the cache mishandles newlines in values, 1238{ 1239 (set) 2>&1 | 1240 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1241 *ac_space=\ *) 1242 sed -n \ 1243 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1244 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1245 ;; 1246 *) 1247 sed -n \ 1248 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1249 ;; 1250 esac; 1251} 1252 echo 1253 if test -s confdefs.h; then 1254 cat <<\_ASBOX 1255## ----------- ## 1256## confdefs.h. ## 1257## ----------- ## 1258_ASBOX 1259 echo 1260 sed "/^$/d" confdefs.h 1261 echo 1262 fi 1263 test "$ac_signal" != 0 && 1264 echo "$as_me: caught signal $ac_signal" 1265 echo "$as_me: exit $exit_status" 1266 } >&5 1267 rm -f core core.* *.core && 1268 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1269 exit $exit_status 1270 ' 0 1271for ac_signal in 1 2 13 15; do 1272 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1273done 1274ac_signal=0 1275 1276# confdefs.h avoids OS command line length limits that DEFS can exceed. 1277rm -rf conftest* confdefs.h 1278# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1279echo >confdefs.h 1280 1281# Predefined preprocessor variables. 1282 1283cat >>confdefs.h <<_ACEOF 1284#define PACKAGE_NAME "$PACKAGE_NAME" 1285_ACEOF 1286 1287 1288cat >>confdefs.h <<_ACEOF 1289#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1290_ACEOF 1291 1292 1293cat >>confdefs.h <<_ACEOF 1294#define PACKAGE_VERSION "$PACKAGE_VERSION" 1295_ACEOF 1296 1297 1298cat >>confdefs.h <<_ACEOF 1299#define PACKAGE_STRING "$PACKAGE_STRING" 1300_ACEOF 1301 1302 1303cat >>confdefs.h <<_ACEOF 1304#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1305_ACEOF 1306 1307 1308# Let the site file select an alternate cache file if it wants to. 1309# Prefer explicitly selected file to automatically selected ones. 1310if test -z "$CONFIG_SITE"; then 1311 if test "x$prefix" != xNONE; then 1312 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1313 else 1314 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1315 fi 1316fi 1317for ac_site_file in $CONFIG_SITE; do 1318 if test -r "$ac_site_file"; then 1319 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1320echo "$as_me: loading site script $ac_site_file" >&6;} 1321 sed 's/^/| /' "$ac_site_file" >&5 1322 . "$ac_site_file" 1323 fi 1324done 1325 1326if test -r "$cache_file"; then 1327 # Some versions of bash will fail to source /dev/null (special 1328 # files actually), so we avoid doing that. 1329 if test -f "$cache_file"; then 1330 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1331echo "$as_me: loading cache $cache_file" >&6;} 1332 case $cache_file in 1333 [\\/]* | ?:[\\/]* ) . $cache_file;; 1334 *) . ./$cache_file;; 1335 esac 1336 fi 1337else 1338 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1339echo "$as_me: creating cache $cache_file" >&6;} 1340 >$cache_file 1341fi 1342 1343# Check that the precious variables saved in the cache have kept the same 1344# value. 1345ac_cache_corrupted=false 1346for ac_var in `(set) 2>&1 | 1347 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1348 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1349 eval ac_new_set=\$ac_env_${ac_var}_set 1350 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1351 eval ac_new_val="\$ac_env_${ac_var}_value" 1352 case $ac_old_set,$ac_new_set in 1353 set,) 1354 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1355echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1356 ac_cache_corrupted=: ;; 1357 ,set) 1358 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1359echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1360 ac_cache_corrupted=: ;; 1361 ,);; 1362 *) 1363 if test "x$ac_old_val" != "x$ac_new_val"; then 1364 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1365echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1366 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1367echo "$as_me: former value: $ac_old_val" >&2;} 1368 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1369echo "$as_me: current value: $ac_new_val" >&2;} 1370 ac_cache_corrupted=: 1371 fi;; 1372 esac 1373 # Pass precious variables to config.status. 1374 if test "$ac_new_set" = set; then 1375 case $ac_new_val in 1376 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1377 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1378 *) ac_arg=$ac_var=$ac_new_val ;; 1379 esac 1380 case " $ac_configure_args " in 1381 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1382 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1383 esac 1384 fi 1385done 1386if $ac_cache_corrupted; then 1387 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1388echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1389 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1390echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1391 { (exit 1); exit 1; }; } 1392fi 1393 1394ac_ext=c 1395ac_cpp='$CPP $CPPFLAGS' 1396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1398ac_compiler_gnu=$ac_cv_c_compiler_gnu 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426# Add the stamp file to the list of files AC keeps track of, 1427# along with our hook. 1428ac_config_headers="$ac_config_headers include/config.h" 1429 1430 1431 1432 1433ac_ext=c 1434ac_cpp='$CPP $CPPFLAGS' 1435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1437ac_compiler_gnu=$ac_cv_c_compiler_gnu 1438if test -n "$ac_tool_prefix"; then 1439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1440set dummy ${ac_tool_prefix}gcc; ac_word=$2 1441echo "$as_me:$LINENO: checking for $ac_word" >&5 1442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1443if test "${ac_cv_prog_CC+set}" = set; then 1444 echo $ECHO_N "(cached) $ECHO_C" >&6 1445else 1446 if test -n "$CC"; then 1447 ac_cv_prog_CC="$CC" # Let the user override the test. 1448else 1449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1450for as_dir in $PATH 1451do 1452 IFS=$as_save_IFS 1453 test -z "$as_dir" && as_dir=. 1454 for ac_exec_ext in '' $ac_executable_extensions; do 1455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1456 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1458 break 2 1459 fi 1460done 1461done 1462 1463fi 1464fi 1465CC=$ac_cv_prog_CC 1466if test -n "$CC"; then 1467 echo "$as_me:$LINENO: result: $CC" >&5 1468echo "${ECHO_T}$CC" >&6 1469else 1470 echo "$as_me:$LINENO: result: no" >&5 1471echo "${ECHO_T}no" >&6 1472fi 1473 1474fi 1475if test -z "$ac_cv_prog_CC"; then 1476 ac_ct_CC=$CC 1477 # Extract the first word of "gcc", so it can be a program name with args. 1478set dummy gcc; ac_word=$2 1479echo "$as_me:$LINENO: checking for $ac_word" >&5 1480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1481if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1482 echo $ECHO_N "(cached) $ECHO_C" >&6 1483else 1484 if test -n "$ac_ct_CC"; then 1485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1486else 1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1488for as_dir in $PATH 1489do 1490 IFS=$as_save_IFS 1491 test -z "$as_dir" && as_dir=. 1492 for ac_exec_ext in '' $ac_executable_extensions; do 1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1494 ac_cv_prog_ac_ct_CC="gcc" 1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1496 break 2 1497 fi 1498done 1499done 1500 1501fi 1502fi 1503ac_ct_CC=$ac_cv_prog_ac_ct_CC 1504if test -n "$ac_ct_CC"; then 1505 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1506echo "${ECHO_T}$ac_ct_CC" >&6 1507else 1508 echo "$as_me:$LINENO: result: no" >&5 1509echo "${ECHO_T}no" >&6 1510fi 1511 1512 CC=$ac_ct_CC 1513else 1514 CC="$ac_cv_prog_CC" 1515fi 1516 1517if test -z "$CC"; then 1518 if test -n "$ac_tool_prefix"; then 1519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1520set dummy ${ac_tool_prefix}cc; ac_word=$2 1521echo "$as_me:$LINENO: checking for $ac_word" >&5 1522echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1523if test "${ac_cv_prog_CC+set}" = set; then 1524 echo $ECHO_N "(cached) $ECHO_C" >&6 1525else 1526 if test -n "$CC"; then 1527 ac_cv_prog_CC="$CC" # Let the user override the test. 1528else 1529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1530for as_dir in $PATH 1531do 1532 IFS=$as_save_IFS 1533 test -z "$as_dir" && as_dir=. 1534 for ac_exec_ext in '' $ac_executable_extensions; do 1535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1536 ac_cv_prog_CC="${ac_tool_prefix}cc" 1537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1538 break 2 1539 fi 1540done 1541done 1542 1543fi 1544fi 1545CC=$ac_cv_prog_CC 1546if test -n "$CC"; then 1547 echo "$as_me:$LINENO: result: $CC" >&5 1548echo "${ECHO_T}$CC" >&6 1549else 1550 echo "$as_me:$LINENO: result: no" >&5 1551echo "${ECHO_T}no" >&6 1552fi 1553 1554fi 1555if test -z "$ac_cv_prog_CC"; then 1556 ac_ct_CC=$CC 1557 # Extract the first word of "cc", so it can be a program name with args. 1558set dummy cc; ac_word=$2 1559echo "$as_me:$LINENO: checking for $ac_word" >&5 1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1561if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1562 echo $ECHO_N "(cached) $ECHO_C" >&6 1563else 1564 if test -n "$ac_ct_CC"; then 1565 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1566else 1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1568for as_dir in $PATH 1569do 1570 IFS=$as_save_IFS 1571 test -z "$as_dir" && as_dir=. 1572 for ac_exec_ext in '' $ac_executable_extensions; do 1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1574 ac_cv_prog_ac_ct_CC="cc" 1575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1576 break 2 1577 fi 1578done 1579done 1580 1581fi 1582fi 1583ac_ct_CC=$ac_cv_prog_ac_ct_CC 1584if test -n "$ac_ct_CC"; then 1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1586echo "${ECHO_T}$ac_ct_CC" >&6 1587else 1588 echo "$as_me:$LINENO: result: no" >&5 1589echo "${ECHO_T}no" >&6 1590fi 1591 1592 CC=$ac_ct_CC 1593else 1594 CC="$ac_cv_prog_CC" 1595fi 1596 1597fi 1598if test -z "$CC"; then 1599 # Extract the first word of "cc", so it can be a program name with args. 1600set dummy cc; ac_word=$2 1601echo "$as_me:$LINENO: checking for $ac_word" >&5 1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1603if test "${ac_cv_prog_CC+set}" = set; then 1604 echo $ECHO_N "(cached) $ECHO_C" >&6 1605else 1606 if test -n "$CC"; then 1607 ac_cv_prog_CC="$CC" # Let the user override the test. 1608else 1609 ac_prog_rejected=no 1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1611for as_dir in $PATH 1612do 1613 IFS=$as_save_IFS 1614 test -z "$as_dir" && as_dir=. 1615 for ac_exec_ext in '' $ac_executable_extensions; do 1616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1618 ac_prog_rejected=yes 1619 continue 1620 fi 1621 ac_cv_prog_CC="cc" 1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1623 break 2 1624 fi 1625done 1626done 1627 1628if test $ac_prog_rejected = yes; then 1629 # We found a bogon in the path, so make sure we never use it. 1630 set dummy $ac_cv_prog_CC 1631 shift 1632 if test $# != 0; then 1633 # We chose a different compiler from the bogus one. 1634 # However, it has the same basename, so the bogon will be chosen 1635 # first if we set CC to just the basename; use the full file name. 1636 shift 1637 set dummy "$as_dir/$ac_word" ${1+"$@"} 1638 shift 1639 ac_cv_prog_CC="$@" 1640 fi 1641fi 1642fi 1643fi 1644CC=$ac_cv_prog_CC 1645if test -n "$CC"; then 1646 echo "$as_me:$LINENO: result: $CC" >&5 1647echo "${ECHO_T}$CC" >&6 1648else 1649 echo "$as_me:$LINENO: result: no" >&5 1650echo "${ECHO_T}no" >&6 1651fi 1652 1653fi 1654if test -z "$CC"; then 1655 if test -n "$ac_tool_prefix"; then 1656 for ac_prog in cl 1657 do 1658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1659set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1660echo "$as_me:$LINENO: checking for $ac_word" >&5 1661echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1662if test "${ac_cv_prog_CC+set}" = set; then 1663 echo $ECHO_N "(cached) $ECHO_C" >&6 1664else 1665 if test -n "$CC"; then 1666 ac_cv_prog_CC="$CC" # Let the user override the test. 1667else 1668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1669for as_dir in $PATH 1670do 1671 IFS=$as_save_IFS 1672 test -z "$as_dir" && as_dir=. 1673 for ac_exec_ext in '' $ac_executable_extensions; do 1674 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1677 break 2 1678 fi 1679done 1680done 1681 1682fi 1683fi 1684CC=$ac_cv_prog_CC 1685if test -n "$CC"; then 1686 echo "$as_me:$LINENO: result: $CC" >&5 1687echo "${ECHO_T}$CC" >&6 1688else 1689 echo "$as_me:$LINENO: result: no" >&5 1690echo "${ECHO_T}no" >&6 1691fi 1692 1693 test -n "$CC" && break 1694 done 1695fi 1696if test -z "$CC"; then 1697 ac_ct_CC=$CC 1698 for ac_prog in cl 1699do 1700 # Extract the first word of "$ac_prog", so it can be a program name with args. 1701set dummy $ac_prog; ac_word=$2 1702echo "$as_me:$LINENO: checking for $ac_word" >&5 1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1704if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1705 echo $ECHO_N "(cached) $ECHO_C" >&6 1706else 1707 if test -n "$ac_ct_CC"; then 1708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1709else 1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1711for as_dir in $PATH 1712do 1713 IFS=$as_save_IFS 1714 test -z "$as_dir" && as_dir=. 1715 for ac_exec_ext in '' $ac_executable_extensions; do 1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1717 ac_cv_prog_ac_ct_CC="$ac_prog" 1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1719 break 2 1720 fi 1721done 1722done 1723 1724fi 1725fi 1726ac_ct_CC=$ac_cv_prog_ac_ct_CC 1727if test -n "$ac_ct_CC"; then 1728 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1729echo "${ECHO_T}$ac_ct_CC" >&6 1730else 1731 echo "$as_me:$LINENO: result: no" >&5 1732echo "${ECHO_T}no" >&6 1733fi 1734 1735 test -n "$ac_ct_CC" && break 1736done 1737 1738 CC=$ac_ct_CC 1739fi 1740 1741fi 1742 1743 1744test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5 1745echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;} 1746 { (exit 1); exit 1; }; } 1747 1748# Provide some information about the compiler. 1749echo "$as_me:$LINENO:" \ 1750 "checking for C compiler version" >&5 1751ac_compiler=`set X $ac_compile; echo $2` 1752{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1753 (eval $ac_compiler --version </dev/null >&5) 2>&5 1754 ac_status=$? 1755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1756 (exit $ac_status); } 1757{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1758 (eval $ac_compiler -v </dev/null >&5) 2>&5 1759 ac_status=$? 1760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1761 (exit $ac_status); } 1762{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1763 (eval $ac_compiler -V </dev/null >&5) 2>&5 1764 ac_status=$? 1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1766 (exit $ac_status); } 1767 1768cat >conftest.$ac_ext <<_ACEOF 1769#line $LINENO "configure" 1770#include "confdefs.h" 1771 1772#ifdef F77_DUMMY_MAIN 1773# ifdef __cplusplus 1774 extern "C" 1775# endif 1776 int F77_DUMMY_MAIN() { return 1; } 1777#endif 1778int 1779main () 1780{ 1781 1782 ; 1783 return 0; 1784} 1785_ACEOF 1786ac_clean_files_save=$ac_clean_files 1787ac_clean_files="$ac_clean_files a.out a.exe" 1788# Try to create an executable without -o first, disregard a.out. 1789# It will help us diagnose broken compilers, and finding out an intuition 1790# of exeext. 1791echo "$as_me:$LINENO: checking for C compiler default output" >&5 1792echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 1793ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1794if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1795 (eval $ac_link_default) 2>&5 1796 ac_status=$? 1797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1798 (exit $ac_status); }; then 1799 # Find the output, starting from the most likely. This scheme is 1800# not robust to junk in `.', hence go to wildcards (a.*) only as a last 1801# resort. 1802 1803# Be careful to initialize this variable, since it used to be cached. 1804# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1805ac_cv_exeext= 1806for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null; 1807 ls a.out conftest 2>/dev/null; 1808 ls a.* conftest.* 2>/dev/null`; do 1809 case $ac_file in 1810 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;; 1811 a.out ) # We found the default executable, but exeext='' is most 1812 # certainly right. 1813 break;; 1814 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1815 # FIXME: I believe we export ac_cv_exeext for Libtool --akim. 1816 export ac_cv_exeext 1817 break;; 1818 * ) break;; 1819 esac 1820done 1821else 1822 echo "$as_me: failed program was:" >&5 1823cat conftest.$ac_ext >&5 1824{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5 1825echo "$as_me: error: C compiler cannot create executables" >&2;} 1826 { (exit 77); exit 77; }; } 1827fi 1828 1829ac_exeext=$ac_cv_exeext 1830echo "$as_me:$LINENO: result: $ac_file" >&5 1831echo "${ECHO_T}$ac_file" >&6 1832 1833# Check the compiler produces executables we can run. If not, either 1834# the compiler is broken, or we cross compile. 1835echo "$as_me:$LINENO: checking whether the C compiler works" >&5 1836echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 1837# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1838# If not cross compiling, check that we can run a simple program. 1839if test "$cross_compiling" != yes; then 1840 if { ac_try='./$ac_file' 1841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1842 (eval $ac_try) 2>&5 1843 ac_status=$? 1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1845 (exit $ac_status); }; }; then 1846 cross_compiling=no 1847 else 1848 if test "$cross_compiling" = maybe; then 1849 cross_compiling=yes 1850 else 1851 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 1852If you meant to cross compile, use \`--host'." >&5 1853echo "$as_me: error: cannot run C compiled programs. 1854If you meant to cross compile, use \`--host'." >&2;} 1855 { (exit 1); exit 1; }; } 1856 fi 1857 fi 1858fi 1859echo "$as_me:$LINENO: result: yes" >&5 1860echo "${ECHO_T}yes" >&6 1861 1862rm -f a.out a.exe conftest$ac_cv_exeext 1863ac_clean_files=$ac_clean_files_save 1864# Check the compiler produces executables we can run. If not, either 1865# the compiler is broken, or we cross compile. 1866echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1867echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1868echo "$as_me:$LINENO: result: $cross_compiling" >&5 1869echo "${ECHO_T}$cross_compiling" >&6 1870 1871echo "$as_me:$LINENO: checking for suffix of executables" >&5 1872echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1874 (eval $ac_link) 2>&5 1875 ac_status=$? 1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1877 (exit $ac_status); }; then 1878 # If both `conftest.exe' and `conftest' are `present' (well, observable) 1879# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 1880# work properly (i.e., refer to `conftest.exe'), while it won't with 1881# `rm'. 1882for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do 1883 case $ac_file in 1884 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; 1885 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1886 export ac_cv_exeext 1887 break;; 1888 * ) break;; 1889 esac 1890done 1891else 1892 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5 1893echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;} 1894 { (exit 1); exit 1; }; } 1895fi 1896 1897rm -f conftest$ac_cv_exeext 1898echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 1899echo "${ECHO_T}$ac_cv_exeext" >&6 1900 1901rm -f conftest.$ac_ext 1902EXEEXT=$ac_cv_exeext 1903ac_exeext=$EXEEXT 1904echo "$as_me:$LINENO: checking for suffix of object files" >&5 1905echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 1906if test "${ac_cv_objext+set}" = set; then 1907 echo $ECHO_N "(cached) $ECHO_C" >&6 1908else 1909 cat >conftest.$ac_ext <<_ACEOF 1910#line $LINENO "configure" 1911#include "confdefs.h" 1912 1913#ifdef F77_DUMMY_MAIN 1914# ifdef __cplusplus 1915 extern "C" 1916# endif 1917 int F77_DUMMY_MAIN() { return 1; } 1918#endif 1919int 1920main () 1921{ 1922 1923 ; 1924 return 0; 1925} 1926_ACEOF 1927rm -f conftest.o conftest.obj 1928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1929 (eval $ac_compile) 2>&5 1930 ac_status=$? 1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1932 (exit $ac_status); }; then 1933 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 1934 case $ac_file in 1935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; 1936 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1937 break;; 1938 esac 1939done 1940else 1941 echo "$as_me: failed program was:" >&5 1942cat conftest.$ac_ext >&5 1943{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5 1944echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;} 1945 { (exit 1); exit 1; }; } 1946fi 1947 1948rm -f conftest.$ac_cv_objext conftest.$ac_ext 1949fi 1950echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 1951echo "${ECHO_T}$ac_cv_objext" >&6 1952OBJEXT=$ac_cv_objext 1953ac_objext=$OBJEXT 1954echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 1955echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 1956if test "${ac_cv_c_compiler_gnu+set}" = set; then 1957 echo $ECHO_N "(cached) $ECHO_C" >&6 1958else 1959 cat >conftest.$ac_ext <<_ACEOF 1960#line $LINENO "configure" 1961#include "confdefs.h" 1962 1963#ifdef F77_DUMMY_MAIN 1964# ifdef __cplusplus 1965 extern "C" 1966# endif 1967 int F77_DUMMY_MAIN() { return 1; } 1968#endif 1969int 1970main () 1971{ 1972#ifndef __GNUC__ 1973 choke me 1974#endif 1975 1976 ; 1977 return 0; 1978} 1979_ACEOF 1980rm -f conftest.$ac_objext 1981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1982 (eval $ac_compile) 2>&5 1983 ac_status=$? 1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1985 (exit $ac_status); } && 1986 { ac_try='test -s conftest.$ac_objext' 1987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1988 (eval $ac_try) 2>&5 1989 ac_status=$? 1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1991 (exit $ac_status); }; }; then 1992 ac_compiler_gnu=yes 1993else 1994 echo "$as_me: failed program was:" >&5 1995cat conftest.$ac_ext >&5 1996ac_compiler_gnu=no 1997fi 1998rm -f conftest.$ac_objext conftest.$ac_ext 1999ac_cv_c_compiler_gnu=$ac_compiler_gnu 2000 2001fi 2002echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2003echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2004GCC=`test $ac_compiler_gnu = yes && echo yes` 2005ac_test_CFLAGS=${CFLAGS+set} 2006ac_save_CFLAGS=$CFLAGS 2007CFLAGS="-g" 2008echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2009echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2010if test "${ac_cv_prog_cc_g+set}" = set; then 2011 echo $ECHO_N "(cached) $ECHO_C" >&6 2012else 2013 cat >conftest.$ac_ext <<_ACEOF 2014#line $LINENO "configure" 2015#include "confdefs.h" 2016 2017#ifdef F77_DUMMY_MAIN 2018# ifdef __cplusplus 2019 extern "C" 2020# endif 2021 int F77_DUMMY_MAIN() { return 1; } 2022#endif 2023int 2024main () 2025{ 2026 2027 ; 2028 return 0; 2029} 2030_ACEOF 2031rm -f conftest.$ac_objext 2032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2033 (eval $ac_compile) 2>&5 2034 ac_status=$? 2035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2036 (exit $ac_status); } && 2037 { ac_try='test -s conftest.$ac_objext' 2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2039 (eval $ac_try) 2>&5 2040 ac_status=$? 2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2042 (exit $ac_status); }; }; then 2043 ac_cv_prog_cc_g=yes 2044else 2045 echo "$as_me: failed program was:" >&5 2046cat conftest.$ac_ext >&5 2047ac_cv_prog_cc_g=no 2048fi 2049rm -f conftest.$ac_objext conftest.$ac_ext 2050fi 2051echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2053if test "$ac_test_CFLAGS" = set; then 2054 CFLAGS=$ac_save_CFLAGS 2055elif test $ac_cv_prog_cc_g = yes; then 2056 if test "$GCC" = yes; then 2057 CFLAGS="-g -O2" 2058 else 2059 CFLAGS="-g" 2060 fi 2061else 2062 if test "$GCC" = yes; then 2063 CFLAGS="-O2" 2064 else 2065 CFLAGS= 2066 fi 2067fi 2068# Some people use a C++ compiler to compile C. Since we use `exit', 2069# in C++ we need to declare it. In case someone uses the same compiler 2070# for both compiling C and C++ we need to have the C++ compiler decide 2071# the declaration of exit, since it's the most demanding environment. 2072cat >conftest.$ac_ext <<_ACEOF 2073#ifndef __cplusplus 2074 choke me 2075#endif 2076_ACEOF 2077rm -f conftest.$ac_objext 2078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2079 (eval $ac_compile) 2>&5 2080 ac_status=$? 2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2082 (exit $ac_status); } && 2083 { ac_try='test -s conftest.$ac_objext' 2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2085 (eval $ac_try) 2>&5 2086 ac_status=$? 2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2088 (exit $ac_status); }; }; then 2089 for ac_declaration in \ 2090 ''\ 2091 '#include <stdlib.h>' \ 2092 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2093 'extern "C" void std::exit (int); using std::exit;' \ 2094 'extern "C" void exit (int) throw ();' \ 2095 'extern "C" void exit (int);' \ 2096 'void exit (int);' 2097do 2098 cat >conftest.$ac_ext <<_ACEOF 2099#line $LINENO "configure" 2100#include "confdefs.h" 2101#include <stdlib.h> 2102$ac_declaration 2103#ifdef F77_DUMMY_MAIN 2104# ifdef __cplusplus 2105 extern "C" 2106# endif 2107 int F77_DUMMY_MAIN() { return 1; } 2108#endif 2109int 2110main () 2111{ 2112exit (42); 2113 ; 2114 return 0; 2115} 2116_ACEOF 2117rm -f conftest.$ac_objext 2118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2119 (eval $ac_compile) 2>&5 2120 ac_status=$? 2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2122 (exit $ac_status); } && 2123 { ac_try='test -s conftest.$ac_objext' 2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2125 (eval $ac_try) 2>&5 2126 ac_status=$? 2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2128 (exit $ac_status); }; }; then 2129 : 2130else 2131 echo "$as_me: failed program was:" >&5 2132cat conftest.$ac_ext >&5 2133continue 2134fi 2135rm -f conftest.$ac_objext conftest.$ac_ext 2136 cat >conftest.$ac_ext <<_ACEOF 2137#line $LINENO "configure" 2138#include "confdefs.h" 2139$ac_declaration 2140#ifdef F77_DUMMY_MAIN 2141# ifdef __cplusplus 2142 extern "C" 2143# endif 2144 int F77_DUMMY_MAIN() { return 1; } 2145#endif 2146int 2147main () 2148{ 2149exit (42); 2150 ; 2151 return 0; 2152} 2153_ACEOF 2154rm -f conftest.$ac_objext 2155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2156 (eval $ac_compile) 2>&5 2157 ac_status=$? 2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2159 (exit $ac_status); } && 2160 { ac_try='test -s conftest.$ac_objext' 2161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2162 (eval $ac_try) 2>&5 2163 ac_status=$? 2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2165 (exit $ac_status); }; }; then 2166 break 2167else 2168 echo "$as_me: failed program was:" >&5 2169cat conftest.$ac_ext >&5 2170fi 2171rm -f conftest.$ac_objext conftest.$ac_ext 2172done 2173rm -f conftest* 2174if test -n "$ac_declaration"; then 2175 echo '#ifdef __cplusplus' >>confdefs.h 2176 echo $ac_declaration >>confdefs.h 2177 echo '#endif' >>confdefs.h 2178fi 2179 2180else 2181 echo "$as_me: failed program was:" >&5 2182cat conftest.$ac_ext >&5 2183fi 2184rm -f conftest.$ac_objext conftest.$ac_ext 2185ac_ext=c 2186ac_cpp='$CPP $CPPFLAGS' 2187ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2188ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2189ac_compiler_gnu=$ac_cv_c_compiler_gnu 2190 2191ac_ext=c 2192ac_cpp='$CPP $CPPFLAGS' 2193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2195ac_compiler_gnu=$ac_cv_c_compiler_gnu 2196echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2197echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 2198# On Suns, sometimes $CPP names a directory. 2199if test -n "$CPP" && test -d "$CPP"; then 2200 CPP= 2201fi 2202if test -z "$CPP"; then 2203 if test "${ac_cv_prog_CPP+set}" = set; then 2204 echo $ECHO_N "(cached) $ECHO_C" >&6 2205else 2206 # Double quotes because CPP needs to be expanded 2207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2208 do 2209 ac_preproc_ok=false 2210for ac_c_preproc_warn_flag in '' yes 2211do 2212 # Use a header file that comes with gcc, so configuring glibc 2213 # with a fresh cross-compiler works. 2214 # On the NeXT, cc -E runs the code through the compiler's parser, 2215 # not just through cpp. "Syntax error" is here to catch this case. 2216 cat >conftest.$ac_ext <<_ACEOF 2217#line $LINENO "configure" 2218#include "confdefs.h" 2219#include <assert.h> 2220 Syntax error 2221_ACEOF 2222if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2223 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2224 ac_status=$? 2225 egrep -v '^ *\+' conftest.er1 >conftest.err 2226 rm -f conftest.er1 2227 cat conftest.err >&5 2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2229 (exit $ac_status); } >/dev/null; then 2230 if test -s conftest.err; then 2231 ac_cpp_err=$ac_c_preproc_warn_flag 2232 else 2233 ac_cpp_err= 2234 fi 2235else 2236 ac_cpp_err=yes 2237fi 2238if test -z "$ac_cpp_err"; then 2239 : 2240else 2241 echo "$as_me: failed program was:" >&5 2242 cat conftest.$ac_ext >&5 2243 # Broken: fails on valid input. 2244continue 2245fi 2246rm -f conftest.err conftest.$ac_ext 2247 2248 # OK, works on sane cases. Now check whether non-existent headers 2249 # can be detected and how. 2250 cat >conftest.$ac_ext <<_ACEOF 2251#line $LINENO "configure" 2252#include "confdefs.h" 2253#include <ac_nonexistent.h> 2254_ACEOF 2255if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2257 ac_status=$? 2258 egrep -v '^ *\+' conftest.er1 >conftest.err 2259 rm -f conftest.er1 2260 cat conftest.err >&5 2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2262 (exit $ac_status); } >/dev/null; then 2263 if test -s conftest.err; then 2264 ac_cpp_err=$ac_c_preproc_warn_flag 2265 else 2266 ac_cpp_err= 2267 fi 2268else 2269 ac_cpp_err=yes 2270fi 2271if test -z "$ac_cpp_err"; then 2272 # Broken: success on invalid input. 2273continue 2274else 2275 echo "$as_me: failed program was:" >&5 2276 cat conftest.$ac_ext >&5 2277 # Passes both tests. 2278ac_preproc_ok=: 2279break 2280fi 2281rm -f conftest.err conftest.$ac_ext 2282 2283done 2284# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2285rm -f conftest.err conftest.$ac_ext 2286if $ac_preproc_ok; then 2287 break 2288fi 2289 2290 done 2291 ac_cv_prog_CPP=$CPP 2292 2293fi 2294 CPP=$ac_cv_prog_CPP 2295else 2296 ac_cv_prog_CPP=$CPP 2297fi 2298echo "$as_me:$LINENO: result: $CPP" >&5 2299echo "${ECHO_T}$CPP" >&6 2300ac_preproc_ok=false 2301for ac_c_preproc_warn_flag in '' yes 2302do 2303 # Use a header file that comes with gcc, so configuring glibc 2304 # with a fresh cross-compiler works. 2305 # On the NeXT, cc -E runs the code through the compiler's parser, 2306 # not just through cpp. "Syntax error" is here to catch this case. 2307 cat >conftest.$ac_ext <<_ACEOF 2308#line $LINENO "configure" 2309#include "confdefs.h" 2310#include <assert.h> 2311 Syntax error 2312_ACEOF 2313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2315 ac_status=$? 2316 egrep -v '^ *\+' conftest.er1 >conftest.err 2317 rm -f conftest.er1 2318 cat conftest.err >&5 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); } >/dev/null; then 2321 if test -s conftest.err; then 2322 ac_cpp_err=$ac_c_preproc_warn_flag 2323 else 2324 ac_cpp_err= 2325 fi 2326else 2327 ac_cpp_err=yes 2328fi 2329if test -z "$ac_cpp_err"; then 2330 : 2331else 2332 echo "$as_me: failed program was:" >&5 2333 cat conftest.$ac_ext >&5 2334 # Broken: fails on valid input. 2335continue 2336fi 2337rm -f conftest.err conftest.$ac_ext 2338 2339 # OK, works on sane cases. Now check whether non-existent headers 2340 # can be detected and how. 2341 cat >conftest.$ac_ext <<_ACEOF 2342#line $LINENO "configure" 2343#include "confdefs.h" 2344#include <ac_nonexistent.h> 2345_ACEOF 2346if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 2347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 2348 ac_status=$? 2349 egrep -v '^ *\+' conftest.er1 >conftest.err 2350 rm -f conftest.er1 2351 cat conftest.err >&5 2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2353 (exit $ac_status); } >/dev/null; then 2354 if test -s conftest.err; then 2355 ac_cpp_err=$ac_c_preproc_warn_flag 2356 else 2357 ac_cpp_err= 2358 fi 2359else 2360 ac_cpp_err=yes 2361fi 2362if test -z "$ac_cpp_err"; then 2363 # Broken: success on invalid input. 2364continue 2365else 2366 echo "$as_me: failed program was:" >&5 2367 cat conftest.$ac_ext >&5 2368 # Passes both tests. 2369ac_preproc_ok=: 2370break 2371fi 2372rm -f conftest.err conftest.$ac_ext 2373 2374done 2375# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2376rm -f conftest.err conftest.$ac_ext 2377if $ac_preproc_ok; then 2378 : 2379else 2380 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 2381echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} 2382 { (exit 1); exit 1; }; } 2383fi 2384 2385ac_ext=c 2386ac_cpp='$CPP $CPPFLAGS' 2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2389ac_compiler_gnu=$ac_cv_c_compiler_gnu 2390 2391 2392echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2393echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2394if test "${ac_cv_prog_cc_stdc+set}" = set; then 2395 echo $ECHO_N "(cached) $ECHO_C" >&6 2396else 2397 ac_cv_prog_cc_stdc=no 2398ac_save_CC=$CC 2399cat >conftest.$ac_ext <<_ACEOF 2400#line $LINENO "configure" 2401#include "confdefs.h" 2402#include <stdarg.h> 2403#include <stdio.h> 2404#include <sys/types.h> 2405#include <sys/stat.h> 2406/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2407struct buf { int x; }; 2408FILE * (*rcsopen) (struct buf *, struct stat *, int); 2409static char *e (p, i) 2410 char **p; 2411 int i; 2412{ 2413 return p[i]; 2414} 2415static char *f (char * (*g) (char **, int), char **p, ...) 2416{ 2417 char *s; 2418 va_list v; 2419 va_start (v,p); 2420 s = g (p, va_arg (v,int)); 2421 va_end (v); 2422 return s; 2423} 2424int test (int i, double x); 2425struct s1 {int (*f) (int a);}; 2426struct s2 {int (*f) (double a);}; 2427int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2428int argc; 2429char **argv; 2430#ifdef F77_DUMMY_MAIN 2431# ifdef __cplusplus 2432 extern "C" 2433# endif 2434 int F77_DUMMY_MAIN() { return 1; } 2435#endif 2436int 2437main () 2438{ 2439return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2440 ; 2441 return 0; 2442} 2443_ACEOF 2444# Don't try gcc -ansi; that turns off useful extensions and 2445# breaks some systems' header files. 2446# AIX -qlanglvl=ansi 2447# Ultrix and OSF/1 -std1 2448# HP-UX 10.20 and later -Ae 2449# HP-UX older versions -Aa -D_HPUX_SOURCE 2450# SVR4 -Xc -D__EXTENSIONS__ 2451for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2452do 2453 CC="$ac_save_CC $ac_arg" 2454 rm -f conftest.$ac_objext 2455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2456 (eval $ac_compile) 2>&5 2457 ac_status=$? 2458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2459 (exit $ac_status); } && 2460 { ac_try='test -s conftest.$ac_objext' 2461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2462 (eval $ac_try) 2>&5 2463 ac_status=$? 2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2465 (exit $ac_status); }; }; then 2466 ac_cv_prog_cc_stdc=$ac_arg 2467break 2468else 2469 echo "$as_me: failed program was:" >&5 2470cat conftest.$ac_ext >&5 2471fi 2472rm -f conftest.$ac_objext 2473done 2474rm -f conftest.$ac_ext conftest.$ac_objext 2475CC=$ac_save_CC 2476 2477fi 2478 2479case "x$ac_cv_prog_cc_stdc" in 2480 x|xno) 2481 echo "$as_me:$LINENO: result: none needed" >&5 2482echo "${ECHO_T}none needed" >&6 ;; 2483 *) 2484 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2485echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2486 CC="$CC $ac_cv_prog_cc_stdc" ;; 2487esac 2488 2489 2490am__api_version="1.6" 2491ac_aux_dir= 2492for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 2493 if test -f $ac_dir/install-sh; then 2494 ac_aux_dir=$ac_dir 2495 ac_install_sh="$ac_aux_dir/install-sh -c" 2496 break 2497 elif test -f $ac_dir/install.sh; then 2498 ac_aux_dir=$ac_dir 2499 ac_install_sh="$ac_aux_dir/install.sh -c" 2500 break 2501 elif test -f $ac_dir/shtool; then 2502 ac_aux_dir=$ac_dir 2503 ac_install_sh="$ac_aux_dir/shtool install -c" 2504 break 2505 fi 2506done 2507if test -z "$ac_aux_dir"; then 2508 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 2509echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 2510 { (exit 1); exit 1; }; } 2511fi 2512ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2513ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2514ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2515 2516# Find a good install program. We prefer a C program (faster), 2517# so one script is as good as another. But avoid the broken or 2518# incompatible versions: 2519# SysV /etc/install, /usr/sbin/install 2520# SunOS /usr/etc/install 2521# IRIX /sbin/install 2522# AIX /bin/install 2523# AmigaOS /C/install, which installs bootblocks on floppy discs 2524# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2525# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2526# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2527# ./install, which can be erroneously created by make from ./install.sh. 2528echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 2529echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 2530if test -z "$INSTALL"; then 2531if test "${ac_cv_path_install+set}" = set; then 2532 echo $ECHO_N "(cached) $ECHO_C" >&6 2533else 2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2535for as_dir in $PATH 2536do 2537 IFS=$as_save_IFS 2538 test -z "$as_dir" && as_dir=. 2539 # Account for people who put trailing slashes in PATH elements. 2540case $as_dir/ in 2541 ./ | .// | /cC/* | \ 2542 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2543 /usr/ucb/* ) ;; 2544 *) 2545 # OSF1 and SCO ODT 3.0 have their own names for install. 2546 # Don't use installbsd from OSF since it installs stuff as root 2547 # by default. 2548 for ac_prog in ginstall scoinst install; do 2549 for ac_exec_ext in '' $ac_executable_extensions; do 2550 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2551 if test $ac_prog = install && 2552 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2553 # AIX install. It has an incompatible calling convention. 2554 : 2555 elif test $ac_prog = install && 2556 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2557 # program-specific install script used by HP pwplus--don't use. 2558 : 2559 else 2560 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2561 break 3 2562 fi 2563 fi 2564 done 2565 done 2566 ;; 2567esac 2568done 2569 2570 2571fi 2572 if test "${ac_cv_path_install+set}" = set; then 2573 INSTALL=$ac_cv_path_install 2574 else 2575 # As a last resort, use the slow shell script. We don't cache a 2576 # path for INSTALL within a source directory, because that will 2577 # break other packages using the cache if that directory is 2578 # removed, or if the path is relative. 2579 INSTALL=$ac_install_sh 2580 fi 2581fi 2582echo "$as_me:$LINENO: result: $INSTALL" >&5 2583echo "${ECHO_T}$INSTALL" >&6 2584 2585# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2586# It thinks the first close brace ends the variable substitution. 2587test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2588 2589test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2590 2591test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2592 2593echo "$as_me:$LINENO: checking whether build environment is sane" >&5 2594echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 2595# Just in case 2596sleep 1 2597echo timestamp > conftest.file 2598# Do `set' in a subshell so we don't clobber the current shell's 2599# arguments. Must try -L first in case configure is actually a 2600# symlink; some systems play weird games with the mod time of symlinks 2601# (eg FreeBSD returns the mod time of the symlink's containing 2602# directory). 2603if ( 2604 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2605 if test "$*" = "X"; then 2606 # -L didn't work. 2607 set X `ls -t $srcdir/configure conftest.file` 2608 fi 2609 rm -f conftest.file 2610 if test "$*" != "X $srcdir/configure conftest.file" \ 2611 && test "$*" != "X conftest.file $srcdir/configure"; then 2612 2613 # If neither matched, then we have a broken ls. This can happen 2614 # if, for instance, CONFIG_SHELL is bash and it inherits a 2615 # broken ls alias from the environment. This has actually 2616 # happened. Such a system could not be considered "sane". 2617 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 2618alias in your environment" >&5 2619echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 2620alias in your environment" >&2;} 2621 { (exit 1); exit 1; }; } 2622 fi 2623 2624 test "$2" = conftest.file 2625 ) 2626then 2627 # Ok. 2628 : 2629else 2630 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 2631Check your system clock" >&5 2632echo "$as_me: error: newly created file is older than distributed files! 2633Check your system clock" >&2;} 2634 { (exit 1); exit 1; }; } 2635fi 2636echo "$as_me:$LINENO: result: yes" >&5 2637echo "${ECHO_T}yes" >&6 2638test "$program_prefix" != NONE && 2639 program_transform_name="s,^,$program_prefix,;$program_transform_name" 2640# Use a double $ so make ignores it. 2641test "$program_suffix" != NONE && 2642 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 2643# Double any \ or $. echo might interpret backslashes. 2644# By default was `s,x,x', remove it if useless. 2645cat <<\_ACEOF >conftest.sed 2646s/[\\$]/&&/g;s/;s,x,x,$// 2647_ACEOF 2648program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 2649rm conftest.sed 2650 2651 2652# expand $ac_aux_dir to an absolute path 2653am_aux_dir=`cd $ac_aux_dir && pwd` 2654 2655test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2656# Use eval to expand $SHELL 2657if eval "$MISSING --run true"; then 2658 am_missing_run="$MISSING --run " 2659else 2660 am_missing_run= 2661 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 2662echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2663fi 2664 2665for ac_prog in gawk mawk nawk awk 2666do 2667 # Extract the first word of "$ac_prog", so it can be a program name with args. 2668set dummy $ac_prog; ac_word=$2 2669echo "$as_me:$LINENO: checking for $ac_word" >&5 2670echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2671if test "${ac_cv_prog_AWK+set}" = set; then 2672 echo $ECHO_N "(cached) $ECHO_C" >&6 2673else 2674 if test -n "$AWK"; then 2675 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2676else 2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2678for as_dir in $PATH 2679do 2680 IFS=$as_save_IFS 2681 test -z "$as_dir" && as_dir=. 2682 for ac_exec_ext in '' $ac_executable_extensions; do 2683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2684 ac_cv_prog_AWK="$ac_prog" 2685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2686 break 2 2687 fi 2688done 2689done 2690 2691fi 2692fi 2693AWK=$ac_cv_prog_AWK 2694if test -n "$AWK"; then 2695 echo "$as_me:$LINENO: result: $AWK" >&5 2696echo "${ECHO_T}$AWK" >&6 2697else 2698 echo "$as_me:$LINENO: result: no" >&5 2699echo "${ECHO_T}no" >&6 2700fi 2701 2702 test -n "$AWK" && break 2703done 2704 2705echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5 2706echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 2707set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` 2708if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 2709 echo $ECHO_N "(cached) $ECHO_C" >&6 2710else 2711 cat >conftest.make <<\_ACEOF 2712all: 2713 @echo 'ac_maketemp="${MAKE}"' 2714_ACEOF 2715# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2716eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 2717if test -n "$ac_maketemp"; then 2718 eval ac_cv_prog_make_${ac_make}_set=yes 2719else 2720 eval ac_cv_prog_make_${ac_make}_set=no 2721fi 2722rm -f conftest.make 2723fi 2724if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 2725 echo "$as_me:$LINENO: result: yes" >&5 2726echo "${ECHO_T}yes" >&6 2727 SET_MAKE= 2728else 2729 echo "$as_me:$LINENO: result: no" >&5 2730echo "${ECHO_T}no" >&6 2731 SET_MAKE="MAKE=${MAKE-make}" 2732fi 2733 2734rm -f .deps 2>/dev/null 2735mkdir .deps 2>/dev/null 2736if test -d .deps; then 2737 DEPDIR=.deps 2738else 2739 # MS-DOS does not allow filenames that begin with a dot. 2740 DEPDIR=_deps 2741fi 2742rmdir .deps 2>/dev/null 2743 2744 2745ac_config_commands="$ac_config_commands depfiles" 2746 2747 2748am_make=${MAKE-make} 2749cat > confinc << 'END' 2750doit: 2751 @echo done 2752END 2753# If we don't find an include directive, just comment out the code. 2754echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 2755echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 2756am__include="#" 2757am__quote= 2758_am_result=none 2759# First try GNU make style include. 2760echo "include confinc" > confmf 2761# We grep out `Entering directory' and `Leaving directory' 2762# messages which can occur if `w' ends up in MAKEFLAGS. 2763# In particular we don't look at `^make:' because GNU make might 2764# be invoked under some other name (usually "gmake"), in which 2765# case it prints its new name instead of `make'. 2766if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 2767 am__include=include 2768 am__quote= 2769 _am_result=GNU 2770fi 2771# Now try BSD make style include. 2772if test "$am__include" = "#"; then 2773 echo '.include "confinc"' > confmf 2774 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 2775 am__include=.include 2776 am__quote="\"" 2777 _am_result=BSD 2778 fi 2779fi 2780 2781 2782echo "$as_me:$LINENO: result: $_am_result" >&5 2783echo "${ECHO_T}$_am_result" >&6 2784rm -f confinc confmf 2785 2786# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 2787if test "${enable_dependency_tracking+set}" = set; then 2788 enableval="$enable_dependency_tracking" 2789 2790fi; 2791if test "x$enable_dependency_tracking" != xno; then 2792 am_depcomp="$ac_aux_dir/depcomp" 2793 AMDEPBACKSLASH='\' 2794fi 2795 2796 2797if test "x$enable_dependency_tracking" != xno; then 2798 AMDEP_TRUE= 2799 AMDEP_FALSE='#' 2800else 2801 AMDEP_TRUE='#' 2802 AMDEP_FALSE= 2803fi 2804 2805 2806 2807 # test to see if srcdir already configured 2808if test "`cd $srcdir && pwd`" != "`pwd`" && 2809 test -f $srcdir/config.status; then 2810 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 2811echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 2812 { (exit 1); exit 1; }; } 2813fi 2814 2815# Define the identity of the package. 2816 PACKAGE=heimdal
|
2815 VERSION=0.5.1
| 2817 VERSION=0.6
|
2816 2817 2818cat >>confdefs.h <<_ACEOF 2819#define PACKAGE "$PACKAGE" 2820_ACEOF 2821 2822 2823cat >>confdefs.h <<_ACEOF 2824#define VERSION "$VERSION" 2825_ACEOF 2826 2827# Some tools Automake needs. 2828 2829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2830 2831 2832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2833 2834 2835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2836 2837 2838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2839 2840 2841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2842 2843 2844AMTAR=${AMTAR-"${am_missing_run}tar"} 2845 2846install_sh=${install_sh-"$am_aux_dir/install-sh"} 2847 2848# Installed binaries are usually stripped using `strip' when the user 2849# run `make install-strip'. However `strip' might not be the right 2850# tool to use in cross-compilation environments, therefore Automake 2851# will honor the `STRIP' environment variable to overrule this program. 2852if test "$cross_compiling" != no; then 2853 if test -n "$ac_tool_prefix"; then 2854 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2855set dummy ${ac_tool_prefix}strip; ac_word=$2 2856echo "$as_me:$LINENO: checking for $ac_word" >&5 2857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2858if test "${ac_cv_prog_STRIP+set}" = set; then 2859 echo $ECHO_N "(cached) $ECHO_C" >&6 2860else 2861 if test -n "$STRIP"; then 2862 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2863else 2864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2865for as_dir in $PATH 2866do 2867 IFS=$as_save_IFS 2868 test -z "$as_dir" && as_dir=. 2869 for ac_exec_ext in '' $ac_executable_extensions; do 2870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2871 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2873 break 2 2874 fi 2875done 2876done 2877 2878fi 2879fi 2880STRIP=$ac_cv_prog_STRIP 2881if test -n "$STRIP"; then 2882 echo "$as_me:$LINENO: result: $STRIP" >&5 2883echo "${ECHO_T}$STRIP" >&6 2884else 2885 echo "$as_me:$LINENO: result: no" >&5 2886echo "${ECHO_T}no" >&6 2887fi 2888 2889fi 2890if test -z "$ac_cv_prog_STRIP"; then 2891 ac_ct_STRIP=$STRIP 2892 # Extract the first word of "strip", so it can be a program name with args. 2893set dummy strip; ac_word=$2 2894echo "$as_me:$LINENO: checking for $ac_word" >&5 2895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2896if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2897 echo $ECHO_N "(cached) $ECHO_C" >&6 2898else 2899 if test -n "$ac_ct_STRIP"; then 2900 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2901else 2902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2903for as_dir in $PATH 2904do 2905 IFS=$as_save_IFS 2906 test -z "$as_dir" && as_dir=. 2907 for ac_exec_ext in '' $ac_executable_extensions; do 2908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2909 ac_cv_prog_ac_ct_STRIP="strip" 2910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2911 break 2 2912 fi 2913done 2914done 2915 2916 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2917fi 2918fi 2919ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2920if test -n "$ac_ct_STRIP"; then 2921 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2922echo "${ECHO_T}$ac_ct_STRIP" >&6 2923else 2924 echo "$as_me:$LINENO: result: no" >&5 2925echo "${ECHO_T}no" >&6 2926fi 2927 2928 STRIP=$ac_ct_STRIP 2929else 2930 STRIP="$ac_cv_prog_STRIP" 2931fi 2932 2933fi 2934INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2935 2936# We need awk for the "check" target. The system "awk" is bad on 2937# some platforms. 2938 2939 2940depcc="$CC" am_compiler_list= 2941 2942echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2943echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2944if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2945 echo $ECHO_N "(cached) $ECHO_C" >&6 2946else 2947 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2948 # We make a subdir and do the tests there. Otherwise we can end up 2949 # making bogus files that we don't know about and never remove. For 2950 # instance it was reported that on HP-UX the gcc test will end up 2951 # making a dummy file named `D' -- because `-MD' means `put the output 2952 # in D'. 2953 mkdir conftest.dir 2954 # Copy depcomp to subdir because otherwise we won't find it if we're 2955 # using a relative directory. 2956 cp "$am_depcomp" conftest.dir 2957 cd conftest.dir 2958 2959 am_cv_CC_dependencies_compiler_type=none 2960 if test "$am_compiler_list" = ""; then 2961 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2962 fi 2963 for depmode in $am_compiler_list; do 2964 # We need to recreate these files for each test, as the compiler may 2965 # overwrite some of them when testing with obscure command lines. 2966 # This happens at least with the AIX C compiler. 2967 echo '#include "conftest.h"' > conftest.c 2968 echo 'int i;' > conftest.h 2969 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2970 2971 case $depmode in 2972 nosideeffect) 2973 # after this tag, mechanisms are not by side-effect, so they'll 2974 # only be used when explicitly requested 2975 if test "x$enable_dependency_tracking" = xyes; then 2976 continue 2977 else 2978 break 2979 fi 2980 ;; 2981 none) break ;; 2982 esac 2983 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2984 # mode. It turns out that the SunPro C++ compiler does not properly 2985 # handle `-M -o', and we need to detect this. 2986 if depmode=$depmode \ 2987 source=conftest.c object=conftest.o \ 2988 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2989 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2990 grep conftest.h conftest.Po > /dev/null 2>&1 && 2991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2992 am_cv_CC_dependencies_compiler_type=$depmode 2993 break 2994 fi 2995 done 2996 2997 cd .. 2998 rm -rf conftest.dir 2999else 3000 am_cv_CC_dependencies_compiler_type=none 3001fi 3002 3003fi 3004echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3005echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3006CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3007 3008 3009
| 2818 2819 2820cat >>confdefs.h <<_ACEOF 2821#define PACKAGE "$PACKAGE" 2822_ACEOF 2823 2824 2825cat >>confdefs.h <<_ACEOF 2826#define VERSION "$VERSION" 2827_ACEOF 2828 2829# Some tools Automake needs. 2830 2831ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2832 2833 2834AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2835 2836 2837AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2838 2839 2840AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2841 2842 2843MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2844 2845 2846AMTAR=${AMTAR-"${am_missing_run}tar"} 2847 2848install_sh=${install_sh-"$am_aux_dir/install-sh"} 2849 2850# Installed binaries are usually stripped using `strip' when the user 2851# run `make install-strip'. However `strip' might not be the right 2852# tool to use in cross-compilation environments, therefore Automake 2853# will honor the `STRIP' environment variable to overrule this program. 2854if test "$cross_compiling" != no; then 2855 if test -n "$ac_tool_prefix"; then 2856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2857set dummy ${ac_tool_prefix}strip; ac_word=$2 2858echo "$as_me:$LINENO: checking for $ac_word" >&5 2859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2860if test "${ac_cv_prog_STRIP+set}" = set; then 2861 echo $ECHO_N "(cached) $ECHO_C" >&6 2862else 2863 if test -n "$STRIP"; then 2864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2865else 2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2867for as_dir in $PATH 2868do 2869 IFS=$as_save_IFS 2870 test -z "$as_dir" && as_dir=. 2871 for ac_exec_ext in '' $ac_executable_extensions; do 2872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2873 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2875 break 2 2876 fi 2877done 2878done 2879 2880fi 2881fi 2882STRIP=$ac_cv_prog_STRIP 2883if test -n "$STRIP"; then 2884 echo "$as_me:$LINENO: result: $STRIP" >&5 2885echo "${ECHO_T}$STRIP" >&6 2886else 2887 echo "$as_me:$LINENO: result: no" >&5 2888echo "${ECHO_T}no" >&6 2889fi 2890 2891fi 2892if test -z "$ac_cv_prog_STRIP"; then 2893 ac_ct_STRIP=$STRIP 2894 # Extract the first word of "strip", so it can be a program name with args. 2895set dummy strip; ac_word=$2 2896echo "$as_me:$LINENO: checking for $ac_word" >&5 2897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2898if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2899 echo $ECHO_N "(cached) $ECHO_C" >&6 2900else 2901 if test -n "$ac_ct_STRIP"; then 2902 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2903else 2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2911 ac_cv_prog_ac_ct_STRIP="strip" 2912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916done 2917 2918 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2919fi 2920fi 2921ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2922if test -n "$ac_ct_STRIP"; then 2923 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2924echo "${ECHO_T}$ac_ct_STRIP" >&6 2925else 2926 echo "$as_me:$LINENO: result: no" >&5 2927echo "${ECHO_T}no" >&6 2928fi 2929 2930 STRIP=$ac_ct_STRIP 2931else 2932 STRIP="$ac_cv_prog_STRIP" 2933fi 2934 2935fi 2936INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2937 2938# We need awk for the "check" target. The system "awk" is bad on 2939# some platforms. 2940 2941 2942depcc="$CC" am_compiler_list= 2943 2944echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 2945echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 2946if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 2947 echo $ECHO_N "(cached) $ECHO_C" >&6 2948else 2949 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 2950 # We make a subdir and do the tests there. Otherwise we can end up 2951 # making bogus files that we don't know about and never remove. For 2952 # instance it was reported that on HP-UX the gcc test will end up 2953 # making a dummy file named `D' -- because `-MD' means `put the output 2954 # in D'. 2955 mkdir conftest.dir 2956 # Copy depcomp to subdir because otherwise we won't find it if we're 2957 # using a relative directory. 2958 cp "$am_depcomp" conftest.dir 2959 cd conftest.dir 2960 2961 am_cv_CC_dependencies_compiler_type=none 2962 if test "$am_compiler_list" = ""; then 2963 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 2964 fi 2965 for depmode in $am_compiler_list; do 2966 # We need to recreate these files for each test, as the compiler may 2967 # overwrite some of them when testing with obscure command lines. 2968 # This happens at least with the AIX C compiler. 2969 echo '#include "conftest.h"' > conftest.c 2970 echo 'int i;' > conftest.h 2971 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 2972 2973 case $depmode in 2974 nosideeffect) 2975 # after this tag, mechanisms are not by side-effect, so they'll 2976 # only be used when explicitly requested 2977 if test "x$enable_dependency_tracking" = xyes; then 2978 continue 2979 else 2980 break 2981 fi 2982 ;; 2983 none) break ;; 2984 esac 2985 # We check with `-c' and `-o' for the sake of the "dashmstdout" 2986 # mode. It turns out that the SunPro C++ compiler does not properly 2987 # handle `-M -o', and we need to detect this. 2988 if depmode=$depmode \ 2989 source=conftest.c object=conftest.o \ 2990 depfile=conftest.Po tmpdepfile=conftest.TPo \ 2991 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 2992 grep conftest.h conftest.Po > /dev/null 2>&1 && 2993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 2994 am_cv_CC_dependencies_compiler_type=$depmode 2995 break 2996 fi 2997 done 2998 2999 cd .. 3000 rm -rf conftest.dir 3001else 3002 am_cv_CC_dependencies_compiler_type=none 3003fi 3004 3005fi 3006echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3007echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3008CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3009 3010 3011
|
| 3012echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 3013echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 3014 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 3015if test "${enable_maintainer_mode+set}" = set; then 3016 enableval="$enable_maintainer_mode" 3017 USE_MAINTAINER_MODE=$enableval 3018else 3019 USE_MAINTAINER_MODE=no 3020fi; 3021 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 3022echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
|
3010 3011
| 3023 3024
|
| 3025if test $USE_MAINTAINER_MODE = yes; then 3026 MAINTAINER_MODE_TRUE= 3027 MAINTAINER_MODE_FALSE='#' 3028else 3029 MAINTAINER_MODE_TRUE='#' 3030 MAINTAINER_MODE_FALSE= 3031fi
|
3012
| 3032
|
| 3033 MAINT=$MAINTAINER_MODE_TRUE 3034 3035 3036 3037 3038
|
3013test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 3014test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 3015 3016# Make sure we can run config.sub. 3017$ac_config_sub sun4 >/dev/null 2>&1 || 3018 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3019echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3020 { (exit 1); exit 1; }; } 3021 3022echo "$as_me:$LINENO: checking build system type" >&5 3023echo $ECHO_N "checking build system type... $ECHO_C" >&6 3024if test "${ac_cv_build+set}" = set; then 3025 echo $ECHO_N "(cached) $ECHO_C" >&6 3026else 3027 ac_cv_build_alias=$build_alias 3028test -z "$ac_cv_build_alias" && 3029 ac_cv_build_alias=`$ac_config_guess` 3030test -z "$ac_cv_build_alias" && 3031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3032echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3033 { (exit 1); exit 1; }; } 3034ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3035 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3036echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3037 { (exit 1); exit 1; }; } 3038 3039fi 3040echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3041echo "${ECHO_T}$ac_cv_build" >&6 3042build=$ac_cv_build 3043build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3044build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3045build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3046 3047 3048echo "$as_me:$LINENO: checking host system type" >&5 3049echo $ECHO_N "checking host system type... $ECHO_C" >&6 3050if test "${ac_cv_host+set}" = set; then 3051 echo $ECHO_N "(cached) $ECHO_C" >&6 3052else 3053 ac_cv_host_alias=$host_alias 3054test -z "$ac_cv_host_alias" && 3055 ac_cv_host_alias=$ac_cv_build_alias 3056ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3057 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3058echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3059 { (exit 1); exit 1; }; } 3060 3061fi 3062echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3063echo "${ECHO_T}$ac_cv_host" >&6 3064host=$ac_cv_host 3065host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3066host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3067host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3068 3069 3070CANONICAL_HOST=$host 3071 3072 3073# Check whether --enable-largefile or --disable-largefile was given. 3074if test "${enable_largefile+set}" = set; then 3075 enableval="$enable_largefile" 3076 3077fi; 3078if test "$enable_largefile" != no; then 3079 3080 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 3081echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 3082if test "${ac_cv_sys_largefile_CC+set}" = set; then 3083 echo $ECHO_N "(cached) $ECHO_C" >&6 3084else 3085 ac_cv_sys_largefile_CC=no 3086 if test "$GCC" != yes; then 3087 ac_save_CC=$CC 3088 while :; do 3089 # IRIX 6.2 and later do not support large files by default, 3090 # so use the C compiler's -n32 option if that helps. 3091 cat >conftest.$ac_ext <<_ACEOF 3092#line $LINENO "configure" 3093#include "confdefs.h" 3094#include <sys/types.h> 3095 /* Check that off_t can represent 2**63 - 1 correctly. 3096 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3097 since some C++ compilers masquerading as C compilers 3098 incorrectly reject 9223372036854775807. */ 3099#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3101 && LARGE_OFF_T % 2147483647 == 1) 3102 ? 1 : -1]; 3103#ifdef F77_DUMMY_MAIN 3104# ifdef __cplusplus 3105 extern "C" 3106# endif 3107 int F77_DUMMY_MAIN() { return 1; } 3108#endif 3109int 3110main () 3111{ 3112 3113 ; 3114 return 0; 3115} 3116_ACEOF 3117 rm -f conftest.$ac_objext 3118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3119 (eval $ac_compile) 2>&5 3120 ac_status=$? 3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3122 (exit $ac_status); } && 3123 { ac_try='test -s conftest.$ac_objext' 3124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3125 (eval $ac_try) 2>&5 3126 ac_status=$? 3127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3128 (exit $ac_status); }; }; then 3129 break 3130else 3131 echo "$as_me: failed program was:" >&5 3132cat conftest.$ac_ext >&5 3133fi 3134rm -f conftest.$ac_objext 3135 CC="$CC -n32" 3136 rm -f conftest.$ac_objext 3137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3138 (eval $ac_compile) 2>&5 3139 ac_status=$? 3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3141 (exit $ac_status); } && 3142 { ac_try='test -s conftest.$ac_objext' 3143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3144 (eval $ac_try) 2>&5 3145 ac_status=$? 3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3147 (exit $ac_status); }; }; then 3148 ac_cv_sys_largefile_CC=' -n32'; break 3149else 3150 echo "$as_me: failed program was:" >&5 3151cat conftest.$ac_ext >&5 3152fi 3153rm -f conftest.$ac_objext 3154 break 3155 done 3156 CC=$ac_save_CC 3157 rm -f conftest.$ac_ext 3158 fi 3159fi 3160echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 3161echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 3162 if test "$ac_cv_sys_largefile_CC" != no; then 3163 CC=$CC$ac_cv_sys_largefile_CC 3164 fi 3165 3166 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3167echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 3168if test "${ac_cv_sys_file_offset_bits+set}" = set; then 3169 echo $ECHO_N "(cached) $ECHO_C" >&6 3170else 3171 while :; do 3172 ac_cv_sys_file_offset_bits=no 3173 cat >conftest.$ac_ext <<_ACEOF 3174#line $LINENO "configure" 3175#include "confdefs.h" 3176#include <sys/types.h> 3177 /* Check that off_t can represent 2**63 - 1 correctly. 3178 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3179 since some C++ compilers masquerading as C compilers 3180 incorrectly reject 9223372036854775807. */ 3181#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3182 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3183 && LARGE_OFF_T % 2147483647 == 1) 3184 ? 1 : -1]; 3185#ifdef F77_DUMMY_MAIN 3186# ifdef __cplusplus 3187 extern "C" 3188# endif 3189 int F77_DUMMY_MAIN() { return 1; } 3190#endif 3191int 3192main () 3193{ 3194 3195 ; 3196 return 0; 3197} 3198_ACEOF 3199rm -f conftest.$ac_objext 3200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3201 (eval $ac_compile) 2>&5 3202 ac_status=$? 3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3204 (exit $ac_status); } && 3205 { ac_try='test -s conftest.$ac_objext' 3206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3207 (eval $ac_try) 2>&5 3208 ac_status=$? 3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3210 (exit $ac_status); }; }; then 3211 break 3212else 3213 echo "$as_me: failed program was:" >&5 3214cat conftest.$ac_ext >&5 3215fi 3216rm -f conftest.$ac_objext conftest.$ac_ext 3217 cat >conftest.$ac_ext <<_ACEOF 3218#line $LINENO "configure" 3219#include "confdefs.h" 3220#define _FILE_OFFSET_BITS 64 3221#include <sys/types.h> 3222 /* Check that off_t can represent 2**63 - 1 correctly. 3223 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3224 since some C++ compilers masquerading as C compilers 3225 incorrectly reject 9223372036854775807. */ 3226#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3227 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3228 && LARGE_OFF_T % 2147483647 == 1) 3229 ? 1 : -1]; 3230#ifdef F77_DUMMY_MAIN 3231# ifdef __cplusplus 3232 extern "C" 3233# endif 3234 int F77_DUMMY_MAIN() { return 1; } 3235#endif 3236int 3237main () 3238{ 3239 3240 ; 3241 return 0; 3242} 3243_ACEOF 3244rm -f conftest.$ac_objext 3245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3246 (eval $ac_compile) 2>&5 3247 ac_status=$? 3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3249 (exit $ac_status); } && 3250 { ac_try='test -s conftest.$ac_objext' 3251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3252 (eval $ac_try) 2>&5 3253 ac_status=$? 3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3255 (exit $ac_status); }; }; then 3256 ac_cv_sys_file_offset_bits=64; break 3257else 3258 echo "$as_me: failed program was:" >&5 3259cat conftest.$ac_ext >&5 3260fi 3261rm -f conftest.$ac_objext conftest.$ac_ext 3262 break 3263done 3264fi 3265echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 3266echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 3267if test "$ac_cv_sys_file_offset_bits" != no; then 3268 3269cat >>confdefs.h <<_ACEOF 3270#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3271_ACEOF 3272 3273fi 3274rm -f conftest* 3275 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 3276echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 3277if test "${ac_cv_sys_large_files+set}" = set; then 3278 echo $ECHO_N "(cached) $ECHO_C" >&6 3279else 3280 while :; do 3281 ac_cv_sys_large_files=no 3282 cat >conftest.$ac_ext <<_ACEOF 3283#line $LINENO "configure" 3284#include "confdefs.h" 3285#include <sys/types.h> 3286 /* Check that off_t can represent 2**63 - 1 correctly. 3287 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3288 since some C++ compilers masquerading as C compilers 3289 incorrectly reject 9223372036854775807. */ 3290#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3292 && LARGE_OFF_T % 2147483647 == 1) 3293 ? 1 : -1]; 3294#ifdef F77_DUMMY_MAIN 3295# ifdef __cplusplus 3296 extern "C" 3297# endif 3298 int F77_DUMMY_MAIN() { return 1; } 3299#endif 3300int 3301main () 3302{ 3303 3304 ; 3305 return 0; 3306} 3307_ACEOF 3308rm -f conftest.$ac_objext 3309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3310 (eval $ac_compile) 2>&5 3311 ac_status=$? 3312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3313 (exit $ac_status); } && 3314 { ac_try='test -s conftest.$ac_objext' 3315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3316 (eval $ac_try) 2>&5 3317 ac_status=$? 3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3319 (exit $ac_status); }; }; then 3320 break 3321else 3322 echo "$as_me: failed program was:" >&5 3323cat conftest.$ac_ext >&5 3324fi 3325rm -f conftest.$ac_objext conftest.$ac_ext 3326 cat >conftest.$ac_ext <<_ACEOF 3327#line $LINENO "configure" 3328#include "confdefs.h" 3329#define _LARGE_FILES 1 3330#include <sys/types.h> 3331 /* Check that off_t can represent 2**63 - 1 correctly. 3332 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3333 since some C++ compilers masquerading as C compilers 3334 incorrectly reject 9223372036854775807. */ 3335#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3336 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3337 && LARGE_OFF_T % 2147483647 == 1) 3338 ? 1 : -1]; 3339#ifdef F77_DUMMY_MAIN 3340# ifdef __cplusplus 3341 extern "C" 3342# endif 3343 int F77_DUMMY_MAIN() { return 1; } 3344#endif 3345int 3346main () 3347{ 3348 3349 ; 3350 return 0; 3351} 3352_ACEOF 3353rm -f conftest.$ac_objext 3354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3355 (eval $ac_compile) 2>&5 3356 ac_status=$? 3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3358 (exit $ac_status); } && 3359 { ac_try='test -s conftest.$ac_objext' 3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3361 (eval $ac_try) 2>&5 3362 ac_status=$? 3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3364 (exit $ac_status); }; }; then 3365 ac_cv_sys_large_files=1; break 3366else 3367 echo "$as_me: failed program was:" >&5 3368cat conftest.$ac_ext >&5 3369fi 3370rm -f conftest.$ac_objext conftest.$ac_ext 3371 break 3372done 3373fi 3374echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 3375echo "${ECHO_T}$ac_cv_sys_large_files" >&6 3376if test "$ac_cv_sys_large_files" != no; then 3377 3378cat >>confdefs.h <<_ACEOF 3379#define _LARGE_FILES $ac_cv_sys_large_files 3380_ACEOF 3381 3382fi 3383rm -f conftest* 3384fi 3385
| 3039test "$sysconfdir" = '${prefix}/etc' && sysconfdir='/etc' 3040test "$localstatedir" = '${prefix}/var' && localstatedir='/var/heimdal' 3041 3042# Make sure we can run config.sub. 3043$ac_config_sub sun4 >/dev/null 2>&1 || 3044 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 3045echo "$as_me: error: cannot run $ac_config_sub" >&2;} 3046 { (exit 1); exit 1; }; } 3047 3048echo "$as_me:$LINENO: checking build system type" >&5 3049echo $ECHO_N "checking build system type... $ECHO_C" >&6 3050if test "${ac_cv_build+set}" = set; then 3051 echo $ECHO_N "(cached) $ECHO_C" >&6 3052else 3053 ac_cv_build_alias=$build_alias 3054test -z "$ac_cv_build_alias" && 3055 ac_cv_build_alias=`$ac_config_guess` 3056test -z "$ac_cv_build_alias" && 3057 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3058echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 3059 { (exit 1); exit 1; }; } 3060ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 3061 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 3062echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 3063 { (exit 1); exit 1; }; } 3064 3065fi 3066echo "$as_me:$LINENO: result: $ac_cv_build" >&5 3067echo "${ECHO_T}$ac_cv_build" >&6 3068build=$ac_cv_build 3069build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3070build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3071build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3072 3073 3074echo "$as_me:$LINENO: checking host system type" >&5 3075echo $ECHO_N "checking host system type... $ECHO_C" >&6 3076if test "${ac_cv_host+set}" = set; then 3077 echo $ECHO_N "(cached) $ECHO_C" >&6 3078else 3079 ac_cv_host_alias=$host_alias 3080test -z "$ac_cv_host_alias" && 3081 ac_cv_host_alias=$ac_cv_build_alias 3082ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 3083 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 3084echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 3085 { (exit 1); exit 1; }; } 3086 3087fi 3088echo "$as_me:$LINENO: result: $ac_cv_host" >&5 3089echo "${ECHO_T}$ac_cv_host" >&6 3090host=$ac_cv_host 3091host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 3092host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 3093host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 3094 3095 3096CANONICAL_HOST=$host 3097 3098 3099# Check whether --enable-largefile or --disable-largefile was given. 3100if test "${enable_largefile+set}" = set; then 3101 enableval="$enable_largefile" 3102 3103fi; 3104if test "$enable_largefile" != no; then 3105 3106 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 3107echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 3108if test "${ac_cv_sys_largefile_CC+set}" = set; then 3109 echo $ECHO_N "(cached) $ECHO_C" >&6 3110else 3111 ac_cv_sys_largefile_CC=no 3112 if test "$GCC" != yes; then 3113 ac_save_CC=$CC 3114 while :; do 3115 # IRIX 6.2 and later do not support large files by default, 3116 # so use the C compiler's -n32 option if that helps. 3117 cat >conftest.$ac_ext <<_ACEOF 3118#line $LINENO "configure" 3119#include "confdefs.h" 3120#include <sys/types.h> 3121 /* Check that off_t can represent 2**63 - 1 correctly. 3122 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3123 since some C++ compilers masquerading as C compilers 3124 incorrectly reject 9223372036854775807. */ 3125#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3126 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3127 && LARGE_OFF_T % 2147483647 == 1) 3128 ? 1 : -1]; 3129#ifdef F77_DUMMY_MAIN 3130# ifdef __cplusplus 3131 extern "C" 3132# endif 3133 int F77_DUMMY_MAIN() { return 1; } 3134#endif 3135int 3136main () 3137{ 3138 3139 ; 3140 return 0; 3141} 3142_ACEOF 3143 rm -f conftest.$ac_objext 3144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3145 (eval $ac_compile) 2>&5 3146 ac_status=$? 3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3148 (exit $ac_status); } && 3149 { ac_try='test -s conftest.$ac_objext' 3150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3151 (eval $ac_try) 2>&5 3152 ac_status=$? 3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3154 (exit $ac_status); }; }; then 3155 break 3156else 3157 echo "$as_me: failed program was:" >&5 3158cat conftest.$ac_ext >&5 3159fi 3160rm -f conftest.$ac_objext 3161 CC="$CC -n32" 3162 rm -f conftest.$ac_objext 3163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3164 (eval $ac_compile) 2>&5 3165 ac_status=$? 3166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 (exit $ac_status); } && 3168 { ac_try='test -s conftest.$ac_objext' 3169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3170 (eval $ac_try) 2>&5 3171 ac_status=$? 3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3173 (exit $ac_status); }; }; then 3174 ac_cv_sys_largefile_CC=' -n32'; break 3175else 3176 echo "$as_me: failed program was:" >&5 3177cat conftest.$ac_ext >&5 3178fi 3179rm -f conftest.$ac_objext 3180 break 3181 done 3182 CC=$ac_save_CC 3183 rm -f conftest.$ac_ext 3184 fi 3185fi 3186echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 3187echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 3188 if test "$ac_cv_sys_largefile_CC" != no; then 3189 CC=$CC$ac_cv_sys_largefile_CC 3190 fi 3191 3192 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3193echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 3194if test "${ac_cv_sys_file_offset_bits+set}" = set; then 3195 echo $ECHO_N "(cached) $ECHO_C" >&6 3196else 3197 while :; do 3198 ac_cv_sys_file_offset_bits=no 3199 cat >conftest.$ac_ext <<_ACEOF 3200#line $LINENO "configure" 3201#include "confdefs.h" 3202#include <sys/types.h> 3203 /* Check that off_t can represent 2**63 - 1 correctly. 3204 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3205 since some C++ compilers masquerading as C compilers 3206 incorrectly reject 9223372036854775807. */ 3207#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3208 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3209 && LARGE_OFF_T % 2147483647 == 1) 3210 ? 1 : -1]; 3211#ifdef F77_DUMMY_MAIN 3212# ifdef __cplusplus 3213 extern "C" 3214# endif 3215 int F77_DUMMY_MAIN() { return 1; } 3216#endif 3217int 3218main () 3219{ 3220 3221 ; 3222 return 0; 3223} 3224_ACEOF 3225rm -f conftest.$ac_objext 3226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3227 (eval $ac_compile) 2>&5 3228 ac_status=$? 3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3230 (exit $ac_status); } && 3231 { ac_try='test -s conftest.$ac_objext' 3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3233 (eval $ac_try) 2>&5 3234 ac_status=$? 3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3236 (exit $ac_status); }; }; then 3237 break 3238else 3239 echo "$as_me: failed program was:" >&5 3240cat conftest.$ac_ext >&5 3241fi 3242rm -f conftest.$ac_objext conftest.$ac_ext 3243 cat >conftest.$ac_ext <<_ACEOF 3244#line $LINENO "configure" 3245#include "confdefs.h" 3246#define _FILE_OFFSET_BITS 64 3247#include <sys/types.h> 3248 /* Check that off_t can represent 2**63 - 1 correctly. 3249 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3250 since some C++ compilers masquerading as C compilers 3251 incorrectly reject 9223372036854775807. */ 3252#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3253 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3254 && LARGE_OFF_T % 2147483647 == 1) 3255 ? 1 : -1]; 3256#ifdef F77_DUMMY_MAIN 3257# ifdef __cplusplus 3258 extern "C" 3259# endif 3260 int F77_DUMMY_MAIN() { return 1; } 3261#endif 3262int 3263main () 3264{ 3265 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270rm -f conftest.$ac_objext 3271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3272 (eval $ac_compile) 2>&5 3273 ac_status=$? 3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 (exit $ac_status); } && 3276 { ac_try='test -s conftest.$ac_objext' 3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3278 (eval $ac_try) 2>&5 3279 ac_status=$? 3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 (exit $ac_status); }; }; then 3282 ac_cv_sys_file_offset_bits=64; break 3283else 3284 echo "$as_me: failed program was:" >&5 3285cat conftest.$ac_ext >&5 3286fi 3287rm -f conftest.$ac_objext conftest.$ac_ext 3288 break 3289done 3290fi 3291echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 3292echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 3293if test "$ac_cv_sys_file_offset_bits" != no; then 3294 3295cat >>confdefs.h <<_ACEOF 3296#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3297_ACEOF 3298 3299fi 3300rm -f conftest* 3301 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 3302echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 3303if test "${ac_cv_sys_large_files+set}" = set; then 3304 echo $ECHO_N "(cached) $ECHO_C" >&6 3305else 3306 while :; do 3307 ac_cv_sys_large_files=no 3308 cat >conftest.$ac_ext <<_ACEOF 3309#line $LINENO "configure" 3310#include "confdefs.h" 3311#include <sys/types.h> 3312 /* Check that off_t can represent 2**63 - 1 correctly. 3313 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3314 since some C++ compilers masquerading as C compilers 3315 incorrectly reject 9223372036854775807. */ 3316#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3317 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3318 && LARGE_OFF_T % 2147483647 == 1) 3319 ? 1 : -1]; 3320#ifdef F77_DUMMY_MAIN 3321# ifdef __cplusplus 3322 extern "C" 3323# endif 3324 int F77_DUMMY_MAIN() { return 1; } 3325#endif 3326int 3327main () 3328{ 3329 3330 ; 3331 return 0; 3332} 3333_ACEOF 3334rm -f conftest.$ac_objext 3335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3336 (eval $ac_compile) 2>&5 3337 ac_status=$? 3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3339 (exit $ac_status); } && 3340 { ac_try='test -s conftest.$ac_objext' 3341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3342 (eval $ac_try) 2>&5 3343 ac_status=$? 3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3345 (exit $ac_status); }; }; then 3346 break 3347else 3348 echo "$as_me: failed program was:" >&5 3349cat conftest.$ac_ext >&5 3350fi 3351rm -f conftest.$ac_objext conftest.$ac_ext 3352 cat >conftest.$ac_ext <<_ACEOF 3353#line $LINENO "configure" 3354#include "confdefs.h" 3355#define _LARGE_FILES 1 3356#include <sys/types.h> 3357 /* Check that off_t can represent 2**63 - 1 correctly. 3358 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3359 since some C++ compilers masquerading as C compilers 3360 incorrectly reject 9223372036854775807. */ 3361#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3363 && LARGE_OFF_T % 2147483647 == 1) 3364 ? 1 : -1]; 3365#ifdef F77_DUMMY_MAIN 3366# ifdef __cplusplus 3367 extern "C" 3368# endif 3369 int F77_DUMMY_MAIN() { return 1; } 3370#endif 3371int 3372main () 3373{ 3374 3375 ; 3376 return 0; 3377} 3378_ACEOF 3379rm -f conftest.$ac_objext 3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3381 (eval $ac_compile) 2>&5 3382 ac_status=$? 3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3384 (exit $ac_status); } && 3385 { ac_try='test -s conftest.$ac_objext' 3386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3387 (eval $ac_try) 2>&5 3388 ac_status=$? 3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3390 (exit $ac_status); }; }; then 3391 ac_cv_sys_large_files=1; break 3392else 3393 echo "$as_me: failed program was:" >&5 3394cat conftest.$ac_ext >&5 3395fi 3396rm -f conftest.$ac_objext conftest.$ac_ext 3397 break 3398done 3399fi 3400echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 3401echo "${ECHO_T}$ac_cv_sys_large_files" >&6 3402if test "$ac_cv_sys_large_files" != no; then 3403 3404cat >>confdefs.h <<_ACEOF 3405#define _LARGE_FILES $ac_cv_sys_large_files 3406_ACEOF 3407 3408fi 3409rm -f conftest* 3410fi 3411
|
| 3412if test "$enable_largefile" != no -a "$ac_cv_sys_large_files" != no; then 3413 CPPFLAGS="$CPPFLAGS -D_LARGE_FILES=$ac_cv_sys_large_files" 3414fi
|
3386 3387 3388cat >>confdefs.h <<\_ACEOF 3389#define _GNU_SOURCE 1 3390_ACEOF 3391 3392 3393 3394 3395 3396for ac_prog in 'bison -y' byacc 3397do 3398 # Extract the first word of "$ac_prog", so it can be a program name with args. 3399set dummy $ac_prog; ac_word=$2 3400echo "$as_me:$LINENO: checking for $ac_word" >&5 3401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3402if test "${ac_cv_prog_YACC+set}" = set; then 3403 echo $ECHO_N "(cached) $ECHO_C" >&6 3404else 3405 if test -n "$YACC"; then 3406 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3407else 3408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3409for as_dir in $PATH 3410do 3411 IFS=$as_save_IFS 3412 test -z "$as_dir" && as_dir=. 3413 for ac_exec_ext in '' $ac_executable_extensions; do 3414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3415 ac_cv_prog_YACC="$ac_prog" 3416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3417 break 2 3418 fi 3419done 3420done 3421 3422fi 3423fi 3424YACC=$ac_cv_prog_YACC 3425if test -n "$YACC"; then 3426 echo "$as_me:$LINENO: result: $YACC" >&5 3427echo "${ECHO_T}$YACC" >&6 3428else 3429 echo "$as_me:$LINENO: result: no" >&5 3430echo "${ECHO_T}no" >&6 3431fi 3432 3433 test -n "$YACC" && break 3434done 3435test -n "$YACC" || YACC="yacc" 3436 3437for ac_prog in flex lex 3438do 3439 # Extract the first word of "$ac_prog", so it can be a program name with args. 3440set dummy $ac_prog; ac_word=$2 3441echo "$as_me:$LINENO: checking for $ac_word" >&5 3442echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3443if test "${ac_cv_prog_LEX+set}" = set; then 3444 echo $ECHO_N "(cached) $ECHO_C" >&6 3445else 3446 if test -n "$LEX"; then 3447 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3448else 3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450for as_dir in $PATH 3451do 3452 IFS=$as_save_IFS 3453 test -z "$as_dir" && as_dir=. 3454 for ac_exec_ext in '' $ac_executable_extensions; do 3455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3456 ac_cv_prog_LEX="$ac_prog" 3457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3458 break 2 3459 fi 3460done 3461done 3462 3463fi 3464fi 3465LEX=$ac_cv_prog_LEX 3466if test -n "$LEX"; then 3467 echo "$as_me:$LINENO: result: $LEX" >&5 3468echo "${ECHO_T}$LEX" >&6 3469else 3470 echo "$as_me:$LINENO: result: no" >&5 3471echo "${ECHO_T}no" >&6 3472fi 3473 3474 test -n "$LEX" && break 3475done 3476test -n "$LEX" || LEX=":" 3477 3478if test -z "$LEXLIB" 3479then 3480 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 3481echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 3482if test "${ac_cv_lib_fl_yywrap+set}" = set; then 3483 echo $ECHO_N "(cached) $ECHO_C" >&6 3484else 3485 ac_check_lib_save_LIBS=$LIBS 3486LIBS="-lfl $LIBS" 3487cat >conftest.$ac_ext <<_ACEOF 3488#line $LINENO "configure" 3489#include "confdefs.h" 3490 3491/* Override any gcc2 internal prototype to avoid an error. */ 3492#ifdef __cplusplus 3493extern "C" 3494#endif 3495/* We use char because int might match the return type of a gcc2 3496 builtin and then its argument prototype would still apply. */ 3497char yywrap (); 3498#ifdef F77_DUMMY_MAIN 3499# ifdef __cplusplus 3500 extern "C" 3501# endif 3502 int F77_DUMMY_MAIN() { return 1; } 3503#endif 3504int 3505main () 3506{ 3507yywrap (); 3508 ; 3509 return 0; 3510} 3511_ACEOF 3512rm -f conftest.$ac_objext conftest$ac_exeext 3513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3514 (eval $ac_link) 2>&5 3515 ac_status=$? 3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3517 (exit $ac_status); } && 3518 { ac_try='test -s conftest$ac_exeext' 3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3520 (eval $ac_try) 2>&5 3521 ac_status=$? 3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3523 (exit $ac_status); }; }; then 3524 ac_cv_lib_fl_yywrap=yes 3525else 3526 echo "$as_me: failed program was:" >&5 3527cat conftest.$ac_ext >&5 3528ac_cv_lib_fl_yywrap=no 3529fi 3530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3531LIBS=$ac_check_lib_save_LIBS 3532fi 3533echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 3534echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 3535if test $ac_cv_lib_fl_yywrap = yes; then 3536 LEXLIB="-lfl" 3537else 3538 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 3539echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 3540if test "${ac_cv_lib_l_yywrap+set}" = set; then 3541 echo $ECHO_N "(cached) $ECHO_C" >&6 3542else 3543 ac_check_lib_save_LIBS=$LIBS 3544LIBS="-ll $LIBS" 3545cat >conftest.$ac_ext <<_ACEOF 3546#line $LINENO "configure" 3547#include "confdefs.h" 3548 3549/* Override any gcc2 internal prototype to avoid an error. */ 3550#ifdef __cplusplus 3551extern "C" 3552#endif 3553/* We use char because int might match the return type of a gcc2 3554 builtin and then its argument prototype would still apply. */ 3555char yywrap (); 3556#ifdef F77_DUMMY_MAIN 3557# ifdef __cplusplus 3558 extern "C" 3559# endif 3560 int F77_DUMMY_MAIN() { return 1; } 3561#endif 3562int 3563main () 3564{ 3565yywrap (); 3566 ; 3567 return 0; 3568} 3569_ACEOF 3570rm -f conftest.$ac_objext conftest$ac_exeext 3571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3572 (eval $ac_link) 2>&5 3573 ac_status=$? 3574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3575 (exit $ac_status); } && 3576 { ac_try='test -s conftest$ac_exeext' 3577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3578 (eval $ac_try) 2>&5 3579 ac_status=$? 3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3581 (exit $ac_status); }; }; then 3582 ac_cv_lib_l_yywrap=yes 3583else 3584 echo "$as_me: failed program was:" >&5 3585cat conftest.$ac_ext >&5 3586ac_cv_lib_l_yywrap=no 3587fi 3588rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3589LIBS=$ac_check_lib_save_LIBS 3590fi 3591echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 3592echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 3593if test $ac_cv_lib_l_yywrap = yes; then 3594 LEXLIB="-ll" 3595fi 3596 3597fi 3598 3599fi 3600 3601if test "x$LEX" != "x:"; then 3602 echo "$as_me:$LINENO: checking lex output file root" >&5 3603echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 3604if test "${ac_cv_prog_lex_root+set}" = set; then 3605 echo $ECHO_N "(cached) $ECHO_C" >&6 3606else 3607 # The minimal lex program is just a single line: %%. But some broken lexes 3608# (Solaris, I think it was) want two %% lines, so accommodate them. 3609cat >conftest.l <<_ACEOF 3610%% 3611%% 3612_ACEOF 3613{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 3614 (eval $LEX conftest.l) 2>&5 3615 ac_status=$? 3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3617 (exit $ac_status); } 3618if test -f lex.yy.c; then 3619 ac_cv_prog_lex_root=lex.yy 3620elif test -f lexyy.c; then 3621 ac_cv_prog_lex_root=lexyy 3622else 3623 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3624echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3625 { (exit 1); exit 1; }; } 3626fi 3627fi 3628echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3629echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 3630rm -f conftest.l 3631LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3632 3633echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3634echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 3635if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3636 echo $ECHO_N "(cached) $ECHO_C" >&6 3637else 3638 # POSIX says lex can declare yytext either as a pointer or an array; the 3639# default is implementation-dependent. Figure out which it is, since 3640# not all implementations provide the %pointer and %array declarations. 3641ac_cv_prog_lex_yytext_pointer=no 3642echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 3643ac_save_LIBS=$LIBS 3644LIBS="$LIBS $LEXLIB" 3645cat >conftest.$ac_ext <<_ACEOF 3646`cat $LEX_OUTPUT_ROOT.c` 3647_ACEOF 3648rm -f conftest.$ac_objext conftest$ac_exeext 3649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3650 (eval $ac_link) 2>&5 3651 ac_status=$? 3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3653 (exit $ac_status); } && 3654 { ac_try='test -s conftest$ac_exeext' 3655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3656 (eval $ac_try) 2>&5 3657 ac_status=$? 3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3659 (exit $ac_status); }; }; then 3660 ac_cv_prog_lex_yytext_pointer=yes 3661else 3662 echo "$as_me: failed program was:" >&5 3663cat conftest.$ac_ext >&5 3664fi 3665rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3666LIBS=$ac_save_LIBS 3667rm -f "${LEX_OUTPUT_ROOT}.c" 3668 3669fi 3670echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3671echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 3672if test $ac_cv_prog_lex_yytext_pointer = yes; then 3673 3674cat >>confdefs.h <<\_ACEOF 3675#define YYTEXT_POINTER 1 3676_ACEOF 3677 3678fi 3679 3680fi 3681if test "$LEX" = :; then 3682 LEX=${am_missing_run}flex 3683fi 3684for ac_prog in gawk mawk nawk awk 3685do 3686 # Extract the first word of "$ac_prog", so it can be a program name with args. 3687set dummy $ac_prog; ac_word=$2 3688echo "$as_me:$LINENO: checking for $ac_word" >&5 3689echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3690if test "${ac_cv_prog_AWK+set}" = set; then 3691 echo $ECHO_N "(cached) $ECHO_C" >&6 3692else 3693 if test -n "$AWK"; then 3694 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3695else 3696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3697for as_dir in $PATH 3698do 3699 IFS=$as_save_IFS 3700 test -z "$as_dir" && as_dir=. 3701 for ac_exec_ext in '' $ac_executable_extensions; do 3702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3703 ac_cv_prog_AWK="$ac_prog" 3704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3705 break 2 3706 fi 3707done 3708done 3709 3710fi 3711fi 3712AWK=$ac_cv_prog_AWK 3713if test -n "$AWK"; then 3714 echo "$as_me:$LINENO: result: $AWK" >&5 3715echo "${ECHO_T}$AWK" >&6 3716else 3717 echo "$as_me:$LINENO: result: no" >&5 3718echo "${ECHO_T}no" >&6 3719fi 3720 3721 test -n "$AWK" && break 3722done 3723 3724echo "$as_me:$LINENO: checking for ln -s or something else" >&5 3725echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6 3726if test "${ac_cv_prog_LN_S+set}" = set; then 3727 echo $ECHO_N "(cached) $ECHO_C" >&6 3728else 3729 rm -f conftestdata 3730if ln -s X conftestdata 2>/dev/null 3731then 3732 rm -f conftestdata 3733 ac_cv_prog_LN_S="ln -s" 3734else 3735 touch conftestdata1 3736 if ln conftestdata1 conftestdata2; then 3737 rm -f conftestdata* 3738 ac_cv_prog_LN_S=ln 3739 else 3740 ac_cv_prog_LN_S=cp 3741 fi 3742fi 3743fi 3744LN_S="$ac_cv_prog_LN_S" 3745echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5 3746echo "${ECHO_T}$ac_cv_prog_LN_S" >&6 3747 3748 3749 3750 3751# Check whether --with-mips_abi or --without-mips_abi was given. 3752if test "${with_mips_abi+set}" = set; then 3753 withval="$with_mips_abi" 3754 3755fi; 3756 3757case "$host_os" in 3758irix*) 3759with_mips_abi="${with_mips_abi:-yes}" 3760if test -n "$GCC"; then 3761 3762# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 3763# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 3764# 3765# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 3766# GCC and revert back to O32. The same goes if O32 is asked for - old 3767# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 3768# 3769# Don't you just love *all* the different SGI ABIs? 3770 3771case "${with_mips_abi}" in 3772 32|o32) abi='-mabi=32'; abilibdirext='' ;; 3773 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 3774 64) abi='-mabi=64'; abilibdirext='64' ;; 3775 no) abi=''; abilibdirext='';; 3776 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5 3777echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 3778 { (exit 1); exit 1; }; } ;; 3779esac 3780if test -n "$abi" ; then 3781ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 3782echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5 3783echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6 3784if eval "test \"\${$ac_foo+set}\" = set"; then 3785 echo $ECHO_N "(cached) $ECHO_C" >&6 3786else 3787 3788save_CFLAGS="$CFLAGS" 3789CFLAGS="$CFLAGS $abi" 3790cat >conftest.$ac_ext <<_ACEOF 3791#line $LINENO "configure" 3792#include "confdefs.h" 3793 3794#ifdef F77_DUMMY_MAIN 3795# ifdef __cplusplus 3796 extern "C" 3797# endif 3798 int F77_DUMMY_MAIN() { return 1; } 3799#endif 3800int 3801main () 3802{ 3803int x; 3804 ; 3805 return 0; 3806} 3807_ACEOF 3808rm -f conftest.$ac_objext 3809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3810 (eval $ac_compile) 2>&5 3811 ac_status=$? 3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3813 (exit $ac_status); } && 3814 { ac_try='test -s conftest.$ac_objext' 3815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3816 (eval $ac_try) 2>&5 3817 ac_status=$? 3818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3819 (exit $ac_status); }; }; then 3820 eval $ac_foo=yes 3821else 3822 echo "$as_me: failed program was:" >&5 3823cat conftest.$ac_ext >&5 3824eval $ac_foo=no 3825fi 3826rm -f conftest.$ac_objext conftest.$ac_ext 3827CFLAGS="$save_CFLAGS" 3828 3829fi 3830 3831ac_res=`eval echo \\\$$ac_foo` 3832echo "$as_me:$LINENO: result: $ac_res" >&5 3833echo "${ECHO_T}$ac_res" >&6 3834if test $ac_res = no; then 3835# Try to figure out why that failed... 3836case $abi in 3837 -mabi=32) 3838 save_CFLAGS="$CFLAGS" 3839 CFLAGS="$CFLAGS -mabi=n32" 3840 cat >conftest.$ac_ext <<_ACEOF 3841#line $LINENO "configure" 3842#include "confdefs.h" 3843 3844#ifdef F77_DUMMY_MAIN 3845# ifdef __cplusplus 3846 extern "C" 3847# endif 3848 int F77_DUMMY_MAIN() { return 1; } 3849#endif 3850int 3851main () 3852{ 3853int x; 3854 ; 3855 return 0; 3856} 3857_ACEOF 3858rm -f conftest.$ac_objext 3859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3860 (eval $ac_compile) 2>&5 3861 ac_status=$? 3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3863 (exit $ac_status); } && 3864 { ac_try='test -s conftest.$ac_objext' 3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3866 (eval $ac_try) 2>&5 3867 ac_status=$? 3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3869 (exit $ac_status); }; }; then 3870 ac_res=yes 3871else 3872 echo "$as_me: failed program was:" >&5 3873cat conftest.$ac_ext >&5 3874ac_res=no 3875fi 3876rm -f conftest.$ac_objext conftest.$ac_ext 3877 CLAGS="$save_CFLAGS" 3878 if test $ac_res = yes; then 3879 # New GCC 3880 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5 3881echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 3882 { (exit 1); exit 1; }; } 3883 fi 3884 # Old GCC 3885 abi='' 3886 abilibdirext='' 3887 ;; 3888 -mabi=n32|-mabi=64) 3889 if test $with_mips_abi = yes; then 3890 # Old GCC, default to O32 3891 abi='' 3892 abilibdirext='' 3893 else 3894 # Some broken GCC 3895 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5 3896echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 3897 { (exit 1); exit 1; }; } 3898 fi 3899 ;; 3900esac 3901fi #if test $ac_res = no; then 3902fi #if test -n "$abi" ; then 3903else 3904case "${with_mips_abi}" in 3905 32|o32) abi='-32'; abilibdirext='' ;; 3906 n32|yes) abi='-n32'; abilibdirext='32' ;; 3907 64) abi='-64'; abilibdirext='64' ;; 3908 no) abi=''; abilibdirext='';; 3909 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5 3910echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 3911 { (exit 1); exit 1; }; } ;; 3912esac 3913fi #if test -n "$GCC"; then 3914;; 3915esac 3916 3917CC="$CC $abi" 3918libdir="$libdir$abilibdirext" 3919 3920 3921echo "$as_me:$LINENO: checking for __attribute__" >&5 3922echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 3923if test "${ac_cv___attribute__+set}" = set; then 3924 echo $ECHO_N "(cached) $ECHO_C" >&6 3925else 3926 3927cat >conftest.$ac_ext <<_ACEOF 3928#line $LINENO "configure" 3929#include "confdefs.h" 3930 3931#include <stdlib.h> 3932 3933#ifdef F77_DUMMY_MAIN 3934# ifdef __cplusplus 3935 extern "C" 3936# endif 3937 int F77_DUMMY_MAIN() { return 1; } 3938#endif 3939int 3940main () 3941{ 3942 3943static void foo(void) __attribute__ ((noreturn)); 3944 3945static void 3946foo(void) 3947{ 3948 exit(1); 3949} 3950 3951 ; 3952 return 0; 3953} 3954_ACEOF 3955rm -f conftest.$ac_objext 3956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3957 (eval $ac_compile) 2>&5 3958 ac_status=$? 3959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3960 (exit $ac_status); } && 3961 { ac_try='test -s conftest.$ac_objext' 3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3963 (eval $ac_try) 2>&5 3964 ac_status=$? 3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3966 (exit $ac_status); }; }; then 3967 ac_cv___attribute__=yes 3968else 3969 echo "$as_me: failed program was:" >&5 3970cat conftest.$ac_ext >&5 3971ac_cv___attribute__=no 3972fi 3973rm -f conftest.$ac_objext conftest.$ac_ext 3974fi 3975 3976if test "$ac_cv___attribute__" = "yes"; then 3977 3978cat >>confdefs.h <<\_ACEOF 3979#define HAVE___ATTRIBUTE__ 1 3980_ACEOF 3981 3982fi 3983echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 3984echo "${ECHO_T}$ac_cv___attribute__" >&6 3985 3986 3987# Check whether --enable-shared or --disable-shared was given. 3988if test "${enable_shared+set}" = set; then 3989 enableval="$enable_shared" 3990 p=${PACKAGE-default} 3991case $enableval in 3992yes) enable_shared=yes ;; 3993no) enable_shared=no ;; 3994*) 3995 enable_shared=no 3996 # Look at the argument we got. We use all the common list separators. 3997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 3998 for pkg in $enableval; do 3999 if test "X$pkg" = "X$p"; then 4000 enable_shared=yes 4001 fi 4002 done 4003 IFS="$ac_save_ifs" 4004 ;; 4005esac 4006else 4007 enable_shared=no 4008fi; 4009# Check whether --enable-static or --disable-static was given. 4010if test "${enable_static+set}" = set; then 4011 enableval="$enable_static" 4012 p=${PACKAGE-default} 4013case $enableval in 4014yes) enable_static=yes ;; 4015no) enable_static=no ;; 4016*) 4017 enable_static=no 4018 # Look at the argument we got. We use all the common list separators. 4019 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4020 for pkg in $enableval; do 4021 if test "X$pkg" = "X$p"; then 4022 enable_static=yes 4023 fi 4024 done 4025 IFS="$ac_save_ifs" 4026 ;; 4027esac 4028else 4029 enable_static=yes 4030fi; 4031# Check whether --enable-fast-install or --disable-fast-install was given. 4032if test "${enable_fast_install+set}" = set; then 4033 enableval="$enable_fast_install" 4034 p=${PACKAGE-default} 4035case $enableval in 4036yes) enable_fast_install=yes ;; 4037no) enable_fast_install=no ;; 4038*) 4039 enable_fast_install=no 4040 # Look at the argument we got. We use all the common list separators. 4041 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4042 for pkg in $enableval; do 4043 if test "X$pkg" = "X$p"; then 4044 enable_fast_install=yes 4045 fi 4046 done 4047 IFS="$ac_save_ifs" 4048 ;; 4049esac 4050else 4051 enable_fast_install=yes 4052fi; 4053# Find the correct PATH separator. Usually this is `:', but 4054# DJGPP uses `;' like DOS. 4055if test "X${PATH_SEPARATOR+set}" != Xset; then 4056 UNAME=${UNAME-`uname 2>/dev/null`} 4057 case X$UNAME in 4058 *-DOS) lt_cv_sys_path_separator=';' ;; 4059 *) lt_cv_sys_path_separator=':' ;; 4060 esac 4061 PATH_SEPARATOR=$lt_cv_sys_path_separator 4062fi 4063 4064 4065# Check whether --with-gnu-ld or --without-gnu-ld was given. 4066if test "${with_gnu_ld+set}" = set; then 4067 withval="$with_gnu_ld" 4068 test "$withval" = no || with_gnu_ld=yes 4069else 4070 with_gnu_ld=no 4071fi; 4072ac_prog=ld 4073if test "$GCC" = yes; then 4074 # Check if gcc -print-prog-name=ld gives a path. 4075 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 4076echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 4077 case $host in 4078 *-*-mingw*) 4079 # gcc leaves a trailing carriage return which upsets mingw 4080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4081 *) 4082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4083 esac 4084 case $ac_prog in 4085 # Accept absolute paths. 4086 [\\/]* | [A-Za-z]:[\\/]*) 4087 re_direlt='/[^/][^/]*/\.\./' 4088 # Canonicalize the path of ld 4089 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4090 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4091 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4092 done 4093 test -z "$LD" && LD="$ac_prog" 4094 ;; 4095 "") 4096 # If it fails, then pretend we aren't using GCC. 4097 ac_prog=ld 4098 ;; 4099 *) 4100 # If it is relative, then search for the first ld in PATH. 4101 with_gnu_ld=unknown 4102 ;; 4103 esac 4104elif test "$with_gnu_ld" = yes; then 4105 echo "$as_me:$LINENO: checking for GNU ld" >&5 4106echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4107else 4108 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4109echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4110fi 4111if test "${lt_cv_path_LD+set}" = set; then 4112 echo $ECHO_N "(cached) $ECHO_C" >&6 4113else 4114 if test -z "$LD"; then 4115 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4116 for ac_dir in $PATH; do 4117 test -z "$ac_dir" && ac_dir=. 4118 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4119 lt_cv_path_LD="$ac_dir/$ac_prog" 4120 # Check to see if the program is GNU ld. I'd rather use --version, 4121 # but apparently some GNU ld's only accept -v. 4122 # Break only if it was the GNU/non-GNU ld that we prefer. 4123 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 4124 test "$with_gnu_ld" != no && break 4125 else 4126 test "$with_gnu_ld" != yes && break 4127 fi 4128 fi 4129 done 4130 IFS="$ac_save_ifs" 4131else 4132 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4133fi 4134fi 4135 4136LD="$lt_cv_path_LD" 4137if test -n "$LD"; then 4138 echo "$as_me:$LINENO: result: $LD" >&5 4139echo "${ECHO_T}$LD" >&6 4140else 4141 echo "$as_me:$LINENO: result: no" >&5 4142echo "${ECHO_T}no" >&6 4143fi 4144test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4145echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4146 { (exit 1); exit 1; }; } 4147echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4148echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4149if test "${lt_cv_prog_gnu_ld+set}" = set; then 4150 echo $ECHO_N "(cached) $ECHO_C" >&6 4151else 4152 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4153if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 4154 lt_cv_prog_gnu_ld=yes 4155else 4156 lt_cv_prog_gnu_ld=no 4157fi 4158fi 4159echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4160echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4161with_gnu_ld=$lt_cv_prog_gnu_ld 4162 4163 4164echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4165echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4166if test "${lt_cv_ld_reload_flag+set}" = set; then 4167 echo $ECHO_N "(cached) $ECHO_C" >&6 4168else 4169 lt_cv_ld_reload_flag='-r' 4170fi 4171echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4172echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4173reload_flag=$lt_cv_ld_reload_flag 4174test -n "$reload_flag" && reload_flag=" $reload_flag" 4175 4176echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4177echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4178if test "${lt_cv_path_NM+set}" = set; then 4179 echo $ECHO_N "(cached) $ECHO_C" >&6 4180else 4181 if test -n "$NM"; then 4182 # Let the user override the test. 4183 lt_cv_path_NM="$NM" 4184else 4185 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4186 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4187 test -z "$ac_dir" && ac_dir=. 4188 tmp_nm=$ac_dir/${ac_tool_prefix}nm 4189 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 4190 # Check to see if the nm accepts a BSD-compat flag. 4191 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4192 # nm: unknown option "B" ignored 4193 # Tru64's nm complains that /dev/null is an invalid object file 4194 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 4195 lt_cv_path_NM="$tmp_nm -B" 4196 break 4197 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 4198 lt_cv_path_NM="$tmp_nm -p" 4199 break 4200 else 4201 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4202 continue # so that we can try to find one that supports BSD flags 4203 fi 4204 fi 4205 done 4206 IFS="$ac_save_ifs" 4207 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4208fi 4209fi 4210 4211NM="$lt_cv_path_NM" 4212echo "$as_me:$LINENO: result: $NM" >&5 4213echo "${ECHO_T}$NM" >&6 4214 4215echo "$as_me:$LINENO: checking whether ln -s works" >&5 4216echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4217LN_S=$as_ln_s 4218if test "$LN_S" = "ln -s"; then 4219 echo "$as_me:$LINENO: result: yes" >&5 4220echo "${ECHO_T}yes" >&6 4221else 4222 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4223echo "${ECHO_T}no, using $LN_S" >&6 4224fi 4225 4226echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 4227echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 4228if test "${lt_cv_deplibs_check_method+set}" = set; then 4229 echo $ECHO_N "(cached) $ECHO_C" >&6 4230else 4231 lt_cv_file_magic_cmd='$MAGIC_CMD' 4232lt_cv_file_magic_test_file= 4233lt_cv_deplibs_check_method='unknown' 4234# Need to set the preceding variable on all platforms that support 4235# interlibrary dependencies. 4236# 'none' -- dependencies not supported. 4237# `unknown' -- same as none, but documents that we really don't know. 4238# 'pass_all' -- all dependencies passed with no checks. 4239# 'test_compile' -- check by making test program. 4240# 'file_magic [[regex]]' -- check by looking for files in library path 4241# which responds to the $file_magic_cmd with a given egrep regex. 4242# If you have `file' or equivalent on your system and you're not sure 4243# whether `pass_all' will *always* work, you probably want this one. 4244 4245case $host_os in 4246aix4* | aix5*) 4247 lt_cv_deplibs_check_method=pass_all 4248 ;; 4249 4250beos*) 4251 lt_cv_deplibs_check_method=pass_all 4252 ;; 4253 4254bsdi4*) 4255 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4256 lt_cv_file_magic_cmd='/usr/bin/file -L' 4257 lt_cv_file_magic_test_file=/shlib/libc.so 4258 ;; 4259 4260cygwin* | mingw* | pw32*) 4261 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4262 lt_cv_file_magic_cmd='$OBJDUMP -f' 4263 ;; 4264 4265darwin* | rhapsody*) 4266 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 4267 lt_cv_file_magic_cmd='/usr/bin/file -L' 4268 case "$host_os" in 4269 rhapsody* | darwin1.[012]) 4270 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 4271 ;; 4272 *) # Darwin 1.3 on 4273 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 4274 ;; 4275 esac 4276 ;; 4277 4278freebsd*) 4279 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4280 case $host_cpu in 4281 i*86 ) 4282 # Not sure whether the presence of OpenBSD here was a mistake. 4283 # Let's accept both of them until this is cleared up. 4284 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4285 lt_cv_file_magic_cmd=/usr/bin/file 4286 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4287 ;; 4288 esac 4289 else 4290 lt_cv_deplibs_check_method=pass_all 4291 fi 4292 ;; 4293 4294gnu*) 4295 lt_cv_deplibs_check_method=pass_all 4296 ;; 4297 4298hpux10.20*|hpux11*) 4299 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4300 lt_cv_file_magic_cmd=/usr/bin/file 4301 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4302 ;; 4303 4304irix5* | irix6*) 4305 case $host_os in 4306 irix5*) 4307 # this will be overridden with pass_all, but let us keep it just in case 4308 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 4309 ;; 4310 *) 4311 case $LD in 4312 *-32|*"-32 ") libmagic=32-bit;; 4313 *-n32|*"-n32 ") libmagic=N32;; 4314 *-64|*"-64 ") libmagic=64-bit;; 4315 *) libmagic=never-match;; 4316 esac 4317 # this will be overridden with pass_all, but let us keep it just in case 4318 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 4319 ;; 4320 esac 4321 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 4322 lt_cv_deplibs_check_method=pass_all 4323 ;; 4324 4325# This must be Linux ELF. 4326linux-gnu*) 4327 case $host_cpu in 4328 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 4329 lt_cv_deplibs_check_method=pass_all ;; 4330 *) 4331 # glibc up to 2.1.1 does not perform some relocations on ARM 4332 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 4333 esac 4334 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 4335 ;; 4336 4337netbsd*) 4338 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4339 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 4340 else 4341 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 4342 fi 4343 ;; 4344 4345newos6*) 4346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4347 lt_cv_file_magic_cmd=/usr/bin/file 4348 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4349 ;; 4350 4351openbsd*) 4352 lt_cv_file_magic_cmd=/usr/bin/file 4353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4354 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4355 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4356 else 4357 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4358 fi 4359 ;; 4360 4361osf3* | osf4* | osf5*) 4362 # this will be overridden with pass_all, but let us keep it just in case 4363 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4364 lt_cv_file_magic_test_file=/shlib/libc.so 4365 lt_cv_deplibs_check_method=pass_all 4366 ;; 4367 4368sco3.2v5*) 4369 lt_cv_deplibs_check_method=pass_all 4370 ;; 4371 4372solaris*) 4373 lt_cv_deplibs_check_method=pass_all 4374 lt_cv_file_magic_test_file=/lib/libc.so 4375 ;; 4376 4377sysv5uw[78]* | sysv4*uw2*) 4378 lt_cv_deplibs_check_method=pass_all 4379 ;; 4380 4381sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4382 case $host_vendor in 4383 motorola) 4384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 4385 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4386 ;; 4387 ncr) 4388 lt_cv_deplibs_check_method=pass_all 4389 ;; 4390 sequent) 4391 lt_cv_file_magic_cmd='/bin/file' 4392 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4393 ;; 4394 sni) 4395 lt_cv_file_magic_cmd='/bin/file' 4396 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4397 lt_cv_file_magic_test_file=/lib/libc.so 4398 ;; 4399 esac 4400 ;; 4401esac 4402 4403fi 4404echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4405echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4406file_magic_cmd=$lt_cv_file_magic_cmd 4407deplibs_check_method=$lt_cv_deplibs_check_method 4408 4409 4410 4411 4412 4413# Check for command to grab the raw symbol name followed by C symbol from nm. 4414echo "$as_me:$LINENO: checking command to parse $NM output" >&5 4415echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 4416if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4417 echo $ECHO_N "(cached) $ECHO_C" >&6 4418else 4419 4420# These are sane defaults that work on at least a few old systems. 4421# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4422 4423# Character class describing NM global symbol codes. 4424symcode='[BCDEGRST]' 4425 4426# Regexp to match symbols that can be accessed directly from C. 4427sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4428 4429# Transform the above into a raw symbol and a C symbol. 4430symxfrm='\1 \2\3 \3' 4431 4432# Transform an extracted symbol line into a proper C declaration 4433lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 4434 4435# Transform an extracted symbol line into symbol name and symbol address 4436lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4437 4438# Define system-specific variables. 4439case $host_os in 4440aix*) 4441 symcode='[BCDT]' 4442 ;; 4443cygwin* | mingw* | pw32*) 4444 symcode='[ABCDGISTW]' 4445 ;; 4446hpux*) # Its linker distinguishes data from code symbols 4447 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4448 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4449 ;; 4450irix*) 4451 symcode='[BCDEGRST]' 4452 ;; 4453solaris* | sysv5*) 4454 symcode='[BDT]' 4455 ;; 4456sysv4) 4457 symcode='[DFNSTU]' 4458 ;; 4459esac 4460 4461# Handle CRLF in mingw tool chain 4462opt_cr= 4463case $host_os in 4464mingw*) 4465 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4466 ;; 4467esac 4468 4469# If we're using GNU nm, then use its standard symbol codes. 4470if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 4471 symcode='[ABCDGISTW]' 4472fi 4473 4474# Try without a prefix undercore, then with it. 4475for ac_symprfx in "" "_"; do 4476 4477 # Write the raw and C identifiers. 4478lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4479 4480 # Check to see that the pipe works correctly. 4481 pipe_works=no 4482 rm -f conftest* 4483 cat > conftest.$ac_ext <<EOF 4484#ifdef __cplusplus 4485extern "C" { 4486#endif 4487char nm_test_var; 4488void nm_test_func(){} 4489#ifdef __cplusplus 4490} 4491#endif 4492int main(){nm_test_var='a';nm_test_func();return(0);} 4493EOF 4494 4495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4496 (eval $ac_compile) 2>&5 4497 ac_status=$? 4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4499 (exit $ac_status); }; then 4500 # Now try to grab the symbols. 4501 nlist=conftest.nm 4502 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4503 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4504 ac_status=$? 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4506 (exit $ac_status); } && test -s "$nlist"; then 4507 # Try sorting and uniquifying the output. 4508 if sort "$nlist" | uniq > "$nlist"T; then 4509 mv -f "$nlist"T "$nlist" 4510 else 4511 rm -f "$nlist"T 4512 fi 4513 4514 # Make sure that we snagged all the symbols we need. 4515 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 4516 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 4517 cat <<EOF > conftest.$ac_ext 4518#ifdef __cplusplus 4519extern "C" { 4520#endif 4521 4522EOF 4523 # Now generate the symbol file. 4524 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 4525 4526 cat <<EOF >> conftest.$ac_ext 4527#if defined (__STDC__) && __STDC__ 4528# define lt_ptr void * 4529#else 4530# define lt_ptr char * 4531# define const 4532#endif 4533 4534/* The mapping between symbol names and symbols. */ 4535const struct { 4536 const char *name; 4537 lt_ptr address; 4538} 4539lt_preloaded_symbols[] = 4540{ 4541EOF 4542 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 4543 cat <<\EOF >> conftest.$ac_ext 4544 {0, (lt_ptr) 0} 4545}; 4546 4547#ifdef __cplusplus 4548} 4549#endif 4550EOF 4551 # Now try linking the two files. 4552 mv conftest.$ac_objext conftstm.$ac_objext 4553 save_LIBS="$LIBS" 4554 save_CFLAGS="$CFLAGS" 4555 LIBS="conftstm.$ac_objext" 4556 CFLAGS="$CFLAGS$no_builtin_flag" 4557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4558 (eval $ac_link) 2>&5 4559 ac_status=$? 4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4561 (exit $ac_status); } && test -s conftest; then 4562 pipe_works=yes 4563 fi 4564 LIBS="$save_LIBS" 4565 CFLAGS="$save_CFLAGS" 4566 else 4567 echo "cannot find nm_test_func in $nlist" >&5 4568 fi 4569 else 4570 echo "cannot find nm_test_var in $nlist" >&5 4571 fi 4572 else 4573 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4574 fi 4575 else 4576 echo "$progname: failed program was:" >&5 4577 cat conftest.$ac_ext >&5 4578 fi 4579 rm -f conftest* conftst* 4580 4581 # Do not use the global_symbol_pipe unless it works. 4582 if test "$pipe_works" = yes; then 4583 break 4584 else 4585 lt_cv_sys_global_symbol_pipe= 4586 fi 4587done 4588 4589fi 4590 4591global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 4592if test -z "$lt_cv_sys_global_symbol_pipe"; then 4593 global_symbol_to_cdecl= 4594 global_symbol_to_c_name_address= 4595else 4596 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4597 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 4598fi 4599if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 4600then 4601 echo "$as_me:$LINENO: result: failed" >&5 4602echo "${ECHO_T}failed" >&6 4603else 4604 echo "$as_me:$LINENO: result: ok" >&5 4605echo "${ECHO_T}ok" >&6 4606fi 4607 4608 4609echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4610echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4611if test "${ac_cv_header_stdc+set}" = set; then 4612 echo $ECHO_N "(cached) $ECHO_C" >&6 4613else 4614 cat >conftest.$ac_ext <<_ACEOF 4615#line $LINENO "configure" 4616#include "confdefs.h" 4617#include <stdlib.h> 4618#include <stdarg.h> 4619#include <string.h> 4620#include <float.h> 4621 4622_ACEOF 4623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4625 ac_status=$? 4626 egrep -v '^ *\+' conftest.er1 >conftest.err 4627 rm -f conftest.er1 4628 cat conftest.err >&5 4629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4630 (exit $ac_status); } >/dev/null; then 4631 if test -s conftest.err; then 4632 ac_cpp_err=$ac_c_preproc_warn_flag 4633 else 4634 ac_cpp_err= 4635 fi 4636else 4637 ac_cpp_err=yes 4638fi 4639if test -z "$ac_cpp_err"; then 4640 ac_cv_header_stdc=yes 4641else 4642 echo "$as_me: failed program was:" >&5 4643 cat conftest.$ac_ext >&5 4644 ac_cv_header_stdc=no 4645fi 4646rm -f conftest.err conftest.$ac_ext 4647 4648if test $ac_cv_header_stdc = yes; then 4649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4650 cat >conftest.$ac_ext <<_ACEOF 4651#line $LINENO "configure" 4652#include "confdefs.h" 4653#include <string.h> 4654 4655_ACEOF 4656if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4657 egrep "memchr" >/dev/null 2>&1; then 4658 : 4659else 4660 ac_cv_header_stdc=no 4661fi 4662rm -f conftest* 4663 4664fi 4665 4666if test $ac_cv_header_stdc = yes; then 4667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4668 cat >conftest.$ac_ext <<_ACEOF 4669#line $LINENO "configure" 4670#include "confdefs.h" 4671#include <stdlib.h> 4672 4673_ACEOF 4674if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4675 egrep "free" >/dev/null 2>&1; then 4676 : 4677else 4678 ac_cv_header_stdc=no 4679fi 4680rm -f conftest* 4681 4682fi 4683 4684if test $ac_cv_header_stdc = yes; then 4685 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4686 if test "$cross_compiling" = yes; then 4687 : 4688else 4689 cat >conftest.$ac_ext <<_ACEOF 4690#line $LINENO "configure" 4691#include "confdefs.h" 4692#include <ctype.h> 4693#if ((' ' & 0x0FF) == 0x020) 4694# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4695# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4696#else 4697# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4698 || ('j' <= (c) && (c) <= 'r') \ 4699 || ('s' <= (c) && (c) <= 'z')) 4700# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4701#endif 4702 4703#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4704int 4705main () 4706{ 4707 int i; 4708 for (i = 0; i < 256; i++) 4709 if (XOR (islower (i), ISLOWER (i)) 4710 || toupper (i) != TOUPPER (i)) 4711 exit(2); 4712 exit (0); 4713} 4714_ACEOF 4715rm -f conftest$ac_exeext 4716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4717 (eval $ac_link) 2>&5 4718 ac_status=$? 4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4722 (eval $ac_try) 2>&5 4723 ac_status=$? 4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4725 (exit $ac_status); }; }; then 4726 : 4727else 4728 echo "$as_me: program exited with status $ac_status" >&5 4729echo "$as_me: failed program was:" >&5 4730cat conftest.$ac_ext >&5 4731( exit $ac_status ) 4732ac_cv_header_stdc=no 4733fi 4734rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4735fi 4736fi 4737fi 4738echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4739echo "${ECHO_T}$ac_cv_header_stdc" >&6 4740if test $ac_cv_header_stdc = yes; then 4741 4742cat >>confdefs.h <<\_ACEOF 4743#define STDC_HEADERS 1 4744_ACEOF 4745 4746fi 4747 4748# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4759 inttypes.h stdint.h unistd.h 4760do 4761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4762echo "$as_me:$LINENO: checking for $ac_header" >&5 4763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4764if eval "test \"\${$as_ac_Header+set}\" = set"; then 4765 echo $ECHO_N "(cached) $ECHO_C" >&6 4766else 4767 cat >conftest.$ac_ext <<_ACEOF 4768#line $LINENO "configure" 4769#include "confdefs.h" 4770$ac_includes_default 4771 4772#include <$ac_header> 4773_ACEOF 4774rm -f conftest.$ac_objext 4775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4776 (eval $ac_compile) 2>&5 4777 ac_status=$? 4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4779 (exit $ac_status); } && 4780 { ac_try='test -s conftest.$ac_objext' 4781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4782 (eval $ac_try) 2>&5 4783 ac_status=$? 4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4785 (exit $ac_status); }; }; then 4786 eval "$as_ac_Header=yes" 4787else 4788 echo "$as_me: failed program was:" >&5 4789cat conftest.$ac_ext >&5 4790eval "$as_ac_Header=no" 4791fi 4792rm -f conftest.$ac_objext conftest.$ac_ext 4793fi 4794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4795echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4796if test `eval echo '${'$as_ac_Header'}'` = yes; then 4797 cat >>confdefs.h <<_ACEOF 4798#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4799_ACEOF 4800 4801fi 4802 4803done 4804 4805 4806 4807for ac_header in dlfcn.h 4808do 4809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4810if eval "test \"\${$as_ac_Header+set}\" = set"; then 4811 echo "$as_me:$LINENO: checking for $ac_header" >&5 4812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4813if eval "test \"\${$as_ac_Header+set}\" = set"; then 4814 echo $ECHO_N "(cached) $ECHO_C" >&6 4815fi 4816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4818else 4819 # Is the header compilable? 4820echo "$as_me:$LINENO: checking $ac_header usability" >&5 4821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4822cat >conftest.$ac_ext <<_ACEOF 4823#line $LINENO "configure" 4824#include "confdefs.h" 4825$ac_includes_default 4826#include <$ac_header> 4827_ACEOF 4828rm -f conftest.$ac_objext 4829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4830 (eval $ac_compile) 2>&5 4831 ac_status=$? 4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4833 (exit $ac_status); } && 4834 { ac_try='test -s conftest.$ac_objext' 4835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4836 (eval $ac_try) 2>&5 4837 ac_status=$? 4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4839 (exit $ac_status); }; }; then 4840 ac_header_compiler=yes 4841else 4842 echo "$as_me: failed program was:" >&5 4843cat conftest.$ac_ext >&5 4844ac_header_compiler=no 4845fi 4846rm -f conftest.$ac_objext conftest.$ac_ext 4847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4848echo "${ECHO_T}$ac_header_compiler" >&6 4849 4850# Is the header present? 4851echo "$as_me:$LINENO: checking $ac_header presence" >&5 4852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4853cat >conftest.$ac_ext <<_ACEOF 4854#line $LINENO "configure" 4855#include "confdefs.h" 4856#include <$ac_header> 4857_ACEOF 4858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4860 ac_status=$? 4861 egrep -v '^ *\+' conftest.er1 >conftest.err 4862 rm -f conftest.er1 4863 cat conftest.err >&5 4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4865 (exit $ac_status); } >/dev/null; then 4866 if test -s conftest.err; then 4867 ac_cpp_err=$ac_c_preproc_warn_flag 4868 else 4869 ac_cpp_err= 4870 fi 4871else 4872 ac_cpp_err=yes 4873fi 4874if test -z "$ac_cpp_err"; then 4875 ac_header_preproc=yes 4876else 4877 echo "$as_me: failed program was:" >&5 4878 cat conftest.$ac_ext >&5 4879 ac_header_preproc=no 4880fi 4881rm -f conftest.err conftest.$ac_ext 4882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4883echo "${ECHO_T}$ac_header_preproc" >&6 4884 4885# So? What about this header? 4886case $ac_header_compiler:$ac_header_preproc in 4887 yes:no ) 4888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4892 no:yes ) 4893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4894echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4896echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4898echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4899esac 4900echo "$as_me:$LINENO: checking for $ac_header" >&5 4901echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4902if eval "test \"\${$as_ac_Header+set}\" = set"; then 4903 echo $ECHO_N "(cached) $ECHO_C" >&6 4904else 4905 eval "$as_ac_Header=$ac_header_preproc" 4906fi 4907echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4908echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4909 4910fi 4911if test `eval echo '${'$as_ac_Header'}'` = yes; then 4912 cat >>confdefs.h <<_ACEOF 4913#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4914_ACEOF 4915 4916fi 4917 4918done 4919 4920 4921 4922 4923 4924# Only perform the check for file, if the check method requires it 4925case $deplibs_check_method in 4926file_magic*) 4927 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4928 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 4929echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 4930if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4931 echo $ECHO_N "(cached) $ECHO_C" >&6 4932else 4933 case $MAGIC_CMD in 4934 /*) 4935 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4936 ;; 4937 ?:/*) 4938 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4939 ;; 4940 *) 4941 ac_save_MAGIC_CMD="$MAGIC_CMD" 4942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4943 ac_dummy="/usr/bin:$PATH" 4944 for ac_dir in $ac_dummy; do 4945 test -z "$ac_dir" && ac_dir=. 4946 if test -f $ac_dir/${ac_tool_prefix}file; then 4947 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4948 if test -n "$file_magic_test_file"; then 4949 case $deplibs_check_method in 4950 "file_magic "*) 4951 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4952 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4953 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4954 egrep "$file_magic_regex" > /dev/null; then 4955 : 4956 else 4957 cat <<EOF 1>&2 4958 4959*** Warning: the command libtool uses to detect shared libraries, 4960*** $file_magic_cmd, produces output that libtool cannot recognize. 4961*** The result is that libtool may fail to recognize shared libraries 4962*** as such. This will affect the creation of libtool libraries that 4963*** depend on shared libraries, but programs linked with such libtool 4964*** libraries will work regardless of this problem. Nevertheless, you 4965*** may want to report the problem to your system manager and/or to 4966*** bug-libtool@gnu.org 4967 4968EOF 4969 fi ;; 4970 esac 4971 fi 4972 break 4973 fi 4974 done 4975 IFS="$ac_save_ifs" 4976 MAGIC_CMD="$ac_save_MAGIC_CMD" 4977 ;; 4978esac 4979fi 4980 4981MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4982if test -n "$MAGIC_CMD"; then 4983 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 4984echo "${ECHO_T}$MAGIC_CMD" >&6 4985else 4986 echo "$as_me:$LINENO: result: no" >&5 4987echo "${ECHO_T}no" >&6 4988fi 4989 4990if test -z "$lt_cv_path_MAGIC_CMD"; then 4991 if test -n "$ac_tool_prefix"; then 4992 echo "$as_me:$LINENO: checking for file" >&5 4993echo $ECHO_N "checking for file... $ECHO_C" >&6 4994if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4995 echo $ECHO_N "(cached) $ECHO_C" >&6 4996else 4997 case $MAGIC_CMD in 4998 /*) 4999 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5000 ;; 5001 ?:/*) 5002 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 5003 ;; 5004 *) 5005 ac_save_MAGIC_CMD="$MAGIC_CMD" 5006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5007 ac_dummy="/usr/bin:$PATH" 5008 for ac_dir in $ac_dummy; do 5009 test -z "$ac_dir" && ac_dir=. 5010 if test -f $ac_dir/file; then 5011 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5012 if test -n "$file_magic_test_file"; then 5013 case $deplibs_check_method in 5014 "file_magic "*) 5015 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5016 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5017 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5018 egrep "$file_magic_regex" > /dev/null; then 5019 : 5020 else 5021 cat <<EOF 1>&2 5022 5023*** Warning: the command libtool uses to detect shared libraries, 5024*** $file_magic_cmd, produces output that libtool cannot recognize. 5025*** The result is that libtool may fail to recognize shared libraries 5026*** as such. This will affect the creation of libtool libraries that 5027*** depend on shared libraries, but programs linked with such libtool 5028*** libraries will work regardless of this problem. Nevertheless, you 5029*** may want to report the problem to your system manager and/or to 5030*** bug-libtool@gnu.org 5031 5032EOF 5033 fi ;; 5034 esac 5035 fi 5036 break 5037 fi 5038 done 5039 IFS="$ac_save_ifs" 5040 MAGIC_CMD="$ac_save_MAGIC_CMD" 5041 ;; 5042esac 5043fi 5044 5045MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5046if test -n "$MAGIC_CMD"; then 5047 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5048echo "${ECHO_T}$MAGIC_CMD" >&6 5049else 5050 echo "$as_me:$LINENO: result: no" >&5 5051echo "${ECHO_T}no" >&6 5052fi 5053 5054 else 5055 MAGIC_CMD=: 5056 fi 5057fi 5058 5059 fi 5060 ;; 5061esac 5062 5063if test -n "$ac_tool_prefix"; then 5064 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5065set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5066echo "$as_me:$LINENO: checking for $ac_word" >&5 5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5068if test "${ac_cv_prog_RANLIB+set}" = set; then 5069 echo $ECHO_N "(cached) $ECHO_C" >&6 5070else 5071 if test -n "$RANLIB"; then 5072 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5073else 5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5075for as_dir in $PATH 5076do 5077 IFS=$as_save_IFS 5078 test -z "$as_dir" && as_dir=. 5079 for ac_exec_ext in '' $ac_executable_extensions; do 5080 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5081 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5083 break 2 5084 fi 5085done 5086done 5087 5088fi 5089fi 5090RANLIB=$ac_cv_prog_RANLIB 5091if test -n "$RANLIB"; then 5092 echo "$as_me:$LINENO: result: $RANLIB" >&5 5093echo "${ECHO_T}$RANLIB" >&6 5094else 5095 echo "$as_me:$LINENO: result: no" >&5 5096echo "${ECHO_T}no" >&6 5097fi 5098 5099fi 5100if test -z "$ac_cv_prog_RANLIB"; then 5101 ac_ct_RANLIB=$RANLIB 5102 # Extract the first word of "ranlib", so it can be a program name with args. 5103set dummy ranlib; ac_word=$2 5104echo "$as_me:$LINENO: checking for $ac_word" >&5 5105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5106if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5107 echo $ECHO_N "(cached) $ECHO_C" >&6 5108else 5109 if test -n "$ac_ct_RANLIB"; then 5110 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5111else 5112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5113for as_dir in $PATH 5114do 5115 IFS=$as_save_IFS 5116 test -z "$as_dir" && as_dir=. 5117 for ac_exec_ext in '' $ac_executable_extensions; do 5118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5119 ac_cv_prog_ac_ct_RANLIB="ranlib" 5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5121 break 2 5122 fi 5123done 5124done 5125 5126 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5127fi 5128fi 5129ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5130if test -n "$ac_ct_RANLIB"; then 5131 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5132echo "${ECHO_T}$ac_ct_RANLIB" >&6 5133else 5134 echo "$as_me:$LINENO: result: no" >&5 5135echo "${ECHO_T}no" >&6 5136fi 5137 5138 RANLIB=$ac_ct_RANLIB 5139else 5140 RANLIB="$ac_cv_prog_RANLIB" 5141fi 5142 5143if test -n "$ac_tool_prefix"; then 5144 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5145set dummy ${ac_tool_prefix}strip; ac_word=$2 5146echo "$as_me:$LINENO: checking for $ac_word" >&5 5147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5148if test "${ac_cv_prog_STRIP+set}" = set; then 5149 echo $ECHO_N "(cached) $ECHO_C" >&6 5150else 5151 if test -n "$STRIP"; then 5152 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5153else 5154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5155for as_dir in $PATH 5156do 5157 IFS=$as_save_IFS 5158 test -z "$as_dir" && as_dir=. 5159 for ac_exec_ext in '' $ac_executable_extensions; do 5160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5161 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5163 break 2 5164 fi 5165done 5166done 5167 5168fi 5169fi 5170STRIP=$ac_cv_prog_STRIP 5171if test -n "$STRIP"; then 5172 echo "$as_me:$LINENO: result: $STRIP" >&5 5173echo "${ECHO_T}$STRIP" >&6 5174else 5175 echo "$as_me:$LINENO: result: no" >&5 5176echo "${ECHO_T}no" >&6 5177fi 5178 5179fi 5180if test -z "$ac_cv_prog_STRIP"; then 5181 ac_ct_STRIP=$STRIP 5182 # Extract the first word of "strip", so it can be a program name with args. 5183set dummy strip; ac_word=$2 5184echo "$as_me:$LINENO: checking for $ac_word" >&5 5185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5186if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5187 echo $ECHO_N "(cached) $ECHO_C" >&6 5188else 5189 if test -n "$ac_ct_STRIP"; then 5190 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5191else 5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5193for as_dir in $PATH 5194do 5195 IFS=$as_save_IFS 5196 test -z "$as_dir" && as_dir=. 5197 for ac_exec_ext in '' $ac_executable_extensions; do 5198 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5199 ac_cv_prog_ac_ct_STRIP="strip" 5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5201 break 2 5202 fi 5203done 5204done 5205 5206 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5207fi 5208fi 5209ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5210if test -n "$ac_ct_STRIP"; then 5211 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5212echo "${ECHO_T}$ac_ct_STRIP" >&6 5213else 5214 echo "$as_me:$LINENO: result: no" >&5 5215echo "${ECHO_T}no" >&6 5216fi 5217 5218 STRIP=$ac_ct_STRIP 5219else 5220 STRIP="$ac_cv_prog_STRIP" 5221fi 5222 5223 5224enable_dlopen=no 5225enable_win32_dll=no 5226 5227# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5228if test "${enable_libtool_lock+set}" = set; then 5229 enableval="$enable_libtool_lock" 5230 5231fi; 5232test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5233 5234# Some flags need to be propagated to the compiler or linker for good 5235# libtool support. 5236case $host in 5237*-*-irix6*) 5238 # Find out which ABI we are using.
| 3415 3416 3417cat >>confdefs.h <<\_ACEOF 3418#define _GNU_SOURCE 1 3419_ACEOF 3420 3421 3422 3423 3424 3425for ac_prog in 'bison -y' byacc 3426do 3427 # Extract the first word of "$ac_prog", so it can be a program name with args. 3428set dummy $ac_prog; ac_word=$2 3429echo "$as_me:$LINENO: checking for $ac_word" >&5 3430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3431if test "${ac_cv_prog_YACC+set}" = set; then 3432 echo $ECHO_N "(cached) $ECHO_C" >&6 3433else 3434 if test -n "$YACC"; then 3435 ac_cv_prog_YACC="$YACC" # Let the user override the test. 3436else 3437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3438for as_dir in $PATH 3439do 3440 IFS=$as_save_IFS 3441 test -z "$as_dir" && as_dir=. 3442 for ac_exec_ext in '' $ac_executable_extensions; do 3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3444 ac_cv_prog_YACC="$ac_prog" 3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3446 break 2 3447 fi 3448done 3449done 3450 3451fi 3452fi 3453YACC=$ac_cv_prog_YACC 3454if test -n "$YACC"; then 3455 echo "$as_me:$LINENO: result: $YACC" >&5 3456echo "${ECHO_T}$YACC" >&6 3457else 3458 echo "$as_me:$LINENO: result: no" >&5 3459echo "${ECHO_T}no" >&6 3460fi 3461 3462 test -n "$YACC" && break 3463done 3464test -n "$YACC" || YACC="yacc" 3465 3466for ac_prog in flex lex 3467do 3468 # Extract the first word of "$ac_prog", so it can be a program name with args. 3469set dummy $ac_prog; ac_word=$2 3470echo "$as_me:$LINENO: checking for $ac_word" >&5 3471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3472if test "${ac_cv_prog_LEX+set}" = set; then 3473 echo $ECHO_N "(cached) $ECHO_C" >&6 3474else 3475 if test -n "$LEX"; then 3476 ac_cv_prog_LEX="$LEX" # Let the user override the test. 3477else 3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3479for as_dir in $PATH 3480do 3481 IFS=$as_save_IFS 3482 test -z "$as_dir" && as_dir=. 3483 for ac_exec_ext in '' $ac_executable_extensions; do 3484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3485 ac_cv_prog_LEX="$ac_prog" 3486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3487 break 2 3488 fi 3489done 3490done 3491 3492fi 3493fi 3494LEX=$ac_cv_prog_LEX 3495if test -n "$LEX"; then 3496 echo "$as_me:$LINENO: result: $LEX" >&5 3497echo "${ECHO_T}$LEX" >&6 3498else 3499 echo "$as_me:$LINENO: result: no" >&5 3500echo "${ECHO_T}no" >&6 3501fi 3502 3503 test -n "$LEX" && break 3504done 3505test -n "$LEX" || LEX=":" 3506 3507if test -z "$LEXLIB" 3508then 3509 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5 3510echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6 3511if test "${ac_cv_lib_fl_yywrap+set}" = set; then 3512 echo $ECHO_N "(cached) $ECHO_C" >&6 3513else 3514 ac_check_lib_save_LIBS=$LIBS 3515LIBS="-lfl $LIBS" 3516cat >conftest.$ac_ext <<_ACEOF 3517#line $LINENO "configure" 3518#include "confdefs.h" 3519 3520/* Override any gcc2 internal prototype to avoid an error. */ 3521#ifdef __cplusplus 3522extern "C" 3523#endif 3524/* We use char because int might match the return type of a gcc2 3525 builtin and then its argument prototype would still apply. */ 3526char yywrap (); 3527#ifdef F77_DUMMY_MAIN 3528# ifdef __cplusplus 3529 extern "C" 3530# endif 3531 int F77_DUMMY_MAIN() { return 1; } 3532#endif 3533int 3534main () 3535{ 3536yywrap (); 3537 ; 3538 return 0; 3539} 3540_ACEOF 3541rm -f conftest.$ac_objext conftest$ac_exeext 3542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3543 (eval $ac_link) 2>&5 3544 ac_status=$? 3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3546 (exit $ac_status); } && 3547 { ac_try='test -s conftest$ac_exeext' 3548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3549 (eval $ac_try) 2>&5 3550 ac_status=$? 3551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3552 (exit $ac_status); }; }; then 3553 ac_cv_lib_fl_yywrap=yes 3554else 3555 echo "$as_me: failed program was:" >&5 3556cat conftest.$ac_ext >&5 3557ac_cv_lib_fl_yywrap=no 3558fi 3559rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3560LIBS=$ac_check_lib_save_LIBS 3561fi 3562echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5 3563echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6 3564if test $ac_cv_lib_fl_yywrap = yes; then 3565 LEXLIB="-lfl" 3566else 3567 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5 3568echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6 3569if test "${ac_cv_lib_l_yywrap+set}" = set; then 3570 echo $ECHO_N "(cached) $ECHO_C" >&6 3571else 3572 ac_check_lib_save_LIBS=$LIBS 3573LIBS="-ll $LIBS" 3574cat >conftest.$ac_ext <<_ACEOF 3575#line $LINENO "configure" 3576#include "confdefs.h" 3577 3578/* Override any gcc2 internal prototype to avoid an error. */ 3579#ifdef __cplusplus 3580extern "C" 3581#endif 3582/* We use char because int might match the return type of a gcc2 3583 builtin and then its argument prototype would still apply. */ 3584char yywrap (); 3585#ifdef F77_DUMMY_MAIN 3586# ifdef __cplusplus 3587 extern "C" 3588# endif 3589 int F77_DUMMY_MAIN() { return 1; } 3590#endif 3591int 3592main () 3593{ 3594yywrap (); 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599rm -f conftest.$ac_objext conftest$ac_exeext 3600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3601 (eval $ac_link) 2>&5 3602 ac_status=$? 3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3604 (exit $ac_status); } && 3605 { ac_try='test -s conftest$ac_exeext' 3606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3607 (eval $ac_try) 2>&5 3608 ac_status=$? 3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3610 (exit $ac_status); }; }; then 3611 ac_cv_lib_l_yywrap=yes 3612else 3613 echo "$as_me: failed program was:" >&5 3614cat conftest.$ac_ext >&5 3615ac_cv_lib_l_yywrap=no 3616fi 3617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3618LIBS=$ac_check_lib_save_LIBS 3619fi 3620echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5 3621echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6 3622if test $ac_cv_lib_l_yywrap = yes; then 3623 LEXLIB="-ll" 3624fi 3625 3626fi 3627 3628fi 3629 3630if test "x$LEX" != "x:"; then 3631 echo "$as_me:$LINENO: checking lex output file root" >&5 3632echo $ECHO_N "checking lex output file root... $ECHO_C" >&6 3633if test "${ac_cv_prog_lex_root+set}" = set; then 3634 echo $ECHO_N "(cached) $ECHO_C" >&6 3635else 3636 # The minimal lex program is just a single line: %%. But some broken lexes 3637# (Solaris, I think it was) want two %% lines, so accommodate them. 3638cat >conftest.l <<_ACEOF 3639%% 3640%% 3641_ACEOF 3642{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5 3643 (eval $LEX conftest.l) 2>&5 3644 ac_status=$? 3645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3646 (exit $ac_status); } 3647if test -f lex.yy.c; then 3648 ac_cv_prog_lex_root=lex.yy 3649elif test -f lexyy.c; then 3650 ac_cv_prog_lex_root=lexyy 3651else 3652 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 3653echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} 3654 { (exit 1); exit 1; }; } 3655fi 3656fi 3657echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 3658echo "${ECHO_T}$ac_cv_prog_lex_root" >&6 3659rm -f conftest.l 3660LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 3661 3662echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 3663echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6 3664if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then 3665 echo $ECHO_N "(cached) $ECHO_C" >&6 3666else 3667 # POSIX says lex can declare yytext either as a pointer or an array; the 3668# default is implementation-dependent. Figure out which it is, since 3669# not all implementations provide the %pointer and %array declarations. 3670ac_cv_prog_lex_yytext_pointer=no 3671echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c 3672ac_save_LIBS=$LIBS 3673LIBS="$LIBS $LEXLIB" 3674cat >conftest.$ac_ext <<_ACEOF 3675`cat $LEX_OUTPUT_ROOT.c` 3676_ACEOF 3677rm -f conftest.$ac_objext conftest$ac_exeext 3678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3679 (eval $ac_link) 2>&5 3680 ac_status=$? 3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 (exit $ac_status); } && 3683 { ac_try='test -s conftest$ac_exeext' 3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3685 (eval $ac_try) 2>&5 3686 ac_status=$? 3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3688 (exit $ac_status); }; }; then 3689 ac_cv_prog_lex_yytext_pointer=yes 3690else 3691 echo "$as_me: failed program was:" >&5 3692cat conftest.$ac_ext >&5 3693fi 3694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 3695LIBS=$ac_save_LIBS 3696rm -f "${LEX_OUTPUT_ROOT}.c" 3697 3698fi 3699echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 3700echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6 3701if test $ac_cv_prog_lex_yytext_pointer = yes; then 3702 3703cat >>confdefs.h <<\_ACEOF 3704#define YYTEXT_POINTER 1 3705_ACEOF 3706 3707fi 3708 3709fi 3710if test "$LEX" = :; then 3711 LEX=${am_missing_run}flex 3712fi 3713for ac_prog in gawk mawk nawk awk 3714do 3715 # Extract the first word of "$ac_prog", so it can be a program name with args. 3716set dummy $ac_prog; ac_word=$2 3717echo "$as_me:$LINENO: checking for $ac_word" >&5 3718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3719if test "${ac_cv_prog_AWK+set}" = set; then 3720 echo $ECHO_N "(cached) $ECHO_C" >&6 3721else 3722 if test -n "$AWK"; then 3723 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3724else 3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_AWK="$ac_prog" 3733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736done 3737done 3738 3739fi 3740fi 3741AWK=$ac_cv_prog_AWK 3742if test -n "$AWK"; then 3743 echo "$as_me:$LINENO: result: $AWK" >&5 3744echo "${ECHO_T}$AWK" >&6 3745else 3746 echo "$as_me:$LINENO: result: no" >&5 3747echo "${ECHO_T}no" >&6 3748fi 3749 3750 test -n "$AWK" && break 3751done 3752 3753echo "$as_me:$LINENO: checking for ln -s or something else" >&5 3754echo $ECHO_N "checking for ln -s or something else... $ECHO_C" >&6 3755if test "${ac_cv_prog_LN_S+set}" = set; then 3756 echo $ECHO_N "(cached) $ECHO_C" >&6 3757else 3758 rm -f conftestdata 3759if ln -s X conftestdata 2>/dev/null 3760then 3761 rm -f conftestdata 3762 ac_cv_prog_LN_S="ln -s" 3763else 3764 touch conftestdata1 3765 if ln conftestdata1 conftestdata2; then 3766 rm -f conftestdata* 3767 ac_cv_prog_LN_S=ln 3768 else 3769 ac_cv_prog_LN_S=cp 3770 fi 3771fi 3772fi 3773LN_S="$ac_cv_prog_LN_S" 3774echo "$as_me:$LINENO: result: $ac_cv_prog_LN_S" >&5 3775echo "${ECHO_T}$ac_cv_prog_LN_S" >&6 3776 3777 3778 3779 3780# Check whether --with-mips_abi or --without-mips_abi was given. 3781if test "${with_mips_abi+set}" = set; then 3782 withval="$with_mips_abi" 3783 3784fi; 3785 3786case "$host_os" in 3787irix*) 3788with_mips_abi="${with_mips_abi:-yes}" 3789if test -n "$GCC"; then 3790 3791# GCC < 2.8 only supports the O32 ABI. GCC >= 2.8 has a flag to select 3792# which ABI to use, but only supports (as of 2.8.1) the N32 and 64 ABIs. 3793# 3794# Default to N32, but if GCC doesn't grok -mabi=n32, we assume an old 3795# GCC and revert back to O32. The same goes if O32 is asked for - old 3796# GCCs doesn't like the -mabi option, and new GCCs can't output O32. 3797# 3798# Don't you just love *all* the different SGI ABIs? 3799 3800case "${with_mips_abi}" in 3801 32|o32) abi='-mabi=32'; abilibdirext='' ;; 3802 n32|yes) abi='-mabi=n32'; abilibdirext='32' ;; 3803 64) abi='-mabi=64'; abilibdirext='64' ;; 3804 no) abi=''; abilibdirext='';; 3805 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5 3806echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 3807 { (exit 1); exit 1; }; } ;; 3808esac 3809if test -n "$abi" ; then 3810ac_foo=krb_cv_gcc_`echo $abi | tr =- __` 3811echo "$as_me:$LINENO: checking if $CC supports the $abi option" >&5 3812echo $ECHO_N "checking if $CC supports the $abi option... $ECHO_C" >&6 3813if eval "test \"\${$ac_foo+set}\" = set"; then 3814 echo $ECHO_N "(cached) $ECHO_C" >&6 3815else 3816 3817save_CFLAGS="$CFLAGS" 3818CFLAGS="$CFLAGS $abi" 3819cat >conftest.$ac_ext <<_ACEOF 3820#line $LINENO "configure" 3821#include "confdefs.h" 3822 3823#ifdef F77_DUMMY_MAIN 3824# ifdef __cplusplus 3825 extern "C" 3826# endif 3827 int F77_DUMMY_MAIN() { return 1; } 3828#endif 3829int 3830main () 3831{ 3832int x; 3833 ; 3834 return 0; 3835} 3836_ACEOF 3837rm -f conftest.$ac_objext 3838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3839 (eval $ac_compile) 2>&5 3840 ac_status=$? 3841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3842 (exit $ac_status); } && 3843 { ac_try='test -s conftest.$ac_objext' 3844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3845 (eval $ac_try) 2>&5 3846 ac_status=$? 3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3848 (exit $ac_status); }; }; then 3849 eval $ac_foo=yes 3850else 3851 echo "$as_me: failed program was:" >&5 3852cat conftest.$ac_ext >&5 3853eval $ac_foo=no 3854fi 3855rm -f conftest.$ac_objext conftest.$ac_ext 3856CFLAGS="$save_CFLAGS" 3857 3858fi 3859 3860ac_res=`eval echo \\\$$ac_foo` 3861echo "$as_me:$LINENO: result: $ac_res" >&5 3862echo "${ECHO_T}$ac_res" >&6 3863if test $ac_res = no; then 3864# Try to figure out why that failed... 3865case $abi in 3866 -mabi=32) 3867 save_CFLAGS="$CFLAGS" 3868 CFLAGS="$CFLAGS -mabi=n32" 3869 cat >conftest.$ac_ext <<_ACEOF 3870#line $LINENO "configure" 3871#include "confdefs.h" 3872 3873#ifdef F77_DUMMY_MAIN 3874# ifdef __cplusplus 3875 extern "C" 3876# endif 3877 int F77_DUMMY_MAIN() { return 1; } 3878#endif 3879int 3880main () 3881{ 3882int x; 3883 ; 3884 return 0; 3885} 3886_ACEOF 3887rm -f conftest.$ac_objext 3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3889 (eval $ac_compile) 2>&5 3890 ac_status=$? 3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3892 (exit $ac_status); } && 3893 { ac_try='test -s conftest.$ac_objext' 3894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3895 (eval $ac_try) 2>&5 3896 ac_status=$? 3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3898 (exit $ac_status); }; }; then 3899 ac_res=yes 3900else 3901 echo "$as_me: failed program was:" >&5 3902cat conftest.$ac_ext >&5 3903ac_res=no 3904fi 3905rm -f conftest.$ac_objext conftest.$ac_ext 3906 CLAGS="$save_CFLAGS" 3907 if test $ac_res = yes; then 3908 # New GCC 3909 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5 3910echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 3911 { (exit 1); exit 1; }; } 3912 fi 3913 # Old GCC 3914 abi='' 3915 abilibdirext='' 3916 ;; 3917 -mabi=n32|-mabi=64) 3918 if test $with_mips_abi = yes; then 3919 # Old GCC, default to O32 3920 abi='' 3921 abilibdirext='' 3922 else 3923 # Some broken GCC 3924 { { echo "$as_me:$LINENO: error: $CC does not support the $with_mips_abi ABI" >&5 3925echo "$as_me: error: $CC does not support the $with_mips_abi ABI" >&2;} 3926 { (exit 1); exit 1; }; } 3927 fi 3928 ;; 3929esac 3930fi #if test $ac_res = no; then 3931fi #if test -n "$abi" ; then 3932else 3933case "${with_mips_abi}" in 3934 32|o32) abi='-32'; abilibdirext='' ;; 3935 n32|yes) abi='-n32'; abilibdirext='32' ;; 3936 64) abi='-64'; abilibdirext='64' ;; 3937 no) abi=''; abilibdirext='';; 3938 *) { { echo "$as_me:$LINENO: error: \"Invalid ABI specified\"" >&5 3939echo "$as_me: error: \"Invalid ABI specified\"" >&2;} 3940 { (exit 1); exit 1; }; } ;; 3941esac 3942fi #if test -n "$GCC"; then 3943;; 3944esac 3945 3946CC="$CC $abi" 3947libdir="$libdir$abilibdirext" 3948 3949 3950echo "$as_me:$LINENO: checking for __attribute__" >&5 3951echo $ECHO_N "checking for __attribute__... $ECHO_C" >&6 3952if test "${ac_cv___attribute__+set}" = set; then 3953 echo $ECHO_N "(cached) $ECHO_C" >&6 3954else 3955 3956cat >conftest.$ac_ext <<_ACEOF 3957#line $LINENO "configure" 3958#include "confdefs.h" 3959 3960#include <stdlib.h> 3961 3962#ifdef F77_DUMMY_MAIN 3963# ifdef __cplusplus 3964 extern "C" 3965# endif 3966 int F77_DUMMY_MAIN() { return 1; } 3967#endif 3968int 3969main () 3970{ 3971 3972static void foo(void) __attribute__ ((noreturn)); 3973 3974static void 3975foo(void) 3976{ 3977 exit(1); 3978} 3979 3980 ; 3981 return 0; 3982} 3983_ACEOF 3984rm -f conftest.$ac_objext 3985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3986 (eval $ac_compile) 2>&5 3987 ac_status=$? 3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3989 (exit $ac_status); } && 3990 { ac_try='test -s conftest.$ac_objext' 3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3992 (eval $ac_try) 2>&5 3993 ac_status=$? 3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3995 (exit $ac_status); }; }; then 3996 ac_cv___attribute__=yes 3997else 3998 echo "$as_me: failed program was:" >&5 3999cat conftest.$ac_ext >&5 4000ac_cv___attribute__=no 4001fi 4002rm -f conftest.$ac_objext conftest.$ac_ext 4003fi 4004 4005if test "$ac_cv___attribute__" = "yes"; then 4006 4007cat >>confdefs.h <<\_ACEOF 4008#define HAVE___ATTRIBUTE__ 1 4009_ACEOF 4010 4011fi 4012echo "$as_me:$LINENO: result: $ac_cv___attribute__" >&5 4013echo "${ECHO_T}$ac_cv___attribute__" >&6 4014 4015 4016# Check whether --enable-shared or --disable-shared was given. 4017if test "${enable_shared+set}" = set; then 4018 enableval="$enable_shared" 4019 p=${PACKAGE-default} 4020case $enableval in 4021yes) enable_shared=yes ;; 4022no) enable_shared=no ;; 4023*) 4024 enable_shared=no 4025 # Look at the argument we got. We use all the common list separators. 4026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4027 for pkg in $enableval; do 4028 if test "X$pkg" = "X$p"; then 4029 enable_shared=yes 4030 fi 4031 done 4032 IFS="$ac_save_ifs" 4033 ;; 4034esac 4035else 4036 enable_shared=no 4037fi; 4038# Check whether --enable-static or --disable-static was given. 4039if test "${enable_static+set}" = set; then 4040 enableval="$enable_static" 4041 p=${PACKAGE-default} 4042case $enableval in 4043yes) enable_static=yes ;; 4044no) enable_static=no ;; 4045*) 4046 enable_static=no 4047 # Look at the argument we got. We use all the common list separators. 4048 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4049 for pkg in $enableval; do 4050 if test "X$pkg" = "X$p"; then 4051 enable_static=yes 4052 fi 4053 done 4054 IFS="$ac_save_ifs" 4055 ;; 4056esac 4057else 4058 enable_static=yes 4059fi; 4060# Check whether --enable-fast-install or --disable-fast-install was given. 4061if test "${enable_fast_install+set}" = set; then 4062 enableval="$enable_fast_install" 4063 p=${PACKAGE-default} 4064case $enableval in 4065yes) enable_fast_install=yes ;; 4066no) enable_fast_install=no ;; 4067*) 4068 enable_fast_install=no 4069 # Look at the argument we got. We use all the common list separators. 4070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 4071 for pkg in $enableval; do 4072 if test "X$pkg" = "X$p"; then 4073 enable_fast_install=yes 4074 fi 4075 done 4076 IFS="$ac_save_ifs" 4077 ;; 4078esac 4079else 4080 enable_fast_install=yes 4081fi; 4082# Find the correct PATH separator. Usually this is `:', but 4083# DJGPP uses `;' like DOS. 4084if test "X${PATH_SEPARATOR+set}" != Xset; then 4085 UNAME=${UNAME-`uname 2>/dev/null`} 4086 case X$UNAME in 4087 *-DOS) lt_cv_sys_path_separator=';' ;; 4088 *) lt_cv_sys_path_separator=':' ;; 4089 esac 4090 PATH_SEPARATOR=$lt_cv_sys_path_separator 4091fi 4092 4093 4094# Check whether --with-gnu-ld or --without-gnu-ld was given. 4095if test "${with_gnu_ld+set}" = set; then 4096 withval="$with_gnu_ld" 4097 test "$withval" = no || with_gnu_ld=yes 4098else 4099 with_gnu_ld=no 4100fi; 4101ac_prog=ld 4102if test "$GCC" = yes; then 4103 # Check if gcc -print-prog-name=ld gives a path. 4104 echo "$as_me:$LINENO: checking for ld used by GCC" >&5 4105echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 4106 case $host in 4107 *-*-mingw*) 4108 # gcc leaves a trailing carriage return which upsets mingw 4109 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4110 *) 4111 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4112 esac 4113 case $ac_prog in 4114 # Accept absolute paths. 4115 [\\/]* | [A-Za-z]:[\\/]*) 4116 re_direlt='/[^/][^/]*/\.\./' 4117 # Canonicalize the path of ld 4118 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 4119 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 4120 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 4121 done 4122 test -z "$LD" && LD="$ac_prog" 4123 ;; 4124 "") 4125 # If it fails, then pretend we aren't using GCC. 4126 ac_prog=ld 4127 ;; 4128 *) 4129 # If it is relative, then search for the first ld in PATH. 4130 with_gnu_ld=unknown 4131 ;; 4132 esac 4133elif test "$with_gnu_ld" = yes; then 4134 echo "$as_me:$LINENO: checking for GNU ld" >&5 4135echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 4136else 4137 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 4138echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 4139fi 4140if test "${lt_cv_path_LD+set}" = set; then 4141 echo $ECHO_N "(cached) $ECHO_C" >&6 4142else 4143 if test -z "$LD"; then 4144 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4145 for ac_dir in $PATH; do 4146 test -z "$ac_dir" && ac_dir=. 4147 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4148 lt_cv_path_LD="$ac_dir/$ac_prog" 4149 # Check to see if the program is GNU ld. I'd rather use --version, 4150 # but apparently some GNU ld's only accept -v. 4151 # Break only if it was the GNU/non-GNU ld that we prefer. 4152 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 4153 test "$with_gnu_ld" != no && break 4154 else 4155 test "$with_gnu_ld" != yes && break 4156 fi 4157 fi 4158 done 4159 IFS="$ac_save_ifs" 4160else 4161 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4162fi 4163fi 4164 4165LD="$lt_cv_path_LD" 4166if test -n "$LD"; then 4167 echo "$as_me:$LINENO: result: $LD" >&5 4168echo "${ECHO_T}$LD" >&6 4169else 4170 echo "$as_me:$LINENO: result: no" >&5 4171echo "${ECHO_T}no" >&6 4172fi 4173test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4174echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4175 { (exit 1); exit 1; }; } 4176echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4177echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4178if test "${lt_cv_prog_gnu_ld+set}" = set; then 4179 echo $ECHO_N "(cached) $ECHO_C" >&6 4180else 4181 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 4182if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 4183 lt_cv_prog_gnu_ld=yes 4184else 4185 lt_cv_prog_gnu_ld=no 4186fi 4187fi 4188echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4189echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4190with_gnu_ld=$lt_cv_prog_gnu_ld 4191 4192 4193echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4194echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4195if test "${lt_cv_ld_reload_flag+set}" = set; then 4196 echo $ECHO_N "(cached) $ECHO_C" >&6 4197else 4198 lt_cv_ld_reload_flag='-r' 4199fi 4200echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4201echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4202reload_flag=$lt_cv_ld_reload_flag 4203test -n "$reload_flag" && reload_flag=" $reload_flag" 4204 4205echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 4206echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 4207if test "${lt_cv_path_NM+set}" = set; then 4208 echo $ECHO_N "(cached) $ECHO_C" >&6 4209else 4210 if test -n "$NM"; then 4211 # Let the user override the test. 4212 lt_cv_path_NM="$NM" 4213else 4214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4215 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 4216 test -z "$ac_dir" && ac_dir=. 4217 tmp_nm=$ac_dir/${ac_tool_prefix}nm 4218 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 4219 # Check to see if the nm accepts a BSD-compat flag. 4220 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4221 # nm: unknown option "B" ignored 4222 # Tru64's nm complains that /dev/null is an invalid object file 4223 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 4224 lt_cv_path_NM="$tmp_nm -B" 4225 break 4226 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 4227 lt_cv_path_NM="$tmp_nm -p" 4228 break 4229 else 4230 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4231 continue # so that we can try to find one that supports BSD flags 4232 fi 4233 fi 4234 done 4235 IFS="$ac_save_ifs" 4236 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 4237fi 4238fi 4239 4240NM="$lt_cv_path_NM" 4241echo "$as_me:$LINENO: result: $NM" >&5 4242echo "${ECHO_T}$NM" >&6 4243 4244echo "$as_me:$LINENO: checking whether ln -s works" >&5 4245echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4246LN_S=$as_ln_s 4247if test "$LN_S" = "ln -s"; then 4248 echo "$as_me:$LINENO: result: yes" >&5 4249echo "${ECHO_T}yes" >&6 4250else 4251 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4252echo "${ECHO_T}no, using $LN_S" >&6 4253fi 4254 4255echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 4256echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 4257if test "${lt_cv_deplibs_check_method+set}" = set; then 4258 echo $ECHO_N "(cached) $ECHO_C" >&6 4259else 4260 lt_cv_file_magic_cmd='$MAGIC_CMD' 4261lt_cv_file_magic_test_file= 4262lt_cv_deplibs_check_method='unknown' 4263# Need to set the preceding variable on all platforms that support 4264# interlibrary dependencies. 4265# 'none' -- dependencies not supported. 4266# `unknown' -- same as none, but documents that we really don't know. 4267# 'pass_all' -- all dependencies passed with no checks. 4268# 'test_compile' -- check by making test program. 4269# 'file_magic [[regex]]' -- check by looking for files in library path 4270# which responds to the $file_magic_cmd with a given egrep regex. 4271# If you have `file' or equivalent on your system and you're not sure 4272# whether `pass_all' will *always* work, you probably want this one. 4273 4274case $host_os in 4275aix4* | aix5*) 4276 lt_cv_deplibs_check_method=pass_all 4277 ;; 4278 4279beos*) 4280 lt_cv_deplibs_check_method=pass_all 4281 ;; 4282 4283bsdi4*) 4284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4285 lt_cv_file_magic_cmd='/usr/bin/file -L' 4286 lt_cv_file_magic_test_file=/shlib/libc.so 4287 ;; 4288 4289cygwin* | mingw* | pw32*) 4290 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4291 lt_cv_file_magic_cmd='$OBJDUMP -f' 4292 ;; 4293 4294darwin* | rhapsody*) 4295 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 4296 lt_cv_file_magic_cmd='/usr/bin/file -L' 4297 case "$host_os" in 4298 rhapsody* | darwin1.[012]) 4299 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 4300 ;; 4301 *) # Darwin 1.3 on 4302 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 4303 ;; 4304 esac 4305 ;; 4306 4307freebsd*) 4308 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4309 case $host_cpu in 4310 i*86 ) 4311 # Not sure whether the presence of OpenBSD here was a mistake. 4312 # Let's accept both of them until this is cleared up. 4313 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 4314 lt_cv_file_magic_cmd=/usr/bin/file 4315 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4316 ;; 4317 esac 4318 else 4319 lt_cv_deplibs_check_method=pass_all 4320 fi 4321 ;; 4322 4323gnu*) 4324 lt_cv_deplibs_check_method=pass_all 4325 ;; 4326 4327hpux10.20*|hpux11*) 4328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4329 lt_cv_file_magic_cmd=/usr/bin/file 4330 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4331 ;; 4332 4333irix5* | irix6*) 4334 case $host_os in 4335 irix5*) 4336 # this will be overridden with pass_all, but let us keep it just in case 4337 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 4338 ;; 4339 *) 4340 case $LD in 4341 *-32|*"-32 ") libmagic=32-bit;; 4342 *-n32|*"-n32 ") libmagic=N32;; 4343 *-64|*"-64 ") libmagic=64-bit;; 4344 *) libmagic=never-match;; 4345 esac 4346 # this will be overridden with pass_all, but let us keep it just in case 4347 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" 4348 ;; 4349 esac 4350 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 4351 lt_cv_deplibs_check_method=pass_all 4352 ;; 4353 4354# This must be Linux ELF. 4355linux-gnu*) 4356 case $host_cpu in 4357 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 4358 lt_cv_deplibs_check_method=pass_all ;; 4359 *) 4360 # glibc up to 2.1.1 does not perform some relocations on ARM 4361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 4362 esac 4363 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 4364 ;; 4365 4366netbsd*) 4367 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 4368 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' 4369 else 4370 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' 4371 fi 4372 ;; 4373 4374newos6*) 4375 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4376 lt_cv_file_magic_cmd=/usr/bin/file 4377 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4378 ;; 4379 4380openbsd*) 4381 lt_cv_file_magic_cmd=/usr/bin/file 4382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4384 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 4385 else 4386 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 4387 fi 4388 ;; 4389 4390osf3* | osf4* | osf5*) 4391 # this will be overridden with pass_all, but let us keep it just in case 4392 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 4393 lt_cv_file_magic_test_file=/shlib/libc.so 4394 lt_cv_deplibs_check_method=pass_all 4395 ;; 4396 4397sco3.2v5*) 4398 lt_cv_deplibs_check_method=pass_all 4399 ;; 4400 4401solaris*) 4402 lt_cv_deplibs_check_method=pass_all 4403 lt_cv_file_magic_test_file=/lib/libc.so 4404 ;; 4405 4406sysv5uw[78]* | sysv4*uw2*) 4407 lt_cv_deplibs_check_method=pass_all 4408 ;; 4409 4410sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 4411 case $host_vendor in 4412 motorola) 4413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 4414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4415 ;; 4416 ncr) 4417 lt_cv_deplibs_check_method=pass_all 4418 ;; 4419 sequent) 4420 lt_cv_file_magic_cmd='/bin/file' 4421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4422 ;; 4423 sni) 4424 lt_cv_file_magic_cmd='/bin/file' 4425 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4426 lt_cv_file_magic_test_file=/lib/libc.so 4427 ;; 4428 esac 4429 ;; 4430esac 4431 4432fi 4433echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4434echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4435file_magic_cmd=$lt_cv_file_magic_cmd 4436deplibs_check_method=$lt_cv_deplibs_check_method 4437 4438 4439 4440 4441 4442# Check for command to grab the raw symbol name followed by C symbol from nm. 4443echo "$as_me:$LINENO: checking command to parse $NM output" >&5 4444echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 4445if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4446 echo $ECHO_N "(cached) $ECHO_C" >&6 4447else 4448 4449# These are sane defaults that work on at least a few old systems. 4450# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4451 4452# Character class describing NM global symbol codes. 4453symcode='[BCDEGRST]' 4454 4455# Regexp to match symbols that can be accessed directly from C. 4456sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4457 4458# Transform the above into a raw symbol and a C symbol. 4459symxfrm='\1 \2\3 \3' 4460 4461# Transform an extracted symbol line into a proper C declaration 4462lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 4463 4464# Transform an extracted symbol line into symbol name and symbol address 4465lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4466 4467# Define system-specific variables. 4468case $host_os in 4469aix*) 4470 symcode='[BCDT]' 4471 ;; 4472cygwin* | mingw* | pw32*) 4473 symcode='[ABCDGISTW]' 4474 ;; 4475hpux*) # Its linker distinguishes data from code symbols 4476 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 4477 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4478 ;; 4479irix*) 4480 symcode='[BCDEGRST]' 4481 ;; 4482solaris* | sysv5*) 4483 symcode='[BDT]' 4484 ;; 4485sysv4) 4486 symcode='[DFNSTU]' 4487 ;; 4488esac 4489 4490# Handle CRLF in mingw tool chain 4491opt_cr= 4492case $host_os in 4493mingw*) 4494 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 4495 ;; 4496esac 4497 4498# If we're using GNU nm, then use its standard symbol codes. 4499if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 4500 symcode='[ABCDGISTW]' 4501fi 4502 4503# Try without a prefix undercore, then with it. 4504for ac_symprfx in "" "_"; do 4505 4506 # Write the raw and C identifiers. 4507lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 4508 4509 # Check to see that the pipe works correctly. 4510 pipe_works=no 4511 rm -f conftest* 4512 cat > conftest.$ac_ext <<EOF 4513#ifdef __cplusplus 4514extern "C" { 4515#endif 4516char nm_test_var; 4517void nm_test_func(){} 4518#ifdef __cplusplus 4519} 4520#endif 4521int main(){nm_test_var='a';nm_test_func();return(0);} 4522EOF 4523 4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4525 (eval $ac_compile) 2>&5 4526 ac_status=$? 4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4528 (exit $ac_status); }; then 4529 # Now try to grab the symbols. 4530 nlist=conftest.nm 4531 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 4532 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 4533 ac_status=$? 4534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4535 (exit $ac_status); } && test -s "$nlist"; then 4536 # Try sorting and uniquifying the output. 4537 if sort "$nlist" | uniq > "$nlist"T; then 4538 mv -f "$nlist"T "$nlist" 4539 else 4540 rm -f "$nlist"T 4541 fi 4542 4543 # Make sure that we snagged all the symbols we need. 4544 if egrep ' nm_test_var$' "$nlist" >/dev/null; then 4545 if egrep ' nm_test_func$' "$nlist" >/dev/null; then 4546 cat <<EOF > conftest.$ac_ext 4547#ifdef __cplusplus 4548extern "C" { 4549#endif 4550 4551EOF 4552 # Now generate the symbol file. 4553 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 4554 4555 cat <<EOF >> conftest.$ac_ext 4556#if defined (__STDC__) && __STDC__ 4557# define lt_ptr void * 4558#else 4559# define lt_ptr char * 4560# define const 4561#endif 4562 4563/* The mapping between symbol names and symbols. */ 4564const struct { 4565 const char *name; 4566 lt_ptr address; 4567} 4568lt_preloaded_symbols[] = 4569{ 4570EOF 4571 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 4572 cat <<\EOF >> conftest.$ac_ext 4573 {0, (lt_ptr) 0} 4574}; 4575 4576#ifdef __cplusplus 4577} 4578#endif 4579EOF 4580 # Now try linking the two files. 4581 mv conftest.$ac_objext conftstm.$ac_objext 4582 save_LIBS="$LIBS" 4583 save_CFLAGS="$CFLAGS" 4584 LIBS="conftstm.$ac_objext" 4585 CFLAGS="$CFLAGS$no_builtin_flag" 4586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4587 (eval $ac_link) 2>&5 4588 ac_status=$? 4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4590 (exit $ac_status); } && test -s conftest; then 4591 pipe_works=yes 4592 fi 4593 LIBS="$save_LIBS" 4594 CFLAGS="$save_CFLAGS" 4595 else 4596 echo "cannot find nm_test_func in $nlist" >&5 4597 fi 4598 else 4599 echo "cannot find nm_test_var in $nlist" >&5 4600 fi 4601 else 4602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 4603 fi 4604 else 4605 echo "$progname: failed program was:" >&5 4606 cat conftest.$ac_ext >&5 4607 fi 4608 rm -f conftest* conftst* 4609 4610 # Do not use the global_symbol_pipe unless it works. 4611 if test "$pipe_works" = yes; then 4612 break 4613 else 4614 lt_cv_sys_global_symbol_pipe= 4615 fi 4616done 4617 4618fi 4619 4620global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 4621if test -z "$lt_cv_sys_global_symbol_pipe"; then 4622 global_symbol_to_cdecl= 4623 global_symbol_to_c_name_address= 4624else 4625 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 4626 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 4627fi 4628if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 4629then 4630 echo "$as_me:$LINENO: result: failed" >&5 4631echo "${ECHO_T}failed" >&6 4632else 4633 echo "$as_me:$LINENO: result: ok" >&5 4634echo "${ECHO_T}ok" >&6 4635fi 4636 4637 4638echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4639echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4640if test "${ac_cv_header_stdc+set}" = set; then 4641 echo $ECHO_N "(cached) $ECHO_C" >&6 4642else 4643 cat >conftest.$ac_ext <<_ACEOF 4644#line $LINENO "configure" 4645#include "confdefs.h" 4646#include <stdlib.h> 4647#include <stdarg.h> 4648#include <string.h> 4649#include <float.h> 4650 4651_ACEOF 4652if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4654 ac_status=$? 4655 egrep -v '^ *\+' conftest.er1 >conftest.err 4656 rm -f conftest.er1 4657 cat conftest.err >&5 4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4659 (exit $ac_status); } >/dev/null; then 4660 if test -s conftest.err; then 4661 ac_cpp_err=$ac_c_preproc_warn_flag 4662 else 4663 ac_cpp_err= 4664 fi 4665else 4666 ac_cpp_err=yes 4667fi 4668if test -z "$ac_cpp_err"; then 4669 ac_cv_header_stdc=yes 4670else 4671 echo "$as_me: failed program was:" >&5 4672 cat conftest.$ac_ext >&5 4673 ac_cv_header_stdc=no 4674fi 4675rm -f conftest.err conftest.$ac_ext 4676 4677if test $ac_cv_header_stdc = yes; then 4678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4679 cat >conftest.$ac_ext <<_ACEOF 4680#line $LINENO "configure" 4681#include "confdefs.h" 4682#include <string.h> 4683 4684_ACEOF 4685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4686 egrep "memchr" >/dev/null 2>&1; then 4687 : 4688else 4689 ac_cv_header_stdc=no 4690fi 4691rm -f conftest* 4692 4693fi 4694 4695if test $ac_cv_header_stdc = yes; then 4696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4697 cat >conftest.$ac_ext <<_ACEOF 4698#line $LINENO "configure" 4699#include "confdefs.h" 4700#include <stdlib.h> 4701 4702_ACEOF 4703if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4704 egrep "free" >/dev/null 2>&1; then 4705 : 4706else 4707 ac_cv_header_stdc=no 4708fi 4709rm -f conftest* 4710 4711fi 4712 4713if test $ac_cv_header_stdc = yes; then 4714 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4715 if test "$cross_compiling" = yes; then 4716 : 4717else 4718 cat >conftest.$ac_ext <<_ACEOF 4719#line $LINENO "configure" 4720#include "confdefs.h" 4721#include <ctype.h> 4722#if ((' ' & 0x0FF) == 0x020) 4723# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4724# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4725#else 4726# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 4727 || ('j' <= (c) && (c) <= 'r') \ 4728 || ('s' <= (c) && (c) <= 'z')) 4729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4730#endif 4731 4732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4733int 4734main () 4735{ 4736 int i; 4737 for (i = 0; i < 256; i++) 4738 if (XOR (islower (i), ISLOWER (i)) 4739 || toupper (i) != TOUPPER (i)) 4740 exit(2); 4741 exit (0); 4742} 4743_ACEOF 4744rm -f conftest$ac_exeext 4745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4746 (eval $ac_link) 2>&5 4747 ac_status=$? 4748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4749 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4751 (eval $ac_try) 2>&5 4752 ac_status=$? 4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4754 (exit $ac_status); }; }; then 4755 : 4756else 4757 echo "$as_me: program exited with status $ac_status" >&5 4758echo "$as_me: failed program was:" >&5 4759cat conftest.$ac_ext >&5 4760( exit $ac_status ) 4761ac_cv_header_stdc=no 4762fi 4763rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4764fi 4765fi 4766fi 4767echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4768echo "${ECHO_T}$ac_cv_header_stdc" >&6 4769if test $ac_cv_header_stdc = yes; then 4770 4771cat >>confdefs.h <<\_ACEOF 4772#define STDC_HEADERS 1 4773_ACEOF 4774 4775fi 4776 4777# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4788 inttypes.h stdint.h unistd.h 4789do 4790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4791echo "$as_me:$LINENO: checking for $ac_header" >&5 4792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4793if eval "test \"\${$as_ac_Header+set}\" = set"; then 4794 echo $ECHO_N "(cached) $ECHO_C" >&6 4795else 4796 cat >conftest.$ac_ext <<_ACEOF 4797#line $LINENO "configure" 4798#include "confdefs.h" 4799$ac_includes_default 4800 4801#include <$ac_header> 4802_ACEOF 4803rm -f conftest.$ac_objext 4804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4805 (eval $ac_compile) 2>&5 4806 ac_status=$? 4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4808 (exit $ac_status); } && 4809 { ac_try='test -s conftest.$ac_objext' 4810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4811 (eval $ac_try) 2>&5 4812 ac_status=$? 4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4814 (exit $ac_status); }; }; then 4815 eval "$as_ac_Header=yes" 4816else 4817 echo "$as_me: failed program was:" >&5 4818cat conftest.$ac_ext >&5 4819eval "$as_ac_Header=no" 4820fi 4821rm -f conftest.$ac_objext conftest.$ac_ext 4822fi 4823echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4824echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4825if test `eval echo '${'$as_ac_Header'}'` = yes; then 4826 cat >>confdefs.h <<_ACEOF 4827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4828_ACEOF 4829 4830fi 4831 4832done 4833 4834 4835 4836for ac_header in dlfcn.h 4837do 4838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4839if eval "test \"\${$as_ac_Header+set}\" = set"; then 4840 echo "$as_me:$LINENO: checking for $ac_header" >&5 4841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4842if eval "test \"\${$as_ac_Header+set}\" = set"; then 4843 echo $ECHO_N "(cached) $ECHO_C" >&6 4844fi 4845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4847else 4848 # Is the header compilable? 4849echo "$as_me:$LINENO: checking $ac_header usability" >&5 4850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4851cat >conftest.$ac_ext <<_ACEOF 4852#line $LINENO "configure" 4853#include "confdefs.h" 4854$ac_includes_default 4855#include <$ac_header> 4856_ACEOF 4857rm -f conftest.$ac_objext 4858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4859 (eval $ac_compile) 2>&5 4860 ac_status=$? 4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4862 (exit $ac_status); } && 4863 { ac_try='test -s conftest.$ac_objext' 4864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4865 (eval $ac_try) 2>&5 4866 ac_status=$? 4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4868 (exit $ac_status); }; }; then 4869 ac_header_compiler=yes 4870else 4871 echo "$as_me: failed program was:" >&5 4872cat conftest.$ac_ext >&5 4873ac_header_compiler=no 4874fi 4875rm -f conftest.$ac_objext conftest.$ac_ext 4876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4877echo "${ECHO_T}$ac_header_compiler" >&6 4878 4879# Is the header present? 4880echo "$as_me:$LINENO: checking $ac_header presence" >&5 4881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4882cat >conftest.$ac_ext <<_ACEOF 4883#line $LINENO "configure" 4884#include "confdefs.h" 4885#include <$ac_header> 4886_ACEOF 4887if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4888 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4889 ac_status=$? 4890 egrep -v '^ *\+' conftest.er1 >conftest.err 4891 rm -f conftest.er1 4892 cat conftest.err >&5 4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4894 (exit $ac_status); } >/dev/null; then 4895 if test -s conftest.err; then 4896 ac_cpp_err=$ac_c_preproc_warn_flag 4897 else 4898 ac_cpp_err= 4899 fi 4900else 4901 ac_cpp_err=yes 4902fi 4903if test -z "$ac_cpp_err"; then 4904 ac_header_preproc=yes 4905else 4906 echo "$as_me: failed program was:" >&5 4907 cat conftest.$ac_ext >&5 4908 ac_header_preproc=no 4909fi 4910rm -f conftest.err conftest.$ac_ext 4911echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4912echo "${ECHO_T}$ac_header_preproc" >&6 4913 4914# So? What about this header? 4915case $ac_header_compiler:$ac_header_preproc in 4916 yes:no ) 4917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4918echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4920echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4921 no:yes ) 4922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4923echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4925echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 4928esac 4929echo "$as_me:$LINENO: checking for $ac_header" >&5 4930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4931if eval "test \"\${$as_ac_Header+set}\" = set"; then 4932 echo $ECHO_N "(cached) $ECHO_C" >&6 4933else 4934 eval "$as_ac_Header=$ac_header_preproc" 4935fi 4936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4938 4939fi 4940if test `eval echo '${'$as_ac_Header'}'` = yes; then 4941 cat >>confdefs.h <<_ACEOF 4942#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4943_ACEOF 4944 4945fi 4946 4947done 4948 4949 4950 4951 4952 4953# Only perform the check for file, if the check method requires it 4954case $deplibs_check_method in 4955file_magic*) 4956 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 4957 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 4958echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 4959if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 4960 echo $ECHO_N "(cached) $ECHO_C" >&6 4961else 4962 case $MAGIC_CMD in 4963 /*) 4964 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 4965 ;; 4966 ?:/*) 4967 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 4968 ;; 4969 *) 4970 ac_save_MAGIC_CMD="$MAGIC_CMD" 4971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 4972 ac_dummy="/usr/bin:$PATH" 4973 for ac_dir in $ac_dummy; do 4974 test -z "$ac_dir" && ac_dir=. 4975 if test -f $ac_dir/${ac_tool_prefix}file; then 4976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 4977 if test -n "$file_magic_test_file"; then 4978 case $deplibs_check_method in 4979 "file_magic "*) 4980 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 4981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 4982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 4983 egrep "$file_magic_regex" > /dev/null; then 4984 : 4985 else 4986 cat <<EOF 1>&2 4987 4988*** Warning: the command libtool uses to detect shared libraries, 4989*** $file_magic_cmd, produces output that libtool cannot recognize. 4990*** The result is that libtool may fail to recognize shared libraries 4991*** as such. This will affect the creation of libtool libraries that 4992*** depend on shared libraries, but programs linked with such libtool 4993*** libraries will work regardless of this problem. Nevertheless, you 4994*** may want to report the problem to your system manager and/or to 4995*** bug-libtool@gnu.org 4996 4997EOF 4998 fi ;; 4999 esac 5000 fi 5001 break 5002 fi 5003 done 5004 IFS="$ac_save_ifs" 5005 MAGIC_CMD="$ac_save_MAGIC_CMD" 5006 ;; 5007esac 5008fi 5009 5010MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5011if test -n "$MAGIC_CMD"; then 5012 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5013echo "${ECHO_T}$MAGIC_CMD" >&6 5014else 5015 echo "$as_me:$LINENO: result: no" >&5 5016echo "${ECHO_T}no" >&6 5017fi 5018 5019if test -z "$lt_cv_path_MAGIC_CMD"; then 5020 if test -n "$ac_tool_prefix"; then 5021 echo "$as_me:$LINENO: checking for file" >&5 5022echo $ECHO_N "checking for file... $ECHO_C" >&6 5023if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5024 echo $ECHO_N "(cached) $ECHO_C" >&6 5025else 5026 case $MAGIC_CMD in 5027 /*) 5028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5029 ;; 5030 ?:/*) 5031 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 5032 ;; 5033 *) 5034 ac_save_MAGIC_CMD="$MAGIC_CMD" 5035 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 5036 ac_dummy="/usr/bin:$PATH" 5037 for ac_dir in $ac_dummy; do 5038 test -z "$ac_dir" && ac_dir=. 5039 if test -f $ac_dir/file; then 5040 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5041 if test -n "$file_magic_test_file"; then 5042 case $deplibs_check_method in 5043 "file_magic "*) 5044 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5046 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5047 egrep "$file_magic_regex" > /dev/null; then 5048 : 5049 else 5050 cat <<EOF 1>&2 5051 5052*** Warning: the command libtool uses to detect shared libraries, 5053*** $file_magic_cmd, produces output that libtool cannot recognize. 5054*** The result is that libtool may fail to recognize shared libraries 5055*** as such. This will affect the creation of libtool libraries that 5056*** depend on shared libraries, but programs linked with such libtool 5057*** libraries will work regardless of this problem. Nevertheless, you 5058*** may want to report the problem to your system manager and/or to 5059*** bug-libtool@gnu.org 5060 5061EOF 5062 fi ;; 5063 esac 5064 fi 5065 break 5066 fi 5067 done 5068 IFS="$ac_save_ifs" 5069 MAGIC_CMD="$ac_save_MAGIC_CMD" 5070 ;; 5071esac 5072fi 5073 5074MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5075if test -n "$MAGIC_CMD"; then 5076 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5077echo "${ECHO_T}$MAGIC_CMD" >&6 5078else 5079 echo "$as_me:$LINENO: result: no" >&5 5080echo "${ECHO_T}no" >&6 5081fi 5082 5083 else 5084 MAGIC_CMD=: 5085 fi 5086fi 5087 5088 fi 5089 ;; 5090esac 5091 5092if test -n "$ac_tool_prefix"; then 5093 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5094set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5095echo "$as_me:$LINENO: checking for $ac_word" >&5 5096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5097if test "${ac_cv_prog_RANLIB+set}" = set; then 5098 echo $ECHO_N "(cached) $ECHO_C" >&6 5099else 5100 if test -n "$RANLIB"; then 5101 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5102else 5103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5104for as_dir in $PATH 5105do 5106 IFS=$as_save_IFS 5107 test -z "$as_dir" && as_dir=. 5108 for ac_exec_ext in '' $ac_executable_extensions; do 5109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5110 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5112 break 2 5113 fi 5114done 5115done 5116 5117fi 5118fi 5119RANLIB=$ac_cv_prog_RANLIB 5120if test -n "$RANLIB"; then 5121 echo "$as_me:$LINENO: result: $RANLIB" >&5 5122echo "${ECHO_T}$RANLIB" >&6 5123else 5124 echo "$as_me:$LINENO: result: no" >&5 5125echo "${ECHO_T}no" >&6 5126fi 5127 5128fi 5129if test -z "$ac_cv_prog_RANLIB"; then 5130 ac_ct_RANLIB=$RANLIB 5131 # Extract the first word of "ranlib", so it can be a program name with args. 5132set dummy ranlib; ac_word=$2 5133echo "$as_me:$LINENO: checking for $ac_word" >&5 5134echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5135if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5136 echo $ECHO_N "(cached) $ECHO_C" >&6 5137else 5138 if test -n "$ac_ct_RANLIB"; then 5139 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5140else 5141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5142for as_dir in $PATH 5143do 5144 IFS=$as_save_IFS 5145 test -z "$as_dir" && as_dir=. 5146 for ac_exec_ext in '' $ac_executable_extensions; do 5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5148 ac_cv_prog_ac_ct_RANLIB="ranlib" 5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5150 break 2 5151 fi 5152done 5153done 5154 5155 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5156fi 5157fi 5158ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5159if test -n "$ac_ct_RANLIB"; then 5160 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5161echo "${ECHO_T}$ac_ct_RANLIB" >&6 5162else 5163 echo "$as_me:$LINENO: result: no" >&5 5164echo "${ECHO_T}no" >&6 5165fi 5166 5167 RANLIB=$ac_ct_RANLIB 5168else 5169 RANLIB="$ac_cv_prog_RANLIB" 5170fi 5171 5172if test -n "$ac_tool_prefix"; then 5173 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5174set dummy ${ac_tool_prefix}strip; ac_word=$2 5175echo "$as_me:$LINENO: checking for $ac_word" >&5 5176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5177if test "${ac_cv_prog_STRIP+set}" = set; then 5178 echo $ECHO_N "(cached) $ECHO_C" >&6 5179else 5180 if test -n "$STRIP"; then 5181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5182else 5183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5184for as_dir in $PATH 5185do 5186 IFS=$as_save_IFS 5187 test -z "$as_dir" && as_dir=. 5188 for ac_exec_ext in '' $ac_executable_extensions; do 5189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5190 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5192 break 2 5193 fi 5194done 5195done 5196 5197fi 5198fi 5199STRIP=$ac_cv_prog_STRIP 5200if test -n "$STRIP"; then 5201 echo "$as_me:$LINENO: result: $STRIP" >&5 5202echo "${ECHO_T}$STRIP" >&6 5203else 5204 echo "$as_me:$LINENO: result: no" >&5 5205echo "${ECHO_T}no" >&6 5206fi 5207 5208fi 5209if test -z "$ac_cv_prog_STRIP"; then 5210 ac_ct_STRIP=$STRIP 5211 # Extract the first word of "strip", so it can be a program name with args. 5212set dummy strip; ac_word=$2 5213echo "$as_me:$LINENO: checking for $ac_word" >&5 5214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5215if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5216 echo $ECHO_N "(cached) $ECHO_C" >&6 5217else 5218 if test -n "$ac_ct_STRIP"; then 5219 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5220else 5221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5222for as_dir in $PATH 5223do 5224 IFS=$as_save_IFS 5225 test -z "$as_dir" && as_dir=. 5226 for ac_exec_ext in '' $ac_executable_extensions; do 5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5228 ac_cv_prog_ac_ct_STRIP="strip" 5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5230 break 2 5231 fi 5232done 5233done 5234 5235 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5236fi 5237fi 5238ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5239if test -n "$ac_ct_STRIP"; then 5240 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5241echo "${ECHO_T}$ac_ct_STRIP" >&6 5242else 5243 echo "$as_me:$LINENO: result: no" >&5 5244echo "${ECHO_T}no" >&6 5245fi 5246 5247 STRIP=$ac_ct_STRIP 5248else 5249 STRIP="$ac_cv_prog_STRIP" 5250fi 5251 5252 5253enable_dlopen=no 5254enable_win32_dll=no 5255 5256# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5257if test "${enable_libtool_lock+set}" = set; then 5258 enableval="$enable_libtool_lock" 5259 5260fi; 5261test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5262 5263# Some flags need to be propagated to the compiler or linker for good 5264# libtool support. 5265case $host in 5266*-*-irix6*) 5267 # Find out which ABI we are using.
|
5239 echo '#line 5239 "configure"' > conftest.$ac_ext
| 5268 echo '#line 5268 "configure"' > conftest.$ac_ext
|
5240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5241 (eval $ac_compile) 2>&5 5242 ac_status=$? 5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5244 (exit $ac_status); }; then 5245 case `/usr/bin/file conftest.$ac_objext` in 5246 *32-bit*) 5247 LD="${LD-ld} -32" 5248 ;; 5249 *N32*) 5250 LD="${LD-ld} -n32" 5251 ;; 5252 *64-bit*) 5253 LD="${LD-ld} -64" 5254 ;; 5255 esac 5256 fi 5257 rm -rf conftest* 5258 ;; 5259 5260*-*-sco3.2v5*) 5261 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5262 SAVE_CFLAGS="$CFLAGS" 5263 CFLAGS="$CFLAGS -belf" 5264 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5265echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5266if test "${lt_cv_cc_needs_belf+set}" = set; then 5267 echo $ECHO_N "(cached) $ECHO_C" >&6 5268else 5269 5270 5271 ac_ext=c 5272ac_cpp='$CPP $CPPFLAGS' 5273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5275ac_compiler_gnu=$ac_cv_c_compiler_gnu 5276 5277 cat >conftest.$ac_ext <<_ACEOF 5278#line $LINENO "configure" 5279#include "confdefs.h" 5280 5281#ifdef F77_DUMMY_MAIN 5282# ifdef __cplusplus 5283 extern "C" 5284# endif 5285 int F77_DUMMY_MAIN() { return 1; } 5286#endif 5287int 5288main () 5289{ 5290 5291 ; 5292 return 0; 5293} 5294_ACEOF 5295rm -f conftest.$ac_objext conftest$ac_exeext 5296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5297 (eval $ac_link) 2>&5 5298 ac_status=$? 5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5300 (exit $ac_status); } && 5301 { ac_try='test -s conftest$ac_exeext' 5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5303 (eval $ac_try) 2>&5 5304 ac_status=$? 5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5306 (exit $ac_status); }; }; then 5307 lt_cv_cc_needs_belf=yes 5308else 5309 echo "$as_me: failed program was:" >&5 5310cat conftest.$ac_ext >&5 5311lt_cv_cc_needs_belf=no 5312fi 5313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5314 ac_ext=c 5315ac_cpp='$CPP $CPPFLAGS' 5316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5318ac_compiler_gnu=$ac_cv_c_compiler_gnu 5319 5320fi 5321echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5322echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5323 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5324 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5325 CFLAGS="$SAVE_CFLAGS" 5326 fi 5327 ;; 5328 5329 5330esac 5331 5332# Sed substitution that helps us do robust quoting. It backslashifies 5333# metacharacters that are still active within double-quoted strings. 5334Xsed='sed -e s/^X//' 5335sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5336 5337# Same as above, but do not quote variable references. 5338double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5339 5340# Sed substitution to delay expansion of an escaped shell variable in a 5341# double_quote_subst'ed string. 5342delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5343 5344# Constants: 5345rm="rm -f" 5346 5347# Global variables: 5348default_ofile=libtool 5349can_build_shared=yes 5350 5351# All known linkers require a `.a' archive for static linking (except M$VC, 5352# which needs '.lib'). 5353libext=a 5354ltmain="$ac_aux_dir/ltmain.sh" 5355ofile="$default_ofile" 5356with_gnu_ld="$lt_cv_prog_gnu_ld" 5357need_locks="$enable_libtool_lock" 5358 5359old_CC="$CC" 5360old_CFLAGS="$CFLAGS" 5361 5362# Set sane defaults for various variables 5363test -z "$AR" && AR=ar 5364test -z "$AR_FLAGS" && AR_FLAGS=cru 5365test -z "$AS" && AS=as 5366test -z "$CC" && CC=cc 5367test -z "$DLLTOOL" && DLLTOOL=dlltool 5368test -z "$LD" && LD=ld 5369test -z "$LN_S" && LN_S="ln -s" 5370test -z "$MAGIC_CMD" && MAGIC_CMD=file 5371test -z "$NM" && NM=nm 5372test -z "$OBJDUMP" && OBJDUMP=objdump 5373test -z "$RANLIB" && RANLIB=: 5374test -z "$STRIP" && STRIP=: 5375test -z "$ac_objext" && ac_objext=o 5376 5377if test x"$host" != x"$build"; then 5378 ac_tool_prefix=${host_alias}- 5379else 5380 ac_tool_prefix= 5381fi 5382 5383# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 5384case $host_os in 5385linux-gnu*) ;; 5386linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 5387esac 5388 5389case $host_os in 5390aix3*) 5391 # AIX sometimes has problems with the GCC collect2 program. For some 5392 # reason, if we set the COLLECT_NAMES environment variable, the problems 5393 # vanish in a puff of smoke. 5394 if test "X${COLLECT_NAMES+set}" != Xset; then 5395 COLLECT_NAMES= 5396 export COLLECT_NAMES 5397 fi 5398 ;; 5399esac 5400 5401# Determine commands to create old-style static archives. 5402old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5403old_postinstall_cmds='chmod 644 $oldlib' 5404old_postuninstall_cmds= 5405 5406if test -n "$RANLIB"; then 5407 case $host_os in 5408 openbsd*) 5409 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5410 ;; 5411 *) 5412 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5413 ;; 5414 esac 5415 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5416fi 5417 5418# Allow CC to be a program name with arguments. 5419set dummy $CC 5420compiler="$2" 5421 5422echo "$as_me:$LINENO: checking for objdir" >&5 5423echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5424rm -f .libs 2>/dev/null 5425mkdir .libs 2>/dev/null 5426if test -d .libs; then 5427 objdir=.libs 5428else 5429 # MS-DOS does not allow filenames that begin with a dot. 5430 objdir=_libs 5431fi 5432rmdir .libs 2>/dev/null 5433echo "$as_me:$LINENO: result: $objdir" >&5 5434echo "${ECHO_T}$objdir" >&6 5435 5436 5437 5438# Check whether --with-pic or --without-pic was given. 5439if test "${with_pic+set}" = set; then 5440 withval="$with_pic" 5441 pic_mode="$withval" 5442else 5443 pic_mode=default 5444fi; 5445test -z "$pic_mode" && pic_mode=default 5446 5447# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5448# in isolation, and that seeing it set (from the cache) indicates that 5449# the associated values are set (in the cache) correctly too. 5450echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5451echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5452if test "${lt_cv_prog_cc_pic+set}" = set; then 5453 echo $ECHO_N "(cached) $ECHO_C" >&6 5454else 5455 lt_cv_prog_cc_pic= 5456 lt_cv_prog_cc_shlib= 5457 lt_cv_prog_cc_wl= 5458 lt_cv_prog_cc_static= 5459 lt_cv_prog_cc_no_builtin= 5460 lt_cv_prog_cc_can_build_shared=$can_build_shared 5461 5462 if test "$GCC" = yes; then 5463 lt_cv_prog_cc_wl='-Wl,' 5464 lt_cv_prog_cc_static='-static' 5465 5466 case $host_os in 5467 aix*) 5468 # Below there is a dirty hack to force normal static linking with -ldl 5469 # The problem is because libdl dynamically linked with both libc and 5470 # libC (AIX C++ library), which obviously doesn't included in libraries 5471 # list by gcc. This cause undefined symbols with -static flags. 5472 # This hack allows C programs to be linked with "-static -ldl", but 5473 # not sure about C++ programs. 5474 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 5475 ;; 5476 amigaos*) 5477 # FIXME: we need at least 68020 code to build shared libraries, but 5478 # adding the `-m68020' flag to GCC prevents building anything better, 5479 # like `-m68040'. 5480 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 5481 ;; 5482 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 5483 # PIC is the default for these OSes. 5484 ;; 5485 darwin* | rhapsody*) 5486 # PIC is the default on this platform 5487 # Common symbols not allowed in MH_DYLIB files 5488 lt_cv_prog_cc_pic='-fno-common' 5489 ;; 5490 cygwin* | mingw* | pw32* | os2*) 5491 # This hack is so that the source file can tell whether it is being 5492 # built for inclusion in a dll (and should export symbols for example). 5493 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5494 ;; 5495 sysv4*MP*) 5496 if test -d /usr/nec; then 5497 lt_cv_prog_cc_pic=-Kconform_pic 5498 fi 5499 ;; 5500 *) 5501 lt_cv_prog_cc_pic='-fPIC' 5502 ;; 5503 esac 5504 else 5505 # PORTME Check for PIC flags for the system compiler. 5506 case $host_os in 5507 aix3* | aix4* | aix5*) 5508 lt_cv_prog_cc_wl='-Wl,' 5509 # All AIX code is PIC. 5510 if test "$host_cpu" = ia64; then 5511 # AIX 5 now supports IA64 processor 5512 lt_cv_prog_cc_static='-Bstatic' 5513 else 5514 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 5515 fi 5516 ;; 5517 5518 hpux9* | hpux10* | hpux11*) 5519 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 5520 lt_cv_prog_cc_wl='-Wl,' 5521 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 5522 lt_cv_prog_cc_pic='+Z' 5523 ;; 5524 5525 irix5* | irix6*) 5526 lt_cv_prog_cc_wl='-Wl,' 5527 lt_cv_prog_cc_static='-non_shared' 5528 # PIC (with -KPIC) is the default. 5529 ;; 5530 5531 cygwin* | mingw* | pw32* | os2*) 5532 # This hack is so that the source file can tell whether it is being 5533 # built for inclusion in a dll (and should export symbols for example). 5534 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5535 ;; 5536 5537 newsos6) 5538 lt_cv_prog_cc_pic='-KPIC' 5539 lt_cv_prog_cc_static='-Bstatic' 5540 ;; 5541 5542 osf3* | osf4* | osf5*) 5543 # All OSF/1 code is PIC. 5544 lt_cv_prog_cc_wl='-Wl,' 5545 lt_cv_prog_cc_static='-non_shared' 5546 ;; 5547 5548 sco3.2v5*) 5549 lt_cv_prog_cc_pic='-Kpic' 5550 lt_cv_prog_cc_static='-dn' 5551 lt_cv_prog_cc_shlib='-belf' 5552 ;; 5553 5554 solaris*) 5555 lt_cv_prog_cc_pic='-KPIC' 5556 lt_cv_prog_cc_static='-Bstatic' 5557 lt_cv_prog_cc_wl='-Wl,' 5558 ;; 5559 5560 sunos4*) 5561 lt_cv_prog_cc_pic='-PIC' 5562 lt_cv_prog_cc_static='-Bstatic' 5563 lt_cv_prog_cc_wl='-Qoption ld ' 5564 ;; 5565 5566 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5567 lt_cv_prog_cc_pic='-KPIC' 5568 lt_cv_prog_cc_static='-Bstatic' 5569 if test "x$host_vendor" = xsni; then 5570 lt_cv_prog_cc_wl='-LD' 5571 else 5572 lt_cv_prog_cc_wl='-Wl,' 5573 fi 5574 ;; 5575 5576 uts4*) 5577 lt_cv_prog_cc_pic='-pic' 5578 lt_cv_prog_cc_static='-Bstatic' 5579 ;; 5580 5581 sysv4*MP*) 5582 if test -d /usr/nec ;then 5583 lt_cv_prog_cc_pic='-Kconform_pic' 5584 lt_cv_prog_cc_static='-Bstatic' 5585 fi 5586 ;; 5587 5588 *) 5589 lt_cv_prog_cc_can_build_shared=no 5590 ;; 5591 esac 5592 fi 5593 5594fi 5595 5596if test -z "$lt_cv_prog_cc_pic"; then 5597 echo "$as_me:$LINENO: result: none" >&5 5598echo "${ECHO_T}none" >&6 5599else 5600 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 5601echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 5602 5603 # Check to make sure the pic_flag actually works. 5604 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 5605echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 5606 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 5607 echo $ECHO_N "(cached) $ECHO_C" >&6 5608else 5609 save_CFLAGS="$CFLAGS" 5610 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5611 cat >conftest.$ac_ext <<_ACEOF 5612#line $LINENO "configure" 5613#include "confdefs.h" 5614 5615#ifdef F77_DUMMY_MAIN 5616# ifdef __cplusplus 5617 extern "C" 5618# endif 5619 int F77_DUMMY_MAIN() { return 1; } 5620#endif 5621int 5622main () 5623{ 5624 5625 ; 5626 return 0; 5627} 5628_ACEOF 5629rm -f conftest.$ac_objext 5630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5631 (eval $ac_compile) 2>&5 5632 ac_status=$? 5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5634 (exit $ac_status); } && 5635 { ac_try='test -s conftest.$ac_objext' 5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5637 (eval $ac_try) 2>&5 5638 ac_status=$? 5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5640 (exit $ac_status); }; }; then 5641 case $host_os in 5642 hpux9* | hpux10* | hpux11*) 5643 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5644 # they create non-PIC objects. So, if there were any warnings, we 5645 # assume that PIC is not supported. 5646 if test -s conftest.err; then 5647 lt_cv_prog_cc_pic_works=no 5648 else 5649 lt_cv_prog_cc_pic_works=yes 5650 fi 5651 ;; 5652 *) 5653 lt_cv_prog_cc_pic_works=yes 5654 ;; 5655 esac 5656 5657else 5658 echo "$as_me: failed program was:" >&5 5659cat conftest.$ac_ext >&5 5660 lt_cv_prog_cc_pic_works=no 5661 5662fi 5663rm -f conftest.$ac_objext conftest.$ac_ext 5664 CFLAGS="$save_CFLAGS" 5665 5666fi 5667 5668 5669 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5670 lt_cv_prog_cc_pic= 5671 lt_cv_prog_cc_can_build_shared=no 5672 else 5673 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5674 fi 5675 5676 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 5677echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 5678fi 5679 5680# Check for any special shared library compilation flags. 5681if test -n "$lt_cv_prog_cc_shlib"; then 5682 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 5683echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 5684 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 5685 else 5686 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5687echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5688 lt_cv_prog_cc_can_build_shared=no 5689 fi 5690fi 5691 5692echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 5693echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 5694if test "${lt_cv_prog_cc_static_works+set}" = set; then 5695 echo $ECHO_N "(cached) $ECHO_C" >&6 5696else 5697 lt_cv_prog_cc_static_works=no 5698 save_LDFLAGS="$LDFLAGS" 5699 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5700 cat >conftest.$ac_ext <<_ACEOF 5701#line $LINENO "configure" 5702#include "confdefs.h" 5703 5704#ifdef F77_DUMMY_MAIN 5705# ifdef __cplusplus 5706 extern "C" 5707# endif 5708 int F77_DUMMY_MAIN() { return 1; } 5709#endif 5710int 5711main () 5712{ 5713 5714 ; 5715 return 0; 5716} 5717_ACEOF 5718rm -f conftest.$ac_objext conftest$ac_exeext 5719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5720 (eval $ac_link) 2>&5 5721 ac_status=$? 5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5723 (exit $ac_status); } && 5724 { ac_try='test -s conftest$ac_exeext' 5725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5726 (eval $ac_try) 2>&5 5727 ac_status=$? 5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5729 (exit $ac_status); }; }; then 5730 lt_cv_prog_cc_static_works=yes 5731else 5732 echo "$as_me: failed program was:" >&5 5733cat conftest.$ac_ext >&5 5734fi 5735rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5736 LDFLAGS="$save_LDFLAGS" 5737 5738fi 5739 5740 5741# Belt *and* braces to stop my trousers falling down: 5742test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5743echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 5744echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 5745 5746pic_flag="$lt_cv_prog_cc_pic" 5747special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5748wl="$lt_cv_prog_cc_wl" 5749link_static_flag="$lt_cv_prog_cc_static" 5750no_builtin_flag="$lt_cv_prog_cc_no_builtin" 5751can_build_shared="$lt_cv_prog_cc_can_build_shared" 5752 5753 5754# Check to see if options -o and -c are simultaneously supported by compiler 5755echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5756echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5757if test "${lt_cv_compiler_c_o+set}" = set; then 5758 echo $ECHO_N "(cached) $ECHO_C" >&6 5759else 5760 5761$rm -r conftest 2>/dev/null 5762mkdir conftest 5763cd conftest 5764echo "int some_variable = 0;" > conftest.$ac_ext 5765mkdir out 5766# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 5767# that will create temporary files in the current directory regardless of 5768# the output directory. Thus, making CWD read-only will cause this test 5769# to fail, enabling locking or at least warning the user not to do parallel 5770# builds. 5771chmod -w . 5772save_CFLAGS="$CFLAGS" 5773CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5774compiler_c_o=no
| 5269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5270 (eval $ac_compile) 2>&5 5271 ac_status=$? 5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5273 (exit $ac_status); }; then 5274 case `/usr/bin/file conftest.$ac_objext` in 5275 *32-bit*) 5276 LD="${LD-ld} -32" 5277 ;; 5278 *N32*) 5279 LD="${LD-ld} -n32" 5280 ;; 5281 *64-bit*) 5282 LD="${LD-ld} -64" 5283 ;; 5284 esac 5285 fi 5286 rm -rf conftest* 5287 ;; 5288 5289*-*-sco3.2v5*) 5290 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5291 SAVE_CFLAGS="$CFLAGS" 5292 CFLAGS="$CFLAGS -belf" 5293 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5294echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5295if test "${lt_cv_cc_needs_belf+set}" = set; then 5296 echo $ECHO_N "(cached) $ECHO_C" >&6 5297else 5298 5299 5300 ac_ext=c 5301ac_cpp='$CPP $CPPFLAGS' 5302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5304ac_compiler_gnu=$ac_cv_c_compiler_gnu 5305 5306 cat >conftest.$ac_ext <<_ACEOF 5307#line $LINENO "configure" 5308#include "confdefs.h" 5309 5310#ifdef F77_DUMMY_MAIN 5311# ifdef __cplusplus 5312 extern "C" 5313# endif 5314 int F77_DUMMY_MAIN() { return 1; } 5315#endif 5316int 5317main () 5318{ 5319 5320 ; 5321 return 0; 5322} 5323_ACEOF 5324rm -f conftest.$ac_objext conftest$ac_exeext 5325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5326 (eval $ac_link) 2>&5 5327 ac_status=$? 5328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5329 (exit $ac_status); } && 5330 { ac_try='test -s conftest$ac_exeext' 5331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5332 (eval $ac_try) 2>&5 5333 ac_status=$? 5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5335 (exit $ac_status); }; }; then 5336 lt_cv_cc_needs_belf=yes 5337else 5338 echo "$as_me: failed program was:" >&5 5339cat conftest.$ac_ext >&5 5340lt_cv_cc_needs_belf=no 5341fi 5342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5343 ac_ext=c 5344ac_cpp='$CPP $CPPFLAGS' 5345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5347ac_compiler_gnu=$ac_cv_c_compiler_gnu 5348 5349fi 5350echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5351echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5352 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5353 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5354 CFLAGS="$SAVE_CFLAGS" 5355 fi 5356 ;; 5357 5358 5359esac 5360 5361# Sed substitution that helps us do robust quoting. It backslashifies 5362# metacharacters that are still active within double-quoted strings. 5363Xsed='sed -e s/^X//' 5364sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5365 5366# Same as above, but do not quote variable references. 5367double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5368 5369# Sed substitution to delay expansion of an escaped shell variable in a 5370# double_quote_subst'ed string. 5371delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5372 5373# Constants: 5374rm="rm -f" 5375 5376# Global variables: 5377default_ofile=libtool 5378can_build_shared=yes 5379 5380# All known linkers require a `.a' archive for static linking (except M$VC, 5381# which needs '.lib'). 5382libext=a 5383ltmain="$ac_aux_dir/ltmain.sh" 5384ofile="$default_ofile" 5385with_gnu_ld="$lt_cv_prog_gnu_ld" 5386need_locks="$enable_libtool_lock" 5387 5388old_CC="$CC" 5389old_CFLAGS="$CFLAGS" 5390 5391# Set sane defaults for various variables 5392test -z "$AR" && AR=ar 5393test -z "$AR_FLAGS" && AR_FLAGS=cru 5394test -z "$AS" && AS=as 5395test -z "$CC" && CC=cc 5396test -z "$DLLTOOL" && DLLTOOL=dlltool 5397test -z "$LD" && LD=ld 5398test -z "$LN_S" && LN_S="ln -s" 5399test -z "$MAGIC_CMD" && MAGIC_CMD=file 5400test -z "$NM" && NM=nm 5401test -z "$OBJDUMP" && OBJDUMP=objdump 5402test -z "$RANLIB" && RANLIB=: 5403test -z "$STRIP" && STRIP=: 5404test -z "$ac_objext" && ac_objext=o 5405 5406if test x"$host" != x"$build"; then 5407 ac_tool_prefix=${host_alias}- 5408else 5409 ac_tool_prefix= 5410fi 5411 5412# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 5413case $host_os in 5414linux-gnu*) ;; 5415linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 5416esac 5417 5418case $host_os in 5419aix3*) 5420 # AIX sometimes has problems with the GCC collect2 program. For some 5421 # reason, if we set the COLLECT_NAMES environment variable, the problems 5422 # vanish in a puff of smoke. 5423 if test "X${COLLECT_NAMES+set}" != Xset; then 5424 COLLECT_NAMES= 5425 export COLLECT_NAMES 5426 fi 5427 ;; 5428esac 5429 5430# Determine commands to create old-style static archives. 5431old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5432old_postinstall_cmds='chmod 644 $oldlib' 5433old_postuninstall_cmds= 5434 5435if test -n "$RANLIB"; then 5436 case $host_os in 5437 openbsd*) 5438 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5439 ;; 5440 *) 5441 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5442 ;; 5443 esac 5444 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5445fi 5446 5447# Allow CC to be a program name with arguments. 5448set dummy $CC 5449compiler="$2" 5450 5451echo "$as_me:$LINENO: checking for objdir" >&5 5452echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5453rm -f .libs 2>/dev/null 5454mkdir .libs 2>/dev/null 5455if test -d .libs; then 5456 objdir=.libs 5457else 5458 # MS-DOS does not allow filenames that begin with a dot. 5459 objdir=_libs 5460fi 5461rmdir .libs 2>/dev/null 5462echo "$as_me:$LINENO: result: $objdir" >&5 5463echo "${ECHO_T}$objdir" >&6 5464 5465 5466 5467# Check whether --with-pic or --without-pic was given. 5468if test "${with_pic+set}" = set; then 5469 withval="$with_pic" 5470 pic_mode="$withval" 5471else 5472 pic_mode=default 5473fi; 5474test -z "$pic_mode" && pic_mode=default 5475 5476# We assume here that the value for lt_cv_prog_cc_pic will not be cached 5477# in isolation, and that seeing it set (from the cache) indicates that 5478# the associated values are set (in the cache) correctly too. 5479echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5480echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5481if test "${lt_cv_prog_cc_pic+set}" = set; then 5482 echo $ECHO_N "(cached) $ECHO_C" >&6 5483else 5484 lt_cv_prog_cc_pic= 5485 lt_cv_prog_cc_shlib= 5486 lt_cv_prog_cc_wl= 5487 lt_cv_prog_cc_static= 5488 lt_cv_prog_cc_no_builtin= 5489 lt_cv_prog_cc_can_build_shared=$can_build_shared 5490 5491 if test "$GCC" = yes; then 5492 lt_cv_prog_cc_wl='-Wl,' 5493 lt_cv_prog_cc_static='-static' 5494 5495 case $host_os in 5496 aix*) 5497 # Below there is a dirty hack to force normal static linking with -ldl 5498 # The problem is because libdl dynamically linked with both libc and 5499 # libC (AIX C++ library), which obviously doesn't included in libraries 5500 # list by gcc. This cause undefined symbols with -static flags. 5501 # This hack allows C programs to be linked with "-static -ldl", but 5502 # not sure about C++ programs. 5503 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 5504 ;; 5505 amigaos*) 5506 # FIXME: we need at least 68020 code to build shared libraries, but 5507 # adding the `-m68020' flag to GCC prevents building anything better, 5508 # like `-m68040'. 5509 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 5510 ;; 5511 beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 5512 # PIC is the default for these OSes. 5513 ;; 5514 darwin* | rhapsody*) 5515 # PIC is the default on this platform 5516 # Common symbols not allowed in MH_DYLIB files 5517 lt_cv_prog_cc_pic='-fno-common' 5518 ;; 5519 cygwin* | mingw* | pw32* | os2*) 5520 # This hack is so that the source file can tell whether it is being 5521 # built for inclusion in a dll (and should export symbols for example). 5522 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5523 ;; 5524 sysv4*MP*) 5525 if test -d /usr/nec; then 5526 lt_cv_prog_cc_pic=-Kconform_pic 5527 fi 5528 ;; 5529 *) 5530 lt_cv_prog_cc_pic='-fPIC' 5531 ;; 5532 esac 5533 else 5534 # PORTME Check for PIC flags for the system compiler. 5535 case $host_os in 5536 aix3* | aix4* | aix5*) 5537 lt_cv_prog_cc_wl='-Wl,' 5538 # All AIX code is PIC. 5539 if test "$host_cpu" = ia64; then 5540 # AIX 5 now supports IA64 processor 5541 lt_cv_prog_cc_static='-Bstatic' 5542 else 5543 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 5544 fi 5545 ;; 5546 5547 hpux9* | hpux10* | hpux11*) 5548 # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 5549 lt_cv_prog_cc_wl='-Wl,' 5550 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 5551 lt_cv_prog_cc_pic='+Z' 5552 ;; 5553 5554 irix5* | irix6*) 5555 lt_cv_prog_cc_wl='-Wl,' 5556 lt_cv_prog_cc_static='-non_shared' 5557 # PIC (with -KPIC) is the default. 5558 ;; 5559 5560 cygwin* | mingw* | pw32* | os2*) 5561 # This hack is so that the source file can tell whether it is being 5562 # built for inclusion in a dll (and should export symbols for example). 5563 lt_cv_prog_cc_pic='-DDLL_EXPORT' 5564 ;; 5565 5566 newsos6) 5567 lt_cv_prog_cc_pic='-KPIC' 5568 lt_cv_prog_cc_static='-Bstatic' 5569 ;; 5570 5571 osf3* | osf4* | osf5*) 5572 # All OSF/1 code is PIC. 5573 lt_cv_prog_cc_wl='-Wl,' 5574 lt_cv_prog_cc_static='-non_shared' 5575 ;; 5576 5577 sco3.2v5*) 5578 lt_cv_prog_cc_pic='-Kpic' 5579 lt_cv_prog_cc_static='-dn' 5580 lt_cv_prog_cc_shlib='-belf' 5581 ;; 5582 5583 solaris*) 5584 lt_cv_prog_cc_pic='-KPIC' 5585 lt_cv_prog_cc_static='-Bstatic' 5586 lt_cv_prog_cc_wl='-Wl,' 5587 ;; 5588 5589 sunos4*) 5590 lt_cv_prog_cc_pic='-PIC' 5591 lt_cv_prog_cc_static='-Bstatic' 5592 lt_cv_prog_cc_wl='-Qoption ld ' 5593 ;; 5594 5595 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5596 lt_cv_prog_cc_pic='-KPIC' 5597 lt_cv_prog_cc_static='-Bstatic' 5598 if test "x$host_vendor" = xsni; then 5599 lt_cv_prog_cc_wl='-LD' 5600 else 5601 lt_cv_prog_cc_wl='-Wl,' 5602 fi 5603 ;; 5604 5605 uts4*) 5606 lt_cv_prog_cc_pic='-pic' 5607 lt_cv_prog_cc_static='-Bstatic' 5608 ;; 5609 5610 sysv4*MP*) 5611 if test -d /usr/nec ;then 5612 lt_cv_prog_cc_pic='-Kconform_pic' 5613 lt_cv_prog_cc_static='-Bstatic' 5614 fi 5615 ;; 5616 5617 *) 5618 lt_cv_prog_cc_can_build_shared=no 5619 ;; 5620 esac 5621 fi 5622 5623fi 5624 5625if test -z "$lt_cv_prog_cc_pic"; then 5626 echo "$as_me:$LINENO: result: none" >&5 5627echo "${ECHO_T}none" >&6 5628else 5629 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 5630echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 5631 5632 # Check to make sure the pic_flag actually works. 5633 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 5634echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 5635 if test "${lt_cv_prog_cc_pic_works+set}" = set; then 5636 echo $ECHO_N "(cached) $ECHO_C" >&6 5637else 5638 save_CFLAGS="$CFLAGS" 5639 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 5640 cat >conftest.$ac_ext <<_ACEOF 5641#line $LINENO "configure" 5642#include "confdefs.h" 5643 5644#ifdef F77_DUMMY_MAIN 5645# ifdef __cplusplus 5646 extern "C" 5647# endif 5648 int F77_DUMMY_MAIN() { return 1; } 5649#endif 5650int 5651main () 5652{ 5653 5654 ; 5655 return 0; 5656} 5657_ACEOF 5658rm -f conftest.$ac_objext 5659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5660 (eval $ac_compile) 2>&5 5661 ac_status=$? 5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5663 (exit $ac_status); } && 5664 { ac_try='test -s conftest.$ac_objext' 5665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5666 (eval $ac_try) 2>&5 5667 ac_status=$? 5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5669 (exit $ac_status); }; }; then 5670 case $host_os in 5671 hpux9* | hpux10* | hpux11*) 5672 # On HP-UX, both CC and GCC only warn that PIC is supported... then 5673 # they create non-PIC objects. So, if there were any warnings, we 5674 # assume that PIC is not supported. 5675 if test -s conftest.err; then 5676 lt_cv_prog_cc_pic_works=no 5677 else 5678 lt_cv_prog_cc_pic_works=yes 5679 fi 5680 ;; 5681 *) 5682 lt_cv_prog_cc_pic_works=yes 5683 ;; 5684 esac 5685 5686else 5687 echo "$as_me: failed program was:" >&5 5688cat conftest.$ac_ext >&5 5689 lt_cv_prog_cc_pic_works=no 5690 5691fi 5692rm -f conftest.$ac_objext conftest.$ac_ext 5693 CFLAGS="$save_CFLAGS" 5694 5695fi 5696 5697 5698 if test "X$lt_cv_prog_cc_pic_works" = Xno; then 5699 lt_cv_prog_cc_pic= 5700 lt_cv_prog_cc_can_build_shared=no 5701 else 5702 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 5703 fi 5704 5705 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 5706echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 5707fi 5708 5709# Check for any special shared library compilation flags. 5710if test -n "$lt_cv_prog_cc_shlib"; then 5711 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 5712echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} 5713 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : 5714 else 5715 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5716echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5717 lt_cv_prog_cc_can_build_shared=no 5718 fi 5719fi 5720 5721echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 5722echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 5723if test "${lt_cv_prog_cc_static_works+set}" = set; then 5724 echo $ECHO_N "(cached) $ECHO_C" >&6 5725else 5726 lt_cv_prog_cc_static_works=no 5727 save_LDFLAGS="$LDFLAGS" 5728 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 5729 cat >conftest.$ac_ext <<_ACEOF 5730#line $LINENO "configure" 5731#include "confdefs.h" 5732 5733#ifdef F77_DUMMY_MAIN 5734# ifdef __cplusplus 5735 extern "C" 5736# endif 5737 int F77_DUMMY_MAIN() { return 1; } 5738#endif 5739int 5740main () 5741{ 5742 5743 ; 5744 return 0; 5745} 5746_ACEOF 5747rm -f conftest.$ac_objext conftest$ac_exeext 5748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5749 (eval $ac_link) 2>&5 5750 ac_status=$? 5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5752 (exit $ac_status); } && 5753 { ac_try='test -s conftest$ac_exeext' 5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5755 (eval $ac_try) 2>&5 5756 ac_status=$? 5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5758 (exit $ac_status); }; }; then 5759 lt_cv_prog_cc_static_works=yes 5760else 5761 echo "$as_me: failed program was:" >&5 5762cat conftest.$ac_ext >&5 5763fi 5764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 5765 LDFLAGS="$save_LDFLAGS" 5766 5767fi 5768 5769 5770# Belt *and* braces to stop my trousers falling down: 5771test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 5772echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 5773echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 5774 5775pic_flag="$lt_cv_prog_cc_pic" 5776special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 5777wl="$lt_cv_prog_cc_wl" 5778link_static_flag="$lt_cv_prog_cc_static" 5779no_builtin_flag="$lt_cv_prog_cc_no_builtin" 5780can_build_shared="$lt_cv_prog_cc_can_build_shared" 5781 5782 5783# Check to see if options -o and -c are simultaneously supported by compiler 5784echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 5785echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 5786if test "${lt_cv_compiler_c_o+set}" = set; then 5787 echo $ECHO_N "(cached) $ECHO_C" >&6 5788else 5789 5790$rm -r conftest 2>/dev/null 5791mkdir conftest 5792cd conftest 5793echo "int some_variable = 0;" > conftest.$ac_ext 5794mkdir out 5795# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 5796# that will create temporary files in the current directory regardless of 5797# the output directory. Thus, making CWD read-only will cause this test 5798# to fail, enabling locking or at least warning the user not to do parallel 5799# builds. 5800chmod -w . 5801save_CFLAGS="$CFLAGS" 5802CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 5803compiler_c_o=no
|
5775if { (eval echo configure:5775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
| 5804if { (eval echo configure:5804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
|
5776 # The compiler can only warn and ignore the option if not recognized 5777 # So say no if there are warnings 5778 if test -s out/conftest.err; then 5779 lt_cv_compiler_c_o=no 5780 else 5781 lt_cv_compiler_c_o=yes 5782 fi 5783else 5784 # Append any errors to the config.log. 5785 cat out/conftest.err 1>&5 5786 lt_cv_compiler_c_o=no 5787fi 5788CFLAGS="$save_CFLAGS" 5789chmod u+w . 5790$rm conftest* out/* 5791rmdir out 5792cd .. 5793rmdir conftest 5794$rm -r conftest 2>/dev/null 5795 5796fi 5797 5798compiler_c_o=$lt_cv_compiler_c_o 5799echo "$as_me:$LINENO: result: $compiler_c_o" >&5 5800echo "${ECHO_T}$compiler_c_o" >&6 5801 5802if test x"$compiler_c_o" = x"yes"; then 5803 # Check to see if we can write to a .lo 5804 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 5805echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 5806 if test "${lt_cv_compiler_o_lo+set}" = set; then 5807 echo $ECHO_N "(cached) $ECHO_C" >&6 5808else 5809 5810 lt_cv_compiler_o_lo=no 5811 save_CFLAGS="$CFLAGS" 5812 CFLAGS="$CFLAGS -c -o conftest.lo" 5813 save_objext="$ac_objext" 5814 ac_objext=lo 5815 cat >conftest.$ac_ext <<_ACEOF 5816#line $LINENO "configure" 5817#include "confdefs.h" 5818 5819#ifdef F77_DUMMY_MAIN 5820# ifdef __cplusplus 5821 extern "C" 5822# endif 5823 int F77_DUMMY_MAIN() { return 1; } 5824#endif 5825int 5826main () 5827{ 5828int some_variable = 0; 5829 ; 5830 return 0; 5831} 5832_ACEOF 5833rm -f conftest.$ac_objext 5834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5835 (eval $ac_compile) 2>&5 5836 ac_status=$? 5837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5838 (exit $ac_status); } && 5839 { ac_try='test -s conftest.$ac_objext' 5840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5841 (eval $ac_try) 2>&5 5842 ac_status=$? 5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5844 (exit $ac_status); }; }; then 5845 # The compiler can only warn and ignore the option if not recognized 5846 # So say no if there are warnings 5847 if test -s conftest.err; then 5848 lt_cv_compiler_o_lo=no 5849 else 5850 lt_cv_compiler_o_lo=yes 5851 fi 5852 5853else 5854 echo "$as_me: failed program was:" >&5 5855cat conftest.$ac_ext >&5 5856fi 5857rm -f conftest.$ac_objext conftest.$ac_ext 5858 ac_objext="$save_objext" 5859 CFLAGS="$save_CFLAGS" 5860 5861fi 5862 5863 compiler_o_lo=$lt_cv_compiler_o_lo 5864 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 5865echo "${ECHO_T}$compiler_o_lo" >&6 5866else 5867 compiler_o_lo=no 5868fi 5869 5870# Check to see if we can do hard links to lock some files if needed 5871hard_links="nottested" 5872if test "$compiler_c_o" = no && test "$need_locks" != no; then 5873 # do not overwrite the value of need_locks provided by the user 5874 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 5875echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 5876 hard_links=yes 5877 $rm conftest* 5878 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5879 touch conftest.a 5880 ln conftest.a conftest.b 2>&5 || hard_links=no 5881 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5882 echo "$as_me:$LINENO: result: $hard_links" >&5 5883echo "${ECHO_T}$hard_links" >&6 5884 if test "$hard_links" = no; then 5885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 5886echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 5887 need_locks=warn 5888 fi 5889else 5890 need_locks=no 5891fi 5892 5893if test "$GCC" = yes; then 5894 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5895 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5896echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5897 echo "int some_variable = 0;" > conftest.$ac_ext 5898 save_CFLAGS="$CFLAGS" 5899 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5900 compiler_rtti_exceptions=no 5901 cat >conftest.$ac_ext <<_ACEOF 5902#line $LINENO "configure" 5903#include "confdefs.h" 5904 5905#ifdef F77_DUMMY_MAIN 5906# ifdef __cplusplus 5907 extern "C" 5908# endif 5909 int F77_DUMMY_MAIN() { return 1; } 5910#endif 5911int 5912main () 5913{ 5914int some_variable = 0; 5915 ; 5916 return 0; 5917} 5918_ACEOF 5919rm -f conftest.$ac_objext 5920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5921 (eval $ac_compile) 2>&5 5922 ac_status=$? 5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5924 (exit $ac_status); } && 5925 { ac_try='test -s conftest.$ac_objext' 5926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5927 (eval $ac_try) 2>&5 5928 ac_status=$? 5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5930 (exit $ac_status); }; }; then 5931 # The compiler can only warn and ignore the option if not recognized 5932 # So say no if there are warnings 5933 if test -s conftest.err; then 5934 compiler_rtti_exceptions=no 5935 else 5936 compiler_rtti_exceptions=yes 5937 fi 5938 5939else 5940 echo "$as_me: failed program was:" >&5 5941cat conftest.$ac_ext >&5 5942fi 5943rm -f conftest.$ac_objext conftest.$ac_ext 5944 CFLAGS="$save_CFLAGS" 5945 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 5946echo "${ECHO_T}$compiler_rtti_exceptions" >&6 5947 5948 if test "$compiler_rtti_exceptions" = "yes"; then 5949 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5950 else 5951 no_builtin_flag=' -fno-builtin' 5952 fi 5953fi 5954 5955# See if the linker supports building shared libraries. 5956echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 5957echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 5958 5959allow_undefined_flag= 5960no_undefined_flag= 5961need_lib_prefix=unknown 5962need_version=unknown 5963# when you set need_version to no, make sure it does not cause -set_version 5964# flags to be left without arguments 5965archive_cmds= 5966archive_expsym_cmds= 5967old_archive_from_new_cmds= 5968old_archive_from_expsyms_cmds= 5969export_dynamic_flag_spec= 5970whole_archive_flag_spec= 5971thread_safe_flag_spec= 5972hardcode_into_libs=no 5973hardcode_libdir_flag_spec= 5974hardcode_libdir_separator= 5975hardcode_direct=no 5976hardcode_minus_L=no 5977hardcode_shlibpath_var=unsupported 5978runpath_var= 5979link_all_deplibs=unknown 5980always_export_symbols=no 5981export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 5982# include_expsyms should be a list of space-separated symbols to be *always* 5983# included in the symbol list 5984include_expsyms= 5985# exclude_expsyms can be an egrep regular expression of symbols to exclude 5986# it will be wrapped by ` (' and `)$', so one must not match beginning or 5987# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 5988# as well as any symbol that contains `d'. 5989exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 5990# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 5991# platforms (ab)use it in PIC code, but their linkers get confused if 5992# the symbol is explicitly referenced. Since portable code cannot 5993# rely on this symbol name, it's probably fine to never include it in 5994# preloaded symbol tables. 5995extract_expsyms_cmds= 5996 5997case $host_os in 5998cygwin* | mingw* | pw32*) 5999 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6000 # When not using gcc, we currently assume that we are using 6001 # Microsoft Visual C++. 6002 if test "$GCC" != yes; then 6003 with_gnu_ld=no 6004 fi 6005 ;; 6006openbsd*) 6007 with_gnu_ld=no 6008 ;; 6009esac 6010 6011ld_shlibs=yes 6012if test "$with_gnu_ld" = yes; then 6013 # If archive_cmds runs LD, not CC, wlarc should be empty 6014 wlarc='${wl}' 6015 6016 # See if GNU ld supports shared libraries. 6017 case $host_os in 6018 aix3* | aix4* | aix5*) 6019 # On AIX, the GNU linker is very broken 6020 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 6021 ld_shlibs=no 6022 cat <<EOF 1>&2 6023 6024*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6025*** to be unable to reliably create shared libraries on AIX. 6026*** Therefore, libtool is disabling shared libraries support. If you 6027*** really care for shared libraries, you may want to modify your PATH 6028*** so that a non-GNU linker is found, and then restart. 6029 6030EOF 6031 ;; 6032 6033 amigaos*) 6034 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6035 hardcode_libdir_flag_spec='-L$libdir' 6036 hardcode_minus_L=yes 6037 6038 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6039 # that the semantics of dynamic libraries on AmigaOS, at least up 6040 # to version 4, is to share data among multiple programs linked 6041 # with the same dynamic library. Since this doesn't match the 6042 # behavior of shared libraries on other platforms, we can use 6043 # them. 6044 ld_shlibs=no 6045 ;; 6046 6047 beos*) 6048 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6049 allow_undefined_flag=unsupported 6050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6051 # support --undefined. This deserves some investigation. FIXME 6052 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6053 else 6054 ld_shlibs=no 6055 fi 6056 ;; 6057 6058 cygwin* | mingw* | pw32*) 6059 # hardcode_libdir_flag_spec is actually meaningless, as there is 6060 # no search path for DLLs. 6061 hardcode_libdir_flag_spec='-L$libdir' 6062 allow_undefined_flag=unsupported 6063 always_export_symbols=yes 6064 6065 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 6066 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 6067 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 6068 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 6069 else $CC -o impgen impgen.c ; fi)~ 6070 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 6071 6072 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 6073 6074 # cygwin and mingw dlls have different entry points and sets of symbols 6075 # to exclude. 6076 # FIXME: what about values for MSVC? 6077 dll_entry=__cygwin_dll_entry@12 6078 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 6079 case $host_os in 6080 mingw*) 6081 # mingw values 6082 dll_entry=_DllMainCRTStartup@12 6083 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 6084 ;; 6085 esac 6086 6087 # mingw and cygwin differ, and it's simplest to just exclude the union 6088 # of the two symbol sets. 6089 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 6090 6091 # recent cygwin and mingw systems supply a stub DllMain which the user 6092 # can override, but on older systems we have to supply one (in ltdll.c) 6093 if test "x$lt_cv_need_dllmain" = "xyes"; then 6094 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 6095 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 6096 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 6097 else 6098 ltdll_obj= 6099 ltdll_cmds= 6100 fi 6101 6102 # Extract the symbol export list from an `--export-all' def file, 6103 # then regenerate the def file from the symbol export list, so that 6104 # the compiled dll only exports the symbol export list. 6105 # Be careful not to strip the DATA tag left be newer dlltools. 6106 export_symbols_cmds="$ltdll_cmds"' 6107 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 6108 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 6109 6110 # If the export-symbols file already is a .def file (1st line 6111 # is EXPORTS), use it as is. 6112 # If DATA tags from a recent dlltool are present, honour them! 6113 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 6114 cp $export_symbols $output_objdir/$soname-def; 6115 else 6116 echo EXPORTS > $output_objdir/$soname-def; 6117 _lt_hint=1; 6118 cat $export_symbols | while read symbol; do 6119 set dummy \$symbol; 6120 case \$# in 6121 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 6122 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 6123 esac; 6124 _lt_hint=`expr 1 + \$_lt_hint`; 6125 done; 6126 fi~ 6127 '"$ltdll_cmds"' 6128 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6129 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 6130 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6131 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 6132 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 6133 ;; 6134 6135 netbsd*) 6136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6137 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6138 wlarc= 6139 else 6140 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6141 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6142 fi 6143 ;; 6144 6145 solaris* | sysv5*) 6146 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 6147 ld_shlibs=no 6148 cat <<EOF 1>&2 6149 6150*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6151*** create shared libraries on Solaris systems. Therefore, libtool 6152*** is disabling shared libraries support. We urge you to upgrade GNU 6153*** binutils to release 2.9.1 or newer. Another option is to modify 6154*** your PATH or compiler configuration so that the native linker is 6155*** used, and then restart. 6156 6157EOF 6158 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6159 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6160 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6161 else 6162 ld_shlibs=no 6163 fi 6164 ;; 6165 6166 sunos4*) 6167 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6168 wlarc= 6169 hardcode_direct=yes 6170 hardcode_shlibpath_var=no 6171 ;; 6172 6173 *) 6174 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6176 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6177 else 6178 ld_shlibs=no 6179 fi 6180 ;; 6181 esac 6182 6183 if test "$ld_shlibs" = yes; then 6184 runpath_var=LD_RUN_PATH 6185 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6186 export_dynamic_flag_spec='${wl}--export-dynamic' 6187 case $host_os in 6188 cygwin* | mingw* | pw32*) 6189 # dlltool doesn't understand --whole-archive et. al. 6190 whole_archive_flag_spec= 6191 ;; 6192 *) 6193 # ancient GNU ld didn't support --whole-archive et. al. 6194 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 6195 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6196 else 6197 whole_archive_flag_spec= 6198 fi 6199 ;; 6200 esac 6201 fi 6202else 6203 # PORTME fill in a description of your system's linker (not GNU ld) 6204 case $host_os in 6205 aix3*) 6206 allow_undefined_flag=unsupported 6207 always_export_symbols=yes 6208 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 6209 # Note: this linker hardcodes the directories in LIBPATH if there 6210 # are no directories specified by -L. 6211 hardcode_minus_L=yes 6212 if test "$GCC" = yes && test -z "$link_static_flag"; then 6213 # Neither direct hardcoding nor static linking is supported with a 6214 # broken collect2. 6215 hardcode_direct=unsupported 6216 fi 6217 ;; 6218 6219 aix4* | aix5*) 6220 if test "$host_cpu" = ia64; then 6221 # On IA64, the linker does run time linking by default, so we don't 6222 # have to do anything special. 6223 aix_use_runtimelinking=no 6224 exp_sym_flag='-Bexport' 6225 no_entry_flag="" 6226 else 6227 aix_use_runtimelinking=no 6228 6229 # Test if we are trying to use run time linking or normal 6230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6231 # need to do runtime linking. 6232 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6233 for ld_flag in $LDFLAGS; do 6234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6235 aix_use_runtimelinking=yes 6236 break 6237 fi 6238 done 6239 esac 6240 6241 exp_sym_flag='-bexport' 6242 no_entry_flag='-bnoentry' 6243 fi 6244 6245 # When large executables or shared objects are built, AIX ld can 6246 # have problems creating the table of contents. If linking a library 6247 # or program results in "error TOC overflow" add -mminimal-toc to 6248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6250 6251 hardcode_direct=yes 6252 archive_cmds='' 6253 hardcode_libdir_separator=':' 6254 if test "$GCC" = yes; then 6255 case $host_os in aix4.[012]|aix4.[012].*) 6256 collect2name=`${CC} -print-prog-name=collect2` 6257 if test -f "$collect2name" && \ 6258 strings "$collect2name" | grep resolve_lib_name >/dev/null 6259 then 6260 # We have reworked collect2 6261 hardcode_direct=yes 6262 else 6263 # We have old collect2 6264 hardcode_direct=unsupported 6265 # It fails to find uninstalled libraries when the uninstalled 6266 # path is not listed in the libpath. Setting hardcode_minus_L 6267 # to unsupported forces relinking 6268 hardcode_minus_L=yes 6269 hardcode_libdir_flag_spec='-L$libdir' 6270 hardcode_libdir_separator= 6271 fi 6272 esac 6273 6274 shared_flag='-shared' 6275 else 6276 # not using gcc 6277 if test "$host_cpu" = ia64; then 6278 shared_flag='${wl}-G' 6279 else 6280 if test "$aix_use_runtimelinking" = yes; then 6281 shared_flag='${wl}-G' 6282 else 6283 shared_flag='${wl}-bM:SRE' 6284 fi 6285 fi 6286 fi 6287 6288 # It seems that -bexpall can do strange things, so it is better to 6289 # generate a list of symbols to export. 6290 always_export_symbols=yes 6291 if test "$aix_use_runtimelinking" = yes; then 6292 # Warning - without using the other runtime loading flags (-brtl), 6293 # -berok will link without error, but may produce a broken library. 6294 allow_undefined_flag='-berok' 6295 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 6296 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6297 else 6298 if test "$host_cpu" = ia64; then 6299 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6300 allow_undefined_flag="-z nodefs" 6301 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6302 else 6303 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 6304 # Warning - without using the other run time loading flags, 6305 # -berok will link without error, but may produce a broken library. 6306 allow_undefined_flag='${wl}-berok' 6307 # This is a bit strange, but is similar to how AIX traditionally builds 6308 # it's shared libraries. 6309 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 6310 fi 6311 fi 6312 ;; 6313 6314 amigaos*) 6315 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6316 hardcode_libdir_flag_spec='-L$libdir' 6317 hardcode_minus_L=yes 6318 # see comment about different semantics on the GNU ld section 6319 ld_shlibs=no 6320 ;; 6321 6322 cygwin* | mingw* | pw32*) 6323 # When not using gcc, we currently assume that we are using 6324 # Microsoft Visual C++. 6325 # hardcode_libdir_flag_spec is actually meaningless, as there is 6326 # no search path for DLLs. 6327 hardcode_libdir_flag_spec=' ' 6328 allow_undefined_flag=unsupported 6329 # Tell ltmain to make .lib files, not .a files. 6330 libext=lib 6331 # FIXME: Setting linknames here is a bad hack. 6332 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6333 # The linker will automatically build a .lib file if we build a DLL. 6334 old_archive_from_new_cmds='true' 6335 # FIXME: Should let the user specify the lib program. 6336 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6337 fix_srcfile_path='`cygpath -w "$srcfile"`' 6338 ;; 6339 6340 darwin* | rhapsody*) 6341 case "$host_os" in 6342 rhapsody* | darwin1.[012]) 6343 allow_undefined_flag='-undefined suppress' 6344 ;; 6345 *) # Darwin 1.3 on 6346 allow_undefined_flag='-flat_namespace -undefined suppress' 6347 ;; 6348 esac 6349 # FIXME: Relying on posixy $() will cause problems for 6350 # cross-compilation, but unfortunately the echo tests do not 6351 # yet detect zsh echo's removal of \ escapes. 6352 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 6353 # We need to add '_' to the symbols in $export_symbols first 6354 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 6355 hardcode_direct=yes 6356 hardcode_shlibpath_var=no 6357 whole_archive_flag_spec='-all_load $convenience' 6358 ;; 6359 6360 freebsd1*) 6361 ld_shlibs=no 6362 ;; 6363 6364 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6365 # support. Future versions do this automatically, but an explicit c++rt0.o 6366 # does not break anything, and helps significantly (at the cost of a little 6367 # extra space). 6368 freebsd2.2*) 6369 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6370 hardcode_libdir_flag_spec='-R$libdir' 6371 hardcode_direct=yes 6372 hardcode_shlibpath_var=no 6373 ;; 6374 6375 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6376 freebsd2*) 6377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6378 hardcode_direct=yes 6379 hardcode_minus_L=yes 6380 hardcode_shlibpath_var=no 6381 ;; 6382 6383 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6384 freebsd*) 6385 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6386 hardcode_libdir_flag_spec='-R$libdir' 6387 hardcode_direct=yes 6388 hardcode_shlibpath_var=no 6389 ;; 6390 6391 hpux9* | hpux10* | hpux11*) 6392 case $host_os in 6393 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 6394 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 6395 esac 6396 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6397 hardcode_libdir_separator=: 6398 hardcode_direct=yes 6399 hardcode_minus_L=yes # Not in the search PATH, but as the default 6400 # location of the library. 6401 export_dynamic_flag_spec='${wl}-E' 6402 ;; 6403 6404 irix5* | irix6*) 6405 if test "$GCC" = yes; then 6406 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6407 else 6408 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6409 fi 6410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6411 hardcode_libdir_separator=: 6412 link_all_deplibs=yes 6413 ;; 6414 6415 netbsd*) 6416 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6417 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6418 else 6419 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6420 fi 6421 hardcode_libdir_flag_spec='-R$libdir' 6422 hardcode_direct=yes 6423 hardcode_shlibpath_var=no 6424 ;; 6425 6426 newsos6) 6427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6428 hardcode_direct=yes 6429 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6430 hardcode_libdir_separator=: 6431 hardcode_shlibpath_var=no 6432 ;; 6433 6434 openbsd*) 6435 hardcode_direct=yes 6436 hardcode_shlibpath_var=no 6437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6438 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 6439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6440 export_dynamic_flag_spec='${wl}-E' 6441 else 6442 case "$host_os" in 6443 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6445 hardcode_libdir_flag_spec='-R$libdir' 6446 ;; 6447 *) 6448 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 6449 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6450 ;; 6451 esac 6452 fi 6453 ;; 6454 6455 os2*) 6456 hardcode_libdir_flag_spec='-L$libdir' 6457 hardcode_minus_L=yes 6458 allow_undefined_flag=unsupported 6459 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 6460 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6461 ;; 6462 6463 osf3*) 6464 if test "$GCC" = yes; then 6465 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6466 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6467 else 6468 allow_undefined_flag=' -expect_unresolved \*' 6469 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6470 fi 6471 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6472 hardcode_libdir_separator=: 6473 ;; 6474 6475 osf4* | osf5*) # as osf3* with the addition of -msym flag 6476 if test "$GCC" = yes; then 6477 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6478 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6480 else 6481 allow_undefined_flag=' -expect_unresolved \*' 6482 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6483 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6484 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6485 6486 #Both c and cxx compiler support -rpath directly 6487 hardcode_libdir_flag_spec='-rpath $libdir' 6488 fi 6489 hardcode_libdir_separator=: 6490 ;; 6491 6492 sco3.2v5*) 6493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6494 hardcode_shlibpath_var=no 6495 runpath_var=LD_RUN_PATH 6496 hardcode_runpath_var=yes 6497 export_dynamic_flag_spec='${wl}-Bexport' 6498 ;; 6499 6500 solaris*) 6501 # gcc --version < 3.0 without binutils cannot create self contained 6502 # shared libraries reliably, requiring libgcc.a to resolve some of 6503 # the object symbols generated in some cases. Libraries that use 6504 # assert need libgcc.a to resolve __eprintf, for example. Linking 6505 # a copy of libgcc.a into every shared library to guarantee resolving 6506 # such symbols causes other problems: According to Tim Van Holder 6507 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 6508 # (to the application) exception stack for one thing. 6509 no_undefined_flag=' -z defs' 6510 if test "$GCC" = yes; then 6511 case `$CC --version 2>/dev/null` in 6512 [12].*) 6513 cat <<EOF 1>&2 6514 6515*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 6516*** create self contained shared libraries on Solaris systems, without 6517*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 6518*** -no-undefined support, which will at least allow you to build shared 6519*** libraries. However, you may find that when you link such libraries 6520*** into an application without using GCC, you have to manually add 6521*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 6522*** upgrade to a newer version of GCC. Another option is to rebuild your 6523*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 6524 6525EOF 6526 no_undefined_flag= 6527 ;; 6528 esac 6529 fi 6530 # $CC -shared without GNU ld will not create a library from C++ 6531 # object files and a static libstdc++, better avoid it by now 6532 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6533 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6534 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6535 hardcode_libdir_flag_spec='-R$libdir' 6536 hardcode_shlibpath_var=no 6537 case $host_os in 6538 solaris2.[0-5] | solaris2.[0-5].*) ;; 6539 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6540 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6541 esac 6542 link_all_deplibs=yes 6543 ;; 6544 6545 sunos4*) 6546 if test "x$host_vendor" = xsequent; then 6547 # Use $CC to link under sequent, because it throws in some extra .o 6548 # files that make .init and .fini sections work. 6549 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6550 else 6551 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6552 fi 6553 hardcode_libdir_flag_spec='-L$libdir' 6554 hardcode_direct=yes 6555 hardcode_minus_L=yes 6556 hardcode_shlibpath_var=no 6557 ;; 6558 6559 sysv4) 6560 if test "x$host_vendor" = xsno; then 6561 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 6562 hardcode_direct=yes # is this really true??? 6563 else 6564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6565 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6566 fi 6567 runpath_var='LD_RUN_PATH' 6568 hardcode_shlibpath_var=no 6569 ;; 6570 6571 sysv4.3*) 6572 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6573 hardcode_shlibpath_var=no 6574 export_dynamic_flag_spec='-Bexport' 6575 ;; 6576 6577 sysv5*) 6578 no_undefined_flag=' -z text' 6579 # $CC -shared without GNU ld will not create a library from C++ 6580 # object files and a static libstdc++, better avoid it by now 6581 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6582 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6584 hardcode_libdir_flag_spec= 6585 hardcode_shlibpath_var=no 6586 runpath_var='LD_RUN_PATH' 6587 ;; 6588 6589 uts4*) 6590 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6591 hardcode_libdir_flag_spec='-L$libdir' 6592 hardcode_shlibpath_var=no 6593 ;; 6594 6595 dgux*) 6596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6597 hardcode_libdir_flag_spec='-L$libdir' 6598 hardcode_shlibpath_var=no 6599 ;; 6600 6601 sysv4*MP*) 6602 if test -d /usr/nec; then 6603 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6604 hardcode_shlibpath_var=no 6605 runpath_var=LD_RUN_PATH 6606 hardcode_runpath_var=yes 6607 ld_shlibs=yes 6608 fi 6609 ;; 6610 6611 sysv4.2uw2*) 6612 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6613 hardcode_direct=yes 6614 hardcode_minus_L=no 6615 hardcode_shlibpath_var=no 6616 hardcode_runpath_var=yes 6617 runpath_var=LD_RUN_PATH 6618 ;; 6619 6620 sysv5uw7* | unixware7*) 6621 no_undefined_flag='${wl}-z ${wl}text' 6622 if test "$GCC" = yes; then 6623 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6624 else 6625 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6626 fi 6627 runpath_var='LD_RUN_PATH' 6628 hardcode_shlibpath_var=no 6629 ;; 6630 6631 *) 6632 ld_shlibs=no 6633 ;; 6634 esac 6635fi 6636echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6637echo "${ECHO_T}$ld_shlibs" >&6 6638test "$ld_shlibs" = no && can_build_shared=no 6639 6640# Check hardcoding attributes. 6641echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 6642echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 6643hardcode_action= 6644if test -n "$hardcode_libdir_flag_spec" || \ 6645 test -n "$runpath_var"; then 6646 6647 # We can hardcode non-existant directories. 6648 if test "$hardcode_direct" != no && 6649 # If the only mechanism to avoid hardcoding is shlibpath_var, we 6650 # have to relink, otherwise we might link with an installed library 6651 # when we should be linking with a yet-to-be-installed one 6652 ## test "$hardcode_shlibpath_var" != no && 6653 test "$hardcode_minus_L" != no; then 6654 # Linking always hardcodes the temporary library directory. 6655 hardcode_action=relink 6656 else 6657 # We can link without hardcoding, and we can hardcode nonexisting dirs. 6658 hardcode_action=immediate 6659 fi 6660else 6661 # We cannot hardcode anything, or else we can only hardcode existing 6662 # directories. 6663 hardcode_action=unsupported 6664fi 6665echo "$as_me:$LINENO: result: $hardcode_action" >&5 6666echo "${ECHO_T}$hardcode_action" >&6 6667 6668striplib= 6669old_striplib= 6670echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 6671echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 6672if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 6673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6674 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6675 echo "$as_me:$LINENO: result: yes" >&5 6676echo "${ECHO_T}yes" >&6 6677else 6678 echo "$as_me:$LINENO: result: no" >&5 6679echo "${ECHO_T}no" >&6 6680fi 6681 6682reload_cmds='$LD$reload_flag -o $output$reload_objs' 6683test -z "$deplibs_check_method" && deplibs_check_method=unknown 6684 6685# PORTME Fill in your ld.so characteristics 6686echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6687echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6688library_names_spec= 6689libname_spec='lib$name' 6690soname_spec= 6691postinstall_cmds= 6692postuninstall_cmds= 6693finish_cmds= 6694finish_eval= 6695shlibpath_var= 6696shlibpath_overrides_runpath=unknown 6697version_type=none 6698dynamic_linker="$host_os ld.so" 6699sys_lib_dlsearch_path_spec="/lib /usr/lib" 6700sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6701 6702case $host_os in 6703aix3*) 6704 version_type=linux 6705 library_names_spec='${libname}${release}.so$versuffix $libname.a' 6706 shlibpath_var=LIBPATH 6707 6708 # AIX has no versioning support, so we append a major version to the name. 6709 soname_spec='${libname}${release}.so$major' 6710 ;; 6711 6712aix4* | aix5*) 6713 version_type=linux 6714 if test "$host_cpu" = ia64; then 6715 # AIX 5 supports IA64 6716 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 6717 shlibpath_var=LD_LIBRARY_PATH 6718 else 6719 # With GCC up to 2.95.x, collect2 would create an import file 6720 # for dependence libraries. The import file would start with 6721 # the line `#! .'. This would cause the generated library to 6722 # depend on `.', always an invalid library. This was fixed in 6723 # development snapshots of GCC prior to 3.0. 6724 case $host_os in 6725 aix4 | aix4.[01] | aix4.[01].*) 6726 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6727 echo ' yes ' 6728 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6729 : 6730 else 6731 can_build_shared=no 6732 fi 6733 ;; 6734 esac 6735 # AIX (on Power*) has no versioning support, so currently we can 6736 # not hardcode correct soname into executable. Probably we can 6737 # add versioning support to collect2, so additional links can 6738 # be useful in future. 6739 if test "$aix_use_runtimelinking" = yes; then 6740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 6741 # instead of lib<name>.a to let people know that these are not 6742 # typical AIX shared libraries. 6743 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6744 else 6745 # We preserve .a as extension for shared libraries through AIX4.2 6746 # and later when we are not doing run time linking. 6747 library_names_spec='${libname}${release}.a $libname.a' 6748 soname_spec='${libname}${release}.so$major' 6749 fi 6750 shlibpath_var=LIBPATH 6751 fi 6752 ;; 6753 6754amigaos*) 6755 library_names_spec='$libname.ixlibrary $libname.a' 6756 # Create ${libname}_ixlibrary.a entries in /sys/libs. 6757 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 6758 ;; 6759 6760beos*) 6761 library_names_spec='${libname}.so' 6762 dynamic_linker="$host_os ld.so" 6763 shlibpath_var=LIBRARY_PATH 6764 ;; 6765 6766bsdi4*) 6767 version_type=linux 6768 need_version=no 6769 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6770 soname_spec='${libname}${release}.so$major' 6771 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 6772 shlibpath_var=LD_LIBRARY_PATH 6773 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 6774 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 6775 export_dynamic_flag_spec=-rdynamic 6776 # the default ld.so.conf also contains /usr/contrib/lib and 6777 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 6778 # libtool to hard-code these into programs 6779 ;; 6780 6781cygwin* | mingw* | pw32*) 6782 version_type=windows 6783 need_version=no 6784 need_lib_prefix=no 6785 case $GCC,$host_os in 6786 yes,cygwin*) 6787 library_names_spec='$libname.dll.a' 6788 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6789 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 6790 dldir=$destdir/`dirname \$dlpath`~ 6791 test -d \$dldir || mkdir -p \$dldir~ 6792 $install_prog .libs/$dlname \$dldir/$dlname' 6793 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 6794 dlpath=$dir/\$dldll~ 6795 $rm \$dlpath' 6796 ;; 6797 yes,mingw*) 6798 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6799 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 6800 ;; 6801 yes,pw32*) 6802 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 6803 ;; 6804 *) 6805 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 6806 ;; 6807 esac 6808 dynamic_linker='Win32 ld.exe' 6809 # FIXME: first we should search . and the directory the executable is in 6810 shlibpath_var=PATH 6811 ;; 6812 6813darwin* | rhapsody*) 6814 dynamic_linker="$host_os dyld" 6815 version_type=darwin 6816 need_lib_prefix=no 6817 need_version=no 6818 # FIXME: Relying on posixy $() will cause problems for 6819 # cross-compilation, but unfortunately the echo tests do not 6820 # yet detect zsh echo's removal of \ escapes. 6821 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 6822 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 6823 shlibpath_overrides_runpath=yes 6824 shlibpath_var=DYLD_LIBRARY_PATH 6825 ;; 6826 6827freebsd1*) 6828 dynamic_linker=no 6829 ;; 6830 6831freebsd*) 6832 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 6833 version_type=freebsd-$objformat 6834 case $version_type in 6835 freebsd-elf*) 6836 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6837 need_version=no 6838 need_lib_prefix=no 6839 ;; 6840 freebsd-*) 6841 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 6842 need_version=yes 6843 ;; 6844 esac 6845 shlibpath_var=LD_LIBRARY_PATH 6846 case $host_os in 6847 freebsd2*) 6848 shlibpath_overrides_runpath=yes 6849 ;; 6850 *) 6851 shlibpath_overrides_runpath=no 6852 hardcode_into_libs=yes 6853 ;; 6854 esac 6855 ;; 6856 6857gnu*) 6858 version_type=linux 6859 need_lib_prefix=no 6860 need_version=no 6861 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 6862 soname_spec='${libname}${release}.so$major' 6863 shlibpath_var=LD_LIBRARY_PATH 6864 hardcode_into_libs=yes 6865 ;; 6866 6867hpux9* | hpux10* | hpux11*) 6868 # Give a soname corresponding to the major version so that dld.sl refuses to 6869 # link against other versions. 6870 dynamic_linker="$host_os dld.sl" 6871 version_type=sunos 6872 need_lib_prefix=no 6873 need_version=no 6874 shlibpath_var=SHLIB_PATH 6875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6876 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 6877 soname_spec='${libname}${release}.sl$major' 6878 # HP-UX runs *really* slowly unless shared libraries are mode 555. 6879 postinstall_cmds='chmod 555 $lib' 6880 ;; 6881 6882irix5* | irix6*) 6883 version_type=irix 6884 need_lib_prefix=no 6885 need_version=no 6886 soname_spec='${libname}${release}.so$major' 6887 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 6888 case $host_os in 6889 irix5*) 6890 libsuff= shlibsuff= 6891 ;; 6892 *) 6893 case $LD in # libtool.m4 will add one of these switches to LD 6894 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 6895 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 6896 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 6897 *) libsuff= shlibsuff= libmagic=never-match;; 6898 esac 6899 ;; 6900 esac 6901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6902 shlibpath_overrides_runpath=no 6903 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 6904 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 6905 ;; 6906 6907# No shared lib support for Linux oldld, aout, or coff. 6908linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 6909 dynamic_linker=no 6910 ;; 6911 6912# This must be Linux ELF. 6913linux-gnu*) 6914 version_type=linux 6915 need_lib_prefix=no 6916 need_version=no 6917 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6918 soname_spec='${libname}${release}.so$major' 6919 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6920 shlibpath_var=LD_LIBRARY_PATH 6921 shlibpath_overrides_runpath=no 6922 # This implies no fast_install, which is unacceptable. 6923 # Some rework will be needed to allow for fast_install 6924 # before this can be enabled. 6925 hardcode_into_libs=yes 6926 6927 # We used to test for /lib/ld.so.1 and disable shared libraries on 6928 # powerpc, because MkLinux only supported shared libraries with the 6929 # GNU dynamic linker. Since this was broken with cross compilers, 6930 # most powerpc-linux boxes support dynamic linking these days and 6931 # people can always --disable-shared, the test was removed, and we 6932 # assume the GNU/Linux dynamic linker is in use. 6933 dynamic_linker='GNU/Linux ld.so' 6934 ;; 6935 6936netbsd*) 6937 version_type=sunos 6938 need_lib_prefix=no 6939 need_version=no 6940 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6941 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6943 dynamic_linker='NetBSD (a.out) ld.so' 6944 else 6945 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 6946 soname_spec='${libname}${release}.so$major' 6947 dynamic_linker='NetBSD ld.elf_so' 6948 fi 6949 shlibpath_var=LD_LIBRARY_PATH 6950 shlibpath_overrides_runpath=yes 6951 hardcode_into_libs=yes 6952 ;; 6953 6954newsos6) 6955 version_type=linux 6956 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6957 shlibpath_var=LD_LIBRARY_PATH 6958 shlibpath_overrides_runpath=yes 6959 ;; 6960 6961openbsd*) 6962 version_type=sunos 6963 need_lib_prefix=no 6964 need_version=no 6965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6966 case "$host_os" in 6967 openbsd2.[89] | openbsd2.[89].*) 6968 shlibpath_overrides_runpath=no 6969 ;; 6970 *) 6971 shlibpath_overrides_runpath=yes 6972 ;; 6973 esac 6974 else 6975 shlibpath_overrides_runpath=yes 6976 fi 6977 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6979 shlibpath_var=LD_LIBRARY_PATH 6980 ;; 6981 6982os2*) 6983 libname_spec='$name' 6984 need_lib_prefix=no 6985 library_names_spec='$libname.dll $libname.a' 6986 dynamic_linker='OS/2 ld.exe' 6987 shlibpath_var=LIBPATH 6988 ;; 6989 6990osf3* | osf4* | osf5*) 6991 version_type=osf 6992 need_version=no 6993 soname_spec='${libname}${release}.so' 6994 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6995 shlibpath_var=LD_LIBRARY_PATH 6996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 6997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 6998 ;; 6999 7000sco3.2v5*) 7001 version_type=osf 7002 soname_spec='${libname}${release}.so$major' 7003 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7004 shlibpath_var=LD_LIBRARY_PATH 7005 ;; 7006 7007solaris*) 7008 version_type=linux 7009 need_lib_prefix=no 7010 need_version=no 7011 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7012 soname_spec='${libname}${release}.so$major' 7013 shlibpath_var=LD_LIBRARY_PATH 7014 shlibpath_overrides_runpath=yes 7015 hardcode_into_libs=yes 7016 # ldd complains unless libraries are executable 7017 postinstall_cmds='chmod +x $lib' 7018 ;; 7019 7020sunos4*) 7021 version_type=sunos 7022 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 7023 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7024 shlibpath_var=LD_LIBRARY_PATH 7025 shlibpath_overrides_runpath=yes 7026 if test "$with_gnu_ld" = yes; then 7027 need_lib_prefix=no 7028 fi 7029 need_version=yes 7030 ;; 7031 7032sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7033 version_type=linux 7034 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7035 soname_spec='${libname}${release}.so$major' 7036 shlibpath_var=LD_LIBRARY_PATH 7037 case $host_vendor in 7038 sni) 7039 shlibpath_overrides_runpath=no 7040 ;; 7041 motorola) 7042 need_lib_prefix=no 7043 need_version=no 7044 shlibpath_overrides_runpath=no 7045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7046 ;; 7047 esac 7048 ;; 7049 7050uts4*) 7051 version_type=linux 7052 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7053 soname_spec='${libname}${release}.so$major' 7054 shlibpath_var=LD_LIBRARY_PATH 7055 ;; 7056 7057dgux*) 7058 version_type=linux 7059 need_lib_prefix=no 7060 need_version=no 7061 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7062 soname_spec='${libname}${release}.so$major' 7063 shlibpath_var=LD_LIBRARY_PATH 7064 ;; 7065 7066sysv4*MP*) 7067 if test -d /usr/nec ;then 7068 version_type=linux 7069 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 7070 soname_spec='$libname.so.$major' 7071 shlibpath_var=LD_LIBRARY_PATH 7072 fi 7073 ;; 7074 7075*) 7076 dynamic_linker=no 7077 ;; 7078esac 7079echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7080echo "${ECHO_T}$dynamic_linker" >&6 7081test "$dynamic_linker" = no && can_build_shared=no 7082 7083# Report the final consequences. 7084echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 7085echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 7086echo "$as_me:$LINENO: result: $can_build_shared" >&5 7087echo "${ECHO_T}$can_build_shared" >&6 7088 7089echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 7090echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 7091test "$can_build_shared" = "no" && enable_shared=no 7092 7093# On AIX, shared libraries and static libraries use the same namespace, and 7094# are all built from PIC. 7095case "$host_os" in 7096aix3*) 7097 test "$enable_shared" = yes && enable_static=no 7098 if test -n "$RANLIB"; then 7099 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7100 postinstall_cmds='$RANLIB $lib' 7101 fi 7102 ;; 7103 7104aix4*) 7105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7106 test "$enable_shared" = yes && enable_static=no 7107 fi 7108 ;; 7109esac 7110echo "$as_me:$LINENO: result: $enable_shared" >&5 7111echo "${ECHO_T}$enable_shared" >&6 7112 7113echo "$as_me:$LINENO: checking whether to build static libraries" >&5 7114echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 7115# Make sure either enable_shared or enable_static is yes. 7116test "$enable_shared" = yes || enable_static=yes 7117echo "$as_me:$LINENO: result: $enable_static" >&5 7118echo "${ECHO_T}$enable_static" >&6 7119 7120if test "$hardcode_action" = relink; then 7121 # Fast installation is not supported 7122 enable_fast_install=no 7123elif test "$shlibpath_overrides_runpath" = yes || 7124 test "$enable_shared" = no; then 7125 # Fast installation is not necessary 7126 enable_fast_install=needless 7127fi 7128 7129variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7130if test "$GCC" = yes; then 7131 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7132fi 7133 7134if test "x$enable_dlopen" != xyes; then 7135 enable_dlopen=unknown 7136 enable_dlopen_self=unknown 7137 enable_dlopen_self_static=unknown 7138else 7139 lt_cv_dlopen=no 7140 lt_cv_dlopen_libs= 7141 7142 case $host_os in 7143 beos*) 7144 lt_cv_dlopen="load_add_on" 7145 lt_cv_dlopen_libs= 7146 lt_cv_dlopen_self=yes 7147 ;; 7148 7149 cygwin* | mingw* | pw32*) 7150 lt_cv_dlopen="LoadLibrary" 7151 lt_cv_dlopen_libs= 7152 ;; 7153 7154 *) 7155 echo "$as_me:$LINENO: checking for shl_load" >&5 7156echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7157if test "${ac_cv_func_shl_load+set}" = set; then 7158 echo $ECHO_N "(cached) $ECHO_C" >&6 7159else 7160 cat >conftest.$ac_ext <<_ACEOF 7161#line $LINENO "configure" 7162#include "confdefs.h" 7163/* System header to define __stub macros and hopefully few prototypes, 7164 which can conflict with char shl_load (); below. */ 7165#include <assert.h> 7166/* Override any gcc2 internal prototype to avoid an error. */ 7167#ifdef __cplusplus 7168extern "C" 7169#endif 7170/* We use char because int might match the return type of a gcc2 7171 builtin and then its argument prototype would still apply. */ 7172char shl_load (); 7173char (*f) (); 7174 7175#ifdef F77_DUMMY_MAIN 7176# ifdef __cplusplus 7177 extern "C" 7178# endif 7179 int F77_DUMMY_MAIN() { return 1; } 7180#endif 7181int 7182main () 7183{ 7184/* The GNU C library defines this for functions which it implements 7185 to always fail with ENOSYS. Some functions are actually named 7186 something starting with __ and the normal name is an alias. */ 7187#if defined (__stub_shl_load) || defined (__stub___shl_load) 7188choke me 7189#else 7190f = shl_load; 7191#endif 7192 7193 ; 7194 return 0; 7195} 7196_ACEOF 7197rm -f conftest.$ac_objext conftest$ac_exeext 7198if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7199 (eval $ac_link) 2>&5 7200 ac_status=$? 7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7202 (exit $ac_status); } && 7203 { ac_try='test -s conftest$ac_exeext' 7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7205 (eval $ac_try) 2>&5 7206 ac_status=$? 7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7208 (exit $ac_status); }; }; then 7209 ac_cv_func_shl_load=yes 7210else 7211 echo "$as_me: failed program was:" >&5 7212cat conftest.$ac_ext >&5 7213ac_cv_func_shl_load=no 7214fi 7215rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7216fi 7217echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7218echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7219if test $ac_cv_func_shl_load = yes; then 7220 lt_cv_dlopen="shl_load" 7221else 7222 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7223echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7224if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7225 echo $ECHO_N "(cached) $ECHO_C" >&6 7226else 7227 ac_check_lib_save_LIBS=$LIBS 7228LIBS="-ldld $LIBS" 7229cat >conftest.$ac_ext <<_ACEOF 7230#line $LINENO "configure" 7231#include "confdefs.h" 7232 7233/* Override any gcc2 internal prototype to avoid an error. */ 7234#ifdef __cplusplus 7235extern "C" 7236#endif 7237/* We use char because int might match the return type of a gcc2 7238 builtin and then its argument prototype would still apply. */ 7239char shl_load (); 7240#ifdef F77_DUMMY_MAIN 7241# ifdef __cplusplus 7242 extern "C" 7243# endif 7244 int F77_DUMMY_MAIN() { return 1; } 7245#endif 7246int 7247main () 7248{ 7249shl_load (); 7250 ; 7251 return 0; 7252} 7253_ACEOF 7254rm -f conftest.$ac_objext conftest$ac_exeext 7255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7256 (eval $ac_link) 2>&5 7257 ac_status=$? 7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7259 (exit $ac_status); } && 7260 { ac_try='test -s conftest$ac_exeext' 7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7262 (eval $ac_try) 2>&5 7263 ac_status=$? 7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7265 (exit $ac_status); }; }; then 7266 ac_cv_lib_dld_shl_load=yes 7267else 7268 echo "$as_me: failed program was:" >&5 7269cat conftest.$ac_ext >&5 7270ac_cv_lib_dld_shl_load=no 7271fi 7272rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7273LIBS=$ac_check_lib_save_LIBS 7274fi 7275echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7276echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7277if test $ac_cv_lib_dld_shl_load = yes; then 7278 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7279else 7280 echo "$as_me:$LINENO: checking for dlopen" >&5 7281echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7282if test "${ac_cv_func_dlopen+set}" = set; then 7283 echo $ECHO_N "(cached) $ECHO_C" >&6 7284else 7285 cat >conftest.$ac_ext <<_ACEOF 7286#line $LINENO "configure" 7287#include "confdefs.h" 7288/* System header to define __stub macros and hopefully few prototypes, 7289 which can conflict with char dlopen (); below. */ 7290#include <assert.h> 7291/* Override any gcc2 internal prototype to avoid an error. */ 7292#ifdef __cplusplus 7293extern "C" 7294#endif 7295/* We use char because int might match the return type of a gcc2 7296 builtin and then its argument prototype would still apply. */ 7297char dlopen (); 7298char (*f) (); 7299 7300#ifdef F77_DUMMY_MAIN 7301# ifdef __cplusplus 7302 extern "C" 7303# endif 7304 int F77_DUMMY_MAIN() { return 1; } 7305#endif 7306int 7307main () 7308{ 7309/* The GNU C library defines this for functions which it implements 7310 to always fail with ENOSYS. Some functions are actually named 7311 something starting with __ and the normal name is an alias. */ 7312#if defined (__stub_dlopen) || defined (__stub___dlopen) 7313choke me 7314#else 7315f = dlopen; 7316#endif 7317 7318 ; 7319 return 0; 7320} 7321_ACEOF 7322rm -f conftest.$ac_objext conftest$ac_exeext 7323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7324 (eval $ac_link) 2>&5 7325 ac_status=$? 7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7327 (exit $ac_status); } && 7328 { ac_try='test -s conftest$ac_exeext' 7329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7330 (eval $ac_try) 2>&5 7331 ac_status=$? 7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7333 (exit $ac_status); }; }; then 7334 ac_cv_func_dlopen=yes 7335else 7336 echo "$as_me: failed program was:" >&5 7337cat conftest.$ac_ext >&5 7338ac_cv_func_dlopen=no 7339fi 7340rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7341fi 7342echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 7343echo "${ECHO_T}$ac_cv_func_dlopen" >&6 7344if test $ac_cv_func_dlopen = yes; then 7345 lt_cv_dlopen="dlopen" 7346else 7347 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7348echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7349if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7350 echo $ECHO_N "(cached) $ECHO_C" >&6 7351else 7352 ac_check_lib_save_LIBS=$LIBS 7353LIBS="-ldl $LIBS" 7354cat >conftest.$ac_ext <<_ACEOF 7355#line $LINENO "configure" 7356#include "confdefs.h" 7357 7358/* Override any gcc2 internal prototype to avoid an error. */ 7359#ifdef __cplusplus 7360extern "C" 7361#endif 7362/* We use char because int might match the return type of a gcc2 7363 builtin and then its argument prototype would still apply. */ 7364char dlopen (); 7365#ifdef F77_DUMMY_MAIN 7366# ifdef __cplusplus 7367 extern "C" 7368# endif 7369 int F77_DUMMY_MAIN() { return 1; } 7370#endif 7371int 7372main () 7373{ 7374dlopen (); 7375 ; 7376 return 0; 7377} 7378_ACEOF 7379rm -f conftest.$ac_objext conftest$ac_exeext 7380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7381 (eval $ac_link) 2>&5 7382 ac_status=$? 7383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7384 (exit $ac_status); } && 7385 { ac_try='test -s conftest$ac_exeext' 7386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7387 (eval $ac_try) 2>&5 7388 ac_status=$? 7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7390 (exit $ac_status); }; }; then 7391 ac_cv_lib_dl_dlopen=yes 7392else 7393 echo "$as_me: failed program was:" >&5 7394cat conftest.$ac_ext >&5 7395ac_cv_lib_dl_dlopen=no 7396fi 7397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7398LIBS=$ac_check_lib_save_LIBS 7399fi 7400echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7401echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7402if test $ac_cv_lib_dl_dlopen = yes; then 7403 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7404else 7405 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 7406echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 7407if test "${ac_cv_lib_svld_dlopen+set}" = set; then 7408 echo $ECHO_N "(cached) $ECHO_C" >&6 7409else 7410 ac_check_lib_save_LIBS=$LIBS 7411LIBS="-lsvld $LIBS" 7412cat >conftest.$ac_ext <<_ACEOF 7413#line $LINENO "configure" 7414#include "confdefs.h" 7415 7416/* Override any gcc2 internal prototype to avoid an error. */ 7417#ifdef __cplusplus 7418extern "C" 7419#endif 7420/* We use char because int might match the return type of a gcc2 7421 builtin and then its argument prototype would still apply. */ 7422char dlopen (); 7423#ifdef F77_DUMMY_MAIN 7424# ifdef __cplusplus 7425 extern "C" 7426# endif 7427 int F77_DUMMY_MAIN() { return 1; } 7428#endif 7429int 7430main () 7431{ 7432dlopen (); 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437rm -f conftest.$ac_objext conftest$ac_exeext 7438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7439 (eval $ac_link) 2>&5 7440 ac_status=$? 7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7442 (exit $ac_status); } && 7443 { ac_try='test -s conftest$ac_exeext' 7444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7445 (eval $ac_try) 2>&5 7446 ac_status=$? 7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7448 (exit $ac_status); }; }; then 7449 ac_cv_lib_svld_dlopen=yes 7450else 7451 echo "$as_me: failed program was:" >&5 7452cat conftest.$ac_ext >&5 7453ac_cv_lib_svld_dlopen=no 7454fi 7455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7456LIBS=$ac_check_lib_save_LIBS 7457fi 7458echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 7459echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 7460if test $ac_cv_lib_svld_dlopen = yes; then 7461 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7462else 7463 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 7464echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 7465if test "${ac_cv_lib_dld_dld_link+set}" = set; then 7466 echo $ECHO_N "(cached) $ECHO_C" >&6 7467else 7468 ac_check_lib_save_LIBS=$LIBS 7469LIBS="-ldld $LIBS" 7470cat >conftest.$ac_ext <<_ACEOF 7471#line $LINENO "configure" 7472#include "confdefs.h" 7473 7474/* Override any gcc2 internal prototype to avoid an error. */ 7475#ifdef __cplusplus 7476extern "C" 7477#endif 7478/* We use char because int might match the return type of a gcc2 7479 builtin and then its argument prototype would still apply. */ 7480char dld_link (); 7481#ifdef F77_DUMMY_MAIN 7482# ifdef __cplusplus 7483 extern "C" 7484# endif 7485 int F77_DUMMY_MAIN() { return 1; } 7486#endif 7487int 7488main () 7489{ 7490dld_link (); 7491 ; 7492 return 0; 7493} 7494_ACEOF 7495rm -f conftest.$ac_objext conftest$ac_exeext 7496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7497 (eval $ac_link) 2>&5 7498 ac_status=$? 7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7500 (exit $ac_status); } && 7501 { ac_try='test -s conftest$ac_exeext' 7502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7503 (eval $ac_try) 2>&5 7504 ac_status=$? 7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7506 (exit $ac_status); }; }; then 7507 ac_cv_lib_dld_dld_link=yes 7508else 7509 echo "$as_me: failed program was:" >&5 7510cat conftest.$ac_ext >&5 7511ac_cv_lib_dld_dld_link=no 7512fi 7513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7514LIBS=$ac_check_lib_save_LIBS 7515fi 7516echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 7517echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 7518if test $ac_cv_lib_dld_dld_link = yes; then 7519 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7520fi 7521 7522 7523fi 7524 7525 7526fi 7527 7528 7529fi 7530 7531 7532fi 7533 7534 7535fi 7536 7537 ;; 7538 esac 7539 7540 if test "x$lt_cv_dlopen" != xno; then 7541 enable_dlopen=yes 7542 else 7543 enable_dlopen=no 7544 fi 7545 7546 case $lt_cv_dlopen in 7547 dlopen) 7548 save_CPPFLAGS="$CPPFLAGS" 7549 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 7550 7551 save_LDFLAGS="$LDFLAGS" 7552 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7553 7554 save_LIBS="$LIBS" 7555 LIBS="$lt_cv_dlopen_libs $LIBS" 7556 7557 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 7558echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 7559if test "${lt_cv_dlopen_self+set}" = set; then 7560 echo $ECHO_N "(cached) $ECHO_C" >&6 7561else 7562 if test "$cross_compiling" = yes; then : 7563 lt_cv_dlopen_self=cross 7564else 7565 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7566 lt_status=$lt_dlunknown 7567 cat > conftest.$ac_ext <<EOF
| 5805 # The compiler can only warn and ignore the option if not recognized 5806 # So say no if there are warnings 5807 if test -s out/conftest.err; then 5808 lt_cv_compiler_c_o=no 5809 else 5810 lt_cv_compiler_c_o=yes 5811 fi 5812else 5813 # Append any errors to the config.log. 5814 cat out/conftest.err 1>&5 5815 lt_cv_compiler_c_o=no 5816fi 5817CFLAGS="$save_CFLAGS" 5818chmod u+w . 5819$rm conftest* out/* 5820rmdir out 5821cd .. 5822rmdir conftest 5823$rm -r conftest 2>/dev/null 5824 5825fi 5826 5827compiler_c_o=$lt_cv_compiler_c_o 5828echo "$as_me:$LINENO: result: $compiler_c_o" >&5 5829echo "${ECHO_T}$compiler_c_o" >&6 5830 5831if test x"$compiler_c_o" = x"yes"; then 5832 # Check to see if we can write to a .lo 5833 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 5834echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 5835 if test "${lt_cv_compiler_o_lo+set}" = set; then 5836 echo $ECHO_N "(cached) $ECHO_C" >&6 5837else 5838 5839 lt_cv_compiler_o_lo=no 5840 save_CFLAGS="$CFLAGS" 5841 CFLAGS="$CFLAGS -c -o conftest.lo" 5842 save_objext="$ac_objext" 5843 ac_objext=lo 5844 cat >conftest.$ac_ext <<_ACEOF 5845#line $LINENO "configure" 5846#include "confdefs.h" 5847 5848#ifdef F77_DUMMY_MAIN 5849# ifdef __cplusplus 5850 extern "C" 5851# endif 5852 int F77_DUMMY_MAIN() { return 1; } 5853#endif 5854int 5855main () 5856{ 5857int some_variable = 0; 5858 ; 5859 return 0; 5860} 5861_ACEOF 5862rm -f conftest.$ac_objext 5863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5864 (eval $ac_compile) 2>&5 5865 ac_status=$? 5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5867 (exit $ac_status); } && 5868 { ac_try='test -s conftest.$ac_objext' 5869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5870 (eval $ac_try) 2>&5 5871 ac_status=$? 5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5873 (exit $ac_status); }; }; then 5874 # The compiler can only warn and ignore the option if not recognized 5875 # So say no if there are warnings 5876 if test -s conftest.err; then 5877 lt_cv_compiler_o_lo=no 5878 else 5879 lt_cv_compiler_o_lo=yes 5880 fi 5881 5882else 5883 echo "$as_me: failed program was:" >&5 5884cat conftest.$ac_ext >&5 5885fi 5886rm -f conftest.$ac_objext conftest.$ac_ext 5887 ac_objext="$save_objext" 5888 CFLAGS="$save_CFLAGS" 5889 5890fi 5891 5892 compiler_o_lo=$lt_cv_compiler_o_lo 5893 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 5894echo "${ECHO_T}$compiler_o_lo" >&6 5895else 5896 compiler_o_lo=no 5897fi 5898 5899# Check to see if we can do hard links to lock some files if needed 5900hard_links="nottested" 5901if test "$compiler_c_o" = no && test "$need_locks" != no; then 5902 # do not overwrite the value of need_locks provided by the user 5903 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 5904echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 5905 hard_links=yes 5906 $rm conftest* 5907 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5908 touch conftest.a 5909 ln conftest.a conftest.b 2>&5 || hard_links=no 5910 ln conftest.a conftest.b 2>/dev/null && hard_links=no 5911 echo "$as_me:$LINENO: result: $hard_links" >&5 5912echo "${ECHO_T}$hard_links" >&6 5913 if test "$hard_links" = no; then 5914 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 5915echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 5916 need_locks=warn 5917 fi 5918else 5919 need_locks=no 5920fi 5921 5922if test "$GCC" = yes; then 5923 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 5924 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5925echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5926 echo "int some_variable = 0;" > conftest.$ac_ext 5927 save_CFLAGS="$CFLAGS" 5928 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 5929 compiler_rtti_exceptions=no 5930 cat >conftest.$ac_ext <<_ACEOF 5931#line $LINENO "configure" 5932#include "confdefs.h" 5933 5934#ifdef F77_DUMMY_MAIN 5935# ifdef __cplusplus 5936 extern "C" 5937# endif 5938 int F77_DUMMY_MAIN() { return 1; } 5939#endif 5940int 5941main () 5942{ 5943int some_variable = 0; 5944 ; 5945 return 0; 5946} 5947_ACEOF 5948rm -f conftest.$ac_objext 5949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5950 (eval $ac_compile) 2>&5 5951 ac_status=$? 5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5953 (exit $ac_status); } && 5954 { ac_try='test -s conftest.$ac_objext' 5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5956 (eval $ac_try) 2>&5 5957 ac_status=$? 5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5959 (exit $ac_status); }; }; then 5960 # The compiler can only warn and ignore the option if not recognized 5961 # So say no if there are warnings 5962 if test -s conftest.err; then 5963 compiler_rtti_exceptions=no 5964 else 5965 compiler_rtti_exceptions=yes 5966 fi 5967 5968else 5969 echo "$as_me: failed program was:" >&5 5970cat conftest.$ac_ext >&5 5971fi 5972rm -f conftest.$ac_objext conftest.$ac_ext 5973 CFLAGS="$save_CFLAGS" 5974 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 5975echo "${ECHO_T}$compiler_rtti_exceptions" >&6 5976 5977 if test "$compiler_rtti_exceptions" = "yes"; then 5978 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 5979 else 5980 no_builtin_flag=' -fno-builtin' 5981 fi 5982fi 5983 5984# See if the linker supports building shared libraries. 5985echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 5986echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 5987 5988allow_undefined_flag= 5989no_undefined_flag= 5990need_lib_prefix=unknown 5991need_version=unknown 5992# when you set need_version to no, make sure it does not cause -set_version 5993# flags to be left without arguments 5994archive_cmds= 5995archive_expsym_cmds= 5996old_archive_from_new_cmds= 5997old_archive_from_expsyms_cmds= 5998export_dynamic_flag_spec= 5999whole_archive_flag_spec= 6000thread_safe_flag_spec= 6001hardcode_into_libs=no 6002hardcode_libdir_flag_spec= 6003hardcode_libdir_separator= 6004hardcode_direct=no 6005hardcode_minus_L=no 6006hardcode_shlibpath_var=unsupported 6007runpath_var= 6008link_all_deplibs=unknown 6009always_export_symbols=no 6010export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 6011# include_expsyms should be a list of space-separated symbols to be *always* 6012# included in the symbol list 6013include_expsyms= 6014# exclude_expsyms can be an egrep regular expression of symbols to exclude 6015# it will be wrapped by ` (' and `)$', so one must not match beginning or 6016# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6017# as well as any symbol that contains `d'. 6018exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6019# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6020# platforms (ab)use it in PIC code, but their linkers get confused if 6021# the symbol is explicitly referenced. Since portable code cannot 6022# rely on this symbol name, it's probably fine to never include it in 6023# preloaded symbol tables. 6024extract_expsyms_cmds= 6025 6026case $host_os in 6027cygwin* | mingw* | pw32*) 6028 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6029 # When not using gcc, we currently assume that we are using 6030 # Microsoft Visual C++. 6031 if test "$GCC" != yes; then 6032 with_gnu_ld=no 6033 fi 6034 ;; 6035openbsd*) 6036 with_gnu_ld=no 6037 ;; 6038esac 6039 6040ld_shlibs=yes 6041if test "$with_gnu_ld" = yes; then 6042 # If archive_cmds runs LD, not CC, wlarc should be empty 6043 wlarc='${wl}' 6044 6045 # See if GNU ld supports shared libraries. 6046 case $host_os in 6047 aix3* | aix4* | aix5*) 6048 # On AIX, the GNU linker is very broken 6049 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 6050 ld_shlibs=no 6051 cat <<EOF 1>&2 6052 6053*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6054*** to be unable to reliably create shared libraries on AIX. 6055*** Therefore, libtool is disabling shared libraries support. If you 6056*** really care for shared libraries, you may want to modify your PATH 6057*** so that a non-GNU linker is found, and then restart. 6058 6059EOF 6060 ;; 6061 6062 amigaos*) 6063 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6064 hardcode_libdir_flag_spec='-L$libdir' 6065 hardcode_minus_L=yes 6066 6067 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6068 # that the semantics of dynamic libraries on AmigaOS, at least up 6069 # to version 4, is to share data among multiple programs linked 6070 # with the same dynamic library. Since this doesn't match the 6071 # behavior of shared libraries on other platforms, we can use 6072 # them. 6073 ld_shlibs=no 6074 ;; 6075 6076 beos*) 6077 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6078 allow_undefined_flag=unsupported 6079 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6080 # support --undefined. This deserves some investigation. FIXME 6081 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6082 else 6083 ld_shlibs=no 6084 fi 6085 ;; 6086 6087 cygwin* | mingw* | pw32*) 6088 # hardcode_libdir_flag_spec is actually meaningless, as there is 6089 # no search path for DLLs. 6090 hardcode_libdir_flag_spec='-L$libdir' 6091 allow_undefined_flag=unsupported 6092 always_export_symbols=yes 6093 6094 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 6095 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 6096 test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 6097 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 6098 else $CC -o impgen impgen.c ; fi)~ 6099 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 6100 6101 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 6102 6103 # cygwin and mingw dlls have different entry points and sets of symbols 6104 # to exclude. 6105 # FIXME: what about values for MSVC? 6106 dll_entry=__cygwin_dll_entry@12 6107 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 6108 case $host_os in 6109 mingw*) 6110 # mingw values 6111 dll_entry=_DllMainCRTStartup@12 6112 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 6113 ;; 6114 esac 6115 6116 # mingw and cygwin differ, and it's simplest to just exclude the union 6117 # of the two symbol sets. 6118 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 6119 6120 # recent cygwin and mingw systems supply a stub DllMain which the user 6121 # can override, but on older systems we have to supply one (in ltdll.c) 6122 if test "x$lt_cv_need_dllmain" = "xyes"; then 6123 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 6124 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 6125 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 6126 else 6127 ltdll_obj= 6128 ltdll_cmds= 6129 fi 6130 6131 # Extract the symbol export list from an `--export-all' def file, 6132 # then regenerate the def file from the symbol export list, so that 6133 # the compiled dll only exports the symbol export list. 6134 # Be careful not to strip the DATA tag left be newer dlltools. 6135 export_symbols_cmds="$ltdll_cmds"' 6136 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 6137 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 6138 6139 # If the export-symbols file already is a .def file (1st line 6140 # is EXPORTS), use it as is. 6141 # If DATA tags from a recent dlltool are present, honour them! 6142 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 6143 cp $export_symbols $output_objdir/$soname-def; 6144 else 6145 echo EXPORTS > $output_objdir/$soname-def; 6146 _lt_hint=1; 6147 cat $export_symbols | while read symbol; do 6148 set dummy \$symbol; 6149 case \$# in 6150 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 6151 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; 6152 esac; 6153 _lt_hint=`expr 1 + \$_lt_hint`; 6154 done; 6155 fi~ 6156 '"$ltdll_cmds"' 6157 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6158 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 6159 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 6160 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 6161 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 6162 ;; 6163 6164 netbsd*) 6165 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6166 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6167 wlarc= 6168 else 6169 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6170 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6171 fi 6172 ;; 6173 6174 solaris* | sysv5*) 6175 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 6176 ld_shlibs=no 6177 cat <<EOF 1>&2 6178 6179*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6180*** create shared libraries on Solaris systems. Therefore, libtool 6181*** is disabling shared libraries support. We urge you to upgrade GNU 6182*** binutils to release 2.9.1 or newer. Another option is to modify 6183*** your PATH or compiler configuration so that the native linker is 6184*** used, and then restart. 6185 6186EOF 6187 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6188 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6189 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6190 else 6191 ld_shlibs=no 6192 fi 6193 ;; 6194 6195 sunos4*) 6196 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6197 wlarc= 6198 hardcode_direct=yes 6199 hardcode_shlibpath_var=no 6200 ;; 6201 6202 *) 6203 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 6204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6206 else 6207 ld_shlibs=no 6208 fi 6209 ;; 6210 esac 6211 6212 if test "$ld_shlibs" = yes; then 6213 runpath_var=LD_RUN_PATH 6214 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6215 export_dynamic_flag_spec='${wl}--export-dynamic' 6216 case $host_os in 6217 cygwin* | mingw* | pw32*) 6218 # dlltool doesn't understand --whole-archive et. al. 6219 whole_archive_flag_spec= 6220 ;; 6221 *) 6222 # ancient GNU ld didn't support --whole-archive et. al. 6223 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 6224 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6225 else 6226 whole_archive_flag_spec= 6227 fi 6228 ;; 6229 esac 6230 fi 6231else 6232 # PORTME fill in a description of your system's linker (not GNU ld) 6233 case $host_os in 6234 aix3*) 6235 allow_undefined_flag=unsupported 6236 always_export_symbols=yes 6237 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 6238 # Note: this linker hardcodes the directories in LIBPATH if there 6239 # are no directories specified by -L. 6240 hardcode_minus_L=yes 6241 if test "$GCC" = yes && test -z "$link_static_flag"; then 6242 # Neither direct hardcoding nor static linking is supported with a 6243 # broken collect2. 6244 hardcode_direct=unsupported 6245 fi 6246 ;; 6247 6248 aix4* | aix5*) 6249 if test "$host_cpu" = ia64; then 6250 # On IA64, the linker does run time linking by default, so we don't 6251 # have to do anything special. 6252 aix_use_runtimelinking=no 6253 exp_sym_flag='-Bexport' 6254 no_entry_flag="" 6255 else 6256 aix_use_runtimelinking=no 6257 6258 # Test if we are trying to use run time linking or normal 6259 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6260 # need to do runtime linking. 6261 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6262 for ld_flag in $LDFLAGS; do 6263 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6264 aix_use_runtimelinking=yes 6265 break 6266 fi 6267 done 6268 esac 6269 6270 exp_sym_flag='-bexport' 6271 no_entry_flag='-bnoentry' 6272 fi 6273 6274 # When large executables or shared objects are built, AIX ld can 6275 # have problems creating the table of contents. If linking a library 6276 # or program results in "error TOC overflow" add -mminimal-toc to 6277 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6278 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6279 6280 hardcode_direct=yes 6281 archive_cmds='' 6282 hardcode_libdir_separator=':' 6283 if test "$GCC" = yes; then 6284 case $host_os in aix4.[012]|aix4.[012].*) 6285 collect2name=`${CC} -print-prog-name=collect2` 6286 if test -f "$collect2name" && \ 6287 strings "$collect2name" | grep resolve_lib_name >/dev/null 6288 then 6289 # We have reworked collect2 6290 hardcode_direct=yes 6291 else 6292 # We have old collect2 6293 hardcode_direct=unsupported 6294 # It fails to find uninstalled libraries when the uninstalled 6295 # path is not listed in the libpath. Setting hardcode_minus_L 6296 # to unsupported forces relinking 6297 hardcode_minus_L=yes 6298 hardcode_libdir_flag_spec='-L$libdir' 6299 hardcode_libdir_separator= 6300 fi 6301 esac 6302 6303 shared_flag='-shared' 6304 else 6305 # not using gcc 6306 if test "$host_cpu" = ia64; then 6307 shared_flag='${wl}-G' 6308 else 6309 if test "$aix_use_runtimelinking" = yes; then 6310 shared_flag='${wl}-G' 6311 else 6312 shared_flag='${wl}-bM:SRE' 6313 fi 6314 fi 6315 fi 6316 6317 # It seems that -bexpall can do strange things, so it is better to 6318 # generate a list of symbols to export. 6319 always_export_symbols=yes 6320 if test "$aix_use_runtimelinking" = yes; then 6321 # Warning - without using the other runtime loading flags (-brtl), 6322 # -berok will link without error, but may produce a broken library. 6323 allow_undefined_flag='-berok' 6324 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 6325 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6326 else 6327 if test "$host_cpu" = ia64; then 6328 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6329 allow_undefined_flag="-z nodefs" 6330 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6331 else 6332 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 6333 # Warning - without using the other run time loading flags, 6334 # -berok will link without error, but may produce a broken library. 6335 allow_undefined_flag='${wl}-berok' 6336 # This is a bit strange, but is similar to how AIX traditionally builds 6337 # it's shared libraries. 6338 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 6339 fi 6340 fi 6341 ;; 6342 6343 amigaos*) 6344 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 6345 hardcode_libdir_flag_spec='-L$libdir' 6346 hardcode_minus_L=yes 6347 # see comment about different semantics on the GNU ld section 6348 ld_shlibs=no 6349 ;; 6350 6351 cygwin* | mingw* | pw32*) 6352 # When not using gcc, we currently assume that we are using 6353 # Microsoft Visual C++. 6354 # hardcode_libdir_flag_spec is actually meaningless, as there is 6355 # no search path for DLLs. 6356 hardcode_libdir_flag_spec=' ' 6357 allow_undefined_flag=unsupported 6358 # Tell ltmain to make .lib files, not .a files. 6359 libext=lib 6360 # FIXME: Setting linknames here is a bad hack. 6361 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6362 # The linker will automatically build a .lib file if we build a DLL. 6363 old_archive_from_new_cmds='true' 6364 # FIXME: Should let the user specify the lib program. 6365 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6366 fix_srcfile_path='`cygpath -w "$srcfile"`' 6367 ;; 6368 6369 darwin* | rhapsody*) 6370 case "$host_os" in 6371 rhapsody* | darwin1.[012]) 6372 allow_undefined_flag='-undefined suppress' 6373 ;; 6374 *) # Darwin 1.3 on 6375 allow_undefined_flag='-flat_namespace -undefined suppress' 6376 ;; 6377 esac 6378 # FIXME: Relying on posixy $() will cause problems for 6379 # cross-compilation, but unfortunately the echo tests do not 6380 # yet detect zsh echo's removal of \ escapes. 6381 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 6382 # We need to add '_' to the symbols in $export_symbols first 6383 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 6384 hardcode_direct=yes 6385 hardcode_shlibpath_var=no 6386 whole_archive_flag_spec='-all_load $convenience' 6387 ;; 6388 6389 freebsd1*) 6390 ld_shlibs=no 6391 ;; 6392 6393 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6394 # support. Future versions do this automatically, but an explicit c++rt0.o 6395 # does not break anything, and helps significantly (at the cost of a little 6396 # extra space). 6397 freebsd2.2*) 6398 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6399 hardcode_libdir_flag_spec='-R$libdir' 6400 hardcode_direct=yes 6401 hardcode_shlibpath_var=no 6402 ;; 6403 6404 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6405 freebsd2*) 6406 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6407 hardcode_direct=yes 6408 hardcode_minus_L=yes 6409 hardcode_shlibpath_var=no 6410 ;; 6411 6412 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6413 freebsd*) 6414 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6415 hardcode_libdir_flag_spec='-R$libdir' 6416 hardcode_direct=yes 6417 hardcode_shlibpath_var=no 6418 ;; 6419 6420 hpux9* | hpux10* | hpux11*) 6421 case $host_os in 6422 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 6423 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 6424 esac 6425 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6426 hardcode_libdir_separator=: 6427 hardcode_direct=yes 6428 hardcode_minus_L=yes # Not in the search PATH, but as the default 6429 # location of the library. 6430 export_dynamic_flag_spec='${wl}-E' 6431 ;; 6432 6433 irix5* | irix6*) 6434 if test "$GCC" = yes; then 6435 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6436 else 6437 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6438 fi 6439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6440 hardcode_libdir_separator=: 6441 link_all_deplibs=yes 6442 ;; 6443 6444 netbsd*) 6445 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6446 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6447 else 6448 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6449 fi 6450 hardcode_libdir_flag_spec='-R$libdir' 6451 hardcode_direct=yes 6452 hardcode_shlibpath_var=no 6453 ;; 6454 6455 newsos6) 6456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6457 hardcode_direct=yes 6458 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6459 hardcode_libdir_separator=: 6460 hardcode_shlibpath_var=no 6461 ;; 6462 6463 openbsd*) 6464 hardcode_direct=yes 6465 hardcode_shlibpath_var=no 6466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6467 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 6468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6469 export_dynamic_flag_spec='${wl}-E' 6470 else 6471 case "$host_os" in 6472 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6473 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6474 hardcode_libdir_flag_spec='-R$libdir' 6475 ;; 6476 *) 6477 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 6478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6479 ;; 6480 esac 6481 fi 6482 ;; 6483 6484 os2*) 6485 hardcode_libdir_flag_spec='-L$libdir' 6486 hardcode_minus_L=yes 6487 allow_undefined_flag=unsupported 6488 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 6489 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6490 ;; 6491 6492 osf3*) 6493 if test "$GCC" = yes; then 6494 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6495 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6496 else 6497 allow_undefined_flag=' -expect_unresolved \*' 6498 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6499 fi 6500 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6501 hardcode_libdir_separator=: 6502 ;; 6503 6504 osf4* | osf5*) # as osf3* with the addition of -msym flag 6505 if test "$GCC" = yes; then 6506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6507 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6509 else 6510 allow_undefined_flag=' -expect_unresolved \*' 6511 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6512 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6513 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6514 6515 #Both c and cxx compiler support -rpath directly 6516 hardcode_libdir_flag_spec='-rpath $libdir' 6517 fi 6518 hardcode_libdir_separator=: 6519 ;; 6520 6521 sco3.2v5*) 6522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6523 hardcode_shlibpath_var=no 6524 runpath_var=LD_RUN_PATH 6525 hardcode_runpath_var=yes 6526 export_dynamic_flag_spec='${wl}-Bexport' 6527 ;; 6528 6529 solaris*) 6530 # gcc --version < 3.0 without binutils cannot create self contained 6531 # shared libraries reliably, requiring libgcc.a to resolve some of 6532 # the object symbols generated in some cases. Libraries that use 6533 # assert need libgcc.a to resolve __eprintf, for example. Linking 6534 # a copy of libgcc.a into every shared library to guarantee resolving 6535 # such symbols causes other problems: According to Tim Van Holder 6536 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 6537 # (to the application) exception stack for one thing. 6538 no_undefined_flag=' -z defs' 6539 if test "$GCC" = yes; then 6540 case `$CC --version 2>/dev/null` in 6541 [12].*) 6542 cat <<EOF 1>&2 6543 6544*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 6545*** create self contained shared libraries on Solaris systems, without 6546*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 6547*** -no-undefined support, which will at least allow you to build shared 6548*** libraries. However, you may find that when you link such libraries 6549*** into an application without using GCC, you have to manually add 6550*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 6551*** upgrade to a newer version of GCC. Another option is to rebuild your 6552*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 6553 6554EOF 6555 no_undefined_flag= 6556 ;; 6557 esac 6558 fi 6559 # $CC -shared without GNU ld will not create a library from C++ 6560 # object files and a static libstdc++, better avoid it by now 6561 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6562 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6563 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6564 hardcode_libdir_flag_spec='-R$libdir' 6565 hardcode_shlibpath_var=no 6566 case $host_os in 6567 solaris2.[0-5] | solaris2.[0-5].*) ;; 6568 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6569 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6570 esac 6571 link_all_deplibs=yes 6572 ;; 6573 6574 sunos4*) 6575 if test "x$host_vendor" = xsequent; then 6576 # Use $CC to link under sequent, because it throws in some extra .o 6577 # files that make .init and .fini sections work. 6578 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6579 else 6580 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6581 fi 6582 hardcode_libdir_flag_spec='-L$libdir' 6583 hardcode_direct=yes 6584 hardcode_minus_L=yes 6585 hardcode_shlibpath_var=no 6586 ;; 6587 6588 sysv4) 6589 if test "x$host_vendor" = xsno; then 6590 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 6591 hardcode_direct=yes # is this really true??? 6592 else 6593 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6594 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6595 fi 6596 runpath_var='LD_RUN_PATH' 6597 hardcode_shlibpath_var=no 6598 ;; 6599 6600 sysv4.3*) 6601 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6602 hardcode_shlibpath_var=no 6603 export_dynamic_flag_spec='-Bexport' 6604 ;; 6605 6606 sysv5*) 6607 no_undefined_flag=' -z text' 6608 # $CC -shared without GNU ld will not create a library from C++ 6609 # object files and a static libstdc++, better avoid it by now 6610 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6611 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6612 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6613 hardcode_libdir_flag_spec= 6614 hardcode_shlibpath_var=no 6615 runpath_var='LD_RUN_PATH' 6616 ;; 6617 6618 uts4*) 6619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6620 hardcode_libdir_flag_spec='-L$libdir' 6621 hardcode_shlibpath_var=no 6622 ;; 6623 6624 dgux*) 6625 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6626 hardcode_libdir_flag_spec='-L$libdir' 6627 hardcode_shlibpath_var=no 6628 ;; 6629 6630 sysv4*MP*) 6631 if test -d /usr/nec; then 6632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6633 hardcode_shlibpath_var=no 6634 runpath_var=LD_RUN_PATH 6635 hardcode_runpath_var=yes 6636 ld_shlibs=yes 6637 fi 6638 ;; 6639 6640 sysv4.2uw2*) 6641 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6642 hardcode_direct=yes 6643 hardcode_minus_L=no 6644 hardcode_shlibpath_var=no 6645 hardcode_runpath_var=yes 6646 runpath_var=LD_RUN_PATH 6647 ;; 6648 6649 sysv5uw7* | unixware7*) 6650 no_undefined_flag='${wl}-z ${wl}text' 6651 if test "$GCC" = yes; then 6652 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6653 else 6654 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6655 fi 6656 runpath_var='LD_RUN_PATH' 6657 hardcode_shlibpath_var=no 6658 ;; 6659 6660 *) 6661 ld_shlibs=no 6662 ;; 6663 esac 6664fi 6665echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6666echo "${ECHO_T}$ld_shlibs" >&6 6667test "$ld_shlibs" = no && can_build_shared=no 6668 6669# Check hardcoding attributes. 6670echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 6671echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 6672hardcode_action= 6673if test -n "$hardcode_libdir_flag_spec" || \ 6674 test -n "$runpath_var"; then 6675 6676 # We can hardcode non-existant directories. 6677 if test "$hardcode_direct" != no && 6678 # If the only mechanism to avoid hardcoding is shlibpath_var, we 6679 # have to relink, otherwise we might link with an installed library 6680 # when we should be linking with a yet-to-be-installed one 6681 ## test "$hardcode_shlibpath_var" != no && 6682 test "$hardcode_minus_L" != no; then 6683 # Linking always hardcodes the temporary library directory. 6684 hardcode_action=relink 6685 else 6686 # We can link without hardcoding, and we can hardcode nonexisting dirs. 6687 hardcode_action=immediate 6688 fi 6689else 6690 # We cannot hardcode anything, or else we can only hardcode existing 6691 # directories. 6692 hardcode_action=unsupported 6693fi 6694echo "$as_me:$LINENO: result: $hardcode_action" >&5 6695echo "${ECHO_T}$hardcode_action" >&6 6696 6697striplib= 6698old_striplib= 6699echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 6700echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 6701if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 6702 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 6703 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 6704 echo "$as_me:$LINENO: result: yes" >&5 6705echo "${ECHO_T}yes" >&6 6706else 6707 echo "$as_me:$LINENO: result: no" >&5 6708echo "${ECHO_T}no" >&6 6709fi 6710 6711reload_cmds='$LD$reload_flag -o $output$reload_objs' 6712test -z "$deplibs_check_method" && deplibs_check_method=unknown 6713 6714# PORTME Fill in your ld.so characteristics 6715echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 6716echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 6717library_names_spec= 6718libname_spec='lib$name' 6719soname_spec= 6720postinstall_cmds= 6721postuninstall_cmds= 6722finish_cmds= 6723finish_eval= 6724shlibpath_var= 6725shlibpath_overrides_runpath=unknown 6726version_type=none 6727dynamic_linker="$host_os ld.so" 6728sys_lib_dlsearch_path_spec="/lib /usr/lib" 6729sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 6730 6731case $host_os in 6732aix3*) 6733 version_type=linux 6734 library_names_spec='${libname}${release}.so$versuffix $libname.a' 6735 shlibpath_var=LIBPATH 6736 6737 # AIX has no versioning support, so we append a major version to the name. 6738 soname_spec='${libname}${release}.so$major' 6739 ;; 6740 6741aix4* | aix5*) 6742 version_type=linux 6743 if test "$host_cpu" = ia64; then 6744 # AIX 5 supports IA64 6745 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 6746 shlibpath_var=LD_LIBRARY_PATH 6747 else 6748 # With GCC up to 2.95.x, collect2 would create an import file 6749 # for dependence libraries. The import file would start with 6750 # the line `#! .'. This would cause the generated library to 6751 # depend on `.', always an invalid library. This was fixed in 6752 # development snapshots of GCC prior to 3.0. 6753 case $host_os in 6754 aix4 | aix4.[01] | aix4.[01].*) 6755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 6756 echo ' yes ' 6757 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 6758 : 6759 else 6760 can_build_shared=no 6761 fi 6762 ;; 6763 esac 6764 # AIX (on Power*) has no versioning support, so currently we can 6765 # not hardcode correct soname into executable. Probably we can 6766 # add versioning support to collect2, so additional links can 6767 # be useful in future. 6768 if test "$aix_use_runtimelinking" = yes; then 6769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 6770 # instead of lib<name>.a to let people know that these are not 6771 # typical AIX shared libraries. 6772 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6773 else 6774 # We preserve .a as extension for shared libraries through AIX4.2 6775 # and later when we are not doing run time linking. 6776 library_names_spec='${libname}${release}.a $libname.a' 6777 soname_spec='${libname}${release}.so$major' 6778 fi 6779 shlibpath_var=LIBPATH 6780 fi 6781 ;; 6782 6783amigaos*) 6784 library_names_spec='$libname.ixlibrary $libname.a' 6785 # Create ${libname}_ixlibrary.a entries in /sys/libs. 6786 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 6787 ;; 6788 6789beos*) 6790 library_names_spec='${libname}.so' 6791 dynamic_linker="$host_os ld.so" 6792 shlibpath_var=LIBRARY_PATH 6793 ;; 6794 6795bsdi4*) 6796 version_type=linux 6797 need_version=no 6798 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6799 soname_spec='${libname}${release}.so$major' 6800 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 6801 shlibpath_var=LD_LIBRARY_PATH 6802 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 6803 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 6804 export_dynamic_flag_spec=-rdynamic 6805 # the default ld.so.conf also contains /usr/contrib/lib and 6806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 6807 # libtool to hard-code these into programs 6808 ;; 6809 6810cygwin* | mingw* | pw32*) 6811 version_type=windows 6812 need_version=no 6813 need_lib_prefix=no 6814 case $GCC,$host_os in 6815 yes,cygwin*) 6816 library_names_spec='$libname.dll.a' 6817 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6818 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 6819 dldir=$destdir/`dirname \$dlpath`~ 6820 test -d \$dldir || mkdir -p \$dldir~ 6821 $install_prog .libs/$dlname \$dldir/$dlname' 6822 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 6823 dlpath=$dir/\$dldll~ 6824 $rm \$dlpath' 6825 ;; 6826 yes,mingw*) 6827 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 6828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 6829 ;; 6830 yes,pw32*) 6831 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' 6832 ;; 6833 *) 6834 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' 6835 ;; 6836 esac 6837 dynamic_linker='Win32 ld.exe' 6838 # FIXME: first we should search . and the directory the executable is in 6839 shlibpath_var=PATH 6840 ;; 6841 6842darwin* | rhapsody*) 6843 dynamic_linker="$host_os dyld" 6844 version_type=darwin 6845 need_lib_prefix=no 6846 need_version=no 6847 # FIXME: Relying on posixy $() will cause problems for 6848 # cross-compilation, but unfortunately the echo tests do not 6849 # yet detect zsh echo's removal of \ escapes. 6850 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 6851 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 6852 shlibpath_overrides_runpath=yes 6853 shlibpath_var=DYLD_LIBRARY_PATH 6854 ;; 6855 6856freebsd1*) 6857 dynamic_linker=no 6858 ;; 6859 6860freebsd*) 6861 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 6862 version_type=freebsd-$objformat 6863 case $version_type in 6864 freebsd-elf*) 6865 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 6866 need_version=no 6867 need_lib_prefix=no 6868 ;; 6869 freebsd-*) 6870 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 6871 need_version=yes 6872 ;; 6873 esac 6874 shlibpath_var=LD_LIBRARY_PATH 6875 case $host_os in 6876 freebsd2*) 6877 shlibpath_overrides_runpath=yes 6878 ;; 6879 *) 6880 shlibpath_overrides_runpath=no 6881 hardcode_into_libs=yes 6882 ;; 6883 esac 6884 ;; 6885 6886gnu*) 6887 version_type=linux 6888 need_lib_prefix=no 6889 need_version=no 6890 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 6891 soname_spec='${libname}${release}.so$major' 6892 shlibpath_var=LD_LIBRARY_PATH 6893 hardcode_into_libs=yes 6894 ;; 6895 6896hpux9* | hpux10* | hpux11*) 6897 # Give a soname corresponding to the major version so that dld.sl refuses to 6898 # link against other versions. 6899 dynamic_linker="$host_os dld.sl" 6900 version_type=sunos 6901 need_lib_prefix=no 6902 need_version=no 6903 shlibpath_var=SHLIB_PATH 6904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 6905 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 6906 soname_spec='${libname}${release}.sl$major' 6907 # HP-UX runs *really* slowly unless shared libraries are mode 555. 6908 postinstall_cmds='chmod 555 $lib' 6909 ;; 6910 6911irix5* | irix6*) 6912 version_type=irix 6913 need_lib_prefix=no 6914 need_version=no 6915 soname_spec='${libname}${release}.so$major' 6916 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 6917 case $host_os in 6918 irix5*) 6919 libsuff= shlibsuff= 6920 ;; 6921 *) 6922 case $LD in # libtool.m4 will add one of these switches to LD 6923 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 6924 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 6925 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 6926 *) libsuff= shlibsuff= libmagic=never-match;; 6927 esac 6928 ;; 6929 esac 6930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 6931 shlibpath_overrides_runpath=no 6932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 6933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 6934 ;; 6935 6936# No shared lib support for Linux oldld, aout, or coff. 6937linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 6938 dynamic_linker=no 6939 ;; 6940 6941# This must be Linux ELF. 6942linux-gnu*) 6943 version_type=linux 6944 need_lib_prefix=no 6945 need_version=no 6946 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6947 soname_spec='${libname}${release}.so$major' 6948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 6949 shlibpath_var=LD_LIBRARY_PATH 6950 shlibpath_overrides_runpath=no 6951 # This implies no fast_install, which is unacceptable. 6952 # Some rework will be needed to allow for fast_install 6953 # before this can be enabled. 6954 hardcode_into_libs=yes 6955 6956 # We used to test for /lib/ld.so.1 and disable shared libraries on 6957 # powerpc, because MkLinux only supported shared libraries with the 6958 # GNU dynamic linker. Since this was broken with cross compilers, 6959 # most powerpc-linux boxes support dynamic linking these days and 6960 # people can always --disable-shared, the test was removed, and we 6961 # assume the GNU/Linux dynamic linker is in use. 6962 dynamic_linker='GNU/Linux ld.so' 6963 ;; 6964 6965netbsd*) 6966 version_type=sunos 6967 need_lib_prefix=no 6968 need_version=no 6969 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6970 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 6971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 6972 dynamic_linker='NetBSD (a.out) ld.so' 6973 else 6974 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 6975 soname_spec='${libname}${release}.so$major' 6976 dynamic_linker='NetBSD ld.elf_so' 6977 fi 6978 shlibpath_var=LD_LIBRARY_PATH 6979 shlibpath_overrides_runpath=yes 6980 hardcode_into_libs=yes 6981 ;; 6982 6983newsos6) 6984 version_type=linux 6985 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 6986 shlibpath_var=LD_LIBRARY_PATH 6987 shlibpath_overrides_runpath=yes 6988 ;; 6989 6990openbsd*) 6991 version_type=sunos 6992 need_lib_prefix=no 6993 need_version=no 6994 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6995 case "$host_os" in 6996 openbsd2.[89] | openbsd2.[89].*) 6997 shlibpath_overrides_runpath=no 6998 ;; 6999 *) 7000 shlibpath_overrides_runpath=yes 7001 ;; 7002 esac 7003 else 7004 shlibpath_overrides_runpath=yes 7005 fi 7006 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 7007 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7008 shlibpath_var=LD_LIBRARY_PATH 7009 ;; 7010 7011os2*) 7012 libname_spec='$name' 7013 need_lib_prefix=no 7014 library_names_spec='$libname.dll $libname.a' 7015 dynamic_linker='OS/2 ld.exe' 7016 shlibpath_var=LIBPATH 7017 ;; 7018 7019osf3* | osf4* | osf5*) 7020 version_type=osf 7021 need_version=no 7022 soname_spec='${libname}${release}.so' 7023 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 7024 shlibpath_var=LD_LIBRARY_PATH 7025 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7026 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7027 ;; 7028 7029sco3.2v5*) 7030 version_type=osf 7031 soname_spec='${libname}${release}.so$major' 7032 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7033 shlibpath_var=LD_LIBRARY_PATH 7034 ;; 7035 7036solaris*) 7037 version_type=linux 7038 need_lib_prefix=no 7039 need_version=no 7040 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7041 soname_spec='${libname}${release}.so$major' 7042 shlibpath_var=LD_LIBRARY_PATH 7043 shlibpath_overrides_runpath=yes 7044 hardcode_into_libs=yes 7045 # ldd complains unless libraries are executable 7046 postinstall_cmds='chmod +x $lib' 7047 ;; 7048 7049sunos4*) 7050 version_type=sunos 7051 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 7052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7053 shlibpath_var=LD_LIBRARY_PATH 7054 shlibpath_overrides_runpath=yes 7055 if test "$with_gnu_ld" = yes; then 7056 need_lib_prefix=no 7057 fi 7058 need_version=yes 7059 ;; 7060 7061sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7062 version_type=linux 7063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7064 soname_spec='${libname}${release}.so$major' 7065 shlibpath_var=LD_LIBRARY_PATH 7066 case $host_vendor in 7067 sni) 7068 shlibpath_overrides_runpath=no 7069 ;; 7070 motorola) 7071 need_lib_prefix=no 7072 need_version=no 7073 shlibpath_overrides_runpath=no 7074 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7075 ;; 7076 esac 7077 ;; 7078 7079uts4*) 7080 version_type=linux 7081 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7082 soname_spec='${libname}${release}.so$major' 7083 shlibpath_var=LD_LIBRARY_PATH 7084 ;; 7085 7086dgux*) 7087 version_type=linux 7088 need_lib_prefix=no 7089 need_version=no 7090 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 7091 soname_spec='${libname}${release}.so$major' 7092 shlibpath_var=LD_LIBRARY_PATH 7093 ;; 7094 7095sysv4*MP*) 7096 if test -d /usr/nec ;then 7097 version_type=linux 7098 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 7099 soname_spec='$libname.so.$major' 7100 shlibpath_var=LD_LIBRARY_PATH 7101 fi 7102 ;; 7103 7104*) 7105 dynamic_linker=no 7106 ;; 7107esac 7108echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7109echo "${ECHO_T}$dynamic_linker" >&6 7110test "$dynamic_linker" = no && can_build_shared=no 7111 7112# Report the final consequences. 7113echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 7114echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 7115echo "$as_me:$LINENO: result: $can_build_shared" >&5 7116echo "${ECHO_T}$can_build_shared" >&6 7117 7118echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 7119echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 7120test "$can_build_shared" = "no" && enable_shared=no 7121 7122# On AIX, shared libraries and static libraries use the same namespace, and 7123# are all built from PIC. 7124case "$host_os" in 7125aix3*) 7126 test "$enable_shared" = yes && enable_static=no 7127 if test -n "$RANLIB"; then 7128 archive_cmds="$archive_cmds~\$RANLIB \$lib" 7129 postinstall_cmds='$RANLIB $lib' 7130 fi 7131 ;; 7132 7133aix4*) 7134 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 7135 test "$enable_shared" = yes && enable_static=no 7136 fi 7137 ;; 7138esac 7139echo "$as_me:$LINENO: result: $enable_shared" >&5 7140echo "${ECHO_T}$enable_shared" >&6 7141 7142echo "$as_me:$LINENO: checking whether to build static libraries" >&5 7143echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 7144# Make sure either enable_shared or enable_static is yes. 7145test "$enable_shared" = yes || enable_static=yes 7146echo "$as_me:$LINENO: result: $enable_static" >&5 7147echo "${ECHO_T}$enable_static" >&6 7148 7149if test "$hardcode_action" = relink; then 7150 # Fast installation is not supported 7151 enable_fast_install=no 7152elif test "$shlibpath_overrides_runpath" = yes || 7153 test "$enable_shared" = no; then 7154 # Fast installation is not necessary 7155 enable_fast_install=needless 7156fi 7157 7158variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 7159if test "$GCC" = yes; then 7160 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 7161fi 7162 7163if test "x$enable_dlopen" != xyes; then 7164 enable_dlopen=unknown 7165 enable_dlopen_self=unknown 7166 enable_dlopen_self_static=unknown 7167else 7168 lt_cv_dlopen=no 7169 lt_cv_dlopen_libs= 7170 7171 case $host_os in 7172 beos*) 7173 lt_cv_dlopen="load_add_on" 7174 lt_cv_dlopen_libs= 7175 lt_cv_dlopen_self=yes 7176 ;; 7177 7178 cygwin* | mingw* | pw32*) 7179 lt_cv_dlopen="LoadLibrary" 7180 lt_cv_dlopen_libs= 7181 ;; 7182 7183 *) 7184 echo "$as_me:$LINENO: checking for shl_load" >&5 7185echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7186if test "${ac_cv_func_shl_load+set}" = set; then 7187 echo $ECHO_N "(cached) $ECHO_C" >&6 7188else 7189 cat >conftest.$ac_ext <<_ACEOF 7190#line $LINENO "configure" 7191#include "confdefs.h" 7192/* System header to define __stub macros and hopefully few prototypes, 7193 which can conflict with char shl_load (); below. */ 7194#include <assert.h> 7195/* Override any gcc2 internal prototype to avoid an error. */ 7196#ifdef __cplusplus 7197extern "C" 7198#endif 7199/* We use char because int might match the return type of a gcc2 7200 builtin and then its argument prototype would still apply. */ 7201char shl_load (); 7202char (*f) (); 7203 7204#ifdef F77_DUMMY_MAIN 7205# ifdef __cplusplus 7206 extern "C" 7207# endif 7208 int F77_DUMMY_MAIN() { return 1; } 7209#endif 7210int 7211main () 7212{ 7213/* The GNU C library defines this for functions which it implements 7214 to always fail with ENOSYS. Some functions are actually named 7215 something starting with __ and the normal name is an alias. */ 7216#if defined (__stub_shl_load) || defined (__stub___shl_load) 7217choke me 7218#else 7219f = shl_load; 7220#endif 7221 7222 ; 7223 return 0; 7224} 7225_ACEOF 7226rm -f conftest.$ac_objext conftest$ac_exeext 7227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7228 (eval $ac_link) 2>&5 7229 ac_status=$? 7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7231 (exit $ac_status); } && 7232 { ac_try='test -s conftest$ac_exeext' 7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7234 (eval $ac_try) 2>&5 7235 ac_status=$? 7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7237 (exit $ac_status); }; }; then 7238 ac_cv_func_shl_load=yes 7239else 7240 echo "$as_me: failed program was:" >&5 7241cat conftest.$ac_ext >&5 7242ac_cv_func_shl_load=no 7243fi 7244rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7245fi 7246echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7247echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7248if test $ac_cv_func_shl_load = yes; then 7249 lt_cv_dlopen="shl_load" 7250else 7251 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7252echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7253if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7254 echo $ECHO_N "(cached) $ECHO_C" >&6 7255else 7256 ac_check_lib_save_LIBS=$LIBS 7257LIBS="-ldld $LIBS" 7258cat >conftest.$ac_ext <<_ACEOF 7259#line $LINENO "configure" 7260#include "confdefs.h" 7261 7262/* Override any gcc2 internal prototype to avoid an error. */ 7263#ifdef __cplusplus 7264extern "C" 7265#endif 7266/* We use char because int might match the return type of a gcc2 7267 builtin and then its argument prototype would still apply. */ 7268char shl_load (); 7269#ifdef F77_DUMMY_MAIN 7270# ifdef __cplusplus 7271 extern "C" 7272# endif 7273 int F77_DUMMY_MAIN() { return 1; } 7274#endif 7275int 7276main () 7277{ 7278shl_load (); 7279 ; 7280 return 0; 7281} 7282_ACEOF 7283rm -f conftest.$ac_objext conftest$ac_exeext 7284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7285 (eval $ac_link) 2>&5 7286 ac_status=$? 7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7288 (exit $ac_status); } && 7289 { ac_try='test -s conftest$ac_exeext' 7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7291 (eval $ac_try) 2>&5 7292 ac_status=$? 7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7294 (exit $ac_status); }; }; then 7295 ac_cv_lib_dld_shl_load=yes 7296else 7297 echo "$as_me: failed program was:" >&5 7298cat conftest.$ac_ext >&5 7299ac_cv_lib_dld_shl_load=no 7300fi 7301rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7302LIBS=$ac_check_lib_save_LIBS 7303fi 7304echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7305echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7306if test $ac_cv_lib_dld_shl_load = yes; then 7307 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7308else 7309 echo "$as_me:$LINENO: checking for dlopen" >&5 7310echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7311if test "${ac_cv_func_dlopen+set}" = set; then 7312 echo $ECHO_N "(cached) $ECHO_C" >&6 7313else 7314 cat >conftest.$ac_ext <<_ACEOF 7315#line $LINENO "configure" 7316#include "confdefs.h" 7317/* System header to define __stub macros and hopefully few prototypes, 7318 which can conflict with char dlopen (); below. */ 7319#include <assert.h> 7320/* Override any gcc2 internal prototype to avoid an error. */ 7321#ifdef __cplusplus 7322extern "C" 7323#endif 7324/* We use char because int might match the return type of a gcc2 7325 builtin and then its argument prototype would still apply. */ 7326char dlopen (); 7327char (*f) (); 7328 7329#ifdef F77_DUMMY_MAIN 7330# ifdef __cplusplus 7331 extern "C" 7332# endif 7333 int F77_DUMMY_MAIN() { return 1; } 7334#endif 7335int 7336main () 7337{ 7338/* The GNU C library defines this for functions which it implements 7339 to always fail with ENOSYS. Some functions are actually named 7340 something starting with __ and the normal name is an alias. */ 7341#if defined (__stub_dlopen) || defined (__stub___dlopen) 7342choke me 7343#else 7344f = dlopen; 7345#endif 7346 7347 ; 7348 return 0; 7349} 7350_ACEOF 7351rm -f conftest.$ac_objext conftest$ac_exeext 7352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7353 (eval $ac_link) 2>&5 7354 ac_status=$? 7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7356 (exit $ac_status); } && 7357 { ac_try='test -s conftest$ac_exeext' 7358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7359 (eval $ac_try) 2>&5 7360 ac_status=$? 7361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7362 (exit $ac_status); }; }; then 7363 ac_cv_func_dlopen=yes 7364else 7365 echo "$as_me: failed program was:" >&5 7366cat conftest.$ac_ext >&5 7367ac_cv_func_dlopen=no 7368fi 7369rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7370fi 7371echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 7372echo "${ECHO_T}$ac_cv_func_dlopen" >&6 7373if test $ac_cv_func_dlopen = yes; then 7374 lt_cv_dlopen="dlopen" 7375else 7376 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7377echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7378if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7379 echo $ECHO_N "(cached) $ECHO_C" >&6 7380else 7381 ac_check_lib_save_LIBS=$LIBS 7382LIBS="-ldl $LIBS" 7383cat >conftest.$ac_ext <<_ACEOF 7384#line $LINENO "configure" 7385#include "confdefs.h" 7386 7387/* Override any gcc2 internal prototype to avoid an error. */ 7388#ifdef __cplusplus 7389extern "C" 7390#endif 7391/* We use char because int might match the return type of a gcc2 7392 builtin and then its argument prototype would still apply. */ 7393char dlopen (); 7394#ifdef F77_DUMMY_MAIN 7395# ifdef __cplusplus 7396 extern "C" 7397# endif 7398 int F77_DUMMY_MAIN() { return 1; } 7399#endif 7400int 7401main () 7402{ 7403dlopen (); 7404 ; 7405 return 0; 7406} 7407_ACEOF 7408rm -f conftest.$ac_objext conftest$ac_exeext 7409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7410 (eval $ac_link) 2>&5 7411 ac_status=$? 7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7413 (exit $ac_status); } && 7414 { ac_try='test -s conftest$ac_exeext' 7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7416 (eval $ac_try) 2>&5 7417 ac_status=$? 7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7419 (exit $ac_status); }; }; then 7420 ac_cv_lib_dl_dlopen=yes 7421else 7422 echo "$as_me: failed program was:" >&5 7423cat conftest.$ac_ext >&5 7424ac_cv_lib_dl_dlopen=no 7425fi 7426rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7427LIBS=$ac_check_lib_save_LIBS 7428fi 7429echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7430echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7431if test $ac_cv_lib_dl_dlopen = yes; then 7432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7433else 7434 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 7435echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 7436if test "${ac_cv_lib_svld_dlopen+set}" = set; then 7437 echo $ECHO_N "(cached) $ECHO_C" >&6 7438else 7439 ac_check_lib_save_LIBS=$LIBS 7440LIBS="-lsvld $LIBS" 7441cat >conftest.$ac_ext <<_ACEOF 7442#line $LINENO "configure" 7443#include "confdefs.h" 7444 7445/* Override any gcc2 internal prototype to avoid an error. */ 7446#ifdef __cplusplus 7447extern "C" 7448#endif 7449/* We use char because int might match the return type of a gcc2 7450 builtin and then its argument prototype would still apply. */ 7451char dlopen (); 7452#ifdef F77_DUMMY_MAIN 7453# ifdef __cplusplus 7454 extern "C" 7455# endif 7456 int F77_DUMMY_MAIN() { return 1; } 7457#endif 7458int 7459main () 7460{ 7461dlopen (); 7462 ; 7463 return 0; 7464} 7465_ACEOF 7466rm -f conftest.$ac_objext conftest$ac_exeext 7467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7468 (eval $ac_link) 2>&5 7469 ac_status=$? 7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7471 (exit $ac_status); } && 7472 { ac_try='test -s conftest$ac_exeext' 7473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7474 (eval $ac_try) 2>&5 7475 ac_status=$? 7476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7477 (exit $ac_status); }; }; then 7478 ac_cv_lib_svld_dlopen=yes 7479else 7480 echo "$as_me: failed program was:" >&5 7481cat conftest.$ac_ext >&5 7482ac_cv_lib_svld_dlopen=no 7483fi 7484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7485LIBS=$ac_check_lib_save_LIBS 7486fi 7487echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 7488echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 7489if test $ac_cv_lib_svld_dlopen = yes; then 7490 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 7491else 7492 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 7493echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 7494if test "${ac_cv_lib_dld_dld_link+set}" = set; then 7495 echo $ECHO_N "(cached) $ECHO_C" >&6 7496else 7497 ac_check_lib_save_LIBS=$LIBS 7498LIBS="-ldld $LIBS" 7499cat >conftest.$ac_ext <<_ACEOF 7500#line $LINENO "configure" 7501#include "confdefs.h" 7502 7503/* Override any gcc2 internal prototype to avoid an error. */ 7504#ifdef __cplusplus 7505extern "C" 7506#endif 7507/* We use char because int might match the return type of a gcc2 7508 builtin and then its argument prototype would still apply. */ 7509char dld_link (); 7510#ifdef F77_DUMMY_MAIN 7511# ifdef __cplusplus 7512 extern "C" 7513# endif 7514 int F77_DUMMY_MAIN() { return 1; } 7515#endif 7516int 7517main () 7518{ 7519dld_link (); 7520 ; 7521 return 0; 7522} 7523_ACEOF 7524rm -f conftest.$ac_objext conftest$ac_exeext 7525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7526 (eval $ac_link) 2>&5 7527 ac_status=$? 7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7529 (exit $ac_status); } && 7530 { ac_try='test -s conftest$ac_exeext' 7531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7532 (eval $ac_try) 2>&5 7533 ac_status=$? 7534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7535 (exit $ac_status); }; }; then 7536 ac_cv_lib_dld_dld_link=yes 7537else 7538 echo "$as_me: failed program was:" >&5 7539cat conftest.$ac_ext >&5 7540ac_cv_lib_dld_dld_link=no 7541fi 7542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 7543LIBS=$ac_check_lib_save_LIBS 7544fi 7545echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 7546echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 7547if test $ac_cv_lib_dld_dld_link = yes; then 7548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 7549fi 7550 7551 7552fi 7553 7554 7555fi 7556 7557 7558fi 7559 7560 7561fi 7562 7563 7564fi 7565 7566 ;; 7567 esac 7568 7569 if test "x$lt_cv_dlopen" != xno; then 7570 enable_dlopen=yes 7571 else 7572 enable_dlopen=no 7573 fi 7574 7575 case $lt_cv_dlopen in 7576 dlopen) 7577 save_CPPFLAGS="$CPPFLAGS" 7578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 7579 7580 save_LDFLAGS="$LDFLAGS" 7581 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 7582 7583 save_LIBS="$LIBS" 7584 LIBS="$lt_cv_dlopen_libs $LIBS" 7585 7586 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 7587echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 7588if test "${lt_cv_dlopen_self+set}" = set; then 7589 echo $ECHO_N "(cached) $ECHO_C" >&6 7590else 7591 if test "$cross_compiling" = yes; then : 7592 lt_cv_dlopen_self=cross 7593else 7594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7595 lt_status=$lt_dlunknown 7596 cat > conftest.$ac_ext <<EOF
|
7568#line 7568 "configure"
| 7597#line 7597 "configure"
|
7569#include "confdefs.h" 7570 7571#if HAVE_DLFCN_H 7572#include <dlfcn.h> 7573#endif 7574 7575#include <stdio.h> 7576 7577#ifdef RTLD_GLOBAL 7578# define LT_DLGLOBAL RTLD_GLOBAL 7579#else 7580# ifdef DL_GLOBAL 7581# define LT_DLGLOBAL DL_GLOBAL 7582# else 7583# define LT_DLGLOBAL 0 7584# endif 7585#endif 7586 7587/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7588 find out it does not work in some platform. */ 7589#ifndef LT_DLLAZY_OR_NOW 7590# ifdef RTLD_LAZY 7591# define LT_DLLAZY_OR_NOW RTLD_LAZY 7592# else 7593# ifdef DL_LAZY 7594# define LT_DLLAZY_OR_NOW DL_LAZY 7595# else 7596# ifdef RTLD_NOW 7597# define LT_DLLAZY_OR_NOW RTLD_NOW 7598# else 7599# ifdef DL_NOW 7600# define LT_DLLAZY_OR_NOW DL_NOW 7601# else 7602# define LT_DLLAZY_OR_NOW 0 7603# endif 7604# endif 7605# endif 7606# endif 7607#endif 7608 7609#ifdef __cplusplus 7610extern "C" void exit (int); 7611#endif 7612 7613void fnord() { int i=42;} 7614int main () 7615{ 7616 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7617 int status = $lt_dlunknown; 7618 7619 if (self) 7620 { 7621 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7622 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7623 /* dlclose (self); */ 7624 } 7625 7626 exit (status); 7627} 7628EOF 7629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7630 (eval $ac_link) 2>&5 7631 ac_status=$? 7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7633 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 7634 (./conftest; exit; ) 2>/dev/null 7635 lt_status=$? 7636 case x$lt_status in 7637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7639 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 7640 esac 7641 else : 7642 # compilation failed 7643 lt_cv_dlopen_self=no 7644 fi 7645fi 7646rm -fr conftest* 7647 7648 7649fi 7650echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 7651echo "${ECHO_T}$lt_cv_dlopen_self" >&6 7652 7653 if test "x$lt_cv_dlopen_self" = xyes; then 7654 LDFLAGS="$LDFLAGS $link_static_flag" 7655 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 7656echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 7657if test "${lt_cv_dlopen_self_static+set}" = set; then 7658 echo $ECHO_N "(cached) $ECHO_C" >&6 7659else 7660 if test "$cross_compiling" = yes; then : 7661 lt_cv_dlopen_self_static=cross 7662else 7663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7664 lt_status=$lt_dlunknown 7665 cat > conftest.$ac_ext <<EOF
| 7598#include "confdefs.h" 7599 7600#if HAVE_DLFCN_H 7601#include <dlfcn.h> 7602#endif 7603 7604#include <stdio.h> 7605 7606#ifdef RTLD_GLOBAL 7607# define LT_DLGLOBAL RTLD_GLOBAL 7608#else 7609# ifdef DL_GLOBAL 7610# define LT_DLGLOBAL DL_GLOBAL 7611# else 7612# define LT_DLGLOBAL 0 7613# endif 7614#endif 7615 7616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7617 find out it does not work in some platform. */ 7618#ifndef LT_DLLAZY_OR_NOW 7619# ifdef RTLD_LAZY 7620# define LT_DLLAZY_OR_NOW RTLD_LAZY 7621# else 7622# ifdef DL_LAZY 7623# define LT_DLLAZY_OR_NOW DL_LAZY 7624# else 7625# ifdef RTLD_NOW 7626# define LT_DLLAZY_OR_NOW RTLD_NOW 7627# else 7628# ifdef DL_NOW 7629# define LT_DLLAZY_OR_NOW DL_NOW 7630# else 7631# define LT_DLLAZY_OR_NOW 0 7632# endif 7633# endif 7634# endif 7635# endif 7636#endif 7637 7638#ifdef __cplusplus 7639extern "C" void exit (int); 7640#endif 7641 7642void fnord() { int i=42;} 7643int main () 7644{ 7645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7646 int status = $lt_dlunknown; 7647 7648 if (self) 7649 { 7650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7652 /* dlclose (self); */ 7653 } 7654 7655 exit (status); 7656} 7657EOF 7658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7659 (eval $ac_link) 2>&5 7660 ac_status=$? 7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 7663 (./conftest; exit; ) 2>/dev/null 7664 lt_status=$? 7665 case x$lt_status in 7666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 7667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 7668 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 7669 esac 7670 else : 7671 # compilation failed 7672 lt_cv_dlopen_self=no 7673 fi 7674fi 7675rm -fr conftest* 7676 7677 7678fi 7679echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 7680echo "${ECHO_T}$lt_cv_dlopen_self" >&6 7681 7682 if test "x$lt_cv_dlopen_self" = xyes; then 7683 LDFLAGS="$LDFLAGS $link_static_flag" 7684 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 7685echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 7686if test "${lt_cv_dlopen_self_static+set}" = set; then 7687 echo $ECHO_N "(cached) $ECHO_C" >&6 7688else 7689 if test "$cross_compiling" = yes; then : 7690 lt_cv_dlopen_self_static=cross 7691else 7692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 7693 lt_status=$lt_dlunknown 7694 cat > conftest.$ac_ext <<EOF
|
7666#line 7666 "configure"
| 7695#line 7695 "configure"
|
7667#include "confdefs.h" 7668 7669#if HAVE_DLFCN_H 7670#include <dlfcn.h> 7671#endif 7672 7673#include <stdio.h> 7674 7675#ifdef RTLD_GLOBAL 7676# define LT_DLGLOBAL RTLD_GLOBAL 7677#else 7678# ifdef DL_GLOBAL 7679# define LT_DLGLOBAL DL_GLOBAL 7680# else 7681# define LT_DLGLOBAL 0 7682# endif 7683#endif 7684 7685/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7686 find out it does not work in some platform. */ 7687#ifndef LT_DLLAZY_OR_NOW 7688# ifdef RTLD_LAZY 7689# define LT_DLLAZY_OR_NOW RTLD_LAZY 7690# else 7691# ifdef DL_LAZY 7692# define LT_DLLAZY_OR_NOW DL_LAZY 7693# else 7694# ifdef RTLD_NOW 7695# define LT_DLLAZY_OR_NOW RTLD_NOW 7696# else 7697# ifdef DL_NOW 7698# define LT_DLLAZY_OR_NOW DL_NOW 7699# else 7700# define LT_DLLAZY_OR_NOW 0 7701# endif 7702# endif 7703# endif 7704# endif 7705#endif 7706 7707#ifdef __cplusplus 7708extern "C" void exit (int); 7709#endif 7710 7711void fnord() { int i=42;} 7712int main () 7713{ 7714 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7715 int status = $lt_dlunknown; 7716 7717 if (self) 7718 { 7719 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7720 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7721 /* dlclose (self); */ 7722 } 7723 7724 exit (status); 7725} 7726EOF 7727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7728 (eval $ac_link) 2>&5 7729 ac_status=$? 7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 7732 (./conftest; exit; ) 2>/dev/null 7733 lt_status=$? 7734 case x$lt_status in 7735 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7736 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7737 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 7738 esac 7739 else : 7740 # compilation failed 7741 lt_cv_dlopen_self_static=no 7742 fi 7743fi 7744rm -fr conftest* 7745 7746 7747fi 7748echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 7749echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 7750 fi 7751 7752 CPPFLAGS="$save_CPPFLAGS" 7753 LDFLAGS="$save_LDFLAGS" 7754 LIBS="$save_LIBS" 7755 ;; 7756 esac 7757 7758 case $lt_cv_dlopen_self in 7759 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 7760 *) enable_dlopen_self=unknown ;; 7761 esac 7762 7763 case $lt_cv_dlopen_self_static in 7764 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 7765 *) enable_dlopen_self_static=unknown ;; 7766 esac 7767fi 7768 7769 7770if test "$enable_shared" = yes && test "$GCC" = yes; then 7771 case $archive_cmds in 7772 *'~'*) 7773 # FIXME: we may have to deal with multi-command sequences. 7774 ;; 7775 '$CC '*) 7776 # Test whether the compiler implicitly links with -lc since on some 7777 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7778 # to ld, don't add -lc before -lgcc. 7779 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7780echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7781 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 7782 echo $ECHO_N "(cached) $ECHO_C" >&6 7783else 7784 $rm conftest* 7785 echo 'static int dummy;' > conftest.$ac_ext 7786 7787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7788 (eval $ac_compile) 2>&5 7789 ac_status=$? 7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7791 (exit $ac_status); }; then 7792 soname=conftest 7793 lib=conftest 7794 libobjs=conftest.$ac_objext 7795 deplibs= 7796 wl=$lt_cv_prog_cc_wl 7797 compiler_flags=-v 7798 linker_flags=-v 7799 verstring= 7800 output_objdir=. 7801 libname=conftest 7802 save_allow_undefined_flag=$allow_undefined_flag 7803 allow_undefined_flag= 7804 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7805 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7806 ac_status=$? 7807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7808 (exit $ac_status); } 7809 then 7810 lt_cv_archive_cmds_need_lc=no 7811 else 7812 lt_cv_archive_cmds_need_lc=yes 7813 fi 7814 allow_undefined_flag=$save_allow_undefined_flag 7815 else 7816 cat conftest.err 1>&5 7817 fi 7818fi 7819 7820 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 7821echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 7822 ;; 7823 esac 7824fi 7825need_lc=${lt_cv_archive_cmds_need_lc-yes} 7826 7827# The second clause should only fire when bootstrapping the 7828# libtool distribution, otherwise you forgot to ship ltmain.sh 7829# with your package, and you will get complaints that there are 7830# no rules to generate ltmain.sh. 7831if test -f "$ltmain"; then 7832 : 7833else 7834 # If there is no Makefile yet, we rely on a make rule to execute 7835 # `config.status --recheck' to rerun these tests and create the 7836 # libtool script then. 7837 test -f Makefile && make "$ltmain" 7838fi 7839 7840if test -f "$ltmain"; then 7841 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 7842 $rm -f "${ofile}T" 7843 7844 echo creating $ofile 7845 7846 # Now quote all the things that may contain metacharacters while being 7847 # careful not to overquote the AC_SUBSTed values. We take copies of the 7848 # variables and quote the copies for generation of the libtool script. 7849 for var in echo old_CC old_CFLAGS \ 7850 AR AR_FLAGS CC LD LN_S NM SHELL \ 7851 reload_flag reload_cmds wl \ 7852 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 7853 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 7854 library_names_spec soname_spec \ 7855 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 7856 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 7857 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 7858 old_striplib striplib file_magic_cmd export_symbols_cmds \ 7859 deplibs_check_method allow_undefined_flag no_undefined_flag \ 7860 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 7861 global_symbol_to_c_name_address \ 7862 hardcode_libdir_flag_spec hardcode_libdir_separator \ 7863 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 7864 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 7865 7866 case $var in 7867 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 7868 old_postinstall_cmds | old_postuninstall_cmds | \ 7869 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 7870 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 7871 postinstall_cmds | postuninstall_cmds | \ 7872 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 7873 # Double-quote double-evaled strings. 7874 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 7875 ;; 7876 *) 7877 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 7878 ;; 7879 esac 7880 done 7881 7882 cat <<__EOF__ > "${ofile}T" 7883#! $SHELL 7884 7885# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7886# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 7887# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7888# 7889# Copyright (C) 1996-2000 Free Software Foundation, Inc. 7890# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7891# 7892# This program is free software; you can redistribute it and/or modify 7893# it under the terms of the GNU General Public License as published by 7894# the Free Software Foundation; either version 2 of the License, or 7895# (at your option) any later version. 7896# 7897# This program is distributed in the hope that it will be useful, but 7898# WITHOUT ANY WARRANTY; without even the implied warranty of 7899# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7900# General Public License for more details. 7901# 7902# You should have received a copy of the GNU General Public License 7903# along with this program; if not, write to the Free Software 7904# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7905# 7906# As a special exception to the GNU General Public License, if you 7907# distribute this file as part of a program that contains a 7908# configuration script generated by Autoconf, you may include it under 7909# the same distribution terms that you use for the rest of that program. 7910 7911# Sed that helps us avoid accidentally triggering echo(1) options like -n. 7912Xsed="sed -e s/^X//" 7913 7914# The HP-UX ksh and POSIX shell print the target directory to stdout 7915# if CDPATH is set. 7916if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7917 7918# ### BEGIN LIBTOOL CONFIG 7919 7920# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7921 7922# Shell to use when invoking shell scripts. 7923SHELL=$lt_SHELL 7924 7925# Whether or not to build shared libraries. 7926build_libtool_libs=$enable_shared 7927 7928# Whether or not to build static libraries. 7929build_old_libs=$enable_static 7930 7931# Whether or not to add -lc for building shared libraries. 7932build_libtool_need_lc=$need_lc 7933 7934# Whether or not to optimize for fast installation. 7935fast_install=$enable_fast_install 7936 7937# The host system. 7938host_alias=$host_alias 7939host=$host 7940 7941# An echo program that does not interpret backslashes. 7942echo=$lt_echo 7943 7944# The archiver. 7945AR=$lt_AR 7946AR_FLAGS=$lt_AR_FLAGS 7947 7948# The default C compiler. 7949CC=$lt_CC 7950 7951# Is the compiler the GNU C compiler? 7952with_gcc=$GCC 7953 7954# The linker used to build libraries. 7955LD=$lt_LD 7956 7957# Whether we need hard or soft links. 7958LN_S=$lt_LN_S 7959 7960# A BSD-compatible nm program. 7961NM=$lt_NM 7962 7963# A symbol stripping program 7964STRIP=$STRIP 7965 7966# Used to examine libraries when file_magic_cmd begins "file" 7967MAGIC_CMD=$MAGIC_CMD 7968 7969# Used on cygwin: DLL creation program. 7970DLLTOOL="$DLLTOOL" 7971 7972# Used on cygwin: object dumper. 7973OBJDUMP="$OBJDUMP" 7974 7975# Used on cygwin: assembler. 7976AS="$AS" 7977 7978# The name of the directory that contains temporary libtool files. 7979objdir=$objdir 7980 7981# How to create reloadable object files. 7982reload_flag=$lt_reload_flag 7983reload_cmds=$lt_reload_cmds 7984 7985# How to pass a linker flag through the compiler. 7986wl=$lt_wl 7987 7988# Object file suffix (normally "o"). 7989objext="$ac_objext" 7990 7991# Old archive suffix (normally "a"). 7992libext="$libext" 7993 7994# Executable file suffix (normally ""). 7995exeext="$exeext" 7996 7997# Additional compiler flags for building library objects. 7998pic_flag=$lt_pic_flag 7999pic_mode=$pic_mode 8000 8001# Does compiler simultaneously support -c and -o options? 8002compiler_c_o=$lt_compiler_c_o 8003 8004# Can we write directly to a .lo ? 8005compiler_o_lo=$lt_compiler_o_lo 8006 8007# Must we lock files when doing compilation ? 8008need_locks=$lt_need_locks 8009 8010# Do we need the lib prefix for modules? 8011need_lib_prefix=$need_lib_prefix 8012 8013# Do we need a version for libraries? 8014need_version=$need_version 8015 8016# Whether dlopen is supported. 8017dlopen_support=$enable_dlopen 8018 8019# Whether dlopen of programs is supported. 8020dlopen_self=$enable_dlopen_self 8021 8022# Whether dlopen of statically linked programs is supported. 8023dlopen_self_static=$enable_dlopen_self_static 8024 8025# Compiler flag to prevent dynamic linking. 8026link_static_flag=$lt_link_static_flag 8027 8028# Compiler flag to turn off builtin functions. 8029no_builtin_flag=$lt_no_builtin_flag 8030 8031# Compiler flag to allow reflexive dlopens. 8032export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8033 8034# Compiler flag to generate shared objects directly from archives. 8035whole_archive_flag_spec=$lt_whole_archive_flag_spec 8036 8037# Compiler flag to generate thread-safe objects. 8038thread_safe_flag_spec=$lt_thread_safe_flag_spec 8039 8040# Library versioning type. 8041version_type=$version_type 8042 8043# Format of library name prefix. 8044libname_spec=$lt_libname_spec 8045 8046# List of archive names. First name is the real one, the rest are links. 8047# The last name is the one that the linker finds with -lNAME. 8048library_names_spec=$lt_library_names_spec 8049 8050# The coded name of the library, if different from the real name. 8051soname_spec=$lt_soname_spec 8052 8053# Commands used to build and install an old-style archive. 8054RANLIB=$lt_RANLIB 8055old_archive_cmds=$lt_old_archive_cmds 8056old_postinstall_cmds=$lt_old_postinstall_cmds 8057old_postuninstall_cmds=$lt_old_postuninstall_cmds 8058 8059# Create an old-style archive from a shared archive. 8060old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8061 8062# Create a temporary old-style archive to link instead of a shared archive. 8063old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8064 8065# Commands used to build and install a shared archive. 8066archive_cmds=$lt_archive_cmds 8067archive_expsym_cmds=$lt_archive_expsym_cmds 8068postinstall_cmds=$lt_postinstall_cmds 8069postuninstall_cmds=$lt_postuninstall_cmds 8070 8071# Commands to strip libraries. 8072old_striplib=$lt_old_striplib 8073striplib=$lt_striplib 8074 8075# Method to check whether dependent libraries are shared objects. 8076deplibs_check_method=$lt_deplibs_check_method 8077 8078# Command to use when deplibs_check_method == file_magic. 8079file_magic_cmd=$lt_file_magic_cmd 8080 8081# Flag that allows shared libraries with undefined symbols to be built. 8082allow_undefined_flag=$lt_allow_undefined_flag 8083 8084# Flag that forces no undefined symbols. 8085no_undefined_flag=$lt_no_undefined_flag 8086 8087# Commands used to finish a libtool library installation in a directory. 8088finish_cmds=$lt_finish_cmds 8089 8090# Same as above, but a single script fragment to be evaled but not shown. 8091finish_eval=$lt_finish_eval 8092 8093# Take the output of nm and produce a listing of raw symbols and C names. 8094global_symbol_pipe=$lt_global_symbol_pipe 8095 8096# Transform the output of nm in a proper C declaration 8097global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 8098 8099# Transform the output of nm in a C name address pair 8100global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 8101 8102# This is the shared library runtime path variable. 8103runpath_var=$runpath_var 8104 8105# This is the shared library path variable. 8106shlibpath_var=$shlibpath_var 8107 8108# Is shlibpath searched before the hard-coded library search path? 8109shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8110 8111# How to hardcode a shared library path into an executable. 8112hardcode_action=$hardcode_action 8113 8114# Whether we should hardcode library paths into libraries. 8115hardcode_into_libs=$hardcode_into_libs 8116 8117# Flag to hardcode \$libdir into a binary during linking. 8118# This must work even if \$libdir does not exist. 8119hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8120 8121# Whether we need a single -rpath flag with a separated argument. 8122hardcode_libdir_separator=$lt_hardcode_libdir_separator 8123 8124# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 8125# resulting binary. 8126hardcode_direct=$hardcode_direct 8127 8128# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8129# resulting binary. 8130hardcode_minus_L=$hardcode_minus_L 8131 8132# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8133# the resulting binary. 8134hardcode_shlibpath_var=$hardcode_shlibpath_var 8135 8136# Variables whose values should be saved in libtool wrapper scripts and 8137# restored at relink time. 8138variables_saved_for_relink="$variables_saved_for_relink" 8139 8140# Whether libtool must link a program against all its dependency libraries. 8141link_all_deplibs=$link_all_deplibs 8142 8143# Compile-time system search path for libraries 8144sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8145 8146# Run-time system search path for libraries 8147sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8148 8149# Fix the shell variable \$srcfile for the compiler. 8150fix_srcfile_path="$fix_srcfile_path" 8151 8152# Set to yes if exported symbols are required. 8153always_export_symbols=$always_export_symbols 8154 8155# The commands to list exported symbols. 8156export_symbols_cmds=$lt_export_symbols_cmds 8157 8158# The commands to extract the exported symbol list from a shared archive. 8159extract_expsyms_cmds=$lt_extract_expsyms_cmds 8160 8161# Symbols that should not be listed in the preloaded symbols. 8162exclude_expsyms=$lt_exclude_expsyms 8163 8164# Symbols that must always be exported. 8165include_expsyms=$lt_include_expsyms 8166 8167# ### END LIBTOOL CONFIG 8168 8169__EOF__ 8170 8171 case $host_os in 8172 aix3*) 8173 cat <<\EOF >> "${ofile}T" 8174 8175# AIX sometimes has problems with the GCC collect2 program. For some 8176# reason, if we set the COLLECT_NAMES environment variable, the problems 8177# vanish in a puff of smoke. 8178if test "X${COLLECT_NAMES+set}" != Xset; then 8179 COLLECT_NAMES= 8180 export COLLECT_NAMES 8181fi 8182EOF 8183 ;; 8184 esac 8185 8186 case $host_os in 8187 cygwin* | mingw* | pw32* | os2*) 8188 cat <<'EOF' >> "${ofile}T" 8189 # This is a source program that is used to create dlls on Windows 8190 # Don't remove nor modify the starting and closing comments 8191# /* ltdll.c starts here */ 8192# #define WIN32_LEAN_AND_MEAN 8193# #include <windows.h> 8194# #undef WIN32_LEAN_AND_MEAN 8195# #include <stdio.h> 8196# 8197# #ifndef __CYGWIN__ 8198# # ifdef __CYGWIN32__ 8199# # define __CYGWIN__ __CYGWIN32__ 8200# # endif 8201# #endif 8202# 8203# #ifdef __cplusplus 8204# extern "C" { 8205# #endif 8206# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 8207# #ifdef __cplusplus 8208# } 8209# #endif 8210# 8211# #ifdef __CYGWIN__ 8212# #include <cygwin/cygwin_dll.h> 8213# DECLARE_CYGWIN_DLL( DllMain ); 8214# #endif 8215# HINSTANCE __hDllInstance_base; 8216# 8217# BOOL APIENTRY 8218# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 8219# { 8220# __hDllInstance_base = hInst; 8221# return TRUE; 8222# } 8223# /* ltdll.c ends here */ 8224 # This is a source program that is used to create import libraries 8225 # on Windows for dlls which lack them. Don't remove nor modify the 8226 # starting and closing comments 8227# /* impgen.c starts here */ 8228# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 8229# 8230# This file is part of GNU libtool. 8231# 8232# This program is free software; you can redistribute it and/or modify 8233# it under the terms of the GNU General Public License as published by 8234# the Free Software Foundation; either version 2 of the License, or 8235# (at your option) any later version. 8236# 8237# This program is distributed in the hope that it will be useful, 8238# but WITHOUT ANY WARRANTY; without even the implied warranty of 8239# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 8240# GNU General Public License for more details. 8241# 8242# You should have received a copy of the GNU General Public License 8243# along with this program; if not, write to the Free Software 8244# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8245# */ 8246# 8247# #include <stdio.h> /* for printf() */ 8248# #include <unistd.h> /* for open(), lseek(), read() */ 8249# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 8250# #include <string.h> /* for strdup() */ 8251# 8252# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 8253# #ifndef O_BINARY 8254# #define O_BINARY 0 8255# #endif 8256# 8257# static unsigned int 8258# pe_get16 (fd, offset) 8259# int fd; 8260# int offset; 8261# { 8262# unsigned char b[2]; 8263# lseek (fd, offset, SEEK_SET); 8264# read (fd, b, 2); 8265# return b[0] + (b[1]<<8); 8266# } 8267# 8268# static unsigned int 8269# pe_get32 (fd, offset) 8270# int fd; 8271# int offset; 8272# { 8273# unsigned char b[4]; 8274# lseek (fd, offset, SEEK_SET); 8275# read (fd, b, 4); 8276# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8277# } 8278# 8279# static unsigned int 8280# pe_as32 (ptr) 8281# void *ptr; 8282# { 8283# unsigned char *b = ptr; 8284# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8285# } 8286# 8287# int 8288# main (argc, argv) 8289# int argc; 8290# char *argv[]; 8291# { 8292# int dll; 8293# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 8294# unsigned long export_rva, export_size, nsections, secptr, expptr; 8295# unsigned long name_rvas, nexp; 8296# unsigned char *expdata, *erva; 8297# char *filename, *dll_name; 8298# 8299# filename = argv[1]; 8300# 8301# dll = open(filename, O_RDONLY|O_BINARY); 8302# if (dll < 1) 8303# return 1; 8304# 8305# dll_name = filename; 8306# 8307# for (i=0; filename[i]; i++) 8308# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 8309# dll_name = filename + i +1; 8310# 8311# pe_header_offset = pe_get32 (dll, 0x3c); 8312# opthdr_ofs = pe_header_offset + 4 + 20; 8313# num_entries = pe_get32 (dll, opthdr_ofs + 92); 8314# 8315# if (num_entries < 1) /* no exports */ 8316# return 1; 8317# 8318# export_rva = pe_get32 (dll, opthdr_ofs + 96); 8319# export_size = pe_get32 (dll, opthdr_ofs + 100); 8320# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 8321# secptr = (pe_header_offset + 4 + 20 + 8322# pe_get16 (dll, pe_header_offset + 4 + 16)); 8323# 8324# expptr = 0; 8325# for (i = 0; i < nsections; i++) 8326# { 8327# char sname[8]; 8328# unsigned long secptr1 = secptr + 40 * i; 8329# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 8330# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 8331# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 8332# lseek(dll, secptr1, SEEK_SET); 8333# read(dll, sname, 8); 8334# if (vaddr <= export_rva && vaddr+vsize > export_rva) 8335# { 8336# expptr = fptr + (export_rva - vaddr); 8337# if (export_rva + export_size > vaddr + vsize) 8338# export_size = vsize - (export_rva - vaddr); 8339# break; 8340# } 8341# } 8342# 8343# expdata = (unsigned char*)malloc(export_size); 8344# lseek (dll, expptr, SEEK_SET); 8345# read (dll, expdata, export_size); 8346# erva = expdata - export_rva; 8347# 8348# nexp = pe_as32 (expdata+24); 8349# name_rvas = pe_as32 (expdata+32); 8350# 8351# printf ("EXPORTS\n"); 8352# for (i = 0; i<nexp; i++) 8353# { 8354# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 8355# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 8356# } 8357# 8358# return 0; 8359# } 8360# /* impgen.c ends here */ 8361 8362EOF 8363 ;; 8364 esac 8365 8366 # We use sed instead of cat because bash on DJGPP gets confused if 8367 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8368 # text mode, it properly converts lines to CR/LF. This bash problem 8369 # is reportedly fixed, but why not run on old versions too? 8370 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 8371 8372 mv -f "${ofile}T" "$ofile" || \ 8373 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 8374 chmod +x "$ofile" 8375fi 8376 8377 8378 8379 8380 8381# This can be used to rebuild libtool when needed 8382LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 8383 8384# Always use our own libtool. 8385LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8386 8387# Prevent multiple expansion 8388 8389 8390 8391 8392WFLAGS_NOUNUSED="" 8393WFLAGS_NOIMPLICITINT="" 8394if test -z "$WFLAGS" -a "$GCC" = "yes"; then 8395 # -Wno-implicit-int for broken X11 headers 8396 # leave these out for now: 8397 # -Wcast-align doesn't work well on alpha osf/1 8398 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 8399 # -Wmissing-declarations -Wnested-externs 8400 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 8401 WFLAGS_NOUNUSED="-Wno-unused" 8402 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 8403fi 8404 8405 8406 8407 8408# Check whether --with-openldap or --without-openldap was given. 8409if test "${with_openldap+set}" = set; then 8410 withval="$with_openldap" 8411 8412fi; 8413 8414# Check whether --with-openldap-lib or --without-openldap-lib was given. 8415if test "${with_openldap_lib+set}" = set; then 8416 withval="$with_openldap_lib" 8417 if test "$withval" = "yes" -o "$withval" = "no"; then 8418 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5 8419echo "$as_me: error: No argument for --with-openldap-lib" >&2;} 8420 { (exit 1); exit 1; }; } 8421elif test "X$with_openldap" = "X"; then 8422 with_openldap=yes 8423fi 8424fi; 8425 8426# Check whether --with-openldap-include or --without-openldap-include was given. 8427if test "${with_openldap_include+set}" = set; then 8428 withval="$with_openldap_include" 8429 if test "$withval" = "yes" -o "$withval" = "no"; then 8430 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5 8431echo "$as_me: error: No argument for --with-openldap-include" >&2;} 8432 { (exit 1); exit 1; }; } 8433elif test "X$with_openldap" = "X"; then 8434 with_openldap=yes 8435fi 8436fi; 8437 8438# Check whether --with-openldap-config or --without-openldap-config was given. 8439if test "${with_openldap_config+set}" = set; then 8440 withval="$with_openldap_config" 8441 8442fi; 8443 8444 8445 8446echo "$as_me:$LINENO: checking for openldap" >&5 8447echo $ECHO_N "checking for openldap... $ECHO_C" >&6 8448 8449case "$with_openldap" in 8450yes|"") d='' ;; 8451no) d= ;; 8452*) d="$with_openldap" ;; 8453esac 8454 8455header_dirs= 8456lib_dirs= 8457for i in $d; do 8458 if test "$with_openldap_include" = ""; then 8459 if test -d "$i/include/openldap"; then 8460 header_dirs="$header_dirs $i/include/openldap" 8461 fi 8462 if test -d "$i/include"; then 8463 header_dirs="$header_dirs $i/include" 8464 fi 8465 fi 8466 if test "$with_openldap_lib" = ""; then 8467 if test -d "$i/lib$abilibdirext"; then 8468 lib_dirs="$lib_dirs $i/lib$abilibdirext" 8469 fi 8470 fi 8471done 8472 8473if test "$with_openldap_include"; then 8474 header_dirs="$with_openldap_include $header_dirs" 8475fi 8476if test "$with_openldap_lib"; then 8477 lib_dirs="$with_openldap_lib $lib_dirs" 8478fi 8479 8480if test "$with_openldap_config" = ""; then 8481 with_openldap_config='' 8482fi 8483 8484openldap_cflags= 8485openldap_libs= 8486 8487case "$with_openldap_config" in 8488yes|no|"") 8489 ;; 8490*) 8491 openldap_cflags="`$with_openldap_config --cflags 2>&1`" 8492 openldap_libs="`$with_openldap_config --libs 2>&1`" 8493 ;; 8494esac 8495 8496found=no 8497if test "$with_openldap" != no; then 8498 save_CFLAGS="$CFLAGS" 8499 save_LIBS="$LIBS" 8500 if test "$openldap_cflags" -a "$openldap_libs"; then 8501 CFLAGS="$openldap_cflags $save_CFLAGS" 8502 LIBS="$openldap_libs $save_LIBS" 8503 cat >conftest.$ac_ext <<_ACEOF 8504#line $LINENO "configure" 8505#include "confdefs.h" 8506#include <lber.h> 8507#include <ldap.h> 8508#ifdef F77_DUMMY_MAIN 8509# ifdef __cplusplus 8510 extern "C" 8511# endif 8512 int F77_DUMMY_MAIN() { return 1; } 8513#endif 8514int 8515main () 8516{ 8517 8518 ; 8519 return 0; 8520} 8521_ACEOF 8522rm -f conftest.$ac_objext conftest$ac_exeext 8523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8524 (eval $ac_link) 2>&5 8525 ac_status=$? 8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8527 (exit $ac_status); } && 8528 { ac_try='test -s conftest$ac_exeext' 8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8530 (eval $ac_try) 2>&5 8531 ac_status=$? 8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8533 (exit $ac_status); }; }; then 8534 8535 INCLUDE_openldap="$openldap_cflags" 8536 LIB_openldap="$openldap_libs" 8537 echo "$as_me:$LINENO: result: from $with_openldap_config" >&5 8538echo "${ECHO_T}from $with_openldap_config" >&6 8539 found=yes 8540else 8541 echo "$as_me: failed program was:" >&5 8542cat conftest.$ac_ext >&5 8543fi 8544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8545 fi 8546 if test "$found" = no; then 8547 ires= lres= 8548 for i in $header_dirs; do 8549 CFLAGS="-I$i $save_CFLAGS" 8550 cat >conftest.$ac_ext <<_ACEOF 8551#line $LINENO "configure" 8552#include "confdefs.h" 8553#include <lber.h> 8554#include <ldap.h> 8555#ifdef F77_DUMMY_MAIN 8556# ifdef __cplusplus 8557 extern "C" 8558# endif 8559 int F77_DUMMY_MAIN() { return 1; } 8560#endif 8561int 8562main () 8563{ 8564 8565 ; 8566 return 0; 8567} 8568_ACEOF 8569rm -f conftest.$ac_objext 8570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8571 (eval $ac_compile) 2>&5 8572 ac_status=$? 8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8574 (exit $ac_status); } && 8575 { ac_try='test -s conftest.$ac_objext' 8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8577 (eval $ac_try) 2>&5 8578 ac_status=$? 8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8580 (exit $ac_status); }; }; then 8581 ires=$i;break 8582else 8583 echo "$as_me: failed program was:" >&5 8584cat conftest.$ac_ext >&5 8585fi 8586rm -f conftest.$ac_objext conftest.$ac_ext 8587 done 8588 for i in $lib_dirs; do 8589 LIBS="-L$i -lldap -llber $save_LIBS" 8590 cat >conftest.$ac_ext <<_ACEOF 8591#line $LINENO "configure" 8592#include "confdefs.h" 8593#include <lber.h> 8594#include <ldap.h> 8595#ifdef F77_DUMMY_MAIN 8596# ifdef __cplusplus 8597 extern "C" 8598# endif 8599 int F77_DUMMY_MAIN() { return 1; } 8600#endif 8601int 8602main () 8603{ 8604 8605 ; 8606 return 0; 8607} 8608_ACEOF 8609rm -f conftest.$ac_objext conftest$ac_exeext 8610if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8611 (eval $ac_link) 2>&5 8612 ac_status=$? 8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8614 (exit $ac_status); } && 8615 { ac_try='test -s conftest$ac_exeext' 8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8617 (eval $ac_try) 2>&5 8618 ac_status=$? 8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8620 (exit $ac_status); }; }; then 8621 lres=$i;break 8622else 8623 echo "$as_me: failed program was:" >&5 8624cat conftest.$ac_ext >&5 8625fi 8626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8627 done 8628 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 8629 INCLUDE_openldap="-I$ires" 8630 LIB_openldap="-L$lres -lldap -llber " 8631 found=yes 8632 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 8633echo "${ECHO_T}headers $ires, libraries $lres" >&6 8634 fi 8635 fi 8636 CFLAGS="$save_CFLAGS" 8637 LIBS="$save_LIBS" 8638fi 8639 8640if test "$found" = yes; then 8641 8642cat >>confdefs.h <<_ACEOF 8643#define OPENLDAP 1 8644_ACEOF 8645 8646 with_openldap=yes 8647else 8648 with_openldap=no 8649 INCLUDE_openldap= 8650 LIB_openldap= 8651 echo "$as_me:$LINENO: result: no" >&5 8652echo "${ECHO_T}no" >&6 8653fi 8654 8655 8656 8657 8658 8659 8660 8661# Check whether --with-krb4 or --without-krb4 was given. 8662if test "${with_krb4+set}" = set; then 8663 withval="$with_krb4" 8664 8665fi; 8666 8667# Check whether --with-krb4-lib or --without-krb4-lib was given. 8668if test "${with_krb4_lib+set}" = set; then 8669 withval="$with_krb4_lib" 8670 if test "$withval" = "yes" -o "$withval" = "no"; then 8671 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5 8672echo "$as_me: error: No argument for --with-krb4-lib" >&2;} 8673 { (exit 1); exit 1; }; } 8674elif test "X$with_krb4" = "X"; then 8675 with_krb4=yes 8676fi 8677fi; 8678 8679# Check whether --with-krb4-include or --without-krb4-include was given. 8680if test "${with_krb4_include+set}" = set; then 8681 withval="$with_krb4_include" 8682 if test "$withval" = "yes" -o "$withval" = "no"; then 8683 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5 8684echo "$as_me: error: No argument for --with-krb4-include" >&2;} 8685 { (exit 1); exit 1; }; } 8686elif test "X$with_krb4" = "X"; then 8687 with_krb4=yes 8688fi 8689fi; 8690 8691# Check whether --with-krb4-config or --without-krb4-config was given. 8692if test "${with_krb4_config+set}" = set; then 8693 withval="$with_krb4_config" 8694 8695fi; 8696 8697 8698 8699echo "$as_me:$LINENO: checking for krb4" >&5 8700echo $ECHO_N "checking for krb4... $ECHO_C" >&6 8701 8702case "$with_krb4" in 8703yes|"") d='/usr/athena' ;; 8704no) d= ;; 8705*) d="$with_krb4" ;; 8706esac 8707 8708header_dirs= 8709lib_dirs= 8710for i in $d; do 8711 if test "$with_krb4_include" = ""; then 8712 if test -d "$i/include/krb4"; then 8713 header_dirs="$header_dirs $i/include/krb4" 8714 fi 8715 if test -d "$i/include"; then 8716 header_dirs="$header_dirs $i/include" 8717 fi 8718 fi 8719 if test "$with_krb4_lib" = ""; then 8720 if test -d "$i/lib$abilibdirext"; then 8721 lib_dirs="$lib_dirs $i/lib$abilibdirext" 8722 fi 8723 fi 8724done 8725 8726if test "$with_krb4_include"; then 8727 header_dirs="$with_krb4_include $header_dirs" 8728fi 8729if test "$with_krb4_lib"; then 8730 lib_dirs="$with_krb4_lib $lib_dirs" 8731fi 8732 8733if test "$with_krb4_config" = ""; then 8734 with_krb4_config='krb4-config' 8735fi 8736 8737krb4_cflags= 8738krb4_libs= 8739 8740case "$with_krb4_config" in 8741yes|no|"") 8742 ;; 8743*) 8744 krb4_cflags="`$with_krb4_config --cflags 2>&1`" 8745 krb4_libs="`$with_krb4_config --libs 2>&1`" 8746 ;; 8747esac 8748 8749found=no 8750if test "$with_krb4" != no; then 8751 save_CFLAGS="$CFLAGS" 8752 save_LIBS="$LIBS" 8753 if test "$krb4_cflags" -a "$krb4_libs"; then 8754 CFLAGS="$krb4_cflags $save_CFLAGS" 8755 LIBS="$krb4_libs $save_LIBS" 8756 cat >conftest.$ac_ext <<_ACEOF 8757#line $LINENO "configure" 8758#include "confdefs.h" 8759#include <krb.h> 8760#ifdef F77_DUMMY_MAIN 8761# ifdef __cplusplus 8762 extern "C" 8763# endif 8764 int F77_DUMMY_MAIN() { return 1; } 8765#endif 8766int 8767main () 8768{ 8769 8770 ; 8771 return 0; 8772} 8773_ACEOF 8774rm -f conftest.$ac_objext conftest$ac_exeext 8775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8776 (eval $ac_link) 2>&5 8777 ac_status=$? 8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8779 (exit $ac_status); } && 8780 { ac_try='test -s conftest$ac_exeext' 8781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8782 (eval $ac_try) 2>&5 8783 ac_status=$? 8784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8785 (exit $ac_status); }; }; then 8786 8787 INCLUDE_krb4="$krb4_cflags" 8788 LIB_krb4="$krb4_libs" 8789 echo "$as_me:$LINENO: result: from $with_krb4_config" >&5 8790echo "${ECHO_T}from $with_krb4_config" >&6 8791 found=yes 8792else 8793 echo "$as_me: failed program was:" >&5 8794cat conftest.$ac_ext >&5 8795fi 8796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8797 fi 8798 if test "$found" = no; then 8799 ires= lres= 8800 for i in $header_dirs; do 8801 CFLAGS="-I$i $save_CFLAGS" 8802 cat >conftest.$ac_ext <<_ACEOF 8803#line $LINENO "configure" 8804#include "confdefs.h" 8805#include <krb.h> 8806#ifdef F77_DUMMY_MAIN 8807# ifdef __cplusplus 8808 extern "C" 8809# endif 8810 int F77_DUMMY_MAIN() { return 1; } 8811#endif 8812int 8813main () 8814{ 8815 8816 ; 8817 return 0; 8818} 8819_ACEOF 8820rm -f conftest.$ac_objext 8821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8822 (eval $ac_compile) 2>&5 8823 ac_status=$? 8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8825 (exit $ac_status); } && 8826 { ac_try='test -s conftest.$ac_objext' 8827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8828 (eval $ac_try) 2>&5 8829 ac_status=$? 8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8831 (exit $ac_status); }; }; then 8832 ires=$i;break 8833else 8834 echo "$as_me: failed program was:" >&5 8835cat conftest.$ac_ext >&5 8836fi 8837rm -f conftest.$ac_objext conftest.$ac_ext 8838 done 8839 for i in $lib_dirs; do 8840 LIBS="-L$i -lkrb -ldes $save_LIBS" 8841 cat >conftest.$ac_ext <<_ACEOF 8842#line $LINENO "configure" 8843#include "confdefs.h" 8844#include <krb.h> 8845#ifdef F77_DUMMY_MAIN 8846# ifdef __cplusplus 8847 extern "C" 8848# endif 8849 int F77_DUMMY_MAIN() { return 1; } 8850#endif 8851int 8852main () 8853{ 8854 8855 ; 8856 return 0; 8857} 8858_ACEOF 8859rm -f conftest.$ac_objext conftest$ac_exeext 8860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8861 (eval $ac_link) 2>&5 8862 ac_status=$? 8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8864 (exit $ac_status); } && 8865 { ac_try='test -s conftest$ac_exeext' 8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8867 (eval $ac_try) 2>&5 8868 ac_status=$? 8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8870 (exit $ac_status); }; }; then 8871 lres=$i;break 8872else 8873 echo "$as_me: failed program was:" >&5 8874cat conftest.$ac_ext >&5 8875fi 8876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8877 done 8878 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then 8879 INCLUDE_krb4="-I$ires" 8880 LIB_krb4="-L$lres -lkrb -ldes" 8881 found=yes 8882 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 8883echo "${ECHO_T}headers $ires, libraries $lres" >&6 8884 fi 8885 fi 8886 CFLAGS="$save_CFLAGS" 8887 LIBS="$save_LIBS" 8888fi 8889 8890if test "$found" = yes; then 8891 8892cat >>confdefs.h <<_ACEOF 8893#define KRB4 1 8894_ACEOF 8895 8896 with_krb4=yes 8897else 8898 with_krb4=no 8899 INCLUDE_krb4= 8900 LIB_krb4= 8901 echo "$as_me:$LINENO: result: no" >&5 8902echo "${ECHO_T}no" >&6 8903fi 8904 8905 8906 8907 8908 8909LIB_kdb= 8910if test "$with_krb4" != "no"; then 8911 save_CFLAGS="$CFLAGS" 8912 CFLAGS="$CFLAGS $INCLUDE_krb4" 8913 save_LIBS="$LIBS" 8914 LIBS="$LIB_krb4 $LIBS" 8915 EXTRA_LIB45=lib45.a 8916 8917 echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5 8918echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6 8919if test "${ac_cv_func_krb_put_int_four+set}" = set; then 8920 echo $ECHO_N "(cached) $ECHO_C" >&6 8921else 8922 cat >conftest.$ac_ext <<_ACEOF 8923#line $LINENO "configure" 8924#include "confdefs.h" 8925#include <krb.h> 8926#ifdef F77_DUMMY_MAIN 8927# ifdef __cplusplus 8928 extern "C" 8929# endif 8930 int F77_DUMMY_MAIN() { return 1; } 8931#endif 8932int 8933main () 8934{ 8935 8936 char tmp[4]; 8937 krb_put_int(17, tmp, 4, sizeof(tmp)); 8938 ; 8939 return 0; 8940} 8941_ACEOF 8942rm -f conftest.$ac_objext 8943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8944 (eval $ac_compile) 2>&5 8945 ac_status=$? 8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8947 (exit $ac_status); } && 8948 { ac_try='test -s conftest.$ac_objext' 8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8950 (eval $ac_try) 2>&5 8951 ac_status=$? 8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8953 (exit $ac_status); }; }; then 8954 ac_cv_func_krb_put_int_four=yes 8955else 8956 echo "$as_me: failed program was:" >&5 8957cat conftest.$ac_ext >&5 8958ac_cv_func_krb_put_int_four=no 8959fi 8960rm -f conftest.$ac_objext conftest.$ac_ext 8961 8962fi 8963echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5 8964echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6 8965 if test "$ac_cv_func_krb_put_int_four" = yes; then 8966 8967cat >>confdefs.h <<\_ACEOF 8968#define HAVE_FOUR_VALUED_KRB_PUT_INT 1 8969_ACEOF 8970 8971 fi 8972 8973 8974 echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5 8975echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6 8976if test "${ac_cv_func_krb_verify_secure+set}" = set; then 8977 echo $ECHO_N "(cached) $ECHO_C" >&6 8978else 8979 cat >conftest.$ac_ext <<_ACEOF 8980#line $LINENO "configure" 8981#include "confdefs.h" 8982#include <krb.h> 8983#ifdef F77_DUMMY_MAIN 8984# ifdef __cplusplus 8985 extern "C" 8986# endif 8987 int F77_DUMMY_MAIN() { return 1; } 8988#endif 8989int 8990main () 8991{ 8992 8993 int x = KRB_VERIFY_SECURE 8994 ; 8995 return 0; 8996} 8997_ACEOF 8998rm -f conftest.$ac_objext 8999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9000 (eval $ac_compile) 2>&5 9001 ac_status=$? 9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9003 (exit $ac_status); } && 9004 { ac_try='test -s conftest.$ac_objext' 9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9006 (eval $ac_try) 2>&5 9007 ac_status=$? 9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9009 (exit $ac_status); }; }; then 9010 ac_cv_func_krb_verify_secure=yes 9011else 9012 echo "$as_me: failed program was:" >&5 9013cat conftest.$ac_ext >&5 9014ac_cv_func_krb_verify_secure=no 9015fi 9016rm -f conftest.$ac_objext conftest.$ac_ext 9017 9018fi 9019echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5 9020echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6 9021 if test "$ac_cv_func_krb_verify_secure" != yes; then 9022 9023cat >>confdefs.h <<\_ACEOF 9024#define KRB_VERIFY_SECURE 1 9025_ACEOF 9026 9027 9028cat >>confdefs.h <<\_ACEOF 9029#define KRB_VERIFY_SECURE_FAIL 2 9030_ACEOF 9031 9032 fi 9033 echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5 9034echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6 9035if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then 9036 echo $ECHO_N "(cached) $ECHO_C" >&6 9037else 9038 cat >conftest.$ac_ext <<_ACEOF 9039#line $LINENO "configure" 9040#include "confdefs.h" 9041#include <krb.h> 9042#ifdef F77_DUMMY_MAIN 9043# ifdef __cplusplus 9044 extern "C" 9045# endif 9046 int F77_DUMMY_MAIN() { return 1; } 9047#endif 9048int 9049main () 9050{ 9051 9052 int x = KRB_VERIFY_NOT_SECURE 9053 ; 9054 return 0; 9055} 9056_ACEOF 9057rm -f conftest.$ac_objext 9058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9059 (eval $ac_compile) 2>&5 9060 ac_status=$? 9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9062 (exit $ac_status); } && 9063 { ac_try='test -s conftest.$ac_objext' 9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9065 (eval $ac_try) 2>&5 9066 ac_status=$? 9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9068 (exit $ac_status); }; }; then 9069 ac_cv_func_krb_verify_not_secure=yes 9070else 9071 echo "$as_me: failed program was:" >&5 9072cat conftest.$ac_ext >&5 9073ac_cv_func_krb_verify_not_secure=no 9074fi 9075rm -f conftest.$ac_objext conftest.$ac_ext 9076 9077fi 9078echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5 9079echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6 9080 if test "$ac_cv_func_krb_verify_not_secure" != yes; then 9081 9082cat >>confdefs.h <<\_ACEOF 9083#define KRB_VERIFY_NOT_SECURE 0 9084_ACEOF 9085 9086 fi 9087 9088 9089 9090 9091echo "$as_me:$LINENO: checking for krb_enable_debug" >&5 9092echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6 9093if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then 9094 echo $ECHO_N "(cached) $ECHO_C" >&6 9095else 9096 9097if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then 9098 ac_save_LIBS="$LIBS" 9099 for ac_lib in "" ; do 9100 case "$ac_lib" in 9101 "") ;; 9102 yes) ac_lib="" ;; 9103 no) continue ;; 9104 -l*) ;; 9105 *) ac_lib="-l$ac_lib" ;; 9106 esac 9107 LIBS=" $ac_lib $ac_save_LIBS" 9108 cat >conftest.$ac_ext <<_ACEOF 9109#line $LINENO "configure" 9110#include "confdefs.h" 9111 9112#ifdef F77_DUMMY_MAIN 9113# ifdef __cplusplus 9114 extern "C" 9115# endif 9116 int F77_DUMMY_MAIN() { return 1; } 9117#endif 9118int 9119main () 9120{ 9121krb_enable_debug() 9122 ; 9123 return 0; 9124} 9125_ACEOF 9126rm -f conftest.$ac_objext conftest$ac_exeext 9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9128 (eval $ac_link) 2>&5 9129 ac_status=$? 9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9131 (exit $ac_status); } && 9132 { ac_try='test -s conftest$ac_exeext' 9133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9134 (eval $ac_try) 2>&5 9135 ac_status=$? 9136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9137 (exit $ac_status); }; }; then 9138 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break 9139else 9140 echo "$as_me: failed program was:" >&5 9141cat conftest.$ac_ext >&5 9142fi 9143rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9144 done 9145 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}" 9146 LIBS="$ac_save_LIBS" 9147fi 9148 9149fi 9150 9151 9152eval "ac_res=\$ac_cv_funclib_krb_enable_debug" 9153 9154if false; then 9155 9156for ac_func in krb_enable_debug 9157do 9158as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9159echo "$as_me:$LINENO: checking for $ac_func" >&5 9160echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9161if eval "test \"\${$as_ac_var+set}\" = set"; then 9162 echo $ECHO_N "(cached) $ECHO_C" >&6 9163else 9164 cat >conftest.$ac_ext <<_ACEOF 9165#line $LINENO "configure" 9166#include "confdefs.h" 9167/* System header to define __stub macros and hopefully few prototypes, 9168 which can conflict with char $ac_func (); below. */ 9169#include <assert.h> 9170/* Override any gcc2 internal prototype to avoid an error. */ 9171#ifdef __cplusplus 9172extern "C" 9173#endif 9174/* We use char because int might match the return type of a gcc2 9175 builtin and then its argument prototype would still apply. */ 9176char $ac_func (); 9177char (*f) (); 9178 9179#ifdef F77_DUMMY_MAIN 9180# ifdef __cplusplus 9181 extern "C" 9182# endif 9183 int F77_DUMMY_MAIN() { return 1; } 9184#endif 9185int 9186main () 9187{ 9188/* The GNU C library defines this for functions which it implements 9189 to always fail with ENOSYS. Some functions are actually named 9190 something starting with __ and the normal name is an alias. */ 9191#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9192choke me 9193#else 9194f = $ac_func; 9195#endif 9196 9197 ; 9198 return 0; 9199} 9200_ACEOF 9201rm -f conftest.$ac_objext conftest$ac_exeext 9202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9203 (eval $ac_link) 2>&5 9204 ac_status=$? 9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9206 (exit $ac_status); } && 9207 { ac_try='test -s conftest$ac_exeext' 9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9209 (eval $ac_try) 2>&5 9210 ac_status=$? 9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9212 (exit $ac_status); }; }; then 9213 eval "$as_ac_var=yes" 9214else 9215 echo "$as_me: failed program was:" >&5 9216cat conftest.$ac_ext >&5 9217eval "$as_ac_var=no" 9218fi 9219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9220fi 9221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9222echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9223if test `eval echo '${'$as_ac_var'}'` = yes; then 9224 cat >>confdefs.h <<_ACEOF 9225#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9226_ACEOF 9227 9228fi 9229done 9230 9231fi 9232# krb_enable_debug 9233eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9234eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9235eval "LIB_krb_enable_debug=$ac_res" 9236 9237case "$ac_res" in 9238 yes) 9239 eval "ac_cv_func_krb_enable_debug=yes" 9240 eval "LIB_krb_enable_debug=" 9241 cat >>confdefs.h <<_ACEOF 9242#define $ac_tr_func 1 9243_ACEOF 9244 9245 echo "$as_me:$LINENO: result: yes" >&5 9246echo "${ECHO_T}yes" >&6 9247 ;; 9248 no) 9249 eval "ac_cv_func_krb_enable_debug=no" 9250 eval "LIB_krb_enable_debug=" 9251 echo "$as_me:$LINENO: result: no" >&5 9252echo "${ECHO_T}no" >&6 9253 ;; 9254 *) 9255 eval "ac_cv_func_krb_enable_debug=yes" 9256 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9257 cat >>confdefs.h <<_ACEOF 9258#define $ac_tr_func 1 9259_ACEOF 9260 9261 cat >>confdefs.h <<_ACEOF 9262#define $ac_tr_lib 1 9263_ACEOF 9264 9265 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9266echo "${ECHO_T}yes, in $ac_res" >&6 9267 ;; 9268esac 9269 9270 9271if test -n "$LIB_krb_enable_debug"; then 9272 LIBS="$LIB_krb_enable_debug $LIBS" 9273fi 9274 9275 9276 9277 9278 9279echo "$as_me:$LINENO: checking for krb_disable_debug" >&5 9280echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6 9281if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then 9282 echo $ECHO_N "(cached) $ECHO_C" >&6 9283else 9284 9285if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then 9286 ac_save_LIBS="$LIBS" 9287 for ac_lib in "" ; do 9288 case "$ac_lib" in 9289 "") ;; 9290 yes) ac_lib="" ;; 9291 no) continue ;; 9292 -l*) ;; 9293 *) ac_lib="-l$ac_lib" ;; 9294 esac 9295 LIBS=" $ac_lib $ac_save_LIBS" 9296 cat >conftest.$ac_ext <<_ACEOF 9297#line $LINENO "configure" 9298#include "confdefs.h" 9299 9300#ifdef F77_DUMMY_MAIN 9301# ifdef __cplusplus 9302 extern "C" 9303# endif 9304 int F77_DUMMY_MAIN() { return 1; } 9305#endif 9306int 9307main () 9308{ 9309krb_disable_debug() 9310 ; 9311 return 0; 9312} 9313_ACEOF 9314rm -f conftest.$ac_objext conftest$ac_exeext 9315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9316 (eval $ac_link) 2>&5 9317 ac_status=$? 9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9319 (exit $ac_status); } && 9320 { ac_try='test -s conftest$ac_exeext' 9321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9322 (eval $ac_try) 2>&5 9323 ac_status=$? 9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9325 (exit $ac_status); }; }; then 9326 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break 9327else 9328 echo "$as_me: failed program was:" >&5 9329cat conftest.$ac_ext >&5 9330fi 9331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9332 done 9333 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}" 9334 LIBS="$ac_save_LIBS" 9335fi 9336 9337fi 9338 9339 9340eval "ac_res=\$ac_cv_funclib_krb_disable_debug" 9341 9342if false; then 9343 9344for ac_func in krb_disable_debug 9345do 9346as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9347echo "$as_me:$LINENO: checking for $ac_func" >&5 9348echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9349if eval "test \"\${$as_ac_var+set}\" = set"; then 9350 echo $ECHO_N "(cached) $ECHO_C" >&6 9351else 9352 cat >conftest.$ac_ext <<_ACEOF 9353#line $LINENO "configure" 9354#include "confdefs.h" 9355/* System header to define __stub macros and hopefully few prototypes, 9356 which can conflict with char $ac_func (); below. */ 9357#include <assert.h> 9358/* Override any gcc2 internal prototype to avoid an error. */ 9359#ifdef __cplusplus 9360extern "C" 9361#endif 9362/* We use char because int might match the return type of a gcc2 9363 builtin and then its argument prototype would still apply. */ 9364char $ac_func (); 9365char (*f) (); 9366 9367#ifdef F77_DUMMY_MAIN 9368# ifdef __cplusplus 9369 extern "C" 9370# endif 9371 int F77_DUMMY_MAIN() { return 1; } 9372#endif 9373int 9374main () 9375{ 9376/* The GNU C library defines this for functions which it implements 9377 to always fail with ENOSYS. Some functions are actually named 9378 something starting with __ and the normal name is an alias. */ 9379#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9380choke me 9381#else 9382f = $ac_func; 9383#endif 9384 9385 ; 9386 return 0; 9387} 9388_ACEOF 9389rm -f conftest.$ac_objext conftest$ac_exeext 9390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9391 (eval $ac_link) 2>&5 9392 ac_status=$? 9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9394 (exit $ac_status); } && 9395 { ac_try='test -s conftest$ac_exeext' 9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9397 (eval $ac_try) 2>&5 9398 ac_status=$? 9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9400 (exit $ac_status); }; }; then 9401 eval "$as_ac_var=yes" 9402else 9403 echo "$as_me: failed program was:" >&5 9404cat conftest.$ac_ext >&5 9405eval "$as_ac_var=no" 9406fi 9407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9408fi 9409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9410echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9411if test `eval echo '${'$as_ac_var'}'` = yes; then 9412 cat >>confdefs.h <<_ACEOF 9413#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9414_ACEOF 9415 9416fi 9417done 9418 9419fi 9420# krb_disable_debug 9421eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9422eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9423eval "LIB_krb_disable_debug=$ac_res" 9424 9425case "$ac_res" in 9426 yes) 9427 eval "ac_cv_func_krb_disable_debug=yes" 9428 eval "LIB_krb_disable_debug=" 9429 cat >>confdefs.h <<_ACEOF 9430#define $ac_tr_func 1 9431_ACEOF 9432 9433 echo "$as_me:$LINENO: result: yes" >&5 9434echo "${ECHO_T}yes" >&6 9435 ;; 9436 no) 9437 eval "ac_cv_func_krb_disable_debug=no" 9438 eval "LIB_krb_disable_debug=" 9439 echo "$as_me:$LINENO: result: no" >&5 9440echo "${ECHO_T}no" >&6 9441 ;; 9442 *) 9443 eval "ac_cv_func_krb_disable_debug=yes" 9444 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9445 cat >>confdefs.h <<_ACEOF 9446#define $ac_tr_func 1 9447_ACEOF 9448 9449 cat >>confdefs.h <<_ACEOF 9450#define $ac_tr_lib 1 9451_ACEOF 9452 9453 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9454echo "${ECHO_T}yes, in $ac_res" >&6 9455 ;; 9456esac 9457 9458 9459if test -n "$LIB_krb_disable_debug"; then 9460 LIBS="$LIB_krb_disable_debug $LIBS" 9461fi 9462 9463 9464 9465 9466 9467echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5 9468echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6 9469if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then 9470 echo $ECHO_N "(cached) $ECHO_C" >&6 9471else 9472 9473if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then 9474 ac_save_LIBS="$LIBS" 9475 for ac_lib in "" ; do 9476 case "$ac_lib" in 9477 "") ;; 9478 yes) ac_lib="" ;; 9479 no) continue ;; 9480 -l*) ;; 9481 *) ac_lib="-l$ac_lib" ;; 9482 esac 9483 LIBS=" $ac_lib $ac_save_LIBS" 9484 cat >conftest.$ac_ext <<_ACEOF 9485#line $LINENO "configure" 9486#include "confdefs.h" 9487 9488#ifdef F77_DUMMY_MAIN 9489# ifdef __cplusplus 9490 extern "C" 9491# endif 9492 int F77_DUMMY_MAIN() { return 1; } 9493#endif 9494int 9495main () 9496{ 9497krb_get_our_ip_for_realm() 9498 ; 9499 return 0; 9500} 9501_ACEOF 9502rm -f conftest.$ac_objext conftest$ac_exeext 9503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9504 (eval $ac_link) 2>&5 9505 ac_status=$? 9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9507 (exit $ac_status); } && 9508 { ac_try='test -s conftest$ac_exeext' 9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9510 (eval $ac_try) 2>&5 9511 ac_status=$? 9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9513 (exit $ac_status); }; }; then 9514 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break 9515else 9516 echo "$as_me: failed program was:" >&5 9517cat conftest.$ac_ext >&5 9518fi 9519rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9520 done 9521 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}" 9522 LIBS="$ac_save_LIBS" 9523fi 9524 9525fi 9526 9527 9528eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm" 9529 9530if false; then 9531 9532for ac_func in krb_get_our_ip_for_realm 9533do 9534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9535echo "$as_me:$LINENO: checking for $ac_func" >&5 9536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9537if eval "test \"\${$as_ac_var+set}\" = set"; then 9538 echo $ECHO_N "(cached) $ECHO_C" >&6 9539else 9540 cat >conftest.$ac_ext <<_ACEOF 9541#line $LINENO "configure" 9542#include "confdefs.h" 9543/* System header to define __stub macros and hopefully few prototypes, 9544 which can conflict with char $ac_func (); below. */ 9545#include <assert.h> 9546/* Override any gcc2 internal prototype to avoid an error. */ 9547#ifdef __cplusplus 9548extern "C" 9549#endif 9550/* We use char because int might match the return type of a gcc2 9551 builtin and then its argument prototype would still apply. */ 9552char $ac_func (); 9553char (*f) (); 9554 9555#ifdef F77_DUMMY_MAIN 9556# ifdef __cplusplus 9557 extern "C" 9558# endif 9559 int F77_DUMMY_MAIN() { return 1; } 9560#endif 9561int 9562main () 9563{ 9564/* The GNU C library defines this for functions which it implements 9565 to always fail with ENOSYS. Some functions are actually named 9566 something starting with __ and the normal name is an alias. */ 9567#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9568choke me 9569#else 9570f = $ac_func; 9571#endif 9572 9573 ; 9574 return 0; 9575} 9576_ACEOF 9577rm -f conftest.$ac_objext conftest$ac_exeext 9578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9579 (eval $ac_link) 2>&5 9580 ac_status=$? 9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9582 (exit $ac_status); } && 9583 { ac_try='test -s conftest$ac_exeext' 9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9585 (eval $ac_try) 2>&5 9586 ac_status=$? 9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9588 (exit $ac_status); }; }; then 9589 eval "$as_ac_var=yes" 9590else 9591 echo "$as_me: failed program was:" >&5 9592cat conftest.$ac_ext >&5 9593eval "$as_ac_var=no" 9594fi 9595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9596fi 9597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9599if test `eval echo '${'$as_ac_var'}'` = yes; then 9600 cat >>confdefs.h <<_ACEOF 9601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9602_ACEOF 9603 9604fi 9605done 9606 9607fi 9608# krb_get_our_ip_for_realm 9609eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9610eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9611eval "LIB_krb_get_our_ip_for_realm=$ac_res" 9612 9613case "$ac_res" in 9614 yes) 9615 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 9616 eval "LIB_krb_get_our_ip_for_realm=" 9617 cat >>confdefs.h <<_ACEOF 9618#define $ac_tr_func 1 9619_ACEOF 9620 9621 echo "$as_me:$LINENO: result: yes" >&5 9622echo "${ECHO_T}yes" >&6 9623 ;; 9624 no) 9625 eval "ac_cv_func_krb_get_our_ip_for_realm=no" 9626 eval "LIB_krb_get_our_ip_for_realm=" 9627 echo "$as_me:$LINENO: result: no" >&5 9628echo "${ECHO_T}no" >&6 9629 ;; 9630 *) 9631 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 9632 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9633 cat >>confdefs.h <<_ACEOF 9634#define $ac_tr_func 1 9635_ACEOF 9636 9637 cat >>confdefs.h <<_ACEOF 9638#define $ac_tr_lib 1 9639_ACEOF 9640 9641 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9642echo "${ECHO_T}yes, in $ac_res" >&6 9643 ;; 9644esac 9645 9646 9647if test -n "$LIB_krb_get_our_ip_for_realm"; then 9648 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS" 9649fi 9650 9651 9652 9653 9654 9655echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5 9656echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6 9657if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then 9658 echo $ECHO_N "(cached) $ECHO_C" >&6 9659else 9660 9661if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then 9662 ac_save_LIBS="$LIBS" 9663 for ac_lib in "" ; do 9664 case "$ac_lib" in 9665 "") ;; 9666 yes) ac_lib="" ;; 9667 no) continue ;; 9668 -l*) ;; 9669 *) ac_lib="-l$ac_lib" ;; 9670 esac 9671 LIBS=" $ac_lib $ac_save_LIBS" 9672 cat >conftest.$ac_ext <<_ACEOF 9673#line $LINENO "configure" 9674#include "confdefs.h" 9675 9676#ifdef F77_DUMMY_MAIN 9677# ifdef __cplusplus 9678 extern "C" 9679# endif 9680 int F77_DUMMY_MAIN() { return 1; } 9681#endif 9682int 9683main () 9684{ 9685krb_kdctimeofday() 9686 ; 9687 return 0; 9688} 9689_ACEOF 9690rm -f conftest.$ac_objext conftest$ac_exeext 9691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9692 (eval $ac_link) 2>&5 9693 ac_status=$? 9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9695 (exit $ac_status); } && 9696 { ac_try='test -s conftest$ac_exeext' 9697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9698 (eval $ac_try) 2>&5 9699 ac_status=$? 9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9701 (exit $ac_status); }; }; then 9702 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break 9703else 9704 echo "$as_me: failed program was:" >&5 9705cat conftest.$ac_ext >&5 9706fi 9707rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9708 done 9709 eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}" 9710 LIBS="$ac_save_LIBS" 9711fi 9712 9713fi 9714 9715 9716eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday" 9717 9718if false; then 9719 9720for ac_func in krb_kdctimeofday 9721do 9722as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9723echo "$as_me:$LINENO: checking for $ac_func" >&5 9724echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9725if eval "test \"\${$as_ac_var+set}\" = set"; then 9726 echo $ECHO_N "(cached) $ECHO_C" >&6 9727else 9728 cat >conftest.$ac_ext <<_ACEOF 9729#line $LINENO "configure" 9730#include "confdefs.h" 9731/* System header to define __stub macros and hopefully few prototypes, 9732 which can conflict with char $ac_func (); below. */ 9733#include <assert.h> 9734/* Override any gcc2 internal prototype to avoid an error. */ 9735#ifdef __cplusplus 9736extern "C" 9737#endif 9738/* We use char because int might match the return type of a gcc2 9739 builtin and then its argument prototype would still apply. */ 9740char $ac_func (); 9741char (*f) (); 9742 9743#ifdef F77_DUMMY_MAIN 9744# ifdef __cplusplus 9745 extern "C" 9746# endif 9747 int F77_DUMMY_MAIN() { return 1; } 9748#endif 9749int 9750main () 9751{ 9752/* The GNU C library defines this for functions which it implements 9753 to always fail with ENOSYS. Some functions are actually named 9754 something starting with __ and the normal name is an alias. */ 9755#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9756choke me 9757#else 9758f = $ac_func; 9759#endif 9760 9761 ; 9762 return 0; 9763} 9764_ACEOF 9765rm -f conftest.$ac_objext conftest$ac_exeext 9766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9767 (eval $ac_link) 2>&5 9768 ac_status=$? 9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9770 (exit $ac_status); } && 9771 { ac_try='test -s conftest$ac_exeext' 9772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9773 (eval $ac_try) 2>&5 9774 ac_status=$? 9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9776 (exit $ac_status); }; }; then 9777 eval "$as_ac_var=yes" 9778else 9779 echo "$as_me: failed program was:" >&5 9780cat conftest.$ac_ext >&5 9781eval "$as_ac_var=no" 9782fi 9783rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9784fi 9785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9786echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9787if test `eval echo '${'$as_ac_var'}'` = yes; then 9788 cat >>confdefs.h <<_ACEOF 9789#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9790_ACEOF 9791 9792fi 9793done 9794 9795fi 9796# krb_kdctimeofday 9797eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9798eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9799eval "LIB_krb_kdctimeofday=$ac_res" 9800 9801case "$ac_res" in 9802 yes) 9803 eval "ac_cv_func_krb_kdctimeofday=yes" 9804 eval "LIB_krb_kdctimeofday=" 9805 cat >>confdefs.h <<_ACEOF 9806#define $ac_tr_func 1 9807_ACEOF 9808 9809 echo "$as_me:$LINENO: result: yes" >&5 9810echo "${ECHO_T}yes" >&6 9811 ;; 9812 no) 9813 eval "ac_cv_func_krb_kdctimeofday=no" 9814 eval "LIB_krb_kdctimeofday=" 9815 echo "$as_me:$LINENO: result: no" >&5 9816echo "${ECHO_T}no" >&6 9817 ;; 9818 *) 9819 eval "ac_cv_func_krb_kdctimeofday=yes" 9820 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9821 cat >>confdefs.h <<_ACEOF 9822#define $ac_tr_func 1 9823_ACEOF 9824 9825 cat >>confdefs.h <<_ACEOF 9826#define $ac_tr_lib 1 9827_ACEOF 9828 9829 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9830echo "${ECHO_T}yes, in $ac_res" >&6 9831 ;; 9832esac 9833 9834 9835if test -n "$LIB_krb_kdctimeofday"; then 9836 LIBS="$LIB_krb_kdctimeofday $LIBS" 9837fi 9838 9839 9840 9841 9842 9843 9844 9845echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5 9846echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6 9847if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then 9848 echo $ECHO_N "(cached) $ECHO_C" >&6 9849else 9850 9851if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then 9852 ac_save_LIBS="$LIBS" 9853 for ac_lib in "" ; do 9854 case "$ac_lib" in 9855 "") ;; 9856 yes) ac_lib="" ;; 9857 no) continue ;; 9858 -l*) ;; 9859 *) ac_lib="-l$ac_lib" ;; 9860 esac 9861 LIBS=" $ac_lib $ac_save_LIBS" 9862 cat >conftest.$ac_ext <<_ACEOF 9863#line $LINENO "configure" 9864#include "confdefs.h" 9865 9866#ifdef F77_DUMMY_MAIN 9867# ifdef __cplusplus 9868 extern "C" 9869# endif 9870 int F77_DUMMY_MAIN() { return 1; } 9871#endif 9872int 9873main () 9874{ 9875krb_get_kdc_time_diff() 9876 ; 9877 return 0; 9878} 9879_ACEOF 9880rm -f conftest.$ac_objext conftest$ac_exeext 9881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9882 (eval $ac_link) 2>&5 9883 ac_status=$? 9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9885 (exit $ac_status); } && 9886 { ac_try='test -s conftest$ac_exeext' 9887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9888 (eval $ac_try) 2>&5 9889 ac_status=$? 9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9891 (exit $ac_status); }; }; then 9892 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break 9893else 9894 echo "$as_me: failed program was:" >&5 9895cat conftest.$ac_ext >&5 9896fi 9897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9898 done 9899 eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}" 9900 LIBS="$ac_save_LIBS" 9901fi 9902 9903fi 9904 9905 9906eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff" 9907 9908if false; then 9909 9910for ac_func in krb_get_kdc_time_diff 9911do 9912as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9913echo "$as_me:$LINENO: checking for $ac_func" >&5 9914echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9915if eval "test \"\${$as_ac_var+set}\" = set"; then 9916 echo $ECHO_N "(cached) $ECHO_C" >&6 9917else 9918 cat >conftest.$ac_ext <<_ACEOF 9919#line $LINENO "configure" 9920#include "confdefs.h" 9921/* System header to define __stub macros and hopefully few prototypes, 9922 which can conflict with char $ac_func (); below. */ 9923#include <assert.h> 9924/* Override any gcc2 internal prototype to avoid an error. */ 9925#ifdef __cplusplus 9926extern "C" 9927#endif 9928/* We use char because int might match the return type of a gcc2 9929 builtin and then its argument prototype would still apply. */ 9930char $ac_func (); 9931char (*f) (); 9932 9933#ifdef F77_DUMMY_MAIN 9934# ifdef __cplusplus 9935 extern "C" 9936# endif 9937 int F77_DUMMY_MAIN() { return 1; } 9938#endif 9939int 9940main () 9941{ 9942/* The GNU C library defines this for functions which it implements 9943 to always fail with ENOSYS. Some functions are actually named 9944 something starting with __ and the normal name is an alias. */ 9945#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9946choke me 9947#else 9948f = $ac_func; 9949#endif 9950 9951 ; 9952 return 0; 9953} 9954_ACEOF 9955rm -f conftest.$ac_objext conftest$ac_exeext 9956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9957 (eval $ac_link) 2>&5 9958 ac_status=$? 9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9960 (exit $ac_status); } && 9961 { ac_try='test -s conftest$ac_exeext' 9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9963 (eval $ac_try) 2>&5 9964 ac_status=$? 9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9966 (exit $ac_status); }; }; then 9967 eval "$as_ac_var=yes" 9968else 9969 echo "$as_me: failed program was:" >&5 9970cat conftest.$ac_ext >&5 9971eval "$as_ac_var=no" 9972fi 9973rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9974fi 9975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9976echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9977if test `eval echo '${'$as_ac_var'}'` = yes; then 9978 cat >>confdefs.h <<_ACEOF 9979#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9980_ACEOF 9981 9982fi 9983done 9984 9985fi 9986# krb_get_kdc_time_diff 9987eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9988eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9989eval "LIB_krb_get_kdc_time_diff=$ac_res" 9990 9991case "$ac_res" in 9992 yes) 9993 eval "ac_cv_func_krb_get_kdc_time_diff=yes" 9994 eval "LIB_krb_get_kdc_time_diff=" 9995 cat >>confdefs.h <<_ACEOF 9996#define $ac_tr_func 1 9997_ACEOF 9998 9999 echo "$as_me:$LINENO: result: yes" >&5 10000echo "${ECHO_T}yes" >&6 10001 ;; 10002 no) 10003 eval "ac_cv_func_krb_get_kdc_time_diff=no" 10004 eval "LIB_krb_get_kdc_time_diff=" 10005 echo "$as_me:$LINENO: result: no" >&5 10006echo "${ECHO_T}no" >&6 10007 ;; 10008 *) 10009 eval "ac_cv_func_krb_get_kdc_time_diff=yes" 10010 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 10011 cat >>confdefs.h <<_ACEOF 10012#define $ac_tr_func 1 10013_ACEOF 10014 10015 cat >>confdefs.h <<_ACEOF 10016#define $ac_tr_lib 1 10017_ACEOF 10018 10019 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 10020echo "${ECHO_T}yes, in $ac_res" >&6 10021 ;; 10022esac 10023 10024 10025if test -n "$LIB_krb_get_kdc_time_diff"; then 10026 LIBS="$LIB_krb_get_kdc_time_diff $LIBS" 10027fi 10028 10029 10030 10031 echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5 10032echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6 10033if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then 10034 echo $ECHO_N "(cached) $ECHO_C" >&6 10035else 10036 cat >conftest.$ac_ext <<_ACEOF 10037#line $LINENO "configure" 10038#include "confdefs.h" 10039#include <krb.h> 10040 #include <prot.h> 10041#ifdef F77_DUMMY_MAIN 10042# ifdef __cplusplus 10043 extern "C" 10044# endif 10045 int F77_DUMMY_MAIN() { return 1; } 10046#endif 10047int 10048main () 10049{ 10050 10051 char *x = KRB_SENDAUTH_VERS 10052 ; 10053 return 0; 10054} 10055_ACEOF 10056rm -f conftest.$ac_objext 10057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10058 (eval $ac_compile) 2>&5 10059 ac_status=$? 10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10061 (exit $ac_status); } && 10062 { ac_try='test -s conftest.$ac_objext' 10063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10064 (eval $ac_try) 2>&5 10065 ac_status=$? 10066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10067 (exit $ac_status); }; }; then 10068 ac_cv_func_krb_sendauth_vers=yes 10069else 10070 echo "$as_me: failed program was:" >&5 10071cat conftest.$ac_ext >&5 10072ac_cv_func_krb_sendauth_vers=no 10073fi 10074rm -f conftest.$ac_objext conftest.$ac_ext 10075 10076fi 10077echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5 10078echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6 10079 if test "$ac_cv_func_krb_sendauth_vers" != yes; then 10080 10081cat >>confdefs.h <<\_ACEOF 10082#define KRB_SENDAUTH_VERS "AUTHV0.1" 10083_ACEOF 10084 10085 fi 10086 echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5 10087echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6 10088if test "${ac_cv_func_krb_mk_req_const+set}" = set; then 10089 echo $ECHO_N "(cached) $ECHO_C" >&6 10090else 10091 cat >conftest.$ac_ext <<_ACEOF 10092#line $LINENO "configure" 10093#include "confdefs.h" 10094#include <krb.h> 10095 int krb_mk_req(KTEXT a, const char *s, const char *i, 10096 const char *r, int32_t checksum) 10097 { return 17; } 10098#ifdef F77_DUMMY_MAIN 10099# ifdef __cplusplus 10100 extern "C" 10101# endif 10102 int F77_DUMMY_MAIN() { return 1; } 10103#endif 10104int 10105main () 10106{ 10107 10108 ; 10109 return 0; 10110} 10111_ACEOF 10112rm -f conftest.$ac_objext 10113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10114 (eval $ac_compile) 2>&5 10115 ac_status=$? 10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10117 (exit $ac_status); } && 10118 { ac_try='test -s conftest.$ac_objext' 10119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10120 (eval $ac_try) 2>&5 10121 ac_status=$? 10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10123 (exit $ac_status); }; }; then 10124 ac_cv_func_krb_mk_req_const=yes 10125else 10126 echo "$as_me: failed program was:" >&5 10127cat conftest.$ac_ext >&5 10128ac_cv_func_krb_mk_req_const=no 10129fi 10130rm -f conftest.$ac_objext conftest.$ac_ext 10131 10132fi 10133echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5 10134echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6 10135 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then 10136 10137cat >>confdefs.h <<\_ACEOF 10138#define KRB_MK_REQ_CONST 1 10139_ACEOF 10140 10141 fi 10142 10143 LIBS="$save_LIBS" 10144 CFLAGS="$save_CFLAGS" 10145 LIB_kdb="-lkdb -lkrb" 10146fi 10147 10148 10149if test "$with_krb4" != "no"; then 10150 KRB4_TRUE= 10151 KRB4_FALSE='#' 10152else 10153 KRB4_TRUE='#' 10154 KRB4_FALSE= 10155fi 10156 10157 10158 10159if true; then 10160 KRB5_TRUE= 10161 KRB5_FALSE='#' 10162else 10163 KRB5_TRUE='#' 10164 KRB5_FALSE= 10165fi 10166 10167 10168 10169if true; then 10170 do_roken_rename_TRUE= 10171 do_roken_rename_FALSE='#' 10172else 10173 do_roken_rename_TRUE='#' 10174 do_roken_rename_FALSE= 10175fi 10176 10177 10178 10179cat >>confdefs.h <<\_ACEOF 10180#define KRB5 1 10181_ACEOF 10182 10183 10184crypto_lib=unknown 10185 10186 10187# Check whether --with-openssl or --without-openssl was given. 10188if test "${with_openssl+set}" = set; then 10189 withval="$with_openssl" 10190 10191fi; 10192 10193 10194# Check whether --with-openssl-lib or --without-openssl-lib was given. 10195if test "${with_openssl_lib+set}" = set; then 10196 withval="$with_openssl_lib" 10197 if test "$withval" = "yes" -o "$withval" = "no"; then 10198 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5 10199echo "$as_me: error: No argument for --with-openssl-lib" >&2;} 10200 { (exit 1); exit 1; }; } 10201elif test "X$with_openssl" = "X"; then 10202 with_openssl=yes 10203fi 10204fi; 10205 10206 10207# Check whether --with-openssl-include or --without-openssl-include was given. 10208if test "${with_openssl_include+set}" = set; then 10209 withval="$with_openssl_include" 10210 if test "$withval" = "yes" -o "$withval" = "no"; then 10211 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5 10212echo "$as_me: error: No argument for --with-openssl-include" >&2;} 10213 { (exit 1); exit 1; }; } 10214elif test "X$with_openssl" = "X"; then 10215 with_openssl=yes 10216fi 10217fi; 10218 10219case "$with_openssl" in 10220yes) ;; 10221no) ;; 10222"") ;; 10223*) if test "$with_openssl_include" = ""; then 10224 with_openssl_include="$with_openssl/include" 10225 fi 10226 if test "$with_openssl_lib" = ""; then 10227 with_openssl_lib="$with_openssl/lib$abilibdirext" 10228 fi 10229 ;; 10230esac 10231 10232 10233DIR_des= 10234 10235echo "$as_me:$LINENO: checking for crypto library" >&5 10236echo $ECHO_N "checking for crypto library... $ECHO_C" >&6 10237 10238openssl=no 10239old_hash=no 10240 10241if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then 10242 save_CPPFLAGS="$CPPFLAGS" 10243 save_LIBS="$LIBS" 10244 10245 cdirs= clibs= 10246 for i in $LIB_krb4; do 10247 case "$i" in 10248 -L*) cdirs="$cdirs $i";; 10249 -l*) clibs="$clibs $i";; 10250 esac 10251 done 10252 10253 ires= 10254 for i in $INCLUDE_krb4; do 10255 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
| 7696#include "confdefs.h" 7697 7698#if HAVE_DLFCN_H 7699#include <dlfcn.h> 7700#endif 7701 7702#include <stdio.h> 7703 7704#ifdef RTLD_GLOBAL 7705# define LT_DLGLOBAL RTLD_GLOBAL 7706#else 7707# ifdef DL_GLOBAL 7708# define LT_DLGLOBAL DL_GLOBAL 7709# else 7710# define LT_DLGLOBAL 0 7711# endif 7712#endif 7713 7714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 7715 find out it does not work in some platform. */ 7716#ifndef LT_DLLAZY_OR_NOW 7717# ifdef RTLD_LAZY 7718# define LT_DLLAZY_OR_NOW RTLD_LAZY 7719# else 7720# ifdef DL_LAZY 7721# define LT_DLLAZY_OR_NOW DL_LAZY 7722# else 7723# ifdef RTLD_NOW 7724# define LT_DLLAZY_OR_NOW RTLD_NOW 7725# else 7726# ifdef DL_NOW 7727# define LT_DLLAZY_OR_NOW DL_NOW 7728# else 7729# define LT_DLLAZY_OR_NOW 0 7730# endif 7731# endif 7732# endif 7733# endif 7734#endif 7735 7736#ifdef __cplusplus 7737extern "C" void exit (int); 7738#endif 7739 7740void fnord() { int i=42;} 7741int main () 7742{ 7743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 7744 int status = $lt_dlunknown; 7745 7746 if (self) 7747 { 7748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 7749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 7750 /* dlclose (self); */ 7751 } 7752 7753 exit (status); 7754} 7755EOF 7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7757 (eval $ac_link) 2>&5 7758 ac_status=$? 7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 7761 (./conftest; exit; ) 2>/dev/null 7762 lt_status=$? 7763 case x$lt_status in 7764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 7765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 7766 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 7767 esac 7768 else : 7769 # compilation failed 7770 lt_cv_dlopen_self_static=no 7771 fi 7772fi 7773rm -fr conftest* 7774 7775 7776fi 7777echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 7778echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 7779 fi 7780 7781 CPPFLAGS="$save_CPPFLAGS" 7782 LDFLAGS="$save_LDFLAGS" 7783 LIBS="$save_LIBS" 7784 ;; 7785 esac 7786 7787 case $lt_cv_dlopen_self in 7788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 7789 *) enable_dlopen_self=unknown ;; 7790 esac 7791 7792 case $lt_cv_dlopen_self_static in 7793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 7794 *) enable_dlopen_self_static=unknown ;; 7795 esac 7796fi 7797 7798 7799if test "$enable_shared" = yes && test "$GCC" = yes; then 7800 case $archive_cmds in 7801 *'~'*) 7802 # FIXME: we may have to deal with multi-command sequences. 7803 ;; 7804 '$CC '*) 7805 # Test whether the compiler implicitly links with -lc since on some 7806 # systems, -lgcc has to come before -lc. If gcc already passes -lc 7807 # to ld, don't add -lc before -lgcc. 7808 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7809echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7810 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then 7811 echo $ECHO_N "(cached) $ECHO_C" >&6 7812else 7813 $rm conftest* 7814 echo 'static int dummy;' > conftest.$ac_ext 7815 7816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7817 (eval $ac_compile) 2>&5 7818 ac_status=$? 7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7820 (exit $ac_status); }; then 7821 soname=conftest 7822 lib=conftest 7823 libobjs=conftest.$ac_objext 7824 deplibs= 7825 wl=$lt_cv_prog_cc_wl 7826 compiler_flags=-v 7827 linker_flags=-v 7828 verstring= 7829 output_objdir=. 7830 libname=conftest 7831 save_allow_undefined_flag=$allow_undefined_flag 7832 allow_undefined_flag= 7833 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7834 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7835 ac_status=$? 7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7837 (exit $ac_status); } 7838 then 7839 lt_cv_archive_cmds_need_lc=no 7840 else 7841 lt_cv_archive_cmds_need_lc=yes 7842 fi 7843 allow_undefined_flag=$save_allow_undefined_flag 7844 else 7845 cat conftest.err 1>&5 7846 fi 7847fi 7848 7849 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 7850echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 7851 ;; 7852 esac 7853fi 7854need_lc=${lt_cv_archive_cmds_need_lc-yes} 7855 7856# The second clause should only fire when bootstrapping the 7857# libtool distribution, otherwise you forgot to ship ltmain.sh 7858# with your package, and you will get complaints that there are 7859# no rules to generate ltmain.sh. 7860if test -f "$ltmain"; then 7861 : 7862else 7863 # If there is no Makefile yet, we rely on a make rule to execute 7864 # `config.status --recheck' to rerun these tests and create the 7865 # libtool script then. 7866 test -f Makefile && make "$ltmain" 7867fi 7868 7869if test -f "$ltmain"; then 7870 trap "$rm \"${ofile}T\"; exit 1" 1 2 15 7871 $rm -f "${ofile}T" 7872 7873 echo creating $ofile 7874 7875 # Now quote all the things that may contain metacharacters while being 7876 # careful not to overquote the AC_SUBSTed values. We take copies of the 7877 # variables and quote the copies for generation of the libtool script. 7878 for var in echo old_CC old_CFLAGS \ 7879 AR AR_FLAGS CC LD LN_S NM SHELL \ 7880 reload_flag reload_cmds wl \ 7881 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 7882 thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 7883 library_names_spec soname_spec \ 7884 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 7885 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 7886 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 7887 old_striplib striplib file_magic_cmd export_symbols_cmds \ 7888 deplibs_check_method allow_undefined_flag no_undefined_flag \ 7889 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 7890 global_symbol_to_c_name_address \ 7891 hardcode_libdir_flag_spec hardcode_libdir_separator \ 7892 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 7893 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 7894 7895 case $var in 7896 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 7897 old_postinstall_cmds | old_postuninstall_cmds | \ 7898 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 7899 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 7900 postinstall_cmds | postuninstall_cmds | \ 7901 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 7902 # Double-quote double-evaled strings. 7903 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 7904 ;; 7905 *) 7906 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 7907 ;; 7908 esac 7909 done 7910 7911 cat <<__EOF__ > "${ofile}T" 7912#! $SHELL 7913 7914# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 7915# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 7916# NOTE: Changes made to this file will be lost: look at ltmain.sh. 7917# 7918# Copyright (C) 1996-2000 Free Software Foundation, Inc. 7919# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 7920# 7921# This program is free software; you can redistribute it and/or modify 7922# it under the terms of the GNU General Public License as published by 7923# the Free Software Foundation; either version 2 of the License, or 7924# (at your option) any later version. 7925# 7926# This program is distributed in the hope that it will be useful, but 7927# WITHOUT ANY WARRANTY; without even the implied warranty of 7928# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 7929# General Public License for more details. 7930# 7931# You should have received a copy of the GNU General Public License 7932# along with this program; if not, write to the Free Software 7933# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 7934# 7935# As a special exception to the GNU General Public License, if you 7936# distribute this file as part of a program that contains a 7937# configuration script generated by Autoconf, you may include it under 7938# the same distribution terms that you use for the rest of that program. 7939 7940# Sed that helps us avoid accidentally triggering echo(1) options like -n. 7941Xsed="sed -e s/^X//" 7942 7943# The HP-UX ksh and POSIX shell print the target directory to stdout 7944# if CDPATH is set. 7945if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 7946 7947# ### BEGIN LIBTOOL CONFIG 7948 7949# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 7950 7951# Shell to use when invoking shell scripts. 7952SHELL=$lt_SHELL 7953 7954# Whether or not to build shared libraries. 7955build_libtool_libs=$enable_shared 7956 7957# Whether or not to build static libraries. 7958build_old_libs=$enable_static 7959 7960# Whether or not to add -lc for building shared libraries. 7961build_libtool_need_lc=$need_lc 7962 7963# Whether or not to optimize for fast installation. 7964fast_install=$enable_fast_install 7965 7966# The host system. 7967host_alias=$host_alias 7968host=$host 7969 7970# An echo program that does not interpret backslashes. 7971echo=$lt_echo 7972 7973# The archiver. 7974AR=$lt_AR 7975AR_FLAGS=$lt_AR_FLAGS 7976 7977# The default C compiler. 7978CC=$lt_CC 7979 7980# Is the compiler the GNU C compiler? 7981with_gcc=$GCC 7982 7983# The linker used to build libraries. 7984LD=$lt_LD 7985 7986# Whether we need hard or soft links. 7987LN_S=$lt_LN_S 7988 7989# A BSD-compatible nm program. 7990NM=$lt_NM 7991 7992# A symbol stripping program 7993STRIP=$STRIP 7994 7995# Used to examine libraries when file_magic_cmd begins "file" 7996MAGIC_CMD=$MAGIC_CMD 7997 7998# Used on cygwin: DLL creation program. 7999DLLTOOL="$DLLTOOL" 8000 8001# Used on cygwin: object dumper. 8002OBJDUMP="$OBJDUMP" 8003 8004# Used on cygwin: assembler. 8005AS="$AS" 8006 8007# The name of the directory that contains temporary libtool files. 8008objdir=$objdir 8009 8010# How to create reloadable object files. 8011reload_flag=$lt_reload_flag 8012reload_cmds=$lt_reload_cmds 8013 8014# How to pass a linker flag through the compiler. 8015wl=$lt_wl 8016 8017# Object file suffix (normally "o"). 8018objext="$ac_objext" 8019 8020# Old archive suffix (normally "a"). 8021libext="$libext" 8022 8023# Executable file suffix (normally ""). 8024exeext="$exeext" 8025 8026# Additional compiler flags for building library objects. 8027pic_flag=$lt_pic_flag 8028pic_mode=$pic_mode 8029 8030# Does compiler simultaneously support -c and -o options? 8031compiler_c_o=$lt_compiler_c_o 8032 8033# Can we write directly to a .lo ? 8034compiler_o_lo=$lt_compiler_o_lo 8035 8036# Must we lock files when doing compilation ? 8037need_locks=$lt_need_locks 8038 8039# Do we need the lib prefix for modules? 8040need_lib_prefix=$need_lib_prefix 8041 8042# Do we need a version for libraries? 8043need_version=$need_version 8044 8045# Whether dlopen is supported. 8046dlopen_support=$enable_dlopen 8047 8048# Whether dlopen of programs is supported. 8049dlopen_self=$enable_dlopen_self 8050 8051# Whether dlopen of statically linked programs is supported. 8052dlopen_self_static=$enable_dlopen_self_static 8053 8054# Compiler flag to prevent dynamic linking. 8055link_static_flag=$lt_link_static_flag 8056 8057# Compiler flag to turn off builtin functions. 8058no_builtin_flag=$lt_no_builtin_flag 8059 8060# Compiler flag to allow reflexive dlopens. 8061export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8062 8063# Compiler flag to generate shared objects directly from archives. 8064whole_archive_flag_spec=$lt_whole_archive_flag_spec 8065 8066# Compiler flag to generate thread-safe objects. 8067thread_safe_flag_spec=$lt_thread_safe_flag_spec 8068 8069# Library versioning type. 8070version_type=$version_type 8071 8072# Format of library name prefix. 8073libname_spec=$lt_libname_spec 8074 8075# List of archive names. First name is the real one, the rest are links. 8076# The last name is the one that the linker finds with -lNAME. 8077library_names_spec=$lt_library_names_spec 8078 8079# The coded name of the library, if different from the real name. 8080soname_spec=$lt_soname_spec 8081 8082# Commands used to build and install an old-style archive. 8083RANLIB=$lt_RANLIB 8084old_archive_cmds=$lt_old_archive_cmds 8085old_postinstall_cmds=$lt_old_postinstall_cmds 8086old_postuninstall_cmds=$lt_old_postuninstall_cmds 8087 8088# Create an old-style archive from a shared archive. 8089old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8090 8091# Create a temporary old-style archive to link instead of a shared archive. 8092old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8093 8094# Commands used to build and install a shared archive. 8095archive_cmds=$lt_archive_cmds 8096archive_expsym_cmds=$lt_archive_expsym_cmds 8097postinstall_cmds=$lt_postinstall_cmds 8098postuninstall_cmds=$lt_postuninstall_cmds 8099 8100# Commands to strip libraries. 8101old_striplib=$lt_old_striplib 8102striplib=$lt_striplib 8103 8104# Method to check whether dependent libraries are shared objects. 8105deplibs_check_method=$lt_deplibs_check_method 8106 8107# Command to use when deplibs_check_method == file_magic. 8108file_magic_cmd=$lt_file_magic_cmd 8109 8110# Flag that allows shared libraries with undefined symbols to be built. 8111allow_undefined_flag=$lt_allow_undefined_flag 8112 8113# Flag that forces no undefined symbols. 8114no_undefined_flag=$lt_no_undefined_flag 8115 8116# Commands used to finish a libtool library installation in a directory. 8117finish_cmds=$lt_finish_cmds 8118 8119# Same as above, but a single script fragment to be evaled but not shown. 8120finish_eval=$lt_finish_eval 8121 8122# Take the output of nm and produce a listing of raw symbols and C names. 8123global_symbol_pipe=$lt_global_symbol_pipe 8124 8125# Transform the output of nm in a proper C declaration 8126global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 8127 8128# Transform the output of nm in a C name address pair 8129global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 8130 8131# This is the shared library runtime path variable. 8132runpath_var=$runpath_var 8133 8134# This is the shared library path variable. 8135shlibpath_var=$shlibpath_var 8136 8137# Is shlibpath searched before the hard-coded library search path? 8138shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8139 8140# How to hardcode a shared library path into an executable. 8141hardcode_action=$hardcode_action 8142 8143# Whether we should hardcode library paths into libraries. 8144hardcode_into_libs=$hardcode_into_libs 8145 8146# Flag to hardcode \$libdir into a binary during linking. 8147# This must work even if \$libdir does not exist. 8148hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8149 8150# Whether we need a single -rpath flag with a separated argument. 8151hardcode_libdir_separator=$lt_hardcode_libdir_separator 8152 8153# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 8154# resulting binary. 8155hardcode_direct=$hardcode_direct 8156 8157# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8158# resulting binary. 8159hardcode_minus_L=$hardcode_minus_L 8160 8161# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8162# the resulting binary. 8163hardcode_shlibpath_var=$hardcode_shlibpath_var 8164 8165# Variables whose values should be saved in libtool wrapper scripts and 8166# restored at relink time. 8167variables_saved_for_relink="$variables_saved_for_relink" 8168 8169# Whether libtool must link a program against all its dependency libraries. 8170link_all_deplibs=$link_all_deplibs 8171 8172# Compile-time system search path for libraries 8173sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8174 8175# Run-time system search path for libraries 8176sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8177 8178# Fix the shell variable \$srcfile for the compiler. 8179fix_srcfile_path="$fix_srcfile_path" 8180 8181# Set to yes if exported symbols are required. 8182always_export_symbols=$always_export_symbols 8183 8184# The commands to list exported symbols. 8185export_symbols_cmds=$lt_export_symbols_cmds 8186 8187# The commands to extract the exported symbol list from a shared archive. 8188extract_expsyms_cmds=$lt_extract_expsyms_cmds 8189 8190# Symbols that should not be listed in the preloaded symbols. 8191exclude_expsyms=$lt_exclude_expsyms 8192 8193# Symbols that must always be exported. 8194include_expsyms=$lt_include_expsyms 8195 8196# ### END LIBTOOL CONFIG 8197 8198__EOF__ 8199 8200 case $host_os in 8201 aix3*) 8202 cat <<\EOF >> "${ofile}T" 8203 8204# AIX sometimes has problems with the GCC collect2 program. For some 8205# reason, if we set the COLLECT_NAMES environment variable, the problems 8206# vanish in a puff of smoke. 8207if test "X${COLLECT_NAMES+set}" != Xset; then 8208 COLLECT_NAMES= 8209 export COLLECT_NAMES 8210fi 8211EOF 8212 ;; 8213 esac 8214 8215 case $host_os in 8216 cygwin* | mingw* | pw32* | os2*) 8217 cat <<'EOF' >> "${ofile}T" 8218 # This is a source program that is used to create dlls on Windows 8219 # Don't remove nor modify the starting and closing comments 8220# /* ltdll.c starts here */ 8221# #define WIN32_LEAN_AND_MEAN 8222# #include <windows.h> 8223# #undef WIN32_LEAN_AND_MEAN 8224# #include <stdio.h> 8225# 8226# #ifndef __CYGWIN__ 8227# # ifdef __CYGWIN32__ 8228# # define __CYGWIN__ __CYGWIN32__ 8229# # endif 8230# #endif 8231# 8232# #ifdef __cplusplus 8233# extern "C" { 8234# #endif 8235# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 8236# #ifdef __cplusplus 8237# } 8238# #endif 8239# 8240# #ifdef __CYGWIN__ 8241# #include <cygwin/cygwin_dll.h> 8242# DECLARE_CYGWIN_DLL( DllMain ); 8243# #endif 8244# HINSTANCE __hDllInstance_base; 8245# 8246# BOOL APIENTRY 8247# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 8248# { 8249# __hDllInstance_base = hInst; 8250# return TRUE; 8251# } 8252# /* ltdll.c ends here */ 8253 # This is a source program that is used to create import libraries 8254 # on Windows for dlls which lack them. Don't remove nor modify the 8255 # starting and closing comments 8256# /* impgen.c starts here */ 8257# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 8258# 8259# This file is part of GNU libtool. 8260# 8261# This program is free software; you can redistribute it and/or modify 8262# it under the terms of the GNU General Public License as published by 8263# the Free Software Foundation; either version 2 of the License, or 8264# (at your option) any later version. 8265# 8266# This program is distributed in the hope that it will be useful, 8267# but WITHOUT ANY WARRANTY; without even the implied warranty of 8268# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 8269# GNU General Public License for more details. 8270# 8271# You should have received a copy of the GNU General Public License 8272# along with this program; if not, write to the Free Software 8273# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8274# */ 8275# 8276# #include <stdio.h> /* for printf() */ 8277# #include <unistd.h> /* for open(), lseek(), read() */ 8278# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 8279# #include <string.h> /* for strdup() */ 8280# 8281# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 8282# #ifndef O_BINARY 8283# #define O_BINARY 0 8284# #endif 8285# 8286# static unsigned int 8287# pe_get16 (fd, offset) 8288# int fd; 8289# int offset; 8290# { 8291# unsigned char b[2]; 8292# lseek (fd, offset, SEEK_SET); 8293# read (fd, b, 2); 8294# return b[0] + (b[1]<<8); 8295# } 8296# 8297# static unsigned int 8298# pe_get32 (fd, offset) 8299# int fd; 8300# int offset; 8301# { 8302# unsigned char b[4]; 8303# lseek (fd, offset, SEEK_SET); 8304# read (fd, b, 4); 8305# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8306# } 8307# 8308# static unsigned int 8309# pe_as32 (ptr) 8310# void *ptr; 8311# { 8312# unsigned char *b = ptr; 8313# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 8314# } 8315# 8316# int 8317# main (argc, argv) 8318# int argc; 8319# char *argv[]; 8320# { 8321# int dll; 8322# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 8323# unsigned long export_rva, export_size, nsections, secptr, expptr; 8324# unsigned long name_rvas, nexp; 8325# unsigned char *expdata, *erva; 8326# char *filename, *dll_name; 8327# 8328# filename = argv[1]; 8329# 8330# dll = open(filename, O_RDONLY|O_BINARY); 8331# if (dll < 1) 8332# return 1; 8333# 8334# dll_name = filename; 8335# 8336# for (i=0; filename[i]; i++) 8337# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 8338# dll_name = filename + i +1; 8339# 8340# pe_header_offset = pe_get32 (dll, 0x3c); 8341# opthdr_ofs = pe_header_offset + 4 + 20; 8342# num_entries = pe_get32 (dll, opthdr_ofs + 92); 8343# 8344# if (num_entries < 1) /* no exports */ 8345# return 1; 8346# 8347# export_rva = pe_get32 (dll, opthdr_ofs + 96); 8348# export_size = pe_get32 (dll, opthdr_ofs + 100); 8349# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 8350# secptr = (pe_header_offset + 4 + 20 + 8351# pe_get16 (dll, pe_header_offset + 4 + 16)); 8352# 8353# expptr = 0; 8354# for (i = 0; i < nsections; i++) 8355# { 8356# char sname[8]; 8357# unsigned long secptr1 = secptr + 40 * i; 8358# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 8359# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 8360# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 8361# lseek(dll, secptr1, SEEK_SET); 8362# read(dll, sname, 8); 8363# if (vaddr <= export_rva && vaddr+vsize > export_rva) 8364# { 8365# expptr = fptr + (export_rva - vaddr); 8366# if (export_rva + export_size > vaddr + vsize) 8367# export_size = vsize - (export_rva - vaddr); 8368# break; 8369# } 8370# } 8371# 8372# expdata = (unsigned char*)malloc(export_size); 8373# lseek (dll, expptr, SEEK_SET); 8374# read (dll, expdata, export_size); 8375# erva = expdata - export_rva; 8376# 8377# nexp = pe_as32 (expdata+24); 8378# name_rvas = pe_as32 (expdata+32); 8379# 8380# printf ("EXPORTS\n"); 8381# for (i = 0; i<nexp; i++) 8382# { 8383# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 8384# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 8385# } 8386# 8387# return 0; 8388# } 8389# /* impgen.c ends here */ 8390 8391EOF 8392 ;; 8393 esac 8394 8395 # We use sed instead of cat because bash on DJGPP gets confused if 8396 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8397 # text mode, it properly converts lines to CR/LF. This bash problem 8398 # is reportedly fixed, but why not run on old versions too? 8399 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 8400 8401 mv -f "${ofile}T" "$ofile" || \ 8402 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 8403 chmod +x "$ofile" 8404fi 8405 8406 8407 8408 8409 8410# This can be used to rebuild libtool when needed 8411LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 8412 8413# Always use our own libtool. 8414LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8415 8416# Prevent multiple expansion 8417 8418 8419 8420 8421WFLAGS_NOUNUSED="" 8422WFLAGS_NOIMPLICITINT="" 8423if test -z "$WFLAGS" -a "$GCC" = "yes"; then 8424 # -Wno-implicit-int for broken X11 headers 8425 # leave these out for now: 8426 # -Wcast-align doesn't work well on alpha osf/1 8427 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 8428 # -Wmissing-declarations -Wnested-externs 8429 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 8430 WFLAGS_NOUNUSED="-Wno-unused" 8431 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 8432fi 8433 8434 8435 8436 8437# Check whether --with-openldap or --without-openldap was given. 8438if test "${with_openldap+set}" = set; then 8439 withval="$with_openldap" 8440 8441fi; 8442 8443# Check whether --with-openldap-lib or --without-openldap-lib was given. 8444if test "${with_openldap_lib+set}" = set; then 8445 withval="$with_openldap_lib" 8446 if test "$withval" = "yes" -o "$withval" = "no"; then 8447 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-lib" >&5 8448echo "$as_me: error: No argument for --with-openldap-lib" >&2;} 8449 { (exit 1); exit 1; }; } 8450elif test "X$with_openldap" = "X"; then 8451 with_openldap=yes 8452fi 8453fi; 8454 8455# Check whether --with-openldap-include or --without-openldap-include was given. 8456if test "${with_openldap_include+set}" = set; then 8457 withval="$with_openldap_include" 8458 if test "$withval" = "yes" -o "$withval" = "no"; then 8459 { { echo "$as_me:$LINENO: error: No argument for --with-openldap-include" >&5 8460echo "$as_me: error: No argument for --with-openldap-include" >&2;} 8461 { (exit 1); exit 1; }; } 8462elif test "X$with_openldap" = "X"; then 8463 with_openldap=yes 8464fi 8465fi; 8466 8467# Check whether --with-openldap-config or --without-openldap-config was given. 8468if test "${with_openldap_config+set}" = set; then 8469 withval="$with_openldap_config" 8470 8471fi; 8472 8473 8474 8475echo "$as_me:$LINENO: checking for openldap" >&5 8476echo $ECHO_N "checking for openldap... $ECHO_C" >&6 8477 8478case "$with_openldap" in 8479yes|"") d='' ;; 8480no) d= ;; 8481*) d="$with_openldap" ;; 8482esac 8483 8484header_dirs= 8485lib_dirs= 8486for i in $d; do 8487 if test "$with_openldap_include" = ""; then 8488 if test -d "$i/include/openldap"; then 8489 header_dirs="$header_dirs $i/include/openldap" 8490 fi 8491 if test -d "$i/include"; then 8492 header_dirs="$header_dirs $i/include" 8493 fi 8494 fi 8495 if test "$with_openldap_lib" = ""; then 8496 if test -d "$i/lib$abilibdirext"; then 8497 lib_dirs="$lib_dirs $i/lib$abilibdirext" 8498 fi 8499 fi 8500done 8501 8502if test "$with_openldap_include"; then 8503 header_dirs="$with_openldap_include $header_dirs" 8504fi 8505if test "$with_openldap_lib"; then 8506 lib_dirs="$with_openldap_lib $lib_dirs" 8507fi 8508 8509if test "$with_openldap_config" = ""; then 8510 with_openldap_config='' 8511fi 8512 8513openldap_cflags= 8514openldap_libs= 8515 8516case "$with_openldap_config" in 8517yes|no|"") 8518 ;; 8519*) 8520 openldap_cflags="`$with_openldap_config --cflags 2>&1`" 8521 openldap_libs="`$with_openldap_config --libs 2>&1`" 8522 ;; 8523esac 8524 8525found=no 8526if test "$with_openldap" != no; then 8527 save_CFLAGS="$CFLAGS" 8528 save_LIBS="$LIBS" 8529 if test "$openldap_cflags" -a "$openldap_libs"; then 8530 CFLAGS="$openldap_cflags $save_CFLAGS" 8531 LIBS="$openldap_libs $save_LIBS" 8532 cat >conftest.$ac_ext <<_ACEOF 8533#line $LINENO "configure" 8534#include "confdefs.h" 8535#include <lber.h> 8536#include <ldap.h> 8537#ifdef F77_DUMMY_MAIN 8538# ifdef __cplusplus 8539 extern "C" 8540# endif 8541 int F77_DUMMY_MAIN() { return 1; } 8542#endif 8543int 8544main () 8545{ 8546 8547 ; 8548 return 0; 8549} 8550_ACEOF 8551rm -f conftest.$ac_objext conftest$ac_exeext 8552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8553 (eval $ac_link) 2>&5 8554 ac_status=$? 8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8556 (exit $ac_status); } && 8557 { ac_try='test -s conftest$ac_exeext' 8558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8559 (eval $ac_try) 2>&5 8560 ac_status=$? 8561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8562 (exit $ac_status); }; }; then 8563 8564 INCLUDE_openldap="$openldap_cflags" 8565 LIB_openldap="$openldap_libs" 8566 echo "$as_me:$LINENO: result: from $with_openldap_config" >&5 8567echo "${ECHO_T}from $with_openldap_config" >&6 8568 found=yes 8569else 8570 echo "$as_me: failed program was:" >&5 8571cat conftest.$ac_ext >&5 8572fi 8573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8574 fi 8575 if test "$found" = no; then 8576 ires= lres= 8577 for i in $header_dirs; do 8578 CFLAGS="-I$i $save_CFLAGS" 8579 cat >conftest.$ac_ext <<_ACEOF 8580#line $LINENO "configure" 8581#include "confdefs.h" 8582#include <lber.h> 8583#include <ldap.h> 8584#ifdef F77_DUMMY_MAIN 8585# ifdef __cplusplus 8586 extern "C" 8587# endif 8588 int F77_DUMMY_MAIN() { return 1; } 8589#endif 8590int 8591main () 8592{ 8593 8594 ; 8595 return 0; 8596} 8597_ACEOF 8598rm -f conftest.$ac_objext 8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8600 (eval $ac_compile) 2>&5 8601 ac_status=$? 8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8603 (exit $ac_status); } && 8604 { ac_try='test -s conftest.$ac_objext' 8605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8606 (eval $ac_try) 2>&5 8607 ac_status=$? 8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8609 (exit $ac_status); }; }; then 8610 ires=$i;break 8611else 8612 echo "$as_me: failed program was:" >&5 8613cat conftest.$ac_ext >&5 8614fi 8615rm -f conftest.$ac_objext conftest.$ac_ext 8616 done 8617 for i in $lib_dirs; do 8618 LIBS="-L$i -lldap -llber $save_LIBS" 8619 cat >conftest.$ac_ext <<_ACEOF 8620#line $LINENO "configure" 8621#include "confdefs.h" 8622#include <lber.h> 8623#include <ldap.h> 8624#ifdef F77_DUMMY_MAIN 8625# ifdef __cplusplus 8626 extern "C" 8627# endif 8628 int F77_DUMMY_MAIN() { return 1; } 8629#endif 8630int 8631main () 8632{ 8633 8634 ; 8635 return 0; 8636} 8637_ACEOF 8638rm -f conftest.$ac_objext conftest$ac_exeext 8639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8640 (eval $ac_link) 2>&5 8641 ac_status=$? 8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8643 (exit $ac_status); } && 8644 { ac_try='test -s conftest$ac_exeext' 8645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8646 (eval $ac_try) 2>&5 8647 ac_status=$? 8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8649 (exit $ac_status); }; }; then 8650 lres=$i;break 8651else 8652 echo "$as_me: failed program was:" >&5 8653cat conftest.$ac_ext >&5 8654fi 8655rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8656 done 8657 if test "$ires" -a "$lres" -a "$with_openldap" != "no"; then 8658 INCLUDE_openldap="-I$ires" 8659 LIB_openldap="-L$lres -lldap -llber " 8660 found=yes 8661 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 8662echo "${ECHO_T}headers $ires, libraries $lres" >&6 8663 fi 8664 fi 8665 CFLAGS="$save_CFLAGS" 8666 LIBS="$save_LIBS" 8667fi 8668 8669if test "$found" = yes; then 8670 8671cat >>confdefs.h <<_ACEOF 8672#define OPENLDAP 1 8673_ACEOF 8674 8675 with_openldap=yes 8676else 8677 with_openldap=no 8678 INCLUDE_openldap= 8679 LIB_openldap= 8680 echo "$as_me:$LINENO: result: no" >&5 8681echo "${ECHO_T}no" >&6 8682fi 8683 8684 8685 8686 8687 8688 8689 8690# Check whether --with-krb4 or --without-krb4 was given. 8691if test "${with_krb4+set}" = set; then 8692 withval="$with_krb4" 8693 8694fi; 8695 8696# Check whether --with-krb4-lib or --without-krb4-lib was given. 8697if test "${with_krb4_lib+set}" = set; then 8698 withval="$with_krb4_lib" 8699 if test "$withval" = "yes" -o "$withval" = "no"; then 8700 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-lib" >&5 8701echo "$as_me: error: No argument for --with-krb4-lib" >&2;} 8702 { (exit 1); exit 1; }; } 8703elif test "X$with_krb4" = "X"; then 8704 with_krb4=yes 8705fi 8706fi; 8707 8708# Check whether --with-krb4-include or --without-krb4-include was given. 8709if test "${with_krb4_include+set}" = set; then 8710 withval="$with_krb4_include" 8711 if test "$withval" = "yes" -o "$withval" = "no"; then 8712 { { echo "$as_me:$LINENO: error: No argument for --with-krb4-include" >&5 8713echo "$as_me: error: No argument for --with-krb4-include" >&2;} 8714 { (exit 1); exit 1; }; } 8715elif test "X$with_krb4" = "X"; then 8716 with_krb4=yes 8717fi 8718fi; 8719 8720# Check whether --with-krb4-config or --without-krb4-config was given. 8721if test "${with_krb4_config+set}" = set; then 8722 withval="$with_krb4_config" 8723 8724fi; 8725 8726 8727 8728echo "$as_me:$LINENO: checking for krb4" >&5 8729echo $ECHO_N "checking for krb4... $ECHO_C" >&6 8730 8731case "$with_krb4" in 8732yes|"") d='/usr/athena' ;; 8733no) d= ;; 8734*) d="$with_krb4" ;; 8735esac 8736 8737header_dirs= 8738lib_dirs= 8739for i in $d; do 8740 if test "$with_krb4_include" = ""; then 8741 if test -d "$i/include/krb4"; then 8742 header_dirs="$header_dirs $i/include/krb4" 8743 fi 8744 if test -d "$i/include"; then 8745 header_dirs="$header_dirs $i/include" 8746 fi 8747 fi 8748 if test "$with_krb4_lib" = ""; then 8749 if test -d "$i/lib$abilibdirext"; then 8750 lib_dirs="$lib_dirs $i/lib$abilibdirext" 8751 fi 8752 fi 8753done 8754 8755if test "$with_krb4_include"; then 8756 header_dirs="$with_krb4_include $header_dirs" 8757fi 8758if test "$with_krb4_lib"; then 8759 lib_dirs="$with_krb4_lib $lib_dirs" 8760fi 8761 8762if test "$with_krb4_config" = ""; then 8763 with_krb4_config='krb4-config' 8764fi 8765 8766krb4_cflags= 8767krb4_libs= 8768 8769case "$with_krb4_config" in 8770yes|no|"") 8771 ;; 8772*) 8773 krb4_cflags="`$with_krb4_config --cflags 2>&1`" 8774 krb4_libs="`$with_krb4_config --libs 2>&1`" 8775 ;; 8776esac 8777 8778found=no 8779if test "$with_krb4" != no; then 8780 save_CFLAGS="$CFLAGS" 8781 save_LIBS="$LIBS" 8782 if test "$krb4_cflags" -a "$krb4_libs"; then 8783 CFLAGS="$krb4_cflags $save_CFLAGS" 8784 LIBS="$krb4_libs $save_LIBS" 8785 cat >conftest.$ac_ext <<_ACEOF 8786#line $LINENO "configure" 8787#include "confdefs.h" 8788#include <krb.h> 8789#ifdef F77_DUMMY_MAIN 8790# ifdef __cplusplus 8791 extern "C" 8792# endif 8793 int F77_DUMMY_MAIN() { return 1; } 8794#endif 8795int 8796main () 8797{ 8798 8799 ; 8800 return 0; 8801} 8802_ACEOF 8803rm -f conftest.$ac_objext conftest$ac_exeext 8804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8805 (eval $ac_link) 2>&5 8806 ac_status=$? 8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8808 (exit $ac_status); } && 8809 { ac_try='test -s conftest$ac_exeext' 8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8811 (eval $ac_try) 2>&5 8812 ac_status=$? 8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8814 (exit $ac_status); }; }; then 8815 8816 INCLUDE_krb4="$krb4_cflags" 8817 LIB_krb4="$krb4_libs" 8818 echo "$as_me:$LINENO: result: from $with_krb4_config" >&5 8819echo "${ECHO_T}from $with_krb4_config" >&6 8820 found=yes 8821else 8822 echo "$as_me: failed program was:" >&5 8823cat conftest.$ac_ext >&5 8824fi 8825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8826 fi 8827 if test "$found" = no; then 8828 ires= lres= 8829 for i in $header_dirs; do 8830 CFLAGS="-I$i $save_CFLAGS" 8831 cat >conftest.$ac_ext <<_ACEOF 8832#line $LINENO "configure" 8833#include "confdefs.h" 8834#include <krb.h> 8835#ifdef F77_DUMMY_MAIN 8836# ifdef __cplusplus 8837 extern "C" 8838# endif 8839 int F77_DUMMY_MAIN() { return 1; } 8840#endif 8841int 8842main () 8843{ 8844 8845 ; 8846 return 0; 8847} 8848_ACEOF 8849rm -f conftest.$ac_objext 8850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8851 (eval $ac_compile) 2>&5 8852 ac_status=$? 8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8854 (exit $ac_status); } && 8855 { ac_try='test -s conftest.$ac_objext' 8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8857 (eval $ac_try) 2>&5 8858 ac_status=$? 8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8860 (exit $ac_status); }; }; then 8861 ires=$i;break 8862else 8863 echo "$as_me: failed program was:" >&5 8864cat conftest.$ac_ext >&5 8865fi 8866rm -f conftest.$ac_objext conftest.$ac_ext 8867 done 8868 for i in $lib_dirs; do 8869 LIBS="-L$i -lkrb -ldes $save_LIBS" 8870 cat >conftest.$ac_ext <<_ACEOF 8871#line $LINENO "configure" 8872#include "confdefs.h" 8873#include <krb.h> 8874#ifdef F77_DUMMY_MAIN 8875# ifdef __cplusplus 8876 extern "C" 8877# endif 8878 int F77_DUMMY_MAIN() { return 1; } 8879#endif 8880int 8881main () 8882{ 8883 8884 ; 8885 return 0; 8886} 8887_ACEOF 8888rm -f conftest.$ac_objext conftest$ac_exeext 8889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8890 (eval $ac_link) 2>&5 8891 ac_status=$? 8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8893 (exit $ac_status); } && 8894 { ac_try='test -s conftest$ac_exeext' 8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8896 (eval $ac_try) 2>&5 8897 ac_status=$? 8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8899 (exit $ac_status); }; }; then 8900 lres=$i;break 8901else 8902 echo "$as_me: failed program was:" >&5 8903cat conftest.$ac_ext >&5 8904fi 8905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 8906 done 8907 if test "$ires" -a "$lres" -a "$with_krb4" != "no"; then 8908 INCLUDE_krb4="-I$ires" 8909 LIB_krb4="-L$lres -lkrb -ldes" 8910 found=yes 8911 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 8912echo "${ECHO_T}headers $ires, libraries $lres" >&6 8913 fi 8914 fi 8915 CFLAGS="$save_CFLAGS" 8916 LIBS="$save_LIBS" 8917fi 8918 8919if test "$found" = yes; then 8920 8921cat >>confdefs.h <<_ACEOF 8922#define KRB4 1 8923_ACEOF 8924 8925 with_krb4=yes 8926else 8927 with_krb4=no 8928 INCLUDE_krb4= 8929 LIB_krb4= 8930 echo "$as_me:$LINENO: result: no" >&5 8931echo "${ECHO_T}no" >&6 8932fi 8933 8934 8935 8936 8937 8938LIB_kdb= 8939if test "$with_krb4" != "no"; then 8940 save_CFLAGS="$CFLAGS" 8941 CFLAGS="$CFLAGS $INCLUDE_krb4" 8942 save_LIBS="$LIBS" 8943 LIBS="$LIB_krb4 $LIBS" 8944 EXTRA_LIB45=lib45.a 8945 8946 echo "$as_me:$LINENO: checking for four valued krb_put_int" >&5 8947echo $ECHO_N "checking for four valued krb_put_int... $ECHO_C" >&6 8948if test "${ac_cv_func_krb_put_int_four+set}" = set; then 8949 echo $ECHO_N "(cached) $ECHO_C" >&6 8950else 8951 cat >conftest.$ac_ext <<_ACEOF 8952#line $LINENO "configure" 8953#include "confdefs.h" 8954#include <krb.h> 8955#ifdef F77_DUMMY_MAIN 8956# ifdef __cplusplus 8957 extern "C" 8958# endif 8959 int F77_DUMMY_MAIN() { return 1; } 8960#endif 8961int 8962main () 8963{ 8964 8965 char tmp[4]; 8966 krb_put_int(17, tmp, 4, sizeof(tmp)); 8967 ; 8968 return 0; 8969} 8970_ACEOF 8971rm -f conftest.$ac_objext 8972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8973 (eval $ac_compile) 2>&5 8974 ac_status=$? 8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8976 (exit $ac_status); } && 8977 { ac_try='test -s conftest.$ac_objext' 8978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8979 (eval $ac_try) 2>&5 8980 ac_status=$? 8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8982 (exit $ac_status); }; }; then 8983 ac_cv_func_krb_put_int_four=yes 8984else 8985 echo "$as_me: failed program was:" >&5 8986cat conftest.$ac_ext >&5 8987ac_cv_func_krb_put_int_four=no 8988fi 8989rm -f conftest.$ac_objext conftest.$ac_ext 8990 8991fi 8992echo "$as_me:$LINENO: result: $ac_cv_func_krb_put_int_four" >&5 8993echo "${ECHO_T}$ac_cv_func_krb_put_int_four" >&6 8994 if test "$ac_cv_func_krb_put_int_four" = yes; then 8995 8996cat >>confdefs.h <<\_ACEOF 8997#define HAVE_FOUR_VALUED_KRB_PUT_INT 1 8998_ACEOF 8999 9000 fi 9001 9002 9003 echo "$as_me:$LINENO: checking for KRB_VERIFY_SECURE" >&5 9004echo $ECHO_N "checking for KRB_VERIFY_SECURE... $ECHO_C" >&6 9005if test "${ac_cv_func_krb_verify_secure+set}" = set; then 9006 echo $ECHO_N "(cached) $ECHO_C" >&6 9007else 9008 cat >conftest.$ac_ext <<_ACEOF 9009#line $LINENO "configure" 9010#include "confdefs.h" 9011#include <krb.h> 9012#ifdef F77_DUMMY_MAIN 9013# ifdef __cplusplus 9014 extern "C" 9015# endif 9016 int F77_DUMMY_MAIN() { return 1; } 9017#endif 9018int 9019main () 9020{ 9021 9022 int x = KRB_VERIFY_SECURE 9023 ; 9024 return 0; 9025} 9026_ACEOF 9027rm -f conftest.$ac_objext 9028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9029 (eval $ac_compile) 2>&5 9030 ac_status=$? 9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9032 (exit $ac_status); } && 9033 { ac_try='test -s conftest.$ac_objext' 9034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9035 (eval $ac_try) 2>&5 9036 ac_status=$? 9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9038 (exit $ac_status); }; }; then 9039 ac_cv_func_krb_verify_secure=yes 9040else 9041 echo "$as_me: failed program was:" >&5 9042cat conftest.$ac_ext >&5 9043ac_cv_func_krb_verify_secure=no 9044fi 9045rm -f conftest.$ac_objext conftest.$ac_ext 9046 9047fi 9048echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_secure" >&5 9049echo "${ECHO_T}$ac_cv_func_krb_verify_secure" >&6 9050 if test "$ac_cv_func_krb_verify_secure" != yes; then 9051 9052cat >>confdefs.h <<\_ACEOF 9053#define KRB_VERIFY_SECURE 1 9054_ACEOF 9055 9056 9057cat >>confdefs.h <<\_ACEOF 9058#define KRB_VERIFY_SECURE_FAIL 2 9059_ACEOF 9060 9061 fi 9062 echo "$as_me:$LINENO: checking for KRB_VERIFY_NOT_SECURE" >&5 9063echo $ECHO_N "checking for KRB_VERIFY_NOT_SECURE... $ECHO_C" >&6 9064if test "${ac_cv_func_krb_verify_not_secure+set}" = set; then 9065 echo $ECHO_N "(cached) $ECHO_C" >&6 9066else 9067 cat >conftest.$ac_ext <<_ACEOF 9068#line $LINENO "configure" 9069#include "confdefs.h" 9070#include <krb.h> 9071#ifdef F77_DUMMY_MAIN 9072# ifdef __cplusplus 9073 extern "C" 9074# endif 9075 int F77_DUMMY_MAIN() { return 1; } 9076#endif 9077int 9078main () 9079{ 9080 9081 int x = KRB_VERIFY_NOT_SECURE 9082 ; 9083 return 0; 9084} 9085_ACEOF 9086rm -f conftest.$ac_objext 9087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 9088 (eval $ac_compile) 2>&5 9089 ac_status=$? 9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9091 (exit $ac_status); } && 9092 { ac_try='test -s conftest.$ac_objext' 9093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9094 (eval $ac_try) 2>&5 9095 ac_status=$? 9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9097 (exit $ac_status); }; }; then 9098 ac_cv_func_krb_verify_not_secure=yes 9099else 9100 echo "$as_me: failed program was:" >&5 9101cat conftest.$ac_ext >&5 9102ac_cv_func_krb_verify_not_secure=no 9103fi 9104rm -f conftest.$ac_objext conftest.$ac_ext 9105 9106fi 9107echo "$as_me:$LINENO: result: $ac_cv_func_krb_verify_not_secure" >&5 9108echo "${ECHO_T}$ac_cv_func_krb_verify_not_secure" >&6 9109 if test "$ac_cv_func_krb_verify_not_secure" != yes; then 9110 9111cat >>confdefs.h <<\_ACEOF 9112#define KRB_VERIFY_NOT_SECURE 0 9113_ACEOF 9114 9115 fi 9116 9117 9118 9119 9120echo "$as_me:$LINENO: checking for krb_enable_debug" >&5 9121echo $ECHO_N "checking for krb_enable_debug... $ECHO_C" >&6 9122if test "${ac_cv_funclib_krb_enable_debug+set}" = set; then 9123 echo $ECHO_N "(cached) $ECHO_C" >&6 9124else 9125 9126if eval "test \"\$ac_cv_func_krb_enable_debug\" != yes" ; then 9127 ac_save_LIBS="$LIBS" 9128 for ac_lib in "" ; do 9129 case "$ac_lib" in 9130 "") ;; 9131 yes) ac_lib="" ;; 9132 no) continue ;; 9133 -l*) ;; 9134 *) ac_lib="-l$ac_lib" ;; 9135 esac 9136 LIBS=" $ac_lib $ac_save_LIBS" 9137 cat >conftest.$ac_ext <<_ACEOF 9138#line $LINENO "configure" 9139#include "confdefs.h" 9140 9141#ifdef F77_DUMMY_MAIN 9142# ifdef __cplusplus 9143 extern "C" 9144# endif 9145 int F77_DUMMY_MAIN() { return 1; } 9146#endif 9147int 9148main () 9149{ 9150krb_enable_debug() 9151 ; 9152 return 0; 9153} 9154_ACEOF 9155rm -f conftest.$ac_objext conftest$ac_exeext 9156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9157 (eval $ac_link) 2>&5 9158 ac_status=$? 9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9160 (exit $ac_status); } && 9161 { ac_try='test -s conftest$ac_exeext' 9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9163 (eval $ac_try) 2>&5 9164 ac_status=$? 9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9166 (exit $ac_status); }; }; then 9167 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_enable_debug=$ac_lib; else ac_cv_funclib_krb_enable_debug=yes; fi";break 9168else 9169 echo "$as_me: failed program was:" >&5 9170cat conftest.$ac_ext >&5 9171fi 9172rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9173 done 9174 eval "ac_cv_funclib_krb_enable_debug=\${ac_cv_funclib_krb_enable_debug-no}" 9175 LIBS="$ac_save_LIBS" 9176fi 9177 9178fi 9179 9180 9181eval "ac_res=\$ac_cv_funclib_krb_enable_debug" 9182 9183if false; then 9184 9185for ac_func in krb_enable_debug 9186do 9187as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9188echo "$as_me:$LINENO: checking for $ac_func" >&5 9189echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9190if eval "test \"\${$as_ac_var+set}\" = set"; then 9191 echo $ECHO_N "(cached) $ECHO_C" >&6 9192else 9193 cat >conftest.$ac_ext <<_ACEOF 9194#line $LINENO "configure" 9195#include "confdefs.h" 9196/* System header to define __stub macros and hopefully few prototypes, 9197 which can conflict with char $ac_func (); below. */ 9198#include <assert.h> 9199/* Override any gcc2 internal prototype to avoid an error. */ 9200#ifdef __cplusplus 9201extern "C" 9202#endif 9203/* We use char because int might match the return type of a gcc2 9204 builtin and then its argument prototype would still apply. */ 9205char $ac_func (); 9206char (*f) (); 9207 9208#ifdef F77_DUMMY_MAIN 9209# ifdef __cplusplus 9210 extern "C" 9211# endif 9212 int F77_DUMMY_MAIN() { return 1; } 9213#endif 9214int 9215main () 9216{ 9217/* The GNU C library defines this for functions which it implements 9218 to always fail with ENOSYS. Some functions are actually named 9219 something starting with __ and the normal name is an alias. */ 9220#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9221choke me 9222#else 9223f = $ac_func; 9224#endif 9225 9226 ; 9227 return 0; 9228} 9229_ACEOF 9230rm -f conftest.$ac_objext conftest$ac_exeext 9231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9232 (eval $ac_link) 2>&5 9233 ac_status=$? 9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9235 (exit $ac_status); } && 9236 { ac_try='test -s conftest$ac_exeext' 9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9238 (eval $ac_try) 2>&5 9239 ac_status=$? 9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9241 (exit $ac_status); }; }; then 9242 eval "$as_ac_var=yes" 9243else 9244 echo "$as_me: failed program was:" >&5 9245cat conftest.$ac_ext >&5 9246eval "$as_ac_var=no" 9247fi 9248rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9249fi 9250echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9251echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9252if test `eval echo '${'$as_ac_var'}'` = yes; then 9253 cat >>confdefs.h <<_ACEOF 9254#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9255_ACEOF 9256 9257fi 9258done 9259 9260fi 9261# krb_enable_debug 9262eval "ac_tr_func=HAVE_`echo krb_enable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9263eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9264eval "LIB_krb_enable_debug=$ac_res" 9265 9266case "$ac_res" in 9267 yes) 9268 eval "ac_cv_func_krb_enable_debug=yes" 9269 eval "LIB_krb_enable_debug=" 9270 cat >>confdefs.h <<_ACEOF 9271#define $ac_tr_func 1 9272_ACEOF 9273 9274 echo "$as_me:$LINENO: result: yes" >&5 9275echo "${ECHO_T}yes" >&6 9276 ;; 9277 no) 9278 eval "ac_cv_func_krb_enable_debug=no" 9279 eval "LIB_krb_enable_debug=" 9280 echo "$as_me:$LINENO: result: no" >&5 9281echo "${ECHO_T}no" >&6 9282 ;; 9283 *) 9284 eval "ac_cv_func_krb_enable_debug=yes" 9285 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9286 cat >>confdefs.h <<_ACEOF 9287#define $ac_tr_func 1 9288_ACEOF 9289 9290 cat >>confdefs.h <<_ACEOF 9291#define $ac_tr_lib 1 9292_ACEOF 9293 9294 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9295echo "${ECHO_T}yes, in $ac_res" >&6 9296 ;; 9297esac 9298 9299 9300if test -n "$LIB_krb_enable_debug"; then 9301 LIBS="$LIB_krb_enable_debug $LIBS" 9302fi 9303 9304 9305 9306 9307 9308echo "$as_me:$LINENO: checking for krb_disable_debug" >&5 9309echo $ECHO_N "checking for krb_disable_debug... $ECHO_C" >&6 9310if test "${ac_cv_funclib_krb_disable_debug+set}" = set; then 9311 echo $ECHO_N "(cached) $ECHO_C" >&6 9312else 9313 9314if eval "test \"\$ac_cv_func_krb_disable_debug\" != yes" ; then 9315 ac_save_LIBS="$LIBS" 9316 for ac_lib in "" ; do 9317 case "$ac_lib" in 9318 "") ;; 9319 yes) ac_lib="" ;; 9320 no) continue ;; 9321 -l*) ;; 9322 *) ac_lib="-l$ac_lib" ;; 9323 esac 9324 LIBS=" $ac_lib $ac_save_LIBS" 9325 cat >conftest.$ac_ext <<_ACEOF 9326#line $LINENO "configure" 9327#include "confdefs.h" 9328 9329#ifdef F77_DUMMY_MAIN 9330# ifdef __cplusplus 9331 extern "C" 9332# endif 9333 int F77_DUMMY_MAIN() { return 1; } 9334#endif 9335int 9336main () 9337{ 9338krb_disable_debug() 9339 ; 9340 return 0; 9341} 9342_ACEOF 9343rm -f conftest.$ac_objext conftest$ac_exeext 9344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9345 (eval $ac_link) 2>&5 9346 ac_status=$? 9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9348 (exit $ac_status); } && 9349 { ac_try='test -s conftest$ac_exeext' 9350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9351 (eval $ac_try) 2>&5 9352 ac_status=$? 9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9354 (exit $ac_status); }; }; then 9355 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_disable_debug=$ac_lib; else ac_cv_funclib_krb_disable_debug=yes; fi";break 9356else 9357 echo "$as_me: failed program was:" >&5 9358cat conftest.$ac_ext >&5 9359fi 9360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9361 done 9362 eval "ac_cv_funclib_krb_disable_debug=\${ac_cv_funclib_krb_disable_debug-no}" 9363 LIBS="$ac_save_LIBS" 9364fi 9365 9366fi 9367 9368 9369eval "ac_res=\$ac_cv_funclib_krb_disable_debug" 9370 9371if false; then 9372 9373for ac_func in krb_disable_debug 9374do 9375as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9376echo "$as_me:$LINENO: checking for $ac_func" >&5 9377echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9378if eval "test \"\${$as_ac_var+set}\" = set"; then 9379 echo $ECHO_N "(cached) $ECHO_C" >&6 9380else 9381 cat >conftest.$ac_ext <<_ACEOF 9382#line $LINENO "configure" 9383#include "confdefs.h" 9384/* System header to define __stub macros and hopefully few prototypes, 9385 which can conflict with char $ac_func (); below. */ 9386#include <assert.h> 9387/* Override any gcc2 internal prototype to avoid an error. */ 9388#ifdef __cplusplus 9389extern "C" 9390#endif 9391/* We use char because int might match the return type of a gcc2 9392 builtin and then its argument prototype would still apply. */ 9393char $ac_func (); 9394char (*f) (); 9395 9396#ifdef F77_DUMMY_MAIN 9397# ifdef __cplusplus 9398 extern "C" 9399# endif 9400 int F77_DUMMY_MAIN() { return 1; } 9401#endif 9402int 9403main () 9404{ 9405/* The GNU C library defines this for functions which it implements 9406 to always fail with ENOSYS. Some functions are actually named 9407 something starting with __ and the normal name is an alias. */ 9408#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9409choke me 9410#else 9411f = $ac_func; 9412#endif 9413 9414 ; 9415 return 0; 9416} 9417_ACEOF 9418rm -f conftest.$ac_objext conftest$ac_exeext 9419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9420 (eval $ac_link) 2>&5 9421 ac_status=$? 9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9423 (exit $ac_status); } && 9424 { ac_try='test -s conftest$ac_exeext' 9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9426 (eval $ac_try) 2>&5 9427 ac_status=$? 9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 (exit $ac_status); }; }; then 9430 eval "$as_ac_var=yes" 9431else 9432 echo "$as_me: failed program was:" >&5 9433cat conftest.$ac_ext >&5 9434eval "$as_ac_var=no" 9435fi 9436rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9437fi 9438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9439echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9440if test `eval echo '${'$as_ac_var'}'` = yes; then 9441 cat >>confdefs.h <<_ACEOF 9442#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9443_ACEOF 9444 9445fi 9446done 9447 9448fi 9449# krb_disable_debug 9450eval "ac_tr_func=HAVE_`echo krb_disable_debug | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9451eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9452eval "LIB_krb_disable_debug=$ac_res" 9453 9454case "$ac_res" in 9455 yes) 9456 eval "ac_cv_func_krb_disable_debug=yes" 9457 eval "LIB_krb_disable_debug=" 9458 cat >>confdefs.h <<_ACEOF 9459#define $ac_tr_func 1 9460_ACEOF 9461 9462 echo "$as_me:$LINENO: result: yes" >&5 9463echo "${ECHO_T}yes" >&6 9464 ;; 9465 no) 9466 eval "ac_cv_func_krb_disable_debug=no" 9467 eval "LIB_krb_disable_debug=" 9468 echo "$as_me:$LINENO: result: no" >&5 9469echo "${ECHO_T}no" >&6 9470 ;; 9471 *) 9472 eval "ac_cv_func_krb_disable_debug=yes" 9473 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9474 cat >>confdefs.h <<_ACEOF 9475#define $ac_tr_func 1 9476_ACEOF 9477 9478 cat >>confdefs.h <<_ACEOF 9479#define $ac_tr_lib 1 9480_ACEOF 9481 9482 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9483echo "${ECHO_T}yes, in $ac_res" >&6 9484 ;; 9485esac 9486 9487 9488if test -n "$LIB_krb_disable_debug"; then 9489 LIBS="$LIB_krb_disable_debug $LIBS" 9490fi 9491 9492 9493 9494 9495 9496echo "$as_me:$LINENO: checking for krb_get_our_ip_for_realm" >&5 9497echo $ECHO_N "checking for krb_get_our_ip_for_realm... $ECHO_C" >&6 9498if test "${ac_cv_funclib_krb_get_our_ip_for_realm+set}" = set; then 9499 echo $ECHO_N "(cached) $ECHO_C" >&6 9500else 9501 9502if eval "test \"\$ac_cv_func_krb_get_our_ip_for_realm\" != yes" ; then 9503 ac_save_LIBS="$LIBS" 9504 for ac_lib in "" ; do 9505 case "$ac_lib" in 9506 "") ;; 9507 yes) ac_lib="" ;; 9508 no) continue ;; 9509 -l*) ;; 9510 *) ac_lib="-l$ac_lib" ;; 9511 esac 9512 LIBS=" $ac_lib $ac_save_LIBS" 9513 cat >conftest.$ac_ext <<_ACEOF 9514#line $LINENO "configure" 9515#include "confdefs.h" 9516 9517#ifdef F77_DUMMY_MAIN 9518# ifdef __cplusplus 9519 extern "C" 9520# endif 9521 int F77_DUMMY_MAIN() { return 1; } 9522#endif 9523int 9524main () 9525{ 9526krb_get_our_ip_for_realm() 9527 ; 9528 return 0; 9529} 9530_ACEOF 9531rm -f conftest.$ac_objext conftest$ac_exeext 9532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9533 (eval $ac_link) 2>&5 9534 ac_status=$? 9535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9536 (exit $ac_status); } && 9537 { ac_try='test -s conftest$ac_exeext' 9538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9539 (eval $ac_try) 2>&5 9540 ac_status=$? 9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9542 (exit $ac_status); }; }; then 9543 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_our_ip_for_realm=$ac_lib; else ac_cv_funclib_krb_get_our_ip_for_realm=yes; fi";break 9544else 9545 echo "$as_me: failed program was:" >&5 9546cat conftest.$ac_ext >&5 9547fi 9548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9549 done 9550 eval "ac_cv_funclib_krb_get_our_ip_for_realm=\${ac_cv_funclib_krb_get_our_ip_for_realm-no}" 9551 LIBS="$ac_save_LIBS" 9552fi 9553 9554fi 9555 9556 9557eval "ac_res=\$ac_cv_funclib_krb_get_our_ip_for_realm" 9558 9559if false; then 9560 9561for ac_func in krb_get_our_ip_for_realm 9562do 9563as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9564echo "$as_me:$LINENO: checking for $ac_func" >&5 9565echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9566if eval "test \"\${$as_ac_var+set}\" = set"; then 9567 echo $ECHO_N "(cached) $ECHO_C" >&6 9568else 9569 cat >conftest.$ac_ext <<_ACEOF 9570#line $LINENO "configure" 9571#include "confdefs.h" 9572/* System header to define __stub macros and hopefully few prototypes, 9573 which can conflict with char $ac_func (); below. */ 9574#include <assert.h> 9575/* Override any gcc2 internal prototype to avoid an error. */ 9576#ifdef __cplusplus 9577extern "C" 9578#endif 9579/* We use char because int might match the return type of a gcc2 9580 builtin and then its argument prototype would still apply. */ 9581char $ac_func (); 9582char (*f) (); 9583 9584#ifdef F77_DUMMY_MAIN 9585# ifdef __cplusplus 9586 extern "C" 9587# endif 9588 int F77_DUMMY_MAIN() { return 1; } 9589#endif 9590int 9591main () 9592{ 9593/* The GNU C library defines this for functions which it implements 9594 to always fail with ENOSYS. Some functions are actually named 9595 something starting with __ and the normal name is an alias. */ 9596#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9597choke me 9598#else 9599f = $ac_func; 9600#endif 9601 9602 ; 9603 return 0; 9604} 9605_ACEOF 9606rm -f conftest.$ac_objext conftest$ac_exeext 9607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9608 (eval $ac_link) 2>&5 9609 ac_status=$? 9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9611 (exit $ac_status); } && 9612 { ac_try='test -s conftest$ac_exeext' 9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9614 (eval $ac_try) 2>&5 9615 ac_status=$? 9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9617 (exit $ac_status); }; }; then 9618 eval "$as_ac_var=yes" 9619else 9620 echo "$as_me: failed program was:" >&5 9621cat conftest.$ac_ext >&5 9622eval "$as_ac_var=no" 9623fi 9624rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9625fi 9626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9627echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9628if test `eval echo '${'$as_ac_var'}'` = yes; then 9629 cat >>confdefs.h <<_ACEOF 9630#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9631_ACEOF 9632 9633fi 9634done 9635 9636fi 9637# krb_get_our_ip_for_realm 9638eval "ac_tr_func=HAVE_`echo krb_get_our_ip_for_realm | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9639eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9640eval "LIB_krb_get_our_ip_for_realm=$ac_res" 9641 9642case "$ac_res" in 9643 yes) 9644 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 9645 eval "LIB_krb_get_our_ip_for_realm=" 9646 cat >>confdefs.h <<_ACEOF 9647#define $ac_tr_func 1 9648_ACEOF 9649 9650 echo "$as_me:$LINENO: result: yes" >&5 9651echo "${ECHO_T}yes" >&6 9652 ;; 9653 no) 9654 eval "ac_cv_func_krb_get_our_ip_for_realm=no" 9655 eval "LIB_krb_get_our_ip_for_realm=" 9656 echo "$as_me:$LINENO: result: no" >&5 9657echo "${ECHO_T}no" >&6 9658 ;; 9659 *) 9660 eval "ac_cv_func_krb_get_our_ip_for_realm=yes" 9661 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9662 cat >>confdefs.h <<_ACEOF 9663#define $ac_tr_func 1 9664_ACEOF 9665 9666 cat >>confdefs.h <<_ACEOF 9667#define $ac_tr_lib 1 9668_ACEOF 9669 9670 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9671echo "${ECHO_T}yes, in $ac_res" >&6 9672 ;; 9673esac 9674 9675 9676if test -n "$LIB_krb_get_our_ip_for_realm"; then 9677 LIBS="$LIB_krb_get_our_ip_for_realm $LIBS" 9678fi 9679 9680 9681 9682 9683 9684echo "$as_me:$LINENO: checking for krb_kdctimeofday" >&5 9685echo $ECHO_N "checking for krb_kdctimeofday... $ECHO_C" >&6 9686if test "${ac_cv_funclib_krb_kdctimeofday+set}" = set; then 9687 echo $ECHO_N "(cached) $ECHO_C" >&6 9688else 9689 9690if eval "test \"\$ac_cv_func_krb_kdctimeofday\" != yes" ; then 9691 ac_save_LIBS="$LIBS" 9692 for ac_lib in "" ; do 9693 case "$ac_lib" in 9694 "") ;; 9695 yes) ac_lib="" ;; 9696 no) continue ;; 9697 -l*) ;; 9698 *) ac_lib="-l$ac_lib" ;; 9699 esac 9700 LIBS=" $ac_lib $ac_save_LIBS" 9701 cat >conftest.$ac_ext <<_ACEOF 9702#line $LINENO "configure" 9703#include "confdefs.h" 9704 9705#ifdef F77_DUMMY_MAIN 9706# ifdef __cplusplus 9707 extern "C" 9708# endif 9709 int F77_DUMMY_MAIN() { return 1; } 9710#endif 9711int 9712main () 9713{ 9714krb_kdctimeofday() 9715 ; 9716 return 0; 9717} 9718_ACEOF 9719rm -f conftest.$ac_objext conftest$ac_exeext 9720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9721 (eval $ac_link) 2>&5 9722 ac_status=$? 9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9724 (exit $ac_status); } && 9725 { ac_try='test -s conftest$ac_exeext' 9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9727 (eval $ac_try) 2>&5 9728 ac_status=$? 9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9730 (exit $ac_status); }; }; then 9731 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_kdctimeofday=$ac_lib; else ac_cv_funclib_krb_kdctimeofday=yes; fi";break 9732else 9733 echo "$as_me: failed program was:" >&5 9734cat conftest.$ac_ext >&5 9735fi 9736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9737 done 9738 eval "ac_cv_funclib_krb_kdctimeofday=\${ac_cv_funclib_krb_kdctimeofday-no}" 9739 LIBS="$ac_save_LIBS" 9740fi 9741 9742fi 9743 9744 9745eval "ac_res=\$ac_cv_funclib_krb_kdctimeofday" 9746 9747if false; then 9748 9749for ac_func in krb_kdctimeofday 9750do 9751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9752echo "$as_me:$LINENO: checking for $ac_func" >&5 9753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9754if eval "test \"\${$as_ac_var+set}\" = set"; then 9755 echo $ECHO_N "(cached) $ECHO_C" >&6 9756else 9757 cat >conftest.$ac_ext <<_ACEOF 9758#line $LINENO "configure" 9759#include "confdefs.h" 9760/* System header to define __stub macros and hopefully few prototypes, 9761 which can conflict with char $ac_func (); below. */ 9762#include <assert.h> 9763/* Override any gcc2 internal prototype to avoid an error. */ 9764#ifdef __cplusplus 9765extern "C" 9766#endif 9767/* We use char because int might match the return type of a gcc2 9768 builtin and then its argument prototype would still apply. */ 9769char $ac_func (); 9770char (*f) (); 9771 9772#ifdef F77_DUMMY_MAIN 9773# ifdef __cplusplus 9774 extern "C" 9775# endif 9776 int F77_DUMMY_MAIN() { return 1; } 9777#endif 9778int 9779main () 9780{ 9781/* The GNU C library defines this for functions which it implements 9782 to always fail with ENOSYS. Some functions are actually named 9783 something starting with __ and the normal name is an alias. */ 9784#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9785choke me 9786#else 9787f = $ac_func; 9788#endif 9789 9790 ; 9791 return 0; 9792} 9793_ACEOF 9794rm -f conftest.$ac_objext conftest$ac_exeext 9795if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9796 (eval $ac_link) 2>&5 9797 ac_status=$? 9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9799 (exit $ac_status); } && 9800 { ac_try='test -s conftest$ac_exeext' 9801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9802 (eval $ac_try) 2>&5 9803 ac_status=$? 9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9805 (exit $ac_status); }; }; then 9806 eval "$as_ac_var=yes" 9807else 9808 echo "$as_me: failed program was:" >&5 9809cat conftest.$ac_ext >&5 9810eval "$as_ac_var=no" 9811fi 9812rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9813fi 9814echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 9815echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 9816if test `eval echo '${'$as_ac_var'}'` = yes; then 9817 cat >>confdefs.h <<_ACEOF 9818#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 9819_ACEOF 9820 9821fi 9822done 9823 9824fi 9825# krb_kdctimeofday 9826eval "ac_tr_func=HAVE_`echo krb_kdctimeofday | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9827eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 9828eval "LIB_krb_kdctimeofday=$ac_res" 9829 9830case "$ac_res" in 9831 yes) 9832 eval "ac_cv_func_krb_kdctimeofday=yes" 9833 eval "LIB_krb_kdctimeofday=" 9834 cat >>confdefs.h <<_ACEOF 9835#define $ac_tr_func 1 9836_ACEOF 9837 9838 echo "$as_me:$LINENO: result: yes" >&5 9839echo "${ECHO_T}yes" >&6 9840 ;; 9841 no) 9842 eval "ac_cv_func_krb_kdctimeofday=no" 9843 eval "LIB_krb_kdctimeofday=" 9844 echo "$as_me:$LINENO: result: no" >&5 9845echo "${ECHO_T}no" >&6 9846 ;; 9847 *) 9848 eval "ac_cv_func_krb_kdctimeofday=yes" 9849 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 9850 cat >>confdefs.h <<_ACEOF 9851#define $ac_tr_func 1 9852_ACEOF 9853 9854 cat >>confdefs.h <<_ACEOF 9855#define $ac_tr_lib 1 9856_ACEOF 9857 9858 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 9859echo "${ECHO_T}yes, in $ac_res" >&6 9860 ;; 9861esac 9862 9863 9864if test -n "$LIB_krb_kdctimeofday"; then 9865 LIBS="$LIB_krb_kdctimeofday $LIBS" 9866fi 9867 9868 9869 9870 9871 9872 9873 9874echo "$as_me:$LINENO: checking for krb_get_kdc_time_diff" >&5 9875echo $ECHO_N "checking for krb_get_kdc_time_diff... $ECHO_C" >&6 9876if test "${ac_cv_funclib_krb_get_kdc_time_diff+set}" = set; then 9877 echo $ECHO_N "(cached) $ECHO_C" >&6 9878else 9879 9880if eval "test \"\$ac_cv_func_krb_get_kdc_time_diff\" != yes" ; then 9881 ac_save_LIBS="$LIBS" 9882 for ac_lib in "" ; do 9883 case "$ac_lib" in 9884 "") ;; 9885 yes) ac_lib="" ;; 9886 no) continue ;; 9887 -l*) ;; 9888 *) ac_lib="-l$ac_lib" ;; 9889 esac 9890 LIBS=" $ac_lib $ac_save_LIBS" 9891 cat >conftest.$ac_ext <<_ACEOF 9892#line $LINENO "configure" 9893#include "confdefs.h" 9894 9895#ifdef F77_DUMMY_MAIN 9896# ifdef __cplusplus 9897 extern "C" 9898# endif 9899 int F77_DUMMY_MAIN() { return 1; } 9900#endif 9901int 9902main () 9903{ 9904krb_get_kdc_time_diff() 9905 ; 9906 return 0; 9907} 9908_ACEOF 9909rm -f conftest.$ac_objext conftest$ac_exeext 9910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9911 (eval $ac_link) 2>&5 9912 ac_status=$? 9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9914 (exit $ac_status); } && 9915 { ac_try='test -s conftest$ac_exeext' 9916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9917 (eval $ac_try) 2>&5 9918 ac_status=$? 9919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9920 (exit $ac_status); }; }; then 9921 eval "if test -n \"$ac_lib\";then ac_cv_funclib_krb_get_kdc_time_diff=$ac_lib; else ac_cv_funclib_krb_get_kdc_time_diff=yes; fi";break 9922else 9923 echo "$as_me: failed program was:" >&5 9924cat conftest.$ac_ext >&5 9925fi 9926rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 9927 done 9928 eval "ac_cv_funclib_krb_get_kdc_time_diff=\${ac_cv_funclib_krb_get_kdc_time_diff-no}" 9929 LIBS="$ac_save_LIBS" 9930fi 9931 9932fi 9933 9934 9935eval "ac_res=\$ac_cv_funclib_krb_get_kdc_time_diff" 9936 9937if false; then 9938 9939for ac_func in krb_get_kdc_time_diff 9940do 9941as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 9942echo "$as_me:$LINENO: checking for $ac_func" >&5 9943echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 9944if eval "test \"\${$as_ac_var+set}\" = set"; then 9945 echo $ECHO_N "(cached) $ECHO_C" >&6 9946else 9947 cat >conftest.$ac_ext <<_ACEOF 9948#line $LINENO "configure" 9949#include "confdefs.h" 9950/* System header to define __stub macros and hopefully few prototypes, 9951 which can conflict with char $ac_func (); below. */ 9952#include <assert.h> 9953/* Override any gcc2 internal prototype to avoid an error. */ 9954#ifdef __cplusplus 9955extern "C" 9956#endif 9957/* We use char because int might match the return type of a gcc2 9958 builtin and then its argument prototype would still apply. */ 9959char $ac_func (); 9960char (*f) (); 9961 9962#ifdef F77_DUMMY_MAIN 9963# ifdef __cplusplus 9964 extern "C" 9965# endif 9966 int F77_DUMMY_MAIN() { return 1; } 9967#endif 9968int 9969main () 9970{ 9971/* The GNU C library defines this for functions which it implements 9972 to always fail with ENOSYS. Some functions are actually named 9973 something starting with __ and the normal name is an alias. */ 9974#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 9975choke me 9976#else 9977f = $ac_func; 9978#endif 9979 9980 ; 9981 return 0; 9982} 9983_ACEOF 9984rm -f conftest.$ac_objext conftest$ac_exeext 9985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9986 (eval $ac_link) 2>&5 9987 ac_status=$? 9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9989 (exit $ac_status); } && 9990 { ac_try='test -s conftest$ac_exeext' 9991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9992 (eval $ac_try) 2>&5 9993 ac_status=$? 9994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9995 (exit $ac_status); }; }; then 9996 eval "$as_ac_var=yes" 9997else 9998 echo "$as_me: failed program was:" >&5 9999cat conftest.$ac_ext >&5 10000eval "$as_ac_var=no" 10001fi 10002rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10003fi 10004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 10005echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 10006if test `eval echo '${'$as_ac_var'}'` = yes; then 10007 cat >>confdefs.h <<_ACEOF 10008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 10009_ACEOF 10010 10011fi 10012done 10013 10014fi 10015# krb_get_kdc_time_diff 10016eval "ac_tr_func=HAVE_`echo krb_get_kdc_time_diff | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 10017eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 10018eval "LIB_krb_get_kdc_time_diff=$ac_res" 10019 10020case "$ac_res" in 10021 yes) 10022 eval "ac_cv_func_krb_get_kdc_time_diff=yes" 10023 eval "LIB_krb_get_kdc_time_diff=" 10024 cat >>confdefs.h <<_ACEOF 10025#define $ac_tr_func 1 10026_ACEOF 10027 10028 echo "$as_me:$LINENO: result: yes" >&5 10029echo "${ECHO_T}yes" >&6 10030 ;; 10031 no) 10032 eval "ac_cv_func_krb_get_kdc_time_diff=no" 10033 eval "LIB_krb_get_kdc_time_diff=" 10034 echo "$as_me:$LINENO: result: no" >&5 10035echo "${ECHO_T}no" >&6 10036 ;; 10037 *) 10038 eval "ac_cv_func_krb_get_kdc_time_diff=yes" 10039 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 10040 cat >>confdefs.h <<_ACEOF 10041#define $ac_tr_func 1 10042_ACEOF 10043 10044 cat >>confdefs.h <<_ACEOF 10045#define $ac_tr_lib 1 10046_ACEOF 10047 10048 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 10049echo "${ECHO_T}yes, in $ac_res" >&6 10050 ;; 10051esac 10052 10053 10054if test -n "$LIB_krb_get_kdc_time_diff"; then 10055 LIBS="$LIB_krb_get_kdc_time_diff $LIBS" 10056fi 10057 10058 10059 10060 echo "$as_me:$LINENO: checking for KRB_SENDAUTH_VERS" >&5 10061echo $ECHO_N "checking for KRB_SENDAUTH_VERS... $ECHO_C" >&6 10062if test "${ac_cv_func_krb_sendauth_vers+set}" = set; then 10063 echo $ECHO_N "(cached) $ECHO_C" >&6 10064else 10065 cat >conftest.$ac_ext <<_ACEOF 10066#line $LINENO "configure" 10067#include "confdefs.h" 10068#include <krb.h> 10069 #include <prot.h> 10070#ifdef F77_DUMMY_MAIN 10071# ifdef __cplusplus 10072 extern "C" 10073# endif 10074 int F77_DUMMY_MAIN() { return 1; } 10075#endif 10076int 10077main () 10078{ 10079 10080 char *x = KRB_SENDAUTH_VERS 10081 ; 10082 return 0; 10083} 10084_ACEOF 10085rm -f conftest.$ac_objext 10086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10087 (eval $ac_compile) 2>&5 10088 ac_status=$? 10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10090 (exit $ac_status); } && 10091 { ac_try='test -s conftest.$ac_objext' 10092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10093 (eval $ac_try) 2>&5 10094 ac_status=$? 10095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10096 (exit $ac_status); }; }; then 10097 ac_cv_func_krb_sendauth_vers=yes 10098else 10099 echo "$as_me: failed program was:" >&5 10100cat conftest.$ac_ext >&5 10101ac_cv_func_krb_sendauth_vers=no 10102fi 10103rm -f conftest.$ac_objext conftest.$ac_ext 10104 10105fi 10106echo "$as_me:$LINENO: result: $ac_cv_func_krb_sendauth_vers" >&5 10107echo "${ECHO_T}$ac_cv_func_krb_sendauth_vers" >&6 10108 if test "$ac_cv_func_krb_sendauth_vers" != yes; then 10109 10110cat >>confdefs.h <<\_ACEOF 10111#define KRB_SENDAUTH_VERS "AUTHV0.1" 10112_ACEOF 10113 10114 fi 10115 echo "$as_me:$LINENO: checking for krb_mk_req with const arguments" >&5 10116echo $ECHO_N "checking for krb_mk_req with const arguments... $ECHO_C" >&6 10117if test "${ac_cv_func_krb_mk_req_const+set}" = set; then 10118 echo $ECHO_N "(cached) $ECHO_C" >&6 10119else 10120 cat >conftest.$ac_ext <<_ACEOF 10121#line $LINENO "configure" 10122#include "confdefs.h" 10123#include <krb.h> 10124 int krb_mk_req(KTEXT a, const char *s, const char *i, 10125 const char *r, int32_t checksum) 10126 { return 17; } 10127#ifdef F77_DUMMY_MAIN 10128# ifdef __cplusplus 10129 extern "C" 10130# endif 10131 int F77_DUMMY_MAIN() { return 1; } 10132#endif 10133int 10134main () 10135{ 10136 10137 ; 10138 return 0; 10139} 10140_ACEOF 10141rm -f conftest.$ac_objext 10142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10143 (eval $ac_compile) 2>&5 10144 ac_status=$? 10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10146 (exit $ac_status); } && 10147 { ac_try='test -s conftest.$ac_objext' 10148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10149 (eval $ac_try) 2>&5 10150 ac_status=$? 10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10152 (exit $ac_status); }; }; then 10153 ac_cv_func_krb_mk_req_const=yes 10154else 10155 echo "$as_me: failed program was:" >&5 10156cat conftest.$ac_ext >&5 10157ac_cv_func_krb_mk_req_const=no 10158fi 10159rm -f conftest.$ac_objext conftest.$ac_ext 10160 10161fi 10162echo "$as_me:$LINENO: result: $ac_cv_func_krb_mk_req_const" >&5 10163echo "${ECHO_T}$ac_cv_func_krb_mk_req_const" >&6 10164 if test "$ac_cv_func_krb_mk_req_const" = "yes"; then 10165 10166cat >>confdefs.h <<\_ACEOF 10167#define KRB_MK_REQ_CONST 1 10168_ACEOF 10169 10170 fi 10171 10172 LIBS="$save_LIBS" 10173 CFLAGS="$save_CFLAGS" 10174 LIB_kdb="-lkdb -lkrb" 10175fi 10176 10177 10178if test "$with_krb4" != "no"; then 10179 KRB4_TRUE= 10180 KRB4_FALSE='#' 10181else 10182 KRB4_TRUE='#' 10183 KRB4_FALSE= 10184fi 10185 10186 10187 10188if true; then 10189 KRB5_TRUE= 10190 KRB5_FALSE='#' 10191else 10192 KRB5_TRUE='#' 10193 KRB5_FALSE= 10194fi 10195 10196 10197 10198if true; then 10199 do_roken_rename_TRUE= 10200 do_roken_rename_FALSE='#' 10201else 10202 do_roken_rename_TRUE='#' 10203 do_roken_rename_FALSE= 10204fi 10205 10206 10207 10208cat >>confdefs.h <<\_ACEOF 10209#define KRB5 1 10210_ACEOF 10211 10212 10213crypto_lib=unknown 10214 10215 10216# Check whether --with-openssl or --without-openssl was given. 10217if test "${with_openssl+set}" = set; then 10218 withval="$with_openssl" 10219 10220fi; 10221 10222 10223# Check whether --with-openssl-lib or --without-openssl-lib was given. 10224if test "${with_openssl_lib+set}" = set; then 10225 withval="$with_openssl_lib" 10226 if test "$withval" = "yes" -o "$withval" = "no"; then 10227 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-lib" >&5 10228echo "$as_me: error: No argument for --with-openssl-lib" >&2;} 10229 { (exit 1); exit 1; }; } 10230elif test "X$with_openssl" = "X"; then 10231 with_openssl=yes 10232fi 10233fi; 10234 10235 10236# Check whether --with-openssl-include or --without-openssl-include was given. 10237if test "${with_openssl_include+set}" = set; then 10238 withval="$with_openssl_include" 10239 if test "$withval" = "yes" -o "$withval" = "no"; then 10240 { { echo "$as_me:$LINENO: error: No argument for --with-openssl-include" >&5 10241echo "$as_me: error: No argument for --with-openssl-include" >&2;} 10242 { (exit 1); exit 1; }; } 10243elif test "X$with_openssl" = "X"; then 10244 with_openssl=yes 10245fi 10246fi; 10247 10248case "$with_openssl" in 10249yes) ;; 10250no) ;; 10251"") ;; 10252*) if test "$with_openssl_include" = ""; then 10253 with_openssl_include="$with_openssl/include" 10254 fi 10255 if test "$with_openssl_lib" = ""; then 10256 with_openssl_lib="$with_openssl/lib$abilibdirext" 10257 fi 10258 ;; 10259esac 10260 10261 10262DIR_des= 10263 10264echo "$as_me:$LINENO: checking for crypto library" >&5 10265echo $ECHO_N "checking for crypto library... $ECHO_C" >&6 10266 10267openssl=no 10268old_hash=no 10269 10270if test "$crypto_lib" = "unknown" -a "$with_krb4" != "no"; then 10271 save_CPPFLAGS="$CPPFLAGS" 10272 save_LIBS="$LIBS" 10273 10274 cdirs= clibs= 10275 for i in $LIB_krb4; do 10276 case "$i" in 10277 -L*) cdirs="$cdirs $i";; 10278 -l*) clibs="$clibs $i";; 10279 esac 10280 done 10281 10282 ires= 10283 for i in $INCLUDE_krb4; do 10284 CFLAGS="-DHAVE_OPENSSL $i $save_CFLAGS"
|
10256 cat >conftest.$ac_ext <<_ACEOF
| 10285 for j in $cdirs; do 10286 for k in $clibs; do 10287 LIBS="$j $k $save_LIBS" 10288 cat >conftest.$ac_ext <<_ACEOF
|
10257#line $LINENO "configure" 10258#include "confdefs.h" 10259 10260 #undef KRB5 /* makes md4.h et al unhappy */ 10261 #ifdef HAVE_OPENSSL 10262 #include <openssl/md4.h> 10263 #include <openssl/md5.h> 10264 #include <openssl/sha.h>
| 10289#line $LINENO "configure" 10290#include "confdefs.h" 10291 10292 #undef KRB5 /* makes md4.h et al unhappy */ 10293 #ifdef HAVE_OPENSSL 10294 #include <openssl/md4.h> 10295 #include <openssl/md5.h> 10296 #include <openssl/sha.h>
|
| 10297 #define OPENSSL_DES_LIBDES_COMPATIBILITY
|
10265 #include <openssl/des.h> 10266 #include <openssl/rc4.h>
| 10298 #include <openssl/des.h> 10299 #include <openssl/rc4.h>
|
| 10300 #include <openssl/rand.h>
|
10267 #else 10268 #include <md4.h> 10269 #include <md5.h> 10270 #include <sha.h> 10271 #include <des.h> 10272 #include <rc4.h> 10273 #endif 10274 #ifdef OLD_HASH_NAMES 10275 typedef struct md4 MD4_CTX; 10276 #define MD4_Init(C) md4_init((C)) 10277 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10278 #define MD4_Final(D, C) md4_finito((C), (D)) 10279 typedef struct md5 MD5_CTX; 10280 #define MD5_Init(C) md5_init((C)) 10281 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10282 #define MD5_Final(D, C) md5_finito((C), (D)) 10283 typedef struct sha SHA_CTX; 10284 #define SHA1_Init(C) sha_init((C)) 10285 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10286 #define SHA1_Final(D, C) sha_finito((C), (D)) 10287 #endif 10288 10289#ifdef F77_DUMMY_MAIN 10290# ifdef __cplusplus 10291 extern "C" 10292# endif 10293 int F77_DUMMY_MAIN() { return 1; } 10294#endif 10295int 10296main () 10297{ 10298 10299 void *schedule = 0; 10300 MD4_CTX md4; 10301 MD5_CTX md5; 10302 SHA_CTX sha1; 10303 10304 MD4_Init(&md4); 10305 MD5_Init(&md5); 10306 SHA1_Init(&sha1);
| 10301 #else 10302 #include <md4.h> 10303 #include <md5.h> 10304 #include <sha.h> 10305 #include <des.h> 10306 #include <rc4.h> 10307 #endif 10308 #ifdef OLD_HASH_NAMES 10309 typedef struct md4 MD4_CTX; 10310 #define MD4_Init(C) md4_init((C)) 10311 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10312 #define MD4_Final(D, C) md4_finito((C), (D)) 10313 typedef struct md5 MD5_CTX; 10314 #define MD5_Init(C) md5_init((C)) 10315 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10316 #define MD5_Final(D, C) md5_finito((C), (D)) 10317 typedef struct sha SHA_CTX; 10318 #define SHA1_Init(C) sha_init((C)) 10319 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10320 #define SHA1_Final(D, C) sha_finito((C), (D)) 10321 #endif 10322 10323#ifdef F77_DUMMY_MAIN 10324# ifdef __cplusplus 10325 extern "C" 10326# endif 10327 int F77_DUMMY_MAIN() { return 1; } 10328#endif 10329int 10330main () 10331{ 10332 10333 void *schedule = 0; 10334 MD4_CTX md4; 10335 MD5_CTX md5; 10336 SHA_CTX sha1; 10337 10338 MD4_Init(&md4); 10339 MD5_Init(&md5); 10340 SHA1_Init(&sha1);
|
| 10341 #ifdef HAVE_OPENSSL 10342 RAND_status(); 10343 #endif
|
10307 10308 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10309 RC4(0, 0, 0, 0); 10310 ; 10311 return 0; 10312} 10313_ACEOF
| 10344 10345 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10346 RC4(0, 0, 0, 0); 10347 ; 10348 return 0; 10349} 10350_ACEOF
|
10314rm -f conftest.$ac_objext 10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10316 (eval $ac_compile) 2>&5
| 10351rm -f conftest.$ac_objext conftest$ac_exeext 10352if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10353 (eval $ac_link) 2>&5
|
10317 ac_status=$? 10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10319 (exit $ac_status); } &&
| 10354 ac_status=$? 10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10356 (exit $ac_status); } &&
|
10320 { ac_try='test -s conftest.$ac_objext'
| 10357 { ac_try='test -s conftest$ac_exeext'
|
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10322 (eval $ac_try) 2>&5 10323 ac_status=$? 10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10325 (exit $ac_status); }; }; then
| 10358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10359 (eval $ac_try) 2>&5 10360 ac_status=$? 10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10362 (exit $ac_status); }; }; then
|
10326 openssl=yes ires="$i"; break
| 10363 openssl=yes ires="$i" lres="$j $k"; break 3
|
10327else 10328 echo "$as_me: failed program was:" >&5 10329cat conftest.$ac_ext >&5 10330fi
| 10364else 10365 echo "$as_me: failed program was:" >&5 10366cat conftest.$ac_ext >&5 10367fi
|
10331rm -f conftest.$ac_objext conftest.$ac_ext
| 10368rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10369 done 10370 done
|
10332 CFLAGS="$i $save_CFLAGS"
| 10371 CFLAGS="$i $save_CFLAGS"
|
10333 cat >conftest.$ac_ext <<_ACEOF
| 10372 for j in $cdirs; do 10373 for k in $clibs; do 10374 LIBS="$j $k $save_LIBS" 10375 cat >conftest.$ac_ext <<_ACEOF
|
10334#line $LINENO "configure" 10335#include "confdefs.h" 10336 10337 #undef KRB5 /* makes md4.h et al unhappy */ 10338 #ifdef HAVE_OPENSSL 10339 #include <openssl/md4.h> 10340 #include <openssl/md5.h> 10341 #include <openssl/sha.h>
| 10376#line $LINENO "configure" 10377#include "confdefs.h" 10378 10379 #undef KRB5 /* makes md4.h et al unhappy */ 10380 #ifdef HAVE_OPENSSL 10381 #include <openssl/md4.h> 10382 #include <openssl/md5.h> 10383 #include <openssl/sha.h>
|
| 10384 #define OPENSSL_DES_LIBDES_COMPATIBILITY
|
10342 #include <openssl/des.h> 10343 #include <openssl/rc4.h>
| 10385 #include <openssl/des.h> 10386 #include <openssl/rc4.h>
|
| 10387 #include <openssl/rand.h>
|
10344 #else 10345 #include <md4.h> 10346 #include <md5.h> 10347 #include <sha.h> 10348 #include <des.h> 10349 #include <rc4.h> 10350 #endif 10351 #ifdef OLD_HASH_NAMES 10352 typedef struct md4 MD4_CTX; 10353 #define MD4_Init(C) md4_init((C)) 10354 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10355 #define MD4_Final(D, C) md4_finito((C), (D)) 10356 typedef struct md5 MD5_CTX; 10357 #define MD5_Init(C) md5_init((C)) 10358 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10359 #define MD5_Final(D, C) md5_finito((C), (D)) 10360 typedef struct sha SHA_CTX; 10361 #define SHA1_Init(C) sha_init((C)) 10362 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10363 #define SHA1_Final(D, C) sha_finito((C), (D)) 10364 #endif 10365 10366#ifdef F77_DUMMY_MAIN 10367# ifdef __cplusplus 10368 extern "C" 10369# endif 10370 int F77_DUMMY_MAIN() { return 1; } 10371#endif 10372int 10373main () 10374{ 10375 10376 void *schedule = 0; 10377 MD4_CTX md4; 10378 MD5_CTX md5; 10379 SHA_CTX sha1; 10380 10381 MD4_Init(&md4); 10382 MD5_Init(&md5); 10383 SHA1_Init(&sha1);
| 10388 #else 10389 #include <md4.h> 10390 #include <md5.h> 10391 #include <sha.h> 10392 #include <des.h> 10393 #include <rc4.h> 10394 #endif 10395 #ifdef OLD_HASH_NAMES 10396 typedef struct md4 MD4_CTX; 10397 #define MD4_Init(C) md4_init((C)) 10398 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10399 #define MD4_Final(D, C) md4_finito((C), (D)) 10400 typedef struct md5 MD5_CTX; 10401 #define MD5_Init(C) md5_init((C)) 10402 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10403 #define MD5_Final(D, C) md5_finito((C), (D)) 10404 typedef struct sha SHA_CTX; 10405 #define SHA1_Init(C) sha_init((C)) 10406 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10407 #define SHA1_Final(D, C) sha_finito((C), (D)) 10408 #endif 10409 10410#ifdef F77_DUMMY_MAIN 10411# ifdef __cplusplus 10412 extern "C" 10413# endif 10414 int F77_DUMMY_MAIN() { return 1; } 10415#endif 10416int 10417main () 10418{ 10419 10420 void *schedule = 0; 10421 MD4_CTX md4; 10422 MD5_CTX md5; 10423 SHA_CTX sha1; 10424 10425 MD4_Init(&md4); 10426 MD5_Init(&md5); 10427 SHA1_Init(&sha1);
|
| 10428 #ifdef HAVE_OPENSSL 10429 RAND_status(); 10430 #endif
|
10384 10385 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10386 RC4(0, 0, 0, 0); 10387 ; 10388 return 0; 10389} 10390_ACEOF
| 10431 10432 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10433 RC4(0, 0, 0, 0); 10434 ; 10435 return 0; 10436} 10437_ACEOF
|
10391rm -f conftest.$ac_objext 10392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10393 (eval $ac_compile) 2>&5
| 10438rm -f conftest.$ac_objext conftest$ac_exeext 10439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10440 (eval $ac_link) 2>&5
|
10394 ac_status=$? 10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10396 (exit $ac_status); } &&
| 10441 ac_status=$? 10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10443 (exit $ac_status); } &&
|
10397 { ac_try='test -s conftest.$ac_objext'
| 10444 { ac_try='test -s conftest$ac_exeext'
|
10398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10399 (eval $ac_try) 2>&5 10400 ac_status=$? 10401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10402 (exit $ac_status); }; }; then
| 10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10446 (eval $ac_try) 2>&5 10447 ac_status=$? 10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10449 (exit $ac_status); }; }; then
|
10403 openssl=no ires="$i"; break
| 10450 openssl=no ires="$i" lres="$j $k"; break 3
|
10404else 10405 echo "$as_me: failed program was:" >&5 10406cat conftest.$ac_ext >&5 10407fi
| 10451else 10452 echo "$as_me: failed program was:" >&5 10453cat conftest.$ac_ext >&5 10454fi
|
10408rm -f conftest.$ac_objext conftest.$ac_ext 10409 CFLAGS="-DOLD_HASH_NAMES $i $save_CFLAGS" 10410 cat >conftest.$ac_ext <<_ACEOF
| 10455rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10456 done 10457 done 10458 CFLAGS="-DHAVE_OLD_HASH_NAMES $i $save_CFLAGS" 10459 for j in $cdirs; do 10460 for k in $clibs; do 10461 LIBS="$j $k $save_LIBS" 10462 cat >conftest.$ac_ext <<_ACEOF
|
10411#line $LINENO "configure" 10412#include "confdefs.h" 10413 10414 #undef KRB5 /* makes md4.h et al unhappy */ 10415 #ifdef HAVE_OPENSSL 10416 #include <openssl/md4.h> 10417 #include <openssl/md5.h> 10418 #include <openssl/sha.h>
| 10463#line $LINENO "configure" 10464#include "confdefs.h" 10465 10466 #undef KRB5 /* makes md4.h et al unhappy */ 10467 #ifdef HAVE_OPENSSL 10468 #include <openssl/md4.h> 10469 #include <openssl/md5.h> 10470 #include <openssl/sha.h>
|
| 10471 #define OPENSSL_DES_LIBDES_COMPATIBILITY
|
10419 #include <openssl/des.h> 10420 #include <openssl/rc4.h>
| 10472 #include <openssl/des.h> 10473 #include <openssl/rc4.h>
|
| 10474 #include <openssl/rand.h>
|
10421 #else 10422 #include <md4.h> 10423 #include <md5.h> 10424 #include <sha.h> 10425 #include <des.h> 10426 #include <rc4.h> 10427 #endif 10428 #ifdef OLD_HASH_NAMES 10429 typedef struct md4 MD4_CTX; 10430 #define MD4_Init(C) md4_init((C)) 10431 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10432 #define MD4_Final(D, C) md4_finito((C), (D)) 10433 typedef struct md5 MD5_CTX; 10434 #define MD5_Init(C) md5_init((C)) 10435 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10436 #define MD5_Final(D, C) md5_finito((C), (D)) 10437 typedef struct sha SHA_CTX; 10438 #define SHA1_Init(C) sha_init((C)) 10439 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10440 #define SHA1_Final(D, C) sha_finito((C), (D)) 10441 #endif 10442 10443#ifdef F77_DUMMY_MAIN 10444# ifdef __cplusplus 10445 extern "C" 10446# endif 10447 int F77_DUMMY_MAIN() { return 1; } 10448#endif 10449int 10450main () 10451{ 10452 10453 void *schedule = 0; 10454 MD4_CTX md4; 10455 MD5_CTX md5; 10456 SHA_CTX sha1; 10457 10458 MD4_Init(&md4); 10459 MD5_Init(&md5); 10460 SHA1_Init(&sha1);
| 10475 #else 10476 #include <md4.h> 10477 #include <md5.h> 10478 #include <sha.h> 10479 #include <des.h> 10480 #include <rc4.h> 10481 #endif 10482 #ifdef OLD_HASH_NAMES 10483 typedef struct md4 MD4_CTX; 10484 #define MD4_Init(C) md4_init((C)) 10485 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10486 #define MD4_Final(D, C) md4_finito((C), (D)) 10487 typedef struct md5 MD5_CTX; 10488 #define MD5_Init(C) md5_init((C)) 10489 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10490 #define MD5_Final(D, C) md5_finito((C), (D)) 10491 typedef struct sha SHA_CTX; 10492 #define SHA1_Init(C) sha_init((C)) 10493 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10494 #define SHA1_Final(D, C) sha_finito((C), (D)) 10495 #endif 10496 10497#ifdef F77_DUMMY_MAIN 10498# ifdef __cplusplus 10499 extern "C" 10500# endif 10501 int F77_DUMMY_MAIN() { return 1; } 10502#endif 10503int 10504main () 10505{ 10506 10507 void *schedule = 0; 10508 MD4_CTX md4; 10509 MD5_CTX md5; 10510 SHA_CTX sha1; 10511 10512 MD4_Init(&md4); 10513 MD5_Init(&md5); 10514 SHA1_Init(&sha1);
|
10461 10462 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10463 RC4(0, 0, 0, 0); 10464 ; 10465 return 0; 10466} 10467_ACEOF 10468rm -f conftest.$ac_objext 10469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10470 (eval $ac_compile) 2>&5 10471 ac_status=$? 10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10473 (exit $ac_status); } && 10474 { ac_try='test -s conftest.$ac_objext' 10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10476 (eval $ac_try) 2>&5 10477 ac_status=$? 10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10479 (exit $ac_status); }; }; then 10480 openssl=no ires="$i" old_hash=yes; break 10481else 10482 echo "$as_me: failed program was:" >&5 10483cat conftest.$ac_ext >&5 10484fi 10485rm -f conftest.$ac_objext conftest.$ac_ext 10486 done 10487 lres= 10488 for i in $cdirs; do 10489 for j in $clibs; do 10490 LIBS="$i $j $save_LIBS" 10491 cat >conftest.$ac_ext <<_ACEOF 10492#line $LINENO "configure" 10493#include "confdefs.h" 10494 10495 #undef KRB5 /* makes md4.h et al unhappy */
| |
10496 #ifdef HAVE_OPENSSL
| 10515 #ifdef HAVE_OPENSSL
|
10497 #include <openssl/md4.h> 10498 #include <openssl/md5.h> 10499 #include <openssl/sha.h> 10500 #include <openssl/des.h> 10501 #include <openssl/rc4.h> 10502 #else 10503 #include <md4.h> 10504 #include <md5.h> 10505 #include <sha.h> 10506 #include <des.h> 10507 #include <rc4.h>
| 10516 RAND_status();
|
10508 #endif
| 10517 #endif
|
10509 #ifdef OLD_HASH_NAMES 10510 typedef struct md4 MD4_CTX; 10511 #define MD4_Init(C) md4_init((C)) 10512 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10513 #define MD4_Final(D, C) md4_finito((C), (D)) 10514 typedef struct md5 MD5_CTX; 10515 #define MD5_Init(C) md5_init((C)) 10516 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10517 #define MD5_Final(D, C) md5_finito((C), (D)) 10518 typedef struct sha SHA_CTX; 10519 #define SHA1_Init(C) sha_init((C)) 10520 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10521 #define SHA1_Final(D, C) sha_finito((C), (D)) 10522 #endif
| |
10523
| 10518
|
10524#ifdef F77_DUMMY_MAIN 10525# ifdef __cplusplus 10526 extern "C" 10527# endif 10528 int F77_DUMMY_MAIN() { return 1; } 10529#endif 10530int 10531main () 10532{ 10533 10534 void *schedule = 0; 10535 MD4_CTX md4; 10536 MD5_CTX md5; 10537 SHA_CTX sha1; 10538 10539 MD4_Init(&md4); 10540 MD5_Init(&md5); 10541 SHA1_Init(&sha1); 10542
| |
10543 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10544 RC4(0, 0, 0, 0); 10545 ; 10546 return 0; 10547} 10548_ACEOF 10549rm -f conftest.$ac_objext conftest$ac_exeext 10550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10551 (eval $ac_link) 2>&5 10552 ac_status=$? 10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10554 (exit $ac_status); } && 10555 { ac_try='test -s conftest$ac_exeext' 10556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10557 (eval $ac_try) 2>&5 10558 ac_status=$? 10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10560 (exit $ac_status); }; }; then
| 10519 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10520 RC4(0, 0, 0, 0); 10521 ; 10522 return 0; 10523} 10524_ACEOF 10525rm -f conftest.$ac_objext conftest$ac_exeext 10526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10527 (eval $ac_link) 2>&5 10528 ac_status=$? 10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10530 (exit $ac_status); } && 10531 { ac_try='test -s conftest$ac_exeext' 10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10533 (eval $ac_try) 2>&5 10534 ac_status=$? 10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10536 (exit $ac_status); }; }; then
|
10561 lres="$i $j"; break 2
| 10537 openssl=no ires="$i" lres="$j $k"; break 3
|
10562else 10563 echo "$as_me: failed program was:" >&5 10564cat conftest.$ac_ext >&5 10565fi 10566rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 10538else 10539 echo "$as_me: failed program was:" >&5 10540cat conftest.$ac_ext >&5 10541fi 10542rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 10543 done
|
10567 done 10568 done
| 10544 done 10545 done
|
| 10546
|
10569 CFLAGS="$save_CFLAGS" 10570 LIBS="$save_LIBS" 10571 if test "$ires" -a "$lres"; then 10572 INCLUDE_des="$ires" 10573 LIB_des="$lres" 10574 crypto_lib=krb4 10575 echo "$as_me:$LINENO: result: same as krb4" >&5 10576echo "${ECHO_T}same as krb4" >&6 10577 LIB_des_a='$(LIB_des)' 10578 LIB_des_so='$(LIB_des)' 10579 LIB_des_appl='$(LIB_des)' 10580 fi 10581fi 10582 10583if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then 10584 save_CFLAGS="$CFLAGS" 10585 save_LIBS="$LIBS" 10586 INCLUDE_des= 10587 LIB_des= 10588 if test "$with_openssl_include" != ""; then
| 10547 CFLAGS="$save_CFLAGS" 10548 LIBS="$save_LIBS" 10549 if test "$ires" -a "$lres"; then 10550 INCLUDE_des="$ires" 10551 LIB_des="$lres" 10552 crypto_lib=krb4 10553 echo "$as_me:$LINENO: result: same as krb4" >&5 10554echo "${ECHO_T}same as krb4" >&6 10555 LIB_des_a='$(LIB_des)' 10556 LIB_des_so='$(LIB_des)' 10557 LIB_des_appl='$(LIB_des)' 10558 fi 10559fi 10560 10561if test "$crypto_lib" = "unknown" -a "$with_openssl" != "no"; then 10562 save_CFLAGS="$CFLAGS" 10563 save_LIBS="$LIBS" 10564 INCLUDE_des= 10565 LIB_des= 10566 if test "$with_openssl_include" != ""; then
|
10589 INCLUDE_des="-I${with_openssl}/include"
| 10567 INCLUDE_des="-I${with_openssl_include}"
|
10590 fi 10591 if test "$with_openssl_lib" != ""; then
| 10568 fi 10569 if test "$with_openssl_lib" != ""; then
|
10592 LIB_des="-L${with_openssl}/lib"
| 10570 LIB_des="-L${with_openssl_lib}"
|
10593 fi 10594 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
| 10571 fi 10572 CFLAGS="-DHAVE_OPENSSL ${INCLUDE_des} ${CFLAGS}"
|
10595 LIB_des="${LIB_des} -lcrypto" 10596 LIB_des_a="$LIB_des" 10597 LIB_des_so="$LIB_des" 10598 LIB_des_appl="$LIB_des" 10599 LIBS="${LIBS} ${LIB_des}" 10600 cat >conftest.$ac_ext <<_ACEOF
| 10573 saved_LIB_des="$LIB_des" 10574 for lres in "" "-lnsl -lsocket"; do 10575 LIB_des="${saved_LIB_des} -lcrypto $lres" 10576 LIB_des_a="$LIB_des" 10577 LIB_des_so="$LIB_des" 10578 LIB_des_appl="$LIB_des" 10579 LIBS="${LIBS} ${LIB_des}" 10580 cat >conftest.$ac_ext <<_ACEOF
|
10601#line $LINENO "configure" 10602#include "confdefs.h" 10603 10604 #undef KRB5 /* makes md4.h et al unhappy */ 10605 #ifdef HAVE_OPENSSL 10606 #include <openssl/md4.h> 10607 #include <openssl/md5.h> 10608 #include <openssl/sha.h>
| 10581#line $LINENO "configure" 10582#include "confdefs.h" 10583 10584 #undef KRB5 /* makes md4.h et al unhappy */ 10585 #ifdef HAVE_OPENSSL 10586 #include <openssl/md4.h> 10587 #include <openssl/md5.h> 10588 #include <openssl/sha.h>
|
| 10589 #define OPENSSL_DES_LIBDES_COMPATIBILITY
|
10609 #include <openssl/des.h> 10610 #include <openssl/rc4.h>
| 10590 #include <openssl/des.h> 10591 #include <openssl/rc4.h>
|
| 10592 #include <openssl/rand.h>
|
10611 #else 10612 #include <md4.h> 10613 #include <md5.h> 10614 #include <sha.h> 10615 #include <des.h> 10616 #include <rc4.h> 10617 #endif 10618 #ifdef OLD_HASH_NAMES 10619 typedef struct md4 MD4_CTX; 10620 #define MD4_Init(C) md4_init((C)) 10621 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10622 #define MD4_Final(D, C) md4_finito((C), (D)) 10623 typedef struct md5 MD5_CTX; 10624 #define MD5_Init(C) md5_init((C)) 10625 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10626 #define MD5_Final(D, C) md5_finito((C), (D)) 10627 typedef struct sha SHA_CTX; 10628 #define SHA1_Init(C) sha_init((C)) 10629 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10630 #define SHA1_Final(D, C) sha_finito((C), (D)) 10631 #endif 10632 10633#ifdef F77_DUMMY_MAIN 10634# ifdef __cplusplus 10635 extern "C" 10636# endif 10637 int F77_DUMMY_MAIN() { return 1; } 10638#endif 10639int 10640main () 10641{ 10642 10643 void *schedule = 0; 10644 MD4_CTX md4; 10645 MD5_CTX md5; 10646 SHA_CTX sha1; 10647 10648 MD4_Init(&md4); 10649 MD5_Init(&md5); 10650 SHA1_Init(&sha1);
| 10593 #else 10594 #include <md4.h> 10595 #include <md5.h> 10596 #include <sha.h> 10597 #include <des.h> 10598 #include <rc4.h> 10599 #endif 10600 #ifdef OLD_HASH_NAMES 10601 typedef struct md4 MD4_CTX; 10602 #define MD4_Init(C) md4_init((C)) 10603 #define MD4_Update(C, D, L) md4_update((C), (D), (L)) 10604 #define MD4_Final(D, C) md4_finito((C), (D)) 10605 typedef struct md5 MD5_CTX; 10606 #define MD5_Init(C) md5_init((C)) 10607 #define MD5_Update(C, D, L) md5_update((C), (D), (L)) 10608 #define MD5_Final(D, C) md5_finito((C), (D)) 10609 typedef struct sha SHA_CTX; 10610 #define SHA1_Init(C) sha_init((C)) 10611 #define SHA1_Update(C, D, L) sha_update((C), (D), (L)) 10612 #define SHA1_Final(D, C) sha_finito((C), (D)) 10613 #endif 10614 10615#ifdef F77_DUMMY_MAIN 10616# ifdef __cplusplus 10617 extern "C" 10618# endif 10619 int F77_DUMMY_MAIN() { return 1; } 10620#endif 10621int 10622main () 10623{ 10624 10625 void *schedule = 0; 10626 MD4_CTX md4; 10627 MD5_CTX md5; 10628 SHA_CTX sha1; 10629 10630 MD4_Init(&md4); 10631 MD5_Init(&md5); 10632 SHA1_Init(&sha1);
|
| 10633 #ifdef HAVE_OPENSSL 10634 RAND_status(); 10635 #endif
|
10651 10652 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10653 RC4(0, 0, 0, 0); 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658rm -f conftest.$ac_objext conftest$ac_exeext 10659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10660 (eval $ac_link) 2>&5 10661 ac_status=$? 10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10663 (exit $ac_status); } && 10664 { ac_try='test -s conftest$ac_exeext' 10665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10666 (eval $ac_try) 2>&5 10667 ac_status=$? 10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10669 (exit $ac_status); }; }; then 10670
| 10636 10637 des_cbc_encrypt(0, 0, 0, schedule, 0, 0); 10638 RC4(0, 0, 0, 0); 10639 ; 10640 return 0; 10641} 10642_ACEOF 10643rm -f conftest.$ac_objext conftest$ac_exeext 10644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10645 (eval $ac_link) 2>&5 10646 ac_status=$? 10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10648 (exit $ac_status); } && 10649 { ac_try='test -s conftest$ac_exeext' 10650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10651 (eval $ac_try) 2>&5 10652 ac_status=$? 10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10654 (exit $ac_status); }; }; then 10655
|
10671 crypto_lib=libcrypto openssl=yes 10672 echo "$as_me:$LINENO: result: libcrypto" >&5
| 10656 crypto_lib=libcrypto openssl=yes 10657 echo "$as_me:$LINENO: result: libcrypto" >&5
|
10673echo "${ECHO_T}libcrypto" >&6 10674 10675else 10676 echo "$as_me: failed program was:" >&5 10677cat conftest.$ac_ext >&5 10678fi 10679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 10658echo "${ECHO_T}libcrypto" >&6 10659 10660else 10661 echo "$as_me: failed program was:" >&5 10662cat conftest.$ac_ext >&5 10663fi 10664rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 10665 if test "$crypto_lib" = libcrypto ; then 10666 break; 10667 fi 10668 done
|
10680 CFLAGS="$save_CFLAGS" 10681 LIBS="$save_LIBS" 10682fi 10683 10684if test "$crypto_lib" = "unknown"; then 10685 10686 DIR_des='des' 10687 LIB_des='$(top_builddir)/lib/des/libdes.la' 10688 LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a' 10689 LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so' 10690 LIB_des_appl="-ldes" 10691 10692 echo "$as_me:$LINENO: result: included libdes" >&5 10693echo "${ECHO_T}included libdes" >&6 10694 10695fi 10696 10697if test "$with_krb4" != no -a "$crypto_lib" != krb4; then 10698 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features 10699required by Kerberos 5; to continue, you need to install a newer 10700Kerberos 4 or configure --without-krb4" >&5 10701echo "$as_me: error: the crypto library used by krb4 lacks features 10702required by Kerberos 5; to continue, you need to install a newer 10703Kerberos 4 or configure --without-krb4" >&2;} 10704 { (exit 1); exit 1; }; } 10705fi 10706 10707if test "$openssl" = "yes"; then 10708 10709cat >>confdefs.h <<\_ACEOF 10710#define HAVE_OPENSSL 1 10711_ACEOF 10712 10713fi 10714if test "$old_hash" = yes; then 10715 10716cat >>confdefs.h <<\_ACEOF 10717#define HAVE_OLD_HASH_NAMES 1 10718_ACEOF 10719 10720fi 10721 10722 10723if test "$openssl" = yes; then 10724 HAVE_OPENSSL_TRUE= 10725 HAVE_OPENSSL_FALSE='#' 10726else 10727 HAVE_OPENSSL_TRUE='#' 10728 HAVE_OPENSSL_FALSE= 10729fi 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739# Check whether --enable-dce or --disable-dce was given. 10740if test "${enable_dce+set}" = set; then 10741 enableval="$enable_dce" 10742 10743fi; 10744if test "$enable_dce" = yes; then 10745 10746cat >>confdefs.h <<\_ACEOF 10747#define DCE 1 10748_ACEOF 10749 10750fi 10751 10752 10753if test "$enable_dce" = yes; then 10754 DCE_TRUE= 10755 DCE_FALSE='#' 10756else 10757 DCE_TRUE='#' 10758 DCE_FALSE= 10759fi 10760 10761 10762## XXX quite horrible: 10763if test -f /etc/ibmcxx.cfg; then 10764 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 10765 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 10766 dpagaix_ldflags= 10767else 10768 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 10769 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 10770 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 10771fi 10772 10773 10774 10775 10776 10777# Check whether --enable-berkeley-db or --disable-berkeley-db was given. 10778if test "${enable_berkeley_db+set}" = set; then 10779 enableval="$enable_berkeley_db" 10780 10781 10782fi; 10783 10784have_ndbm=no 10785db_type=unknown 10786 10787if test "$enable_berkeley_db" != no; then 10788 10789 10790 10791 10792 10793for ac_header in \ 10794 db4/db.h \ 10795 db3/db.h \ 10796 db.h \ 10797 db_185.h \ 10798 10799do 10800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10801if eval "test \"\${$as_ac_Header+set}\" = set"; then 10802 echo "$as_me:$LINENO: checking for $ac_header" >&5 10803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10804if eval "test \"\${$as_ac_Header+set}\" = set"; then 10805 echo $ECHO_N "(cached) $ECHO_C" >&6 10806fi 10807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10809else 10810 # Is the header compilable? 10811echo "$as_me:$LINENO: checking $ac_header usability" >&5 10812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10813cat >conftest.$ac_ext <<_ACEOF 10814#line $LINENO "configure" 10815#include "confdefs.h" 10816$ac_includes_default 10817#include <$ac_header> 10818_ACEOF 10819rm -f conftest.$ac_objext 10820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10821 (eval $ac_compile) 2>&5 10822 ac_status=$? 10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10824 (exit $ac_status); } && 10825 { ac_try='test -s conftest.$ac_objext' 10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10827 (eval $ac_try) 2>&5 10828 ac_status=$? 10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10830 (exit $ac_status); }; }; then 10831 ac_header_compiler=yes 10832else 10833 echo "$as_me: failed program was:" >&5 10834cat conftest.$ac_ext >&5 10835ac_header_compiler=no 10836fi 10837rm -f conftest.$ac_objext conftest.$ac_ext 10838echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10839echo "${ECHO_T}$ac_header_compiler" >&6 10840 10841# Is the header present? 10842echo "$as_me:$LINENO: checking $ac_header presence" >&5 10843echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10844cat >conftest.$ac_ext <<_ACEOF 10845#line $LINENO "configure" 10846#include "confdefs.h" 10847#include <$ac_header> 10848_ACEOF 10849if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10851 ac_status=$? 10852 egrep -v '^ *\+' conftest.er1 >conftest.err 10853 rm -f conftest.er1 10854 cat conftest.err >&5 10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10856 (exit $ac_status); } >/dev/null; then 10857 if test -s conftest.err; then 10858 ac_cpp_err=$ac_c_preproc_warn_flag 10859 else 10860 ac_cpp_err= 10861 fi 10862else 10863 ac_cpp_err=yes 10864fi 10865if test -z "$ac_cpp_err"; then 10866 ac_header_preproc=yes 10867else 10868 echo "$as_me: failed program was:" >&5 10869 cat conftest.$ac_ext >&5 10870 ac_header_preproc=no 10871fi 10872rm -f conftest.err conftest.$ac_ext 10873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10874echo "${ECHO_T}$ac_header_preproc" >&6 10875 10876# So? What about this header? 10877case $ac_header_compiler:$ac_header_preproc in 10878 yes:no ) 10879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10883 no:yes ) 10884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10889echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10890esac 10891echo "$as_me:$LINENO: checking for $ac_header" >&5 10892echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10893if eval "test \"\${$as_ac_Header+set}\" = set"; then 10894 echo $ECHO_N "(cached) $ECHO_C" >&6 10895else 10896 eval "$as_ac_Header=$ac_header_preproc" 10897fi 10898echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10899echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10900 10901fi 10902if test `eval echo '${'$as_ac_Header'}'` = yes; then 10903 cat >>confdefs.h <<_ACEOF 10904#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10905_ACEOF 10906 10907fi 10908 10909done 10910 10911 10912 10913 10914 10915 10916echo "$as_me:$LINENO: checking for db_create" >&5 10917echo $ECHO_N "checking for db_create... $ECHO_C" >&6 10918if test "${ac_cv_funclib_db_create+set}" = set; then 10919 echo $ECHO_N "(cached) $ECHO_C" >&6 10920else 10921 10922if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 10923 ac_save_LIBS="$LIBS" 10924 for ac_lib in "" db4 db3 db; do 10925 case "$ac_lib" in 10926 "") ;; 10927 yes) ac_lib="" ;; 10928 no) continue ;; 10929 -l*) ;; 10930 *) ac_lib="-l$ac_lib" ;; 10931 esac 10932 LIBS=" $ac_lib $ac_save_LIBS" 10933 cat >conftest.$ac_ext <<_ACEOF 10934#line $LINENO "configure" 10935#include "confdefs.h" 10936 10937 #include <stdio.h> 10938 #ifdef HAVE_DB4_DB_H 10939 #include <db4/db.h> 10940 #elif defined(HAVE_DB3_DB_H) 10941 #include <db3/db.h> 10942 #else 10943 #include <db.h> 10944 #endif 10945 10946#ifdef F77_DUMMY_MAIN 10947# ifdef __cplusplus 10948 extern "C" 10949# endif 10950 int F77_DUMMY_MAIN() { return 1; } 10951#endif 10952int 10953main () 10954{ 10955db_create(NULL, NULL, 0) 10956 ; 10957 return 0; 10958} 10959_ACEOF 10960rm -f conftest.$ac_objext conftest$ac_exeext 10961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10962 (eval $ac_link) 2>&5 10963 ac_status=$? 10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10965 (exit $ac_status); } && 10966 { ac_try='test -s conftest$ac_exeext' 10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10968 (eval $ac_try) 2>&5 10969 ac_status=$? 10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10971 (exit $ac_status); }; }; then 10972 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 10973else 10974 echo "$as_me: failed program was:" >&5 10975cat conftest.$ac_ext >&5 10976fi 10977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10978 done 10979 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 10980 LIBS="$ac_save_LIBS" 10981fi 10982 10983fi 10984 10985 10986eval "ac_res=\$ac_cv_funclib_db_create" 10987 10988if false; then 10989 10990for ac_func in db_create 10991do 10992as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10993echo "$as_me:$LINENO: checking for $ac_func" >&5 10994echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10995if eval "test \"\${$as_ac_var+set}\" = set"; then 10996 echo $ECHO_N "(cached) $ECHO_C" >&6 10997else 10998 cat >conftest.$ac_ext <<_ACEOF 10999#line $LINENO "configure" 11000#include "confdefs.h" 11001/* System header to define __stub macros and hopefully few prototypes, 11002 which can conflict with char $ac_func (); below. */ 11003#include <assert.h> 11004/* Override any gcc2 internal prototype to avoid an error. */ 11005#ifdef __cplusplus 11006extern "C" 11007#endif 11008/* We use char because int might match the return type of a gcc2 11009 builtin and then its argument prototype would still apply. */ 11010char $ac_func (); 11011char (*f) (); 11012 11013#ifdef F77_DUMMY_MAIN 11014# ifdef __cplusplus 11015 extern "C" 11016# endif 11017 int F77_DUMMY_MAIN() { return 1; } 11018#endif 11019int 11020main () 11021{ 11022/* The GNU C library defines this for functions which it implements 11023 to always fail with ENOSYS. Some functions are actually named 11024 something starting with __ and the normal name is an alias. */ 11025#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11026choke me 11027#else 11028f = $ac_func; 11029#endif 11030 11031 ; 11032 return 0; 11033} 11034_ACEOF 11035rm -f conftest.$ac_objext conftest$ac_exeext 11036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11037 (eval $ac_link) 2>&5 11038 ac_status=$? 11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11040 (exit $ac_status); } && 11041 { ac_try='test -s conftest$ac_exeext' 11042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11043 (eval $ac_try) 2>&5 11044 ac_status=$? 11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11046 (exit $ac_status); }; }; then 11047 eval "$as_ac_var=yes" 11048else 11049 echo "$as_me: failed program was:" >&5 11050cat conftest.$ac_ext >&5 11051eval "$as_ac_var=no" 11052fi 11053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11054fi 11055echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11056echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11057if test `eval echo '${'$as_ac_var'}'` = yes; then 11058 cat >>confdefs.h <<_ACEOF 11059#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11060_ACEOF 11061 11062fi 11063done 11064 11065fi 11066# db_create 11067eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11068eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11069eval "LIB_db_create=$ac_res" 11070 11071case "$ac_res" in 11072 yes) 11073 eval "ac_cv_func_db_create=yes" 11074 eval "LIB_db_create=" 11075 cat >>confdefs.h <<_ACEOF 11076#define $ac_tr_func 1 11077_ACEOF 11078 11079 echo "$as_me:$LINENO: result: yes" >&5 11080echo "${ECHO_T}yes" >&6 11081 ;; 11082 no) 11083 eval "ac_cv_func_db_create=no" 11084 eval "LIB_db_create=" 11085 echo "$as_me:$LINENO: result: no" >&5 11086echo "${ECHO_T}no" >&6 11087 ;; 11088 *) 11089 eval "ac_cv_func_db_create=yes" 11090 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11091 cat >>confdefs.h <<_ACEOF 11092#define $ac_tr_func 1 11093_ACEOF 11094 11095 cat >>confdefs.h <<_ACEOF 11096#define $ac_tr_lib 1 11097_ACEOF 11098 11099 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11100echo "${ECHO_T}yes, in $ac_res" >&6 11101 ;; 11102esac 11103 11104 11105 11106 if test "$ac_cv_func_db_create" = "yes"; then 11107 db_type=db3 11108 if test "$ac_cv_funclib_db_create" != "yes"; then 11109 DBLIB="$ac_cv_funclib_db_create" 11110 else 11111 DBLIB="" 11112 fi 11113 11114cat >>confdefs.h <<\_ACEOF 11115#define HAVE_DB3 1 11116_ACEOF 11117 11118 else 11119 11120 11121 11122 11123 11124echo "$as_me:$LINENO: checking for dbopen" >&5 11125echo $ECHO_N "checking for dbopen... $ECHO_C" >&6 11126if test "${ac_cv_funclib_dbopen+set}" = set; then 11127 echo $ECHO_N "(cached) $ECHO_C" >&6 11128else 11129 11130if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 11131 ac_save_LIBS="$LIBS" 11132 for ac_lib in "" db2 db; do 11133 case "$ac_lib" in 11134 "") ;; 11135 yes) ac_lib="" ;; 11136 no) continue ;; 11137 -l*) ;; 11138 *) ac_lib="-l$ac_lib" ;; 11139 esac 11140 LIBS=" $ac_lib $ac_save_LIBS" 11141 cat >conftest.$ac_ext <<_ACEOF 11142#line $LINENO "configure" 11143#include "confdefs.h" 11144 11145 #include <stdio.h> 11146 #if defined(HAVE_DB2_DB_H) 11147 #include <db2/db.h> 11148 #elif defined(HAVE_DB_185_H) 11149 #include <db_185.h> 11150 #elif defined(HAVE_DB_H) 11151 #include <db.h> 11152 #else 11153 #error no db.h 11154 #endif 11155 11156#ifdef F77_DUMMY_MAIN 11157# ifdef __cplusplus 11158 extern "C" 11159# endif 11160 int F77_DUMMY_MAIN() { return 1; } 11161#endif 11162int 11163main () 11164{ 11165dbopen(NULL, 0, 0, 0, NULL) 11166 ; 11167 return 0; 11168} 11169_ACEOF 11170rm -f conftest.$ac_objext conftest$ac_exeext 11171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11172 (eval $ac_link) 2>&5 11173 ac_status=$? 11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11175 (exit $ac_status); } && 11176 { ac_try='test -s conftest$ac_exeext' 11177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11178 (eval $ac_try) 2>&5 11179 ac_status=$? 11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11181 (exit $ac_status); }; }; then 11182 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 11183else 11184 echo "$as_me: failed program was:" >&5 11185cat conftest.$ac_ext >&5 11186fi 11187rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11188 done 11189 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 11190 LIBS="$ac_save_LIBS" 11191fi 11192 11193fi 11194 11195 11196eval "ac_res=\$ac_cv_funclib_dbopen" 11197 11198if false; then 11199 11200for ac_func in dbopen 11201do 11202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11203echo "$as_me:$LINENO: checking for $ac_func" >&5 11204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11205if eval "test \"\${$as_ac_var+set}\" = set"; then 11206 echo $ECHO_N "(cached) $ECHO_C" >&6 11207else 11208 cat >conftest.$ac_ext <<_ACEOF 11209#line $LINENO "configure" 11210#include "confdefs.h" 11211/* System header to define __stub macros and hopefully few prototypes, 11212 which can conflict with char $ac_func (); below. */ 11213#include <assert.h> 11214/* Override any gcc2 internal prototype to avoid an error. */ 11215#ifdef __cplusplus 11216extern "C" 11217#endif 11218/* We use char because int might match the return type of a gcc2 11219 builtin and then its argument prototype would still apply. */ 11220char $ac_func (); 11221char (*f) (); 11222 11223#ifdef F77_DUMMY_MAIN 11224# ifdef __cplusplus 11225 extern "C" 11226# endif 11227 int F77_DUMMY_MAIN() { return 1; } 11228#endif 11229int 11230main () 11231{ 11232/* The GNU C library defines this for functions which it implements 11233 to always fail with ENOSYS. Some functions are actually named 11234 something starting with __ and the normal name is an alias. */ 11235#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11236choke me 11237#else 11238f = $ac_func; 11239#endif 11240 11241 ; 11242 return 0; 11243} 11244_ACEOF 11245rm -f conftest.$ac_objext conftest$ac_exeext 11246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11247 (eval $ac_link) 2>&5 11248 ac_status=$? 11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11250 (exit $ac_status); } && 11251 { ac_try='test -s conftest$ac_exeext' 11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11253 (eval $ac_try) 2>&5 11254 ac_status=$? 11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11256 (exit $ac_status); }; }; then 11257 eval "$as_ac_var=yes" 11258else 11259 echo "$as_me: failed program was:" >&5 11260cat conftest.$ac_ext >&5 11261eval "$as_ac_var=no" 11262fi 11263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11264fi 11265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11267if test `eval echo '${'$as_ac_var'}'` = yes; then 11268 cat >>confdefs.h <<_ACEOF 11269#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11270_ACEOF 11271 11272fi 11273done 11274 11275fi 11276# dbopen 11277eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11278eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11279eval "LIB_dbopen=$ac_res" 11280 11281case "$ac_res" in 11282 yes) 11283 eval "ac_cv_func_dbopen=yes" 11284 eval "LIB_dbopen=" 11285 cat >>confdefs.h <<_ACEOF 11286#define $ac_tr_func 1 11287_ACEOF 11288 11289 echo "$as_me:$LINENO: result: yes" >&5 11290echo "${ECHO_T}yes" >&6 11291 ;; 11292 no) 11293 eval "ac_cv_func_dbopen=no" 11294 eval "LIB_dbopen=" 11295 echo "$as_me:$LINENO: result: no" >&5 11296echo "${ECHO_T}no" >&6 11297 ;; 11298 *) 11299 eval "ac_cv_func_dbopen=yes" 11300 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11301 cat >>confdefs.h <<_ACEOF 11302#define $ac_tr_func 1 11303_ACEOF 11304 11305 cat >>confdefs.h <<_ACEOF 11306#define $ac_tr_lib 1 11307_ACEOF 11308 11309 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11310echo "${ECHO_T}yes, in $ac_res" >&6 11311 ;; 11312esac 11313 11314 11315 11316 if test "$ac_cv_func_dbopen" = "yes"; then 11317 db_type=db1 11318 if test "$ac_cv_funclib_dbopen" != "yes"; then 11319 DBLIB="$ac_cv_funclib_dbopen" 11320 else 11321 DBLIB="" 11322 fi 11323 11324cat >>confdefs.h <<\_ACEOF 11325#define HAVE_DB1 1 11326_ACEOF 11327 11328 fi 11329 fi 11330 11331 11332 if test "$ac_cv_func_dbm_firstkey" != yes; then 11333 11334 11335echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 11336echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 11337if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 11338 echo $ECHO_N "(cached) $ECHO_C" >&6 11339else 11340 11341if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 11342 ac_save_LIBS="$LIBS" 11343 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 11344 case "$ac_lib" in 11345 "") ;; 11346 yes) ac_lib="" ;; 11347 no) continue ;; 11348 -l*) ;; 11349 *) ac_lib="-l$ac_lib" ;; 11350 esac 11351 LIBS=" $ac_lib $ac_save_LIBS" 11352 cat >conftest.$ac_ext <<_ACEOF 11353#line $LINENO "configure" 11354#include "confdefs.h" 11355 11356 #include <stdio.h> 11357 #define DB_DBM_HSEARCH 1 11358 #include <db.h> 11359 DBM *dbm; 11360 11361#ifdef F77_DUMMY_MAIN 11362# ifdef __cplusplus 11363 extern "C" 11364# endif 11365 int F77_DUMMY_MAIN() { return 1; } 11366#endif 11367int 11368main () 11369{ 11370dbm_firstkey(NULL) 11371 ; 11372 return 0; 11373} 11374_ACEOF 11375rm -f conftest.$ac_objext conftest$ac_exeext 11376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11377 (eval $ac_link) 2>&5 11378 ac_status=$? 11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11380 (exit $ac_status); } && 11381 { ac_try='test -s conftest$ac_exeext' 11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11383 (eval $ac_try) 2>&5 11384 ac_status=$? 11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11386 (exit $ac_status); }; }; then 11387 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 11388else 11389 echo "$as_me: failed program was:" >&5 11390cat conftest.$ac_ext >&5 11391fi 11392rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11393 done 11394 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 11395 LIBS="$ac_save_LIBS" 11396fi 11397 11398fi 11399 11400 11401eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 11402 11403if false; then 11404 11405for ac_func in dbm_firstkey 11406do 11407as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11408echo "$as_me:$LINENO: checking for $ac_func" >&5 11409echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11410if eval "test \"\${$as_ac_var+set}\" = set"; then 11411 echo $ECHO_N "(cached) $ECHO_C" >&6 11412else 11413 cat >conftest.$ac_ext <<_ACEOF 11414#line $LINENO "configure" 11415#include "confdefs.h" 11416/* System header to define __stub macros and hopefully few prototypes, 11417 which can conflict with char $ac_func (); below. */ 11418#include <assert.h> 11419/* Override any gcc2 internal prototype to avoid an error. */ 11420#ifdef __cplusplus 11421extern "C" 11422#endif 11423/* We use char because int might match the return type of a gcc2 11424 builtin and then its argument prototype would still apply. */ 11425char $ac_func (); 11426char (*f) (); 11427 11428#ifdef F77_DUMMY_MAIN 11429# ifdef __cplusplus 11430 extern "C" 11431# endif 11432 int F77_DUMMY_MAIN() { return 1; } 11433#endif 11434int 11435main () 11436{ 11437/* The GNU C library defines this for functions which it implements 11438 to always fail with ENOSYS. Some functions are actually named 11439 something starting with __ and the normal name is an alias. */ 11440#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11441choke me 11442#else 11443f = $ac_func; 11444#endif 11445 11446 ; 11447 return 0; 11448} 11449_ACEOF 11450rm -f conftest.$ac_objext conftest$ac_exeext 11451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11452 (eval $ac_link) 2>&5 11453 ac_status=$? 11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11455 (exit $ac_status); } && 11456 { ac_try='test -s conftest$ac_exeext' 11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11458 (eval $ac_try) 2>&5 11459 ac_status=$? 11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11461 (exit $ac_status); }; }; then 11462 eval "$as_ac_var=yes" 11463else 11464 echo "$as_me: failed program was:" >&5 11465cat conftest.$ac_ext >&5 11466eval "$as_ac_var=no" 11467fi 11468rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11469fi 11470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11472if test `eval echo '${'$as_ac_var'}'` = yes; then 11473 cat >>confdefs.h <<_ACEOF 11474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11475_ACEOF 11476 11477fi 11478done 11479 11480fi 11481# dbm_firstkey 11482eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11483eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11484eval "LIB_dbm_firstkey=$ac_res" 11485 11486case "$ac_res" in 11487 yes) 11488 eval "ac_cv_func_dbm_firstkey=yes" 11489 eval "LIB_dbm_firstkey=" 11490 cat >>confdefs.h <<_ACEOF 11491#define $ac_tr_func 1 11492_ACEOF 11493 11494 echo "$as_me:$LINENO: result: yes" >&5 11495echo "${ECHO_T}yes" >&6 11496 ;; 11497 no) 11498 eval "ac_cv_func_dbm_firstkey=no" 11499 eval "LIB_dbm_firstkey=" 11500 echo "$as_me:$LINENO: result: no" >&5 11501echo "${ECHO_T}no" >&6 11502 ;; 11503 *) 11504 eval "ac_cv_func_dbm_firstkey=yes" 11505 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11506 cat >>confdefs.h <<_ACEOF 11507#define $ac_tr_func 1 11508_ACEOF 11509 11510 cat >>confdefs.h <<_ACEOF 11511#define $ac_tr_lib 1 11512_ACEOF 11513 11514 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11515echo "${ECHO_T}yes, in $ac_res" >&6 11516 ;; 11517esac 11518 11519 11520 11521 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 11522 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 11523 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 11524 else 11525 LIB_NDBM="" 11526 fi 11527 11528cat >>confdefs.h <<\_ACEOF 11529#define HAVE_DB_NDBM 1 11530_ACEOF 11531 11532 11533cat >>confdefs.h <<\_ACEOF 11534#define HAVE_NEW_DB 1 11535_ACEOF 11536 11537 else 11538 $as_unset ac_cv_func_dbm_firstkey 11539 $as_unset ac_cv_funclib_dbm_firstkey 11540 fi 11541 fi 11542 11543fi # berkeley db 11544 11545if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 11546 11547 11548 11549for ac_header in \ 11550 dbm.h \ 11551 ndbm.h \ 11552 11553do 11554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11555if eval "test \"\${$as_ac_Header+set}\" = set"; then 11556 echo "$as_me:$LINENO: checking for $ac_header" >&5 11557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11558if eval "test \"\${$as_ac_Header+set}\" = set"; then 11559 echo $ECHO_N "(cached) $ECHO_C" >&6 11560fi 11561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11563else 11564 # Is the header compilable? 11565echo "$as_me:$LINENO: checking $ac_header usability" >&5 11566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11567cat >conftest.$ac_ext <<_ACEOF 11568#line $LINENO "configure" 11569#include "confdefs.h" 11570$ac_includes_default 11571#include <$ac_header> 11572_ACEOF 11573rm -f conftest.$ac_objext 11574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11575 (eval $ac_compile) 2>&5 11576 ac_status=$? 11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11578 (exit $ac_status); } && 11579 { ac_try='test -s conftest.$ac_objext' 11580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11581 (eval $ac_try) 2>&5 11582 ac_status=$? 11583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11584 (exit $ac_status); }; }; then 11585 ac_header_compiler=yes 11586else 11587 echo "$as_me: failed program was:" >&5 11588cat conftest.$ac_ext >&5 11589ac_header_compiler=no 11590fi 11591rm -f conftest.$ac_objext conftest.$ac_ext 11592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11593echo "${ECHO_T}$ac_header_compiler" >&6 11594 11595# Is the header present? 11596echo "$as_me:$LINENO: checking $ac_header presence" >&5 11597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11598cat >conftest.$ac_ext <<_ACEOF 11599#line $LINENO "configure" 11600#include "confdefs.h" 11601#include <$ac_header> 11602_ACEOF 11603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11605 ac_status=$? 11606 egrep -v '^ *\+' conftest.er1 >conftest.err 11607 rm -f conftest.er1 11608 cat conftest.err >&5 11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11610 (exit $ac_status); } >/dev/null; then 11611 if test -s conftest.err; then 11612 ac_cpp_err=$ac_c_preproc_warn_flag 11613 else 11614 ac_cpp_err= 11615 fi 11616else 11617 ac_cpp_err=yes 11618fi 11619if test -z "$ac_cpp_err"; then 11620 ac_header_preproc=yes 11621else 11622 echo "$as_me: failed program was:" >&5 11623 cat conftest.$ac_ext >&5 11624 ac_header_preproc=no 11625fi 11626rm -f conftest.err conftest.$ac_ext 11627echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11628echo "${ECHO_T}$ac_header_preproc" >&6 11629 11630# So? What about this header? 11631case $ac_header_compiler:$ac_header_preproc in 11632 yes:no ) 11633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11634echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11637 no:yes ) 11638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11639echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11641echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11643echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11644esac 11645echo "$as_me:$LINENO: checking for $ac_header" >&5 11646echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11647if eval "test \"\${$as_ac_Header+set}\" = set"; then 11648 echo $ECHO_N "(cached) $ECHO_C" >&6 11649else 11650 eval "$as_ac_Header=$ac_header_preproc" 11651fi 11652echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11653echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11654 11655fi 11656if test `eval echo '${'$as_ac_Header'}'` = yes; then 11657 cat >>confdefs.h <<_ACEOF 11658#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11659_ACEOF 11660 11661fi 11662 11663done 11664 11665 11666 11667 11668 11669echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 11670echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 11671if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 11672 echo $ECHO_N "(cached) $ECHO_C" >&6 11673else 11674 11675if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 11676 ac_save_LIBS="$LIBS" 11677 for ac_lib in "" ndbm; do 11678 case "$ac_lib" in 11679 "") ;; 11680 yes) ac_lib="" ;; 11681 no) continue ;; 11682 -l*) ;; 11683 *) ac_lib="-l$ac_lib" ;; 11684 esac 11685 LIBS=" $ac_lib $ac_save_LIBS" 11686 cat >conftest.$ac_ext <<_ACEOF 11687#line $LINENO "configure" 11688#include "confdefs.h" 11689 11690 #include <stdio.h> 11691 #if defined(HAVE_NDBM_H) 11692 #include <ndbm.h> 11693 #elif defined(HAVE_DBM_H) 11694 #include <dbm.h> 11695 #endif 11696 DBM *dbm; 11697 11698#ifdef F77_DUMMY_MAIN 11699# ifdef __cplusplus 11700 extern "C" 11701# endif 11702 int F77_DUMMY_MAIN() { return 1; } 11703#endif 11704int 11705main () 11706{ 11707dbm_firstkey(NULL) 11708 ; 11709 return 0; 11710} 11711_ACEOF 11712rm -f conftest.$ac_objext conftest$ac_exeext 11713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11714 (eval $ac_link) 2>&5 11715 ac_status=$? 11716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11717 (exit $ac_status); } && 11718 { ac_try='test -s conftest$ac_exeext' 11719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11720 (eval $ac_try) 2>&5 11721 ac_status=$? 11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11723 (exit $ac_status); }; }; then 11724 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 11725else 11726 echo "$as_me: failed program was:" >&5 11727cat conftest.$ac_ext >&5 11728fi 11729rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11730 done 11731 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 11732 LIBS="$ac_save_LIBS" 11733fi 11734 11735fi 11736 11737 11738eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 11739 11740if false; then 11741 11742for ac_func in dbm_firstkey 11743do 11744as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11745echo "$as_me:$LINENO: checking for $ac_func" >&5 11746echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11747if eval "test \"\${$as_ac_var+set}\" = set"; then 11748 echo $ECHO_N "(cached) $ECHO_C" >&6 11749else 11750 cat >conftest.$ac_ext <<_ACEOF 11751#line $LINENO "configure" 11752#include "confdefs.h" 11753/* System header to define __stub macros and hopefully few prototypes, 11754 which can conflict with char $ac_func (); below. */ 11755#include <assert.h> 11756/* Override any gcc2 internal prototype to avoid an error. */ 11757#ifdef __cplusplus 11758extern "C" 11759#endif 11760/* We use char because int might match the return type of a gcc2 11761 builtin and then its argument prototype would still apply. */ 11762char $ac_func (); 11763char (*f) (); 11764 11765#ifdef F77_DUMMY_MAIN 11766# ifdef __cplusplus 11767 extern "C" 11768# endif 11769 int F77_DUMMY_MAIN() { return 1; } 11770#endif 11771int 11772main () 11773{ 11774/* The GNU C library defines this for functions which it implements 11775 to always fail with ENOSYS. Some functions are actually named 11776 something starting with __ and the normal name is an alias. */ 11777#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11778choke me 11779#else 11780f = $ac_func; 11781#endif 11782 11783 ; 11784 return 0; 11785} 11786_ACEOF 11787rm -f conftest.$ac_objext conftest$ac_exeext 11788if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11789 (eval $ac_link) 2>&5 11790 ac_status=$? 11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11792 (exit $ac_status); } && 11793 { ac_try='test -s conftest$ac_exeext' 11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11795 (eval $ac_try) 2>&5 11796 ac_status=$? 11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11798 (exit $ac_status); }; }; then 11799 eval "$as_ac_var=yes" 11800else 11801 echo "$as_me: failed program was:" >&5 11802cat conftest.$ac_ext >&5 11803eval "$as_ac_var=no" 11804fi 11805rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11806fi 11807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11808echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11809if test `eval echo '${'$as_ac_var'}'` = yes; then 11810 cat >>confdefs.h <<_ACEOF 11811#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11812_ACEOF 11813 11814fi 11815done 11816 11817fi 11818# dbm_firstkey 11819eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11820eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11821eval "LIB_dbm_firstkey=$ac_res" 11822 11823case "$ac_res" in 11824 yes) 11825 eval "ac_cv_func_dbm_firstkey=yes" 11826 eval "LIB_dbm_firstkey=" 11827 cat >>confdefs.h <<_ACEOF 11828#define $ac_tr_func 1 11829_ACEOF 11830 11831 echo "$as_me:$LINENO: result: yes" >&5 11832echo "${ECHO_T}yes" >&6 11833 ;; 11834 no) 11835 eval "ac_cv_func_dbm_firstkey=no" 11836 eval "LIB_dbm_firstkey=" 11837 echo "$as_me:$LINENO: result: no" >&5 11838echo "${ECHO_T}no" >&6 11839 ;; 11840 *) 11841 eval "ac_cv_func_dbm_firstkey=yes" 11842 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11843 cat >>confdefs.h <<_ACEOF 11844#define $ac_tr_func 1 11845_ACEOF 11846 11847 cat >>confdefs.h <<_ACEOF 11848#define $ac_tr_lib 1 11849_ACEOF 11850 11851 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11852echo "${ECHO_T}yes, in $ac_res" >&6 11853 ;; 11854esac 11855 11856 11857 11858 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 11859 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 11860 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 11861 else 11862 LIB_NDBM="" 11863 fi 11864 11865cat >>confdefs.h <<\_ACEOF 11866#define HAVE_NDBM 1 11867_ACEOF 11868 have_ndbm=yes 11869 if test "$db_type" = "unknown"; then 11870 db_type=ndbm 11871 DBLIB="$LIB_NDBM" 11872 fi 11873 else 11874 11875 $as_unset ac_cv_func_dbm_firstkey 11876 $as_unset ac_cv_funclib_dbm_firstkey 11877 11878 11879for ac_header in \ 11880 gdbm/ndbm.h \ 11881 11882do 11883as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11884if eval "test \"\${$as_ac_Header+set}\" = set"; then 11885 echo "$as_me:$LINENO: checking for $ac_header" >&5 11886echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11887if eval "test \"\${$as_ac_Header+set}\" = set"; then 11888 echo $ECHO_N "(cached) $ECHO_C" >&6 11889fi 11890echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11891echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11892else 11893 # Is the header compilable? 11894echo "$as_me:$LINENO: checking $ac_header usability" >&5 11895echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11896cat >conftest.$ac_ext <<_ACEOF 11897#line $LINENO "configure" 11898#include "confdefs.h" 11899$ac_includes_default 11900#include <$ac_header> 11901_ACEOF 11902rm -f conftest.$ac_objext 11903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11904 (eval $ac_compile) 2>&5 11905 ac_status=$? 11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11907 (exit $ac_status); } && 11908 { ac_try='test -s conftest.$ac_objext' 11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11910 (eval $ac_try) 2>&5 11911 ac_status=$? 11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11913 (exit $ac_status); }; }; then 11914 ac_header_compiler=yes 11915else 11916 echo "$as_me: failed program was:" >&5 11917cat conftest.$ac_ext >&5 11918ac_header_compiler=no 11919fi 11920rm -f conftest.$ac_objext conftest.$ac_ext 11921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11922echo "${ECHO_T}$ac_header_compiler" >&6 11923 11924# Is the header present? 11925echo "$as_me:$LINENO: checking $ac_header presence" >&5 11926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11927cat >conftest.$ac_ext <<_ACEOF 11928#line $LINENO "configure" 11929#include "confdefs.h" 11930#include <$ac_header> 11931_ACEOF 11932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11934 ac_status=$? 11935 egrep -v '^ *\+' conftest.er1 >conftest.err 11936 rm -f conftest.er1 11937 cat conftest.err >&5 11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11939 (exit $ac_status); } >/dev/null; then 11940 if test -s conftest.err; then 11941 ac_cpp_err=$ac_c_preproc_warn_flag 11942 else 11943 ac_cpp_err= 11944 fi 11945else 11946 ac_cpp_err=yes 11947fi 11948if test -z "$ac_cpp_err"; then 11949 ac_header_preproc=yes 11950else 11951 echo "$as_me: failed program was:" >&5 11952 cat conftest.$ac_ext >&5 11953 ac_header_preproc=no 11954fi 11955rm -f conftest.err conftest.$ac_ext 11956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11957echo "${ECHO_T}$ac_header_preproc" >&6 11958 11959# So? What about this header? 11960case $ac_header_compiler:$ac_header_preproc in 11961 yes:no ) 11962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11965echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11966 no:yes ) 11967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11968echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11970echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11972echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11973esac 11974echo "$as_me:$LINENO: checking for $ac_header" >&5 11975echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11976if eval "test \"\${$as_ac_Header+set}\" = set"; then 11977 echo $ECHO_N "(cached) $ECHO_C" >&6 11978else 11979 eval "$as_ac_Header=$ac_header_preproc" 11980fi 11981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11983 11984fi 11985if test `eval echo '${'$as_ac_Header'}'` = yes; then 11986 cat >>confdefs.h <<_ACEOF 11987#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11988_ACEOF 11989 11990fi 11991 11992done 11993 11994 11995 11996 11997 11998echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 11999echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 12000if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 12001 echo $ECHO_N "(cached) $ECHO_C" >&6 12002else 12003 12004if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 12005 ac_save_LIBS="$LIBS" 12006 for ac_lib in "" gdbm; do 12007 case "$ac_lib" in 12008 "") ;; 12009 yes) ac_lib="" ;; 12010 no) continue ;; 12011 -l*) ;; 12012 *) ac_lib="-l$ac_lib" ;; 12013 esac 12014 LIBS=" $ac_lib $ac_save_LIBS" 12015 cat >conftest.$ac_ext <<_ACEOF 12016#line $LINENO "configure" 12017#include "confdefs.h" 12018 12019 #include <stdio.h> 12020 #include <gdbm/ndbm.h> 12021 DBM *dbm; 12022 12023#ifdef F77_DUMMY_MAIN 12024# ifdef __cplusplus 12025 extern "C" 12026# endif 12027 int F77_DUMMY_MAIN() { return 1; } 12028#endif 12029int 12030main () 12031{ 12032dbm_firstkey(NULL) 12033 ; 12034 return 0; 12035} 12036_ACEOF 12037rm -f conftest.$ac_objext conftest$ac_exeext 12038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12039 (eval $ac_link) 2>&5 12040 ac_status=$? 12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12042 (exit $ac_status); } && 12043 { ac_try='test -s conftest$ac_exeext' 12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12045 (eval $ac_try) 2>&5 12046 ac_status=$? 12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12048 (exit $ac_status); }; }; then 12049 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 12050else 12051 echo "$as_me: failed program was:" >&5 12052cat conftest.$ac_ext >&5 12053fi 12054rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12055 done 12056 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 12057 LIBS="$ac_save_LIBS" 12058fi 12059 12060fi 12061 12062 12063eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 12064 12065if false; then 12066 12067for ac_func in dbm_firstkey 12068do 12069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12070echo "$as_me:$LINENO: checking for $ac_func" >&5 12071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12072if eval "test \"\${$as_ac_var+set}\" = set"; then 12073 echo $ECHO_N "(cached) $ECHO_C" >&6 12074else 12075 cat >conftest.$ac_ext <<_ACEOF 12076#line $LINENO "configure" 12077#include "confdefs.h" 12078/* System header to define __stub macros and hopefully few prototypes, 12079 which can conflict with char $ac_func (); below. */ 12080#include <assert.h> 12081/* Override any gcc2 internal prototype to avoid an error. */ 12082#ifdef __cplusplus 12083extern "C" 12084#endif 12085/* We use char because int might match the return type of a gcc2 12086 builtin and then its argument prototype would still apply. */ 12087char $ac_func (); 12088char (*f) (); 12089 12090#ifdef F77_DUMMY_MAIN 12091# ifdef __cplusplus 12092 extern "C" 12093# endif 12094 int F77_DUMMY_MAIN() { return 1; } 12095#endif 12096int 12097main () 12098{ 12099/* The GNU C library defines this for functions which it implements 12100 to always fail with ENOSYS. Some functions are actually named 12101 something starting with __ and the normal name is an alias. */ 12102#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12103choke me 12104#else 12105f = $ac_func; 12106#endif 12107 12108 ; 12109 return 0; 12110} 12111_ACEOF 12112rm -f conftest.$ac_objext conftest$ac_exeext 12113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12114 (eval $ac_link) 2>&5 12115 ac_status=$? 12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12117 (exit $ac_status); } && 12118 { ac_try='test -s conftest$ac_exeext' 12119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12120 (eval $ac_try) 2>&5 12121 ac_status=$? 12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12123 (exit $ac_status); }; }; then 12124 eval "$as_ac_var=yes" 12125else 12126 echo "$as_me: failed program was:" >&5 12127cat conftest.$ac_ext >&5 12128eval "$as_ac_var=no" 12129fi 12130rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12131fi 12132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12134if test `eval echo '${'$as_ac_var'}'` = yes; then 12135 cat >>confdefs.h <<_ACEOF 12136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12137_ACEOF 12138 12139fi 12140done 12141 12142fi 12143# dbm_firstkey 12144eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12145eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12146eval "LIB_dbm_firstkey=$ac_res" 12147 12148case "$ac_res" in 12149 yes) 12150 eval "ac_cv_func_dbm_firstkey=yes" 12151 eval "LIB_dbm_firstkey=" 12152 cat >>confdefs.h <<_ACEOF 12153#define $ac_tr_func 1 12154_ACEOF 12155 12156 echo "$as_me:$LINENO: result: yes" >&5 12157echo "${ECHO_T}yes" >&6 12158 ;; 12159 no) 12160 eval "ac_cv_func_dbm_firstkey=no" 12161 eval "LIB_dbm_firstkey=" 12162 echo "$as_me:$LINENO: result: no" >&5 12163echo "${ECHO_T}no" >&6 12164 ;; 12165 *) 12166 eval "ac_cv_func_dbm_firstkey=yes" 12167 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12168 cat >>confdefs.h <<_ACEOF 12169#define $ac_tr_func 1 12170_ACEOF 12171 12172 cat >>confdefs.h <<_ACEOF 12173#define $ac_tr_lib 1 12174_ACEOF 12175 12176 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 12177echo "${ECHO_T}yes, in $ac_res" >&6 12178 ;; 12179esac 12180 12181 12182 12183 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 12184 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 12185 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 12186 else 12187 LIB_NDBM="" 12188 fi 12189 12190cat >>confdefs.h <<\_ACEOF 12191#define HAVE_NDBM 1 12192_ACEOF 12193 have_ndbm=yes 12194 if test "$db_type" = "unknown"; then 12195 db_type=ndbm 12196 DBLIB="$LIB_NDBM" 12197 fi 12198 fi 12199 fi 12200 12201fi # unknown 12202 12203if test "$have_ndbm" = "yes"; then 12204 echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5 12205echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6 12206 if test "$cross_compiling" = yes; then 12207 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 12208echo "$as_me: error: cannot run test program while cross compiling" >&2;} 12209 { (exit 1); exit 1; }; } 12210else 12211 cat >conftest.$ac_ext <<_ACEOF 12212#line $LINENO "configure" 12213#include "confdefs.h" 12214 12215#include <unistd.h> 12216#include <fcntl.h> 12217#if defined(HAVE_GDBM_NDBM_H) 12218#include <gdbm/ndbm.h> 12219#elif defined(HAVE_NDBM_H) 12220#include <ndbm.h> 12221#elif defined(HAVE_DBM_H) 12222#include <dbm.h> 12223#endif 12224int main() 12225{ 12226 DBM *d; 12227 12228 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 12229 if (d == NULL) 12230 return 1; 12231 dbm_close(d); 12232 return 0; 12233} 12234_ACEOF 12235rm -f conftest$ac_exeext 12236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12237 (eval $ac_link) 2>&5 12238 ac_status=$? 12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12240 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12242 (eval $ac_try) 2>&5 12243 ac_status=$? 12244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12245 (exit $ac_status); }; }; then 12246 12247 if test -f conftest.db; then 12248 echo "$as_me:$LINENO: result: yes" >&5 12249echo "${ECHO_T}yes" >&6 12250 12251cat >>confdefs.h <<\_ACEOF 12252#define HAVE_NEW_DB 1 12253_ACEOF 12254 12255 else 12256 echo "$as_me:$LINENO: result: no" >&5 12257echo "${ECHO_T}no" >&6 12258 fi 12259else 12260 echo "$as_me: program exited with status $ac_status" >&5 12261echo "$as_me: failed program was:" >&5 12262cat conftest.$ac_ext >&5 12263( exit $ac_status ) 12264echo "$as_me:$LINENO: result: no" >&5 12265echo "${ECHO_T}no" >&6 12266fi 12267rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12268fi 12269fi 12270 12271 12272 12273if test "$db_type" = db1; then 12274 HAVE_DB1_TRUE= 12275 HAVE_DB1_FALSE='#' 12276else 12277 HAVE_DB1_TRUE='#' 12278 HAVE_DB1_FALSE= 12279fi 12280 12281 12282if test "$db_type" = db3; then 12283 HAVE_DB3_TRUE= 12284 HAVE_DB3_FALSE='#' 12285else 12286 HAVE_DB3_TRUE='#' 12287 HAVE_DB3_FALSE= 12288fi 12289 12290 12291if test "$db_type" = ndbm; then 12292 HAVE_NDBM_TRUE= 12293 HAVE_NDBM_FALSE='#' 12294else 12295 HAVE_NDBM_TRUE='#' 12296 HAVE_NDBM_FALSE= 12297fi 12298 12299z="" 12300for i in $LDFLAGS; do 12301 case "$i" in 12302 -L*) z="$z $i";; 12303 esac 12304done 12305DBLIB="$z $DBLIB" 12306 12307 12308 12309 12310 12311echo "$as_me:$LINENO: checking for inline" >&5 12312echo $ECHO_N "checking for inline... $ECHO_C" >&6 12313if test "${ac_cv_c_inline+set}" = set; then 12314 echo $ECHO_N "(cached) $ECHO_C" >&6 12315else 12316 ac_cv_c_inline=no 12317for ac_kw in inline __inline__ __inline; do 12318 cat >conftest.$ac_ext <<_ACEOF 12319#line $LINENO "configure" 12320#include "confdefs.h" 12321#ifndef __cplusplus 12322static $ac_kw int static_foo () {return 0; } 12323$ac_kw int foo () {return 0; } 12324#endif 12325 12326_ACEOF 12327rm -f conftest.$ac_objext 12328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12329 (eval $ac_compile) 2>&5 12330 ac_status=$? 12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12332 (exit $ac_status); } && 12333 { ac_try='test -s conftest.$ac_objext' 12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12335 (eval $ac_try) 2>&5 12336 ac_status=$? 12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12338 (exit $ac_status); }; }; then 12339 ac_cv_c_inline=$ac_kw; break 12340else 12341 echo "$as_me: failed program was:" >&5 12342cat conftest.$ac_ext >&5 12343fi 12344rm -f conftest.$ac_objext conftest.$ac_ext 12345done 12346 12347fi 12348echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 12349echo "${ECHO_T}$ac_cv_c_inline" >&6 12350case $ac_cv_c_inline in 12351 inline | yes) ;; 12352 no) 12353cat >>confdefs.h <<\_ACEOF 12354#define inline 12355_ACEOF 12356 ;; 12357 *) cat >>confdefs.h <<_ACEOF 12358#define inline $ac_cv_c_inline 12359_ACEOF 12360 ;; 12361esac 12362 12363echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12364echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 12365if test "${ac_cv_c_const+set}" = set; then 12366 echo $ECHO_N "(cached) $ECHO_C" >&6 12367else 12368 cat >conftest.$ac_ext <<_ACEOF 12369#line $LINENO "configure" 12370#include "confdefs.h" 12371 12372#ifdef F77_DUMMY_MAIN 12373# ifdef __cplusplus 12374 extern "C" 12375# endif 12376 int F77_DUMMY_MAIN() { return 1; } 12377#endif 12378int 12379main () 12380{ 12381/* FIXME: Include the comments suggested by Paul. */ 12382#ifndef __cplusplus 12383 /* Ultrix mips cc rejects this. */ 12384 typedef int charset[2]; 12385 const charset x; 12386 /* SunOS 4.1.1 cc rejects this. */ 12387 char const *const *ccp; 12388 char **p; 12389 /* NEC SVR4.0.2 mips cc rejects this. */ 12390 struct point {int x, y;}; 12391 static struct point const zero = {0,0}; 12392 /* AIX XL C 1.02.0.0 rejects this. 12393 It does not let you subtract one const X* pointer from another in 12394 an arm of an if-expression whose if-part is not a constant 12395 expression */ 12396 const char *g = "string"; 12397 ccp = &g + (g ? g-g : 0); 12398 /* HPUX 7.0 cc rejects these. */ 12399 ++ccp; 12400 p = (char**) ccp; 12401 ccp = (char const *const *) p; 12402 { /* SCO 3.2v4 cc rejects this. */ 12403 char *t; 12404 char const *s = 0 ? (char *) 0 : (char const *) 0; 12405 12406 *t++ = 0; 12407 } 12408 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12409 int x[] = {25, 17}; 12410 const int *foo = &x[0]; 12411 ++foo; 12412 } 12413 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12414 typedef const int *iptr; 12415 iptr p = 0; 12416 ++p; 12417 } 12418 { /* AIX XL C 1.02.0.0 rejects this saying 12419 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12420 struct s { int j; const int *ap[3]; }; 12421 struct s *b; b->j = 5; 12422 } 12423 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12424 const int foo = 10; 12425 } 12426#endif 12427 12428 ; 12429 return 0; 12430} 12431_ACEOF 12432rm -f conftest.$ac_objext 12433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12434 (eval $ac_compile) 2>&5 12435 ac_status=$? 12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12437 (exit $ac_status); } && 12438 { ac_try='test -s conftest.$ac_objext' 12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12440 (eval $ac_try) 2>&5 12441 ac_status=$? 12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12443 (exit $ac_status); }; }; then 12444 ac_cv_c_const=yes 12445else 12446 echo "$as_me: failed program was:" >&5 12447cat conftest.$ac_ext >&5 12448ac_cv_c_const=no 12449fi 12450rm -f conftest.$ac_objext conftest.$ac_ext 12451fi 12452echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12453echo "${ECHO_T}$ac_cv_c_const" >&6 12454if test $ac_cv_c_const = no; then 12455 12456cat >>confdefs.h <<\_ACEOF 12457#define const 12458_ACEOF 12459 12460fi 12461 12462echo "$as_me:$LINENO: checking for size_t" >&5 12463echo $ECHO_N "checking for size_t... $ECHO_C" >&6 12464if test "${ac_cv_type_size_t+set}" = set; then 12465 echo $ECHO_N "(cached) $ECHO_C" >&6 12466else 12467 cat >conftest.$ac_ext <<_ACEOF 12468#line $LINENO "configure" 12469#include "confdefs.h" 12470$ac_includes_default 12471#ifdef F77_DUMMY_MAIN 12472# ifdef __cplusplus 12473 extern "C" 12474# endif 12475 int F77_DUMMY_MAIN() { return 1; } 12476#endif 12477int 12478main () 12479{ 12480if ((size_t *) 0) 12481 return 0; 12482if (sizeof (size_t)) 12483 return 0; 12484 ; 12485 return 0; 12486} 12487_ACEOF 12488rm -f conftest.$ac_objext 12489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12490 (eval $ac_compile) 2>&5 12491 ac_status=$? 12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12493 (exit $ac_status); } && 12494 { ac_try='test -s conftest.$ac_objext' 12495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12496 (eval $ac_try) 2>&5 12497 ac_status=$? 12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12499 (exit $ac_status); }; }; then 12500 ac_cv_type_size_t=yes 12501else 12502 echo "$as_me: failed program was:" >&5 12503cat conftest.$ac_ext >&5 12504ac_cv_type_size_t=no 12505fi 12506rm -f conftest.$ac_objext conftest.$ac_ext 12507fi 12508echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 12509echo "${ECHO_T}$ac_cv_type_size_t" >&6 12510if test $ac_cv_type_size_t = yes; then 12511 : 12512else 12513 12514cat >>confdefs.h <<_ACEOF 12515#define size_t unsigned 12516_ACEOF 12517 12518fi 12519 12520echo "$as_me:$LINENO: checking for pid_t" >&5 12521echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 12522if test "${ac_cv_type_pid_t+set}" = set; then 12523 echo $ECHO_N "(cached) $ECHO_C" >&6 12524else 12525 cat >conftest.$ac_ext <<_ACEOF 12526#line $LINENO "configure" 12527#include "confdefs.h" 12528$ac_includes_default 12529#ifdef F77_DUMMY_MAIN 12530# ifdef __cplusplus 12531 extern "C" 12532# endif 12533 int F77_DUMMY_MAIN() { return 1; } 12534#endif 12535int 12536main () 12537{ 12538if ((pid_t *) 0) 12539 return 0; 12540if (sizeof (pid_t)) 12541 return 0; 12542 ; 12543 return 0; 12544} 12545_ACEOF 12546rm -f conftest.$ac_objext 12547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12548 (eval $ac_compile) 2>&5 12549 ac_status=$? 12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12551 (exit $ac_status); } && 12552 { ac_try='test -s conftest.$ac_objext' 12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12554 (eval $ac_try) 2>&5 12555 ac_status=$? 12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12557 (exit $ac_status); }; }; then 12558 ac_cv_type_pid_t=yes 12559else 12560 echo "$as_me: failed program was:" >&5 12561cat conftest.$ac_ext >&5 12562ac_cv_type_pid_t=no 12563fi 12564rm -f conftest.$ac_objext conftest.$ac_ext 12565fi 12566echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 12567echo "${ECHO_T}$ac_cv_type_pid_t" >&6 12568if test $ac_cv_type_pid_t = yes; then 12569 : 12570else 12571 12572cat >>confdefs.h <<_ACEOF 12573#define pid_t int 12574_ACEOF 12575 12576fi 12577 12578echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 12579echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 12580if test "${ac_cv_type_uid_t+set}" = set; then 12581 echo $ECHO_N "(cached) $ECHO_C" >&6 12582else 12583 cat >conftest.$ac_ext <<_ACEOF 12584#line $LINENO "configure" 12585#include "confdefs.h" 12586#include <sys/types.h> 12587 12588_ACEOF 12589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12590 egrep "uid_t" >/dev/null 2>&1; then 12591 ac_cv_type_uid_t=yes 12592else 12593 ac_cv_type_uid_t=no 12594fi 12595rm -f conftest* 12596 12597fi 12598echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 12599echo "${ECHO_T}$ac_cv_type_uid_t" >&6 12600if test $ac_cv_type_uid_t = no; then 12601 12602cat >>confdefs.h <<\_ACEOF 12603#define uid_t int 12604_ACEOF 12605 12606 12607cat >>confdefs.h <<\_ACEOF 12608#define gid_t int 12609_ACEOF 12610 12611fi 12612 12613 12614echo "$as_me:$LINENO: checking return type of signal handlers" >&5 12615echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 12616if test "${ac_cv_type_signal+set}" = set; then 12617 echo $ECHO_N "(cached) $ECHO_C" >&6 12618else 12619 cat >conftest.$ac_ext <<_ACEOF 12620#line $LINENO "configure" 12621#include "confdefs.h" 12622#include <sys/types.h> 12623#include <signal.h> 12624#ifdef signal 12625# undef signal 12626#endif 12627#ifdef __cplusplus 12628extern "C" void (*signal (int, void (*)(int)))(int); 12629#else 12630void (*signal ()) (); 12631#endif 12632 12633#ifdef F77_DUMMY_MAIN 12634# ifdef __cplusplus 12635 extern "C" 12636# endif 12637 int F77_DUMMY_MAIN() { return 1; } 12638#endif 12639int 12640main () 12641{ 12642int i; 12643 ; 12644 return 0; 12645} 12646_ACEOF 12647rm -f conftest.$ac_objext 12648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12649 (eval $ac_compile) 2>&5 12650 ac_status=$? 12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12652 (exit $ac_status); } && 12653 { ac_try='test -s conftest.$ac_objext' 12654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12655 (eval $ac_try) 2>&5 12656 ac_status=$? 12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12658 (exit $ac_status); }; }; then 12659 ac_cv_type_signal=void 12660else 12661 echo "$as_me: failed program was:" >&5 12662cat conftest.$ac_ext >&5 12663ac_cv_type_signal=int 12664fi 12665rm -f conftest.$ac_objext conftest.$ac_ext 12666fi 12667echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 12668echo "${ECHO_T}$ac_cv_type_signal" >&6 12669 12670cat >>confdefs.h <<_ACEOF 12671#define RETSIGTYPE $ac_cv_type_signal 12672_ACEOF 12673 12674 12675if test "$ac_cv_type_signal" = "void" ; then 12676 12677cat >>confdefs.h <<\_ACEOF 12678#define VOID_RETSIGTYPE 1 12679_ACEOF 12680 12681fi 12682 12683 12684 12685 12686echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12687echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 12688if test "${ac_cv_header_time+set}" = set; then 12689 echo $ECHO_N "(cached) $ECHO_C" >&6 12690else 12691 cat >conftest.$ac_ext <<_ACEOF 12692#line $LINENO "configure" 12693#include "confdefs.h" 12694#include <sys/types.h> 12695#include <sys/time.h> 12696#include <time.h> 12697 12698#ifdef F77_DUMMY_MAIN 12699# ifdef __cplusplus 12700 extern "C" 12701# endif 12702 int F77_DUMMY_MAIN() { return 1; } 12703#endif 12704int 12705main () 12706{ 12707if ((struct tm *) 0) 12708return 0; 12709 ; 12710 return 0; 12711} 12712_ACEOF 12713rm -f conftest.$ac_objext 12714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12715 (eval $ac_compile) 2>&5 12716 ac_status=$? 12717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12718 (exit $ac_status); } && 12719 { ac_try='test -s conftest.$ac_objext' 12720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12721 (eval $ac_try) 2>&5 12722 ac_status=$? 12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12724 (exit $ac_status); }; }; then 12725 ac_cv_header_time=yes 12726else 12727 echo "$as_me: failed program was:" >&5 12728cat conftest.$ac_ext >&5 12729ac_cv_header_time=no 12730fi 12731rm -f conftest.$ac_objext conftest.$ac_ext 12732fi 12733echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12734echo "${ECHO_T}$ac_cv_header_time" >&6 12735if test $ac_cv_header_time = yes; then 12736 12737cat >>confdefs.h <<\_ACEOF 12738#define TIME_WITH_SYS_TIME 1 12739_ACEOF 12740 12741fi 12742 12743 12744 12745for ac_header in standards.h 12746do 12747as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12748if eval "test \"\${$as_ac_Header+set}\" = set"; then 12749 echo "$as_me:$LINENO: checking for $ac_header" >&5 12750echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12751if eval "test \"\${$as_ac_Header+set}\" = set"; then 12752 echo $ECHO_N "(cached) $ECHO_C" >&6 12753fi 12754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12756else 12757 # Is the header compilable? 12758echo "$as_me:$LINENO: checking $ac_header usability" >&5 12759echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12760cat >conftest.$ac_ext <<_ACEOF 12761#line $LINENO "configure" 12762#include "confdefs.h" 12763$ac_includes_default 12764#include <$ac_header> 12765_ACEOF 12766rm -f conftest.$ac_objext 12767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12768 (eval $ac_compile) 2>&5 12769 ac_status=$? 12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12771 (exit $ac_status); } && 12772 { ac_try='test -s conftest.$ac_objext' 12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12774 (eval $ac_try) 2>&5 12775 ac_status=$? 12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12777 (exit $ac_status); }; }; then 12778 ac_header_compiler=yes 12779else 12780 echo "$as_me: failed program was:" >&5 12781cat conftest.$ac_ext >&5 12782ac_header_compiler=no 12783fi 12784rm -f conftest.$ac_objext conftest.$ac_ext 12785echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12786echo "${ECHO_T}$ac_header_compiler" >&6 12787 12788# Is the header present? 12789echo "$as_me:$LINENO: checking $ac_header presence" >&5 12790echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12791cat >conftest.$ac_ext <<_ACEOF 12792#line $LINENO "configure" 12793#include "confdefs.h" 12794#include <$ac_header> 12795_ACEOF 12796if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12798 ac_status=$? 12799 egrep -v '^ *\+' conftest.er1 >conftest.err 12800 rm -f conftest.er1 12801 cat conftest.err >&5 12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12803 (exit $ac_status); } >/dev/null; then 12804 if test -s conftest.err; then 12805 ac_cpp_err=$ac_c_preproc_warn_flag 12806 else 12807 ac_cpp_err= 12808 fi 12809else 12810 ac_cpp_err=yes 12811fi 12812if test -z "$ac_cpp_err"; then 12813 ac_header_preproc=yes 12814else 12815 echo "$as_me: failed program was:" >&5 12816 cat conftest.$ac_ext >&5 12817 ac_header_preproc=no 12818fi 12819rm -f conftest.err conftest.$ac_ext 12820echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12821echo "${ECHO_T}$ac_header_preproc" >&6 12822 12823# So? What about this header? 12824case $ac_header_compiler:$ac_header_preproc in 12825 yes:no ) 12826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12827echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12829echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 12830 no:yes ) 12831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12836echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 12837esac 12838echo "$as_me:$LINENO: checking for $ac_header" >&5 12839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12840if eval "test \"\${$as_ac_Header+set}\" = set"; then 12841 echo $ECHO_N "(cached) $ECHO_C" >&6 12842else 12843 eval "$as_ac_Header=$ac_header_preproc" 12844fi 12845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12847 12848fi 12849if test `eval echo '${'$as_ac_Header'}'` = yes; then 12850 cat >>confdefs.h <<_ACEOF 12851#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12852_ACEOF 12853 12854fi 12855 12856done 12857 12858for i in netinet/ip.h netinet/tcp.h; do 12859 12860cv=`echo "$i" | sed 'y%./+-%__p_%'` 12861 12862echo "$as_me:$LINENO: checking for $i" >&5 12863echo $ECHO_N "checking for $i... $ECHO_C" >&6 12864if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 12865 echo $ECHO_N "(cached) $ECHO_C" >&6 12866else 12867 cat >conftest.$ac_ext <<_ACEOF 12868#line $LINENO "configure" 12869#include "confdefs.h" 12870\ 12871#ifdef HAVE_STANDARDS_H 12872#include <standards.h> 12873#endif 12874#include <$i> 12875 12876_ACEOF 12877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12879 ac_status=$? 12880 egrep -v '^ *\+' conftest.er1 >conftest.err 12881 rm -f conftest.er1 12882 cat conftest.err >&5 12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12884 (exit $ac_status); } >/dev/null; then 12885 if test -s conftest.err; then 12886 ac_cpp_err=$ac_c_preproc_warn_flag 12887 else 12888 ac_cpp_err= 12889 fi 12890else 12891 ac_cpp_err=yes 12892fi 12893if test -z "$ac_cpp_err"; then 12894 eval "ac_cv_header_$cv=yes" 12895else 12896 echo "$as_me: failed program was:" >&5 12897 cat conftest.$ac_ext >&5 12898 eval "ac_cv_header_$cv=no" 12899fi 12900rm -f conftest.err conftest.$ac_ext 12901fi 12902echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 12903echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 12904ac_res=`eval echo \\$ac_cv_header_$cv` 12905if test "$ac_res" = yes; then 12906 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 12907 cat >>confdefs.h <<_ACEOF 12908#define $ac_tr_hdr 1 12909_ACEOF 12910 12911fi 12912done 12913if false;then 12914 12915 12916for ac_header in netinet/ip.h netinet/tcp.h 12917do 12918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12919if eval "test \"\${$as_ac_Header+set}\" = set"; then 12920 echo "$as_me:$LINENO: checking for $ac_header" >&5 12921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12922if eval "test \"\${$as_ac_Header+set}\" = set"; then 12923 echo $ECHO_N "(cached) $ECHO_C" >&6 12924fi 12925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12927else 12928 # Is the header compilable? 12929echo "$as_me:$LINENO: checking $ac_header usability" >&5 12930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12931cat >conftest.$ac_ext <<_ACEOF 12932#line $LINENO "configure" 12933#include "confdefs.h" 12934$ac_includes_default 12935#include <$ac_header> 12936_ACEOF 12937rm -f conftest.$ac_objext 12938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12939 (eval $ac_compile) 2>&5 12940 ac_status=$? 12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12942 (exit $ac_status); } && 12943 { ac_try='test -s conftest.$ac_objext' 12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12945 (eval $ac_try) 2>&5 12946 ac_status=$? 12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12948 (exit $ac_status); }; }; then 12949 ac_header_compiler=yes 12950else 12951 echo "$as_me: failed program was:" >&5 12952cat conftest.$ac_ext >&5 12953ac_header_compiler=no 12954fi 12955rm -f conftest.$ac_objext conftest.$ac_ext 12956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12957echo "${ECHO_T}$ac_header_compiler" >&6 12958 12959# Is the header present? 12960echo "$as_me:$LINENO: checking $ac_header presence" >&5 12961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12962cat >conftest.$ac_ext <<_ACEOF 12963#line $LINENO "configure" 12964#include "confdefs.h" 12965#include <$ac_header> 12966_ACEOF 12967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12969 ac_status=$? 12970 egrep -v '^ *\+' conftest.er1 >conftest.err 12971 rm -f conftest.er1 12972 cat conftest.err >&5 12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12974 (exit $ac_status); } >/dev/null; then 12975 if test -s conftest.err; then 12976 ac_cpp_err=$ac_c_preproc_warn_flag 12977 else 12978 ac_cpp_err= 12979 fi 12980else 12981 ac_cpp_err=yes 12982fi 12983if test -z "$ac_cpp_err"; then 12984 ac_header_preproc=yes 12985else 12986 echo "$as_me: failed program was:" >&5 12987 cat conftest.$ac_ext >&5 12988 ac_header_preproc=no 12989fi 12990rm -f conftest.err conftest.$ac_ext 12991echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12992echo "${ECHO_T}$ac_header_preproc" >&6 12993 12994# So? What about this header? 12995case $ac_header_compiler:$ac_header_preproc in 12996 yes:no ) 12997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12998echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13000echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 13001 no:yes ) 13002 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13003echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13004 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13005echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13007echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 13008esac 13009echo "$as_me:$LINENO: checking for $ac_header" >&5 13010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13011if eval "test \"\${$as_ac_Header+set}\" = set"; then 13012 echo $ECHO_N "(cached) $ECHO_C" >&6 13013else 13014 eval "$as_ac_Header=$ac_header_preproc" 13015fi 13016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13018 13019fi 13020if test `eval echo '${'$as_ac_Header'}'` = yes; then 13021 cat >>confdefs.h <<_ACEOF 13022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13023_ACEOF 13024 13025fi 13026 13027done 13028 13029fi 13030 13031 13032 13033 13034for ac_func in getlogin setlogin 13035do 13036as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13037echo "$as_me:$LINENO: checking for $ac_func" >&5 13038echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13039if eval "test \"\${$as_ac_var+set}\" = set"; then 13040 echo $ECHO_N "(cached) $ECHO_C" >&6 13041else 13042 cat >conftest.$ac_ext <<_ACEOF 13043#line $LINENO "configure" 13044#include "confdefs.h" 13045/* System header to define __stub macros and hopefully few prototypes, 13046 which can conflict with char $ac_func (); below. */ 13047#include <assert.h> 13048/* Override any gcc2 internal prototype to avoid an error. */ 13049#ifdef __cplusplus 13050extern "C" 13051#endif 13052/* We use char because int might match the return type of a gcc2 13053 builtin and then its argument prototype would still apply. */ 13054char $ac_func (); 13055char (*f) (); 13056 13057#ifdef F77_DUMMY_MAIN 13058# ifdef __cplusplus 13059 extern "C" 13060# endif 13061 int F77_DUMMY_MAIN() { return 1; } 13062#endif 13063int 13064main () 13065{ 13066/* The GNU C library defines this for functions which it implements 13067 to always fail with ENOSYS. Some functions are actually named 13068 something starting with __ and the normal name is an alias. */ 13069#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13070choke me 13071#else 13072f = $ac_func; 13073#endif 13074 13075 ; 13076 return 0; 13077} 13078_ACEOF 13079rm -f conftest.$ac_objext conftest$ac_exeext 13080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13081 (eval $ac_link) 2>&5 13082 ac_status=$? 13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13084 (exit $ac_status); } && 13085 { ac_try='test -s conftest$ac_exeext' 13086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13087 (eval $ac_try) 2>&5 13088 ac_status=$? 13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13090 (exit $ac_status); }; }; then 13091 eval "$as_ac_var=yes" 13092else 13093 echo "$as_me: failed program was:" >&5 13094cat conftest.$ac_ext >&5 13095eval "$as_ac_var=no" 13096fi 13097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13098fi 13099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13100echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13101if test `eval echo '${'$as_ac_var'}'` = yes; then 13102 cat >>confdefs.h <<_ACEOF 13103#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13104_ACEOF 13105 13106fi 13107done 13108 13109if test "$ac_cv_func_getlogin" = yes; then 13110echo "$as_me:$LINENO: checking if getlogin is posix" >&5 13111echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6 13112if test "${ac_cv_func_getlogin_posix+set}" = set; then 13113 echo $ECHO_N "(cached) $ECHO_C" >&6 13114else 13115 13116if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 13117 ac_cv_func_getlogin_posix=no 13118else 13119 ac_cv_func_getlogin_posix=yes 13120fi 13121 13122fi 13123echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5 13124echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6 13125if test "$ac_cv_func_getlogin_posix" = yes; then 13126 13127cat >>confdefs.h <<\_ACEOF 13128#define POSIX_GETLOGIN 1 13129_ACEOF 13130 13131fi 13132fi 13133 13134 13135 13136for ac_header in stdlib.h unistd.h 13137do 13138as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13139if eval "test \"\${$as_ac_Header+set}\" = set"; then 13140 echo "$as_me:$LINENO: checking for $ac_header" >&5 13141echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13142if eval "test \"\${$as_ac_Header+set}\" = set"; then 13143 echo $ECHO_N "(cached) $ECHO_C" >&6 13144fi 13145echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13146echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13147else 13148 # Is the header compilable? 13149echo "$as_me:$LINENO: checking $ac_header usability" >&5 13150echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13151cat >conftest.$ac_ext <<_ACEOF 13152#line $LINENO "configure" 13153#include "confdefs.h" 13154$ac_includes_default 13155#include <$ac_header> 13156_ACEOF 13157rm -f conftest.$ac_objext 13158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13159 (eval $ac_compile) 2>&5 13160 ac_status=$? 13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13162 (exit $ac_status); } && 13163 { ac_try='test -s conftest.$ac_objext' 13164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13165 (eval $ac_try) 2>&5 13166 ac_status=$? 13167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13168 (exit $ac_status); }; }; then 13169 ac_header_compiler=yes 13170else 13171 echo "$as_me: failed program was:" >&5 13172cat conftest.$ac_ext >&5 13173ac_header_compiler=no 13174fi 13175rm -f conftest.$ac_objext conftest.$ac_ext 13176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13177echo "${ECHO_T}$ac_header_compiler" >&6 13178 13179# Is the header present? 13180echo "$as_me:$LINENO: checking $ac_header presence" >&5 13181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13182cat >conftest.$ac_ext <<_ACEOF 13183#line $LINENO "configure" 13184#include "confdefs.h" 13185#include <$ac_header> 13186_ACEOF 13187if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13188 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13189 ac_status=$? 13190 egrep -v '^ *\+' conftest.er1 >conftest.err 13191 rm -f conftest.er1 13192 cat conftest.err >&5 13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13194 (exit $ac_status); } >/dev/null; then 13195 if test -s conftest.err; then 13196 ac_cpp_err=$ac_c_preproc_warn_flag 13197 else 13198 ac_cpp_err= 13199 fi 13200else 13201 ac_cpp_err=yes 13202fi 13203if test -z "$ac_cpp_err"; then 13204 ac_header_preproc=yes 13205else 13206 echo "$as_me: failed program was:" >&5 13207 cat conftest.$ac_ext >&5 13208 ac_header_preproc=no 13209fi 13210rm -f conftest.err conftest.$ac_ext 13211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13212echo "${ECHO_T}$ac_header_preproc" >&6 13213 13214# So? What about this header? 13215case $ac_header_compiler:$ac_header_preproc in 13216 yes:no ) 13217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 13221 no:yes ) 13222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 13228esac 13229echo "$as_me:$LINENO: checking for $ac_header" >&5 13230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13231if eval "test \"\${$as_ac_Header+set}\" = set"; then 13232 echo $ECHO_N "(cached) $ECHO_C" >&6 13233else 13234 eval "$as_ac_Header=$ac_header_preproc" 13235fi 13236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13238 13239fi 13240if test `eval echo '${'$as_ac_Header'}'` = yes; then 13241 cat >>confdefs.h <<_ACEOF 13242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13243_ACEOF 13244 13245fi 13246 13247done 13248 13249 13250for ac_func in getpagesize 13251do 13252as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13253echo "$as_me:$LINENO: checking for $ac_func" >&5 13254echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13255if eval "test \"\${$as_ac_var+set}\" = set"; then 13256 echo $ECHO_N "(cached) $ECHO_C" >&6 13257else 13258 cat >conftest.$ac_ext <<_ACEOF 13259#line $LINENO "configure" 13260#include "confdefs.h" 13261/* System header to define __stub macros and hopefully few prototypes, 13262 which can conflict with char $ac_func (); below. */ 13263#include <assert.h> 13264/* Override any gcc2 internal prototype to avoid an error. */ 13265#ifdef __cplusplus 13266extern "C" 13267#endif 13268/* We use char because int might match the return type of a gcc2 13269 builtin and then its argument prototype would still apply. */ 13270char $ac_func (); 13271char (*f) (); 13272 13273#ifdef F77_DUMMY_MAIN 13274# ifdef __cplusplus 13275 extern "C" 13276# endif 13277 int F77_DUMMY_MAIN() { return 1; } 13278#endif 13279int 13280main () 13281{ 13282/* The GNU C library defines this for functions which it implements 13283 to always fail with ENOSYS. Some functions are actually named 13284 something starting with __ and the normal name is an alias. */ 13285#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13286choke me 13287#else 13288f = $ac_func; 13289#endif 13290 13291 ; 13292 return 0; 13293} 13294_ACEOF 13295rm -f conftest.$ac_objext conftest$ac_exeext 13296if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13297 (eval $ac_link) 2>&5 13298 ac_status=$? 13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13300 (exit $ac_status); } && 13301 { ac_try='test -s conftest$ac_exeext' 13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13303 (eval $ac_try) 2>&5 13304 ac_status=$? 13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13306 (exit $ac_status); }; }; then 13307 eval "$as_ac_var=yes" 13308else 13309 echo "$as_me: failed program was:" >&5 13310cat conftest.$ac_ext >&5 13311eval "$as_ac_var=no" 13312fi 13313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13314fi 13315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13317if test `eval echo '${'$as_ac_var'}'` = yes; then 13318 cat >>confdefs.h <<_ACEOF 13319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13320_ACEOF 13321 13322fi 13323done 13324 13325echo "$as_me:$LINENO: checking for working mmap" >&5 13326echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 13327if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 13328 echo $ECHO_N "(cached) $ECHO_C" >&6 13329else 13330 if test "$cross_compiling" = yes; then 13331 ac_cv_func_mmap_fixed_mapped=no 13332else 13333 cat >conftest.$ac_ext <<_ACEOF 13334#line $LINENO "configure" 13335#include "confdefs.h" 13336$ac_includes_default 13337/* malloc might have been renamed as rpl_malloc. */ 13338#undef malloc 13339 13340/* Thanks to Mike Haertel and Jim Avera for this test. 13341 Here is a matrix of mmap possibilities: 13342 mmap private not fixed 13343 mmap private fixed at somewhere currently unmapped 13344 mmap private fixed at somewhere already mapped 13345 mmap shared not fixed 13346 mmap shared fixed at somewhere currently unmapped 13347 mmap shared fixed at somewhere already mapped 13348 For private mappings, we should verify that changes cannot be read() 13349 back from the file, nor mmap's back from the file at a different 13350 address. (There have been systems where private was not correctly 13351 implemented like the infamous i386 svr4.0, and systems where the 13352 VM page cache was not coherent with the file system buffer cache 13353 like early versions of FreeBSD and possibly contemporary NetBSD.) 13354 For shared mappings, we should conversely verify that changes get 13355 propagated back to all the places they're supposed to be. 13356 13357 Grep wants private fixed already mapped. 13358 The main things grep needs to know about mmap are: 13359 * does it exist and is it safe to write into the mmap'd area 13360 * how to use it (BSD variants) */ 13361 13362#include <fcntl.h> 13363#include <sys/mman.h> 13364 13365#if !STDC_HEADERS && !HAVE_STDLIB_H 13366char *malloc (); 13367#endif 13368 13369/* This mess was copied from the GNU getpagesize.h. */ 13370#if !HAVE_GETPAGESIZE 13371/* Assume that all systems that can run configure have sys/param.h. */ 13372# if !HAVE_SYS_PARAM_H 13373# define HAVE_SYS_PARAM_H 1 13374# endif 13375 13376# ifdef _SC_PAGESIZE 13377# define getpagesize() sysconf(_SC_PAGESIZE) 13378# else /* no _SC_PAGESIZE */ 13379# if HAVE_SYS_PARAM_H 13380# include <sys/param.h> 13381# ifdef EXEC_PAGESIZE 13382# define getpagesize() EXEC_PAGESIZE 13383# else /* no EXEC_PAGESIZE */ 13384# ifdef NBPG 13385# define getpagesize() NBPG * CLSIZE 13386# ifndef CLSIZE 13387# define CLSIZE 1 13388# endif /* no CLSIZE */ 13389# else /* no NBPG */ 13390# ifdef NBPC 13391# define getpagesize() NBPC 13392# else /* no NBPC */ 13393# ifdef PAGESIZE 13394# define getpagesize() PAGESIZE 13395# endif /* PAGESIZE */ 13396# endif /* no NBPC */ 13397# endif /* no NBPG */ 13398# endif /* no EXEC_PAGESIZE */ 13399# else /* no HAVE_SYS_PARAM_H */ 13400# define getpagesize() 8192 /* punt totally */ 13401# endif /* no HAVE_SYS_PARAM_H */ 13402# endif /* no _SC_PAGESIZE */ 13403 13404#endif /* no HAVE_GETPAGESIZE */ 13405 13406int 13407main () 13408{ 13409 char *data, *data2, *data3; 13410 int i, pagesize; 13411 int fd; 13412 13413 pagesize = getpagesize (); 13414 13415 /* First, make a file with some known garbage in it. */ 13416 data = (char *) malloc (pagesize); 13417 if (!data) 13418 exit (1); 13419 for (i = 0; i < pagesize; ++i) 13420 *(data + i) = rand (); 13421 umask (0); 13422 fd = creat ("conftest.mmap", 0600); 13423 if (fd < 0) 13424 exit (1); 13425 if (write (fd, data, pagesize) != pagesize) 13426 exit (1); 13427 close (fd); 13428 13429 /* Next, try to mmap the file at a fixed address which already has 13430 something else allocated at it. If we can, also make sure that 13431 we see the same garbage. */ 13432 fd = open ("conftest.mmap", O_RDWR); 13433 if (fd < 0) 13434 exit (1); 13435 data2 = (char *) malloc (2 * pagesize); 13436 if (!data2) 13437 exit (1); 13438 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 13439 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13440 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13441 exit (1); 13442 for (i = 0; i < pagesize; ++i) 13443 if (*(data + i) != *(data2 + i)) 13444 exit (1); 13445 13446 /* Finally, make sure that changes to the mapped area do not 13447 percolate back to the file as seen by read(). (This is a bug on 13448 some variants of i386 svr4.0.) */ 13449 for (i = 0; i < pagesize; ++i) 13450 *(data2 + i) = *(data2 + i) + 1; 13451 data3 = (char *) malloc (pagesize); 13452 if (!data3) 13453 exit (1); 13454 if (read (fd, data3, pagesize) != pagesize) 13455 exit (1); 13456 for (i = 0; i < pagesize; ++i) 13457 if (*(data + i) != *(data3 + i)) 13458 exit (1); 13459 close (fd); 13460 exit (0); 13461} 13462_ACEOF 13463rm -f conftest$ac_exeext 13464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13465 (eval $ac_link) 2>&5 13466 ac_status=$? 13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13470 (eval $ac_try) 2>&5 13471 ac_status=$? 13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13473 (exit $ac_status); }; }; then 13474 ac_cv_func_mmap_fixed_mapped=yes 13475else 13476 echo "$as_me: program exited with status $ac_status" >&5 13477echo "$as_me: failed program was:" >&5 13478cat conftest.$ac_ext >&5 13479( exit $ac_status ) 13480ac_cv_func_mmap_fixed_mapped=no 13481fi 13482rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13483fi 13484fi 13485echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 13486echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 13487if test $ac_cv_func_mmap_fixed_mapped = yes; then 13488 13489cat >>confdefs.h <<\_ACEOF 13490#define HAVE_MMAP 1 13491_ACEOF 13492 13493fi 13494rm -f conftest.mmap 13495 13496 13497echo "$as_me:$LINENO: checking if realloc if broken" >&5 13498echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6 13499if test "${ac_cv_func_realloc_broken+set}" = set; then 13500 echo $ECHO_N "(cached) $ECHO_C" >&6 13501else 13502 13503ac_cv_func_realloc_broken=no 13504if test "$cross_compiling" = yes; then 13505 : 13506else 13507 cat >conftest.$ac_ext <<_ACEOF 13508#line $LINENO "configure" 13509#include "confdefs.h" 13510 13511#include <stddef.h> 13512#include <stdlib.h> 13513 13514int main() 13515{ 13516 return realloc(NULL, 17) == NULL; 13517} 13518 13519_ACEOF 13520rm -f conftest$ac_exeext 13521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13522 (eval $ac_link) 2>&5 13523 ac_status=$? 13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13527 (eval $ac_try) 2>&5 13528 ac_status=$? 13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13530 (exit $ac_status); }; }; then 13531 : 13532else 13533 echo "$as_me: program exited with status $ac_status" >&5 13534echo "$as_me: failed program was:" >&5 13535cat conftest.$ac_ext >&5 13536( exit $ac_status ) 13537ac_cv_func_realloc_broken=yes 13538fi 13539rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13540fi 13541 13542fi 13543echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5 13544echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6 13545if test "$ac_cv_func_realloc_broken" = yes ; then 13546 13547cat >>confdefs.h <<\_ACEOF 13548#define BROKEN_REALLOC 1 13549_ACEOF 13550 13551fi 13552 13553 13554 13555 13556 13557 13558 13559DIR_roken=roken 13560LIB_roken='$(top_builddir)/lib/roken/libroken.la' 13561INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576WFLAGS_NOUNUSED="" 13577WFLAGS_NOIMPLICITINT="" 13578if test -z "$WFLAGS" -a "$GCC" = "yes"; then 13579 # -Wno-implicit-int for broken X11 headers 13580 # leave these out for now: 13581 # -Wcast-align doesn't work well on alpha osf/1 13582 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 13583 # -Wmissing-declarations -Wnested-externs 13584 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 13585 WFLAGS_NOUNUSED="-Wno-unused" 13586 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 13587fi 13588 13589 13590 13591 13592 13593 13594 13595 13596cv=`echo "ssize_t" | sed 'y%./+- %__p__%'` 13597echo "$as_me:$LINENO: checking for ssize_t" >&5 13598echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 13599if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 13600 echo $ECHO_N "(cached) $ECHO_C" >&6 13601else 13602 cat >conftest.$ac_ext <<_ACEOF 13603#line $LINENO "configure" 13604#include "confdefs.h" 13605#include <sys/types.h> 13606#if STDC_HEADERS 13607#include <stdlib.h> 13608#include <stddef.h> 13609#endif 13610#include <unistd.h> 13611#ifdef F77_DUMMY_MAIN 13612# ifdef __cplusplus 13613 extern "C" 13614# endif 13615 int F77_DUMMY_MAIN() { return 1; } 13616#endif 13617int 13618main () 13619{ 13620ssize_t foo; 13621 ; 13622 return 0; 13623} 13624_ACEOF 13625rm -f conftest.$ac_objext 13626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13627 (eval $ac_compile) 2>&5 13628 ac_status=$? 13629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13630 (exit $ac_status); } && 13631 { ac_try='test -s conftest.$ac_objext' 13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13633 (eval $ac_try) 2>&5 13634 ac_status=$? 13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13636 (exit $ac_status); }; }; then 13637 eval "ac_cv_type_$cv=yes" 13638else 13639 echo "$as_me: failed program was:" >&5 13640cat conftest.$ac_ext >&5 13641eval "ac_cv_type_$cv=no" 13642fi 13643rm -f conftest.$ac_objext conftest.$ac_ext 13644fi 13645ac_foo=`eval echo \\$ac_cv_type_$cv` 13646echo "$as_me:$LINENO: result: $ac_foo" >&5 13647echo "${ECHO_T}$ac_foo" >&6 13648if test "$ac_foo" = yes; then 13649 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 13650if false; then 13651 echo "$as_me:$LINENO: checking for ssize_t" >&5 13652echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 13653if test "${ac_cv_type_ssize_t+set}" = set; then 13654 echo $ECHO_N "(cached) $ECHO_C" >&6 13655else 13656 cat >conftest.$ac_ext <<_ACEOF 13657#line $LINENO "configure" 13658#include "confdefs.h" 13659$ac_includes_default 13660#ifdef F77_DUMMY_MAIN 13661# ifdef __cplusplus 13662 extern "C" 13663# endif 13664 int F77_DUMMY_MAIN() { return 1; } 13665#endif 13666int 13667main () 13668{ 13669if ((ssize_t *) 0) 13670 return 0; 13671if (sizeof (ssize_t)) 13672 return 0; 13673 ; 13674 return 0; 13675} 13676_ACEOF 13677rm -f conftest.$ac_objext 13678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13679 (eval $ac_compile) 2>&5 13680 ac_status=$? 13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13682 (exit $ac_status); } && 13683 { ac_try='test -s conftest.$ac_objext' 13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13685 (eval $ac_try) 2>&5 13686 ac_status=$? 13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13688 (exit $ac_status); }; }; then 13689 ac_cv_type_ssize_t=yes 13690else 13691 echo "$as_me: failed program was:" >&5 13692cat conftest.$ac_ext >&5 13693ac_cv_type_ssize_t=no 13694fi 13695rm -f conftest.$ac_objext conftest.$ac_ext 13696fi 13697echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 13698echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 13699if test $ac_cv_type_ssize_t = yes; then 13700 13701cat >>confdefs.h <<_ACEOF 13702#define HAVE_SSIZE_T 1 13703_ACEOF 13704 13705 13706fi 13707 13708fi 13709 13710cat >>confdefs.h <<_ACEOF 13711#define $ac_tr_hdr 1 13712_ACEOF 13713 13714fi 13715 13716 13717 13718 13719 13720cv=`echo "long long" | sed 'y%./+- %__p__%'` 13721echo "$as_me:$LINENO: checking for long long" >&5 13722echo $ECHO_N "checking for long long... $ECHO_C" >&6 13723if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 13724 echo $ECHO_N "(cached) $ECHO_C" >&6 13725else 13726 cat >conftest.$ac_ext <<_ACEOF 13727#line $LINENO "configure" 13728#include "confdefs.h" 13729#include <sys/types.h> 13730#if STDC_HEADERS 13731#include <stdlib.h> 13732#include <stddef.h> 13733#endif 13734 13735#ifdef F77_DUMMY_MAIN 13736# ifdef __cplusplus 13737 extern "C" 13738# endif 13739 int F77_DUMMY_MAIN() { return 1; } 13740#endif 13741int 13742main () 13743{ 13744long long foo; 13745 ; 13746 return 0; 13747} 13748_ACEOF 13749rm -f conftest.$ac_objext 13750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13751 (eval $ac_compile) 2>&5 13752 ac_status=$? 13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13754 (exit $ac_status); } && 13755 { ac_try='test -s conftest.$ac_objext' 13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13757 (eval $ac_try) 2>&5 13758 ac_status=$? 13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13760 (exit $ac_status); }; }; then 13761 eval "ac_cv_type_$cv=yes" 13762else 13763 echo "$as_me: failed program was:" >&5 13764cat conftest.$ac_ext >&5 13765eval "ac_cv_type_$cv=no" 13766fi 13767rm -f conftest.$ac_objext conftest.$ac_ext 13768fi 13769ac_foo=`eval echo \\$ac_cv_type_$cv` 13770echo "$as_me:$LINENO: result: $ac_foo" >&5 13771echo "${ECHO_T}$ac_foo" >&6 13772if test "$ac_foo" = yes; then 13773 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 13774if false; then 13775 echo "$as_me:$LINENO: checking for long long" >&5 13776echo $ECHO_N "checking for long long... $ECHO_C" >&6 13777if test "${ac_cv_type_long_long+set}" = set; then 13778 echo $ECHO_N "(cached) $ECHO_C" >&6 13779else 13780 cat >conftest.$ac_ext <<_ACEOF 13781#line $LINENO "configure" 13782#include "confdefs.h" 13783$ac_includes_default 13784#ifdef F77_DUMMY_MAIN 13785# ifdef __cplusplus 13786 extern "C" 13787# endif 13788 int F77_DUMMY_MAIN() { return 1; } 13789#endif 13790int 13791main () 13792{ 13793if ((long long *) 0) 13794 return 0; 13795if (sizeof (long long)) 13796 return 0; 13797 ; 13798 return 0; 13799} 13800_ACEOF 13801rm -f conftest.$ac_objext 13802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13803 (eval $ac_compile) 2>&5 13804 ac_status=$? 13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13806 (exit $ac_status); } && 13807 { ac_try='test -s conftest.$ac_objext' 13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13809 (eval $ac_try) 2>&5 13810 ac_status=$? 13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13812 (exit $ac_status); }; }; then 13813 ac_cv_type_long_long=yes 13814else 13815 echo "$as_me: failed program was:" >&5 13816cat conftest.$ac_ext >&5 13817ac_cv_type_long_long=no 13818fi 13819rm -f conftest.$ac_objext conftest.$ac_ext 13820fi 13821echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 13822echo "${ECHO_T}$ac_cv_type_long_long" >&6 13823if test $ac_cv_type_long_long = yes; then 13824 13825cat >>confdefs.h <<_ACEOF 13826#define HAVE_LONG_LONG 1 13827_ACEOF 13828 13829 13830fi 13831 13832fi 13833 13834cat >>confdefs.h <<_ACEOF 13835#define $ac_tr_hdr 1 13836_ACEOF 13837 13838fi 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891for ac_header in \ 13892 arpa/inet.h \ 13893 arpa/nameser.h \ 13894 config.h \ 13895 crypt.h \ 13896 dirent.h \ 13897 errno.h \ 13898 err.h \ 13899 fcntl.h \ 13900 grp.h \ 13901 ifaddrs.h \ 13902 net/if.h \ 13903 netdb.h \ 13904 netinet/in.h \ 13905 netinet/in6.h \ 13906 netinet/in_systm.h \ 13907 netinet6/in6.h \ 13908 netinet6/in6_var.h \ 13909 paths.h \ 13910 pwd.h \ 13911 resolv.h \ 13912 rpcsvc/ypclnt.h \ 13913 shadow.h \ 13914 sys/bswap.h \ 13915 sys/ioctl.h \ 13916 sys/mman.h \ 13917 sys/param.h \ 13918 sys/proc.h \ 13919 sys/resource.h \ 13920 sys/socket.h \ 13921 sys/sockio.h \ 13922 sys/stat.h \ 13923 sys/sysctl.h \ 13924 sys/time.h \ 13925 sys/tty.h \ 13926 sys/types.h \ 13927 sys/uio.h \ 13928 sys/utsname.h \ 13929 sys/wait.h \ 13930 syslog.h \ 13931 termios.h \ 13932 unistd.h \ 13933 userconf.h \ 13934 usersec.h \ 13935 util.h \ 13936 vis.h \ 13937 13938do 13939as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13940if eval "test \"\${$as_ac_Header+set}\" = set"; then 13941 echo "$as_me:$LINENO: checking for $ac_header" >&5 13942echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13943if eval "test \"\${$as_ac_Header+set}\" = set"; then 13944 echo $ECHO_N "(cached) $ECHO_C" >&6 13945fi 13946echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13947echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13948else 13949 # Is the header compilable? 13950echo "$as_me:$LINENO: checking $ac_header usability" >&5 13951echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13952cat >conftest.$ac_ext <<_ACEOF 13953#line $LINENO "configure" 13954#include "confdefs.h" 13955$ac_includes_default 13956#include <$ac_header> 13957_ACEOF 13958rm -f conftest.$ac_objext 13959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13960 (eval $ac_compile) 2>&5 13961 ac_status=$? 13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13963 (exit $ac_status); } && 13964 { ac_try='test -s conftest.$ac_objext' 13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13966 (eval $ac_try) 2>&5 13967 ac_status=$? 13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13969 (exit $ac_status); }; }; then 13970 ac_header_compiler=yes 13971else 13972 echo "$as_me: failed program was:" >&5 13973cat conftest.$ac_ext >&5 13974ac_header_compiler=no 13975fi 13976rm -f conftest.$ac_objext conftest.$ac_ext 13977echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13978echo "${ECHO_T}$ac_header_compiler" >&6 13979 13980# Is the header present? 13981echo "$as_me:$LINENO: checking $ac_header presence" >&5 13982echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13983cat >conftest.$ac_ext <<_ACEOF 13984#line $LINENO "configure" 13985#include "confdefs.h" 13986#include <$ac_header> 13987_ACEOF 13988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13990 ac_status=$? 13991 egrep -v '^ *\+' conftest.er1 >conftest.err 13992 rm -f conftest.er1 13993 cat conftest.err >&5 13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13995 (exit $ac_status); } >/dev/null; then 13996 if test -s conftest.err; then 13997 ac_cpp_err=$ac_c_preproc_warn_flag 13998 else 13999 ac_cpp_err= 14000 fi 14001else 14002 ac_cpp_err=yes 14003fi 14004if test -z "$ac_cpp_err"; then 14005 ac_header_preproc=yes 14006else 14007 echo "$as_me: failed program was:" >&5 14008 cat conftest.$ac_ext >&5 14009 ac_header_preproc=no 14010fi 14011rm -f conftest.err conftest.$ac_ext 14012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14013echo "${ECHO_T}$ac_header_preproc" >&6 14014 14015# So? What about this header? 14016case $ac_header_compiler:$ac_header_preproc in 14017 yes:no ) 14018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14021echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 14022 no:yes ) 14023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14024echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14026echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14028echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 14029esac 14030echo "$as_me:$LINENO: checking for $ac_header" >&5 14031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14032if eval "test \"\${$as_ac_Header+set}\" = set"; then 14033 echo $ECHO_N "(cached) $ECHO_C" >&6 14034else 14035 eval "$as_ac_Header=$ac_header_preproc" 14036fi 14037echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14038echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14039 14040fi 14041if test `eval echo '${'$as_ac_Header'}'` = yes; then 14042 cat >>confdefs.h <<_ACEOF 14043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14044_ACEOF 14045 14046fi 14047 14048done 14049 14050 14051 14052 14053 14054 14055if test "$ac_cv_header_err_h" = yes; then 14056 have_err_h_TRUE= 14057 have_err_h_FALSE='#' 14058else 14059 have_err_h_TRUE='#' 14060 have_err_h_FALSE= 14061fi 14062 14063 14064 14065if test "$ac_cv_header_fnmatch_h" = yes; then 14066 have_fnmatch_h_TRUE= 14067 have_fnmatch_h_FALSE='#' 14068else 14069 have_fnmatch_h_TRUE='#' 14070 have_fnmatch_h_FALSE= 14071fi 14072 14073 14074 14075if test "$ac_cv_header_ifaddrs_h" = yes; then 14076 have_ifaddrs_h_TRUE= 14077 have_ifaddrs_h_FALSE='#' 14078else 14079 have_ifaddrs_h_TRUE='#' 14080 have_ifaddrs_h_FALSE= 14081fi 14082 14083 14084 14085if test "$ac_cv_header_vis_h" = yes; then 14086 have_vis_h_TRUE= 14087 have_vis_h_FALSE='#' 14088else 14089 have_vis_h_TRUE='#' 14090 have_vis_h_FALSE= 14091fi 14092 14093 14094 14095 14096 14097 14098 14099echo "$as_me:$LINENO: checking for socket" >&5 14100echo $ECHO_N "checking for socket... $ECHO_C" >&6 14101if test "${ac_cv_funclib_socket+set}" = set; then 14102 echo $ECHO_N "(cached) $ECHO_C" >&6 14103else 14104 14105if eval "test \"\$ac_cv_func_socket\" != yes" ; then 14106 ac_save_LIBS="$LIBS" 14107 for ac_lib in "" socket; do 14108 case "$ac_lib" in 14109 "") ;; 14110 yes) ac_lib="" ;; 14111 no) continue ;; 14112 -l*) ;; 14113 *) ac_lib="-l$ac_lib" ;; 14114 esac 14115 LIBS=" $ac_lib $ac_save_LIBS" 14116 cat >conftest.$ac_ext <<_ACEOF 14117#line $LINENO "configure" 14118#include "confdefs.h" 14119 14120#ifdef F77_DUMMY_MAIN 14121# ifdef __cplusplus 14122 extern "C" 14123# endif 14124 int F77_DUMMY_MAIN() { return 1; } 14125#endif 14126int 14127main () 14128{ 14129socket() 14130 ; 14131 return 0; 14132} 14133_ACEOF 14134rm -f conftest.$ac_objext conftest$ac_exeext 14135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14136 (eval $ac_link) 2>&5 14137 ac_status=$? 14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14139 (exit $ac_status); } && 14140 { ac_try='test -s conftest$ac_exeext' 14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14142 (eval $ac_try) 2>&5 14143 ac_status=$? 14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14145 (exit $ac_status); }; }; then 14146 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 14147else 14148 echo "$as_me: failed program was:" >&5 14149cat conftest.$ac_ext >&5 14150fi 14151rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14152 done 14153 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 14154 LIBS="$ac_save_LIBS" 14155fi 14156 14157fi 14158 14159 14160eval "ac_res=\$ac_cv_funclib_socket" 14161 14162if false; then 14163 14164for ac_func in socket 14165do 14166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14167echo "$as_me:$LINENO: checking for $ac_func" >&5 14168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14169if eval "test \"\${$as_ac_var+set}\" = set"; then 14170 echo $ECHO_N "(cached) $ECHO_C" >&6 14171else 14172 cat >conftest.$ac_ext <<_ACEOF 14173#line $LINENO "configure" 14174#include "confdefs.h" 14175/* System header to define __stub macros and hopefully few prototypes, 14176 which can conflict with char $ac_func (); below. */ 14177#include <assert.h> 14178/* Override any gcc2 internal prototype to avoid an error. */ 14179#ifdef __cplusplus 14180extern "C" 14181#endif 14182/* We use char because int might match the return type of a gcc2 14183 builtin and then its argument prototype would still apply. */ 14184char $ac_func (); 14185char (*f) (); 14186 14187#ifdef F77_DUMMY_MAIN 14188# ifdef __cplusplus 14189 extern "C" 14190# endif 14191 int F77_DUMMY_MAIN() { return 1; } 14192#endif 14193int 14194main () 14195{ 14196/* The GNU C library defines this for functions which it implements 14197 to always fail with ENOSYS. Some functions are actually named 14198 something starting with __ and the normal name is an alias. */ 14199#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14200choke me 14201#else 14202f = $ac_func; 14203#endif 14204 14205 ; 14206 return 0; 14207} 14208_ACEOF 14209rm -f conftest.$ac_objext conftest$ac_exeext 14210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14211 (eval $ac_link) 2>&5 14212 ac_status=$? 14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14214 (exit $ac_status); } && 14215 { ac_try='test -s conftest$ac_exeext' 14216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14217 (eval $ac_try) 2>&5 14218 ac_status=$? 14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14220 (exit $ac_status); }; }; then 14221 eval "$as_ac_var=yes" 14222else 14223 echo "$as_me: failed program was:" >&5 14224cat conftest.$ac_ext >&5 14225eval "$as_ac_var=no" 14226fi 14227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14228fi 14229echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14230echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14231if test `eval echo '${'$as_ac_var'}'` = yes; then 14232 cat >>confdefs.h <<_ACEOF 14233#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14234_ACEOF 14235 14236fi 14237done 14238 14239fi 14240# socket 14241eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14242eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14243eval "LIB_socket=$ac_res" 14244 14245case "$ac_res" in 14246 yes) 14247 eval "ac_cv_func_socket=yes" 14248 eval "LIB_socket=" 14249 cat >>confdefs.h <<_ACEOF 14250#define $ac_tr_func 1 14251_ACEOF 14252 14253 echo "$as_me:$LINENO: result: yes" >&5 14254echo "${ECHO_T}yes" >&6 14255 ;; 14256 no) 14257 eval "ac_cv_func_socket=no" 14258 eval "LIB_socket=" 14259 echo "$as_me:$LINENO: result: no" >&5 14260echo "${ECHO_T}no" >&6 14261 ;; 14262 *) 14263 eval "ac_cv_func_socket=yes" 14264 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14265 cat >>confdefs.h <<_ACEOF 14266#define $ac_tr_func 1 14267_ACEOF 14268 14269 cat >>confdefs.h <<_ACEOF 14270#define $ac_tr_lib 1 14271_ACEOF 14272 14273 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 14274echo "${ECHO_T}yes, in $ac_res" >&6 14275 ;; 14276esac 14277 14278 14279if test -n "$LIB_socket"; then 14280 LIBS="$LIB_socket $LIBS" 14281fi 14282 14283 14284 14285 14286 14287echo "$as_me:$LINENO: checking for gethostbyname" >&5 14288echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 14289if test "${ac_cv_funclib_gethostbyname+set}" = set; then 14290 echo $ECHO_N "(cached) $ECHO_C" >&6 14291else 14292 14293if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 14294 ac_save_LIBS="$LIBS" 14295 for ac_lib in "" nsl; do 14296 case "$ac_lib" in 14297 "") ;; 14298 yes) ac_lib="" ;; 14299 no) continue ;; 14300 -l*) ;; 14301 *) ac_lib="-l$ac_lib" ;; 14302 esac 14303 LIBS=" $ac_lib $ac_save_LIBS" 14304 cat >conftest.$ac_ext <<_ACEOF 14305#line $LINENO "configure" 14306#include "confdefs.h" 14307 14308#ifdef F77_DUMMY_MAIN 14309# ifdef __cplusplus 14310 extern "C" 14311# endif 14312 int F77_DUMMY_MAIN() { return 1; } 14313#endif 14314int 14315main () 14316{ 14317gethostbyname() 14318 ; 14319 return 0; 14320} 14321_ACEOF 14322rm -f conftest.$ac_objext conftest$ac_exeext 14323if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14324 (eval $ac_link) 2>&5 14325 ac_status=$? 14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14327 (exit $ac_status); } && 14328 { ac_try='test -s conftest$ac_exeext' 14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14330 (eval $ac_try) 2>&5 14331 ac_status=$? 14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14333 (exit $ac_status); }; }; then 14334 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 14335else 14336 echo "$as_me: failed program was:" >&5 14337cat conftest.$ac_ext >&5 14338fi 14339rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14340 done 14341 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 14342 LIBS="$ac_save_LIBS" 14343fi 14344 14345fi 14346 14347 14348eval "ac_res=\$ac_cv_funclib_gethostbyname" 14349 14350if false; then 14351 14352for ac_func in gethostbyname 14353do 14354as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14355echo "$as_me:$LINENO: checking for $ac_func" >&5 14356echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14357if eval "test \"\${$as_ac_var+set}\" = set"; then 14358 echo $ECHO_N "(cached) $ECHO_C" >&6 14359else 14360 cat >conftest.$ac_ext <<_ACEOF 14361#line $LINENO "configure" 14362#include "confdefs.h" 14363/* System header to define __stub macros and hopefully few prototypes, 14364 which can conflict with char $ac_func (); below. */ 14365#include <assert.h> 14366/* Override any gcc2 internal prototype to avoid an error. */ 14367#ifdef __cplusplus 14368extern "C" 14369#endif 14370/* We use char because int might match the return type of a gcc2 14371 builtin and then its argument prototype would still apply. */ 14372char $ac_func (); 14373char (*f) (); 14374 14375#ifdef F77_DUMMY_MAIN 14376# ifdef __cplusplus 14377 extern "C" 14378# endif 14379 int F77_DUMMY_MAIN() { return 1; } 14380#endif 14381int 14382main () 14383{ 14384/* The GNU C library defines this for functions which it implements 14385 to always fail with ENOSYS. Some functions are actually named 14386 something starting with __ and the normal name is an alias. */ 14387#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14388choke me 14389#else 14390f = $ac_func; 14391#endif 14392 14393 ; 14394 return 0; 14395} 14396_ACEOF 14397rm -f conftest.$ac_objext conftest$ac_exeext 14398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14399 (eval $ac_link) 2>&5 14400 ac_status=$? 14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14402 (exit $ac_status); } && 14403 { ac_try='test -s conftest$ac_exeext' 14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14405 (eval $ac_try) 2>&5 14406 ac_status=$? 14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14408 (exit $ac_status); }; }; then 14409 eval "$as_ac_var=yes" 14410else 14411 echo "$as_me: failed program was:" >&5 14412cat conftest.$ac_ext >&5 14413eval "$as_ac_var=no" 14414fi 14415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14416fi 14417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14418echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14419if test `eval echo '${'$as_ac_var'}'` = yes; then 14420 cat >>confdefs.h <<_ACEOF 14421#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14422_ACEOF 14423 14424fi 14425done 14426 14427fi 14428# gethostbyname 14429eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14430eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14431eval "LIB_gethostbyname=$ac_res" 14432 14433case "$ac_res" in 14434 yes) 14435 eval "ac_cv_func_gethostbyname=yes" 14436 eval "LIB_gethostbyname=" 14437 cat >>confdefs.h <<_ACEOF 14438#define $ac_tr_func 1 14439_ACEOF 14440 14441 echo "$as_me:$LINENO: result: yes" >&5 14442echo "${ECHO_T}yes" >&6 14443 ;; 14444 no) 14445 eval "ac_cv_func_gethostbyname=no" 14446 eval "LIB_gethostbyname=" 14447 echo "$as_me:$LINENO: result: no" >&5 14448echo "${ECHO_T}no" >&6 14449 ;; 14450 *) 14451 eval "ac_cv_func_gethostbyname=yes" 14452 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14453 cat >>confdefs.h <<_ACEOF 14454#define $ac_tr_func 1 14455_ACEOF 14456 14457 cat >>confdefs.h <<_ACEOF 14458#define $ac_tr_lib 1 14459_ACEOF 14460 14461 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 14462echo "${ECHO_T}yes, in $ac_res" >&6 14463 ;; 14464esac 14465 14466 14467if test -n "$LIB_gethostbyname"; then 14468 LIBS="$LIB_gethostbyname $LIBS" 14469fi 14470 14471 14472 14473 14474 14475echo "$as_me:$LINENO: checking for syslog" >&5 14476echo $ECHO_N "checking for syslog... $ECHO_C" >&6 14477if test "${ac_cv_funclib_syslog+set}" = set; then 14478 echo $ECHO_N "(cached) $ECHO_C" >&6 14479else 14480 14481if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 14482 ac_save_LIBS="$LIBS" 14483 for ac_lib in "" syslog; do 14484 case "$ac_lib" in 14485 "") ;; 14486 yes) ac_lib="" ;; 14487 no) continue ;; 14488 -l*) ;; 14489 *) ac_lib="-l$ac_lib" ;; 14490 esac 14491 LIBS=" $ac_lib $ac_save_LIBS" 14492 cat >conftest.$ac_ext <<_ACEOF 14493#line $LINENO "configure" 14494#include "confdefs.h" 14495 14496#ifdef F77_DUMMY_MAIN 14497# ifdef __cplusplus 14498 extern "C" 14499# endif 14500 int F77_DUMMY_MAIN() { return 1; } 14501#endif 14502int 14503main () 14504{ 14505syslog() 14506 ; 14507 return 0; 14508} 14509_ACEOF 14510rm -f conftest.$ac_objext conftest$ac_exeext 14511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14512 (eval $ac_link) 2>&5 14513 ac_status=$? 14514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14515 (exit $ac_status); } && 14516 { ac_try='test -s conftest$ac_exeext' 14517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14518 (eval $ac_try) 2>&5 14519 ac_status=$? 14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14521 (exit $ac_status); }; }; then 14522 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 14523else 14524 echo "$as_me: failed program was:" >&5 14525cat conftest.$ac_ext >&5 14526fi 14527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14528 done 14529 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 14530 LIBS="$ac_save_LIBS" 14531fi 14532 14533fi 14534 14535 14536eval "ac_res=\$ac_cv_funclib_syslog" 14537 14538if false; then 14539 14540for ac_func in syslog 14541do 14542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14543echo "$as_me:$LINENO: checking for $ac_func" >&5 14544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14545if eval "test \"\${$as_ac_var+set}\" = set"; then 14546 echo $ECHO_N "(cached) $ECHO_C" >&6 14547else 14548 cat >conftest.$ac_ext <<_ACEOF 14549#line $LINENO "configure" 14550#include "confdefs.h" 14551/* System header to define __stub macros and hopefully few prototypes, 14552 which can conflict with char $ac_func (); below. */ 14553#include <assert.h> 14554/* Override any gcc2 internal prototype to avoid an error. */ 14555#ifdef __cplusplus 14556extern "C" 14557#endif 14558/* We use char because int might match the return type of a gcc2 14559 builtin and then its argument prototype would still apply. */ 14560char $ac_func (); 14561char (*f) (); 14562 14563#ifdef F77_DUMMY_MAIN 14564# ifdef __cplusplus 14565 extern "C" 14566# endif 14567 int F77_DUMMY_MAIN() { return 1; } 14568#endif 14569int 14570main () 14571{ 14572/* The GNU C library defines this for functions which it implements 14573 to always fail with ENOSYS. Some functions are actually named 14574 something starting with __ and the normal name is an alias. */ 14575#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14576choke me 14577#else 14578f = $ac_func; 14579#endif 14580 14581 ; 14582 return 0; 14583} 14584_ACEOF 14585rm -f conftest.$ac_objext conftest$ac_exeext 14586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14587 (eval $ac_link) 2>&5 14588 ac_status=$? 14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14590 (exit $ac_status); } && 14591 { ac_try='test -s conftest$ac_exeext' 14592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14593 (eval $ac_try) 2>&5 14594 ac_status=$? 14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14596 (exit $ac_status); }; }; then 14597 eval "$as_ac_var=yes" 14598else 14599 echo "$as_me: failed program was:" >&5 14600cat conftest.$ac_ext >&5 14601eval "$as_ac_var=no" 14602fi 14603rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14604fi 14605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14607if test `eval echo '${'$as_ac_var'}'` = yes; then 14608 cat >>confdefs.h <<_ACEOF 14609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14610_ACEOF 14611 14612fi 14613done 14614 14615fi 14616# syslog 14617eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14618eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14619eval "LIB_syslog=$ac_res" 14620 14621case "$ac_res" in 14622 yes) 14623 eval "ac_cv_func_syslog=yes" 14624 eval "LIB_syslog=" 14625 cat >>confdefs.h <<_ACEOF 14626#define $ac_tr_func 1 14627_ACEOF 14628 14629 echo "$as_me:$LINENO: result: yes" >&5 14630echo "${ECHO_T}yes" >&6 14631 ;; 14632 no) 14633 eval "ac_cv_func_syslog=no" 14634 eval "LIB_syslog=" 14635 echo "$as_me:$LINENO: result: no" >&5 14636echo "${ECHO_T}no" >&6 14637 ;; 14638 *) 14639 eval "ac_cv_func_syslog=yes" 14640 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14641 cat >>confdefs.h <<_ACEOF 14642#define $ac_tr_func 1 14643_ACEOF 14644 14645 cat >>confdefs.h <<_ACEOF 14646#define $ac_tr_lib 1 14647_ACEOF 14648 14649 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 14650echo "${ECHO_T}yes, in $ac_res" >&6 14651 ;; 14652esac 14653 14654 14655if test -n "$LIB_syslog"; then 14656 LIBS="$LIB_syslog $LIBS" 14657fi 14658 14659 14660 14661 14662# Check whether --with-ipv6 or --without-ipv6 was given. 14663if test "${with_ipv6+set}" = set; then 14664 withval="$with_ipv6" 14665 14666if test "$withval" = "no"; then 14667 ac_cv_lib_ipv6=no 14668fi 14669fi; 14670save_CFLAGS="${CFLAGS}" 14671echo "$as_me:$LINENO: checking for IPv6 stack type" >&5 14672echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6 14673if test "${v6type+set}" = set; then 14674 echo $ECHO_N "(cached) $ECHO_C" >&6 14675else 14676 v6type=unknown 14677v6lib=none 14678 14679for i in v6d toshiba kame inria zeta linux; do 14680 case $i in 14681 v6d) 14682 cat >conftest.$ac_ext <<_ACEOF 14683#line $LINENO "configure" 14684#include "confdefs.h" 14685 14686#include </usr/local/v6/include/sys/types.h> 14687#ifdef __V6D__ 14688yes 14689#endif 14690_ACEOF 14691if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14692 egrep "yes" >/dev/null 2>&1; then 14693 v6type=$i; v6lib=v6; 14694 v6libdir=/usr/local/v6/lib; 14695 CFLAGS="-I/usr/local/v6/include $CFLAGS" 14696fi 14697rm -f conftest* 14698 14699 ;; 14700 toshiba) 14701 cat >conftest.$ac_ext <<_ACEOF 14702#line $LINENO "configure" 14703#include "confdefs.h" 14704 14705#include <sys/param.h> 14706#ifdef _TOSHIBA_INET6 14707yes 14708#endif 14709_ACEOF 14710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14711 egrep "yes" >/dev/null 2>&1; then 14712 v6type=$i; v6lib=inet6; 14713 v6libdir=/usr/local/v6/lib; 14714 CFLAGS="-DINET6 $CFLAGS" 14715fi 14716rm -f conftest* 14717 14718 ;; 14719 kame) 14720 cat >conftest.$ac_ext <<_ACEOF 14721#line $LINENO "configure" 14722#include "confdefs.h" 14723 14724#include <netinet/in.h> 14725#ifdef __KAME__ 14726yes 14727#endif 14728_ACEOF 14729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14730 egrep "yes" >/dev/null 2>&1; then 14731 v6type=$i; v6lib=inet6; 14732 v6libdir=/usr/local/v6/lib; 14733 CFLAGS="-DINET6 $CFLAGS" 14734fi 14735rm -f conftest* 14736 14737 ;; 14738 inria) 14739 cat >conftest.$ac_ext <<_ACEOF 14740#line $LINENO "configure" 14741#include "confdefs.h" 14742 14743#include <netinet/in.h> 14744#ifdef IPV6_INRIA_VERSION 14745yes 14746#endif 14747_ACEOF 14748if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14749 egrep "yes" >/dev/null 2>&1; then 14750 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 14751fi 14752rm -f conftest* 14753 14754 ;; 14755 zeta) 14756 cat >conftest.$ac_ext <<_ACEOF 14757#line $LINENO "configure" 14758#include "confdefs.h" 14759 14760#include <sys/param.h> 14761#ifdef _ZETA_MINAMI_INET6 14762yes 14763#endif 14764_ACEOF 14765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14766 egrep "yes" >/dev/null 2>&1; then 14767 v6type=$i; v6lib=inet6; 14768 v6libdir=/usr/local/v6/lib; 14769 CFLAGS="-DINET6 $CFLAGS" 14770fi 14771rm -f conftest* 14772 14773 ;; 14774 linux) 14775 if test -d /usr/inet6; then 14776 v6type=$i 14777 v6lib=inet6 14778 v6libdir=/usr/inet6 14779 CFLAGS="-DINET6 $CFLAGS" 14780 fi 14781 ;; 14782 esac 14783 if test "$v6type" != "unknown"; then 14784 break 14785 fi 14786done 14787 14788if test "$v6lib" != "none"; then 14789 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 14790 if test -d $dir -a -f $dir/lib$v6lib.a; then 14791 LIBS="-L$dir -l$v6lib $LIBS" 14792 break 14793 fi 14794 done 14795fi 14796 14797fi 14798echo "$as_me:$LINENO: result: $v6type" >&5 14799echo "${ECHO_T}$v6type" >&6 14800 14801echo "$as_me:$LINENO: checking for IPv6" >&5 14802echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 14803if test "${ac_cv_lib_ipv6+set}" = set; then 14804 echo $ECHO_N "(cached) $ECHO_C" >&6 14805else 14806 14807cat >conftest.$ac_ext <<_ACEOF 14808#line $LINENO "configure" 14809#include "confdefs.h" 14810 14811#ifdef HAVE_SYS_TYPES_H 14812#include <sys/types.h> 14813#endif 14814#ifdef HAVE_SYS_SOCKET_H 14815#include <sys/socket.h> 14816#endif 14817#ifdef HAVE_NETINET_IN_H 14818#include <netinet/in.h> 14819#endif 14820#ifdef HAVE_NETINET_IN6_H 14821#include <netinet/in6.h> 14822#endif 14823 14824#ifdef F77_DUMMY_MAIN 14825# ifdef __cplusplus 14826 extern "C" 14827# endif 14828 int F77_DUMMY_MAIN() { return 1; } 14829#endif 14830int 14831main () 14832{ 14833 14834 struct sockaddr_in6 sin6; 14835 int s; 14836 14837 s = socket(AF_INET6, SOCK_DGRAM, 0); 14838 14839 sin6.sin6_family = AF_INET6; 14840 sin6.sin6_port = htons(17); 14841 sin6.sin6_addr = in6addr_any; 14842 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 14843 14844 ; 14845 return 0; 14846} 14847_ACEOF 14848rm -f conftest.$ac_objext conftest$ac_exeext 14849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14850 (eval $ac_link) 2>&5 14851 ac_status=$? 14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14853 (exit $ac_status); } && 14854 { ac_try='test -s conftest$ac_exeext' 14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14856 (eval $ac_try) 2>&5 14857 ac_status=$? 14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14859 (exit $ac_status); }; }; then 14860 ac_cv_lib_ipv6=yes 14861else 14862 echo "$as_me: failed program was:" >&5 14863cat conftest.$ac_ext >&5 14864ac_cv_lib_ipv6=no 14865fi 14866rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14867fi 14868echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5 14869echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 14870if test "$ac_cv_lib_ipv6" = yes; then 14871 14872cat >>confdefs.h <<\_ACEOF 14873#define HAVE_IPV6 1 14874_ACEOF 14875 14876else 14877 CFLAGS="${save_CFLAGS}" 14878fi 14879 14880if test "$ac_cv_lib_ipv6" = yes; then 14881 echo "$as_me:$LINENO: checking for in6addr_loopback" >&5 14882echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6 14883if test "${ac_cv_var_in6addr_loopback+set}" = set; then 14884 echo $ECHO_N "(cached) $ECHO_C" >&6 14885else 14886 14887 cat >conftest.$ac_ext <<_ACEOF 14888#line $LINENO "configure" 14889#include "confdefs.h" 14890 14891#ifdef HAVE_SYS_TYPES_H 14892#include <sys/types.h> 14893#endif 14894#ifdef HAVE_SYS_SOCKET_H 14895#include <sys/socket.h> 14896#endif 14897#ifdef HAVE_NETINET_IN_H 14898#include <netinet/in.h> 14899#endif 14900#ifdef HAVE_NETINET_IN6_H 14901#include <netinet/in6.h> 14902#endif 14903#ifdef F77_DUMMY_MAIN 14904# ifdef __cplusplus 14905 extern "C" 14906# endif 14907 int F77_DUMMY_MAIN() { return 1; } 14908#endif 14909int 14910main () 14911{ 14912 14913struct sockaddr_in6 sin6; 14914sin6.sin6_addr = in6addr_loopback; 14915 14916 ; 14917 return 0; 14918} 14919_ACEOF 14920rm -f conftest.$ac_objext conftest$ac_exeext 14921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14922 (eval $ac_link) 2>&5 14923 ac_status=$? 14924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14925 (exit $ac_status); } && 14926 { ac_try='test -s conftest$ac_exeext' 14927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14928 (eval $ac_try) 2>&5 14929 ac_status=$? 14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14931 (exit $ac_status); }; }; then 14932 ac_cv_var_in6addr_loopback=yes 14933else 14934 echo "$as_me: failed program was:" >&5 14935cat conftest.$ac_ext >&5 14936ac_cv_var_in6addr_loopback=no 14937fi 14938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14939fi 14940echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5 14941echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6 14942 if test "$ac_cv_var_in6addr_loopback" = yes; then 14943 14944cat >>confdefs.h <<\_ACEOF 14945#define HAVE_IN6ADDR_LOOPBACK 1 14946_ACEOF 14947 14948 fi 14949fi 14950 14951 14952 14953 14954 14955 14956echo "$as_me:$LINENO: checking for gethostbyname2" >&5 14957echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 14958if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 14959 echo $ECHO_N "(cached) $ECHO_C" >&6 14960else 14961 14962if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 14963 ac_save_LIBS="$LIBS" 14964 for ac_lib in "" inet6 ip6; do 14965 case "$ac_lib" in 14966 "") ;; 14967 yes) ac_lib="" ;; 14968 no) continue ;; 14969 -l*) ;; 14970 *) ac_lib="-l$ac_lib" ;; 14971 esac 14972 LIBS=" $ac_lib $ac_save_LIBS" 14973 cat >conftest.$ac_ext <<_ACEOF 14974#line $LINENO "configure" 14975#include "confdefs.h" 14976 14977#ifdef F77_DUMMY_MAIN 14978# ifdef __cplusplus 14979 extern "C" 14980# endif 14981 int F77_DUMMY_MAIN() { return 1; } 14982#endif 14983int 14984main () 14985{ 14986gethostbyname2() 14987 ; 14988 return 0; 14989} 14990_ACEOF 14991rm -f conftest.$ac_objext conftest$ac_exeext 14992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14993 (eval $ac_link) 2>&5 14994 ac_status=$? 14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14996 (exit $ac_status); } && 14997 { ac_try='test -s conftest$ac_exeext' 14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14999 (eval $ac_try) 2>&5 15000 ac_status=$? 15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15002 (exit $ac_status); }; }; then 15003 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 15004else 15005 echo "$as_me: failed program was:" >&5 15006cat conftest.$ac_ext >&5 15007fi 15008rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15009 done 15010 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 15011 LIBS="$ac_save_LIBS" 15012fi 15013 15014fi 15015 15016 15017eval "ac_res=\$ac_cv_funclib_gethostbyname2" 15018 15019if false; then 15020 15021for ac_func in gethostbyname2 15022do 15023as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15024echo "$as_me:$LINENO: checking for $ac_func" >&5 15025echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15026if eval "test \"\${$as_ac_var+set}\" = set"; then 15027 echo $ECHO_N "(cached) $ECHO_C" >&6 15028else 15029 cat >conftest.$ac_ext <<_ACEOF 15030#line $LINENO "configure" 15031#include "confdefs.h" 15032/* System header to define __stub macros and hopefully few prototypes, 15033 which can conflict with char $ac_func (); below. */ 15034#include <assert.h> 15035/* Override any gcc2 internal prototype to avoid an error. */ 15036#ifdef __cplusplus 15037extern "C" 15038#endif 15039/* We use char because int might match the return type of a gcc2 15040 builtin and then its argument prototype would still apply. */ 15041char $ac_func (); 15042char (*f) (); 15043 15044#ifdef F77_DUMMY_MAIN 15045# ifdef __cplusplus 15046 extern "C" 15047# endif 15048 int F77_DUMMY_MAIN() { return 1; } 15049#endif 15050int 15051main () 15052{ 15053/* The GNU C library defines this for functions which it implements 15054 to always fail with ENOSYS. Some functions are actually named 15055 something starting with __ and the normal name is an alias. */ 15056#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15057choke me 15058#else 15059f = $ac_func; 15060#endif 15061 15062 ; 15063 return 0; 15064} 15065_ACEOF 15066rm -f conftest.$ac_objext conftest$ac_exeext 15067if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15068 (eval $ac_link) 2>&5 15069 ac_status=$? 15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15071 (exit $ac_status); } && 15072 { ac_try='test -s conftest$ac_exeext' 15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15074 (eval $ac_try) 2>&5 15075 ac_status=$? 15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15077 (exit $ac_status); }; }; then 15078 eval "$as_ac_var=yes" 15079else 15080 echo "$as_me: failed program was:" >&5 15081cat conftest.$ac_ext >&5 15082eval "$as_ac_var=no" 15083fi 15084rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15085fi 15086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15087echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15088if test `eval echo '${'$as_ac_var'}'` = yes; then 15089 cat >>confdefs.h <<_ACEOF 15090#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15091_ACEOF 15092 15093fi 15094done 15095 15096fi 15097# gethostbyname2 15098eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15099eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15100eval "LIB_gethostbyname2=$ac_res" 15101 15102case "$ac_res" in 15103 yes) 15104 eval "ac_cv_func_gethostbyname2=yes" 15105 eval "LIB_gethostbyname2=" 15106 cat >>confdefs.h <<_ACEOF 15107#define $ac_tr_func 1 15108_ACEOF 15109 15110 echo "$as_me:$LINENO: result: yes" >&5 15111echo "${ECHO_T}yes" >&6 15112 ;; 15113 no) 15114 eval "ac_cv_func_gethostbyname2=no" 15115 eval "LIB_gethostbyname2=" 15116 echo "$as_me:$LINENO: result: no" >&5 15117echo "${ECHO_T}no" >&6 15118 ;; 15119 *) 15120 eval "ac_cv_func_gethostbyname2=yes" 15121 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15122 cat >>confdefs.h <<_ACEOF 15123#define $ac_tr_func 1 15124_ACEOF 15125 15126 cat >>confdefs.h <<_ACEOF 15127#define $ac_tr_lib 1 15128_ACEOF 15129 15130 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15131echo "${ECHO_T}yes, in $ac_res" >&6 15132 ;; 15133esac 15134 15135 15136if test -n "$LIB_gethostbyname2"; then 15137 LIBS="$LIB_gethostbyname2 $LIBS" 15138fi 15139 15140 15141 15142 15143 15144 15145echo "$as_me:$LINENO: checking for res_search" >&5 15146echo $ECHO_N "checking for res_search... $ECHO_C" >&6 15147if test "${ac_cv_funclib_res_search+set}" = set; then 15148 echo $ECHO_N "(cached) $ECHO_C" >&6 15149else 15150 15151if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 15152 ac_save_LIBS="$LIBS" 15153 for ac_lib in "" resolv; do 15154 case "$ac_lib" in 15155 "") ;; 15156 yes) ac_lib="" ;; 15157 no) continue ;; 15158 -l*) ;; 15159 *) ac_lib="-l$ac_lib" ;; 15160 esac 15161 LIBS=" $ac_lib $ac_save_LIBS" 15162 cat >conftest.$ac_ext <<_ACEOF 15163#line $LINENO "configure" 15164#include "confdefs.h" 15165 15166#include <stdio.h> 15167#ifdef HAVE_SYS_TYPES_H 15168#include <sys/types.h> 15169#endif 15170#ifdef HAVE_NETINET_IN_H 15171#include <netinet/in.h> 15172#endif 15173#ifdef HAVE_ARPA_NAMESER_H 15174#include <arpa/nameser.h> 15175#endif 15176#ifdef HAVE_RESOLV_H 15177#include <resolv.h> 15178#endif 15179 15180#ifdef F77_DUMMY_MAIN 15181# ifdef __cplusplus 15182 extern "C" 15183# endif 15184 int F77_DUMMY_MAIN() { return 1; } 15185#endif 15186int 15187main () 15188{ 15189res_search(0,0,0,0,0) 15190 ; 15191 return 0; 15192} 15193_ACEOF 15194rm -f conftest.$ac_objext conftest$ac_exeext 15195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15196 (eval $ac_link) 2>&5 15197 ac_status=$? 15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15199 (exit $ac_status); } && 15200 { ac_try='test -s conftest$ac_exeext' 15201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15202 (eval $ac_try) 2>&5 15203 ac_status=$? 15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15205 (exit $ac_status); }; }; then 15206 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 15207else 15208 echo "$as_me: failed program was:" >&5 15209cat conftest.$ac_ext >&5 15210fi 15211rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15212 done 15213 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 15214 LIBS="$ac_save_LIBS" 15215fi 15216 15217fi 15218 15219 15220eval "ac_res=\$ac_cv_funclib_res_search" 15221 15222if false; then 15223 15224for ac_func in res_search 15225do 15226as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15227echo "$as_me:$LINENO: checking for $ac_func" >&5 15228echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15229if eval "test \"\${$as_ac_var+set}\" = set"; then 15230 echo $ECHO_N "(cached) $ECHO_C" >&6 15231else 15232 cat >conftest.$ac_ext <<_ACEOF 15233#line $LINENO "configure" 15234#include "confdefs.h" 15235/* System header to define __stub macros and hopefully few prototypes, 15236 which can conflict with char $ac_func (); below. */ 15237#include <assert.h> 15238/* Override any gcc2 internal prototype to avoid an error. */ 15239#ifdef __cplusplus 15240extern "C" 15241#endif 15242/* We use char because int might match the return type of a gcc2 15243 builtin and then its argument prototype would still apply. */ 15244char $ac_func (); 15245char (*f) (); 15246 15247#ifdef F77_DUMMY_MAIN 15248# ifdef __cplusplus 15249 extern "C" 15250# endif 15251 int F77_DUMMY_MAIN() { return 1; } 15252#endif 15253int 15254main () 15255{ 15256/* The GNU C library defines this for functions which it implements 15257 to always fail with ENOSYS. Some functions are actually named 15258 something starting with __ and the normal name is an alias. */ 15259#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15260choke me 15261#else 15262f = $ac_func; 15263#endif 15264 15265 ; 15266 return 0; 15267} 15268_ACEOF 15269rm -f conftest.$ac_objext conftest$ac_exeext 15270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15271 (eval $ac_link) 2>&5 15272 ac_status=$? 15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15274 (exit $ac_status); } && 15275 { ac_try='test -s conftest$ac_exeext' 15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15277 (eval $ac_try) 2>&5 15278 ac_status=$? 15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15280 (exit $ac_status); }; }; then 15281 eval "$as_ac_var=yes" 15282else 15283 echo "$as_me: failed program was:" >&5 15284cat conftest.$ac_ext >&5 15285eval "$as_ac_var=no" 15286fi 15287rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15288fi 15289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15290echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15291if test `eval echo '${'$as_ac_var'}'` = yes; then 15292 cat >>confdefs.h <<_ACEOF 15293#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15294_ACEOF 15295 15296fi 15297done 15298 15299fi 15300# res_search 15301eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15302eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15303eval "LIB_res_search=$ac_res" 15304 15305case "$ac_res" in 15306 yes) 15307 eval "ac_cv_func_res_search=yes" 15308 eval "LIB_res_search=" 15309 cat >>confdefs.h <<_ACEOF 15310#define $ac_tr_func 1 15311_ACEOF 15312 15313 echo "$as_me:$LINENO: result: yes" >&5 15314echo "${ECHO_T}yes" >&6 15315 ;; 15316 no) 15317 eval "ac_cv_func_res_search=no" 15318 eval "LIB_res_search=" 15319 echo "$as_me:$LINENO: result: no" >&5 15320echo "${ECHO_T}no" >&6 15321 ;; 15322 *) 15323 eval "ac_cv_func_res_search=yes" 15324 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15325 cat >>confdefs.h <<_ACEOF 15326#define $ac_tr_func 1 15327_ACEOF 15328 15329 cat >>confdefs.h <<_ACEOF 15330#define $ac_tr_lib 1 15331_ACEOF 15332 15333 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15334echo "${ECHO_T}yes, in $ac_res" >&6 15335 ;; 15336esac 15337 15338 15339if test -n "$LIB_res_search"; then 15340 LIBS="$LIB_res_search $LIBS" 15341fi 15342 15343 15344 15345 15346 15347 15348echo "$as_me:$LINENO: checking for res_nsearch" >&5 15349echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6 15350if test "${ac_cv_funclib_res_nsearch+set}" = set; then 15351 echo $ECHO_N "(cached) $ECHO_C" >&6 15352else 15353 15354if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then 15355 ac_save_LIBS="$LIBS" 15356 for ac_lib in "" resolv; do 15357 case "$ac_lib" in 15358 "") ;; 15359 yes) ac_lib="" ;; 15360 no) continue ;; 15361 -l*) ;; 15362 *) ac_lib="-l$ac_lib" ;; 15363 esac 15364 LIBS=" $ac_lib $ac_save_LIBS" 15365 cat >conftest.$ac_ext <<_ACEOF 15366#line $LINENO "configure" 15367#include "confdefs.h" 15368 15369#include <stdio.h> 15370#ifdef HAVE_SYS_TYPES_H 15371#include <sys/types.h> 15372#endif 15373#ifdef HAVE_NETINET_IN_H 15374#include <netinet/in.h> 15375#endif 15376#ifdef HAVE_ARPA_NAMESER_H 15377#include <arpa/nameser.h> 15378#endif 15379#ifdef HAVE_RESOLV_H 15380#include <resolv.h> 15381#endif 15382 15383#ifdef F77_DUMMY_MAIN 15384# ifdef __cplusplus 15385 extern "C" 15386# endif 15387 int F77_DUMMY_MAIN() { return 1; } 15388#endif 15389int 15390main () 15391{
| 10669 CFLAGS="$save_CFLAGS" 10670 LIBS="$save_LIBS" 10671fi 10672 10673if test "$crypto_lib" = "unknown"; then 10674 10675 DIR_des='des' 10676 LIB_des='$(top_builddir)/lib/des/libdes.la' 10677 LIB_des_a='$(top_builddir)/lib/des/.libs/libdes.a' 10678 LIB_des_so='$(top_builddir)/lib/des/.libs/libdes.so' 10679 LIB_des_appl="-ldes" 10680 10681 echo "$as_me:$LINENO: result: included libdes" >&5 10682echo "${ECHO_T}included libdes" >&6 10683 10684fi 10685 10686if test "$with_krb4" != no -a "$crypto_lib" != krb4; then 10687 { { echo "$as_me:$LINENO: error: the crypto library used by krb4 lacks features 10688required by Kerberos 5; to continue, you need to install a newer 10689Kerberos 4 or configure --without-krb4" >&5 10690echo "$as_me: error: the crypto library used by krb4 lacks features 10691required by Kerberos 5; to continue, you need to install a newer 10692Kerberos 4 or configure --without-krb4" >&2;} 10693 { (exit 1); exit 1; }; } 10694fi 10695 10696if test "$openssl" = "yes"; then 10697 10698cat >>confdefs.h <<\_ACEOF 10699#define HAVE_OPENSSL 1 10700_ACEOF 10701 10702fi 10703if test "$old_hash" = yes; then 10704 10705cat >>confdefs.h <<\_ACEOF 10706#define HAVE_OLD_HASH_NAMES 1 10707_ACEOF 10708 10709fi 10710 10711 10712if test "$openssl" = yes; then 10713 HAVE_OPENSSL_TRUE= 10714 HAVE_OPENSSL_FALSE='#' 10715else 10716 HAVE_OPENSSL_TRUE='#' 10717 HAVE_OPENSSL_FALSE= 10718fi 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728# Check whether --enable-dce or --disable-dce was given. 10729if test "${enable_dce+set}" = set; then 10730 enableval="$enable_dce" 10731 10732fi; 10733if test "$enable_dce" = yes; then 10734 10735cat >>confdefs.h <<\_ACEOF 10736#define DCE 1 10737_ACEOF 10738 10739fi 10740 10741 10742if test "$enable_dce" = yes; then 10743 DCE_TRUE= 10744 DCE_FALSE='#' 10745else 10746 DCE_TRUE='#' 10747 DCE_FALSE= 10748fi 10749 10750 10751## XXX quite horrible: 10752if test -f /etc/ibmcxx.cfg; then 10753 dpagaix_ldadd=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/libraries/{;s/^[^=]*=\(.*\)/\1/;s/,/ /gp;}'` 10754 dpagaix_cflags=`sed -n '/^xlc_r4/,/^$/p' /etc/ibmcxx.cfg | sed -n -e '/options/{;s/^[^=]*=\(.*\)/\1/;s/-q^,*//;s/,/ /gp;}'` 10755 dpagaix_ldflags= 10756else 10757 dpagaix_cflags="-D_THREAD_SAFE -D_AIX_PTHREADS_D7 -D_AIX32_THREADS=1 -D_AES_SOURCE -D_AIX41 -I/usr/include/dce" 10758 dpagaix_ldadd="-L/usr/lib/threads -ldcelibc_r -ldcepthreads -lpthreads_compat lpthreads -lc_r" 10759 dpagaix_ldflags="-Wl,-bI:dfspag.exp" 10760fi 10761 10762 10763 10764 10765 10766# Check whether --enable-berkeley-db or --disable-berkeley-db was given. 10767if test "${enable_berkeley_db+set}" = set; then 10768 enableval="$enable_berkeley_db" 10769 10770 10771fi; 10772 10773have_ndbm=no 10774db_type=unknown 10775 10776if test "$enable_berkeley_db" != no; then 10777 10778 10779 10780 10781 10782for ac_header in \ 10783 db4/db.h \ 10784 db3/db.h \ 10785 db.h \ 10786 db_185.h \ 10787 10788do 10789as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 10790if eval "test \"\${$as_ac_Header+set}\" = set"; then 10791 echo "$as_me:$LINENO: checking for $ac_header" >&5 10792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10793if eval "test \"\${$as_ac_Header+set}\" = set"; then 10794 echo $ECHO_N "(cached) $ECHO_C" >&6 10795fi 10796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10797echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10798else 10799 # Is the header compilable? 10800echo "$as_me:$LINENO: checking $ac_header usability" >&5 10801echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 10802cat >conftest.$ac_ext <<_ACEOF 10803#line $LINENO "configure" 10804#include "confdefs.h" 10805$ac_includes_default 10806#include <$ac_header> 10807_ACEOF 10808rm -f conftest.$ac_objext 10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10810 (eval $ac_compile) 2>&5 10811 ac_status=$? 10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10813 (exit $ac_status); } && 10814 { ac_try='test -s conftest.$ac_objext' 10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10816 (eval $ac_try) 2>&5 10817 ac_status=$? 10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10819 (exit $ac_status); }; }; then 10820 ac_header_compiler=yes 10821else 10822 echo "$as_me: failed program was:" >&5 10823cat conftest.$ac_ext >&5 10824ac_header_compiler=no 10825fi 10826rm -f conftest.$ac_objext conftest.$ac_ext 10827echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 10828echo "${ECHO_T}$ac_header_compiler" >&6 10829 10830# Is the header present? 10831echo "$as_me:$LINENO: checking $ac_header presence" >&5 10832echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 10833cat >conftest.$ac_ext <<_ACEOF 10834#line $LINENO "configure" 10835#include "confdefs.h" 10836#include <$ac_header> 10837_ACEOF 10838if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 10839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 10840 ac_status=$? 10841 egrep -v '^ *\+' conftest.er1 >conftest.err 10842 rm -f conftest.er1 10843 cat conftest.err >&5 10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10845 (exit $ac_status); } >/dev/null; then 10846 if test -s conftest.err; then 10847 ac_cpp_err=$ac_c_preproc_warn_flag 10848 else 10849 ac_cpp_err= 10850 fi 10851else 10852 ac_cpp_err=yes 10853fi 10854if test -z "$ac_cpp_err"; then 10855 ac_header_preproc=yes 10856else 10857 echo "$as_me: failed program was:" >&5 10858 cat conftest.$ac_ext >&5 10859 ac_header_preproc=no 10860fi 10861rm -f conftest.err conftest.$ac_ext 10862echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 10863echo "${ECHO_T}$ac_header_preproc" >&6 10864 10865# So? What about this header? 10866case $ac_header_compiler:$ac_header_preproc in 10867 yes:no ) 10868 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 10869echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 10870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10871echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10872 no:yes ) 10873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 10874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 10875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 10876echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 10877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 10878echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 10879esac 10880echo "$as_me:$LINENO: checking for $ac_header" >&5 10881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 10882if eval "test \"\${$as_ac_Header+set}\" = set"; then 10883 echo $ECHO_N "(cached) $ECHO_C" >&6 10884else 10885 eval "$as_ac_Header=$ac_header_preproc" 10886fi 10887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 10888echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 10889 10890fi 10891if test `eval echo '${'$as_ac_Header'}'` = yes; then 10892 cat >>confdefs.h <<_ACEOF 10893#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 10894_ACEOF 10895 10896fi 10897 10898done 10899 10900 10901 10902 10903 10904 10905echo "$as_me:$LINENO: checking for db_create" >&5 10906echo $ECHO_N "checking for db_create... $ECHO_C" >&6 10907if test "${ac_cv_funclib_db_create+set}" = set; then 10908 echo $ECHO_N "(cached) $ECHO_C" >&6 10909else 10910 10911if eval "test \"\$ac_cv_func_db_create\" != yes" ; then 10912 ac_save_LIBS="$LIBS" 10913 for ac_lib in "" db4 db3 db; do 10914 case "$ac_lib" in 10915 "") ;; 10916 yes) ac_lib="" ;; 10917 no) continue ;; 10918 -l*) ;; 10919 *) ac_lib="-l$ac_lib" ;; 10920 esac 10921 LIBS=" $ac_lib $ac_save_LIBS" 10922 cat >conftest.$ac_ext <<_ACEOF 10923#line $LINENO "configure" 10924#include "confdefs.h" 10925 10926 #include <stdio.h> 10927 #ifdef HAVE_DB4_DB_H 10928 #include <db4/db.h> 10929 #elif defined(HAVE_DB3_DB_H) 10930 #include <db3/db.h> 10931 #else 10932 #include <db.h> 10933 #endif 10934 10935#ifdef F77_DUMMY_MAIN 10936# ifdef __cplusplus 10937 extern "C" 10938# endif 10939 int F77_DUMMY_MAIN() { return 1; } 10940#endif 10941int 10942main () 10943{ 10944db_create(NULL, NULL, 0) 10945 ; 10946 return 0; 10947} 10948_ACEOF 10949rm -f conftest.$ac_objext conftest$ac_exeext 10950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 10951 (eval $ac_link) 2>&5 10952 ac_status=$? 10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10954 (exit $ac_status); } && 10955 { ac_try='test -s conftest$ac_exeext' 10956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10957 (eval $ac_try) 2>&5 10958 ac_status=$? 10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10960 (exit $ac_status); }; }; then 10961 eval "if test -n \"$ac_lib\";then ac_cv_funclib_db_create=$ac_lib; else ac_cv_funclib_db_create=yes; fi";break 10962else 10963 echo "$as_me: failed program was:" >&5 10964cat conftest.$ac_ext >&5 10965fi 10966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 10967 done 10968 eval "ac_cv_funclib_db_create=\${ac_cv_funclib_db_create-no}" 10969 LIBS="$ac_save_LIBS" 10970fi 10971 10972fi 10973 10974 10975eval "ac_res=\$ac_cv_funclib_db_create" 10976 10977if false; then 10978 10979for ac_func in db_create 10980do 10981as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 10982echo "$as_me:$LINENO: checking for $ac_func" >&5 10983echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 10984if eval "test \"\${$as_ac_var+set}\" = set"; then 10985 echo $ECHO_N "(cached) $ECHO_C" >&6 10986else 10987 cat >conftest.$ac_ext <<_ACEOF 10988#line $LINENO "configure" 10989#include "confdefs.h" 10990/* System header to define __stub macros and hopefully few prototypes, 10991 which can conflict with char $ac_func (); below. */ 10992#include <assert.h> 10993/* Override any gcc2 internal prototype to avoid an error. */ 10994#ifdef __cplusplus 10995extern "C" 10996#endif 10997/* We use char because int might match the return type of a gcc2 10998 builtin and then its argument prototype would still apply. */ 10999char $ac_func (); 11000char (*f) (); 11001 11002#ifdef F77_DUMMY_MAIN 11003# ifdef __cplusplus 11004 extern "C" 11005# endif 11006 int F77_DUMMY_MAIN() { return 1; } 11007#endif 11008int 11009main () 11010{ 11011/* The GNU C library defines this for functions which it implements 11012 to always fail with ENOSYS. Some functions are actually named 11013 something starting with __ and the normal name is an alias. */ 11014#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11015choke me 11016#else 11017f = $ac_func; 11018#endif 11019 11020 ; 11021 return 0; 11022} 11023_ACEOF 11024rm -f conftest.$ac_objext conftest$ac_exeext 11025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11026 (eval $ac_link) 2>&5 11027 ac_status=$? 11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11029 (exit $ac_status); } && 11030 { ac_try='test -s conftest$ac_exeext' 11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11032 (eval $ac_try) 2>&5 11033 ac_status=$? 11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11035 (exit $ac_status); }; }; then 11036 eval "$as_ac_var=yes" 11037else 11038 echo "$as_me: failed program was:" >&5 11039cat conftest.$ac_ext >&5 11040eval "$as_ac_var=no" 11041fi 11042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11043fi 11044echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11045echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11046if test `eval echo '${'$as_ac_var'}'` = yes; then 11047 cat >>confdefs.h <<_ACEOF 11048#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11049_ACEOF 11050 11051fi 11052done 11053 11054fi 11055# db_create 11056eval "ac_tr_func=HAVE_`echo db_create | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11057eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11058eval "LIB_db_create=$ac_res" 11059 11060case "$ac_res" in 11061 yes) 11062 eval "ac_cv_func_db_create=yes" 11063 eval "LIB_db_create=" 11064 cat >>confdefs.h <<_ACEOF 11065#define $ac_tr_func 1 11066_ACEOF 11067 11068 echo "$as_me:$LINENO: result: yes" >&5 11069echo "${ECHO_T}yes" >&6 11070 ;; 11071 no) 11072 eval "ac_cv_func_db_create=no" 11073 eval "LIB_db_create=" 11074 echo "$as_me:$LINENO: result: no" >&5 11075echo "${ECHO_T}no" >&6 11076 ;; 11077 *) 11078 eval "ac_cv_func_db_create=yes" 11079 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11080 cat >>confdefs.h <<_ACEOF 11081#define $ac_tr_func 1 11082_ACEOF 11083 11084 cat >>confdefs.h <<_ACEOF 11085#define $ac_tr_lib 1 11086_ACEOF 11087 11088 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11089echo "${ECHO_T}yes, in $ac_res" >&6 11090 ;; 11091esac 11092 11093 11094 11095 if test "$ac_cv_func_db_create" = "yes"; then 11096 db_type=db3 11097 if test "$ac_cv_funclib_db_create" != "yes"; then 11098 DBLIB="$ac_cv_funclib_db_create" 11099 else 11100 DBLIB="" 11101 fi 11102 11103cat >>confdefs.h <<\_ACEOF 11104#define HAVE_DB3 1 11105_ACEOF 11106 11107 else 11108 11109 11110 11111 11112 11113echo "$as_me:$LINENO: checking for dbopen" >&5 11114echo $ECHO_N "checking for dbopen... $ECHO_C" >&6 11115if test "${ac_cv_funclib_dbopen+set}" = set; then 11116 echo $ECHO_N "(cached) $ECHO_C" >&6 11117else 11118 11119if eval "test \"\$ac_cv_func_dbopen\" != yes" ; then 11120 ac_save_LIBS="$LIBS" 11121 for ac_lib in "" db2 db; do 11122 case "$ac_lib" in 11123 "") ;; 11124 yes) ac_lib="" ;; 11125 no) continue ;; 11126 -l*) ;; 11127 *) ac_lib="-l$ac_lib" ;; 11128 esac 11129 LIBS=" $ac_lib $ac_save_LIBS" 11130 cat >conftest.$ac_ext <<_ACEOF 11131#line $LINENO "configure" 11132#include "confdefs.h" 11133 11134 #include <stdio.h> 11135 #if defined(HAVE_DB2_DB_H) 11136 #include <db2/db.h> 11137 #elif defined(HAVE_DB_185_H) 11138 #include <db_185.h> 11139 #elif defined(HAVE_DB_H) 11140 #include <db.h> 11141 #else 11142 #error no db.h 11143 #endif 11144 11145#ifdef F77_DUMMY_MAIN 11146# ifdef __cplusplus 11147 extern "C" 11148# endif 11149 int F77_DUMMY_MAIN() { return 1; } 11150#endif 11151int 11152main () 11153{ 11154dbopen(NULL, 0, 0, 0, NULL) 11155 ; 11156 return 0; 11157} 11158_ACEOF 11159rm -f conftest.$ac_objext conftest$ac_exeext 11160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11161 (eval $ac_link) 2>&5 11162 ac_status=$? 11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11164 (exit $ac_status); } && 11165 { ac_try='test -s conftest$ac_exeext' 11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11167 (eval $ac_try) 2>&5 11168 ac_status=$? 11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11170 (exit $ac_status); }; }; then 11171 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbopen=$ac_lib; else ac_cv_funclib_dbopen=yes; fi";break 11172else 11173 echo "$as_me: failed program was:" >&5 11174cat conftest.$ac_ext >&5 11175fi 11176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11177 done 11178 eval "ac_cv_funclib_dbopen=\${ac_cv_funclib_dbopen-no}" 11179 LIBS="$ac_save_LIBS" 11180fi 11181 11182fi 11183 11184 11185eval "ac_res=\$ac_cv_funclib_dbopen" 11186 11187if false; then 11188 11189for ac_func in dbopen 11190do 11191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11192echo "$as_me:$LINENO: checking for $ac_func" >&5 11193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11194if eval "test \"\${$as_ac_var+set}\" = set"; then 11195 echo $ECHO_N "(cached) $ECHO_C" >&6 11196else 11197 cat >conftest.$ac_ext <<_ACEOF 11198#line $LINENO "configure" 11199#include "confdefs.h" 11200/* System header to define __stub macros and hopefully few prototypes, 11201 which can conflict with char $ac_func (); below. */ 11202#include <assert.h> 11203/* Override any gcc2 internal prototype to avoid an error. */ 11204#ifdef __cplusplus 11205extern "C" 11206#endif 11207/* We use char because int might match the return type of a gcc2 11208 builtin and then its argument prototype would still apply. */ 11209char $ac_func (); 11210char (*f) (); 11211 11212#ifdef F77_DUMMY_MAIN 11213# ifdef __cplusplus 11214 extern "C" 11215# endif 11216 int F77_DUMMY_MAIN() { return 1; } 11217#endif 11218int 11219main () 11220{ 11221/* The GNU C library defines this for functions which it implements 11222 to always fail with ENOSYS. Some functions are actually named 11223 something starting with __ and the normal name is an alias. */ 11224#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11225choke me 11226#else 11227f = $ac_func; 11228#endif 11229 11230 ; 11231 return 0; 11232} 11233_ACEOF 11234rm -f conftest.$ac_objext conftest$ac_exeext 11235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11236 (eval $ac_link) 2>&5 11237 ac_status=$? 11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11239 (exit $ac_status); } && 11240 { ac_try='test -s conftest$ac_exeext' 11241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11242 (eval $ac_try) 2>&5 11243 ac_status=$? 11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11245 (exit $ac_status); }; }; then 11246 eval "$as_ac_var=yes" 11247else 11248 echo "$as_me: failed program was:" >&5 11249cat conftest.$ac_ext >&5 11250eval "$as_ac_var=no" 11251fi 11252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11253fi 11254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11256if test `eval echo '${'$as_ac_var'}'` = yes; then 11257 cat >>confdefs.h <<_ACEOF 11258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11259_ACEOF 11260 11261fi 11262done 11263 11264fi 11265# dbopen 11266eval "ac_tr_func=HAVE_`echo dbopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11267eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11268eval "LIB_dbopen=$ac_res" 11269 11270case "$ac_res" in 11271 yes) 11272 eval "ac_cv_func_dbopen=yes" 11273 eval "LIB_dbopen=" 11274 cat >>confdefs.h <<_ACEOF 11275#define $ac_tr_func 1 11276_ACEOF 11277 11278 echo "$as_me:$LINENO: result: yes" >&5 11279echo "${ECHO_T}yes" >&6 11280 ;; 11281 no) 11282 eval "ac_cv_func_dbopen=no" 11283 eval "LIB_dbopen=" 11284 echo "$as_me:$LINENO: result: no" >&5 11285echo "${ECHO_T}no" >&6 11286 ;; 11287 *) 11288 eval "ac_cv_func_dbopen=yes" 11289 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11290 cat >>confdefs.h <<_ACEOF 11291#define $ac_tr_func 1 11292_ACEOF 11293 11294 cat >>confdefs.h <<_ACEOF 11295#define $ac_tr_lib 1 11296_ACEOF 11297 11298 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11299echo "${ECHO_T}yes, in $ac_res" >&6 11300 ;; 11301esac 11302 11303 11304 11305 if test "$ac_cv_func_dbopen" = "yes"; then 11306 db_type=db1 11307 if test "$ac_cv_funclib_dbopen" != "yes"; then 11308 DBLIB="$ac_cv_funclib_dbopen" 11309 else 11310 DBLIB="" 11311 fi 11312 11313cat >>confdefs.h <<\_ACEOF 11314#define HAVE_DB1 1 11315_ACEOF 11316 11317 fi 11318 fi 11319 11320 11321 if test "$ac_cv_func_dbm_firstkey" != yes; then 11322 11323 11324echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 11325echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 11326if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 11327 echo $ECHO_N "(cached) $ECHO_C" >&6 11328else 11329 11330if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 11331 ac_save_LIBS="$LIBS" 11332 for ac_lib in $ac_cv_funclib_dbopen $ac_cv_funclib_db_create; do 11333 case "$ac_lib" in 11334 "") ;; 11335 yes) ac_lib="" ;; 11336 no) continue ;; 11337 -l*) ;; 11338 *) ac_lib="-l$ac_lib" ;; 11339 esac 11340 LIBS=" $ac_lib $ac_save_LIBS" 11341 cat >conftest.$ac_ext <<_ACEOF 11342#line $LINENO "configure" 11343#include "confdefs.h" 11344 11345 #include <stdio.h> 11346 #define DB_DBM_HSEARCH 1 11347 #include <db.h> 11348 DBM *dbm; 11349 11350#ifdef F77_DUMMY_MAIN 11351# ifdef __cplusplus 11352 extern "C" 11353# endif 11354 int F77_DUMMY_MAIN() { return 1; } 11355#endif 11356int 11357main () 11358{ 11359dbm_firstkey(NULL) 11360 ; 11361 return 0; 11362} 11363_ACEOF 11364rm -f conftest.$ac_objext conftest$ac_exeext 11365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11366 (eval $ac_link) 2>&5 11367 ac_status=$? 11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11369 (exit $ac_status); } && 11370 { ac_try='test -s conftest$ac_exeext' 11371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11372 (eval $ac_try) 2>&5 11373 ac_status=$? 11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11375 (exit $ac_status); }; }; then 11376 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 11377else 11378 echo "$as_me: failed program was:" >&5 11379cat conftest.$ac_ext >&5 11380fi 11381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11382 done 11383 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 11384 LIBS="$ac_save_LIBS" 11385fi 11386 11387fi 11388 11389 11390eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 11391 11392if false; then 11393 11394for ac_func in dbm_firstkey 11395do 11396as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11397echo "$as_me:$LINENO: checking for $ac_func" >&5 11398echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11399if eval "test \"\${$as_ac_var+set}\" = set"; then 11400 echo $ECHO_N "(cached) $ECHO_C" >&6 11401else 11402 cat >conftest.$ac_ext <<_ACEOF 11403#line $LINENO "configure" 11404#include "confdefs.h" 11405/* System header to define __stub macros and hopefully few prototypes, 11406 which can conflict with char $ac_func (); below. */ 11407#include <assert.h> 11408/* Override any gcc2 internal prototype to avoid an error. */ 11409#ifdef __cplusplus 11410extern "C" 11411#endif 11412/* We use char because int might match the return type of a gcc2 11413 builtin and then its argument prototype would still apply. */ 11414char $ac_func (); 11415char (*f) (); 11416 11417#ifdef F77_DUMMY_MAIN 11418# ifdef __cplusplus 11419 extern "C" 11420# endif 11421 int F77_DUMMY_MAIN() { return 1; } 11422#endif 11423int 11424main () 11425{ 11426/* The GNU C library defines this for functions which it implements 11427 to always fail with ENOSYS. Some functions are actually named 11428 something starting with __ and the normal name is an alias. */ 11429#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11430choke me 11431#else 11432f = $ac_func; 11433#endif 11434 11435 ; 11436 return 0; 11437} 11438_ACEOF 11439rm -f conftest.$ac_objext conftest$ac_exeext 11440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11441 (eval $ac_link) 2>&5 11442 ac_status=$? 11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11444 (exit $ac_status); } && 11445 { ac_try='test -s conftest$ac_exeext' 11446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11447 (eval $ac_try) 2>&5 11448 ac_status=$? 11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11450 (exit $ac_status); }; }; then 11451 eval "$as_ac_var=yes" 11452else 11453 echo "$as_me: failed program was:" >&5 11454cat conftest.$ac_ext >&5 11455eval "$as_ac_var=no" 11456fi 11457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11458fi 11459echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11460echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11461if test `eval echo '${'$as_ac_var'}'` = yes; then 11462 cat >>confdefs.h <<_ACEOF 11463#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11464_ACEOF 11465 11466fi 11467done 11468 11469fi 11470# dbm_firstkey 11471eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11472eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11473eval "LIB_dbm_firstkey=$ac_res" 11474 11475case "$ac_res" in 11476 yes) 11477 eval "ac_cv_func_dbm_firstkey=yes" 11478 eval "LIB_dbm_firstkey=" 11479 cat >>confdefs.h <<_ACEOF 11480#define $ac_tr_func 1 11481_ACEOF 11482 11483 echo "$as_me:$LINENO: result: yes" >&5 11484echo "${ECHO_T}yes" >&6 11485 ;; 11486 no) 11487 eval "ac_cv_func_dbm_firstkey=no" 11488 eval "LIB_dbm_firstkey=" 11489 echo "$as_me:$LINENO: result: no" >&5 11490echo "${ECHO_T}no" >&6 11491 ;; 11492 *) 11493 eval "ac_cv_func_dbm_firstkey=yes" 11494 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11495 cat >>confdefs.h <<_ACEOF 11496#define $ac_tr_func 1 11497_ACEOF 11498 11499 cat >>confdefs.h <<_ACEOF 11500#define $ac_tr_lib 1 11501_ACEOF 11502 11503 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11504echo "${ECHO_T}yes, in $ac_res" >&6 11505 ;; 11506esac 11507 11508 11509 11510 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 11511 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 11512 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 11513 else 11514 LIB_NDBM="" 11515 fi 11516 11517cat >>confdefs.h <<\_ACEOF 11518#define HAVE_DB_NDBM 1 11519_ACEOF 11520 11521 11522cat >>confdefs.h <<\_ACEOF 11523#define HAVE_NEW_DB 1 11524_ACEOF 11525 11526 else 11527 $as_unset ac_cv_func_dbm_firstkey 11528 $as_unset ac_cv_funclib_dbm_firstkey 11529 fi 11530 fi 11531 11532fi # berkeley db 11533 11534if test "$db_type" = "unknown" -o "$ac_cv_func_dbm_firstkey" = ""; then 11535 11536 11537 11538for ac_header in \ 11539 dbm.h \ 11540 ndbm.h \ 11541 11542do 11543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11544if eval "test \"\${$as_ac_Header+set}\" = set"; then 11545 echo "$as_me:$LINENO: checking for $ac_header" >&5 11546echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11547if eval "test \"\${$as_ac_Header+set}\" = set"; then 11548 echo $ECHO_N "(cached) $ECHO_C" >&6 11549fi 11550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11552else 11553 # Is the header compilable? 11554echo "$as_me:$LINENO: checking $ac_header usability" >&5 11555echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11556cat >conftest.$ac_ext <<_ACEOF 11557#line $LINENO "configure" 11558#include "confdefs.h" 11559$ac_includes_default 11560#include <$ac_header> 11561_ACEOF 11562rm -f conftest.$ac_objext 11563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11564 (eval $ac_compile) 2>&5 11565 ac_status=$? 11566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11567 (exit $ac_status); } && 11568 { ac_try='test -s conftest.$ac_objext' 11569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11570 (eval $ac_try) 2>&5 11571 ac_status=$? 11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11573 (exit $ac_status); }; }; then 11574 ac_header_compiler=yes 11575else 11576 echo "$as_me: failed program was:" >&5 11577cat conftest.$ac_ext >&5 11578ac_header_compiler=no 11579fi 11580rm -f conftest.$ac_objext conftest.$ac_ext 11581echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11582echo "${ECHO_T}$ac_header_compiler" >&6 11583 11584# Is the header present? 11585echo "$as_me:$LINENO: checking $ac_header presence" >&5 11586echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11587cat >conftest.$ac_ext <<_ACEOF 11588#line $LINENO "configure" 11589#include "confdefs.h" 11590#include <$ac_header> 11591_ACEOF 11592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11594 ac_status=$? 11595 egrep -v '^ *\+' conftest.er1 >conftest.err 11596 rm -f conftest.er1 11597 cat conftest.err >&5 11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11599 (exit $ac_status); } >/dev/null; then 11600 if test -s conftest.err; then 11601 ac_cpp_err=$ac_c_preproc_warn_flag 11602 else 11603 ac_cpp_err= 11604 fi 11605else 11606 ac_cpp_err=yes 11607fi 11608if test -z "$ac_cpp_err"; then 11609 ac_header_preproc=yes 11610else 11611 echo "$as_me: failed program was:" >&5 11612 cat conftest.$ac_ext >&5 11613 ac_header_preproc=no 11614fi 11615rm -f conftest.err conftest.$ac_ext 11616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11617echo "${ECHO_T}$ac_header_preproc" >&6 11618 11619# So? What about this header? 11620case $ac_header_compiler:$ac_header_preproc in 11621 yes:no ) 11622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11625echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11626 no:yes ) 11627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11632echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11633esac 11634echo "$as_me:$LINENO: checking for $ac_header" >&5 11635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11636if eval "test \"\${$as_ac_Header+set}\" = set"; then 11637 echo $ECHO_N "(cached) $ECHO_C" >&6 11638else 11639 eval "$as_ac_Header=$ac_header_preproc" 11640fi 11641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11643 11644fi 11645if test `eval echo '${'$as_ac_Header'}'` = yes; then 11646 cat >>confdefs.h <<_ACEOF 11647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11648_ACEOF 11649 11650fi 11651 11652done 11653 11654 11655 11656 11657 11658echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 11659echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 11660if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 11661 echo $ECHO_N "(cached) $ECHO_C" >&6 11662else 11663 11664if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 11665 ac_save_LIBS="$LIBS" 11666 for ac_lib in "" ndbm; do 11667 case "$ac_lib" in 11668 "") ;; 11669 yes) ac_lib="" ;; 11670 no) continue ;; 11671 -l*) ;; 11672 *) ac_lib="-l$ac_lib" ;; 11673 esac 11674 LIBS=" $ac_lib $ac_save_LIBS" 11675 cat >conftest.$ac_ext <<_ACEOF 11676#line $LINENO "configure" 11677#include "confdefs.h" 11678 11679 #include <stdio.h> 11680 #if defined(HAVE_NDBM_H) 11681 #include <ndbm.h> 11682 #elif defined(HAVE_DBM_H) 11683 #include <dbm.h> 11684 #endif 11685 DBM *dbm; 11686 11687#ifdef F77_DUMMY_MAIN 11688# ifdef __cplusplus 11689 extern "C" 11690# endif 11691 int F77_DUMMY_MAIN() { return 1; } 11692#endif 11693int 11694main () 11695{ 11696dbm_firstkey(NULL) 11697 ; 11698 return 0; 11699} 11700_ACEOF 11701rm -f conftest.$ac_objext conftest$ac_exeext 11702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11703 (eval $ac_link) 2>&5 11704 ac_status=$? 11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11706 (exit $ac_status); } && 11707 { ac_try='test -s conftest$ac_exeext' 11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11709 (eval $ac_try) 2>&5 11710 ac_status=$? 11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11712 (exit $ac_status); }; }; then 11713 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 11714else 11715 echo "$as_me: failed program was:" >&5 11716cat conftest.$ac_ext >&5 11717fi 11718rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11719 done 11720 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 11721 LIBS="$ac_save_LIBS" 11722fi 11723 11724fi 11725 11726 11727eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 11728 11729if false; then 11730 11731for ac_func in dbm_firstkey 11732do 11733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 11734echo "$as_me:$LINENO: checking for $ac_func" >&5 11735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 11736if eval "test \"\${$as_ac_var+set}\" = set"; then 11737 echo $ECHO_N "(cached) $ECHO_C" >&6 11738else 11739 cat >conftest.$ac_ext <<_ACEOF 11740#line $LINENO "configure" 11741#include "confdefs.h" 11742/* System header to define __stub macros and hopefully few prototypes, 11743 which can conflict with char $ac_func (); below. */ 11744#include <assert.h> 11745/* Override any gcc2 internal prototype to avoid an error. */ 11746#ifdef __cplusplus 11747extern "C" 11748#endif 11749/* We use char because int might match the return type of a gcc2 11750 builtin and then its argument prototype would still apply. */ 11751char $ac_func (); 11752char (*f) (); 11753 11754#ifdef F77_DUMMY_MAIN 11755# ifdef __cplusplus 11756 extern "C" 11757# endif 11758 int F77_DUMMY_MAIN() { return 1; } 11759#endif 11760int 11761main () 11762{ 11763/* The GNU C library defines this for functions which it implements 11764 to always fail with ENOSYS. Some functions are actually named 11765 something starting with __ and the normal name is an alias. */ 11766#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 11767choke me 11768#else 11769f = $ac_func; 11770#endif 11771 11772 ; 11773 return 0; 11774} 11775_ACEOF 11776rm -f conftest.$ac_objext conftest$ac_exeext 11777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11778 (eval $ac_link) 2>&5 11779 ac_status=$? 11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11781 (exit $ac_status); } && 11782 { ac_try='test -s conftest$ac_exeext' 11783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11784 (eval $ac_try) 2>&5 11785 ac_status=$? 11786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11787 (exit $ac_status); }; }; then 11788 eval "$as_ac_var=yes" 11789else 11790 echo "$as_me: failed program was:" >&5 11791cat conftest.$ac_ext >&5 11792eval "$as_ac_var=no" 11793fi 11794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 11795fi 11796echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 11797echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 11798if test `eval echo '${'$as_ac_var'}'` = yes; then 11799 cat >>confdefs.h <<_ACEOF 11800#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 11801_ACEOF 11802 11803fi 11804done 11805 11806fi 11807# dbm_firstkey 11808eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11809eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 11810eval "LIB_dbm_firstkey=$ac_res" 11811 11812case "$ac_res" in 11813 yes) 11814 eval "ac_cv_func_dbm_firstkey=yes" 11815 eval "LIB_dbm_firstkey=" 11816 cat >>confdefs.h <<_ACEOF 11817#define $ac_tr_func 1 11818_ACEOF 11819 11820 echo "$as_me:$LINENO: result: yes" >&5 11821echo "${ECHO_T}yes" >&6 11822 ;; 11823 no) 11824 eval "ac_cv_func_dbm_firstkey=no" 11825 eval "LIB_dbm_firstkey=" 11826 echo "$as_me:$LINENO: result: no" >&5 11827echo "${ECHO_T}no" >&6 11828 ;; 11829 *) 11830 eval "ac_cv_func_dbm_firstkey=yes" 11831 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 11832 cat >>confdefs.h <<_ACEOF 11833#define $ac_tr_func 1 11834_ACEOF 11835 11836 cat >>confdefs.h <<_ACEOF 11837#define $ac_tr_lib 1 11838_ACEOF 11839 11840 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 11841echo "${ECHO_T}yes, in $ac_res" >&6 11842 ;; 11843esac 11844 11845 11846 11847 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 11848 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 11849 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 11850 else 11851 LIB_NDBM="" 11852 fi 11853 11854cat >>confdefs.h <<\_ACEOF 11855#define HAVE_NDBM 1 11856_ACEOF 11857 have_ndbm=yes 11858 if test "$db_type" = "unknown"; then 11859 db_type=ndbm 11860 DBLIB="$LIB_NDBM" 11861 fi 11862 else 11863 11864 $as_unset ac_cv_func_dbm_firstkey 11865 $as_unset ac_cv_funclib_dbm_firstkey 11866 11867 11868for ac_header in \ 11869 gdbm/ndbm.h \ 11870 11871do 11872as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 11873if eval "test \"\${$as_ac_Header+set}\" = set"; then 11874 echo "$as_me:$LINENO: checking for $ac_header" >&5 11875echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11876if eval "test \"\${$as_ac_Header+set}\" = set"; then 11877 echo $ECHO_N "(cached) $ECHO_C" >&6 11878fi 11879echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11880echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11881else 11882 # Is the header compilable? 11883echo "$as_me:$LINENO: checking $ac_header usability" >&5 11884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 11885cat >conftest.$ac_ext <<_ACEOF 11886#line $LINENO "configure" 11887#include "confdefs.h" 11888$ac_includes_default 11889#include <$ac_header> 11890_ACEOF 11891rm -f conftest.$ac_objext 11892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 11893 (eval $ac_compile) 2>&5 11894 ac_status=$? 11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11896 (exit $ac_status); } && 11897 { ac_try='test -s conftest.$ac_objext' 11898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11899 (eval $ac_try) 2>&5 11900 ac_status=$? 11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11902 (exit $ac_status); }; }; then 11903 ac_header_compiler=yes 11904else 11905 echo "$as_me: failed program was:" >&5 11906cat conftest.$ac_ext >&5 11907ac_header_compiler=no 11908fi 11909rm -f conftest.$ac_objext conftest.$ac_ext 11910echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 11911echo "${ECHO_T}$ac_header_compiler" >&6 11912 11913# Is the header present? 11914echo "$as_me:$LINENO: checking $ac_header presence" >&5 11915echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 11916cat >conftest.$ac_ext <<_ACEOF 11917#line $LINENO "configure" 11918#include "confdefs.h" 11919#include <$ac_header> 11920_ACEOF 11921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 11922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 11923 ac_status=$? 11924 egrep -v '^ *\+' conftest.er1 >conftest.err 11925 rm -f conftest.er1 11926 cat conftest.err >&5 11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11928 (exit $ac_status); } >/dev/null; then 11929 if test -s conftest.err; then 11930 ac_cpp_err=$ac_c_preproc_warn_flag 11931 else 11932 ac_cpp_err= 11933 fi 11934else 11935 ac_cpp_err=yes 11936fi 11937if test -z "$ac_cpp_err"; then 11938 ac_header_preproc=yes 11939else 11940 echo "$as_me: failed program was:" >&5 11941 cat conftest.$ac_ext >&5 11942 ac_header_preproc=no 11943fi 11944rm -f conftest.err conftest.$ac_ext 11945echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 11946echo "${ECHO_T}$ac_header_preproc" >&6 11947 11948# So? What about this header? 11949case $ac_header_compiler:$ac_header_preproc in 11950 yes:no ) 11951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 11952echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 11953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11955 no:yes ) 11956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 11957echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 11958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 11959echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 11961echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 11962esac 11963echo "$as_me:$LINENO: checking for $ac_header" >&5 11964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 11965if eval "test \"\${$as_ac_Header+set}\" = set"; then 11966 echo $ECHO_N "(cached) $ECHO_C" >&6 11967else 11968 eval "$as_ac_Header=$ac_header_preproc" 11969fi 11970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 11971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 11972 11973fi 11974if test `eval echo '${'$as_ac_Header'}'` = yes; then 11975 cat >>confdefs.h <<_ACEOF 11976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 11977_ACEOF 11978 11979fi 11980 11981done 11982 11983 11984 11985 11986 11987echo "$as_me:$LINENO: checking for dbm_firstkey" >&5 11988echo $ECHO_N "checking for dbm_firstkey... $ECHO_C" >&6 11989if test "${ac_cv_funclib_dbm_firstkey+set}" = set; then 11990 echo $ECHO_N "(cached) $ECHO_C" >&6 11991else 11992 11993if eval "test \"\$ac_cv_func_dbm_firstkey\" != yes" ; then 11994 ac_save_LIBS="$LIBS" 11995 for ac_lib in "" gdbm; do 11996 case "$ac_lib" in 11997 "") ;; 11998 yes) ac_lib="" ;; 11999 no) continue ;; 12000 -l*) ;; 12001 *) ac_lib="-l$ac_lib" ;; 12002 esac 12003 LIBS=" $ac_lib $ac_save_LIBS" 12004 cat >conftest.$ac_ext <<_ACEOF 12005#line $LINENO "configure" 12006#include "confdefs.h" 12007 12008 #include <stdio.h> 12009 #include <gdbm/ndbm.h> 12010 DBM *dbm; 12011 12012#ifdef F77_DUMMY_MAIN 12013# ifdef __cplusplus 12014 extern "C" 12015# endif 12016 int F77_DUMMY_MAIN() { return 1; } 12017#endif 12018int 12019main () 12020{ 12021dbm_firstkey(NULL) 12022 ; 12023 return 0; 12024} 12025_ACEOF 12026rm -f conftest.$ac_objext conftest$ac_exeext 12027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12028 (eval $ac_link) 2>&5 12029 ac_status=$? 12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12031 (exit $ac_status); } && 12032 { ac_try='test -s conftest$ac_exeext' 12033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12034 (eval $ac_try) 2>&5 12035 ac_status=$? 12036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12037 (exit $ac_status); }; }; then 12038 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dbm_firstkey=$ac_lib; else ac_cv_funclib_dbm_firstkey=yes; fi";break 12039else 12040 echo "$as_me: failed program was:" >&5 12041cat conftest.$ac_ext >&5 12042fi 12043rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12044 done 12045 eval "ac_cv_funclib_dbm_firstkey=\${ac_cv_funclib_dbm_firstkey-no}" 12046 LIBS="$ac_save_LIBS" 12047fi 12048 12049fi 12050 12051 12052eval "ac_res=\$ac_cv_funclib_dbm_firstkey" 12053 12054if false; then 12055 12056for ac_func in dbm_firstkey 12057do 12058as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 12059echo "$as_me:$LINENO: checking for $ac_func" >&5 12060echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 12061if eval "test \"\${$as_ac_var+set}\" = set"; then 12062 echo $ECHO_N "(cached) $ECHO_C" >&6 12063else 12064 cat >conftest.$ac_ext <<_ACEOF 12065#line $LINENO "configure" 12066#include "confdefs.h" 12067/* System header to define __stub macros and hopefully few prototypes, 12068 which can conflict with char $ac_func (); below. */ 12069#include <assert.h> 12070/* Override any gcc2 internal prototype to avoid an error. */ 12071#ifdef __cplusplus 12072extern "C" 12073#endif 12074/* We use char because int might match the return type of a gcc2 12075 builtin and then its argument prototype would still apply. */ 12076char $ac_func (); 12077char (*f) (); 12078 12079#ifdef F77_DUMMY_MAIN 12080# ifdef __cplusplus 12081 extern "C" 12082# endif 12083 int F77_DUMMY_MAIN() { return 1; } 12084#endif 12085int 12086main () 12087{ 12088/* The GNU C library defines this for functions which it implements 12089 to always fail with ENOSYS. Some functions are actually named 12090 something starting with __ and the normal name is an alias. */ 12091#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 12092choke me 12093#else 12094f = $ac_func; 12095#endif 12096 12097 ; 12098 return 0; 12099} 12100_ACEOF 12101rm -f conftest.$ac_objext conftest$ac_exeext 12102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12103 (eval $ac_link) 2>&5 12104 ac_status=$? 12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12106 (exit $ac_status); } && 12107 { ac_try='test -s conftest$ac_exeext' 12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12109 (eval $ac_try) 2>&5 12110 ac_status=$? 12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12112 (exit $ac_status); }; }; then 12113 eval "$as_ac_var=yes" 12114else 12115 echo "$as_me: failed program was:" >&5 12116cat conftest.$ac_ext >&5 12117eval "$as_ac_var=no" 12118fi 12119rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 12120fi 12121echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 12122echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 12123if test `eval echo '${'$as_ac_var'}'` = yes; then 12124 cat >>confdefs.h <<_ACEOF 12125#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 12126_ACEOF 12127 12128fi 12129done 12130 12131fi 12132# dbm_firstkey 12133eval "ac_tr_func=HAVE_`echo dbm_firstkey | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12134eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 12135eval "LIB_dbm_firstkey=$ac_res" 12136 12137case "$ac_res" in 12138 yes) 12139 eval "ac_cv_func_dbm_firstkey=yes" 12140 eval "LIB_dbm_firstkey=" 12141 cat >>confdefs.h <<_ACEOF 12142#define $ac_tr_func 1 12143_ACEOF 12144 12145 echo "$as_me:$LINENO: result: yes" >&5 12146echo "${ECHO_T}yes" >&6 12147 ;; 12148 no) 12149 eval "ac_cv_func_dbm_firstkey=no" 12150 eval "LIB_dbm_firstkey=" 12151 echo "$as_me:$LINENO: result: no" >&5 12152echo "${ECHO_T}no" >&6 12153 ;; 12154 *) 12155 eval "ac_cv_func_dbm_firstkey=yes" 12156 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 12157 cat >>confdefs.h <<_ACEOF 12158#define $ac_tr_func 1 12159_ACEOF 12160 12161 cat >>confdefs.h <<_ACEOF 12162#define $ac_tr_lib 1 12163_ACEOF 12164 12165 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 12166echo "${ECHO_T}yes, in $ac_res" >&6 12167 ;; 12168esac 12169 12170 12171 12172 if test "$ac_cv_func_dbm_firstkey" = "yes"; then 12173 if test "$ac_cv_funclib_dbm_firstkey" != "yes"; then 12174 LIB_NDBM="$ac_cv_funclib_dbm_firstkey" 12175 else 12176 LIB_NDBM="" 12177 fi 12178 12179cat >>confdefs.h <<\_ACEOF 12180#define HAVE_NDBM 1 12181_ACEOF 12182 have_ndbm=yes 12183 if test "$db_type" = "unknown"; then 12184 db_type=ndbm 12185 DBLIB="$LIB_NDBM" 12186 fi 12187 fi 12188 fi 12189 12190fi # unknown 12191 12192if test "$have_ndbm" = "yes"; then 12193 echo "$as_me:$LINENO: checking if ndbm is implemented with db" >&5 12194echo $ECHO_N "checking if ndbm is implemented with db... $ECHO_C" >&6 12195 if test "$cross_compiling" = yes; then 12196 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 12197echo "$as_me: error: cannot run test program while cross compiling" >&2;} 12198 { (exit 1); exit 1; }; } 12199else 12200 cat >conftest.$ac_ext <<_ACEOF 12201#line $LINENO "configure" 12202#include "confdefs.h" 12203 12204#include <unistd.h> 12205#include <fcntl.h> 12206#if defined(HAVE_GDBM_NDBM_H) 12207#include <gdbm/ndbm.h> 12208#elif defined(HAVE_NDBM_H) 12209#include <ndbm.h> 12210#elif defined(HAVE_DBM_H) 12211#include <dbm.h> 12212#endif 12213int main() 12214{ 12215 DBM *d; 12216 12217 d = dbm_open("conftest", O_RDWR | O_CREAT, 0666); 12218 if (d == NULL) 12219 return 1; 12220 dbm_close(d); 12221 return 0; 12222} 12223_ACEOF 12224rm -f conftest$ac_exeext 12225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12226 (eval $ac_link) 2>&5 12227 ac_status=$? 12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12231 (eval $ac_try) 2>&5 12232 ac_status=$? 12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12234 (exit $ac_status); }; }; then 12235 12236 if test -f conftest.db; then 12237 echo "$as_me:$LINENO: result: yes" >&5 12238echo "${ECHO_T}yes" >&6 12239 12240cat >>confdefs.h <<\_ACEOF 12241#define HAVE_NEW_DB 1 12242_ACEOF 12243 12244 else 12245 echo "$as_me:$LINENO: result: no" >&5 12246echo "${ECHO_T}no" >&6 12247 fi 12248else 12249 echo "$as_me: program exited with status $ac_status" >&5 12250echo "$as_me: failed program was:" >&5 12251cat conftest.$ac_ext >&5 12252( exit $ac_status ) 12253echo "$as_me:$LINENO: result: no" >&5 12254echo "${ECHO_T}no" >&6 12255fi 12256rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 12257fi 12258fi 12259 12260 12261 12262if test "$db_type" = db1; then 12263 HAVE_DB1_TRUE= 12264 HAVE_DB1_FALSE='#' 12265else 12266 HAVE_DB1_TRUE='#' 12267 HAVE_DB1_FALSE= 12268fi 12269 12270 12271if test "$db_type" = db3; then 12272 HAVE_DB3_TRUE= 12273 HAVE_DB3_FALSE='#' 12274else 12275 HAVE_DB3_TRUE='#' 12276 HAVE_DB3_FALSE= 12277fi 12278 12279 12280if test "$db_type" = ndbm; then 12281 HAVE_NDBM_TRUE= 12282 HAVE_NDBM_FALSE='#' 12283else 12284 HAVE_NDBM_TRUE='#' 12285 HAVE_NDBM_FALSE= 12286fi 12287 12288z="" 12289for i in $LDFLAGS; do 12290 case "$i" in 12291 -L*) z="$z $i";; 12292 esac 12293done 12294DBLIB="$z $DBLIB" 12295 12296 12297 12298 12299 12300echo "$as_me:$LINENO: checking for inline" >&5 12301echo $ECHO_N "checking for inline... $ECHO_C" >&6 12302if test "${ac_cv_c_inline+set}" = set; then 12303 echo $ECHO_N "(cached) $ECHO_C" >&6 12304else 12305 ac_cv_c_inline=no 12306for ac_kw in inline __inline__ __inline; do 12307 cat >conftest.$ac_ext <<_ACEOF 12308#line $LINENO "configure" 12309#include "confdefs.h" 12310#ifndef __cplusplus 12311static $ac_kw int static_foo () {return 0; } 12312$ac_kw int foo () {return 0; } 12313#endif 12314 12315_ACEOF 12316rm -f conftest.$ac_objext 12317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12318 (eval $ac_compile) 2>&5 12319 ac_status=$? 12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12321 (exit $ac_status); } && 12322 { ac_try='test -s conftest.$ac_objext' 12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12324 (eval $ac_try) 2>&5 12325 ac_status=$? 12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12327 (exit $ac_status); }; }; then 12328 ac_cv_c_inline=$ac_kw; break 12329else 12330 echo "$as_me: failed program was:" >&5 12331cat conftest.$ac_ext >&5 12332fi 12333rm -f conftest.$ac_objext conftest.$ac_ext 12334done 12335 12336fi 12337echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 12338echo "${ECHO_T}$ac_cv_c_inline" >&6 12339case $ac_cv_c_inline in 12340 inline | yes) ;; 12341 no) 12342cat >>confdefs.h <<\_ACEOF 12343#define inline 12344_ACEOF 12345 ;; 12346 *) cat >>confdefs.h <<_ACEOF 12347#define inline $ac_cv_c_inline 12348_ACEOF 12349 ;; 12350esac 12351 12352echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 12353echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 12354if test "${ac_cv_c_const+set}" = set; then 12355 echo $ECHO_N "(cached) $ECHO_C" >&6 12356else 12357 cat >conftest.$ac_ext <<_ACEOF 12358#line $LINENO "configure" 12359#include "confdefs.h" 12360 12361#ifdef F77_DUMMY_MAIN 12362# ifdef __cplusplus 12363 extern "C" 12364# endif 12365 int F77_DUMMY_MAIN() { return 1; } 12366#endif 12367int 12368main () 12369{ 12370/* FIXME: Include the comments suggested by Paul. */ 12371#ifndef __cplusplus 12372 /* Ultrix mips cc rejects this. */ 12373 typedef int charset[2]; 12374 const charset x; 12375 /* SunOS 4.1.1 cc rejects this. */ 12376 char const *const *ccp; 12377 char **p; 12378 /* NEC SVR4.0.2 mips cc rejects this. */ 12379 struct point {int x, y;}; 12380 static struct point const zero = {0,0}; 12381 /* AIX XL C 1.02.0.0 rejects this. 12382 It does not let you subtract one const X* pointer from another in 12383 an arm of an if-expression whose if-part is not a constant 12384 expression */ 12385 const char *g = "string"; 12386 ccp = &g + (g ? g-g : 0); 12387 /* HPUX 7.0 cc rejects these. */ 12388 ++ccp; 12389 p = (char**) ccp; 12390 ccp = (char const *const *) p; 12391 { /* SCO 3.2v4 cc rejects this. */ 12392 char *t; 12393 char const *s = 0 ? (char *) 0 : (char const *) 0; 12394 12395 *t++ = 0; 12396 } 12397 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12398 int x[] = {25, 17}; 12399 const int *foo = &x[0]; 12400 ++foo; 12401 } 12402 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12403 typedef const int *iptr; 12404 iptr p = 0; 12405 ++p; 12406 } 12407 { /* AIX XL C 1.02.0.0 rejects this saying 12408 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12409 struct s { int j; const int *ap[3]; }; 12410 struct s *b; b->j = 5; 12411 } 12412 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12413 const int foo = 10; 12414 } 12415#endif 12416 12417 ; 12418 return 0; 12419} 12420_ACEOF 12421rm -f conftest.$ac_objext 12422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12423 (eval $ac_compile) 2>&5 12424 ac_status=$? 12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12426 (exit $ac_status); } && 12427 { ac_try='test -s conftest.$ac_objext' 12428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12429 (eval $ac_try) 2>&5 12430 ac_status=$? 12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12432 (exit $ac_status); }; }; then 12433 ac_cv_c_const=yes 12434else 12435 echo "$as_me: failed program was:" >&5 12436cat conftest.$ac_ext >&5 12437ac_cv_c_const=no 12438fi 12439rm -f conftest.$ac_objext conftest.$ac_ext 12440fi 12441echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 12442echo "${ECHO_T}$ac_cv_c_const" >&6 12443if test $ac_cv_c_const = no; then 12444 12445cat >>confdefs.h <<\_ACEOF 12446#define const 12447_ACEOF 12448 12449fi 12450 12451echo "$as_me:$LINENO: checking for size_t" >&5 12452echo $ECHO_N "checking for size_t... $ECHO_C" >&6 12453if test "${ac_cv_type_size_t+set}" = set; then 12454 echo $ECHO_N "(cached) $ECHO_C" >&6 12455else 12456 cat >conftest.$ac_ext <<_ACEOF 12457#line $LINENO "configure" 12458#include "confdefs.h" 12459$ac_includes_default 12460#ifdef F77_DUMMY_MAIN 12461# ifdef __cplusplus 12462 extern "C" 12463# endif 12464 int F77_DUMMY_MAIN() { return 1; } 12465#endif 12466int 12467main () 12468{ 12469if ((size_t *) 0) 12470 return 0; 12471if (sizeof (size_t)) 12472 return 0; 12473 ; 12474 return 0; 12475} 12476_ACEOF 12477rm -f conftest.$ac_objext 12478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12479 (eval $ac_compile) 2>&5 12480 ac_status=$? 12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12482 (exit $ac_status); } && 12483 { ac_try='test -s conftest.$ac_objext' 12484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12485 (eval $ac_try) 2>&5 12486 ac_status=$? 12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12488 (exit $ac_status); }; }; then 12489 ac_cv_type_size_t=yes 12490else 12491 echo "$as_me: failed program was:" >&5 12492cat conftest.$ac_ext >&5 12493ac_cv_type_size_t=no 12494fi 12495rm -f conftest.$ac_objext conftest.$ac_ext 12496fi 12497echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 12498echo "${ECHO_T}$ac_cv_type_size_t" >&6 12499if test $ac_cv_type_size_t = yes; then 12500 : 12501else 12502 12503cat >>confdefs.h <<_ACEOF 12504#define size_t unsigned 12505_ACEOF 12506 12507fi 12508 12509echo "$as_me:$LINENO: checking for pid_t" >&5 12510echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 12511if test "${ac_cv_type_pid_t+set}" = set; then 12512 echo $ECHO_N "(cached) $ECHO_C" >&6 12513else 12514 cat >conftest.$ac_ext <<_ACEOF 12515#line $LINENO "configure" 12516#include "confdefs.h" 12517$ac_includes_default 12518#ifdef F77_DUMMY_MAIN 12519# ifdef __cplusplus 12520 extern "C" 12521# endif 12522 int F77_DUMMY_MAIN() { return 1; } 12523#endif 12524int 12525main () 12526{ 12527if ((pid_t *) 0) 12528 return 0; 12529if (sizeof (pid_t)) 12530 return 0; 12531 ; 12532 return 0; 12533} 12534_ACEOF 12535rm -f conftest.$ac_objext 12536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12537 (eval $ac_compile) 2>&5 12538 ac_status=$? 12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12540 (exit $ac_status); } && 12541 { ac_try='test -s conftest.$ac_objext' 12542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12543 (eval $ac_try) 2>&5 12544 ac_status=$? 12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12546 (exit $ac_status); }; }; then 12547 ac_cv_type_pid_t=yes 12548else 12549 echo "$as_me: failed program was:" >&5 12550cat conftest.$ac_ext >&5 12551ac_cv_type_pid_t=no 12552fi 12553rm -f conftest.$ac_objext conftest.$ac_ext 12554fi 12555echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 12556echo "${ECHO_T}$ac_cv_type_pid_t" >&6 12557if test $ac_cv_type_pid_t = yes; then 12558 : 12559else 12560 12561cat >>confdefs.h <<_ACEOF 12562#define pid_t int 12563_ACEOF 12564 12565fi 12566 12567echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 12568echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 12569if test "${ac_cv_type_uid_t+set}" = set; then 12570 echo $ECHO_N "(cached) $ECHO_C" >&6 12571else 12572 cat >conftest.$ac_ext <<_ACEOF 12573#line $LINENO "configure" 12574#include "confdefs.h" 12575#include <sys/types.h> 12576 12577_ACEOF 12578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12579 egrep "uid_t" >/dev/null 2>&1; then 12580 ac_cv_type_uid_t=yes 12581else 12582 ac_cv_type_uid_t=no 12583fi 12584rm -f conftest* 12585 12586fi 12587echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 12588echo "${ECHO_T}$ac_cv_type_uid_t" >&6 12589if test $ac_cv_type_uid_t = no; then 12590 12591cat >>confdefs.h <<\_ACEOF 12592#define uid_t int 12593_ACEOF 12594 12595 12596cat >>confdefs.h <<\_ACEOF 12597#define gid_t int 12598_ACEOF 12599 12600fi 12601 12602 12603echo "$as_me:$LINENO: checking return type of signal handlers" >&5 12604echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 12605if test "${ac_cv_type_signal+set}" = set; then 12606 echo $ECHO_N "(cached) $ECHO_C" >&6 12607else 12608 cat >conftest.$ac_ext <<_ACEOF 12609#line $LINENO "configure" 12610#include "confdefs.h" 12611#include <sys/types.h> 12612#include <signal.h> 12613#ifdef signal 12614# undef signal 12615#endif 12616#ifdef __cplusplus 12617extern "C" void (*signal (int, void (*)(int)))(int); 12618#else 12619void (*signal ()) (); 12620#endif 12621 12622#ifdef F77_DUMMY_MAIN 12623# ifdef __cplusplus 12624 extern "C" 12625# endif 12626 int F77_DUMMY_MAIN() { return 1; } 12627#endif 12628int 12629main () 12630{ 12631int i; 12632 ; 12633 return 0; 12634} 12635_ACEOF 12636rm -f conftest.$ac_objext 12637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12638 (eval $ac_compile) 2>&5 12639 ac_status=$? 12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12641 (exit $ac_status); } && 12642 { ac_try='test -s conftest.$ac_objext' 12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12644 (eval $ac_try) 2>&5 12645 ac_status=$? 12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12647 (exit $ac_status); }; }; then 12648 ac_cv_type_signal=void 12649else 12650 echo "$as_me: failed program was:" >&5 12651cat conftest.$ac_ext >&5 12652ac_cv_type_signal=int 12653fi 12654rm -f conftest.$ac_objext conftest.$ac_ext 12655fi 12656echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 12657echo "${ECHO_T}$ac_cv_type_signal" >&6 12658 12659cat >>confdefs.h <<_ACEOF 12660#define RETSIGTYPE $ac_cv_type_signal 12661_ACEOF 12662 12663 12664if test "$ac_cv_type_signal" = "void" ; then 12665 12666cat >>confdefs.h <<\_ACEOF 12667#define VOID_RETSIGTYPE 1 12668_ACEOF 12669 12670fi 12671 12672 12673 12674 12675echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 12676echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 12677if test "${ac_cv_header_time+set}" = set; then 12678 echo $ECHO_N "(cached) $ECHO_C" >&6 12679else 12680 cat >conftest.$ac_ext <<_ACEOF 12681#line $LINENO "configure" 12682#include "confdefs.h" 12683#include <sys/types.h> 12684#include <sys/time.h> 12685#include <time.h> 12686 12687#ifdef F77_DUMMY_MAIN 12688# ifdef __cplusplus 12689 extern "C" 12690# endif 12691 int F77_DUMMY_MAIN() { return 1; } 12692#endif 12693int 12694main () 12695{ 12696if ((struct tm *) 0) 12697return 0; 12698 ; 12699 return 0; 12700} 12701_ACEOF 12702rm -f conftest.$ac_objext 12703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12704 (eval $ac_compile) 2>&5 12705 ac_status=$? 12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12707 (exit $ac_status); } && 12708 { ac_try='test -s conftest.$ac_objext' 12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12710 (eval $ac_try) 2>&5 12711 ac_status=$? 12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12713 (exit $ac_status); }; }; then 12714 ac_cv_header_time=yes 12715else 12716 echo "$as_me: failed program was:" >&5 12717cat conftest.$ac_ext >&5 12718ac_cv_header_time=no 12719fi 12720rm -f conftest.$ac_objext conftest.$ac_ext 12721fi 12722echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 12723echo "${ECHO_T}$ac_cv_header_time" >&6 12724if test $ac_cv_header_time = yes; then 12725 12726cat >>confdefs.h <<\_ACEOF 12727#define TIME_WITH_SYS_TIME 1 12728_ACEOF 12729 12730fi 12731 12732 12733 12734for ac_header in standards.h 12735do 12736as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12737if eval "test \"\${$as_ac_Header+set}\" = set"; then 12738 echo "$as_me:$LINENO: checking for $ac_header" >&5 12739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12740if eval "test \"\${$as_ac_Header+set}\" = set"; then 12741 echo $ECHO_N "(cached) $ECHO_C" >&6 12742fi 12743echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12744echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12745else 12746 # Is the header compilable? 12747echo "$as_me:$LINENO: checking $ac_header usability" >&5 12748echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12749cat >conftest.$ac_ext <<_ACEOF 12750#line $LINENO "configure" 12751#include "confdefs.h" 12752$ac_includes_default 12753#include <$ac_header> 12754_ACEOF 12755rm -f conftest.$ac_objext 12756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12757 (eval $ac_compile) 2>&5 12758 ac_status=$? 12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12760 (exit $ac_status); } && 12761 { ac_try='test -s conftest.$ac_objext' 12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12763 (eval $ac_try) 2>&5 12764 ac_status=$? 12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12766 (exit $ac_status); }; }; then 12767 ac_header_compiler=yes 12768else 12769 echo "$as_me: failed program was:" >&5 12770cat conftest.$ac_ext >&5 12771ac_header_compiler=no 12772fi 12773rm -f conftest.$ac_objext conftest.$ac_ext 12774echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12775echo "${ECHO_T}$ac_header_compiler" >&6 12776 12777# Is the header present? 12778echo "$as_me:$LINENO: checking $ac_header presence" >&5 12779echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12780cat >conftest.$ac_ext <<_ACEOF 12781#line $LINENO "configure" 12782#include "confdefs.h" 12783#include <$ac_header> 12784_ACEOF 12785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12787 ac_status=$? 12788 egrep -v '^ *\+' conftest.er1 >conftest.err 12789 rm -f conftest.er1 12790 cat conftest.err >&5 12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12792 (exit $ac_status); } >/dev/null; then 12793 if test -s conftest.err; then 12794 ac_cpp_err=$ac_c_preproc_warn_flag 12795 else 12796 ac_cpp_err= 12797 fi 12798else 12799 ac_cpp_err=yes 12800fi 12801if test -z "$ac_cpp_err"; then 12802 ac_header_preproc=yes 12803else 12804 echo "$as_me: failed program was:" >&5 12805 cat conftest.$ac_ext >&5 12806 ac_header_preproc=no 12807fi 12808rm -f conftest.err conftest.$ac_ext 12809echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12810echo "${ECHO_T}$ac_header_preproc" >&6 12811 12812# So? What about this header? 12813case $ac_header_compiler:$ac_header_preproc in 12814 yes:no ) 12815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12816echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 12819 no:yes ) 12820 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12821echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12822 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12823echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12825echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 12826esac 12827echo "$as_me:$LINENO: checking for $ac_header" >&5 12828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12829if eval "test \"\${$as_ac_Header+set}\" = set"; then 12830 echo $ECHO_N "(cached) $ECHO_C" >&6 12831else 12832 eval "$as_ac_Header=$ac_header_preproc" 12833fi 12834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12836 12837fi 12838if test `eval echo '${'$as_ac_Header'}'` = yes; then 12839 cat >>confdefs.h <<_ACEOF 12840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12841_ACEOF 12842 12843fi 12844 12845done 12846 12847for i in netinet/ip.h netinet/tcp.h; do 12848 12849cv=`echo "$i" | sed 'y%./+-%__p_%'` 12850 12851echo "$as_me:$LINENO: checking for $i" >&5 12852echo $ECHO_N "checking for $i... $ECHO_C" >&6 12853if eval "test \"\${ac_cv_header_$cv+set}\" = set"; then 12854 echo $ECHO_N "(cached) $ECHO_C" >&6 12855else 12856 cat >conftest.$ac_ext <<_ACEOF 12857#line $LINENO "configure" 12858#include "confdefs.h" 12859\ 12860#ifdef HAVE_STANDARDS_H 12861#include <standards.h> 12862#endif 12863#include <$i> 12864 12865_ACEOF 12866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12868 ac_status=$? 12869 egrep -v '^ *\+' conftest.er1 >conftest.err 12870 rm -f conftest.er1 12871 cat conftest.err >&5 12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12873 (exit $ac_status); } >/dev/null; then 12874 if test -s conftest.err; then 12875 ac_cpp_err=$ac_c_preproc_warn_flag 12876 else 12877 ac_cpp_err= 12878 fi 12879else 12880 ac_cpp_err=yes 12881fi 12882if test -z "$ac_cpp_err"; then 12883 eval "ac_cv_header_$cv=yes" 12884else 12885 echo "$as_me: failed program was:" >&5 12886 cat conftest.$ac_ext >&5 12887 eval "ac_cv_header_$cv=no" 12888fi 12889rm -f conftest.err conftest.$ac_ext 12890fi 12891echo "$as_me:$LINENO: result: `eval echo '${'ac_cv_header_$cv'}'`" >&5 12892echo "${ECHO_T}`eval echo '${'ac_cv_header_$cv'}'`" >&6 12893ac_res=`eval echo \\$ac_cv_header_$cv` 12894if test "$ac_res" = yes; then 12895 ac_tr_hdr=HAVE_`echo $i | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 12896 cat >>confdefs.h <<_ACEOF 12897#define $ac_tr_hdr 1 12898_ACEOF 12899 12900fi 12901done 12902if false;then 12903 12904 12905for ac_header in netinet/ip.h netinet/tcp.h 12906do 12907as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12908if eval "test \"\${$as_ac_Header+set}\" = set"; then 12909 echo "$as_me:$LINENO: checking for $ac_header" >&5 12910echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 12911if eval "test \"\${$as_ac_Header+set}\" = set"; then 12912 echo $ECHO_N "(cached) $ECHO_C" >&6 12913fi 12914echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 12915echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 12916else 12917 # Is the header compilable? 12918echo "$as_me:$LINENO: checking $ac_header usability" >&5 12919echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 12920cat >conftest.$ac_ext <<_ACEOF 12921#line $LINENO "configure" 12922#include "confdefs.h" 12923$ac_includes_default 12924#include <$ac_header> 12925_ACEOF 12926rm -f conftest.$ac_objext 12927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12928 (eval $ac_compile) 2>&5 12929 ac_status=$? 12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12931 (exit $ac_status); } && 12932 { ac_try='test -s conftest.$ac_objext' 12933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12934 (eval $ac_try) 2>&5 12935 ac_status=$? 12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12937 (exit $ac_status); }; }; then 12938 ac_header_compiler=yes 12939else 12940 echo "$as_me: failed program was:" >&5 12941cat conftest.$ac_ext >&5 12942ac_header_compiler=no 12943fi 12944rm -f conftest.$ac_objext conftest.$ac_ext 12945echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 12946echo "${ECHO_T}$ac_header_compiler" >&6 12947 12948# Is the header present? 12949echo "$as_me:$LINENO: checking $ac_header presence" >&5 12950echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 12951cat >conftest.$ac_ext <<_ACEOF 12952#line $LINENO "configure" 12953#include "confdefs.h" 12954#include <$ac_header> 12955_ACEOF 12956if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 12957 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 12958 ac_status=$? 12959 egrep -v '^ *\+' conftest.er1 >conftest.err 12960 rm -f conftest.er1 12961 cat conftest.err >&5 12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12963 (exit $ac_status); } >/dev/null; then 12964 if test -s conftest.err; then 12965 ac_cpp_err=$ac_c_preproc_warn_flag 12966 else 12967 ac_cpp_err= 12968 fi 12969else 12970 ac_cpp_err=yes 12971fi 12972if test -z "$ac_cpp_err"; then 12973 ac_header_preproc=yes 12974else 12975 echo "$as_me: failed program was:" >&5 12976 cat conftest.$ac_ext >&5 12977 ac_header_preproc=no 12978fi 12979rm -f conftest.err conftest.$ac_ext 12980echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 12981echo "${ECHO_T}$ac_header_preproc" >&6 12982 12983# So? What about this header? 12984case $ac_header_compiler:$ac_header_preproc in 12985 yes:no ) 12986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 12987echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 12988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12989echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 12990 no:yes ) 12991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 12992echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 12993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 12994echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 12995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 12996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 12997esac 12998echo "$as_me:$LINENO: checking for $ac_header" >&5 12999echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13000if eval "test \"\${$as_ac_Header+set}\" = set"; then 13001 echo $ECHO_N "(cached) $ECHO_C" >&6 13002else 13003 eval "$as_ac_Header=$ac_header_preproc" 13004fi 13005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13007 13008fi 13009if test `eval echo '${'$as_ac_Header'}'` = yes; then 13010 cat >>confdefs.h <<_ACEOF 13011#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13012_ACEOF 13013 13014fi 13015 13016done 13017 13018fi 13019 13020 13021 13022 13023for ac_func in getlogin setlogin 13024do 13025as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13026echo "$as_me:$LINENO: checking for $ac_func" >&5 13027echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13028if eval "test \"\${$as_ac_var+set}\" = set"; then 13029 echo $ECHO_N "(cached) $ECHO_C" >&6 13030else 13031 cat >conftest.$ac_ext <<_ACEOF 13032#line $LINENO "configure" 13033#include "confdefs.h" 13034/* System header to define __stub macros and hopefully few prototypes, 13035 which can conflict with char $ac_func (); below. */ 13036#include <assert.h> 13037/* Override any gcc2 internal prototype to avoid an error. */ 13038#ifdef __cplusplus 13039extern "C" 13040#endif 13041/* We use char because int might match the return type of a gcc2 13042 builtin and then its argument prototype would still apply. */ 13043char $ac_func (); 13044char (*f) (); 13045 13046#ifdef F77_DUMMY_MAIN 13047# ifdef __cplusplus 13048 extern "C" 13049# endif 13050 int F77_DUMMY_MAIN() { return 1; } 13051#endif 13052int 13053main () 13054{ 13055/* The GNU C library defines this for functions which it implements 13056 to always fail with ENOSYS. Some functions are actually named 13057 something starting with __ and the normal name is an alias. */ 13058#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13059choke me 13060#else 13061f = $ac_func; 13062#endif 13063 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068rm -f conftest.$ac_objext conftest$ac_exeext 13069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13070 (eval $ac_link) 2>&5 13071 ac_status=$? 13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13073 (exit $ac_status); } && 13074 { ac_try='test -s conftest$ac_exeext' 13075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13076 (eval $ac_try) 2>&5 13077 ac_status=$? 13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13079 (exit $ac_status); }; }; then 13080 eval "$as_ac_var=yes" 13081else 13082 echo "$as_me: failed program was:" >&5 13083cat conftest.$ac_ext >&5 13084eval "$as_ac_var=no" 13085fi 13086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13087fi 13088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13089echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13090if test `eval echo '${'$as_ac_var'}'` = yes; then 13091 cat >>confdefs.h <<_ACEOF 13092#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13093_ACEOF 13094 13095fi 13096done 13097 13098if test "$ac_cv_func_getlogin" = yes; then 13099echo "$as_me:$LINENO: checking if getlogin is posix" >&5 13100echo $ECHO_N "checking if getlogin is posix... $ECHO_C" >&6 13101if test "${ac_cv_func_getlogin_posix+set}" = set; then 13102 echo $ECHO_N "(cached) $ECHO_C" >&6 13103else 13104 13105if test "$ac_cv_func_getlogin" = yes -a "$ac_cv_func_setlogin" = yes; then 13106 ac_cv_func_getlogin_posix=no 13107else 13108 ac_cv_func_getlogin_posix=yes 13109fi 13110 13111fi 13112echo "$as_me:$LINENO: result: $ac_cv_func_getlogin_posix" >&5 13113echo "${ECHO_T}$ac_cv_func_getlogin_posix" >&6 13114if test "$ac_cv_func_getlogin_posix" = yes; then 13115 13116cat >>confdefs.h <<\_ACEOF 13117#define POSIX_GETLOGIN 1 13118_ACEOF 13119 13120fi 13121fi 13122 13123 13124 13125for ac_header in stdlib.h unistd.h 13126do 13127as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13128if eval "test \"\${$as_ac_Header+set}\" = set"; then 13129 echo "$as_me:$LINENO: checking for $ac_header" >&5 13130echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13131if eval "test \"\${$as_ac_Header+set}\" = set"; then 13132 echo $ECHO_N "(cached) $ECHO_C" >&6 13133fi 13134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13135echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13136else 13137 # Is the header compilable? 13138echo "$as_me:$LINENO: checking $ac_header usability" >&5 13139echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13140cat >conftest.$ac_ext <<_ACEOF 13141#line $LINENO "configure" 13142#include "confdefs.h" 13143$ac_includes_default 13144#include <$ac_header> 13145_ACEOF 13146rm -f conftest.$ac_objext 13147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13148 (eval $ac_compile) 2>&5 13149 ac_status=$? 13150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13151 (exit $ac_status); } && 13152 { ac_try='test -s conftest.$ac_objext' 13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13154 (eval $ac_try) 2>&5 13155 ac_status=$? 13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13157 (exit $ac_status); }; }; then 13158 ac_header_compiler=yes 13159else 13160 echo "$as_me: failed program was:" >&5 13161cat conftest.$ac_ext >&5 13162ac_header_compiler=no 13163fi 13164rm -f conftest.$ac_objext conftest.$ac_ext 13165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13166echo "${ECHO_T}$ac_header_compiler" >&6 13167 13168# Is the header present? 13169echo "$as_me:$LINENO: checking $ac_header presence" >&5 13170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13171cat >conftest.$ac_ext <<_ACEOF 13172#line $LINENO "configure" 13173#include "confdefs.h" 13174#include <$ac_header> 13175_ACEOF 13176if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13178 ac_status=$? 13179 egrep -v '^ *\+' conftest.er1 >conftest.err 13180 rm -f conftest.er1 13181 cat conftest.err >&5 13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13183 (exit $ac_status); } >/dev/null; then 13184 if test -s conftest.err; then 13185 ac_cpp_err=$ac_c_preproc_warn_flag 13186 else 13187 ac_cpp_err= 13188 fi 13189else 13190 ac_cpp_err=yes 13191fi 13192if test -z "$ac_cpp_err"; then 13193 ac_header_preproc=yes 13194else 13195 echo "$as_me: failed program was:" >&5 13196 cat conftest.$ac_ext >&5 13197 ac_header_preproc=no 13198fi 13199rm -f conftest.err conftest.$ac_ext 13200echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13201echo "${ECHO_T}$ac_header_preproc" >&6 13202 13203# So? What about this header? 13204case $ac_header_compiler:$ac_header_preproc in 13205 yes:no ) 13206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13207echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13209echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 13210 no:yes ) 13211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13212echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13214echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13216echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 13217esac 13218echo "$as_me:$LINENO: checking for $ac_header" >&5 13219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13220if eval "test \"\${$as_ac_Header+set}\" = set"; then 13221 echo $ECHO_N "(cached) $ECHO_C" >&6 13222else 13223 eval "$as_ac_Header=$ac_header_preproc" 13224fi 13225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13227 13228fi 13229if test `eval echo '${'$as_ac_Header'}'` = yes; then 13230 cat >>confdefs.h <<_ACEOF 13231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13232_ACEOF 13233 13234fi 13235 13236done 13237 13238 13239for ac_func in getpagesize 13240do 13241as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 13242echo "$as_me:$LINENO: checking for $ac_func" >&5 13243echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 13244if eval "test \"\${$as_ac_var+set}\" = set"; then 13245 echo $ECHO_N "(cached) $ECHO_C" >&6 13246else 13247 cat >conftest.$ac_ext <<_ACEOF 13248#line $LINENO "configure" 13249#include "confdefs.h" 13250/* System header to define __stub macros and hopefully few prototypes, 13251 which can conflict with char $ac_func (); below. */ 13252#include <assert.h> 13253/* Override any gcc2 internal prototype to avoid an error. */ 13254#ifdef __cplusplus 13255extern "C" 13256#endif 13257/* We use char because int might match the return type of a gcc2 13258 builtin and then its argument prototype would still apply. */ 13259char $ac_func (); 13260char (*f) (); 13261 13262#ifdef F77_DUMMY_MAIN 13263# ifdef __cplusplus 13264 extern "C" 13265# endif 13266 int F77_DUMMY_MAIN() { return 1; } 13267#endif 13268int 13269main () 13270{ 13271/* The GNU C library defines this for functions which it implements 13272 to always fail with ENOSYS. Some functions are actually named 13273 something starting with __ and the normal name is an alias. */ 13274#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 13275choke me 13276#else 13277f = $ac_func; 13278#endif 13279 13280 ; 13281 return 0; 13282} 13283_ACEOF 13284rm -f conftest.$ac_objext conftest$ac_exeext 13285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13286 (eval $ac_link) 2>&5 13287 ac_status=$? 13288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13289 (exit $ac_status); } && 13290 { ac_try='test -s conftest$ac_exeext' 13291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13292 (eval $ac_try) 2>&5 13293 ac_status=$? 13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13295 (exit $ac_status); }; }; then 13296 eval "$as_ac_var=yes" 13297else 13298 echo "$as_me: failed program was:" >&5 13299cat conftest.$ac_ext >&5 13300eval "$as_ac_var=no" 13301fi 13302rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 13303fi 13304echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 13305echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 13306if test `eval echo '${'$as_ac_var'}'` = yes; then 13307 cat >>confdefs.h <<_ACEOF 13308#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 13309_ACEOF 13310 13311fi 13312done 13313 13314echo "$as_me:$LINENO: checking for working mmap" >&5 13315echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 13316if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 13317 echo $ECHO_N "(cached) $ECHO_C" >&6 13318else 13319 if test "$cross_compiling" = yes; then 13320 ac_cv_func_mmap_fixed_mapped=no 13321else 13322 cat >conftest.$ac_ext <<_ACEOF 13323#line $LINENO "configure" 13324#include "confdefs.h" 13325$ac_includes_default 13326/* malloc might have been renamed as rpl_malloc. */ 13327#undef malloc 13328 13329/* Thanks to Mike Haertel and Jim Avera for this test. 13330 Here is a matrix of mmap possibilities: 13331 mmap private not fixed 13332 mmap private fixed at somewhere currently unmapped 13333 mmap private fixed at somewhere already mapped 13334 mmap shared not fixed 13335 mmap shared fixed at somewhere currently unmapped 13336 mmap shared fixed at somewhere already mapped 13337 For private mappings, we should verify that changes cannot be read() 13338 back from the file, nor mmap's back from the file at a different 13339 address. (There have been systems where private was not correctly 13340 implemented like the infamous i386 svr4.0, and systems where the 13341 VM page cache was not coherent with the file system buffer cache 13342 like early versions of FreeBSD and possibly contemporary NetBSD.) 13343 For shared mappings, we should conversely verify that changes get 13344 propagated back to all the places they're supposed to be. 13345 13346 Grep wants private fixed already mapped. 13347 The main things grep needs to know about mmap are: 13348 * does it exist and is it safe to write into the mmap'd area 13349 * how to use it (BSD variants) */ 13350 13351#include <fcntl.h> 13352#include <sys/mman.h> 13353 13354#if !STDC_HEADERS && !HAVE_STDLIB_H 13355char *malloc (); 13356#endif 13357 13358/* This mess was copied from the GNU getpagesize.h. */ 13359#if !HAVE_GETPAGESIZE 13360/* Assume that all systems that can run configure have sys/param.h. */ 13361# if !HAVE_SYS_PARAM_H 13362# define HAVE_SYS_PARAM_H 1 13363# endif 13364 13365# ifdef _SC_PAGESIZE 13366# define getpagesize() sysconf(_SC_PAGESIZE) 13367# else /* no _SC_PAGESIZE */ 13368# if HAVE_SYS_PARAM_H 13369# include <sys/param.h> 13370# ifdef EXEC_PAGESIZE 13371# define getpagesize() EXEC_PAGESIZE 13372# else /* no EXEC_PAGESIZE */ 13373# ifdef NBPG 13374# define getpagesize() NBPG * CLSIZE 13375# ifndef CLSIZE 13376# define CLSIZE 1 13377# endif /* no CLSIZE */ 13378# else /* no NBPG */ 13379# ifdef NBPC 13380# define getpagesize() NBPC 13381# else /* no NBPC */ 13382# ifdef PAGESIZE 13383# define getpagesize() PAGESIZE 13384# endif /* PAGESIZE */ 13385# endif /* no NBPC */ 13386# endif /* no NBPG */ 13387# endif /* no EXEC_PAGESIZE */ 13388# else /* no HAVE_SYS_PARAM_H */ 13389# define getpagesize() 8192 /* punt totally */ 13390# endif /* no HAVE_SYS_PARAM_H */ 13391# endif /* no _SC_PAGESIZE */ 13392 13393#endif /* no HAVE_GETPAGESIZE */ 13394 13395int 13396main () 13397{ 13398 char *data, *data2, *data3; 13399 int i, pagesize; 13400 int fd; 13401 13402 pagesize = getpagesize (); 13403 13404 /* First, make a file with some known garbage in it. */ 13405 data = (char *) malloc (pagesize); 13406 if (!data) 13407 exit (1); 13408 for (i = 0; i < pagesize; ++i) 13409 *(data + i) = rand (); 13410 umask (0); 13411 fd = creat ("conftest.mmap", 0600); 13412 if (fd < 0) 13413 exit (1); 13414 if (write (fd, data, pagesize) != pagesize) 13415 exit (1); 13416 close (fd); 13417 13418 /* Next, try to mmap the file at a fixed address which already has 13419 something else allocated at it. If we can, also make sure that 13420 we see the same garbage. */ 13421 fd = open ("conftest.mmap", O_RDWR); 13422 if (fd < 0) 13423 exit (1); 13424 data2 = (char *) malloc (2 * pagesize); 13425 if (!data2) 13426 exit (1); 13427 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 13428 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 13429 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 13430 exit (1); 13431 for (i = 0; i < pagesize; ++i) 13432 if (*(data + i) != *(data2 + i)) 13433 exit (1); 13434 13435 /* Finally, make sure that changes to the mapped area do not 13436 percolate back to the file as seen by read(). (This is a bug on 13437 some variants of i386 svr4.0.) */ 13438 for (i = 0; i < pagesize; ++i) 13439 *(data2 + i) = *(data2 + i) + 1; 13440 data3 = (char *) malloc (pagesize); 13441 if (!data3) 13442 exit (1); 13443 if (read (fd, data3, pagesize) != pagesize) 13444 exit (1); 13445 for (i = 0; i < pagesize; ++i) 13446 if (*(data + i) != *(data3 + i)) 13447 exit (1); 13448 close (fd); 13449 exit (0); 13450} 13451_ACEOF 13452rm -f conftest$ac_exeext 13453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13454 (eval $ac_link) 2>&5 13455 ac_status=$? 13456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13459 (eval $ac_try) 2>&5 13460 ac_status=$? 13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13462 (exit $ac_status); }; }; then 13463 ac_cv_func_mmap_fixed_mapped=yes 13464else 13465 echo "$as_me: program exited with status $ac_status" >&5 13466echo "$as_me: failed program was:" >&5 13467cat conftest.$ac_ext >&5 13468( exit $ac_status ) 13469ac_cv_func_mmap_fixed_mapped=no 13470fi 13471rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13472fi 13473fi 13474echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 13475echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 13476if test $ac_cv_func_mmap_fixed_mapped = yes; then 13477 13478cat >>confdefs.h <<\_ACEOF 13479#define HAVE_MMAP 1 13480_ACEOF 13481 13482fi 13483rm -f conftest.mmap 13484 13485 13486echo "$as_me:$LINENO: checking if realloc if broken" >&5 13487echo $ECHO_N "checking if realloc if broken... $ECHO_C" >&6 13488if test "${ac_cv_func_realloc_broken+set}" = set; then 13489 echo $ECHO_N "(cached) $ECHO_C" >&6 13490else 13491 13492ac_cv_func_realloc_broken=no 13493if test "$cross_compiling" = yes; then 13494 : 13495else 13496 cat >conftest.$ac_ext <<_ACEOF 13497#line $LINENO "configure" 13498#include "confdefs.h" 13499 13500#include <stddef.h> 13501#include <stdlib.h> 13502 13503int main() 13504{ 13505 return realloc(NULL, 17) == NULL; 13506} 13507 13508_ACEOF 13509rm -f conftest$ac_exeext 13510if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13511 (eval $ac_link) 2>&5 13512 ac_status=$? 13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13516 (eval $ac_try) 2>&5 13517 ac_status=$? 13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13519 (exit $ac_status); }; }; then 13520 : 13521else 13522 echo "$as_me: program exited with status $ac_status" >&5 13523echo "$as_me: failed program was:" >&5 13524cat conftest.$ac_ext >&5 13525( exit $ac_status ) 13526ac_cv_func_realloc_broken=yes 13527fi 13528rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13529fi 13530 13531fi 13532echo "$as_me:$LINENO: result: $ac_cv_func_realloc_broken" >&5 13533echo "${ECHO_T}$ac_cv_func_realloc_broken" >&6 13534if test "$ac_cv_func_realloc_broken" = yes ; then 13535 13536cat >>confdefs.h <<\_ACEOF 13537#define BROKEN_REALLOC 1 13538_ACEOF 13539 13540fi 13541 13542 13543 13544 13545 13546 13547 13548DIR_roken=roken 13549LIB_roken='$(top_builddir)/lib/roken/libroken.la' 13550INCLUDES_roken='-I$(top_builddir)/lib/roken -I$(top_srcdir)/lib/roken' 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565WFLAGS_NOUNUSED="" 13566WFLAGS_NOIMPLICITINT="" 13567if test -z "$WFLAGS" -a "$GCC" = "yes"; then 13568 # -Wno-implicit-int for broken X11 headers 13569 # leave these out for now: 13570 # -Wcast-align doesn't work well on alpha osf/1 13571 # -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast 13572 # -Wmissing-declarations -Wnested-externs 13573 WFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith -Wbad-function-cast -Wmissing-declarations -Wnested-externs" 13574 WFLAGS_NOUNUSED="-Wno-unused" 13575 WFLAGS_NOIMPLICITINT="-Wno-implicit-int" 13576fi 13577 13578 13579 13580 13581 13582 13583 13584 13585cv=`echo "ssize_t" | sed 'y%./+- %__p__%'` 13586echo "$as_me:$LINENO: checking for ssize_t" >&5 13587echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 13588if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 13589 echo $ECHO_N "(cached) $ECHO_C" >&6 13590else 13591 cat >conftest.$ac_ext <<_ACEOF 13592#line $LINENO "configure" 13593#include "confdefs.h" 13594#include <sys/types.h> 13595#if STDC_HEADERS 13596#include <stdlib.h> 13597#include <stddef.h> 13598#endif 13599#include <unistd.h> 13600#ifdef F77_DUMMY_MAIN 13601# ifdef __cplusplus 13602 extern "C" 13603# endif 13604 int F77_DUMMY_MAIN() { return 1; } 13605#endif 13606int 13607main () 13608{ 13609ssize_t foo; 13610 ; 13611 return 0; 13612} 13613_ACEOF 13614rm -f conftest.$ac_objext 13615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13616 (eval $ac_compile) 2>&5 13617 ac_status=$? 13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13619 (exit $ac_status); } && 13620 { ac_try='test -s conftest.$ac_objext' 13621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13622 (eval $ac_try) 2>&5 13623 ac_status=$? 13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13625 (exit $ac_status); }; }; then 13626 eval "ac_cv_type_$cv=yes" 13627else 13628 echo "$as_me: failed program was:" >&5 13629cat conftest.$ac_ext >&5 13630eval "ac_cv_type_$cv=no" 13631fi 13632rm -f conftest.$ac_objext conftest.$ac_ext 13633fi 13634ac_foo=`eval echo \\$ac_cv_type_$cv` 13635echo "$as_me:$LINENO: result: $ac_foo" >&5 13636echo "${ECHO_T}$ac_foo" >&6 13637if test "$ac_foo" = yes; then 13638 ac_tr_hdr=HAVE_`echo ssize_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 13639if false; then 13640 echo "$as_me:$LINENO: checking for ssize_t" >&5 13641echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6 13642if test "${ac_cv_type_ssize_t+set}" = set; then 13643 echo $ECHO_N "(cached) $ECHO_C" >&6 13644else 13645 cat >conftest.$ac_ext <<_ACEOF 13646#line $LINENO "configure" 13647#include "confdefs.h" 13648$ac_includes_default 13649#ifdef F77_DUMMY_MAIN 13650# ifdef __cplusplus 13651 extern "C" 13652# endif 13653 int F77_DUMMY_MAIN() { return 1; } 13654#endif 13655int 13656main () 13657{ 13658if ((ssize_t *) 0) 13659 return 0; 13660if (sizeof (ssize_t)) 13661 return 0; 13662 ; 13663 return 0; 13664} 13665_ACEOF 13666rm -f conftest.$ac_objext 13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13668 (eval $ac_compile) 2>&5 13669 ac_status=$? 13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13671 (exit $ac_status); } && 13672 { ac_try='test -s conftest.$ac_objext' 13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13674 (eval $ac_try) 2>&5 13675 ac_status=$? 13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13677 (exit $ac_status); }; }; then 13678 ac_cv_type_ssize_t=yes 13679else 13680 echo "$as_me: failed program was:" >&5 13681cat conftest.$ac_ext >&5 13682ac_cv_type_ssize_t=no 13683fi 13684rm -f conftest.$ac_objext conftest.$ac_ext 13685fi 13686echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5 13687echo "${ECHO_T}$ac_cv_type_ssize_t" >&6 13688if test $ac_cv_type_ssize_t = yes; then 13689 13690cat >>confdefs.h <<_ACEOF 13691#define HAVE_SSIZE_T 1 13692_ACEOF 13693 13694 13695fi 13696 13697fi 13698 13699cat >>confdefs.h <<_ACEOF 13700#define $ac_tr_hdr 1 13701_ACEOF 13702 13703fi 13704 13705 13706 13707 13708 13709cv=`echo "long long" | sed 'y%./+- %__p__%'` 13710echo "$as_me:$LINENO: checking for long long" >&5 13711echo $ECHO_N "checking for long long... $ECHO_C" >&6 13712if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 13713 echo $ECHO_N "(cached) $ECHO_C" >&6 13714else 13715 cat >conftest.$ac_ext <<_ACEOF 13716#line $LINENO "configure" 13717#include "confdefs.h" 13718#include <sys/types.h> 13719#if STDC_HEADERS 13720#include <stdlib.h> 13721#include <stddef.h> 13722#endif 13723 13724#ifdef F77_DUMMY_MAIN 13725# ifdef __cplusplus 13726 extern "C" 13727# endif 13728 int F77_DUMMY_MAIN() { return 1; } 13729#endif 13730int 13731main () 13732{ 13733long long foo; 13734 ; 13735 return 0; 13736} 13737_ACEOF 13738rm -f conftest.$ac_objext 13739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13740 (eval $ac_compile) 2>&5 13741 ac_status=$? 13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13743 (exit $ac_status); } && 13744 { ac_try='test -s conftest.$ac_objext' 13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13746 (eval $ac_try) 2>&5 13747 ac_status=$? 13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13749 (exit $ac_status); }; }; then 13750 eval "ac_cv_type_$cv=yes" 13751else 13752 echo "$as_me: failed program was:" >&5 13753cat conftest.$ac_ext >&5 13754eval "ac_cv_type_$cv=no" 13755fi 13756rm -f conftest.$ac_objext conftest.$ac_ext 13757fi 13758ac_foo=`eval echo \\$ac_cv_type_$cv` 13759echo "$as_me:$LINENO: result: $ac_foo" >&5 13760echo "${ECHO_T}$ac_foo" >&6 13761if test "$ac_foo" = yes; then 13762 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 13763if false; then 13764 echo "$as_me:$LINENO: checking for long long" >&5 13765echo $ECHO_N "checking for long long... $ECHO_C" >&6 13766if test "${ac_cv_type_long_long+set}" = set; then 13767 echo $ECHO_N "(cached) $ECHO_C" >&6 13768else 13769 cat >conftest.$ac_ext <<_ACEOF 13770#line $LINENO "configure" 13771#include "confdefs.h" 13772$ac_includes_default 13773#ifdef F77_DUMMY_MAIN 13774# ifdef __cplusplus 13775 extern "C" 13776# endif 13777 int F77_DUMMY_MAIN() { return 1; } 13778#endif 13779int 13780main () 13781{ 13782if ((long long *) 0) 13783 return 0; 13784if (sizeof (long long)) 13785 return 0; 13786 ; 13787 return 0; 13788} 13789_ACEOF 13790rm -f conftest.$ac_objext 13791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13792 (eval $ac_compile) 2>&5 13793 ac_status=$? 13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13795 (exit $ac_status); } && 13796 { ac_try='test -s conftest.$ac_objext' 13797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13798 (eval $ac_try) 2>&5 13799 ac_status=$? 13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13801 (exit $ac_status); }; }; then 13802 ac_cv_type_long_long=yes 13803else 13804 echo "$as_me: failed program was:" >&5 13805cat conftest.$ac_ext >&5 13806ac_cv_type_long_long=no 13807fi 13808rm -f conftest.$ac_objext conftest.$ac_ext 13809fi 13810echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 13811echo "${ECHO_T}$ac_cv_type_long_long" >&6 13812if test $ac_cv_type_long_long = yes; then 13813 13814cat >>confdefs.h <<_ACEOF 13815#define HAVE_LONG_LONG 1 13816_ACEOF 13817 13818 13819fi 13820 13821fi 13822 13823cat >>confdefs.h <<_ACEOF 13824#define $ac_tr_hdr 1 13825_ACEOF 13826 13827fi 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880for ac_header in \ 13881 arpa/inet.h \ 13882 arpa/nameser.h \ 13883 config.h \ 13884 crypt.h \ 13885 dirent.h \ 13886 errno.h \ 13887 err.h \ 13888 fcntl.h \ 13889 grp.h \ 13890 ifaddrs.h \ 13891 net/if.h \ 13892 netdb.h \ 13893 netinet/in.h \ 13894 netinet/in6.h \ 13895 netinet/in_systm.h \ 13896 netinet6/in6.h \ 13897 netinet6/in6_var.h \ 13898 paths.h \ 13899 pwd.h \ 13900 resolv.h \ 13901 rpcsvc/ypclnt.h \ 13902 shadow.h \ 13903 sys/bswap.h \ 13904 sys/ioctl.h \ 13905 sys/mman.h \ 13906 sys/param.h \ 13907 sys/proc.h \ 13908 sys/resource.h \ 13909 sys/socket.h \ 13910 sys/sockio.h \ 13911 sys/stat.h \ 13912 sys/sysctl.h \ 13913 sys/time.h \ 13914 sys/tty.h \ 13915 sys/types.h \ 13916 sys/uio.h \ 13917 sys/utsname.h \ 13918 sys/wait.h \ 13919 syslog.h \ 13920 termios.h \ 13921 unistd.h \ 13922 userconf.h \ 13923 usersec.h \ 13924 util.h \ 13925 vis.h \ 13926 13927do 13928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13929if eval "test \"\${$as_ac_Header+set}\" = set"; then 13930 echo "$as_me:$LINENO: checking for $ac_header" >&5 13931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13932if eval "test \"\${$as_ac_Header+set}\" = set"; then 13933 echo $ECHO_N "(cached) $ECHO_C" >&6 13934fi 13935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13937else 13938 # Is the header compilable? 13939echo "$as_me:$LINENO: checking $ac_header usability" >&5 13940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13941cat >conftest.$ac_ext <<_ACEOF 13942#line $LINENO "configure" 13943#include "confdefs.h" 13944$ac_includes_default 13945#include <$ac_header> 13946_ACEOF 13947rm -f conftest.$ac_objext 13948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13949 (eval $ac_compile) 2>&5 13950 ac_status=$? 13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13952 (exit $ac_status); } && 13953 { ac_try='test -s conftest.$ac_objext' 13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13955 (eval $ac_try) 2>&5 13956 ac_status=$? 13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13958 (exit $ac_status); }; }; then 13959 ac_header_compiler=yes 13960else 13961 echo "$as_me: failed program was:" >&5 13962cat conftest.$ac_ext >&5 13963ac_header_compiler=no 13964fi 13965rm -f conftest.$ac_objext conftest.$ac_ext 13966echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13967echo "${ECHO_T}$ac_header_compiler" >&6 13968 13969# Is the header present? 13970echo "$as_me:$LINENO: checking $ac_header presence" >&5 13971echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13972cat >conftest.$ac_ext <<_ACEOF 13973#line $LINENO "configure" 13974#include "confdefs.h" 13975#include <$ac_header> 13976_ACEOF 13977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13979 ac_status=$? 13980 egrep -v '^ *\+' conftest.er1 >conftest.err 13981 rm -f conftest.er1 13982 cat conftest.err >&5 13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13984 (exit $ac_status); } >/dev/null; then 13985 if test -s conftest.err; then 13986 ac_cpp_err=$ac_c_preproc_warn_flag 13987 else 13988 ac_cpp_err= 13989 fi 13990else 13991 ac_cpp_err=yes 13992fi 13993if test -z "$ac_cpp_err"; then 13994 ac_header_preproc=yes 13995else 13996 echo "$as_me: failed program was:" >&5 13997 cat conftest.$ac_ext >&5 13998 ac_header_preproc=no 13999fi 14000rm -f conftest.err conftest.$ac_ext 14001echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 14002echo "${ECHO_T}$ac_header_preproc" >&6 14003 14004# So? What about this header? 14005case $ac_header_compiler:$ac_header_preproc in 14006 yes:no ) 14007 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 14008echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14010echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 14011 no:yes ) 14012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 14013echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 14014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 14015echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 14016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 14017echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 14018esac 14019echo "$as_me:$LINENO: checking for $ac_header" >&5 14020echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 14021if eval "test \"\${$as_ac_Header+set}\" = set"; then 14022 echo $ECHO_N "(cached) $ECHO_C" >&6 14023else 14024 eval "$as_ac_Header=$ac_header_preproc" 14025fi 14026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 14027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 14028 14029fi 14030if test `eval echo '${'$as_ac_Header'}'` = yes; then 14031 cat >>confdefs.h <<_ACEOF 14032#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 14033_ACEOF 14034 14035fi 14036 14037done 14038 14039 14040 14041 14042 14043 14044if test "$ac_cv_header_err_h" = yes; then 14045 have_err_h_TRUE= 14046 have_err_h_FALSE='#' 14047else 14048 have_err_h_TRUE='#' 14049 have_err_h_FALSE= 14050fi 14051 14052 14053 14054if test "$ac_cv_header_fnmatch_h" = yes; then 14055 have_fnmatch_h_TRUE= 14056 have_fnmatch_h_FALSE='#' 14057else 14058 have_fnmatch_h_TRUE='#' 14059 have_fnmatch_h_FALSE= 14060fi 14061 14062 14063 14064if test "$ac_cv_header_ifaddrs_h" = yes; then 14065 have_ifaddrs_h_TRUE= 14066 have_ifaddrs_h_FALSE='#' 14067else 14068 have_ifaddrs_h_TRUE='#' 14069 have_ifaddrs_h_FALSE= 14070fi 14071 14072 14073 14074if test "$ac_cv_header_vis_h" = yes; then 14075 have_vis_h_TRUE= 14076 have_vis_h_FALSE='#' 14077else 14078 have_vis_h_TRUE='#' 14079 have_vis_h_FALSE= 14080fi 14081 14082 14083 14084 14085 14086 14087 14088echo "$as_me:$LINENO: checking for socket" >&5 14089echo $ECHO_N "checking for socket... $ECHO_C" >&6 14090if test "${ac_cv_funclib_socket+set}" = set; then 14091 echo $ECHO_N "(cached) $ECHO_C" >&6 14092else 14093 14094if eval "test \"\$ac_cv_func_socket\" != yes" ; then 14095 ac_save_LIBS="$LIBS" 14096 for ac_lib in "" socket; do 14097 case "$ac_lib" in 14098 "") ;; 14099 yes) ac_lib="" ;; 14100 no) continue ;; 14101 -l*) ;; 14102 *) ac_lib="-l$ac_lib" ;; 14103 esac 14104 LIBS=" $ac_lib $ac_save_LIBS" 14105 cat >conftest.$ac_ext <<_ACEOF 14106#line $LINENO "configure" 14107#include "confdefs.h" 14108 14109#ifdef F77_DUMMY_MAIN 14110# ifdef __cplusplus 14111 extern "C" 14112# endif 14113 int F77_DUMMY_MAIN() { return 1; } 14114#endif 14115int 14116main () 14117{ 14118socket() 14119 ; 14120 return 0; 14121} 14122_ACEOF 14123rm -f conftest.$ac_objext conftest$ac_exeext 14124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14125 (eval $ac_link) 2>&5 14126 ac_status=$? 14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14128 (exit $ac_status); } && 14129 { ac_try='test -s conftest$ac_exeext' 14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14131 (eval $ac_try) 2>&5 14132 ac_status=$? 14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14134 (exit $ac_status); }; }; then 14135 eval "if test -n \"$ac_lib\";then ac_cv_funclib_socket=$ac_lib; else ac_cv_funclib_socket=yes; fi";break 14136else 14137 echo "$as_me: failed program was:" >&5 14138cat conftest.$ac_ext >&5 14139fi 14140rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14141 done 14142 eval "ac_cv_funclib_socket=\${ac_cv_funclib_socket-no}" 14143 LIBS="$ac_save_LIBS" 14144fi 14145 14146fi 14147 14148 14149eval "ac_res=\$ac_cv_funclib_socket" 14150 14151if false; then 14152 14153for ac_func in socket 14154do 14155as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14156echo "$as_me:$LINENO: checking for $ac_func" >&5 14157echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14158if eval "test \"\${$as_ac_var+set}\" = set"; then 14159 echo $ECHO_N "(cached) $ECHO_C" >&6 14160else 14161 cat >conftest.$ac_ext <<_ACEOF 14162#line $LINENO "configure" 14163#include "confdefs.h" 14164/* System header to define __stub macros and hopefully few prototypes, 14165 which can conflict with char $ac_func (); below. */ 14166#include <assert.h> 14167/* Override any gcc2 internal prototype to avoid an error. */ 14168#ifdef __cplusplus 14169extern "C" 14170#endif 14171/* We use char because int might match the return type of a gcc2 14172 builtin and then its argument prototype would still apply. */ 14173char $ac_func (); 14174char (*f) (); 14175 14176#ifdef F77_DUMMY_MAIN 14177# ifdef __cplusplus 14178 extern "C" 14179# endif 14180 int F77_DUMMY_MAIN() { return 1; } 14181#endif 14182int 14183main () 14184{ 14185/* The GNU C library defines this for functions which it implements 14186 to always fail with ENOSYS. Some functions are actually named 14187 something starting with __ and the normal name is an alias. */ 14188#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14189choke me 14190#else 14191f = $ac_func; 14192#endif 14193 14194 ; 14195 return 0; 14196} 14197_ACEOF 14198rm -f conftest.$ac_objext conftest$ac_exeext 14199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14200 (eval $ac_link) 2>&5 14201 ac_status=$? 14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14203 (exit $ac_status); } && 14204 { ac_try='test -s conftest$ac_exeext' 14205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14206 (eval $ac_try) 2>&5 14207 ac_status=$? 14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14209 (exit $ac_status); }; }; then 14210 eval "$as_ac_var=yes" 14211else 14212 echo "$as_me: failed program was:" >&5 14213cat conftest.$ac_ext >&5 14214eval "$as_ac_var=no" 14215fi 14216rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14217fi 14218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14219echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14220if test `eval echo '${'$as_ac_var'}'` = yes; then 14221 cat >>confdefs.h <<_ACEOF 14222#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14223_ACEOF 14224 14225fi 14226done 14227 14228fi 14229# socket 14230eval "ac_tr_func=HAVE_`echo socket | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14231eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14232eval "LIB_socket=$ac_res" 14233 14234case "$ac_res" in 14235 yes) 14236 eval "ac_cv_func_socket=yes" 14237 eval "LIB_socket=" 14238 cat >>confdefs.h <<_ACEOF 14239#define $ac_tr_func 1 14240_ACEOF 14241 14242 echo "$as_me:$LINENO: result: yes" >&5 14243echo "${ECHO_T}yes" >&6 14244 ;; 14245 no) 14246 eval "ac_cv_func_socket=no" 14247 eval "LIB_socket=" 14248 echo "$as_me:$LINENO: result: no" >&5 14249echo "${ECHO_T}no" >&6 14250 ;; 14251 *) 14252 eval "ac_cv_func_socket=yes" 14253 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14254 cat >>confdefs.h <<_ACEOF 14255#define $ac_tr_func 1 14256_ACEOF 14257 14258 cat >>confdefs.h <<_ACEOF 14259#define $ac_tr_lib 1 14260_ACEOF 14261 14262 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 14263echo "${ECHO_T}yes, in $ac_res" >&6 14264 ;; 14265esac 14266 14267 14268if test -n "$LIB_socket"; then 14269 LIBS="$LIB_socket $LIBS" 14270fi 14271 14272 14273 14274 14275 14276echo "$as_me:$LINENO: checking for gethostbyname" >&5 14277echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 14278if test "${ac_cv_funclib_gethostbyname+set}" = set; then 14279 echo $ECHO_N "(cached) $ECHO_C" >&6 14280else 14281 14282if eval "test \"\$ac_cv_func_gethostbyname\" != yes" ; then 14283 ac_save_LIBS="$LIBS" 14284 for ac_lib in "" nsl; do 14285 case "$ac_lib" in 14286 "") ;; 14287 yes) ac_lib="" ;; 14288 no) continue ;; 14289 -l*) ;; 14290 *) ac_lib="-l$ac_lib" ;; 14291 esac 14292 LIBS=" $ac_lib $ac_save_LIBS" 14293 cat >conftest.$ac_ext <<_ACEOF 14294#line $LINENO "configure" 14295#include "confdefs.h" 14296 14297#ifdef F77_DUMMY_MAIN 14298# ifdef __cplusplus 14299 extern "C" 14300# endif 14301 int F77_DUMMY_MAIN() { return 1; } 14302#endif 14303int 14304main () 14305{ 14306gethostbyname() 14307 ; 14308 return 0; 14309} 14310_ACEOF 14311rm -f conftest.$ac_objext conftest$ac_exeext 14312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14313 (eval $ac_link) 2>&5 14314 ac_status=$? 14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14316 (exit $ac_status); } && 14317 { ac_try='test -s conftest$ac_exeext' 14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14319 (eval $ac_try) 2>&5 14320 ac_status=$? 14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14322 (exit $ac_status); }; }; then 14323 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname=$ac_lib; else ac_cv_funclib_gethostbyname=yes; fi";break 14324else 14325 echo "$as_me: failed program was:" >&5 14326cat conftest.$ac_ext >&5 14327fi 14328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14329 done 14330 eval "ac_cv_funclib_gethostbyname=\${ac_cv_funclib_gethostbyname-no}" 14331 LIBS="$ac_save_LIBS" 14332fi 14333 14334fi 14335 14336 14337eval "ac_res=\$ac_cv_funclib_gethostbyname" 14338 14339if false; then 14340 14341for ac_func in gethostbyname 14342do 14343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14344echo "$as_me:$LINENO: checking for $ac_func" >&5 14345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14346if eval "test \"\${$as_ac_var+set}\" = set"; then 14347 echo $ECHO_N "(cached) $ECHO_C" >&6 14348else 14349 cat >conftest.$ac_ext <<_ACEOF 14350#line $LINENO "configure" 14351#include "confdefs.h" 14352/* System header to define __stub macros and hopefully few prototypes, 14353 which can conflict with char $ac_func (); below. */ 14354#include <assert.h> 14355/* Override any gcc2 internal prototype to avoid an error. */ 14356#ifdef __cplusplus 14357extern "C" 14358#endif 14359/* We use char because int might match the return type of a gcc2 14360 builtin and then its argument prototype would still apply. */ 14361char $ac_func (); 14362char (*f) (); 14363 14364#ifdef F77_DUMMY_MAIN 14365# ifdef __cplusplus 14366 extern "C" 14367# endif 14368 int F77_DUMMY_MAIN() { return 1; } 14369#endif 14370int 14371main () 14372{ 14373/* The GNU C library defines this for functions which it implements 14374 to always fail with ENOSYS. Some functions are actually named 14375 something starting with __ and the normal name is an alias. */ 14376#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14377choke me 14378#else 14379f = $ac_func; 14380#endif 14381 14382 ; 14383 return 0; 14384} 14385_ACEOF 14386rm -f conftest.$ac_objext conftest$ac_exeext 14387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14388 (eval $ac_link) 2>&5 14389 ac_status=$? 14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14391 (exit $ac_status); } && 14392 { ac_try='test -s conftest$ac_exeext' 14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14394 (eval $ac_try) 2>&5 14395 ac_status=$? 14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14397 (exit $ac_status); }; }; then 14398 eval "$as_ac_var=yes" 14399else 14400 echo "$as_me: failed program was:" >&5 14401cat conftest.$ac_ext >&5 14402eval "$as_ac_var=no" 14403fi 14404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14405fi 14406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14408if test `eval echo '${'$as_ac_var'}'` = yes; then 14409 cat >>confdefs.h <<_ACEOF 14410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14411_ACEOF 14412 14413fi 14414done 14415 14416fi 14417# gethostbyname 14418eval "ac_tr_func=HAVE_`echo gethostbyname | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14419eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14420eval "LIB_gethostbyname=$ac_res" 14421 14422case "$ac_res" in 14423 yes) 14424 eval "ac_cv_func_gethostbyname=yes" 14425 eval "LIB_gethostbyname=" 14426 cat >>confdefs.h <<_ACEOF 14427#define $ac_tr_func 1 14428_ACEOF 14429 14430 echo "$as_me:$LINENO: result: yes" >&5 14431echo "${ECHO_T}yes" >&6 14432 ;; 14433 no) 14434 eval "ac_cv_func_gethostbyname=no" 14435 eval "LIB_gethostbyname=" 14436 echo "$as_me:$LINENO: result: no" >&5 14437echo "${ECHO_T}no" >&6 14438 ;; 14439 *) 14440 eval "ac_cv_func_gethostbyname=yes" 14441 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14442 cat >>confdefs.h <<_ACEOF 14443#define $ac_tr_func 1 14444_ACEOF 14445 14446 cat >>confdefs.h <<_ACEOF 14447#define $ac_tr_lib 1 14448_ACEOF 14449 14450 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 14451echo "${ECHO_T}yes, in $ac_res" >&6 14452 ;; 14453esac 14454 14455 14456if test -n "$LIB_gethostbyname"; then 14457 LIBS="$LIB_gethostbyname $LIBS" 14458fi 14459 14460 14461 14462 14463 14464echo "$as_me:$LINENO: checking for syslog" >&5 14465echo $ECHO_N "checking for syslog... $ECHO_C" >&6 14466if test "${ac_cv_funclib_syslog+set}" = set; then 14467 echo $ECHO_N "(cached) $ECHO_C" >&6 14468else 14469 14470if eval "test \"\$ac_cv_func_syslog\" != yes" ; then 14471 ac_save_LIBS="$LIBS" 14472 for ac_lib in "" syslog; do 14473 case "$ac_lib" in 14474 "") ;; 14475 yes) ac_lib="" ;; 14476 no) continue ;; 14477 -l*) ;; 14478 *) ac_lib="-l$ac_lib" ;; 14479 esac 14480 LIBS=" $ac_lib $ac_save_LIBS" 14481 cat >conftest.$ac_ext <<_ACEOF 14482#line $LINENO "configure" 14483#include "confdefs.h" 14484 14485#ifdef F77_DUMMY_MAIN 14486# ifdef __cplusplus 14487 extern "C" 14488# endif 14489 int F77_DUMMY_MAIN() { return 1; } 14490#endif 14491int 14492main () 14493{ 14494syslog() 14495 ; 14496 return 0; 14497} 14498_ACEOF 14499rm -f conftest.$ac_objext conftest$ac_exeext 14500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14501 (eval $ac_link) 2>&5 14502 ac_status=$? 14503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14504 (exit $ac_status); } && 14505 { ac_try='test -s conftest$ac_exeext' 14506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14507 (eval $ac_try) 2>&5 14508 ac_status=$? 14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14510 (exit $ac_status); }; }; then 14511 eval "if test -n \"$ac_lib\";then ac_cv_funclib_syslog=$ac_lib; else ac_cv_funclib_syslog=yes; fi";break 14512else 14513 echo "$as_me: failed program was:" >&5 14514cat conftest.$ac_ext >&5 14515fi 14516rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14517 done 14518 eval "ac_cv_funclib_syslog=\${ac_cv_funclib_syslog-no}" 14519 LIBS="$ac_save_LIBS" 14520fi 14521 14522fi 14523 14524 14525eval "ac_res=\$ac_cv_funclib_syslog" 14526 14527if false; then 14528 14529for ac_func in syslog 14530do 14531as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 14532echo "$as_me:$LINENO: checking for $ac_func" >&5 14533echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 14534if eval "test \"\${$as_ac_var+set}\" = set"; then 14535 echo $ECHO_N "(cached) $ECHO_C" >&6 14536else 14537 cat >conftest.$ac_ext <<_ACEOF 14538#line $LINENO "configure" 14539#include "confdefs.h" 14540/* System header to define __stub macros and hopefully few prototypes, 14541 which can conflict with char $ac_func (); below. */ 14542#include <assert.h> 14543/* Override any gcc2 internal prototype to avoid an error. */ 14544#ifdef __cplusplus 14545extern "C" 14546#endif 14547/* We use char because int might match the return type of a gcc2 14548 builtin and then its argument prototype would still apply. */ 14549char $ac_func (); 14550char (*f) (); 14551 14552#ifdef F77_DUMMY_MAIN 14553# ifdef __cplusplus 14554 extern "C" 14555# endif 14556 int F77_DUMMY_MAIN() { return 1; } 14557#endif 14558int 14559main () 14560{ 14561/* The GNU C library defines this for functions which it implements 14562 to always fail with ENOSYS. Some functions are actually named 14563 something starting with __ and the normal name is an alias. */ 14564#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 14565choke me 14566#else 14567f = $ac_func; 14568#endif 14569 14570 ; 14571 return 0; 14572} 14573_ACEOF 14574rm -f conftest.$ac_objext conftest$ac_exeext 14575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14576 (eval $ac_link) 2>&5 14577 ac_status=$? 14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14579 (exit $ac_status); } && 14580 { ac_try='test -s conftest$ac_exeext' 14581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14582 (eval $ac_try) 2>&5 14583 ac_status=$? 14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14585 (exit $ac_status); }; }; then 14586 eval "$as_ac_var=yes" 14587else 14588 echo "$as_me: failed program was:" >&5 14589cat conftest.$ac_ext >&5 14590eval "$as_ac_var=no" 14591fi 14592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14593fi 14594echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 14595echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 14596if test `eval echo '${'$as_ac_var'}'` = yes; then 14597 cat >>confdefs.h <<_ACEOF 14598#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 14599_ACEOF 14600 14601fi 14602done 14603 14604fi 14605# syslog 14606eval "ac_tr_func=HAVE_`echo syslog | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14607eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 14608eval "LIB_syslog=$ac_res" 14609 14610case "$ac_res" in 14611 yes) 14612 eval "ac_cv_func_syslog=yes" 14613 eval "LIB_syslog=" 14614 cat >>confdefs.h <<_ACEOF 14615#define $ac_tr_func 1 14616_ACEOF 14617 14618 echo "$as_me:$LINENO: result: yes" >&5 14619echo "${ECHO_T}yes" >&6 14620 ;; 14621 no) 14622 eval "ac_cv_func_syslog=no" 14623 eval "LIB_syslog=" 14624 echo "$as_me:$LINENO: result: no" >&5 14625echo "${ECHO_T}no" >&6 14626 ;; 14627 *) 14628 eval "ac_cv_func_syslog=yes" 14629 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 14630 cat >>confdefs.h <<_ACEOF 14631#define $ac_tr_func 1 14632_ACEOF 14633 14634 cat >>confdefs.h <<_ACEOF 14635#define $ac_tr_lib 1 14636_ACEOF 14637 14638 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 14639echo "${ECHO_T}yes, in $ac_res" >&6 14640 ;; 14641esac 14642 14643 14644if test -n "$LIB_syslog"; then 14645 LIBS="$LIB_syslog $LIBS" 14646fi 14647 14648 14649 14650 14651# Check whether --with-ipv6 or --without-ipv6 was given. 14652if test "${with_ipv6+set}" = set; then 14653 withval="$with_ipv6" 14654 14655if test "$withval" = "no"; then 14656 ac_cv_lib_ipv6=no 14657fi 14658fi; 14659save_CFLAGS="${CFLAGS}" 14660echo "$as_me:$LINENO: checking for IPv6 stack type" >&5 14661echo $ECHO_N "checking for IPv6 stack type... $ECHO_C" >&6 14662if test "${v6type+set}" = set; then 14663 echo $ECHO_N "(cached) $ECHO_C" >&6 14664else 14665 v6type=unknown 14666v6lib=none 14667 14668for i in v6d toshiba kame inria zeta linux; do 14669 case $i in 14670 v6d) 14671 cat >conftest.$ac_ext <<_ACEOF 14672#line $LINENO "configure" 14673#include "confdefs.h" 14674 14675#include </usr/local/v6/include/sys/types.h> 14676#ifdef __V6D__ 14677yes 14678#endif 14679_ACEOF 14680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14681 egrep "yes" >/dev/null 2>&1; then 14682 v6type=$i; v6lib=v6; 14683 v6libdir=/usr/local/v6/lib; 14684 CFLAGS="-I/usr/local/v6/include $CFLAGS" 14685fi 14686rm -f conftest* 14687 14688 ;; 14689 toshiba) 14690 cat >conftest.$ac_ext <<_ACEOF 14691#line $LINENO "configure" 14692#include "confdefs.h" 14693 14694#include <sys/param.h> 14695#ifdef _TOSHIBA_INET6 14696yes 14697#endif 14698_ACEOF 14699if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14700 egrep "yes" >/dev/null 2>&1; then 14701 v6type=$i; v6lib=inet6; 14702 v6libdir=/usr/local/v6/lib; 14703 CFLAGS="-DINET6 $CFLAGS" 14704fi 14705rm -f conftest* 14706 14707 ;; 14708 kame) 14709 cat >conftest.$ac_ext <<_ACEOF 14710#line $LINENO "configure" 14711#include "confdefs.h" 14712 14713#include <netinet/in.h> 14714#ifdef __KAME__ 14715yes 14716#endif 14717_ACEOF 14718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14719 egrep "yes" >/dev/null 2>&1; then 14720 v6type=$i; v6lib=inet6; 14721 v6libdir=/usr/local/v6/lib; 14722 CFLAGS="-DINET6 $CFLAGS" 14723fi 14724rm -f conftest* 14725 14726 ;; 14727 inria) 14728 cat >conftest.$ac_ext <<_ACEOF 14729#line $LINENO "configure" 14730#include "confdefs.h" 14731 14732#include <netinet/in.h> 14733#ifdef IPV6_INRIA_VERSION 14734yes 14735#endif 14736_ACEOF 14737if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14738 egrep "yes" >/dev/null 2>&1; then 14739 v6type=$i; CFLAGS="-DINET6 $CFLAGS" 14740fi 14741rm -f conftest* 14742 14743 ;; 14744 zeta) 14745 cat >conftest.$ac_ext <<_ACEOF 14746#line $LINENO "configure" 14747#include "confdefs.h" 14748 14749#include <sys/param.h> 14750#ifdef _ZETA_MINAMI_INET6 14751yes 14752#endif 14753_ACEOF 14754if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14755 egrep "yes" >/dev/null 2>&1; then 14756 v6type=$i; v6lib=inet6; 14757 v6libdir=/usr/local/v6/lib; 14758 CFLAGS="-DINET6 $CFLAGS" 14759fi 14760rm -f conftest* 14761 14762 ;; 14763 linux) 14764 if test -d /usr/inet6; then 14765 v6type=$i 14766 v6lib=inet6 14767 v6libdir=/usr/inet6 14768 CFLAGS="-DINET6 $CFLAGS" 14769 fi 14770 ;; 14771 esac 14772 if test "$v6type" != "unknown"; then 14773 break 14774 fi 14775done 14776 14777if test "$v6lib" != "none"; then 14778 for dir in $v6libdir /usr/local/v6/lib /usr/local/lib; do 14779 if test -d $dir -a -f $dir/lib$v6lib.a; then 14780 LIBS="-L$dir -l$v6lib $LIBS" 14781 break 14782 fi 14783 done 14784fi 14785 14786fi 14787echo "$as_me:$LINENO: result: $v6type" >&5 14788echo "${ECHO_T}$v6type" >&6 14789 14790echo "$as_me:$LINENO: checking for IPv6" >&5 14791echo $ECHO_N "checking for IPv6... $ECHO_C" >&6 14792if test "${ac_cv_lib_ipv6+set}" = set; then 14793 echo $ECHO_N "(cached) $ECHO_C" >&6 14794else 14795 14796cat >conftest.$ac_ext <<_ACEOF 14797#line $LINENO "configure" 14798#include "confdefs.h" 14799 14800#ifdef HAVE_SYS_TYPES_H 14801#include <sys/types.h> 14802#endif 14803#ifdef HAVE_SYS_SOCKET_H 14804#include <sys/socket.h> 14805#endif 14806#ifdef HAVE_NETINET_IN_H 14807#include <netinet/in.h> 14808#endif 14809#ifdef HAVE_NETINET_IN6_H 14810#include <netinet/in6.h> 14811#endif 14812 14813#ifdef F77_DUMMY_MAIN 14814# ifdef __cplusplus 14815 extern "C" 14816# endif 14817 int F77_DUMMY_MAIN() { return 1; } 14818#endif 14819int 14820main () 14821{ 14822 14823 struct sockaddr_in6 sin6; 14824 int s; 14825 14826 s = socket(AF_INET6, SOCK_DGRAM, 0); 14827 14828 sin6.sin6_family = AF_INET6; 14829 sin6.sin6_port = htons(17); 14830 sin6.sin6_addr = in6addr_any; 14831 bind(s, (struct sockaddr *)&sin6, sizeof(sin6)); 14832 14833 ; 14834 return 0; 14835} 14836_ACEOF 14837rm -f conftest.$ac_objext conftest$ac_exeext 14838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14839 (eval $ac_link) 2>&5 14840 ac_status=$? 14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14842 (exit $ac_status); } && 14843 { ac_try='test -s conftest$ac_exeext' 14844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14845 (eval $ac_try) 2>&5 14846 ac_status=$? 14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14848 (exit $ac_status); }; }; then 14849 ac_cv_lib_ipv6=yes 14850else 14851 echo "$as_me: failed program was:" >&5 14852cat conftest.$ac_ext >&5 14853ac_cv_lib_ipv6=no 14854fi 14855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14856fi 14857echo "$as_me:$LINENO: result: $ac_cv_lib_ipv6" >&5 14858echo "${ECHO_T}$ac_cv_lib_ipv6" >&6 14859if test "$ac_cv_lib_ipv6" = yes; then 14860 14861cat >>confdefs.h <<\_ACEOF 14862#define HAVE_IPV6 1 14863_ACEOF 14864 14865else 14866 CFLAGS="${save_CFLAGS}" 14867fi 14868 14869if test "$ac_cv_lib_ipv6" = yes; then 14870 echo "$as_me:$LINENO: checking for in6addr_loopback" >&5 14871echo $ECHO_N "checking for in6addr_loopback... $ECHO_C" >&6 14872if test "${ac_cv_var_in6addr_loopback+set}" = set; then 14873 echo $ECHO_N "(cached) $ECHO_C" >&6 14874else 14875 14876 cat >conftest.$ac_ext <<_ACEOF 14877#line $LINENO "configure" 14878#include "confdefs.h" 14879 14880#ifdef HAVE_SYS_TYPES_H 14881#include <sys/types.h> 14882#endif 14883#ifdef HAVE_SYS_SOCKET_H 14884#include <sys/socket.h> 14885#endif 14886#ifdef HAVE_NETINET_IN_H 14887#include <netinet/in.h> 14888#endif 14889#ifdef HAVE_NETINET_IN6_H 14890#include <netinet/in6.h> 14891#endif 14892#ifdef F77_DUMMY_MAIN 14893# ifdef __cplusplus 14894 extern "C" 14895# endif 14896 int F77_DUMMY_MAIN() { return 1; } 14897#endif 14898int 14899main () 14900{ 14901 14902struct sockaddr_in6 sin6; 14903sin6.sin6_addr = in6addr_loopback; 14904 14905 ; 14906 return 0; 14907} 14908_ACEOF 14909rm -f conftest.$ac_objext conftest$ac_exeext 14910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14911 (eval $ac_link) 2>&5 14912 ac_status=$? 14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14914 (exit $ac_status); } && 14915 { ac_try='test -s conftest$ac_exeext' 14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14917 (eval $ac_try) 2>&5 14918 ac_status=$? 14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14920 (exit $ac_status); }; }; then 14921 ac_cv_var_in6addr_loopback=yes 14922else 14923 echo "$as_me: failed program was:" >&5 14924cat conftest.$ac_ext >&5 14925ac_cv_var_in6addr_loopback=no 14926fi 14927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14928fi 14929echo "$as_me:$LINENO: result: $ac_cv_var_in6addr_loopback" >&5 14930echo "${ECHO_T}$ac_cv_var_in6addr_loopback" >&6 14931 if test "$ac_cv_var_in6addr_loopback" = yes; then 14932 14933cat >>confdefs.h <<\_ACEOF 14934#define HAVE_IN6ADDR_LOOPBACK 1 14935_ACEOF 14936 14937 fi 14938fi 14939 14940 14941 14942 14943 14944 14945echo "$as_me:$LINENO: checking for gethostbyname2" >&5 14946echo $ECHO_N "checking for gethostbyname2... $ECHO_C" >&6 14947if test "${ac_cv_funclib_gethostbyname2+set}" = set; then 14948 echo $ECHO_N "(cached) $ECHO_C" >&6 14949else 14950 14951if eval "test \"\$ac_cv_func_gethostbyname2\" != yes" ; then 14952 ac_save_LIBS="$LIBS" 14953 for ac_lib in "" inet6 ip6; do 14954 case "$ac_lib" in 14955 "") ;; 14956 yes) ac_lib="" ;; 14957 no) continue ;; 14958 -l*) ;; 14959 *) ac_lib="-l$ac_lib" ;; 14960 esac 14961 LIBS=" $ac_lib $ac_save_LIBS" 14962 cat >conftest.$ac_ext <<_ACEOF 14963#line $LINENO "configure" 14964#include "confdefs.h" 14965 14966#ifdef F77_DUMMY_MAIN 14967# ifdef __cplusplus 14968 extern "C" 14969# endif 14970 int F77_DUMMY_MAIN() { return 1; } 14971#endif 14972int 14973main () 14974{ 14975gethostbyname2() 14976 ; 14977 return 0; 14978} 14979_ACEOF 14980rm -f conftest.$ac_objext conftest$ac_exeext 14981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14982 (eval $ac_link) 2>&5 14983 ac_status=$? 14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14985 (exit $ac_status); } && 14986 { ac_try='test -s conftest$ac_exeext' 14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14988 (eval $ac_try) 2>&5 14989 ac_status=$? 14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14991 (exit $ac_status); }; }; then 14992 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gethostbyname2=$ac_lib; else ac_cv_funclib_gethostbyname2=yes; fi";break 14993else 14994 echo "$as_me: failed program was:" >&5 14995cat conftest.$ac_ext >&5 14996fi 14997rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 14998 done 14999 eval "ac_cv_funclib_gethostbyname2=\${ac_cv_funclib_gethostbyname2-no}" 15000 LIBS="$ac_save_LIBS" 15001fi 15002 15003fi 15004 15005 15006eval "ac_res=\$ac_cv_funclib_gethostbyname2" 15007 15008if false; then 15009 15010for ac_func in gethostbyname2 15011do 15012as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15013echo "$as_me:$LINENO: checking for $ac_func" >&5 15014echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15015if eval "test \"\${$as_ac_var+set}\" = set"; then 15016 echo $ECHO_N "(cached) $ECHO_C" >&6 15017else 15018 cat >conftest.$ac_ext <<_ACEOF 15019#line $LINENO "configure" 15020#include "confdefs.h" 15021/* System header to define __stub macros and hopefully few prototypes, 15022 which can conflict with char $ac_func (); below. */ 15023#include <assert.h> 15024/* Override any gcc2 internal prototype to avoid an error. */ 15025#ifdef __cplusplus 15026extern "C" 15027#endif 15028/* We use char because int might match the return type of a gcc2 15029 builtin and then its argument prototype would still apply. */ 15030char $ac_func (); 15031char (*f) (); 15032 15033#ifdef F77_DUMMY_MAIN 15034# ifdef __cplusplus 15035 extern "C" 15036# endif 15037 int F77_DUMMY_MAIN() { return 1; } 15038#endif 15039int 15040main () 15041{ 15042/* The GNU C library defines this for functions which it implements 15043 to always fail with ENOSYS. Some functions are actually named 15044 something starting with __ and the normal name is an alias. */ 15045#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15046choke me 15047#else 15048f = $ac_func; 15049#endif 15050 15051 ; 15052 return 0; 15053} 15054_ACEOF 15055rm -f conftest.$ac_objext conftest$ac_exeext 15056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15057 (eval $ac_link) 2>&5 15058 ac_status=$? 15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15060 (exit $ac_status); } && 15061 { ac_try='test -s conftest$ac_exeext' 15062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15063 (eval $ac_try) 2>&5 15064 ac_status=$? 15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15066 (exit $ac_status); }; }; then 15067 eval "$as_ac_var=yes" 15068else 15069 echo "$as_me: failed program was:" >&5 15070cat conftest.$ac_ext >&5 15071eval "$as_ac_var=no" 15072fi 15073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15074fi 15075echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15076echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15077if test `eval echo '${'$as_ac_var'}'` = yes; then 15078 cat >>confdefs.h <<_ACEOF 15079#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15080_ACEOF 15081 15082fi 15083done 15084 15085fi 15086# gethostbyname2 15087eval "ac_tr_func=HAVE_`echo gethostbyname2 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15088eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15089eval "LIB_gethostbyname2=$ac_res" 15090 15091case "$ac_res" in 15092 yes) 15093 eval "ac_cv_func_gethostbyname2=yes" 15094 eval "LIB_gethostbyname2=" 15095 cat >>confdefs.h <<_ACEOF 15096#define $ac_tr_func 1 15097_ACEOF 15098 15099 echo "$as_me:$LINENO: result: yes" >&5 15100echo "${ECHO_T}yes" >&6 15101 ;; 15102 no) 15103 eval "ac_cv_func_gethostbyname2=no" 15104 eval "LIB_gethostbyname2=" 15105 echo "$as_me:$LINENO: result: no" >&5 15106echo "${ECHO_T}no" >&6 15107 ;; 15108 *) 15109 eval "ac_cv_func_gethostbyname2=yes" 15110 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15111 cat >>confdefs.h <<_ACEOF 15112#define $ac_tr_func 1 15113_ACEOF 15114 15115 cat >>confdefs.h <<_ACEOF 15116#define $ac_tr_lib 1 15117_ACEOF 15118 15119 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15120echo "${ECHO_T}yes, in $ac_res" >&6 15121 ;; 15122esac 15123 15124 15125if test -n "$LIB_gethostbyname2"; then 15126 LIBS="$LIB_gethostbyname2 $LIBS" 15127fi 15128 15129 15130 15131 15132 15133 15134echo "$as_me:$LINENO: checking for res_search" >&5 15135echo $ECHO_N "checking for res_search... $ECHO_C" >&6 15136if test "${ac_cv_funclib_res_search+set}" = set; then 15137 echo $ECHO_N "(cached) $ECHO_C" >&6 15138else 15139 15140if eval "test \"\$ac_cv_func_res_search\" != yes" ; then 15141 ac_save_LIBS="$LIBS" 15142 for ac_lib in "" resolv; do 15143 case "$ac_lib" in 15144 "") ;; 15145 yes) ac_lib="" ;; 15146 no) continue ;; 15147 -l*) ;; 15148 *) ac_lib="-l$ac_lib" ;; 15149 esac 15150 LIBS=" $ac_lib $ac_save_LIBS" 15151 cat >conftest.$ac_ext <<_ACEOF 15152#line $LINENO "configure" 15153#include "confdefs.h" 15154 15155#include <stdio.h> 15156#ifdef HAVE_SYS_TYPES_H 15157#include <sys/types.h> 15158#endif 15159#ifdef HAVE_NETINET_IN_H 15160#include <netinet/in.h> 15161#endif 15162#ifdef HAVE_ARPA_NAMESER_H 15163#include <arpa/nameser.h> 15164#endif 15165#ifdef HAVE_RESOLV_H 15166#include <resolv.h> 15167#endif 15168 15169#ifdef F77_DUMMY_MAIN 15170# ifdef __cplusplus 15171 extern "C" 15172# endif 15173 int F77_DUMMY_MAIN() { return 1; } 15174#endif 15175int 15176main () 15177{ 15178res_search(0,0,0,0,0) 15179 ; 15180 return 0; 15181} 15182_ACEOF 15183rm -f conftest.$ac_objext conftest$ac_exeext 15184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15185 (eval $ac_link) 2>&5 15186 ac_status=$? 15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15188 (exit $ac_status); } && 15189 { ac_try='test -s conftest$ac_exeext' 15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15191 (eval $ac_try) 2>&5 15192 ac_status=$? 15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15194 (exit $ac_status); }; }; then 15195 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_search=$ac_lib; else ac_cv_funclib_res_search=yes; fi";break 15196else 15197 echo "$as_me: failed program was:" >&5 15198cat conftest.$ac_ext >&5 15199fi 15200rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15201 done 15202 eval "ac_cv_funclib_res_search=\${ac_cv_funclib_res_search-no}" 15203 LIBS="$ac_save_LIBS" 15204fi 15205 15206fi 15207 15208 15209eval "ac_res=\$ac_cv_funclib_res_search" 15210 15211if false; then 15212 15213for ac_func in res_search 15214do 15215as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15216echo "$as_me:$LINENO: checking for $ac_func" >&5 15217echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15218if eval "test \"\${$as_ac_var+set}\" = set"; then 15219 echo $ECHO_N "(cached) $ECHO_C" >&6 15220else 15221 cat >conftest.$ac_ext <<_ACEOF 15222#line $LINENO "configure" 15223#include "confdefs.h" 15224/* System header to define __stub macros and hopefully few prototypes, 15225 which can conflict with char $ac_func (); below. */ 15226#include <assert.h> 15227/* Override any gcc2 internal prototype to avoid an error. */ 15228#ifdef __cplusplus 15229extern "C" 15230#endif 15231/* We use char because int might match the return type of a gcc2 15232 builtin and then its argument prototype would still apply. */ 15233char $ac_func (); 15234char (*f) (); 15235 15236#ifdef F77_DUMMY_MAIN 15237# ifdef __cplusplus 15238 extern "C" 15239# endif 15240 int F77_DUMMY_MAIN() { return 1; } 15241#endif 15242int 15243main () 15244{ 15245/* The GNU C library defines this for functions which it implements 15246 to always fail with ENOSYS. Some functions are actually named 15247 something starting with __ and the normal name is an alias. */ 15248#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15249choke me 15250#else 15251f = $ac_func; 15252#endif 15253 15254 ; 15255 return 0; 15256} 15257_ACEOF 15258rm -f conftest.$ac_objext conftest$ac_exeext 15259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15260 (eval $ac_link) 2>&5 15261 ac_status=$? 15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15263 (exit $ac_status); } && 15264 { ac_try='test -s conftest$ac_exeext' 15265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15266 (eval $ac_try) 2>&5 15267 ac_status=$? 15268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15269 (exit $ac_status); }; }; then 15270 eval "$as_ac_var=yes" 15271else 15272 echo "$as_me: failed program was:" >&5 15273cat conftest.$ac_ext >&5 15274eval "$as_ac_var=no" 15275fi 15276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15277fi 15278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15279echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15280if test `eval echo '${'$as_ac_var'}'` = yes; then 15281 cat >>confdefs.h <<_ACEOF 15282#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15283_ACEOF 15284 15285fi 15286done 15287 15288fi 15289# res_search 15290eval "ac_tr_func=HAVE_`echo res_search | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15291eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15292eval "LIB_res_search=$ac_res" 15293 15294case "$ac_res" in 15295 yes) 15296 eval "ac_cv_func_res_search=yes" 15297 eval "LIB_res_search=" 15298 cat >>confdefs.h <<_ACEOF 15299#define $ac_tr_func 1 15300_ACEOF 15301 15302 echo "$as_me:$LINENO: result: yes" >&5 15303echo "${ECHO_T}yes" >&6 15304 ;; 15305 no) 15306 eval "ac_cv_func_res_search=no" 15307 eval "LIB_res_search=" 15308 echo "$as_me:$LINENO: result: no" >&5 15309echo "${ECHO_T}no" >&6 15310 ;; 15311 *) 15312 eval "ac_cv_func_res_search=yes" 15313 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15314 cat >>confdefs.h <<_ACEOF 15315#define $ac_tr_func 1 15316_ACEOF 15317 15318 cat >>confdefs.h <<_ACEOF 15319#define $ac_tr_lib 1 15320_ACEOF 15321 15322 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15323echo "${ECHO_T}yes, in $ac_res" >&6 15324 ;; 15325esac 15326 15327 15328if test -n "$LIB_res_search"; then 15329 LIBS="$LIB_res_search $LIBS" 15330fi 15331 15332 15333 15334 15335 15336 15337echo "$as_me:$LINENO: checking for res_nsearch" >&5 15338echo $ECHO_N "checking for res_nsearch... $ECHO_C" >&6 15339if test "${ac_cv_funclib_res_nsearch+set}" = set; then 15340 echo $ECHO_N "(cached) $ECHO_C" >&6 15341else 15342 15343if eval "test \"\$ac_cv_func_res_nsearch\" != yes" ; then 15344 ac_save_LIBS="$LIBS" 15345 for ac_lib in "" resolv; do 15346 case "$ac_lib" in 15347 "") ;; 15348 yes) ac_lib="" ;; 15349 no) continue ;; 15350 -l*) ;; 15351 *) ac_lib="-l$ac_lib" ;; 15352 esac 15353 LIBS=" $ac_lib $ac_save_LIBS" 15354 cat >conftest.$ac_ext <<_ACEOF 15355#line $LINENO "configure" 15356#include "confdefs.h" 15357 15358#include <stdio.h> 15359#ifdef HAVE_SYS_TYPES_H 15360#include <sys/types.h> 15361#endif 15362#ifdef HAVE_NETINET_IN_H 15363#include <netinet/in.h> 15364#endif 15365#ifdef HAVE_ARPA_NAMESER_H 15366#include <arpa/nameser.h> 15367#endif 15368#ifdef HAVE_RESOLV_H 15369#include <resolv.h> 15370#endif 15371 15372#ifdef F77_DUMMY_MAIN 15373# ifdef __cplusplus 15374 extern "C" 15375# endif 15376 int F77_DUMMY_MAIN() { return 1; } 15377#endif 15378int 15379main () 15380{
|
15392res_nsearch(0,0,0,0,0)
| 15381res_nsearch(0,0,0,0,0,0)
|
15393 ; 15394 return 0; 15395} 15396_ACEOF 15397rm -f conftest.$ac_objext conftest$ac_exeext 15398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15399 (eval $ac_link) 2>&5 15400 ac_status=$? 15401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15402 (exit $ac_status); } && 15403 { ac_try='test -s conftest$ac_exeext' 15404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15405 (eval $ac_try) 2>&5 15406 ac_status=$? 15407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15408 (exit $ac_status); }; }; then 15409 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break 15410else 15411 echo "$as_me: failed program was:" >&5 15412cat conftest.$ac_ext >&5 15413fi 15414rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15415 done 15416 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}" 15417 LIBS="$ac_save_LIBS" 15418fi 15419 15420fi 15421 15422 15423eval "ac_res=\$ac_cv_funclib_res_nsearch" 15424 15425if false; then 15426 15427for ac_func in res_nsearch 15428do 15429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15430echo "$as_me:$LINENO: checking for $ac_func" >&5 15431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15432if eval "test \"\${$as_ac_var+set}\" = set"; then 15433 echo $ECHO_N "(cached) $ECHO_C" >&6 15434else 15435 cat >conftest.$ac_ext <<_ACEOF 15436#line $LINENO "configure" 15437#include "confdefs.h" 15438/* System header to define __stub macros and hopefully few prototypes, 15439 which can conflict with char $ac_func (); below. */ 15440#include <assert.h> 15441/* Override any gcc2 internal prototype to avoid an error. */ 15442#ifdef __cplusplus 15443extern "C" 15444#endif 15445/* We use char because int might match the return type of a gcc2 15446 builtin and then its argument prototype would still apply. */ 15447char $ac_func (); 15448char (*f) (); 15449 15450#ifdef F77_DUMMY_MAIN 15451# ifdef __cplusplus 15452 extern "C" 15453# endif 15454 int F77_DUMMY_MAIN() { return 1; } 15455#endif 15456int 15457main () 15458{ 15459/* The GNU C library defines this for functions which it implements 15460 to always fail with ENOSYS. Some functions are actually named 15461 something starting with __ and the normal name is an alias. */ 15462#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15463choke me 15464#else 15465f = $ac_func; 15466#endif 15467 15468 ; 15469 return 0; 15470} 15471_ACEOF 15472rm -f conftest.$ac_objext conftest$ac_exeext 15473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15474 (eval $ac_link) 2>&5 15475 ac_status=$? 15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15477 (exit $ac_status); } && 15478 { ac_try='test -s conftest$ac_exeext' 15479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15480 (eval $ac_try) 2>&5 15481 ac_status=$? 15482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15483 (exit $ac_status); }; }; then 15484 eval "$as_ac_var=yes" 15485else 15486 echo "$as_me: failed program was:" >&5 15487cat conftest.$ac_ext >&5 15488eval "$as_ac_var=no" 15489fi 15490rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15491fi 15492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15493echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15494if test `eval echo '${'$as_ac_var'}'` = yes; then 15495 cat >>confdefs.h <<_ACEOF 15496#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15497_ACEOF 15498 15499fi 15500done 15501 15502fi 15503# res_nsearch 15504eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15505eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15506eval "LIB_res_nsearch=$ac_res" 15507 15508case "$ac_res" in 15509 yes) 15510 eval "ac_cv_func_res_nsearch=yes" 15511 eval "LIB_res_nsearch=" 15512 cat >>confdefs.h <<_ACEOF 15513#define $ac_tr_func 1 15514_ACEOF 15515 15516 echo "$as_me:$LINENO: result: yes" >&5 15517echo "${ECHO_T}yes" >&6 15518 ;; 15519 no) 15520 eval "ac_cv_func_res_nsearch=no" 15521 eval "LIB_res_nsearch=" 15522 echo "$as_me:$LINENO: result: no" >&5 15523echo "${ECHO_T}no" >&6 15524 ;; 15525 *) 15526 eval "ac_cv_func_res_nsearch=yes" 15527 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15528 cat >>confdefs.h <<_ACEOF 15529#define $ac_tr_func 1 15530_ACEOF 15531 15532 cat >>confdefs.h <<_ACEOF 15533#define $ac_tr_lib 1 15534_ACEOF 15535 15536 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15537echo "${ECHO_T}yes, in $ac_res" >&6 15538 ;; 15539esac 15540 15541 15542if test -n "$LIB_res_nsearch"; then 15543 LIBS="$LIB_res_nsearch $LIBS" 15544fi 15545 15546 15547 15548 15549 15550 15551echo "$as_me:$LINENO: checking for dn_expand" >&5 15552echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 15553if test "${ac_cv_funclib_dn_expand+set}" = set; then 15554 echo $ECHO_N "(cached) $ECHO_C" >&6 15555else 15556 15557if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 15558 ac_save_LIBS="$LIBS" 15559 for ac_lib in "" resolv; do 15560 case "$ac_lib" in 15561 "") ;; 15562 yes) ac_lib="" ;; 15563 no) continue ;; 15564 -l*) ;; 15565 *) ac_lib="-l$ac_lib" ;; 15566 esac 15567 LIBS=" $ac_lib $ac_save_LIBS" 15568 cat >conftest.$ac_ext <<_ACEOF 15569#line $LINENO "configure" 15570#include "confdefs.h" 15571 15572#include <stdio.h> 15573#ifdef HAVE_SYS_TYPES_H 15574#include <sys/types.h> 15575#endif 15576#ifdef HAVE_NETINET_IN_H 15577#include <netinet/in.h> 15578#endif 15579#ifdef HAVE_ARPA_NAMESER_H 15580#include <arpa/nameser.h> 15581#endif 15582#ifdef HAVE_RESOLV_H 15583#include <resolv.h> 15584#endif 15585 15586#ifdef F77_DUMMY_MAIN 15587# ifdef __cplusplus 15588 extern "C" 15589# endif 15590 int F77_DUMMY_MAIN() { return 1; } 15591#endif 15592int 15593main () 15594{ 15595dn_expand(0,0,0,0,0) 15596 ; 15597 return 0; 15598} 15599_ACEOF 15600rm -f conftest.$ac_objext conftest$ac_exeext 15601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15602 (eval $ac_link) 2>&5 15603 ac_status=$? 15604 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15605 (exit $ac_status); } && 15606 { ac_try='test -s conftest$ac_exeext' 15607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15608 (eval $ac_try) 2>&5 15609 ac_status=$? 15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15611 (exit $ac_status); }; }; then 15612 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 15613else 15614 echo "$as_me: failed program was:" >&5 15615cat conftest.$ac_ext >&5 15616fi 15617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15618 done 15619 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 15620 LIBS="$ac_save_LIBS" 15621fi 15622 15623fi 15624 15625 15626eval "ac_res=\$ac_cv_funclib_dn_expand" 15627 15628if false; then 15629 15630for ac_func in dn_expand 15631do 15632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15633echo "$as_me:$LINENO: checking for $ac_func" >&5 15634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15635if eval "test \"\${$as_ac_var+set}\" = set"; then 15636 echo $ECHO_N "(cached) $ECHO_C" >&6 15637else 15638 cat >conftest.$ac_ext <<_ACEOF 15639#line $LINENO "configure" 15640#include "confdefs.h" 15641/* System header to define __stub macros and hopefully few prototypes, 15642 which can conflict with char $ac_func (); below. */ 15643#include <assert.h> 15644/* Override any gcc2 internal prototype to avoid an error. */ 15645#ifdef __cplusplus 15646extern "C" 15647#endif 15648/* We use char because int might match the return type of a gcc2 15649 builtin and then its argument prototype would still apply. */ 15650char $ac_func (); 15651char (*f) (); 15652 15653#ifdef F77_DUMMY_MAIN 15654# ifdef __cplusplus 15655 extern "C" 15656# endif 15657 int F77_DUMMY_MAIN() { return 1; } 15658#endif 15659int 15660main () 15661{ 15662/* The GNU C library defines this for functions which it implements 15663 to always fail with ENOSYS. Some functions are actually named 15664 something starting with __ and the normal name is an alias. */ 15665#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15666choke me 15667#else 15668f = $ac_func; 15669#endif 15670 15671 ; 15672 return 0; 15673} 15674_ACEOF 15675rm -f conftest.$ac_objext conftest$ac_exeext 15676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15677 (eval $ac_link) 2>&5 15678 ac_status=$? 15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15680 (exit $ac_status); } && 15681 { ac_try='test -s conftest$ac_exeext' 15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15683 (eval $ac_try) 2>&5 15684 ac_status=$? 15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15686 (exit $ac_status); }; }; then 15687 eval "$as_ac_var=yes" 15688else 15689 echo "$as_me: failed program was:" >&5 15690cat conftest.$ac_ext >&5 15691eval "$as_ac_var=no" 15692fi 15693rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15694fi 15695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15696echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15697if test `eval echo '${'$as_ac_var'}'` = yes; then 15698 cat >>confdefs.h <<_ACEOF 15699#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15700_ACEOF 15701 15702fi 15703done 15704 15705fi 15706# dn_expand 15707eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15708eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15709eval "LIB_dn_expand=$ac_res" 15710 15711case "$ac_res" in 15712 yes) 15713 eval "ac_cv_func_dn_expand=yes" 15714 eval "LIB_dn_expand=" 15715 cat >>confdefs.h <<_ACEOF 15716#define $ac_tr_func 1 15717_ACEOF 15718 15719 echo "$as_me:$LINENO: result: yes" >&5 15720echo "${ECHO_T}yes" >&6 15721 ;; 15722 no) 15723 eval "ac_cv_func_dn_expand=no" 15724 eval "LIB_dn_expand=" 15725 echo "$as_me:$LINENO: result: no" >&5 15726echo "${ECHO_T}no" >&6 15727 ;; 15728 *) 15729 eval "ac_cv_func_dn_expand=yes" 15730 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15731 cat >>confdefs.h <<_ACEOF 15732#define $ac_tr_func 1 15733_ACEOF 15734 15735 cat >>confdefs.h <<_ACEOF 15736#define $ac_tr_lib 1 15737_ACEOF 15738 15739 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15740echo "${ECHO_T}yes, in $ac_res" >&6 15741 ;; 15742esac 15743 15744 15745if test -n "$LIB_dn_expand"; then 15746 LIBS="$LIB_dn_expand $LIBS" 15747fi 15748 15749 15750 15751echo "$as_me:$LINENO: checking for _res" >&5 15752echo $ECHO_N "checking for _res... $ECHO_C" >&6 15753if test "${ac_cv_var__res+set}" = set; then 15754 echo $ECHO_N "(cached) $ECHO_C" >&6 15755else 15756
| 15382 ; 15383 return 0; 15384} 15385_ACEOF 15386rm -f conftest.$ac_objext conftest$ac_exeext 15387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15388 (eval $ac_link) 2>&5 15389 ac_status=$? 15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15391 (exit $ac_status); } && 15392 { ac_try='test -s conftest$ac_exeext' 15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15394 (eval $ac_try) 2>&5 15395 ac_status=$? 15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15397 (exit $ac_status); }; }; then 15398 eval "if test -n \"$ac_lib\";then ac_cv_funclib_res_nsearch=$ac_lib; else ac_cv_funclib_res_nsearch=yes; fi";break 15399else 15400 echo "$as_me: failed program was:" >&5 15401cat conftest.$ac_ext >&5 15402fi 15403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15404 done 15405 eval "ac_cv_funclib_res_nsearch=\${ac_cv_funclib_res_nsearch-no}" 15406 LIBS="$ac_save_LIBS" 15407fi 15408 15409fi 15410 15411 15412eval "ac_res=\$ac_cv_funclib_res_nsearch" 15413 15414if false; then 15415 15416for ac_func in res_nsearch 15417do 15418as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15419echo "$as_me:$LINENO: checking for $ac_func" >&5 15420echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15421if eval "test \"\${$as_ac_var+set}\" = set"; then 15422 echo $ECHO_N "(cached) $ECHO_C" >&6 15423else 15424 cat >conftest.$ac_ext <<_ACEOF 15425#line $LINENO "configure" 15426#include "confdefs.h" 15427/* System header to define __stub macros and hopefully few prototypes, 15428 which can conflict with char $ac_func (); below. */ 15429#include <assert.h> 15430/* Override any gcc2 internal prototype to avoid an error. */ 15431#ifdef __cplusplus 15432extern "C" 15433#endif 15434/* We use char because int might match the return type of a gcc2 15435 builtin and then its argument prototype would still apply. */ 15436char $ac_func (); 15437char (*f) (); 15438 15439#ifdef F77_DUMMY_MAIN 15440# ifdef __cplusplus 15441 extern "C" 15442# endif 15443 int F77_DUMMY_MAIN() { return 1; } 15444#endif 15445int 15446main () 15447{ 15448/* The GNU C library defines this for functions which it implements 15449 to always fail with ENOSYS. Some functions are actually named 15450 something starting with __ and the normal name is an alias. */ 15451#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15452choke me 15453#else 15454f = $ac_func; 15455#endif 15456 15457 ; 15458 return 0; 15459} 15460_ACEOF 15461rm -f conftest.$ac_objext conftest$ac_exeext 15462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15463 (eval $ac_link) 2>&5 15464 ac_status=$? 15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15466 (exit $ac_status); } && 15467 { ac_try='test -s conftest$ac_exeext' 15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15469 (eval $ac_try) 2>&5 15470 ac_status=$? 15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15472 (exit $ac_status); }; }; then 15473 eval "$as_ac_var=yes" 15474else 15475 echo "$as_me: failed program was:" >&5 15476cat conftest.$ac_ext >&5 15477eval "$as_ac_var=no" 15478fi 15479rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15480fi 15481echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15482echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15483if test `eval echo '${'$as_ac_var'}'` = yes; then 15484 cat >>confdefs.h <<_ACEOF 15485#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15486_ACEOF 15487 15488fi 15489done 15490 15491fi 15492# res_nsearch 15493eval "ac_tr_func=HAVE_`echo res_nsearch | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15494eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15495eval "LIB_res_nsearch=$ac_res" 15496 15497case "$ac_res" in 15498 yes) 15499 eval "ac_cv_func_res_nsearch=yes" 15500 eval "LIB_res_nsearch=" 15501 cat >>confdefs.h <<_ACEOF 15502#define $ac_tr_func 1 15503_ACEOF 15504 15505 echo "$as_me:$LINENO: result: yes" >&5 15506echo "${ECHO_T}yes" >&6 15507 ;; 15508 no) 15509 eval "ac_cv_func_res_nsearch=no" 15510 eval "LIB_res_nsearch=" 15511 echo "$as_me:$LINENO: result: no" >&5 15512echo "${ECHO_T}no" >&6 15513 ;; 15514 *) 15515 eval "ac_cv_func_res_nsearch=yes" 15516 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15517 cat >>confdefs.h <<_ACEOF 15518#define $ac_tr_func 1 15519_ACEOF 15520 15521 cat >>confdefs.h <<_ACEOF 15522#define $ac_tr_lib 1 15523_ACEOF 15524 15525 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15526echo "${ECHO_T}yes, in $ac_res" >&6 15527 ;; 15528esac 15529 15530 15531if test -n "$LIB_res_nsearch"; then 15532 LIBS="$LIB_res_nsearch $LIBS" 15533fi 15534 15535 15536 15537 15538 15539 15540echo "$as_me:$LINENO: checking for dn_expand" >&5 15541echo $ECHO_N "checking for dn_expand... $ECHO_C" >&6 15542if test "${ac_cv_funclib_dn_expand+set}" = set; then 15543 echo $ECHO_N "(cached) $ECHO_C" >&6 15544else 15545 15546if eval "test \"\$ac_cv_func_dn_expand\" != yes" ; then 15547 ac_save_LIBS="$LIBS" 15548 for ac_lib in "" resolv; do 15549 case "$ac_lib" in 15550 "") ;; 15551 yes) ac_lib="" ;; 15552 no) continue ;; 15553 -l*) ;; 15554 *) ac_lib="-l$ac_lib" ;; 15555 esac 15556 LIBS=" $ac_lib $ac_save_LIBS" 15557 cat >conftest.$ac_ext <<_ACEOF 15558#line $LINENO "configure" 15559#include "confdefs.h" 15560 15561#include <stdio.h> 15562#ifdef HAVE_SYS_TYPES_H 15563#include <sys/types.h> 15564#endif 15565#ifdef HAVE_NETINET_IN_H 15566#include <netinet/in.h> 15567#endif 15568#ifdef HAVE_ARPA_NAMESER_H 15569#include <arpa/nameser.h> 15570#endif 15571#ifdef HAVE_RESOLV_H 15572#include <resolv.h> 15573#endif 15574 15575#ifdef F77_DUMMY_MAIN 15576# ifdef __cplusplus 15577 extern "C" 15578# endif 15579 int F77_DUMMY_MAIN() { return 1; } 15580#endif 15581int 15582main () 15583{ 15584dn_expand(0,0,0,0,0) 15585 ; 15586 return 0; 15587} 15588_ACEOF 15589rm -f conftest.$ac_objext conftest$ac_exeext 15590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15591 (eval $ac_link) 2>&5 15592 ac_status=$? 15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15594 (exit $ac_status); } && 15595 { ac_try='test -s conftest$ac_exeext' 15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15597 (eval $ac_try) 2>&5 15598 ac_status=$? 15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15600 (exit $ac_status); }; }; then 15601 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dn_expand=$ac_lib; else ac_cv_funclib_dn_expand=yes; fi";break 15602else 15603 echo "$as_me: failed program was:" >&5 15604cat conftest.$ac_ext >&5 15605fi 15606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15607 done 15608 eval "ac_cv_funclib_dn_expand=\${ac_cv_funclib_dn_expand-no}" 15609 LIBS="$ac_save_LIBS" 15610fi 15611 15612fi 15613 15614 15615eval "ac_res=\$ac_cv_funclib_dn_expand" 15616 15617if false; then 15618 15619for ac_func in dn_expand 15620do 15621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 15622echo "$as_me:$LINENO: checking for $ac_func" >&5 15623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 15624if eval "test \"\${$as_ac_var+set}\" = set"; then 15625 echo $ECHO_N "(cached) $ECHO_C" >&6 15626else 15627 cat >conftest.$ac_ext <<_ACEOF 15628#line $LINENO "configure" 15629#include "confdefs.h" 15630/* System header to define __stub macros and hopefully few prototypes, 15631 which can conflict with char $ac_func (); below. */ 15632#include <assert.h> 15633/* Override any gcc2 internal prototype to avoid an error. */ 15634#ifdef __cplusplus 15635extern "C" 15636#endif 15637/* We use char because int might match the return type of a gcc2 15638 builtin and then its argument prototype would still apply. */ 15639char $ac_func (); 15640char (*f) (); 15641 15642#ifdef F77_DUMMY_MAIN 15643# ifdef __cplusplus 15644 extern "C" 15645# endif 15646 int F77_DUMMY_MAIN() { return 1; } 15647#endif 15648int 15649main () 15650{ 15651/* The GNU C library defines this for functions which it implements 15652 to always fail with ENOSYS. Some functions are actually named 15653 something starting with __ and the normal name is an alias. */ 15654#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 15655choke me 15656#else 15657f = $ac_func; 15658#endif 15659 15660 ; 15661 return 0; 15662} 15663_ACEOF 15664rm -f conftest.$ac_objext conftest$ac_exeext 15665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15666 (eval $ac_link) 2>&5 15667 ac_status=$? 15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15669 (exit $ac_status); } && 15670 { ac_try='test -s conftest$ac_exeext' 15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15672 (eval $ac_try) 2>&5 15673 ac_status=$? 15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15675 (exit $ac_status); }; }; then 15676 eval "$as_ac_var=yes" 15677else 15678 echo "$as_me: failed program was:" >&5 15679cat conftest.$ac_ext >&5 15680eval "$as_ac_var=no" 15681fi 15682rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15683fi 15684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 15685echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 15686if test `eval echo '${'$as_ac_var'}'` = yes; then 15687 cat >>confdefs.h <<_ACEOF 15688#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 15689_ACEOF 15690 15691fi 15692done 15693 15694fi 15695# dn_expand 15696eval "ac_tr_func=HAVE_`echo dn_expand | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15697eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 15698eval "LIB_dn_expand=$ac_res" 15699 15700case "$ac_res" in 15701 yes) 15702 eval "ac_cv_func_dn_expand=yes" 15703 eval "LIB_dn_expand=" 15704 cat >>confdefs.h <<_ACEOF 15705#define $ac_tr_func 1 15706_ACEOF 15707 15708 echo "$as_me:$LINENO: result: yes" >&5 15709echo "${ECHO_T}yes" >&6 15710 ;; 15711 no) 15712 eval "ac_cv_func_dn_expand=no" 15713 eval "LIB_dn_expand=" 15714 echo "$as_me:$LINENO: result: no" >&5 15715echo "${ECHO_T}no" >&6 15716 ;; 15717 *) 15718 eval "ac_cv_func_dn_expand=yes" 15719 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 15720 cat >>confdefs.h <<_ACEOF 15721#define $ac_tr_func 1 15722_ACEOF 15723 15724 cat >>confdefs.h <<_ACEOF 15725#define $ac_tr_lib 1 15726_ACEOF 15727 15728 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 15729echo "${ECHO_T}yes, in $ac_res" >&6 15730 ;; 15731esac 15732 15733 15734if test -n "$LIB_dn_expand"; then 15735 LIBS="$LIB_dn_expand $LIBS" 15736fi 15737 15738 15739 15740echo "$as_me:$LINENO: checking for _res" >&5 15741echo $ECHO_N "checking for _res... $ECHO_C" >&6 15742if test "${ac_cv_var__res+set}" = set; then 15743 echo $ECHO_N "(cached) $ECHO_C" >&6 15744else 15745
|
| 15746 15747 cat >conftest.$ac_ext <<_ACEOF 15748#line $LINENO "configure" 15749#include "confdefs.h" 15750#include <stdio.h> 15751#ifdef HAVE_SYS_TYPES_H 15752#include <sys/types.h> 15753#endif 15754#ifdef HAVE_NETINET_IN_H 15755#include <netinet/in.h> 15756#endif 15757#ifdef HAVE_ARPA_NAMESER_H 15758#include <arpa/nameser.h> 15759#endif 15760#ifdef HAVE_RESOLV_H 15761#include <resolv.h> 15762#endif 15763 void * foo() { return &_res; } 15764#ifdef F77_DUMMY_MAIN 15765# ifdef __cplusplus 15766 extern "C" 15767# endif 15768 int F77_DUMMY_MAIN() { return 1; } 15769#endif 15770int 15771main () 15772{ 15773foo() 15774 ; 15775 return 0; 15776} 15777_ACEOF 15778rm -f conftest.$ac_objext conftest$ac_exeext 15779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15780 (eval $ac_link) 2>&5 15781 ac_status=$? 15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15783 (exit $ac_status); } && 15784 { ac_try='test -s conftest$ac_exeext' 15785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15786 (eval $ac_try) 2>&5 15787 ac_status=$? 15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15789 (exit $ac_status); }; }; then 15790 ac_cv_var__res=yes 15791else 15792 echo "$as_me: failed program was:" >&5 15793cat conftest.$ac_ext >&5 15794ac_cv_var__res=no 15795fi 15796rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 15797if test "$ac_cv_var__res" != yes ; then
|
15757cat >conftest.$ac_ext <<_ACEOF 15758#line $LINENO "configure" 15759#include "confdefs.h" 15760extern int _res; 15761int foo() { return _res; } 15762#ifdef F77_DUMMY_MAIN 15763# ifdef __cplusplus 15764 extern "C" 15765# endif 15766 int F77_DUMMY_MAIN() { return 1; } 15767#endif 15768int 15769main () 15770{ 15771foo() 15772 ; 15773 return 0; 15774} 15775_ACEOF 15776rm -f conftest.$ac_objext conftest$ac_exeext 15777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15778 (eval $ac_link) 2>&5 15779 ac_status=$? 15780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15781 (exit $ac_status); } && 15782 { ac_try='test -s conftest$ac_exeext' 15783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15784 (eval $ac_try) 2>&5 15785 ac_status=$? 15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15787 (exit $ac_status); }; }; then 15788 ac_cv_var__res=yes 15789else 15790 echo "$as_me: failed program was:" >&5 15791cat conftest.$ac_ext >&5 15792ac_cv_var__res=no 15793fi 15794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 15798cat >conftest.$ac_ext <<_ACEOF 15799#line $LINENO "configure" 15800#include "confdefs.h" 15801extern int _res; 15802int foo() { return _res; } 15803#ifdef F77_DUMMY_MAIN 15804# ifdef __cplusplus 15805 extern "C" 15806# endif 15807 int F77_DUMMY_MAIN() { return 1; } 15808#endif 15809int 15810main () 15811{ 15812foo() 15813 ; 15814 return 0; 15815} 15816_ACEOF 15817rm -f conftest.$ac_objext conftest$ac_exeext 15818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15819 (eval $ac_link) 2>&5 15820 ac_status=$? 15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15822 (exit $ac_status); } && 15823 { ac_try='test -s conftest$ac_exeext' 15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15825 (eval $ac_try) 2>&5 15826 ac_status=$? 15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15828 (exit $ac_status); }; }; then 15829 ac_cv_var__res=yes 15830else 15831 echo "$as_me: failed program was:" >&5 15832cat conftest.$ac_ext >&5 15833ac_cv_var__res=no 15834fi 15835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 15836fi
|
15795 15796fi 15797 15798ac_foo=`eval echo \\$ac_cv_var__res` 15799echo "$as_me:$LINENO: result: $ac_foo" >&5 15800echo "${ECHO_T}$ac_foo" >&6 15801if test "$ac_foo" = yes; then 15802 15803cat >>confdefs.h <<_ACEOF 15804#define HAVE__RES 1 15805_ACEOF 15806 15807 15808echo "$as_me:$LINENO: checking if _res is properly declared" >&5 15809echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6 15810if test "${ac_cv_var__res_declaration+set}" = set; then 15811 echo $ECHO_N "(cached) $ECHO_C" >&6 15812else 15813 15814cat >conftest.$ac_ext <<_ACEOF 15815#line $LINENO "configure" 15816#include "confdefs.h" 15817#include <stdio.h> 15818#ifdef HAVE_SYS_TYPES_H 15819#include <sys/types.h> 15820#endif 15821#ifdef HAVE_NETINET_IN_H 15822#include <netinet/in.h> 15823#endif 15824#ifdef HAVE_ARPA_NAMESER_H 15825#include <arpa/nameser.h> 15826#endif 15827#ifdef HAVE_RESOLV_H 15828#include <resolv.h> 15829#endif 15830extern struct { int foo; } _res; 15831#ifdef F77_DUMMY_MAIN 15832# ifdef __cplusplus 15833 extern "C" 15834# endif 15835 int F77_DUMMY_MAIN() { return 1; } 15836#endif 15837int 15838main () 15839{ 15840_res.foo = 1; 15841 ; 15842 return 0; 15843} 15844_ACEOF 15845rm -f conftest.$ac_objext 15846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15847 (eval $ac_compile) 2>&5 15848 ac_status=$? 15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15850 (exit $ac_status); } && 15851 { ac_try='test -s conftest.$ac_objext' 15852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15853 (eval $ac_try) 2>&5 15854 ac_status=$? 15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15856 (exit $ac_status); }; }; then 15857 eval "ac_cv_var__res_declaration=no" 15858else 15859 echo "$as_me: failed program was:" >&5 15860cat conftest.$ac_ext >&5 15861eval "ac_cv_var__res_declaration=yes" 15862fi 15863rm -f conftest.$ac_objext conftest.$ac_ext 15864 15865fi 15866 15867 15868 15869 15870echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5 15871echo "${ECHO_T}$ac_cv_var__res_declaration" >&6 15872if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then 15873 15874cat >>confdefs.h <<\_ACEOF 15875#define HAVE__RES_DECLARATION 1 15876_ACEOF 15877 15878fi 15879 15880 15881fi 15882 15883 15884 15885 15886echo "$as_me:$LINENO: checking for working snprintf" >&5 15887echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 15888if test "${ac_cv_func_snprintf_working+set}" = set; then 15889 echo $ECHO_N "(cached) $ECHO_C" >&6 15890else 15891 ac_cv_func_snprintf_working=yes 15892if test "$cross_compiling" = yes; then 15893 : 15894else 15895 cat >conftest.$ac_ext <<_ACEOF 15896#line $LINENO "configure" 15897#include "confdefs.h" 15898 15899#include <stdio.h> 15900#include <string.h> 15901int main() 15902{ 15903 char foo[3]; 15904 snprintf(foo, 2, "12"); 15905 return strcmp(foo, "1"); 15906} 15907_ACEOF 15908rm -f conftest$ac_exeext 15909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15910 (eval $ac_link) 2>&5 15911 ac_status=$? 15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15915 (eval $ac_try) 2>&5 15916 ac_status=$? 15917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15918 (exit $ac_status); }; }; then 15919 : 15920else 15921 echo "$as_me: program exited with status $ac_status" >&5 15922echo "$as_me: failed program was:" >&5 15923cat conftest.$ac_ext >&5 15924( exit $ac_status ) 15925ac_cv_func_snprintf_working=no 15926fi 15927rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15928fi 15929fi 15930echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5 15931echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 15932 15933if test "$ac_cv_func_snprintf_working" = yes; then 15934 15935cat >>confdefs.h <<_ACEOF 15936#define HAVE_SNPRINTF 1 15937_ACEOF 15938 15939fi 15940if test "$ac_cv_func_snprintf_working" = yes; then 15941 15942if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 15943echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5 15944echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 15945if test "${ac_cv_func_snprintf_noproto+set}" = set; then 15946 echo $ECHO_N "(cached) $ECHO_C" >&6 15947else 15948 cat >conftest.$ac_ext <<_ACEOF 15949#line $LINENO "configure" 15950#include "confdefs.h" 15951#include <stdio.h> 15952#ifdef F77_DUMMY_MAIN 15953# ifdef __cplusplus 15954 extern "C" 15955# endif 15956 int F77_DUMMY_MAIN() { return 1; } 15957#endif 15958int 15959main () 15960{ 15961struct foo { int foo; } xx; 15962extern int snprintf (struct foo*); 15963snprintf(&xx); 15964 15965 ; 15966 return 0; 15967} 15968_ACEOF 15969rm -f conftest.$ac_objext 15970if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15971 (eval $ac_compile) 2>&5 15972 ac_status=$? 15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15974 (exit $ac_status); } && 15975 { ac_try='test -s conftest.$ac_objext' 15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15977 (eval $ac_try) 2>&5 15978 ac_status=$? 15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15980 (exit $ac_status); }; }; then 15981 eval "ac_cv_func_snprintf_noproto=yes" 15982else 15983 echo "$as_me: failed program was:" >&5 15984cat conftest.$ac_ext >&5 15985eval "ac_cv_func_snprintf_noproto=no" 15986fi 15987rm -f conftest.$ac_objext conftest.$ac_ext 15988fi 15989echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5 15990echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 15991if test "$ac_cv_func_snprintf_noproto" = yes; then 15992 15993cat >>confdefs.h <<\_ACEOF 15994#define NEED_SNPRINTF_PROTO 1 15995_ACEOF 15996 15997fi 15998fi 15999 16000fi 16001 16002 16003echo "$as_me:$LINENO: checking for working vsnprintf" >&5 16004echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 16005if test "${ac_cv_func_vsnprintf_working+set}" = set; then 16006 echo $ECHO_N "(cached) $ECHO_C" >&6 16007else 16008 ac_cv_func_vsnprintf_working=yes 16009if test "$cross_compiling" = yes; then 16010 : 16011else 16012 cat >conftest.$ac_ext <<_ACEOF 16013#line $LINENO "configure" 16014#include "confdefs.h" 16015 16016#include <stdio.h> 16017#include <string.h> 16018#include <stdarg.h> 16019 16020int foo(int num, ...) 16021{ 16022 char bar[3]; 16023 va_list arg; 16024 va_start(arg, num); 16025 vsnprintf(bar, 2, "%s", arg); 16026 va_end(arg); 16027 return strcmp(bar, "1"); 16028} 16029 16030 16031int main() 16032{ 16033 return foo(0, "12"); 16034} 16035_ACEOF 16036rm -f conftest$ac_exeext 16037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16038 (eval $ac_link) 2>&5 16039 ac_status=$? 16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16043 (eval $ac_try) 2>&5 16044 ac_status=$? 16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16046 (exit $ac_status); }; }; then 16047 : 16048else 16049 echo "$as_me: program exited with status $ac_status" >&5 16050echo "$as_me: failed program was:" >&5 16051cat conftest.$ac_ext >&5 16052( exit $ac_status ) 16053ac_cv_func_vsnprintf_working=no 16054fi 16055rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16056fi 16057fi 16058echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5 16059echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 16060 16061if test "$ac_cv_func_vsnprintf_working" = yes; then 16062 16063cat >>confdefs.h <<_ACEOF 16064#define HAVE_VSNPRINTF 1 16065_ACEOF 16066 16067fi 16068if test "$ac_cv_func_vsnprintf_working" = yes; then 16069 16070if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 16071echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5 16072echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 16073if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 16074 echo $ECHO_N "(cached) $ECHO_C" >&6 16075else 16076 cat >conftest.$ac_ext <<_ACEOF 16077#line $LINENO "configure" 16078#include "confdefs.h" 16079#include <stdio.h> 16080#ifdef F77_DUMMY_MAIN 16081# ifdef __cplusplus 16082 extern "C" 16083# endif 16084 int F77_DUMMY_MAIN() { return 1; } 16085#endif 16086int 16087main () 16088{ 16089struct foo { int foo; } xx; 16090extern int vsnprintf (struct foo*); 16091vsnprintf(&xx); 16092 16093 ; 16094 return 0; 16095} 16096_ACEOF 16097rm -f conftest.$ac_objext 16098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16099 (eval $ac_compile) 2>&5 16100 ac_status=$? 16101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16102 (exit $ac_status); } && 16103 { ac_try='test -s conftest.$ac_objext' 16104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16105 (eval $ac_try) 2>&5 16106 ac_status=$? 16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16108 (exit $ac_status); }; }; then 16109 eval "ac_cv_func_vsnprintf_noproto=yes" 16110else 16111 echo "$as_me: failed program was:" >&5 16112cat conftest.$ac_ext >&5 16113eval "ac_cv_func_vsnprintf_noproto=no" 16114fi 16115rm -f conftest.$ac_objext conftest.$ac_ext 16116fi 16117echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5 16118echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 16119if test "$ac_cv_func_vsnprintf_noproto" = yes; then 16120 16121cat >>confdefs.h <<\_ACEOF 16122#define NEED_VSNPRINTF_PROTO 1 16123_ACEOF 16124 16125fi 16126fi 16127 16128fi 16129 16130 16131 16132echo "$as_me:$LINENO: checking for working glob" >&5 16133echo $ECHO_N "checking for working glob... $ECHO_C" >&6 16134if test "${ac_cv_func_glob_working+set}" = set; then 16135 echo $ECHO_N "(cached) $ECHO_C" >&6 16136else 16137 ac_cv_func_glob_working=yes 16138cat >conftest.$ac_ext <<_ACEOF 16139#line $LINENO "configure" 16140#include "confdefs.h" 16141 16142#include <stdio.h> 16143#include <glob.h> 16144#ifdef F77_DUMMY_MAIN 16145# ifdef __cplusplus 16146 extern "C" 16147# endif 16148 int F77_DUMMY_MAIN() { return 1; } 16149#endif 16150int 16151main () 16152{ 16153 16154glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 16155#ifdef GLOB_MAXPATH 16156GLOB_MAXPATH 16157#else 16158GLOB_LIMIT 16159#endif 16160, 16161NULL, NULL); 16162 16163 ; 16164 return 0; 16165} 16166_ACEOF 16167rm -f conftest.$ac_objext conftest$ac_exeext 16168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16169 (eval $ac_link) 2>&5 16170 ac_status=$? 16171 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16172 (exit $ac_status); } && 16173 { ac_try='test -s conftest$ac_exeext' 16174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16175 (eval $ac_try) 2>&5 16176 ac_status=$? 16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16178 (exit $ac_status); }; }; then 16179 : 16180else 16181 echo "$as_me: failed program was:" >&5 16182cat conftest.$ac_ext >&5 16183ac_cv_func_glob_working=no 16184fi 16185rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16186fi 16187echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5 16188echo "${ECHO_T}$ac_cv_func_glob_working" >&6 16189 16190if test "$ac_cv_func_glob_working" = yes; then 16191 16192cat >>confdefs.h <<\_ACEOF 16193#define HAVE_GLOB 1 16194_ACEOF 16195 16196fi 16197if test "$ac_cv_func_glob_working" = yes; then 16198 16199if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 16200echo "$as_me:$LINENO: checking if glob needs a prototype" >&5 16201echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6 16202if test "${ac_cv_func_glob_noproto+set}" = set; then 16203 echo $ECHO_N "(cached) $ECHO_C" >&6 16204else 16205 cat >conftest.$ac_ext <<_ACEOF 16206#line $LINENO "configure" 16207#include "confdefs.h" 16208#include <stdio.h> 16209#include <glob.h> 16210#ifdef F77_DUMMY_MAIN 16211# ifdef __cplusplus 16212 extern "C" 16213# endif 16214 int F77_DUMMY_MAIN() { return 1; } 16215#endif 16216int 16217main () 16218{ 16219struct foo { int foo; } xx; 16220extern int glob (struct foo*); 16221glob(&xx); 16222 16223 ; 16224 return 0; 16225} 16226_ACEOF 16227rm -f conftest.$ac_objext 16228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16229 (eval $ac_compile) 2>&5 16230 ac_status=$? 16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16232 (exit $ac_status); } && 16233 { ac_try='test -s conftest.$ac_objext' 16234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16235 (eval $ac_try) 2>&5 16236 ac_status=$? 16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16238 (exit $ac_status); }; }; then 16239 eval "ac_cv_func_glob_noproto=yes" 16240else 16241 echo "$as_me: failed program was:" >&5 16242cat conftest.$ac_ext >&5 16243eval "ac_cv_func_glob_noproto=no" 16244fi 16245rm -f conftest.$ac_objext conftest.$ac_ext 16246fi 16247echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5 16248echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6 16249if test "$ac_cv_func_glob_noproto" = yes; then 16250 16251cat >>confdefs.h <<\_ACEOF 16252#define NEED_GLOB_PROTO 1 16253_ACEOF 16254 16255fi 16256fi 16257 16258fi 16259 16260if test "$ac_cv_func_glob_working" != yes; then 16261 LIBOBJS="$LIBOBJS glob.$ac_objext" 16262fi 16263 16264 16265if test "$ac_cv_func_glob_working" = yes; then 16266 have_glob_h_TRUE= 16267 have_glob_h_FALSE='#' 16268else 16269 have_glob_h_TRUE='#' 16270 have_glob_h_FALSE= 16271fi 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301for ac_func in \ 16302 asnprintf \ 16303 asprintf \ 16304 atexit \ 16305 cgetent \ 16306 getconfattr \ 16307 getprogname \ 16308 getrlimit \ 16309 getspnam \ 16310 initstate \ 16311 issetugid \ 16312 on_exit \ 16313 random \ 16314 setprogname \ 16315 setstate \ 16316 strsvis \ 16317 strunvis \ 16318 strvis \ 16319 strvisx \ 16320 svis \ 16321 sysconf \ 16322 sysctl \ 16323 uname \ 16324 unvis \ 16325 vasnprintf \ 16326 vasprintf \ 16327 vis \ 16328 16329do 16330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16331echo "$as_me:$LINENO: checking for $ac_func" >&5 16332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16333if eval "test \"\${$as_ac_var+set}\" = set"; then 16334 echo $ECHO_N "(cached) $ECHO_C" >&6 16335else 16336 cat >conftest.$ac_ext <<_ACEOF 16337#line $LINENO "configure" 16338#include "confdefs.h" 16339/* System header to define __stub macros and hopefully few prototypes, 16340 which can conflict with char $ac_func (); below. */ 16341#include <assert.h> 16342/* Override any gcc2 internal prototype to avoid an error. */ 16343#ifdef __cplusplus 16344extern "C" 16345#endif 16346/* We use char because int might match the return type of a gcc2 16347 builtin and then its argument prototype would still apply. */ 16348char $ac_func (); 16349char (*f) (); 16350 16351#ifdef F77_DUMMY_MAIN 16352# ifdef __cplusplus 16353 extern "C" 16354# endif 16355 int F77_DUMMY_MAIN() { return 1; } 16356#endif 16357int 16358main () 16359{ 16360/* The GNU C library defines this for functions which it implements 16361 to always fail with ENOSYS. Some functions are actually named 16362 something starting with __ and the normal name is an alias. */ 16363#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16364choke me 16365#else 16366f = $ac_func; 16367#endif 16368 16369 ; 16370 return 0; 16371} 16372_ACEOF 16373rm -f conftest.$ac_objext conftest$ac_exeext 16374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16375 (eval $ac_link) 2>&5 16376 ac_status=$? 16377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16378 (exit $ac_status); } && 16379 { ac_try='test -s conftest$ac_exeext' 16380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16381 (eval $ac_try) 2>&5 16382 ac_status=$? 16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16384 (exit $ac_status); }; }; then 16385 eval "$as_ac_var=yes" 16386else 16387 echo "$as_me: failed program was:" >&5 16388cat conftest.$ac_ext >&5 16389eval "$as_ac_var=no" 16390fi 16391rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16392fi 16393echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16394echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16395if test `eval echo '${'$as_ac_var'}'` = yes; then 16396 cat >>confdefs.h <<_ACEOF 16397#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16398_ACEOF 16399 16400fi 16401done 16402 16403 16404if test "$ac_cv_func_cgetent" = no; then 16405 LIBOBJS="$LIBOBJS getcap.$ac_objext" 16406fi 16407 16408 16409 16410 16411 16412 16413 16414 16415echo "$as_me:$LINENO: checking for getsockopt" >&5 16416echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 16417if test "${ac_cv_funclib_getsockopt+set}" = set; then 16418 echo $ECHO_N "(cached) $ECHO_C" >&6 16419else 16420 16421if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 16422 ac_save_LIBS="$LIBS" 16423 for ac_lib in "" ; do 16424 case "$ac_lib" in 16425 "") ;; 16426 yes) ac_lib="" ;; 16427 no) continue ;; 16428 -l*) ;; 16429 *) ac_lib="-l$ac_lib" ;; 16430 esac 16431 LIBS=" $ac_lib $ac_save_LIBS" 16432 cat >conftest.$ac_ext <<_ACEOF 16433#line $LINENO "configure" 16434#include "confdefs.h" 16435#ifdef HAVE_SYS_TYPES_H 16436#include <sys/types.h> 16437#endif 16438#ifdef HAVE_SYS_SOCKET_H 16439#include <sys/socket.h> 16440#endif 16441#ifdef F77_DUMMY_MAIN 16442# ifdef __cplusplus 16443 extern "C" 16444# endif 16445 int F77_DUMMY_MAIN() { return 1; } 16446#endif 16447int 16448main () 16449{ 16450getsockopt(0,0,0,0,0) 16451 ; 16452 return 0; 16453} 16454_ACEOF 16455rm -f conftest.$ac_objext conftest$ac_exeext 16456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16457 (eval $ac_link) 2>&5 16458 ac_status=$? 16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16460 (exit $ac_status); } && 16461 { ac_try='test -s conftest$ac_exeext' 16462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16463 (eval $ac_try) 2>&5 16464 ac_status=$? 16465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16466 (exit $ac_status); }; }; then 16467 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 16468else 16469 echo "$as_me: failed program was:" >&5 16470cat conftest.$ac_ext >&5 16471fi 16472rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16473 done 16474 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 16475 LIBS="$ac_save_LIBS" 16476fi 16477 16478fi 16479 16480 16481eval "ac_res=\$ac_cv_funclib_getsockopt" 16482 16483if false; then 16484 16485for ac_func in getsockopt 16486do 16487as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16488echo "$as_me:$LINENO: checking for $ac_func" >&5 16489echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16490if eval "test \"\${$as_ac_var+set}\" = set"; then 16491 echo $ECHO_N "(cached) $ECHO_C" >&6 16492else 16493 cat >conftest.$ac_ext <<_ACEOF 16494#line $LINENO "configure" 16495#include "confdefs.h" 16496/* System header to define __stub macros and hopefully few prototypes, 16497 which can conflict with char $ac_func (); below. */ 16498#include <assert.h> 16499/* Override any gcc2 internal prototype to avoid an error. */ 16500#ifdef __cplusplus 16501extern "C" 16502#endif 16503/* We use char because int might match the return type of a gcc2 16504 builtin and then its argument prototype would still apply. */ 16505char $ac_func (); 16506char (*f) (); 16507 16508#ifdef F77_DUMMY_MAIN 16509# ifdef __cplusplus 16510 extern "C" 16511# endif 16512 int F77_DUMMY_MAIN() { return 1; } 16513#endif 16514int 16515main () 16516{ 16517/* The GNU C library defines this for functions which it implements 16518 to always fail with ENOSYS. Some functions are actually named 16519 something starting with __ and the normal name is an alias. */ 16520#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16521choke me 16522#else 16523f = $ac_func; 16524#endif 16525 16526 ; 16527 return 0; 16528} 16529_ACEOF 16530rm -f conftest.$ac_objext conftest$ac_exeext 16531if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16532 (eval $ac_link) 2>&5 16533 ac_status=$? 16534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16535 (exit $ac_status); } && 16536 { ac_try='test -s conftest$ac_exeext' 16537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16538 (eval $ac_try) 2>&5 16539 ac_status=$? 16540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16541 (exit $ac_status); }; }; then 16542 eval "$as_ac_var=yes" 16543else 16544 echo "$as_me: failed program was:" >&5 16545cat conftest.$ac_ext >&5 16546eval "$as_ac_var=no" 16547fi 16548rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16549fi 16550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16551echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16552if test `eval echo '${'$as_ac_var'}'` = yes; then 16553 cat >>confdefs.h <<_ACEOF 16554#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16555_ACEOF 16556 16557fi 16558done 16559 16560fi 16561# getsockopt 16562eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16563eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16564eval "LIB_getsockopt=$ac_res" 16565 16566case "$ac_res" in 16567 yes) 16568 eval "ac_cv_func_getsockopt=yes" 16569 eval "LIB_getsockopt=" 16570 cat >>confdefs.h <<_ACEOF 16571#define $ac_tr_func 1 16572_ACEOF 16573 16574 echo "$as_me:$LINENO: result: yes" >&5 16575echo "${ECHO_T}yes" >&6 16576 ;; 16577 no) 16578 eval "ac_cv_func_getsockopt=no" 16579 eval "LIB_getsockopt=" 16580 echo "$as_me:$LINENO: result: no" >&5 16581echo "${ECHO_T}no" >&6 16582 ;; 16583 *) 16584 eval "ac_cv_func_getsockopt=yes" 16585 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16586 cat >>confdefs.h <<_ACEOF 16587#define $ac_tr_func 1 16588_ACEOF 16589 16590 cat >>confdefs.h <<_ACEOF 16591#define $ac_tr_lib 1 16592_ACEOF 16593 16594 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 16595echo "${ECHO_T}yes, in $ac_res" >&6 16596 ;; 16597esac 16598 16599 16600 16601 16602 16603echo "$as_me:$LINENO: checking for setsockopt" >&5 16604echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 16605if test "${ac_cv_funclib_setsockopt+set}" = set; then 16606 echo $ECHO_N "(cached) $ECHO_C" >&6 16607else 16608 16609if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 16610 ac_save_LIBS="$LIBS" 16611 for ac_lib in "" ; do 16612 case "$ac_lib" in 16613 "") ;; 16614 yes) ac_lib="" ;; 16615 no) continue ;; 16616 -l*) ;; 16617 *) ac_lib="-l$ac_lib" ;; 16618 esac 16619 LIBS=" $ac_lib $ac_save_LIBS" 16620 cat >conftest.$ac_ext <<_ACEOF 16621#line $LINENO "configure" 16622#include "confdefs.h" 16623#ifdef HAVE_SYS_TYPES_H 16624#include <sys/types.h> 16625#endif 16626#ifdef HAVE_SYS_SOCKET_H 16627#include <sys/socket.h> 16628#endif 16629#ifdef F77_DUMMY_MAIN 16630# ifdef __cplusplus 16631 extern "C" 16632# endif 16633 int F77_DUMMY_MAIN() { return 1; } 16634#endif 16635int 16636main () 16637{ 16638setsockopt(0,0,0,0,0) 16639 ; 16640 return 0; 16641} 16642_ACEOF 16643rm -f conftest.$ac_objext conftest$ac_exeext 16644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16645 (eval $ac_link) 2>&5 16646 ac_status=$? 16647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16648 (exit $ac_status); } && 16649 { ac_try='test -s conftest$ac_exeext' 16650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16651 (eval $ac_try) 2>&5 16652 ac_status=$? 16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16654 (exit $ac_status); }; }; then 16655 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 16656else 16657 echo "$as_me: failed program was:" >&5 16658cat conftest.$ac_ext >&5 16659fi 16660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16661 done 16662 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 16663 LIBS="$ac_save_LIBS" 16664fi 16665 16666fi 16667 16668 16669eval "ac_res=\$ac_cv_funclib_setsockopt" 16670 16671if false; then 16672 16673for ac_func in setsockopt 16674do 16675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16676echo "$as_me:$LINENO: checking for $ac_func" >&5 16677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16678if eval "test \"\${$as_ac_var+set}\" = set"; then 16679 echo $ECHO_N "(cached) $ECHO_C" >&6 16680else 16681 cat >conftest.$ac_ext <<_ACEOF 16682#line $LINENO "configure" 16683#include "confdefs.h" 16684/* System header to define __stub macros and hopefully few prototypes, 16685 which can conflict with char $ac_func (); below. */ 16686#include <assert.h> 16687/* Override any gcc2 internal prototype to avoid an error. */ 16688#ifdef __cplusplus 16689extern "C" 16690#endif 16691/* We use char because int might match the return type of a gcc2 16692 builtin and then its argument prototype would still apply. */ 16693char $ac_func (); 16694char (*f) (); 16695 16696#ifdef F77_DUMMY_MAIN 16697# ifdef __cplusplus 16698 extern "C" 16699# endif 16700 int F77_DUMMY_MAIN() { return 1; } 16701#endif 16702int 16703main () 16704{ 16705/* The GNU C library defines this for functions which it implements 16706 to always fail with ENOSYS. Some functions are actually named 16707 something starting with __ and the normal name is an alias. */ 16708#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16709choke me 16710#else 16711f = $ac_func; 16712#endif 16713 16714 ; 16715 return 0; 16716} 16717_ACEOF 16718rm -f conftest.$ac_objext conftest$ac_exeext 16719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16720 (eval $ac_link) 2>&5 16721 ac_status=$? 16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16723 (exit $ac_status); } && 16724 { ac_try='test -s conftest$ac_exeext' 16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16726 (eval $ac_try) 2>&5 16727 ac_status=$? 16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16729 (exit $ac_status); }; }; then 16730 eval "$as_ac_var=yes" 16731else 16732 echo "$as_me: failed program was:" >&5 16733cat conftest.$ac_ext >&5 16734eval "$as_ac_var=no" 16735fi 16736rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16737fi 16738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16740if test `eval echo '${'$as_ac_var'}'` = yes; then 16741 cat >>confdefs.h <<_ACEOF 16742#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16743_ACEOF 16744 16745fi 16746done 16747 16748fi 16749# setsockopt 16750eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16751eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16752eval "LIB_setsockopt=$ac_res" 16753 16754case "$ac_res" in 16755 yes) 16756 eval "ac_cv_func_setsockopt=yes" 16757 eval "LIB_setsockopt=" 16758 cat >>confdefs.h <<_ACEOF 16759#define $ac_tr_func 1 16760_ACEOF 16761 16762 echo "$as_me:$LINENO: result: yes" >&5 16763echo "${ECHO_T}yes" >&6 16764 ;; 16765 no) 16766 eval "ac_cv_func_setsockopt=no" 16767 eval "LIB_setsockopt=" 16768 echo "$as_me:$LINENO: result: no" >&5 16769echo "${ECHO_T}no" >&6 16770 ;; 16771 *) 16772 eval "ac_cv_func_setsockopt=yes" 16773 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16774 cat >>confdefs.h <<_ACEOF 16775#define $ac_tr_func 1 16776_ACEOF 16777 16778 cat >>confdefs.h <<_ACEOF 16779#define $ac_tr_lib 1 16780_ACEOF 16781 16782 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 16783echo "${ECHO_T}yes, in $ac_res" >&6 16784 ;; 16785esac 16786 16787 16788 16789 16790 16791 16792 16793echo "$as_me:$LINENO: checking for hstrerror" >&5 16794echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 16795if test "${ac_cv_funclib_hstrerror+set}" = set; then 16796 echo $ECHO_N "(cached) $ECHO_C" >&6 16797else 16798 16799if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 16800 ac_save_LIBS="$LIBS" 16801 for ac_lib in "" resolv; do 16802 case "$ac_lib" in 16803 "") ;; 16804 yes) ac_lib="" ;; 16805 no) continue ;; 16806 -l*) ;; 16807 *) ac_lib="-l$ac_lib" ;; 16808 esac 16809 LIBS=" $ac_lib $ac_save_LIBS" 16810 cat >conftest.$ac_ext <<_ACEOF 16811#line $LINENO "configure" 16812#include "confdefs.h" 16813#ifdef HAVE_NETDB_H 16814#include <netdb.h> 16815#endif 16816#ifdef F77_DUMMY_MAIN 16817# ifdef __cplusplus 16818 extern "C" 16819# endif 16820 int F77_DUMMY_MAIN() { return 1; } 16821#endif 16822int 16823main () 16824{ 16825hstrerror(17) 16826 ; 16827 return 0; 16828} 16829_ACEOF 16830rm -f conftest.$ac_objext conftest$ac_exeext 16831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16832 (eval $ac_link) 2>&5 16833 ac_status=$? 16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16835 (exit $ac_status); } && 16836 { ac_try='test -s conftest$ac_exeext' 16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16838 (eval $ac_try) 2>&5 16839 ac_status=$? 16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16841 (exit $ac_status); }; }; then 16842 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 16843else 16844 echo "$as_me: failed program was:" >&5 16845cat conftest.$ac_ext >&5 16846fi 16847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16848 done 16849 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 16850 LIBS="$ac_save_LIBS" 16851fi 16852 16853fi 16854 16855 16856eval "ac_res=\$ac_cv_funclib_hstrerror" 16857 16858if false; then 16859 16860for ac_func in hstrerror 16861do 16862as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16863echo "$as_me:$LINENO: checking for $ac_func" >&5 16864echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16865if eval "test \"\${$as_ac_var+set}\" = set"; then 16866 echo $ECHO_N "(cached) $ECHO_C" >&6 16867else 16868 cat >conftest.$ac_ext <<_ACEOF 16869#line $LINENO "configure" 16870#include "confdefs.h" 16871/* System header to define __stub macros and hopefully few prototypes, 16872 which can conflict with char $ac_func (); below. */ 16873#include <assert.h> 16874/* Override any gcc2 internal prototype to avoid an error. */ 16875#ifdef __cplusplus 16876extern "C" 16877#endif 16878/* We use char because int might match the return type of a gcc2 16879 builtin and then its argument prototype would still apply. */ 16880char $ac_func (); 16881char (*f) (); 16882 16883#ifdef F77_DUMMY_MAIN 16884# ifdef __cplusplus 16885 extern "C" 16886# endif 16887 int F77_DUMMY_MAIN() { return 1; } 16888#endif 16889int 16890main () 16891{ 16892/* The GNU C library defines this for functions which it implements 16893 to always fail with ENOSYS. Some functions are actually named 16894 something starting with __ and the normal name is an alias. */ 16895#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16896choke me 16897#else 16898f = $ac_func; 16899#endif 16900 16901 ; 16902 return 0; 16903} 16904_ACEOF 16905rm -f conftest.$ac_objext conftest$ac_exeext 16906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16907 (eval $ac_link) 2>&5 16908 ac_status=$? 16909 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16910 (exit $ac_status); } && 16911 { ac_try='test -s conftest$ac_exeext' 16912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16913 (eval $ac_try) 2>&5 16914 ac_status=$? 16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16916 (exit $ac_status); }; }; then 16917 eval "$as_ac_var=yes" 16918else 16919 echo "$as_me: failed program was:" >&5 16920cat conftest.$ac_ext >&5 16921eval "$as_ac_var=no" 16922fi 16923rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16924fi 16925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16926echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16927if test `eval echo '${'$as_ac_var'}'` = yes; then 16928 cat >>confdefs.h <<_ACEOF 16929#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16930_ACEOF 16931 16932fi 16933done 16934 16935fi 16936# hstrerror 16937eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16938eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16939eval "LIB_hstrerror=$ac_res" 16940 16941case "$ac_res" in 16942 yes) 16943 eval "ac_cv_func_hstrerror=yes" 16944 eval "LIB_hstrerror=" 16945 cat >>confdefs.h <<_ACEOF 16946#define $ac_tr_func 1 16947_ACEOF 16948 16949 echo "$as_me:$LINENO: result: yes" >&5 16950echo "${ECHO_T}yes" >&6 16951 ;; 16952 no) 16953 eval "ac_cv_func_hstrerror=no" 16954 eval "LIB_hstrerror=" 16955 echo "$as_me:$LINENO: result: no" >&5 16956echo "${ECHO_T}no" >&6 16957 ;; 16958 *) 16959 eval "ac_cv_func_hstrerror=yes" 16960 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16961 cat >>confdefs.h <<_ACEOF 16962#define $ac_tr_func 1 16963_ACEOF 16964 16965 cat >>confdefs.h <<_ACEOF 16966#define $ac_tr_lib 1 16967_ACEOF 16968 16969 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 16970echo "${ECHO_T}yes, in $ac_res" >&6 16971 ;; 16972esac 16973 16974 16975if test -n "$LIB_hstrerror"; then 16976 LIBS="$LIB_hstrerror $LIBS" 16977fi 16978 16979if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 16980 LIBOBJS="$LIBOBJS hstrerror.$ac_objext" 16981fi 16982 16983 16984if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 16985echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5 16986echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6 16987if test "${ac_cv_func_hstrerror_noproto+set}" = set; then 16988 echo $ECHO_N "(cached) $ECHO_C" >&6 16989else 16990 cat >conftest.$ac_ext <<_ACEOF 16991#line $LINENO "configure" 16992#include "confdefs.h" 16993 16994#ifdef HAVE_NETDB_H 16995#include <netdb.h> 16996#endif 16997#ifdef F77_DUMMY_MAIN 16998# ifdef __cplusplus 16999 extern "C" 17000# endif 17001 int F77_DUMMY_MAIN() { return 1; } 17002#endif 17003int 17004main () 17005{ 17006struct foo { int foo; } xx; 17007extern int hstrerror (struct foo*); 17008hstrerror(&xx); 17009 17010 ; 17011 return 0; 17012} 17013_ACEOF 17014rm -f conftest.$ac_objext 17015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17016 (eval $ac_compile) 2>&5 17017 ac_status=$? 17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17019 (exit $ac_status); } && 17020 { ac_try='test -s conftest.$ac_objext' 17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17022 (eval $ac_try) 2>&5 17023 ac_status=$? 17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17025 (exit $ac_status); }; }; then 17026 eval "ac_cv_func_hstrerror_noproto=yes" 17027else 17028 echo "$as_me: failed program was:" >&5 17029cat conftest.$ac_ext >&5 17030eval "ac_cv_func_hstrerror_noproto=no" 17031fi 17032rm -f conftest.$ac_objext conftest.$ac_ext 17033fi 17034echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5 17035echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6 17036if test "$ac_cv_func_hstrerror_noproto" = yes; then 17037 17038cat >>confdefs.h <<\_ACEOF 17039#define NEED_HSTRERROR_PROTO 1 17040_ACEOF 17041 17042fi 17043fi 17044 17045 17046 17047if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 17048echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5 17049echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6 17050if test "${ac_cv_func_asprintf_noproto+set}" = set; then 17051 echo $ECHO_N "(cached) $ECHO_C" >&6 17052else 17053 cat >conftest.$ac_ext <<_ACEOF 17054#line $LINENO "configure" 17055#include "confdefs.h" 17056 17057 #include <stdio.h> 17058 #include <string.h> 17059#ifdef F77_DUMMY_MAIN 17060# ifdef __cplusplus 17061 extern "C" 17062# endif 17063 int F77_DUMMY_MAIN() { return 1; } 17064#endif 17065int 17066main () 17067{ 17068struct foo { int foo; } xx; 17069extern int asprintf (struct foo*); 17070asprintf(&xx); 17071 17072 ; 17073 return 0; 17074} 17075_ACEOF 17076rm -f conftest.$ac_objext 17077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17078 (eval $ac_compile) 2>&5 17079 ac_status=$? 17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17081 (exit $ac_status); } && 17082 { ac_try='test -s conftest.$ac_objext' 17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17084 (eval $ac_try) 2>&5 17085 ac_status=$? 17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17087 (exit $ac_status); }; }; then 17088 eval "ac_cv_func_asprintf_noproto=yes" 17089else 17090 echo "$as_me: failed program was:" >&5 17091cat conftest.$ac_ext >&5 17092eval "ac_cv_func_asprintf_noproto=no" 17093fi 17094rm -f conftest.$ac_objext conftest.$ac_ext 17095fi 17096echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5 17097echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6 17098if test "$ac_cv_func_asprintf_noproto" = yes; then 17099 17100cat >>confdefs.h <<\_ACEOF 17101#define NEED_ASPRINTF_PROTO 1 17102_ACEOF 17103 17104fi 17105fi 17106 17107if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 17108echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5 17109echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6 17110if test "${ac_cv_func_vasprintf_noproto+set}" = set; then 17111 echo $ECHO_N "(cached) $ECHO_C" >&6 17112else 17113 cat >conftest.$ac_ext <<_ACEOF 17114#line $LINENO "configure" 17115#include "confdefs.h" 17116 17117 #include <stdio.h> 17118 #include <string.h> 17119#ifdef F77_DUMMY_MAIN 17120# ifdef __cplusplus 17121 extern "C" 17122# endif 17123 int F77_DUMMY_MAIN() { return 1; } 17124#endif 17125int 17126main () 17127{ 17128struct foo { int foo; } xx; 17129extern int vasprintf (struct foo*); 17130vasprintf(&xx); 17131 17132 ; 17133 return 0; 17134} 17135_ACEOF 17136rm -f conftest.$ac_objext 17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17138 (eval $ac_compile) 2>&5 17139 ac_status=$? 17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17141 (exit $ac_status); } && 17142 { ac_try='test -s conftest.$ac_objext' 17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17144 (eval $ac_try) 2>&5 17145 ac_status=$? 17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17147 (exit $ac_status); }; }; then 17148 eval "ac_cv_func_vasprintf_noproto=yes" 17149else 17150 echo "$as_me: failed program was:" >&5 17151cat conftest.$ac_ext >&5 17152eval "ac_cv_func_vasprintf_noproto=no" 17153fi 17154rm -f conftest.$ac_objext conftest.$ac_ext 17155fi 17156echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5 17157echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6 17158if test "$ac_cv_func_vasprintf_noproto" = yes; then 17159 17160cat >>confdefs.h <<\_ACEOF 17161#define NEED_VASPRINTF_PROTO 1 17162_ACEOF 17163 17164fi 17165fi 17166 17167if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 17168echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5 17169echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6 17170if test "${ac_cv_func_asnprintf_noproto+set}" = set; then 17171 echo $ECHO_N "(cached) $ECHO_C" >&6 17172else 17173 cat >conftest.$ac_ext <<_ACEOF 17174#line $LINENO "configure" 17175#include "confdefs.h" 17176 17177 #include <stdio.h> 17178 #include <string.h> 17179#ifdef F77_DUMMY_MAIN 17180# ifdef __cplusplus 17181 extern "C" 17182# endif 17183 int F77_DUMMY_MAIN() { return 1; } 17184#endif 17185int 17186main () 17187{ 17188struct foo { int foo; } xx; 17189extern int asnprintf (struct foo*); 17190asnprintf(&xx); 17191 17192 ; 17193 return 0; 17194} 17195_ACEOF 17196rm -f conftest.$ac_objext 17197if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17198 (eval $ac_compile) 2>&5 17199 ac_status=$? 17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17201 (exit $ac_status); } && 17202 { ac_try='test -s conftest.$ac_objext' 17203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17204 (eval $ac_try) 2>&5 17205 ac_status=$? 17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17207 (exit $ac_status); }; }; then 17208 eval "ac_cv_func_asnprintf_noproto=yes" 17209else 17210 echo "$as_me: failed program was:" >&5 17211cat conftest.$ac_ext >&5 17212eval "ac_cv_func_asnprintf_noproto=no" 17213fi 17214rm -f conftest.$ac_objext conftest.$ac_ext 17215fi 17216echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5 17217echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6 17218if test "$ac_cv_func_asnprintf_noproto" = yes; then 17219 17220cat >>confdefs.h <<\_ACEOF 17221#define NEED_ASNPRINTF_PROTO 1 17222_ACEOF 17223 17224fi 17225fi 17226 17227if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 17228echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5 17229echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6 17230if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then 17231 echo $ECHO_N "(cached) $ECHO_C" >&6 17232else 17233 cat >conftest.$ac_ext <<_ACEOF 17234#line $LINENO "configure" 17235#include "confdefs.h" 17236 17237 #include <stdio.h> 17238 #include <string.h> 17239#ifdef F77_DUMMY_MAIN 17240# ifdef __cplusplus 17241 extern "C" 17242# endif 17243 int F77_DUMMY_MAIN() { return 1; } 17244#endif 17245int 17246main () 17247{ 17248struct foo { int foo; } xx; 17249extern int vasnprintf (struct foo*); 17250vasnprintf(&xx); 17251 17252 ; 17253 return 0; 17254} 17255_ACEOF 17256rm -f conftest.$ac_objext 17257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17258 (eval $ac_compile) 2>&5 17259 ac_status=$? 17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17261 (exit $ac_status); } && 17262 { ac_try='test -s conftest.$ac_objext' 17263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17264 (eval $ac_try) 2>&5 17265 ac_status=$? 17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17267 (exit $ac_status); }; }; then 17268 eval "ac_cv_func_vasnprintf_noproto=yes" 17269else 17270 echo "$as_me: failed program was:" >&5 17271cat conftest.$ac_ext >&5 17272eval "ac_cv_func_vasnprintf_noproto=no" 17273fi 17274rm -f conftest.$ac_objext conftest.$ac_ext 17275fi 17276echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5 17277echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6 17278if test "$ac_cv_func_vasnprintf_noproto" = yes; then 17279 17280cat >>confdefs.h <<\_ACEOF 17281#define NEED_VASNPRINTF_PROTO 1 17282_ACEOF 17283 17284fi 17285fi 17286 17287 17288 17289 17290 17291echo "$as_me:$LINENO: checking for bswap16" >&5 17292echo $ECHO_N "checking for bswap16... $ECHO_C" >&6 17293if test "${ac_cv_funclib_bswap16+set}" = set; then 17294 echo $ECHO_N "(cached) $ECHO_C" >&6 17295else 17296 17297if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 17298 ac_save_LIBS="$LIBS" 17299 for ac_lib in "" ; do 17300 case "$ac_lib" in 17301 "") ;; 17302 yes) ac_lib="" ;; 17303 no) continue ;; 17304 -l*) ;; 17305 *) ac_lib="-l$ac_lib" ;; 17306 esac 17307 LIBS=" $ac_lib $ac_save_LIBS" 17308 cat >conftest.$ac_ext <<_ACEOF 17309#line $LINENO "configure" 17310#include "confdefs.h" 17311#ifdef HAVE_SYS_BSWAP_H 17312#include <sys/bswap.h> 17313#endif 17314#ifdef F77_DUMMY_MAIN 17315# ifdef __cplusplus 17316 extern "C" 17317# endif 17318 int F77_DUMMY_MAIN() { return 1; } 17319#endif 17320int 17321main () 17322{ 17323bswap16(0) 17324 ; 17325 return 0; 17326} 17327_ACEOF 17328rm -f conftest.$ac_objext conftest$ac_exeext 17329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17330 (eval $ac_link) 2>&5 17331 ac_status=$? 17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17333 (exit $ac_status); } && 17334 { ac_try='test -s conftest$ac_exeext' 17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17336 (eval $ac_try) 2>&5 17337 ac_status=$? 17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17339 (exit $ac_status); }; }; then 17340 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 17341else 17342 echo "$as_me: failed program was:" >&5 17343cat conftest.$ac_ext >&5 17344fi 17345rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17346 done 17347 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 17348 LIBS="$ac_save_LIBS" 17349fi 17350 17351fi 17352 17353 17354eval "ac_res=\$ac_cv_funclib_bswap16" 17355 17356if false; then 17357 17358for ac_func in bswap16 17359do 17360as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17361echo "$as_me:$LINENO: checking for $ac_func" >&5 17362echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17363if eval "test \"\${$as_ac_var+set}\" = set"; then 17364 echo $ECHO_N "(cached) $ECHO_C" >&6 17365else 17366 cat >conftest.$ac_ext <<_ACEOF 17367#line $LINENO "configure" 17368#include "confdefs.h" 17369/* System header to define __stub macros and hopefully few prototypes, 17370 which can conflict with char $ac_func (); below. */ 17371#include <assert.h> 17372/* Override any gcc2 internal prototype to avoid an error. */ 17373#ifdef __cplusplus 17374extern "C" 17375#endif 17376/* We use char because int might match the return type of a gcc2 17377 builtin and then its argument prototype would still apply. */ 17378char $ac_func (); 17379char (*f) (); 17380 17381#ifdef F77_DUMMY_MAIN 17382# ifdef __cplusplus 17383 extern "C" 17384# endif 17385 int F77_DUMMY_MAIN() { return 1; } 17386#endif 17387int 17388main () 17389{ 17390/* The GNU C library defines this for functions which it implements 17391 to always fail with ENOSYS. Some functions are actually named 17392 something starting with __ and the normal name is an alias. */ 17393#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17394choke me 17395#else 17396f = $ac_func; 17397#endif 17398 17399 ; 17400 return 0; 17401} 17402_ACEOF 17403rm -f conftest.$ac_objext conftest$ac_exeext 17404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17405 (eval $ac_link) 2>&5 17406 ac_status=$? 17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17408 (exit $ac_status); } && 17409 { ac_try='test -s conftest$ac_exeext' 17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17411 (eval $ac_try) 2>&5 17412 ac_status=$? 17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17414 (exit $ac_status); }; }; then 17415 eval "$as_ac_var=yes" 17416else 17417 echo "$as_me: failed program was:" >&5 17418cat conftest.$ac_ext >&5 17419eval "$as_ac_var=no" 17420fi 17421rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17422fi 17423echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17424echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17425if test `eval echo '${'$as_ac_var'}'` = yes; then 17426 cat >>confdefs.h <<_ACEOF 17427#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17428_ACEOF 17429 17430fi 17431done 17432 17433fi 17434# bswap16 17435eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17436eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17437eval "LIB_bswap16=$ac_res" 17438 17439case "$ac_res" in 17440 yes) 17441 eval "ac_cv_func_bswap16=yes" 17442 eval "LIB_bswap16=" 17443 cat >>confdefs.h <<_ACEOF 17444#define $ac_tr_func 1 17445_ACEOF 17446 17447 echo "$as_me:$LINENO: result: yes" >&5 17448echo "${ECHO_T}yes" >&6 17449 ;; 17450 no) 17451 eval "ac_cv_func_bswap16=no" 17452 eval "LIB_bswap16=" 17453 echo "$as_me:$LINENO: result: no" >&5 17454echo "${ECHO_T}no" >&6 17455 ;; 17456 *) 17457 eval "ac_cv_func_bswap16=yes" 17458 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17459 cat >>confdefs.h <<_ACEOF 17460#define $ac_tr_func 1 17461_ACEOF 17462 17463 cat >>confdefs.h <<_ACEOF 17464#define $ac_tr_lib 1 17465_ACEOF 17466 17467 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 17468echo "${ECHO_T}yes, in $ac_res" >&6 17469 ;; 17470esac 17471 17472 17473 17474 17475 17476 17477echo "$as_me:$LINENO: checking for bswap32" >&5 17478echo $ECHO_N "checking for bswap32... $ECHO_C" >&6 17479if test "${ac_cv_funclib_bswap32+set}" = set; then 17480 echo $ECHO_N "(cached) $ECHO_C" >&6 17481else 17482 17483if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 17484 ac_save_LIBS="$LIBS" 17485 for ac_lib in "" ; do 17486 case "$ac_lib" in 17487 "") ;; 17488 yes) ac_lib="" ;; 17489 no) continue ;; 17490 -l*) ;; 17491 *) ac_lib="-l$ac_lib" ;; 17492 esac 17493 LIBS=" $ac_lib $ac_save_LIBS" 17494 cat >conftest.$ac_ext <<_ACEOF 17495#line $LINENO "configure" 17496#include "confdefs.h" 17497#ifdef HAVE_SYS_BSWAP_H 17498#include <sys/bswap.h> 17499#endif 17500#ifdef F77_DUMMY_MAIN 17501# ifdef __cplusplus 17502 extern "C" 17503# endif 17504 int F77_DUMMY_MAIN() { return 1; } 17505#endif 17506int 17507main () 17508{ 17509bswap32(0) 17510 ; 17511 return 0; 17512} 17513_ACEOF 17514rm -f conftest.$ac_objext conftest$ac_exeext 17515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17516 (eval $ac_link) 2>&5 17517 ac_status=$? 17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17519 (exit $ac_status); } && 17520 { ac_try='test -s conftest$ac_exeext' 17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17522 (eval $ac_try) 2>&5 17523 ac_status=$? 17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17525 (exit $ac_status); }; }; then 17526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 17527else 17528 echo "$as_me: failed program was:" >&5 17529cat conftest.$ac_ext >&5 17530fi 17531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17532 done 17533 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 17534 LIBS="$ac_save_LIBS" 17535fi 17536 17537fi 17538 17539 17540eval "ac_res=\$ac_cv_funclib_bswap32" 17541 17542if false; then 17543 17544for ac_func in bswap32 17545do 17546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17547echo "$as_me:$LINENO: checking for $ac_func" >&5 17548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17549if eval "test \"\${$as_ac_var+set}\" = set"; then 17550 echo $ECHO_N "(cached) $ECHO_C" >&6 17551else 17552 cat >conftest.$ac_ext <<_ACEOF 17553#line $LINENO "configure" 17554#include "confdefs.h" 17555/* System header to define __stub macros and hopefully few prototypes, 17556 which can conflict with char $ac_func (); below. */ 17557#include <assert.h> 17558/* Override any gcc2 internal prototype to avoid an error. */ 17559#ifdef __cplusplus 17560extern "C" 17561#endif 17562/* We use char because int might match the return type of a gcc2 17563 builtin and then its argument prototype would still apply. */ 17564char $ac_func (); 17565char (*f) (); 17566 17567#ifdef F77_DUMMY_MAIN 17568# ifdef __cplusplus 17569 extern "C" 17570# endif 17571 int F77_DUMMY_MAIN() { return 1; } 17572#endif 17573int 17574main () 17575{ 17576/* The GNU C library defines this for functions which it implements 17577 to always fail with ENOSYS. Some functions are actually named 17578 something starting with __ and the normal name is an alias. */ 17579#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17580choke me 17581#else 17582f = $ac_func; 17583#endif 17584 17585 ; 17586 return 0; 17587} 17588_ACEOF 17589rm -f conftest.$ac_objext conftest$ac_exeext 17590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17591 (eval $ac_link) 2>&5 17592 ac_status=$? 17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17594 (exit $ac_status); } && 17595 { ac_try='test -s conftest$ac_exeext' 17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17597 (eval $ac_try) 2>&5 17598 ac_status=$? 17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17600 (exit $ac_status); }; }; then 17601 eval "$as_ac_var=yes" 17602else 17603 echo "$as_me: failed program was:" >&5 17604cat conftest.$ac_ext >&5 17605eval "$as_ac_var=no" 17606fi 17607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17608fi 17609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17611if test `eval echo '${'$as_ac_var'}'` = yes; then 17612 cat >>confdefs.h <<_ACEOF 17613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17614_ACEOF 17615 17616fi 17617done 17618 17619fi 17620# bswap32 17621eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17622eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17623eval "LIB_bswap32=$ac_res" 17624 17625case "$ac_res" in 17626 yes) 17627 eval "ac_cv_func_bswap32=yes" 17628 eval "LIB_bswap32=" 17629 cat >>confdefs.h <<_ACEOF 17630#define $ac_tr_func 1 17631_ACEOF 17632 17633 echo "$as_me:$LINENO: result: yes" >&5 17634echo "${ECHO_T}yes" >&6 17635 ;; 17636 no) 17637 eval "ac_cv_func_bswap32=no" 17638 eval "LIB_bswap32=" 17639 echo "$as_me:$LINENO: result: no" >&5 17640echo "${ECHO_T}no" >&6 17641 ;; 17642 *) 17643 eval "ac_cv_func_bswap32=yes" 17644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17645 cat >>confdefs.h <<_ACEOF 17646#define $ac_tr_func 1 17647_ACEOF 17648 17649 cat >>confdefs.h <<_ACEOF 17650#define $ac_tr_lib 1 17651_ACEOF 17652 17653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 17654echo "${ECHO_T}yes, in $ac_res" >&6 17655 ;; 17656esac 17657 17658 17659 17660 17661 17662 17663echo "$as_me:$LINENO: checking for pidfile" >&5 17664echo $ECHO_N "checking for pidfile... $ECHO_C" >&6 17665if test "${ac_cv_funclib_pidfile+set}" = set; then 17666 echo $ECHO_N "(cached) $ECHO_C" >&6 17667else 17668 17669if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 17670 ac_save_LIBS="$LIBS" 17671 for ac_lib in "" util; do 17672 case "$ac_lib" in 17673 "") ;; 17674 yes) ac_lib="" ;; 17675 no) continue ;; 17676 -l*) ;; 17677 *) ac_lib="-l$ac_lib" ;; 17678 esac 17679 LIBS=" $ac_lib $ac_save_LIBS" 17680 cat >conftest.$ac_ext <<_ACEOF 17681#line $LINENO "configure" 17682#include "confdefs.h" 17683#ifdef HAVE_UTIL_H 17684#include <util.h> 17685#endif 17686#ifdef F77_DUMMY_MAIN 17687# ifdef __cplusplus 17688 extern "C" 17689# endif 17690 int F77_DUMMY_MAIN() { return 1; } 17691#endif 17692int 17693main () 17694{ 17695pidfile(0) 17696 ; 17697 return 0; 17698} 17699_ACEOF 17700rm -f conftest.$ac_objext conftest$ac_exeext 17701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17702 (eval $ac_link) 2>&5 17703 ac_status=$? 17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17705 (exit $ac_status); } && 17706 { ac_try='test -s conftest$ac_exeext' 17707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17708 (eval $ac_try) 2>&5 17709 ac_status=$? 17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17711 (exit $ac_status); }; }; then 17712 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 17713else 17714 echo "$as_me: failed program was:" >&5 17715cat conftest.$ac_ext >&5 17716fi 17717rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17718 done 17719 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 17720 LIBS="$ac_save_LIBS" 17721fi 17722 17723fi 17724 17725 17726eval "ac_res=\$ac_cv_funclib_pidfile" 17727 17728if false; then 17729 17730for ac_func in pidfile 17731do 17732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17733echo "$as_me:$LINENO: checking for $ac_func" >&5 17734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17735if eval "test \"\${$as_ac_var+set}\" = set"; then 17736 echo $ECHO_N "(cached) $ECHO_C" >&6 17737else 17738 cat >conftest.$ac_ext <<_ACEOF 17739#line $LINENO "configure" 17740#include "confdefs.h" 17741/* System header to define __stub macros and hopefully few prototypes, 17742 which can conflict with char $ac_func (); below. */ 17743#include <assert.h> 17744/* Override any gcc2 internal prototype to avoid an error. */ 17745#ifdef __cplusplus 17746extern "C" 17747#endif 17748/* We use char because int might match the return type of a gcc2 17749 builtin and then its argument prototype would still apply. */ 17750char $ac_func (); 17751char (*f) (); 17752 17753#ifdef F77_DUMMY_MAIN 17754# ifdef __cplusplus 17755 extern "C" 17756# endif 17757 int F77_DUMMY_MAIN() { return 1; } 17758#endif 17759int 17760main () 17761{ 17762/* The GNU C library defines this for functions which it implements 17763 to always fail with ENOSYS. Some functions are actually named 17764 something starting with __ and the normal name is an alias. */ 17765#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17766choke me 17767#else 17768f = $ac_func; 17769#endif 17770 17771 ; 17772 return 0; 17773} 17774_ACEOF 17775rm -f conftest.$ac_objext conftest$ac_exeext 17776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17777 (eval $ac_link) 2>&5 17778 ac_status=$? 17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17780 (exit $ac_status); } && 17781 { ac_try='test -s conftest$ac_exeext' 17782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17783 (eval $ac_try) 2>&5 17784 ac_status=$? 17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17786 (exit $ac_status); }; }; then 17787 eval "$as_ac_var=yes" 17788else 17789 echo "$as_me: failed program was:" >&5 17790cat conftest.$ac_ext >&5 17791eval "$as_ac_var=no" 17792fi 17793rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17794fi 17795echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17796echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17797if test `eval echo '${'$as_ac_var'}'` = yes; then 17798 cat >>confdefs.h <<_ACEOF 17799#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17800_ACEOF 17801 17802fi 17803done 17804 17805fi 17806# pidfile 17807eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17808eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17809eval "LIB_pidfile=$ac_res" 17810 17811case "$ac_res" in 17812 yes) 17813 eval "ac_cv_func_pidfile=yes" 17814 eval "LIB_pidfile=" 17815 cat >>confdefs.h <<_ACEOF 17816#define $ac_tr_func 1 17817_ACEOF 17818 17819 echo "$as_me:$LINENO: result: yes" >&5 17820echo "${ECHO_T}yes" >&6 17821 ;; 17822 no) 17823 eval "ac_cv_func_pidfile=no" 17824 eval "LIB_pidfile=" 17825 echo "$as_me:$LINENO: result: no" >&5 17826echo "${ECHO_T}no" >&6 17827 ;; 17828 *) 17829 eval "ac_cv_func_pidfile=yes" 17830 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17831 cat >>confdefs.h <<_ACEOF 17832#define $ac_tr_func 1 17833_ACEOF 17834 17835 cat >>confdefs.h <<_ACEOF 17836#define $ac_tr_lib 1 17837_ACEOF 17838 17839 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 17840echo "${ECHO_T}yes, in $ac_res" >&6 17841 ;; 17842esac 17843 17844 17845 17846 17847 17848 17849 17850echo "$as_me:$LINENO: checking for getaddrinfo" >&5 17851echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 17852if test "${ac_cv_funclib_getaddrinfo+set}" = set; then 17853 echo $ECHO_N "(cached) $ECHO_C" >&6 17854else 17855 17856if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 17857 ac_save_LIBS="$LIBS" 17858 for ac_lib in "" ; do 17859 case "$ac_lib" in 17860 "") ;; 17861 yes) ac_lib="" ;; 17862 no) continue ;; 17863 -l*) ;; 17864 *) ac_lib="-l$ac_lib" ;; 17865 esac 17866 LIBS=" $ac_lib $ac_save_LIBS" 17867 cat >conftest.$ac_ext <<_ACEOF 17868#line $LINENO "configure" 17869#include "confdefs.h" 17870#ifdef HAVE_NETDB_H 17871#include <netdb.h> 17872#endif 17873#ifdef F77_DUMMY_MAIN 17874# ifdef __cplusplus 17875 extern "C" 17876# endif 17877 int F77_DUMMY_MAIN() { return 1; } 17878#endif 17879int 17880main () 17881{ 17882getaddrinfo(0,0,0,0) 17883 ; 17884 return 0; 17885} 17886_ACEOF 17887rm -f conftest.$ac_objext conftest$ac_exeext 17888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17889 (eval $ac_link) 2>&5 17890 ac_status=$? 17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17892 (exit $ac_status); } && 17893 { ac_try='test -s conftest$ac_exeext' 17894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17895 (eval $ac_try) 2>&5 17896 ac_status=$? 17897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17898 (exit $ac_status); }; }; then 17899 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 17900else 17901 echo "$as_me: failed program was:" >&5 17902cat conftest.$ac_ext >&5 17903fi 17904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17905 done 17906 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 17907 LIBS="$ac_save_LIBS" 17908fi 17909 17910fi 17911 17912 17913eval "ac_res=\$ac_cv_funclib_getaddrinfo" 17914 17915if false; then 17916 17917for ac_func in getaddrinfo 17918do 17919as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17920echo "$as_me:$LINENO: checking for $ac_func" >&5 17921echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17922if eval "test \"\${$as_ac_var+set}\" = set"; then 17923 echo $ECHO_N "(cached) $ECHO_C" >&6 17924else 17925 cat >conftest.$ac_ext <<_ACEOF 17926#line $LINENO "configure" 17927#include "confdefs.h" 17928/* System header to define __stub macros and hopefully few prototypes, 17929 which can conflict with char $ac_func (); below. */ 17930#include <assert.h> 17931/* Override any gcc2 internal prototype to avoid an error. */ 17932#ifdef __cplusplus 17933extern "C" 17934#endif 17935/* We use char because int might match the return type of a gcc2 17936 builtin and then its argument prototype would still apply. */ 17937char $ac_func (); 17938char (*f) (); 17939 17940#ifdef F77_DUMMY_MAIN 17941# ifdef __cplusplus 17942 extern "C" 17943# endif 17944 int F77_DUMMY_MAIN() { return 1; } 17945#endif 17946int 17947main () 17948{ 17949/* The GNU C library defines this for functions which it implements 17950 to always fail with ENOSYS. Some functions are actually named 17951 something starting with __ and the normal name is an alias. */ 17952#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17953choke me 17954#else 17955f = $ac_func; 17956#endif 17957 17958 ; 17959 return 0; 17960} 17961_ACEOF 17962rm -f conftest.$ac_objext conftest$ac_exeext 17963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17964 (eval $ac_link) 2>&5 17965 ac_status=$? 17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17967 (exit $ac_status); } && 17968 { ac_try='test -s conftest$ac_exeext' 17969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17970 (eval $ac_try) 2>&5 17971 ac_status=$? 17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17973 (exit $ac_status); }; }; then 17974 eval "$as_ac_var=yes" 17975else 17976 echo "$as_me: failed program was:" >&5 17977cat conftest.$ac_ext >&5 17978eval "$as_ac_var=no" 17979fi 17980rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17981fi 17982echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17983echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17984if test `eval echo '${'$as_ac_var'}'` = yes; then 17985 cat >>confdefs.h <<_ACEOF 17986#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17987_ACEOF 17988 17989fi 17990done 17991 17992fi 17993# getaddrinfo 17994eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17995eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17996eval "LIB_getaddrinfo=$ac_res" 17997 17998case "$ac_res" in 17999 yes) 18000 eval "ac_cv_func_getaddrinfo=yes" 18001 eval "LIB_getaddrinfo=" 18002 cat >>confdefs.h <<_ACEOF 18003#define $ac_tr_func 1 18004_ACEOF 18005 18006 echo "$as_me:$LINENO: result: yes" >&5 18007echo "${ECHO_T}yes" >&6 18008 ;; 18009 no) 18010 eval "ac_cv_func_getaddrinfo=no" 18011 eval "LIB_getaddrinfo=" 18012 echo "$as_me:$LINENO: result: no" >&5 18013echo "${ECHO_T}no" >&6 18014 ;; 18015 *) 18016 eval "ac_cv_func_getaddrinfo=yes" 18017 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18018 cat >>confdefs.h <<_ACEOF 18019#define $ac_tr_func 1 18020_ACEOF 18021 18022 cat >>confdefs.h <<_ACEOF 18023#define $ac_tr_lib 1 18024_ACEOF 18025 18026 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18027echo "${ECHO_T}yes, in $ac_res" >&6 18028 ;; 18029esac 18030 18031 18032if test -n "$LIB_getaddrinfo"; then 18033 LIBS="$LIB_getaddrinfo $LIBS" 18034fi 18035 18036if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 18037 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 18038fi 18039 18040 18041 18042 18043 18044 18045echo "$as_me:$LINENO: checking for getnameinfo" >&5 18046echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6 18047if test "${ac_cv_funclib_getnameinfo+set}" = set; then 18048 echo $ECHO_N "(cached) $ECHO_C" >&6 18049else 18050 18051if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 18052 ac_save_LIBS="$LIBS" 18053 for ac_lib in "" ; do 18054 case "$ac_lib" in 18055 "") ;; 18056 yes) ac_lib="" ;; 18057 no) continue ;; 18058 -l*) ;; 18059 *) ac_lib="-l$ac_lib" ;; 18060 esac 18061 LIBS=" $ac_lib $ac_save_LIBS" 18062 cat >conftest.$ac_ext <<_ACEOF 18063#line $LINENO "configure" 18064#include "confdefs.h" 18065#ifdef HAVE_NETDB_H 18066#include <netdb.h> 18067#endif 18068#ifdef F77_DUMMY_MAIN 18069# ifdef __cplusplus 18070 extern "C" 18071# endif 18072 int F77_DUMMY_MAIN() { return 1; } 18073#endif 18074int 18075main () 18076{ 18077getnameinfo(0,0,0,0,0,0,0) 18078 ; 18079 return 0; 18080} 18081_ACEOF 18082rm -f conftest.$ac_objext conftest$ac_exeext 18083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18084 (eval $ac_link) 2>&5 18085 ac_status=$? 18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18087 (exit $ac_status); } && 18088 { ac_try='test -s conftest$ac_exeext' 18089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18090 (eval $ac_try) 2>&5 18091 ac_status=$? 18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18093 (exit $ac_status); }; }; then 18094 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 18095else 18096 echo "$as_me: failed program was:" >&5 18097cat conftest.$ac_ext >&5 18098fi 18099rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18100 done 18101 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 18102 LIBS="$ac_save_LIBS" 18103fi 18104 18105fi 18106 18107 18108eval "ac_res=\$ac_cv_funclib_getnameinfo" 18109 18110if false; then 18111 18112for ac_func in getnameinfo 18113do 18114as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18115echo "$as_me:$LINENO: checking for $ac_func" >&5 18116echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18117if eval "test \"\${$as_ac_var+set}\" = set"; then 18118 echo $ECHO_N "(cached) $ECHO_C" >&6 18119else 18120 cat >conftest.$ac_ext <<_ACEOF 18121#line $LINENO "configure" 18122#include "confdefs.h" 18123/* System header to define __stub macros and hopefully few prototypes, 18124 which can conflict with char $ac_func (); below. */ 18125#include <assert.h> 18126/* Override any gcc2 internal prototype to avoid an error. */ 18127#ifdef __cplusplus 18128extern "C" 18129#endif 18130/* We use char because int might match the return type of a gcc2 18131 builtin and then its argument prototype would still apply. */ 18132char $ac_func (); 18133char (*f) (); 18134 18135#ifdef F77_DUMMY_MAIN 18136# ifdef __cplusplus 18137 extern "C" 18138# endif 18139 int F77_DUMMY_MAIN() { return 1; } 18140#endif 18141int 18142main () 18143{ 18144/* The GNU C library defines this for functions which it implements 18145 to always fail with ENOSYS. Some functions are actually named 18146 something starting with __ and the normal name is an alias. */ 18147#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18148choke me 18149#else 18150f = $ac_func; 18151#endif 18152 18153 ; 18154 return 0; 18155} 18156_ACEOF 18157rm -f conftest.$ac_objext conftest$ac_exeext 18158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18159 (eval $ac_link) 2>&5 18160 ac_status=$? 18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18162 (exit $ac_status); } && 18163 { ac_try='test -s conftest$ac_exeext' 18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18165 (eval $ac_try) 2>&5 18166 ac_status=$? 18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18168 (exit $ac_status); }; }; then 18169 eval "$as_ac_var=yes" 18170else 18171 echo "$as_me: failed program was:" >&5 18172cat conftest.$ac_ext >&5 18173eval "$as_ac_var=no" 18174fi 18175rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18176fi 18177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18178echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18179if test `eval echo '${'$as_ac_var'}'` = yes; then 18180 cat >>confdefs.h <<_ACEOF 18181#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18182_ACEOF 18183 18184fi 18185done 18186 18187fi 18188# getnameinfo 18189eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18190eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18191eval "LIB_getnameinfo=$ac_res" 18192 18193case "$ac_res" in 18194 yes) 18195 eval "ac_cv_func_getnameinfo=yes" 18196 eval "LIB_getnameinfo=" 18197 cat >>confdefs.h <<_ACEOF 18198#define $ac_tr_func 1 18199_ACEOF 18200 18201 echo "$as_me:$LINENO: result: yes" >&5 18202echo "${ECHO_T}yes" >&6 18203 ;; 18204 no) 18205 eval "ac_cv_func_getnameinfo=no" 18206 eval "LIB_getnameinfo=" 18207 echo "$as_me:$LINENO: result: no" >&5 18208echo "${ECHO_T}no" >&6 18209 ;; 18210 *) 18211 eval "ac_cv_func_getnameinfo=yes" 18212 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18213 cat >>confdefs.h <<_ACEOF 18214#define $ac_tr_func 1 18215_ACEOF 18216 18217 cat >>confdefs.h <<_ACEOF 18218#define $ac_tr_lib 1 18219_ACEOF 18220 18221 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18222echo "${ECHO_T}yes, in $ac_res" >&6 18223 ;; 18224esac 18225 18226 18227if test -n "$LIB_getnameinfo"; then 18228 LIBS="$LIB_getnameinfo $LIBS" 18229fi 18230 18231if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 18232 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 18233fi 18234 18235 18236 18237 18238 18239 18240echo "$as_me:$LINENO: checking for freeaddrinfo" >&5 18241echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6 18242if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then 18243 echo $ECHO_N "(cached) $ECHO_C" >&6 18244else 18245 18246if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 18247 ac_save_LIBS="$LIBS" 18248 for ac_lib in "" ; do 18249 case "$ac_lib" in 18250 "") ;; 18251 yes) ac_lib="" ;; 18252 no) continue ;; 18253 -l*) ;; 18254 *) ac_lib="-l$ac_lib" ;; 18255 esac 18256 LIBS=" $ac_lib $ac_save_LIBS" 18257 cat >conftest.$ac_ext <<_ACEOF 18258#line $LINENO "configure" 18259#include "confdefs.h" 18260#ifdef HAVE_NETDB_H 18261#include <netdb.h> 18262#endif 18263#ifdef F77_DUMMY_MAIN 18264# ifdef __cplusplus 18265 extern "C" 18266# endif 18267 int F77_DUMMY_MAIN() { return 1; } 18268#endif 18269int 18270main () 18271{ 18272freeaddrinfo(0) 18273 ; 18274 return 0; 18275} 18276_ACEOF 18277rm -f conftest.$ac_objext conftest$ac_exeext 18278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18279 (eval $ac_link) 2>&5 18280 ac_status=$? 18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18282 (exit $ac_status); } && 18283 { ac_try='test -s conftest$ac_exeext' 18284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18285 (eval $ac_try) 2>&5 18286 ac_status=$? 18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18288 (exit $ac_status); }; }; then 18289 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 18290else 18291 echo "$as_me: failed program was:" >&5 18292cat conftest.$ac_ext >&5 18293fi 18294rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18295 done 18296 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 18297 LIBS="$ac_save_LIBS" 18298fi 18299 18300fi 18301 18302 18303eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 18304 18305if false; then 18306 18307for ac_func in freeaddrinfo 18308do 18309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18310echo "$as_me:$LINENO: checking for $ac_func" >&5 18311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18312if eval "test \"\${$as_ac_var+set}\" = set"; then 18313 echo $ECHO_N "(cached) $ECHO_C" >&6 18314else 18315 cat >conftest.$ac_ext <<_ACEOF 18316#line $LINENO "configure" 18317#include "confdefs.h" 18318/* System header to define __stub macros and hopefully few prototypes, 18319 which can conflict with char $ac_func (); below. */ 18320#include <assert.h> 18321/* Override any gcc2 internal prototype to avoid an error. */ 18322#ifdef __cplusplus 18323extern "C" 18324#endif 18325/* We use char because int might match the return type of a gcc2 18326 builtin and then its argument prototype would still apply. */ 18327char $ac_func (); 18328char (*f) (); 18329 18330#ifdef F77_DUMMY_MAIN 18331# ifdef __cplusplus 18332 extern "C" 18333# endif 18334 int F77_DUMMY_MAIN() { return 1; } 18335#endif 18336int 18337main () 18338{ 18339/* The GNU C library defines this for functions which it implements 18340 to always fail with ENOSYS. Some functions are actually named 18341 something starting with __ and the normal name is an alias. */ 18342#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18343choke me 18344#else 18345f = $ac_func; 18346#endif 18347 18348 ; 18349 return 0; 18350} 18351_ACEOF 18352rm -f conftest.$ac_objext conftest$ac_exeext 18353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18354 (eval $ac_link) 2>&5 18355 ac_status=$? 18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18357 (exit $ac_status); } && 18358 { ac_try='test -s conftest$ac_exeext' 18359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18360 (eval $ac_try) 2>&5 18361 ac_status=$? 18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18363 (exit $ac_status); }; }; then 18364 eval "$as_ac_var=yes" 18365else 18366 echo "$as_me: failed program was:" >&5 18367cat conftest.$ac_ext >&5 18368eval "$as_ac_var=no" 18369fi 18370rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18371fi 18372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18374if test `eval echo '${'$as_ac_var'}'` = yes; then 18375 cat >>confdefs.h <<_ACEOF 18376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18377_ACEOF 18378 18379fi 18380done 18381 18382fi 18383# freeaddrinfo 18384eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18385eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18386eval "LIB_freeaddrinfo=$ac_res" 18387 18388case "$ac_res" in 18389 yes) 18390 eval "ac_cv_func_freeaddrinfo=yes" 18391 eval "LIB_freeaddrinfo=" 18392 cat >>confdefs.h <<_ACEOF 18393#define $ac_tr_func 1 18394_ACEOF 18395 18396 echo "$as_me:$LINENO: result: yes" >&5 18397echo "${ECHO_T}yes" >&6 18398 ;; 18399 no) 18400 eval "ac_cv_func_freeaddrinfo=no" 18401 eval "LIB_freeaddrinfo=" 18402 echo "$as_me:$LINENO: result: no" >&5 18403echo "${ECHO_T}no" >&6 18404 ;; 18405 *) 18406 eval "ac_cv_func_freeaddrinfo=yes" 18407 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18408 cat >>confdefs.h <<_ACEOF 18409#define $ac_tr_func 1 18410_ACEOF 18411 18412 cat >>confdefs.h <<_ACEOF 18413#define $ac_tr_lib 1 18414_ACEOF 18415 18416 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18417echo "${ECHO_T}yes, in $ac_res" >&6 18418 ;; 18419esac 18420 18421 18422if test -n "$LIB_freeaddrinfo"; then 18423 LIBS="$LIB_freeaddrinfo $LIBS" 18424fi 18425 18426if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 18427 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 18428fi 18429 18430 18431 18432 18433 18434 18435echo "$as_me:$LINENO: checking for gai_strerror" >&5 18436echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6 18437if test "${ac_cv_funclib_gai_strerror+set}" = set; then 18438 echo $ECHO_N "(cached) $ECHO_C" >&6 18439else 18440 18441if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 18442 ac_save_LIBS="$LIBS" 18443 for ac_lib in "" ; do 18444 case "$ac_lib" in 18445 "") ;; 18446 yes) ac_lib="" ;; 18447 no) continue ;; 18448 -l*) ;; 18449 *) ac_lib="-l$ac_lib" ;; 18450 esac 18451 LIBS=" $ac_lib $ac_save_LIBS" 18452 cat >conftest.$ac_ext <<_ACEOF 18453#line $LINENO "configure" 18454#include "confdefs.h" 18455#ifdef HAVE_NETDB_H 18456#include <netdb.h> 18457#endif 18458#ifdef F77_DUMMY_MAIN 18459# ifdef __cplusplus 18460 extern "C" 18461# endif 18462 int F77_DUMMY_MAIN() { return 1; } 18463#endif 18464int 18465main () 18466{ 18467gai_strerror(0) 18468 ; 18469 return 0; 18470} 18471_ACEOF 18472rm -f conftest.$ac_objext conftest$ac_exeext 18473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18474 (eval $ac_link) 2>&5 18475 ac_status=$? 18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18477 (exit $ac_status); } && 18478 { ac_try='test -s conftest$ac_exeext' 18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18480 (eval $ac_try) 2>&5 18481 ac_status=$? 18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18483 (exit $ac_status); }; }; then 18484 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 18485else 18486 echo "$as_me: failed program was:" >&5 18487cat conftest.$ac_ext >&5 18488fi 18489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18490 done 18491 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 18492 LIBS="$ac_save_LIBS" 18493fi 18494 18495fi 18496 18497 18498eval "ac_res=\$ac_cv_funclib_gai_strerror" 18499 18500if false; then 18501 18502for ac_func in gai_strerror 18503do 18504as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18505echo "$as_me:$LINENO: checking for $ac_func" >&5 18506echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18507if eval "test \"\${$as_ac_var+set}\" = set"; then 18508 echo $ECHO_N "(cached) $ECHO_C" >&6 18509else 18510 cat >conftest.$ac_ext <<_ACEOF 18511#line $LINENO "configure" 18512#include "confdefs.h" 18513/* System header to define __stub macros and hopefully few prototypes, 18514 which can conflict with char $ac_func (); below. */ 18515#include <assert.h> 18516/* Override any gcc2 internal prototype to avoid an error. */ 18517#ifdef __cplusplus 18518extern "C" 18519#endif 18520/* We use char because int might match the return type of a gcc2 18521 builtin and then its argument prototype would still apply. */ 18522char $ac_func (); 18523char (*f) (); 18524 18525#ifdef F77_DUMMY_MAIN 18526# ifdef __cplusplus 18527 extern "C" 18528# endif 18529 int F77_DUMMY_MAIN() { return 1; } 18530#endif 18531int 18532main () 18533{ 18534/* The GNU C library defines this for functions which it implements 18535 to always fail with ENOSYS. Some functions are actually named 18536 something starting with __ and the normal name is an alias. */ 18537#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18538choke me 18539#else 18540f = $ac_func; 18541#endif 18542 18543 ; 18544 return 0; 18545} 18546_ACEOF 18547rm -f conftest.$ac_objext conftest$ac_exeext 18548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18549 (eval $ac_link) 2>&5 18550 ac_status=$? 18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18552 (exit $ac_status); } && 18553 { ac_try='test -s conftest$ac_exeext' 18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18555 (eval $ac_try) 2>&5 18556 ac_status=$? 18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18558 (exit $ac_status); }; }; then 18559 eval "$as_ac_var=yes" 18560else 18561 echo "$as_me: failed program was:" >&5 18562cat conftest.$ac_ext >&5 18563eval "$as_ac_var=no" 18564fi 18565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18566fi 18567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18569if test `eval echo '${'$as_ac_var'}'` = yes; then 18570 cat >>confdefs.h <<_ACEOF 18571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18572_ACEOF 18573 18574fi 18575done 18576 18577fi 18578# gai_strerror 18579eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18580eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18581eval "LIB_gai_strerror=$ac_res" 18582 18583case "$ac_res" in 18584 yes) 18585 eval "ac_cv_func_gai_strerror=yes" 18586 eval "LIB_gai_strerror=" 18587 cat >>confdefs.h <<_ACEOF 18588#define $ac_tr_func 1 18589_ACEOF 18590 18591 echo "$as_me:$LINENO: result: yes" >&5 18592echo "${ECHO_T}yes" >&6 18593 ;; 18594 no) 18595 eval "ac_cv_func_gai_strerror=no" 18596 eval "LIB_gai_strerror=" 18597 echo "$as_me:$LINENO: result: no" >&5 18598echo "${ECHO_T}no" >&6 18599 ;; 18600 *) 18601 eval "ac_cv_func_gai_strerror=yes" 18602 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18603 cat >>confdefs.h <<_ACEOF 18604#define $ac_tr_func 1 18605_ACEOF 18606 18607 cat >>confdefs.h <<_ACEOF 18608#define $ac_tr_lib 1 18609_ACEOF 18610 18611 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18612echo "${ECHO_T}yes, in $ac_res" >&6 18613 ;; 18614esac 18615 18616 18617if test -n "$LIB_gai_strerror"; then 18618 LIBS="$LIB_gai_strerror $LIBS" 18619fi 18620 18621if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 18622 LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 18623fi 18624 18625 18626echo "$as_me:$LINENO: checking for chown" >&5 18627echo $ECHO_N "checking for chown... $ECHO_C" >&6 18628if test "${ac_cv_func_chown+set}" = set; then 18629 echo $ECHO_N "(cached) $ECHO_C" >&6 18630else 18631 cat >conftest.$ac_ext <<_ACEOF 18632#line $LINENO "configure" 18633#include "confdefs.h" 18634/* System header to define __stub macros and hopefully few prototypes, 18635 which can conflict with char chown (); below. */ 18636#include <assert.h> 18637/* Override any gcc2 internal prototype to avoid an error. */ 18638#ifdef __cplusplus 18639extern "C" 18640#endif 18641/* We use char because int might match the return type of a gcc2 18642 builtin and then its argument prototype would still apply. */ 18643char chown (); 18644char (*f) (); 18645 18646#ifdef F77_DUMMY_MAIN 18647# ifdef __cplusplus 18648 extern "C" 18649# endif 18650 int F77_DUMMY_MAIN() { return 1; } 18651#endif 18652int 18653main () 18654{ 18655/* The GNU C library defines this for functions which it implements 18656 to always fail with ENOSYS. Some functions are actually named 18657 something starting with __ and the normal name is an alias. */ 18658#if defined (__stub_chown) || defined (__stub___chown) 18659choke me 18660#else 18661f = chown; 18662#endif 18663 18664 ; 18665 return 0; 18666} 18667_ACEOF 18668rm -f conftest.$ac_objext conftest$ac_exeext 18669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18670 (eval $ac_link) 2>&5 18671 ac_status=$? 18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18673 (exit $ac_status); } && 18674 { ac_try='test -s conftest$ac_exeext' 18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18676 (eval $ac_try) 2>&5 18677 ac_status=$? 18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18679 (exit $ac_status); }; }; then 18680 ac_cv_func_chown=yes 18681else 18682 echo "$as_me: failed program was:" >&5 18683cat conftest.$ac_ext >&5 18684ac_cv_func_chown=no 18685fi 18686rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18687fi 18688echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5 18689echo "${ECHO_T}$ac_cv_func_chown" >&6 18690if test $ac_cv_func_chown = yes; then 18691 18692cat >>confdefs.h <<_ACEOF 18693#define HAVE_CHOWN 1 18694_ACEOF 18695 18696else 18697 LIBOBJS="$LIBOBJS chown.$ac_objext" 18698fi 18699echo "$as_me:$LINENO: checking for copyhostent" >&5 18700echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6 18701if test "${ac_cv_func_copyhostent+set}" = set; then 18702 echo $ECHO_N "(cached) $ECHO_C" >&6 18703else 18704 cat >conftest.$ac_ext <<_ACEOF 18705#line $LINENO "configure" 18706#include "confdefs.h" 18707/* System header to define __stub macros and hopefully few prototypes, 18708 which can conflict with char copyhostent (); below. */ 18709#include <assert.h> 18710/* Override any gcc2 internal prototype to avoid an error. */ 18711#ifdef __cplusplus 18712extern "C" 18713#endif 18714/* We use char because int might match the return type of a gcc2 18715 builtin and then its argument prototype would still apply. */ 18716char copyhostent (); 18717char (*f) (); 18718 18719#ifdef F77_DUMMY_MAIN 18720# ifdef __cplusplus 18721 extern "C" 18722# endif 18723 int F77_DUMMY_MAIN() { return 1; } 18724#endif 18725int 18726main () 18727{ 18728/* The GNU C library defines this for functions which it implements 18729 to always fail with ENOSYS. Some functions are actually named 18730 something starting with __ and the normal name is an alias. */ 18731#if defined (__stub_copyhostent) || defined (__stub___copyhostent) 18732choke me 18733#else 18734f = copyhostent; 18735#endif 18736 18737 ; 18738 return 0; 18739} 18740_ACEOF 18741rm -f conftest.$ac_objext conftest$ac_exeext 18742if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18743 (eval $ac_link) 2>&5 18744 ac_status=$? 18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18746 (exit $ac_status); } && 18747 { ac_try='test -s conftest$ac_exeext' 18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18749 (eval $ac_try) 2>&5 18750 ac_status=$? 18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18752 (exit $ac_status); }; }; then 18753 ac_cv_func_copyhostent=yes 18754else 18755 echo "$as_me: failed program was:" >&5 18756cat conftest.$ac_ext >&5 18757ac_cv_func_copyhostent=no 18758fi 18759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18760fi 18761echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5 18762echo "${ECHO_T}$ac_cv_func_copyhostent" >&6 18763if test $ac_cv_func_copyhostent = yes; then 18764 18765cat >>confdefs.h <<_ACEOF 18766#define HAVE_COPYHOSTENT 1 18767_ACEOF 18768 18769else 18770 LIBOBJS="$LIBOBJS copyhostent.$ac_objext" 18771fi 18772echo "$as_me:$LINENO: checking for daemon" >&5 18773echo $ECHO_N "checking for daemon... $ECHO_C" >&6 18774if test "${ac_cv_func_daemon+set}" = set; then 18775 echo $ECHO_N "(cached) $ECHO_C" >&6 18776else 18777 cat >conftest.$ac_ext <<_ACEOF 18778#line $LINENO "configure" 18779#include "confdefs.h" 18780/* System header to define __stub macros and hopefully few prototypes, 18781 which can conflict with char daemon (); below. */ 18782#include <assert.h> 18783/* Override any gcc2 internal prototype to avoid an error. */ 18784#ifdef __cplusplus 18785extern "C" 18786#endif 18787/* We use char because int might match the return type of a gcc2 18788 builtin and then its argument prototype would still apply. */ 18789char daemon (); 18790char (*f) (); 18791 18792#ifdef F77_DUMMY_MAIN 18793# ifdef __cplusplus 18794 extern "C" 18795# endif 18796 int F77_DUMMY_MAIN() { return 1; } 18797#endif 18798int 18799main () 18800{ 18801/* The GNU C library defines this for functions which it implements 18802 to always fail with ENOSYS. Some functions are actually named 18803 something starting with __ and the normal name is an alias. */ 18804#if defined (__stub_daemon) || defined (__stub___daemon) 18805choke me 18806#else 18807f = daemon; 18808#endif 18809 18810 ; 18811 return 0; 18812} 18813_ACEOF 18814rm -f conftest.$ac_objext conftest$ac_exeext 18815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18816 (eval $ac_link) 2>&5 18817 ac_status=$? 18818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18819 (exit $ac_status); } && 18820 { ac_try='test -s conftest$ac_exeext' 18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18822 (eval $ac_try) 2>&5 18823 ac_status=$? 18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18825 (exit $ac_status); }; }; then 18826 ac_cv_func_daemon=yes 18827else 18828 echo "$as_me: failed program was:" >&5 18829cat conftest.$ac_ext >&5 18830ac_cv_func_daemon=no 18831fi 18832rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18833fi 18834echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 18835echo "${ECHO_T}$ac_cv_func_daemon" >&6 18836if test $ac_cv_func_daemon = yes; then 18837 18838cat >>confdefs.h <<_ACEOF 18839#define HAVE_DAEMON 1 18840_ACEOF 18841 18842else 18843 LIBOBJS="$LIBOBJS daemon.$ac_objext" 18844fi 18845echo "$as_me:$LINENO: checking for ecalloc" >&5 18846echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6 18847if test "${ac_cv_func_ecalloc+set}" = set; then 18848 echo $ECHO_N "(cached) $ECHO_C" >&6 18849else 18850 cat >conftest.$ac_ext <<_ACEOF 18851#line $LINENO "configure" 18852#include "confdefs.h" 18853/* System header to define __stub macros and hopefully few prototypes, 18854 which can conflict with char ecalloc (); below. */ 18855#include <assert.h> 18856/* Override any gcc2 internal prototype to avoid an error. */ 18857#ifdef __cplusplus 18858extern "C" 18859#endif 18860/* We use char because int might match the return type of a gcc2 18861 builtin and then its argument prototype would still apply. */ 18862char ecalloc (); 18863char (*f) (); 18864 18865#ifdef F77_DUMMY_MAIN 18866# ifdef __cplusplus 18867 extern "C" 18868# endif 18869 int F77_DUMMY_MAIN() { return 1; } 18870#endif 18871int 18872main () 18873{ 18874/* The GNU C library defines this for functions which it implements 18875 to always fail with ENOSYS. Some functions are actually named 18876 something starting with __ and the normal name is an alias. */ 18877#if defined (__stub_ecalloc) || defined (__stub___ecalloc) 18878choke me 18879#else 18880f = ecalloc; 18881#endif 18882 18883 ; 18884 return 0; 18885} 18886_ACEOF 18887rm -f conftest.$ac_objext conftest$ac_exeext 18888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18889 (eval $ac_link) 2>&5 18890 ac_status=$? 18891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18892 (exit $ac_status); } && 18893 { ac_try='test -s conftest$ac_exeext' 18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18895 (eval $ac_try) 2>&5 18896 ac_status=$? 18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18898 (exit $ac_status); }; }; then 18899 ac_cv_func_ecalloc=yes 18900else 18901 echo "$as_me: failed program was:" >&5 18902cat conftest.$ac_ext >&5 18903ac_cv_func_ecalloc=no 18904fi 18905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18906fi 18907echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5 18908echo "${ECHO_T}$ac_cv_func_ecalloc" >&6 18909if test $ac_cv_func_ecalloc = yes; then 18910 18911cat >>confdefs.h <<_ACEOF 18912#define HAVE_ECALLOC 1 18913_ACEOF 18914 18915else 18916 LIBOBJS="$LIBOBJS ecalloc.$ac_objext" 18917fi 18918echo "$as_me:$LINENO: checking for emalloc" >&5 18919echo $ECHO_N "checking for emalloc... $ECHO_C" >&6 18920if test "${ac_cv_func_emalloc+set}" = set; then 18921 echo $ECHO_N "(cached) $ECHO_C" >&6 18922else 18923 cat >conftest.$ac_ext <<_ACEOF 18924#line $LINENO "configure" 18925#include "confdefs.h" 18926/* System header to define __stub macros and hopefully few prototypes, 18927 which can conflict with char emalloc (); below. */ 18928#include <assert.h> 18929/* Override any gcc2 internal prototype to avoid an error. */ 18930#ifdef __cplusplus 18931extern "C" 18932#endif 18933/* We use char because int might match the return type of a gcc2 18934 builtin and then its argument prototype would still apply. */ 18935char emalloc (); 18936char (*f) (); 18937 18938#ifdef F77_DUMMY_MAIN 18939# ifdef __cplusplus 18940 extern "C" 18941# endif 18942 int F77_DUMMY_MAIN() { return 1; } 18943#endif 18944int 18945main () 18946{ 18947/* The GNU C library defines this for functions which it implements 18948 to always fail with ENOSYS. Some functions are actually named 18949 something starting with __ and the normal name is an alias. */ 18950#if defined (__stub_emalloc) || defined (__stub___emalloc) 18951choke me 18952#else 18953f = emalloc; 18954#endif 18955 18956 ; 18957 return 0; 18958} 18959_ACEOF 18960rm -f conftest.$ac_objext conftest$ac_exeext 18961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18962 (eval $ac_link) 2>&5 18963 ac_status=$? 18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18965 (exit $ac_status); } && 18966 { ac_try='test -s conftest$ac_exeext' 18967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18968 (eval $ac_try) 2>&5 18969 ac_status=$? 18970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18971 (exit $ac_status); }; }; then 18972 ac_cv_func_emalloc=yes 18973else 18974 echo "$as_me: failed program was:" >&5 18975cat conftest.$ac_ext >&5 18976ac_cv_func_emalloc=no 18977fi 18978rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18979fi 18980echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5 18981echo "${ECHO_T}$ac_cv_func_emalloc" >&6 18982if test $ac_cv_func_emalloc = yes; then 18983 18984cat >>confdefs.h <<_ACEOF 18985#define HAVE_EMALLOC 1 18986_ACEOF 18987 18988else 18989 LIBOBJS="$LIBOBJS emalloc.$ac_objext" 18990fi 18991echo "$as_me:$LINENO: checking for erealloc" >&5 18992echo $ECHO_N "checking for erealloc... $ECHO_C" >&6 18993if test "${ac_cv_func_erealloc+set}" = set; then 18994 echo $ECHO_N "(cached) $ECHO_C" >&6 18995else 18996 cat >conftest.$ac_ext <<_ACEOF 18997#line $LINENO "configure" 18998#include "confdefs.h" 18999/* System header to define __stub macros and hopefully few prototypes, 19000 which can conflict with char erealloc (); below. */ 19001#include <assert.h> 19002/* Override any gcc2 internal prototype to avoid an error. */ 19003#ifdef __cplusplus 19004extern "C" 19005#endif 19006/* We use char because int might match the return type of a gcc2 19007 builtin and then its argument prototype would still apply. */ 19008char erealloc (); 19009char (*f) (); 19010 19011#ifdef F77_DUMMY_MAIN 19012# ifdef __cplusplus 19013 extern "C" 19014# endif 19015 int F77_DUMMY_MAIN() { return 1; } 19016#endif 19017int 19018main () 19019{ 19020/* The GNU C library defines this for functions which it implements 19021 to always fail with ENOSYS. Some functions are actually named 19022 something starting with __ and the normal name is an alias. */ 19023#if defined (__stub_erealloc) || defined (__stub___erealloc) 19024choke me 19025#else 19026f = erealloc; 19027#endif 19028 19029 ; 19030 return 0; 19031} 19032_ACEOF 19033rm -f conftest.$ac_objext conftest$ac_exeext 19034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19035 (eval $ac_link) 2>&5 19036 ac_status=$? 19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19038 (exit $ac_status); } && 19039 { ac_try='test -s conftest$ac_exeext' 19040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19041 (eval $ac_try) 2>&5 19042 ac_status=$? 19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19044 (exit $ac_status); }; }; then 19045 ac_cv_func_erealloc=yes 19046else 19047 echo "$as_me: failed program was:" >&5 19048cat conftest.$ac_ext >&5 19049ac_cv_func_erealloc=no 19050fi 19051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19052fi 19053echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5 19054echo "${ECHO_T}$ac_cv_func_erealloc" >&6 19055if test $ac_cv_func_erealloc = yes; then 19056 19057cat >>confdefs.h <<_ACEOF 19058#define HAVE_EREALLOC 1 19059_ACEOF 19060 19061else 19062 LIBOBJS="$LIBOBJS erealloc.$ac_objext" 19063fi 19064echo "$as_me:$LINENO: checking for estrdup" >&5 19065echo $ECHO_N "checking for estrdup... $ECHO_C" >&6 19066if test "${ac_cv_func_estrdup+set}" = set; then 19067 echo $ECHO_N "(cached) $ECHO_C" >&6 19068else 19069 cat >conftest.$ac_ext <<_ACEOF 19070#line $LINENO "configure" 19071#include "confdefs.h" 19072/* System header to define __stub macros and hopefully few prototypes, 19073 which can conflict with char estrdup (); below. */ 19074#include <assert.h> 19075/* Override any gcc2 internal prototype to avoid an error. */ 19076#ifdef __cplusplus 19077extern "C" 19078#endif 19079/* We use char because int might match the return type of a gcc2 19080 builtin and then its argument prototype would still apply. */ 19081char estrdup (); 19082char (*f) (); 19083 19084#ifdef F77_DUMMY_MAIN 19085# ifdef __cplusplus 19086 extern "C" 19087# endif 19088 int F77_DUMMY_MAIN() { return 1; } 19089#endif 19090int 19091main () 19092{ 19093/* The GNU C library defines this for functions which it implements 19094 to always fail with ENOSYS. Some functions are actually named 19095 something starting with __ and the normal name is an alias. */ 19096#if defined (__stub_estrdup) || defined (__stub___estrdup) 19097choke me 19098#else 19099f = estrdup; 19100#endif 19101 19102 ; 19103 return 0; 19104} 19105_ACEOF 19106rm -f conftest.$ac_objext conftest$ac_exeext 19107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19108 (eval $ac_link) 2>&5 19109 ac_status=$? 19110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19111 (exit $ac_status); } && 19112 { ac_try='test -s conftest$ac_exeext' 19113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19114 (eval $ac_try) 2>&5 19115 ac_status=$? 19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19117 (exit $ac_status); }; }; then 19118 ac_cv_func_estrdup=yes 19119else 19120 echo "$as_me: failed program was:" >&5 19121cat conftest.$ac_ext >&5 19122ac_cv_func_estrdup=no 19123fi 19124rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19125fi 19126echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5 19127echo "${ECHO_T}$ac_cv_func_estrdup" >&6 19128if test $ac_cv_func_estrdup = yes; then 19129 19130cat >>confdefs.h <<_ACEOF 19131#define HAVE_ESTRDUP 1 19132_ACEOF 19133 19134else 19135 LIBOBJS="$LIBOBJS estrdup.$ac_objext" 19136fi 19137echo "$as_me:$LINENO: checking for err" >&5 19138echo $ECHO_N "checking for err... $ECHO_C" >&6 19139if test "${ac_cv_func_err+set}" = set; then 19140 echo $ECHO_N "(cached) $ECHO_C" >&6 19141else 19142 cat >conftest.$ac_ext <<_ACEOF 19143#line $LINENO "configure" 19144#include "confdefs.h" 19145/* System header to define __stub macros and hopefully few prototypes, 19146 which can conflict with char err (); below. */ 19147#include <assert.h> 19148/* Override any gcc2 internal prototype to avoid an error. */ 19149#ifdef __cplusplus 19150extern "C" 19151#endif 19152/* We use char because int might match the return type of a gcc2 19153 builtin and then its argument prototype would still apply. */ 19154char err (); 19155char (*f) (); 19156 19157#ifdef F77_DUMMY_MAIN 19158# ifdef __cplusplus 19159 extern "C" 19160# endif 19161 int F77_DUMMY_MAIN() { return 1; } 19162#endif 19163int 19164main () 19165{ 19166/* The GNU C library defines this for functions which it implements 19167 to always fail with ENOSYS. Some functions are actually named 19168 something starting with __ and the normal name is an alias. */ 19169#if defined (__stub_err) || defined (__stub___err) 19170choke me 19171#else 19172f = err; 19173#endif 19174 19175 ; 19176 return 0; 19177} 19178_ACEOF 19179rm -f conftest.$ac_objext conftest$ac_exeext 19180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19181 (eval $ac_link) 2>&5 19182 ac_status=$? 19183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19184 (exit $ac_status); } && 19185 { ac_try='test -s conftest$ac_exeext' 19186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19187 (eval $ac_try) 2>&5 19188 ac_status=$? 19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19190 (exit $ac_status); }; }; then 19191 ac_cv_func_err=yes 19192else 19193 echo "$as_me: failed program was:" >&5 19194cat conftest.$ac_ext >&5 19195ac_cv_func_err=no 19196fi 19197rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19198fi 19199echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5 19200echo "${ECHO_T}$ac_cv_func_err" >&6 19201if test $ac_cv_func_err = yes; then 19202 19203cat >>confdefs.h <<_ACEOF 19204#define HAVE_ERR 1 19205_ACEOF 19206 19207else 19208 LIBOBJS="$LIBOBJS err.$ac_objext" 19209fi 19210echo "$as_me:$LINENO: checking for errx" >&5 19211echo $ECHO_N "checking for errx... $ECHO_C" >&6 19212if test "${ac_cv_func_errx+set}" = set; then 19213 echo $ECHO_N "(cached) $ECHO_C" >&6 19214else 19215 cat >conftest.$ac_ext <<_ACEOF 19216#line $LINENO "configure" 19217#include "confdefs.h" 19218/* System header to define __stub macros and hopefully few prototypes, 19219 which can conflict with char errx (); below. */ 19220#include <assert.h> 19221/* Override any gcc2 internal prototype to avoid an error. */ 19222#ifdef __cplusplus 19223extern "C" 19224#endif 19225/* We use char because int might match the return type of a gcc2 19226 builtin and then its argument prototype would still apply. */ 19227char errx (); 19228char (*f) (); 19229 19230#ifdef F77_DUMMY_MAIN 19231# ifdef __cplusplus 19232 extern "C" 19233# endif 19234 int F77_DUMMY_MAIN() { return 1; } 19235#endif 19236int 19237main () 19238{ 19239/* The GNU C library defines this for functions which it implements 19240 to always fail with ENOSYS. Some functions are actually named 19241 something starting with __ and the normal name is an alias. */ 19242#if defined (__stub_errx) || defined (__stub___errx) 19243choke me 19244#else 19245f = errx; 19246#endif 19247 19248 ; 19249 return 0; 19250} 19251_ACEOF 19252rm -f conftest.$ac_objext conftest$ac_exeext 19253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19254 (eval $ac_link) 2>&5 19255 ac_status=$? 19256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19257 (exit $ac_status); } && 19258 { ac_try='test -s conftest$ac_exeext' 19259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19260 (eval $ac_try) 2>&5 19261 ac_status=$? 19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19263 (exit $ac_status); }; }; then 19264 ac_cv_func_errx=yes 19265else 19266 echo "$as_me: failed program was:" >&5 19267cat conftest.$ac_ext >&5 19268ac_cv_func_errx=no 19269fi 19270rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19271fi 19272echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5 19273echo "${ECHO_T}$ac_cv_func_errx" >&6 19274if test $ac_cv_func_errx = yes; then 19275 19276cat >>confdefs.h <<_ACEOF 19277#define HAVE_ERRX 1 19278_ACEOF 19279 19280else 19281 LIBOBJS="$LIBOBJS errx.$ac_objext" 19282fi 19283echo "$as_me:$LINENO: checking for fchown" >&5 19284echo $ECHO_N "checking for fchown... $ECHO_C" >&6 19285if test "${ac_cv_func_fchown+set}" = set; then 19286 echo $ECHO_N "(cached) $ECHO_C" >&6 19287else 19288 cat >conftest.$ac_ext <<_ACEOF 19289#line $LINENO "configure" 19290#include "confdefs.h" 19291/* System header to define __stub macros and hopefully few prototypes, 19292 which can conflict with char fchown (); below. */ 19293#include <assert.h> 19294/* Override any gcc2 internal prototype to avoid an error. */ 19295#ifdef __cplusplus 19296extern "C" 19297#endif 19298/* We use char because int might match the return type of a gcc2 19299 builtin and then its argument prototype would still apply. */ 19300char fchown (); 19301char (*f) (); 19302 19303#ifdef F77_DUMMY_MAIN 19304# ifdef __cplusplus 19305 extern "C" 19306# endif 19307 int F77_DUMMY_MAIN() { return 1; } 19308#endif 19309int 19310main () 19311{ 19312/* The GNU C library defines this for functions which it implements 19313 to always fail with ENOSYS. Some functions are actually named 19314 something starting with __ and the normal name is an alias. */ 19315#if defined (__stub_fchown) || defined (__stub___fchown) 19316choke me 19317#else 19318f = fchown; 19319#endif 19320 19321 ; 19322 return 0; 19323} 19324_ACEOF 19325rm -f conftest.$ac_objext conftest$ac_exeext 19326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19327 (eval $ac_link) 2>&5 19328 ac_status=$? 19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19330 (exit $ac_status); } && 19331 { ac_try='test -s conftest$ac_exeext' 19332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19333 (eval $ac_try) 2>&5 19334 ac_status=$? 19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19336 (exit $ac_status); }; }; then 19337 ac_cv_func_fchown=yes 19338else 19339 echo "$as_me: failed program was:" >&5 19340cat conftest.$ac_ext >&5 19341ac_cv_func_fchown=no 19342fi 19343rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19344fi 19345echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5 19346echo "${ECHO_T}$ac_cv_func_fchown" >&6 19347if test $ac_cv_func_fchown = yes; then 19348 19349cat >>confdefs.h <<_ACEOF 19350#define HAVE_FCHOWN 1 19351_ACEOF 19352 19353else 19354 LIBOBJS="$LIBOBJS fchown.$ac_objext" 19355fi 19356echo "$as_me:$LINENO: checking for flock" >&5 19357echo $ECHO_N "checking for flock... $ECHO_C" >&6 19358if test "${ac_cv_func_flock+set}" = set; then 19359 echo $ECHO_N "(cached) $ECHO_C" >&6 19360else 19361 cat >conftest.$ac_ext <<_ACEOF 19362#line $LINENO "configure" 19363#include "confdefs.h" 19364/* System header to define __stub macros and hopefully few prototypes, 19365 which can conflict with char flock (); below. */ 19366#include <assert.h> 19367/* Override any gcc2 internal prototype to avoid an error. */ 19368#ifdef __cplusplus 19369extern "C" 19370#endif 19371/* We use char because int might match the return type of a gcc2 19372 builtin and then its argument prototype would still apply. */ 19373char flock (); 19374char (*f) (); 19375 19376#ifdef F77_DUMMY_MAIN 19377# ifdef __cplusplus 19378 extern "C" 19379# endif 19380 int F77_DUMMY_MAIN() { return 1; } 19381#endif 19382int 19383main () 19384{ 19385/* The GNU C library defines this for functions which it implements 19386 to always fail with ENOSYS. Some functions are actually named 19387 something starting with __ and the normal name is an alias. */ 19388#if defined (__stub_flock) || defined (__stub___flock) 19389choke me 19390#else 19391f = flock; 19392#endif 19393 19394 ; 19395 return 0; 19396} 19397_ACEOF 19398rm -f conftest.$ac_objext conftest$ac_exeext 19399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19400 (eval $ac_link) 2>&5 19401 ac_status=$? 19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19403 (exit $ac_status); } && 19404 { ac_try='test -s conftest$ac_exeext' 19405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19406 (eval $ac_try) 2>&5 19407 ac_status=$? 19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19409 (exit $ac_status); }; }; then 19410 ac_cv_func_flock=yes 19411else 19412 echo "$as_me: failed program was:" >&5 19413cat conftest.$ac_ext >&5 19414ac_cv_func_flock=no 19415fi 19416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19417fi 19418echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5 19419echo "${ECHO_T}$ac_cv_func_flock" >&6 19420if test $ac_cv_func_flock = yes; then 19421 19422cat >>confdefs.h <<_ACEOF 19423#define HAVE_FLOCK 1 19424_ACEOF 19425 19426else 19427 LIBOBJS="$LIBOBJS flock.$ac_objext" 19428fi 19429echo "$as_me:$LINENO: checking for fnmatch" >&5 19430echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6 19431if test "${ac_cv_func_fnmatch+set}" = set; then 19432 echo $ECHO_N "(cached) $ECHO_C" >&6 19433else 19434 cat >conftest.$ac_ext <<_ACEOF 19435#line $LINENO "configure" 19436#include "confdefs.h" 19437/* System header to define __stub macros and hopefully few prototypes, 19438 which can conflict with char fnmatch (); below. */ 19439#include <assert.h> 19440/* Override any gcc2 internal prototype to avoid an error. */ 19441#ifdef __cplusplus 19442extern "C" 19443#endif 19444/* We use char because int might match the return type of a gcc2 19445 builtin and then its argument prototype would still apply. */ 19446char fnmatch (); 19447char (*f) (); 19448 19449#ifdef F77_DUMMY_MAIN 19450# ifdef __cplusplus 19451 extern "C" 19452# endif 19453 int F77_DUMMY_MAIN() { return 1; } 19454#endif 19455int 19456main () 19457{ 19458/* The GNU C library defines this for functions which it implements 19459 to always fail with ENOSYS. Some functions are actually named 19460 something starting with __ and the normal name is an alias. */ 19461#if defined (__stub_fnmatch) || defined (__stub___fnmatch) 19462choke me 19463#else 19464f = fnmatch; 19465#endif 19466 19467 ; 19468 return 0; 19469} 19470_ACEOF 19471rm -f conftest.$ac_objext conftest$ac_exeext 19472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19473 (eval $ac_link) 2>&5 19474 ac_status=$? 19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19476 (exit $ac_status); } && 19477 { ac_try='test -s conftest$ac_exeext' 19478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19479 (eval $ac_try) 2>&5 19480 ac_status=$? 19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19482 (exit $ac_status); }; }; then 19483 ac_cv_func_fnmatch=yes 19484else 19485 echo "$as_me: failed program was:" >&5 19486cat conftest.$ac_ext >&5 19487ac_cv_func_fnmatch=no 19488fi 19489rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19490fi 19491echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5 19492echo "${ECHO_T}$ac_cv_func_fnmatch" >&6 19493if test $ac_cv_func_fnmatch = yes; then 19494 19495cat >>confdefs.h <<_ACEOF 19496#define HAVE_FNMATCH 1 19497_ACEOF 19498 19499else 19500 LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 19501fi 19502echo "$as_me:$LINENO: checking for freehostent" >&5 19503echo $ECHO_N "checking for freehostent... $ECHO_C" >&6 19504if test "${ac_cv_func_freehostent+set}" = set; then 19505 echo $ECHO_N "(cached) $ECHO_C" >&6 19506else 19507 cat >conftest.$ac_ext <<_ACEOF 19508#line $LINENO "configure" 19509#include "confdefs.h" 19510/* System header to define __stub macros and hopefully few prototypes, 19511 which can conflict with char freehostent (); below. */ 19512#include <assert.h> 19513/* Override any gcc2 internal prototype to avoid an error. */ 19514#ifdef __cplusplus 19515extern "C" 19516#endif 19517/* We use char because int might match the return type of a gcc2 19518 builtin and then its argument prototype would still apply. */ 19519char freehostent (); 19520char (*f) (); 19521 19522#ifdef F77_DUMMY_MAIN 19523# ifdef __cplusplus 19524 extern "C" 19525# endif 19526 int F77_DUMMY_MAIN() { return 1; } 19527#endif 19528int 19529main () 19530{ 19531/* The GNU C library defines this for functions which it implements 19532 to always fail with ENOSYS. Some functions are actually named 19533 something starting with __ and the normal name is an alias. */ 19534#if defined (__stub_freehostent) || defined (__stub___freehostent) 19535choke me 19536#else 19537f = freehostent; 19538#endif 19539 19540 ; 19541 return 0; 19542} 19543_ACEOF 19544rm -f conftest.$ac_objext conftest$ac_exeext 19545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19546 (eval $ac_link) 2>&5 19547 ac_status=$? 19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19549 (exit $ac_status); } && 19550 { ac_try='test -s conftest$ac_exeext' 19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19552 (eval $ac_try) 2>&5 19553 ac_status=$? 19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19555 (exit $ac_status); }; }; then 19556 ac_cv_func_freehostent=yes 19557else 19558 echo "$as_me: failed program was:" >&5 19559cat conftest.$ac_ext >&5 19560ac_cv_func_freehostent=no 19561fi 19562rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19563fi 19564echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5 19565echo "${ECHO_T}$ac_cv_func_freehostent" >&6 19566if test $ac_cv_func_freehostent = yes; then 19567 19568cat >>confdefs.h <<_ACEOF 19569#define HAVE_FREEHOSTENT 1 19570_ACEOF 19571 19572else 19573 LIBOBJS="$LIBOBJS freehostent.$ac_objext" 19574fi 19575echo "$as_me:$LINENO: checking for getcwd" >&5 19576echo $ECHO_N "checking for getcwd... $ECHO_C" >&6 19577if test "${ac_cv_func_getcwd+set}" = set; then 19578 echo $ECHO_N "(cached) $ECHO_C" >&6 19579else 19580 cat >conftest.$ac_ext <<_ACEOF 19581#line $LINENO "configure" 19582#include "confdefs.h" 19583/* System header to define __stub macros and hopefully few prototypes, 19584 which can conflict with char getcwd (); below. */ 19585#include <assert.h> 19586/* Override any gcc2 internal prototype to avoid an error. */ 19587#ifdef __cplusplus 19588extern "C" 19589#endif 19590/* We use char because int might match the return type of a gcc2 19591 builtin and then its argument prototype would still apply. */ 19592char getcwd (); 19593char (*f) (); 19594 19595#ifdef F77_DUMMY_MAIN 19596# ifdef __cplusplus 19597 extern "C" 19598# endif 19599 int F77_DUMMY_MAIN() { return 1; } 19600#endif 19601int 19602main () 19603{ 19604/* The GNU C library defines this for functions which it implements 19605 to always fail with ENOSYS. Some functions are actually named 19606 something starting with __ and the normal name is an alias. */ 19607#if defined (__stub_getcwd) || defined (__stub___getcwd) 19608choke me 19609#else 19610f = getcwd; 19611#endif 19612 19613 ; 19614 return 0; 19615} 19616_ACEOF 19617rm -f conftest.$ac_objext conftest$ac_exeext 19618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19619 (eval $ac_link) 2>&5 19620 ac_status=$? 19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19622 (exit $ac_status); } && 19623 { ac_try='test -s conftest$ac_exeext' 19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19625 (eval $ac_try) 2>&5 19626 ac_status=$? 19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19628 (exit $ac_status); }; }; then 19629 ac_cv_func_getcwd=yes 19630else 19631 echo "$as_me: failed program was:" >&5 19632cat conftest.$ac_ext >&5 19633ac_cv_func_getcwd=no 19634fi 19635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19636fi 19637echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5 19638echo "${ECHO_T}$ac_cv_func_getcwd" >&6 19639if test $ac_cv_func_getcwd = yes; then 19640 19641cat >>confdefs.h <<_ACEOF 19642#define HAVE_GETCWD 1 19643_ACEOF 19644 19645else 19646 LIBOBJS="$LIBOBJS getcwd.$ac_objext" 19647fi 19648echo "$as_me:$LINENO: checking for getdtablesize" >&5 19649echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6 19650if test "${ac_cv_func_getdtablesize+set}" = set; then 19651 echo $ECHO_N "(cached) $ECHO_C" >&6 19652else 19653 cat >conftest.$ac_ext <<_ACEOF 19654#line $LINENO "configure" 19655#include "confdefs.h" 19656/* System header to define __stub macros and hopefully few prototypes, 19657 which can conflict with char getdtablesize (); below. */ 19658#include <assert.h> 19659/* Override any gcc2 internal prototype to avoid an error. */ 19660#ifdef __cplusplus 19661extern "C" 19662#endif 19663/* We use char because int might match the return type of a gcc2 19664 builtin and then its argument prototype would still apply. */ 19665char getdtablesize (); 19666char (*f) (); 19667 19668#ifdef F77_DUMMY_MAIN 19669# ifdef __cplusplus 19670 extern "C" 19671# endif 19672 int F77_DUMMY_MAIN() { return 1; } 19673#endif 19674int 19675main () 19676{ 19677/* The GNU C library defines this for functions which it implements 19678 to always fail with ENOSYS. Some functions are actually named 19679 something starting with __ and the normal name is an alias. */ 19680#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize) 19681choke me 19682#else 19683f = getdtablesize; 19684#endif 19685 19686 ; 19687 return 0; 19688} 19689_ACEOF 19690rm -f conftest.$ac_objext conftest$ac_exeext 19691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19692 (eval $ac_link) 2>&5 19693 ac_status=$? 19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19695 (exit $ac_status); } && 19696 { ac_try='test -s conftest$ac_exeext' 19697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19698 (eval $ac_try) 2>&5 19699 ac_status=$? 19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19701 (exit $ac_status); }; }; then 19702 ac_cv_func_getdtablesize=yes 19703else 19704 echo "$as_me: failed program was:" >&5 19705cat conftest.$ac_ext >&5 19706ac_cv_func_getdtablesize=no 19707fi 19708rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19709fi 19710echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5 19711echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6 19712if test $ac_cv_func_getdtablesize = yes; then 19713 19714cat >>confdefs.h <<_ACEOF 19715#define HAVE_GETDTABLESIZE 1 19716_ACEOF 19717 19718else 19719 LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" 19720fi 19721echo "$as_me:$LINENO: checking for getegid" >&5 19722echo $ECHO_N "checking for getegid... $ECHO_C" >&6 19723if test "${ac_cv_func_getegid+set}" = set; then 19724 echo $ECHO_N "(cached) $ECHO_C" >&6 19725else 19726 cat >conftest.$ac_ext <<_ACEOF 19727#line $LINENO "configure" 19728#include "confdefs.h" 19729/* System header to define __stub macros and hopefully few prototypes, 19730 which can conflict with char getegid (); below. */ 19731#include <assert.h> 19732/* Override any gcc2 internal prototype to avoid an error. */ 19733#ifdef __cplusplus 19734extern "C" 19735#endif 19736/* We use char because int might match the return type of a gcc2 19737 builtin and then its argument prototype would still apply. */ 19738char getegid (); 19739char (*f) (); 19740 19741#ifdef F77_DUMMY_MAIN 19742# ifdef __cplusplus 19743 extern "C" 19744# endif 19745 int F77_DUMMY_MAIN() { return 1; } 19746#endif 19747int 19748main () 19749{ 19750/* The GNU C library defines this for functions which it implements 19751 to always fail with ENOSYS. Some functions are actually named 19752 something starting with __ and the normal name is an alias. */ 19753#if defined (__stub_getegid) || defined (__stub___getegid) 19754choke me 19755#else 19756f = getegid; 19757#endif 19758 19759 ; 19760 return 0; 19761} 19762_ACEOF 19763rm -f conftest.$ac_objext conftest$ac_exeext 19764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19765 (eval $ac_link) 2>&5 19766 ac_status=$? 19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19768 (exit $ac_status); } && 19769 { ac_try='test -s conftest$ac_exeext' 19770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19771 (eval $ac_try) 2>&5 19772 ac_status=$? 19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19774 (exit $ac_status); }; }; then 19775 ac_cv_func_getegid=yes 19776else 19777 echo "$as_me: failed program was:" >&5 19778cat conftest.$ac_ext >&5 19779ac_cv_func_getegid=no 19780fi 19781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19782fi 19783echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5 19784echo "${ECHO_T}$ac_cv_func_getegid" >&6 19785if test $ac_cv_func_getegid = yes; then 19786 19787cat >>confdefs.h <<_ACEOF 19788#define HAVE_GETEGID 1 19789_ACEOF 19790 19791else 19792 LIBOBJS="$LIBOBJS getegid.$ac_objext" 19793fi 19794echo "$as_me:$LINENO: checking for geteuid" >&5 19795echo $ECHO_N "checking for geteuid... $ECHO_C" >&6 19796if test "${ac_cv_func_geteuid+set}" = set; then 19797 echo $ECHO_N "(cached) $ECHO_C" >&6 19798else 19799 cat >conftest.$ac_ext <<_ACEOF 19800#line $LINENO "configure" 19801#include "confdefs.h" 19802/* System header to define __stub macros and hopefully few prototypes, 19803 which can conflict with char geteuid (); below. */ 19804#include <assert.h> 19805/* Override any gcc2 internal prototype to avoid an error. */ 19806#ifdef __cplusplus 19807extern "C" 19808#endif 19809/* We use char because int might match the return type of a gcc2 19810 builtin and then its argument prototype would still apply. */ 19811char geteuid (); 19812char (*f) (); 19813 19814#ifdef F77_DUMMY_MAIN 19815# ifdef __cplusplus 19816 extern "C" 19817# endif 19818 int F77_DUMMY_MAIN() { return 1; } 19819#endif 19820int 19821main () 19822{ 19823/* The GNU C library defines this for functions which it implements 19824 to always fail with ENOSYS. Some functions are actually named 19825 something starting with __ and the normal name is an alias. */ 19826#if defined (__stub_geteuid) || defined (__stub___geteuid) 19827choke me 19828#else 19829f = geteuid; 19830#endif 19831 19832 ; 19833 return 0; 19834} 19835_ACEOF 19836rm -f conftest.$ac_objext conftest$ac_exeext 19837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19838 (eval $ac_link) 2>&5 19839 ac_status=$? 19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19841 (exit $ac_status); } && 19842 { ac_try='test -s conftest$ac_exeext' 19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19844 (eval $ac_try) 2>&5 19845 ac_status=$? 19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19847 (exit $ac_status); }; }; then 19848 ac_cv_func_geteuid=yes 19849else 19850 echo "$as_me: failed program was:" >&5 19851cat conftest.$ac_ext >&5 19852ac_cv_func_geteuid=no 19853fi 19854rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19855fi 19856echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5 19857echo "${ECHO_T}$ac_cv_func_geteuid" >&6 19858if test $ac_cv_func_geteuid = yes; then 19859 19860cat >>confdefs.h <<_ACEOF 19861#define HAVE_GETEUID 1 19862_ACEOF 19863 19864else 19865 LIBOBJS="$LIBOBJS geteuid.$ac_objext" 19866fi 19867echo "$as_me:$LINENO: checking for getgid" >&5 19868echo $ECHO_N "checking for getgid... $ECHO_C" >&6 19869if test "${ac_cv_func_getgid+set}" = set; then 19870 echo $ECHO_N "(cached) $ECHO_C" >&6 19871else 19872 cat >conftest.$ac_ext <<_ACEOF 19873#line $LINENO "configure" 19874#include "confdefs.h" 19875/* System header to define __stub macros and hopefully few prototypes, 19876 which can conflict with char getgid (); below. */ 19877#include <assert.h> 19878/* Override any gcc2 internal prototype to avoid an error. */ 19879#ifdef __cplusplus 19880extern "C" 19881#endif 19882/* We use char because int might match the return type of a gcc2 19883 builtin and then its argument prototype would still apply. */ 19884char getgid (); 19885char (*f) (); 19886 19887#ifdef F77_DUMMY_MAIN 19888# ifdef __cplusplus 19889 extern "C" 19890# endif 19891 int F77_DUMMY_MAIN() { return 1; } 19892#endif 19893int 19894main () 19895{ 19896/* The GNU C library defines this for functions which it implements 19897 to always fail with ENOSYS. Some functions are actually named 19898 something starting with __ and the normal name is an alias. */ 19899#if defined (__stub_getgid) || defined (__stub___getgid) 19900choke me 19901#else 19902f = getgid; 19903#endif 19904 19905 ; 19906 return 0; 19907} 19908_ACEOF 19909rm -f conftest.$ac_objext conftest$ac_exeext 19910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19911 (eval $ac_link) 2>&5 19912 ac_status=$? 19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19914 (exit $ac_status); } && 19915 { ac_try='test -s conftest$ac_exeext' 19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19917 (eval $ac_try) 2>&5 19918 ac_status=$? 19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19920 (exit $ac_status); }; }; then 19921 ac_cv_func_getgid=yes 19922else 19923 echo "$as_me: failed program was:" >&5 19924cat conftest.$ac_ext >&5 19925ac_cv_func_getgid=no 19926fi 19927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19928fi 19929echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5 19930echo "${ECHO_T}$ac_cv_func_getgid" >&6 19931if test $ac_cv_func_getgid = yes; then 19932 19933cat >>confdefs.h <<_ACEOF 19934#define HAVE_GETGID 1 19935_ACEOF 19936 19937else 19938 LIBOBJS="$LIBOBJS getgid.$ac_objext" 19939fi 19940echo "$as_me:$LINENO: checking for gethostname" >&5 19941echo $ECHO_N "checking for gethostname... $ECHO_C" >&6 19942if test "${ac_cv_func_gethostname+set}" = set; then 19943 echo $ECHO_N "(cached) $ECHO_C" >&6 19944else 19945 cat >conftest.$ac_ext <<_ACEOF 19946#line $LINENO "configure" 19947#include "confdefs.h" 19948/* System header to define __stub macros and hopefully few prototypes, 19949 which can conflict with char gethostname (); below. */ 19950#include <assert.h> 19951/* Override any gcc2 internal prototype to avoid an error. */ 19952#ifdef __cplusplus 19953extern "C" 19954#endif 19955/* We use char because int might match the return type of a gcc2 19956 builtin and then its argument prototype would still apply. */ 19957char gethostname (); 19958char (*f) (); 19959 19960#ifdef F77_DUMMY_MAIN 19961# ifdef __cplusplus 19962 extern "C" 19963# endif 19964 int F77_DUMMY_MAIN() { return 1; } 19965#endif 19966int 19967main () 19968{ 19969/* The GNU C library defines this for functions which it implements 19970 to always fail with ENOSYS. Some functions are actually named 19971 something starting with __ and the normal name is an alias. */ 19972#if defined (__stub_gethostname) || defined (__stub___gethostname) 19973choke me 19974#else 19975f = gethostname; 19976#endif 19977 19978 ; 19979 return 0; 19980} 19981_ACEOF 19982rm -f conftest.$ac_objext conftest$ac_exeext 19983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19984 (eval $ac_link) 2>&5 19985 ac_status=$? 19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19987 (exit $ac_status); } && 19988 { ac_try='test -s conftest$ac_exeext' 19989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19990 (eval $ac_try) 2>&5 19991 ac_status=$? 19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19993 (exit $ac_status); }; }; then 19994 ac_cv_func_gethostname=yes 19995else 19996 echo "$as_me: failed program was:" >&5 19997cat conftest.$ac_ext >&5 19998ac_cv_func_gethostname=no 19999fi 20000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20001fi 20002echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5 20003echo "${ECHO_T}$ac_cv_func_gethostname" >&6 20004if test $ac_cv_func_gethostname = yes; then 20005 20006cat >>confdefs.h <<_ACEOF 20007#define HAVE_GETHOSTNAME 1 20008_ACEOF 20009 20010else 20011 LIBOBJS="$LIBOBJS gethostname.$ac_objext" 20012fi 20013echo "$as_me:$LINENO: checking for getifaddrs" >&5 20014echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6 20015if test "${ac_cv_func_getifaddrs+set}" = set; then 20016 echo $ECHO_N "(cached) $ECHO_C" >&6 20017else 20018 cat >conftest.$ac_ext <<_ACEOF 20019#line $LINENO "configure" 20020#include "confdefs.h" 20021/* System header to define __stub macros and hopefully few prototypes, 20022 which can conflict with char getifaddrs (); below. */ 20023#include <assert.h> 20024/* Override any gcc2 internal prototype to avoid an error. */ 20025#ifdef __cplusplus 20026extern "C" 20027#endif 20028/* We use char because int might match the return type of a gcc2 20029 builtin and then its argument prototype would still apply. */ 20030char getifaddrs (); 20031char (*f) (); 20032 20033#ifdef F77_DUMMY_MAIN 20034# ifdef __cplusplus 20035 extern "C" 20036# endif 20037 int F77_DUMMY_MAIN() { return 1; } 20038#endif 20039int 20040main () 20041{ 20042/* The GNU C library defines this for functions which it implements 20043 to always fail with ENOSYS. Some functions are actually named 20044 something starting with __ and the normal name is an alias. */ 20045#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs) 20046choke me 20047#else 20048f = getifaddrs; 20049#endif 20050 20051 ; 20052 return 0; 20053} 20054_ACEOF 20055rm -f conftest.$ac_objext conftest$ac_exeext 20056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20057 (eval $ac_link) 2>&5 20058 ac_status=$? 20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20060 (exit $ac_status); } && 20061 { ac_try='test -s conftest$ac_exeext' 20062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20063 (eval $ac_try) 2>&5 20064 ac_status=$? 20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20066 (exit $ac_status); }; }; then 20067 ac_cv_func_getifaddrs=yes 20068else 20069 echo "$as_me: failed program was:" >&5 20070cat conftest.$ac_ext >&5 20071ac_cv_func_getifaddrs=no 20072fi 20073rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20074fi 20075echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 20076echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6 20077if test $ac_cv_func_getifaddrs = yes; then 20078 20079cat >>confdefs.h <<_ACEOF 20080#define HAVE_GETIFADDRS 1 20081_ACEOF 20082 20083else 20084 LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" 20085fi 20086echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5 20087echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6 20088if test "${ac_cv_func_getipnodebyaddr+set}" = set; then 20089 echo $ECHO_N "(cached) $ECHO_C" >&6 20090else 20091 cat >conftest.$ac_ext <<_ACEOF 20092#line $LINENO "configure" 20093#include "confdefs.h" 20094/* System header to define __stub macros and hopefully few prototypes, 20095 which can conflict with char getipnodebyaddr (); below. */ 20096#include <assert.h> 20097/* Override any gcc2 internal prototype to avoid an error. */ 20098#ifdef __cplusplus 20099extern "C" 20100#endif 20101/* We use char because int might match the return type of a gcc2 20102 builtin and then its argument prototype would still apply. */ 20103char getipnodebyaddr (); 20104char (*f) (); 20105 20106#ifdef F77_DUMMY_MAIN 20107# ifdef __cplusplus 20108 extern "C" 20109# endif 20110 int F77_DUMMY_MAIN() { return 1; } 20111#endif 20112int 20113main () 20114{ 20115/* The GNU C library defines this for functions which it implements 20116 to always fail with ENOSYS. Some functions are actually named 20117 something starting with __ and the normal name is an alias. */ 20118#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr) 20119choke me 20120#else 20121f = getipnodebyaddr; 20122#endif 20123 20124 ; 20125 return 0; 20126} 20127_ACEOF 20128rm -f conftest.$ac_objext conftest$ac_exeext 20129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20130 (eval $ac_link) 2>&5 20131 ac_status=$? 20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20133 (exit $ac_status); } && 20134 { ac_try='test -s conftest$ac_exeext' 20135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20136 (eval $ac_try) 2>&5 20137 ac_status=$? 20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20139 (exit $ac_status); }; }; then 20140 ac_cv_func_getipnodebyaddr=yes 20141else 20142 echo "$as_me: failed program was:" >&5 20143cat conftest.$ac_ext >&5 20144ac_cv_func_getipnodebyaddr=no 20145fi 20146rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20147fi 20148echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5 20149echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6 20150if test $ac_cv_func_getipnodebyaddr = yes; then 20151 20152cat >>confdefs.h <<_ACEOF 20153#define HAVE_GETIPNODEBYADDR 1 20154_ACEOF 20155 20156else 20157 LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" 20158fi 20159echo "$as_me:$LINENO: checking for getipnodebyname" >&5 20160echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6 20161if test "${ac_cv_func_getipnodebyname+set}" = set; then 20162 echo $ECHO_N "(cached) $ECHO_C" >&6 20163else 20164 cat >conftest.$ac_ext <<_ACEOF 20165#line $LINENO "configure" 20166#include "confdefs.h" 20167/* System header to define __stub macros and hopefully few prototypes, 20168 which can conflict with char getipnodebyname (); below. */ 20169#include <assert.h> 20170/* Override any gcc2 internal prototype to avoid an error. */ 20171#ifdef __cplusplus 20172extern "C" 20173#endif 20174/* We use char because int might match the return type of a gcc2 20175 builtin and then its argument prototype would still apply. */ 20176char getipnodebyname (); 20177char (*f) (); 20178 20179#ifdef F77_DUMMY_MAIN 20180# ifdef __cplusplus 20181 extern "C" 20182# endif 20183 int F77_DUMMY_MAIN() { return 1; } 20184#endif 20185int 20186main () 20187{ 20188/* The GNU C library defines this for functions which it implements 20189 to always fail with ENOSYS. Some functions are actually named 20190 something starting with __ and the normal name is an alias. */ 20191#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname) 20192choke me 20193#else 20194f = getipnodebyname; 20195#endif 20196 20197 ; 20198 return 0; 20199} 20200_ACEOF 20201rm -f conftest.$ac_objext conftest$ac_exeext 20202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20203 (eval $ac_link) 2>&5 20204 ac_status=$? 20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20206 (exit $ac_status); } && 20207 { ac_try='test -s conftest$ac_exeext' 20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20209 (eval $ac_try) 2>&5 20210 ac_status=$? 20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20212 (exit $ac_status); }; }; then 20213 ac_cv_func_getipnodebyname=yes 20214else 20215 echo "$as_me: failed program was:" >&5 20216cat conftest.$ac_ext >&5 20217ac_cv_func_getipnodebyname=no 20218fi 20219rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20220fi 20221echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5 20222echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6 20223if test $ac_cv_func_getipnodebyname = yes; then 20224 20225cat >>confdefs.h <<_ACEOF 20226#define HAVE_GETIPNODEBYNAME 1 20227_ACEOF 20228 20229else 20230 LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" 20231fi 20232echo "$as_me:$LINENO: checking for getopt" >&5 20233echo $ECHO_N "checking for getopt... $ECHO_C" >&6 20234if test "${ac_cv_func_getopt+set}" = set; then 20235 echo $ECHO_N "(cached) $ECHO_C" >&6 20236else 20237 cat >conftest.$ac_ext <<_ACEOF 20238#line $LINENO "configure" 20239#include "confdefs.h" 20240/* System header to define __stub macros and hopefully few prototypes, 20241 which can conflict with char getopt (); below. */ 20242#include <assert.h> 20243/* Override any gcc2 internal prototype to avoid an error. */ 20244#ifdef __cplusplus 20245extern "C" 20246#endif 20247/* We use char because int might match the return type of a gcc2 20248 builtin and then its argument prototype would still apply. */ 20249char getopt (); 20250char (*f) (); 20251 20252#ifdef F77_DUMMY_MAIN 20253# ifdef __cplusplus 20254 extern "C" 20255# endif 20256 int F77_DUMMY_MAIN() { return 1; } 20257#endif 20258int 20259main () 20260{ 20261/* The GNU C library defines this for functions which it implements 20262 to always fail with ENOSYS. Some functions are actually named 20263 something starting with __ and the normal name is an alias. */ 20264#if defined (__stub_getopt) || defined (__stub___getopt) 20265choke me 20266#else 20267f = getopt; 20268#endif 20269 20270 ; 20271 return 0; 20272} 20273_ACEOF 20274rm -f conftest.$ac_objext conftest$ac_exeext 20275if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20276 (eval $ac_link) 2>&5 20277 ac_status=$? 20278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20279 (exit $ac_status); } && 20280 { ac_try='test -s conftest$ac_exeext' 20281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20282 (eval $ac_try) 2>&5 20283 ac_status=$? 20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20285 (exit $ac_status); }; }; then 20286 ac_cv_func_getopt=yes 20287else 20288 echo "$as_me: failed program was:" >&5 20289cat conftest.$ac_ext >&5 20290ac_cv_func_getopt=no 20291fi 20292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20293fi 20294echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5 20295echo "${ECHO_T}$ac_cv_func_getopt" >&6 20296if test $ac_cv_func_getopt = yes; then 20297 20298cat >>confdefs.h <<_ACEOF 20299#define HAVE_GETOPT 1 20300_ACEOF 20301 20302else 20303 LIBOBJS="$LIBOBJS getopt.$ac_objext" 20304fi 20305echo "$as_me:$LINENO: checking for gettimeofday" >&5 20306echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 20307if test "${ac_cv_func_gettimeofday+set}" = set; then 20308 echo $ECHO_N "(cached) $ECHO_C" >&6 20309else 20310 cat >conftest.$ac_ext <<_ACEOF 20311#line $LINENO "configure" 20312#include "confdefs.h" 20313/* System header to define __stub macros and hopefully few prototypes, 20314 which can conflict with char gettimeofday (); below. */ 20315#include <assert.h> 20316/* Override any gcc2 internal prototype to avoid an error. */ 20317#ifdef __cplusplus 20318extern "C" 20319#endif 20320/* We use char because int might match the return type of a gcc2 20321 builtin and then its argument prototype would still apply. */ 20322char gettimeofday (); 20323char (*f) (); 20324 20325#ifdef F77_DUMMY_MAIN 20326# ifdef __cplusplus 20327 extern "C" 20328# endif 20329 int F77_DUMMY_MAIN() { return 1; } 20330#endif 20331int 20332main () 20333{ 20334/* The GNU C library defines this for functions which it implements 20335 to always fail with ENOSYS. Some functions are actually named 20336 something starting with __ and the normal name is an alias. */ 20337#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 20338choke me 20339#else 20340f = gettimeofday; 20341#endif 20342 20343 ; 20344 return 0; 20345} 20346_ACEOF 20347rm -f conftest.$ac_objext conftest$ac_exeext 20348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20349 (eval $ac_link) 2>&5 20350 ac_status=$? 20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20352 (exit $ac_status); } && 20353 { ac_try='test -s conftest$ac_exeext' 20354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20355 (eval $ac_try) 2>&5 20356 ac_status=$? 20357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20358 (exit $ac_status); }; }; then 20359 ac_cv_func_gettimeofday=yes 20360else 20361 echo "$as_me: failed program was:" >&5 20362cat conftest.$ac_ext >&5 20363ac_cv_func_gettimeofday=no 20364fi 20365rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20366fi 20367echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 20368echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 20369if test $ac_cv_func_gettimeofday = yes; then 20370 20371cat >>confdefs.h <<_ACEOF 20372#define HAVE_GETTIMEOFDAY 1 20373_ACEOF 20374 20375else 20376 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 20377fi 20378echo "$as_me:$LINENO: checking for getuid" >&5 20379echo $ECHO_N "checking for getuid... $ECHO_C" >&6 20380if test "${ac_cv_func_getuid+set}" = set; then 20381 echo $ECHO_N "(cached) $ECHO_C" >&6 20382else 20383 cat >conftest.$ac_ext <<_ACEOF 20384#line $LINENO "configure" 20385#include "confdefs.h" 20386/* System header to define __stub macros and hopefully few prototypes, 20387 which can conflict with char getuid (); below. */ 20388#include <assert.h> 20389/* Override any gcc2 internal prototype to avoid an error. */ 20390#ifdef __cplusplus 20391extern "C" 20392#endif 20393/* We use char because int might match the return type of a gcc2 20394 builtin and then its argument prototype would still apply. */ 20395char getuid (); 20396char (*f) (); 20397 20398#ifdef F77_DUMMY_MAIN 20399# ifdef __cplusplus 20400 extern "C" 20401# endif 20402 int F77_DUMMY_MAIN() { return 1; } 20403#endif 20404int 20405main () 20406{ 20407/* The GNU C library defines this for functions which it implements 20408 to always fail with ENOSYS. Some functions are actually named 20409 something starting with __ and the normal name is an alias. */ 20410#if defined (__stub_getuid) || defined (__stub___getuid) 20411choke me 20412#else 20413f = getuid; 20414#endif 20415 20416 ; 20417 return 0; 20418} 20419_ACEOF 20420rm -f conftest.$ac_objext conftest$ac_exeext 20421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20422 (eval $ac_link) 2>&5 20423 ac_status=$? 20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20425 (exit $ac_status); } && 20426 { ac_try='test -s conftest$ac_exeext' 20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20428 (eval $ac_try) 2>&5 20429 ac_status=$? 20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20431 (exit $ac_status); }; }; then 20432 ac_cv_func_getuid=yes 20433else 20434 echo "$as_me: failed program was:" >&5 20435cat conftest.$ac_ext >&5 20436ac_cv_func_getuid=no 20437fi 20438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20439fi 20440echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5 20441echo "${ECHO_T}$ac_cv_func_getuid" >&6 20442if test $ac_cv_func_getuid = yes; then 20443 20444cat >>confdefs.h <<_ACEOF 20445#define HAVE_GETUID 1 20446_ACEOF 20447 20448else 20449 LIBOBJS="$LIBOBJS getuid.$ac_objext" 20450fi 20451echo "$as_me:$LINENO: checking for getusershell" >&5 20452echo $ECHO_N "checking for getusershell... $ECHO_C" >&6 20453if test "${ac_cv_func_getusershell+set}" = set; then 20454 echo $ECHO_N "(cached) $ECHO_C" >&6 20455else 20456 cat >conftest.$ac_ext <<_ACEOF 20457#line $LINENO "configure" 20458#include "confdefs.h" 20459/* System header to define __stub macros and hopefully few prototypes, 20460 which can conflict with char getusershell (); below. */ 20461#include <assert.h> 20462/* Override any gcc2 internal prototype to avoid an error. */ 20463#ifdef __cplusplus 20464extern "C" 20465#endif 20466/* We use char because int might match the return type of a gcc2 20467 builtin and then its argument prototype would still apply. */ 20468char getusershell (); 20469char (*f) (); 20470 20471#ifdef F77_DUMMY_MAIN 20472# ifdef __cplusplus 20473 extern "C" 20474# endif 20475 int F77_DUMMY_MAIN() { return 1; } 20476#endif 20477int 20478main () 20479{ 20480/* The GNU C library defines this for functions which it implements 20481 to always fail with ENOSYS. Some functions are actually named 20482 something starting with __ and the normal name is an alias. */ 20483#if defined (__stub_getusershell) || defined (__stub___getusershell) 20484choke me 20485#else 20486f = getusershell; 20487#endif 20488 20489 ; 20490 return 0; 20491} 20492_ACEOF 20493rm -f conftest.$ac_objext conftest$ac_exeext 20494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20495 (eval $ac_link) 2>&5 20496 ac_status=$? 20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20498 (exit $ac_status); } && 20499 { ac_try='test -s conftest$ac_exeext' 20500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20501 (eval $ac_try) 2>&5 20502 ac_status=$? 20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20504 (exit $ac_status); }; }; then 20505 ac_cv_func_getusershell=yes 20506else 20507 echo "$as_me: failed program was:" >&5 20508cat conftest.$ac_ext >&5 20509ac_cv_func_getusershell=no 20510fi 20511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20512fi 20513echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5 20514echo "${ECHO_T}$ac_cv_func_getusershell" >&6 20515if test $ac_cv_func_getusershell = yes; then 20516 20517cat >>confdefs.h <<_ACEOF 20518#define HAVE_GETUSERSHELL 1 20519_ACEOF 20520 20521else 20522 LIBOBJS="$LIBOBJS getusershell.$ac_objext" 20523fi 20524echo "$as_me:$LINENO: checking for initgroups" >&5 20525echo $ECHO_N "checking for initgroups... $ECHO_C" >&6 20526if test "${ac_cv_func_initgroups+set}" = set; then 20527 echo $ECHO_N "(cached) $ECHO_C" >&6 20528else 20529 cat >conftest.$ac_ext <<_ACEOF 20530#line $LINENO "configure" 20531#include "confdefs.h" 20532/* System header to define __stub macros and hopefully few prototypes, 20533 which can conflict with char initgroups (); below. */ 20534#include <assert.h> 20535/* Override any gcc2 internal prototype to avoid an error. */ 20536#ifdef __cplusplus 20537extern "C" 20538#endif 20539/* We use char because int might match the return type of a gcc2 20540 builtin and then its argument prototype would still apply. */ 20541char initgroups (); 20542char (*f) (); 20543 20544#ifdef F77_DUMMY_MAIN 20545# ifdef __cplusplus 20546 extern "C" 20547# endif 20548 int F77_DUMMY_MAIN() { return 1; } 20549#endif 20550int 20551main () 20552{ 20553/* The GNU C library defines this for functions which it implements 20554 to always fail with ENOSYS. Some functions are actually named 20555 something starting with __ and the normal name is an alias. */ 20556#if defined (__stub_initgroups) || defined (__stub___initgroups) 20557choke me 20558#else 20559f = initgroups; 20560#endif 20561 20562 ; 20563 return 0; 20564} 20565_ACEOF 20566rm -f conftest.$ac_objext conftest$ac_exeext 20567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20568 (eval $ac_link) 2>&5 20569 ac_status=$? 20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20571 (exit $ac_status); } && 20572 { ac_try='test -s conftest$ac_exeext' 20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20574 (eval $ac_try) 2>&5 20575 ac_status=$? 20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20577 (exit $ac_status); }; }; then 20578 ac_cv_func_initgroups=yes 20579else 20580 echo "$as_me: failed program was:" >&5 20581cat conftest.$ac_ext >&5 20582ac_cv_func_initgroups=no 20583fi 20584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20585fi 20586echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5 20587echo "${ECHO_T}$ac_cv_func_initgroups" >&6 20588if test $ac_cv_func_initgroups = yes; then 20589 20590cat >>confdefs.h <<_ACEOF 20591#define HAVE_INITGROUPS 1 20592_ACEOF 20593 20594else 20595 LIBOBJS="$LIBOBJS initgroups.$ac_objext" 20596fi 20597echo "$as_me:$LINENO: checking for innetgr" >&5 20598echo $ECHO_N "checking for innetgr... $ECHO_C" >&6 20599if test "${ac_cv_func_innetgr+set}" = set; then 20600 echo $ECHO_N "(cached) $ECHO_C" >&6 20601else 20602 cat >conftest.$ac_ext <<_ACEOF 20603#line $LINENO "configure" 20604#include "confdefs.h" 20605/* System header to define __stub macros and hopefully few prototypes, 20606 which can conflict with char innetgr (); below. */ 20607#include <assert.h> 20608/* Override any gcc2 internal prototype to avoid an error. */ 20609#ifdef __cplusplus 20610extern "C" 20611#endif 20612/* We use char because int might match the return type of a gcc2 20613 builtin and then its argument prototype would still apply. */ 20614char innetgr (); 20615char (*f) (); 20616 20617#ifdef F77_DUMMY_MAIN 20618# ifdef __cplusplus 20619 extern "C" 20620# endif 20621 int F77_DUMMY_MAIN() { return 1; } 20622#endif 20623int 20624main () 20625{ 20626/* The GNU C library defines this for functions which it implements 20627 to always fail with ENOSYS. Some functions are actually named 20628 something starting with __ and the normal name is an alias. */ 20629#if defined (__stub_innetgr) || defined (__stub___innetgr) 20630choke me 20631#else 20632f = innetgr; 20633#endif 20634 20635 ; 20636 return 0; 20637} 20638_ACEOF 20639rm -f conftest.$ac_objext conftest$ac_exeext 20640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20641 (eval $ac_link) 2>&5 20642 ac_status=$? 20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20644 (exit $ac_status); } && 20645 { ac_try='test -s conftest$ac_exeext' 20646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20647 (eval $ac_try) 2>&5 20648 ac_status=$? 20649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20650 (exit $ac_status); }; }; then 20651 ac_cv_func_innetgr=yes 20652else 20653 echo "$as_me: failed program was:" >&5 20654cat conftest.$ac_ext >&5 20655ac_cv_func_innetgr=no 20656fi 20657rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20658fi 20659echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5 20660echo "${ECHO_T}$ac_cv_func_innetgr" >&6 20661if test $ac_cv_func_innetgr = yes; then 20662 20663cat >>confdefs.h <<_ACEOF 20664#define HAVE_INNETGR 1 20665_ACEOF 20666 20667else 20668 LIBOBJS="$LIBOBJS innetgr.$ac_objext" 20669fi 20670echo "$as_me:$LINENO: checking for iruserok" >&5 20671echo $ECHO_N "checking for iruserok... $ECHO_C" >&6 20672if test "${ac_cv_func_iruserok+set}" = set; then 20673 echo $ECHO_N "(cached) $ECHO_C" >&6 20674else 20675 cat >conftest.$ac_ext <<_ACEOF 20676#line $LINENO "configure" 20677#include "confdefs.h" 20678/* System header to define __stub macros and hopefully few prototypes, 20679 which can conflict with char iruserok (); below. */ 20680#include <assert.h> 20681/* Override any gcc2 internal prototype to avoid an error. */ 20682#ifdef __cplusplus 20683extern "C" 20684#endif 20685/* We use char because int might match the return type of a gcc2 20686 builtin and then its argument prototype would still apply. */ 20687char iruserok (); 20688char (*f) (); 20689 20690#ifdef F77_DUMMY_MAIN 20691# ifdef __cplusplus 20692 extern "C" 20693# endif 20694 int F77_DUMMY_MAIN() { return 1; } 20695#endif 20696int 20697main () 20698{ 20699/* The GNU C library defines this for functions which it implements 20700 to always fail with ENOSYS. Some functions are actually named 20701 something starting with __ and the normal name is an alias. */ 20702#if defined (__stub_iruserok) || defined (__stub___iruserok) 20703choke me 20704#else 20705f = iruserok; 20706#endif 20707 20708 ; 20709 return 0; 20710} 20711_ACEOF 20712rm -f conftest.$ac_objext conftest$ac_exeext 20713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20714 (eval $ac_link) 2>&5 20715 ac_status=$? 20716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20717 (exit $ac_status); } && 20718 { ac_try='test -s conftest$ac_exeext' 20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20720 (eval $ac_try) 2>&5 20721 ac_status=$? 20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20723 (exit $ac_status); }; }; then 20724 ac_cv_func_iruserok=yes 20725else 20726 echo "$as_me: failed program was:" >&5 20727cat conftest.$ac_ext >&5 20728ac_cv_func_iruserok=no 20729fi 20730rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20731fi 20732echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5 20733echo "${ECHO_T}$ac_cv_func_iruserok" >&6 20734if test $ac_cv_func_iruserok = yes; then 20735 20736cat >>confdefs.h <<_ACEOF 20737#define HAVE_IRUSEROK 1 20738_ACEOF 20739 20740else 20741 LIBOBJS="$LIBOBJS iruserok.$ac_objext" 20742fi 20743echo "$as_me:$LINENO: checking for localtime_r" >&5 20744echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 20745if test "${ac_cv_func_localtime_r+set}" = set; then 20746 echo $ECHO_N "(cached) $ECHO_C" >&6 20747else 20748 cat >conftest.$ac_ext <<_ACEOF 20749#line $LINENO "configure" 20750#include "confdefs.h" 20751/* System header to define __stub macros and hopefully few prototypes, 20752 which can conflict with char localtime_r (); below. */ 20753#include <assert.h> 20754/* Override any gcc2 internal prototype to avoid an error. */ 20755#ifdef __cplusplus 20756extern "C" 20757#endif 20758/* We use char because int might match the return type of a gcc2 20759 builtin and then its argument prototype would still apply. */ 20760char localtime_r (); 20761char (*f) (); 20762 20763#ifdef F77_DUMMY_MAIN 20764# ifdef __cplusplus 20765 extern "C" 20766# endif 20767 int F77_DUMMY_MAIN() { return 1; } 20768#endif 20769int 20770main () 20771{ 20772/* The GNU C library defines this for functions which it implements 20773 to always fail with ENOSYS. Some functions are actually named 20774 something starting with __ and the normal name is an alias. */ 20775#if defined (__stub_localtime_r) || defined (__stub___localtime_r) 20776choke me 20777#else 20778f = localtime_r; 20779#endif 20780 20781 ; 20782 return 0; 20783} 20784_ACEOF 20785rm -f conftest.$ac_objext conftest$ac_exeext 20786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20787 (eval $ac_link) 2>&5 20788 ac_status=$? 20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20790 (exit $ac_status); } && 20791 { ac_try='test -s conftest$ac_exeext' 20792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20793 (eval $ac_try) 2>&5 20794 ac_status=$? 20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20796 (exit $ac_status); }; }; then 20797 ac_cv_func_localtime_r=yes 20798else 20799 echo "$as_me: failed program was:" >&5 20800cat conftest.$ac_ext >&5 20801ac_cv_func_localtime_r=no 20802fi 20803rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20804fi 20805echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 20806echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 20807if test $ac_cv_func_localtime_r = yes; then 20808 20809cat >>confdefs.h <<_ACEOF 20810#define HAVE_LOCALTIME_R 1 20811_ACEOF 20812 20813else 20814 LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 20815fi 20816echo "$as_me:$LINENO: checking for lstat" >&5 20817echo $ECHO_N "checking for lstat... $ECHO_C" >&6 20818if test "${ac_cv_func_lstat+set}" = set; then 20819 echo $ECHO_N "(cached) $ECHO_C" >&6 20820else 20821 cat >conftest.$ac_ext <<_ACEOF 20822#line $LINENO "configure" 20823#include "confdefs.h" 20824/* System header to define __stub macros and hopefully few prototypes, 20825 which can conflict with char lstat (); below. */ 20826#include <assert.h> 20827/* Override any gcc2 internal prototype to avoid an error. */ 20828#ifdef __cplusplus 20829extern "C" 20830#endif 20831/* We use char because int might match the return type of a gcc2 20832 builtin and then its argument prototype would still apply. */ 20833char lstat (); 20834char (*f) (); 20835 20836#ifdef F77_DUMMY_MAIN 20837# ifdef __cplusplus 20838 extern "C" 20839# endif 20840 int F77_DUMMY_MAIN() { return 1; } 20841#endif 20842int 20843main () 20844{ 20845/* The GNU C library defines this for functions which it implements 20846 to always fail with ENOSYS. Some functions are actually named 20847 something starting with __ and the normal name is an alias. */ 20848#if defined (__stub_lstat) || defined (__stub___lstat) 20849choke me 20850#else 20851f = lstat; 20852#endif 20853 20854 ; 20855 return 0; 20856} 20857_ACEOF 20858rm -f conftest.$ac_objext conftest$ac_exeext 20859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20860 (eval $ac_link) 2>&5 20861 ac_status=$? 20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20863 (exit $ac_status); } && 20864 { ac_try='test -s conftest$ac_exeext' 20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20866 (eval $ac_try) 2>&5 20867 ac_status=$? 20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20869 (exit $ac_status); }; }; then 20870 ac_cv_func_lstat=yes 20871else 20872 echo "$as_me: failed program was:" >&5 20873cat conftest.$ac_ext >&5 20874ac_cv_func_lstat=no 20875fi 20876rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20877fi 20878echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5 20879echo "${ECHO_T}$ac_cv_func_lstat" >&6 20880if test $ac_cv_func_lstat = yes; then 20881 20882cat >>confdefs.h <<_ACEOF 20883#define HAVE_LSTAT 1 20884_ACEOF 20885 20886else 20887 LIBOBJS="$LIBOBJS lstat.$ac_objext" 20888fi 20889echo "$as_me:$LINENO: checking for memmove" >&5 20890echo $ECHO_N "checking for memmove... $ECHO_C" >&6 20891if test "${ac_cv_func_memmove+set}" = set; then 20892 echo $ECHO_N "(cached) $ECHO_C" >&6 20893else 20894 cat >conftest.$ac_ext <<_ACEOF 20895#line $LINENO "configure" 20896#include "confdefs.h" 20897/* System header to define __stub macros and hopefully few prototypes, 20898 which can conflict with char memmove (); below. */ 20899#include <assert.h> 20900/* Override any gcc2 internal prototype to avoid an error. */ 20901#ifdef __cplusplus 20902extern "C" 20903#endif 20904/* We use char because int might match the return type of a gcc2 20905 builtin and then its argument prototype would still apply. */ 20906char memmove (); 20907char (*f) (); 20908 20909#ifdef F77_DUMMY_MAIN 20910# ifdef __cplusplus 20911 extern "C" 20912# endif 20913 int F77_DUMMY_MAIN() { return 1; } 20914#endif 20915int 20916main () 20917{ 20918/* The GNU C library defines this for functions which it implements 20919 to always fail with ENOSYS. Some functions are actually named 20920 something starting with __ and the normal name is an alias. */ 20921#if defined (__stub_memmove) || defined (__stub___memmove) 20922choke me 20923#else 20924f = memmove; 20925#endif 20926 20927 ; 20928 return 0; 20929} 20930_ACEOF 20931rm -f conftest.$ac_objext conftest$ac_exeext 20932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20933 (eval $ac_link) 2>&5 20934 ac_status=$? 20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20936 (exit $ac_status); } && 20937 { ac_try='test -s conftest$ac_exeext' 20938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20939 (eval $ac_try) 2>&5 20940 ac_status=$? 20941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20942 (exit $ac_status); }; }; then 20943 ac_cv_func_memmove=yes 20944else 20945 echo "$as_me: failed program was:" >&5 20946cat conftest.$ac_ext >&5 20947ac_cv_func_memmove=no 20948fi 20949rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20950fi 20951echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5 20952echo "${ECHO_T}$ac_cv_func_memmove" >&6 20953if test $ac_cv_func_memmove = yes; then 20954 20955cat >>confdefs.h <<_ACEOF 20956#define HAVE_MEMMOVE 1 20957_ACEOF 20958 20959else 20960 LIBOBJS="$LIBOBJS memmove.$ac_objext" 20961fi 20962echo "$as_me:$LINENO: checking for mkstemp" >&5 20963echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 20964if test "${ac_cv_func_mkstemp+set}" = set; then 20965 echo $ECHO_N "(cached) $ECHO_C" >&6 20966else 20967 cat >conftest.$ac_ext <<_ACEOF 20968#line $LINENO "configure" 20969#include "confdefs.h" 20970/* System header to define __stub macros and hopefully few prototypes, 20971 which can conflict with char mkstemp (); below. */ 20972#include <assert.h> 20973/* Override any gcc2 internal prototype to avoid an error. */ 20974#ifdef __cplusplus 20975extern "C" 20976#endif 20977/* We use char because int might match the return type of a gcc2 20978 builtin and then its argument prototype would still apply. */ 20979char mkstemp (); 20980char (*f) (); 20981 20982#ifdef F77_DUMMY_MAIN 20983# ifdef __cplusplus 20984 extern "C" 20985# endif 20986 int F77_DUMMY_MAIN() { return 1; } 20987#endif 20988int 20989main () 20990{ 20991/* The GNU C library defines this for functions which it implements 20992 to always fail with ENOSYS. Some functions are actually named 20993 something starting with __ and the normal name is an alias. */ 20994#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 20995choke me 20996#else 20997f = mkstemp; 20998#endif 20999 21000 ; 21001 return 0; 21002} 21003_ACEOF 21004rm -f conftest.$ac_objext conftest$ac_exeext 21005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21006 (eval $ac_link) 2>&5 21007 ac_status=$? 21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21009 (exit $ac_status); } && 21010 { ac_try='test -s conftest$ac_exeext' 21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21012 (eval $ac_try) 2>&5 21013 ac_status=$? 21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21015 (exit $ac_status); }; }; then 21016 ac_cv_func_mkstemp=yes 21017else 21018 echo "$as_me: failed program was:" >&5 21019cat conftest.$ac_ext >&5 21020ac_cv_func_mkstemp=no 21021fi 21022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21023fi 21024echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5 21025echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 21026if test $ac_cv_func_mkstemp = yes; then 21027 21028cat >>confdefs.h <<_ACEOF 21029#define HAVE_MKSTEMP 1 21030_ACEOF 21031 21032else 21033 LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 21034fi 21035echo "$as_me:$LINENO: checking for putenv" >&5 21036echo $ECHO_N "checking for putenv... $ECHO_C" >&6 21037if test "${ac_cv_func_putenv+set}" = set; then 21038 echo $ECHO_N "(cached) $ECHO_C" >&6 21039else 21040 cat >conftest.$ac_ext <<_ACEOF 21041#line $LINENO "configure" 21042#include "confdefs.h" 21043/* System header to define __stub macros and hopefully few prototypes, 21044 which can conflict with char putenv (); below. */ 21045#include <assert.h> 21046/* Override any gcc2 internal prototype to avoid an error. */ 21047#ifdef __cplusplus 21048extern "C" 21049#endif 21050/* We use char because int might match the return type of a gcc2 21051 builtin and then its argument prototype would still apply. */ 21052char putenv (); 21053char (*f) (); 21054 21055#ifdef F77_DUMMY_MAIN 21056# ifdef __cplusplus 21057 extern "C" 21058# endif 21059 int F77_DUMMY_MAIN() { return 1; } 21060#endif 21061int 21062main () 21063{ 21064/* The GNU C library defines this for functions which it implements 21065 to always fail with ENOSYS. Some functions are actually named 21066 something starting with __ and the normal name is an alias. */ 21067#if defined (__stub_putenv) || defined (__stub___putenv) 21068choke me 21069#else 21070f = putenv; 21071#endif 21072 21073 ; 21074 return 0; 21075} 21076_ACEOF 21077rm -f conftest.$ac_objext conftest$ac_exeext 21078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21079 (eval $ac_link) 2>&5 21080 ac_status=$? 21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21082 (exit $ac_status); } && 21083 { ac_try='test -s conftest$ac_exeext' 21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21085 (eval $ac_try) 2>&5 21086 ac_status=$? 21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21088 (exit $ac_status); }; }; then 21089 ac_cv_func_putenv=yes 21090else 21091 echo "$as_me: failed program was:" >&5 21092cat conftest.$ac_ext >&5 21093ac_cv_func_putenv=no 21094fi 21095rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21096fi 21097echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5 21098echo "${ECHO_T}$ac_cv_func_putenv" >&6 21099if test $ac_cv_func_putenv = yes; then 21100 21101cat >>confdefs.h <<_ACEOF 21102#define HAVE_PUTENV 1 21103_ACEOF 21104 21105else 21106 LIBOBJS="$LIBOBJS putenv.$ac_objext" 21107fi 21108echo "$as_me:$LINENO: checking for rcmd" >&5 21109echo $ECHO_N "checking for rcmd... $ECHO_C" >&6 21110if test "${ac_cv_func_rcmd+set}" = set; then 21111 echo $ECHO_N "(cached) $ECHO_C" >&6 21112else 21113 cat >conftest.$ac_ext <<_ACEOF 21114#line $LINENO "configure" 21115#include "confdefs.h" 21116/* System header to define __stub macros and hopefully few prototypes, 21117 which can conflict with char rcmd (); below. */ 21118#include <assert.h> 21119/* Override any gcc2 internal prototype to avoid an error. */ 21120#ifdef __cplusplus 21121extern "C" 21122#endif 21123/* We use char because int might match the return type of a gcc2 21124 builtin and then its argument prototype would still apply. */ 21125char rcmd (); 21126char (*f) (); 21127 21128#ifdef F77_DUMMY_MAIN 21129# ifdef __cplusplus 21130 extern "C" 21131# endif 21132 int F77_DUMMY_MAIN() { return 1; } 21133#endif 21134int 21135main () 21136{ 21137/* The GNU C library defines this for functions which it implements 21138 to always fail with ENOSYS. Some functions are actually named 21139 something starting with __ and the normal name is an alias. */ 21140#if defined (__stub_rcmd) || defined (__stub___rcmd) 21141choke me 21142#else 21143f = rcmd; 21144#endif 21145 21146 ; 21147 return 0; 21148} 21149_ACEOF 21150rm -f conftest.$ac_objext conftest$ac_exeext 21151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21152 (eval $ac_link) 2>&5 21153 ac_status=$? 21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21155 (exit $ac_status); } && 21156 { ac_try='test -s conftest$ac_exeext' 21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21158 (eval $ac_try) 2>&5 21159 ac_status=$? 21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21161 (exit $ac_status); }; }; then 21162 ac_cv_func_rcmd=yes 21163else 21164 echo "$as_me: failed program was:" >&5 21165cat conftest.$ac_ext >&5 21166ac_cv_func_rcmd=no 21167fi 21168rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21169fi 21170echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5 21171echo "${ECHO_T}$ac_cv_func_rcmd" >&6 21172if test $ac_cv_func_rcmd = yes; then 21173 21174cat >>confdefs.h <<_ACEOF 21175#define HAVE_RCMD 1 21176_ACEOF 21177 21178else 21179 LIBOBJS="$LIBOBJS rcmd.$ac_objext" 21180fi 21181echo "$as_me:$LINENO: checking for readv" >&5 21182echo $ECHO_N "checking for readv... $ECHO_C" >&6 21183if test "${ac_cv_func_readv+set}" = set; then 21184 echo $ECHO_N "(cached) $ECHO_C" >&6 21185else 21186 cat >conftest.$ac_ext <<_ACEOF 21187#line $LINENO "configure" 21188#include "confdefs.h" 21189/* System header to define __stub macros and hopefully few prototypes, 21190 which can conflict with char readv (); below. */ 21191#include <assert.h> 21192/* Override any gcc2 internal prototype to avoid an error. */ 21193#ifdef __cplusplus 21194extern "C" 21195#endif 21196/* We use char because int might match the return type of a gcc2 21197 builtin and then its argument prototype would still apply. */ 21198char readv (); 21199char (*f) (); 21200 21201#ifdef F77_DUMMY_MAIN 21202# ifdef __cplusplus 21203 extern "C" 21204# endif 21205 int F77_DUMMY_MAIN() { return 1; } 21206#endif 21207int 21208main () 21209{ 21210/* The GNU C library defines this for functions which it implements 21211 to always fail with ENOSYS. Some functions are actually named 21212 something starting with __ and the normal name is an alias. */ 21213#if defined (__stub_readv) || defined (__stub___readv) 21214choke me 21215#else 21216f = readv; 21217#endif 21218 21219 ; 21220 return 0; 21221} 21222_ACEOF 21223rm -f conftest.$ac_objext conftest$ac_exeext 21224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21225 (eval $ac_link) 2>&5 21226 ac_status=$? 21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21228 (exit $ac_status); } && 21229 { ac_try='test -s conftest$ac_exeext' 21230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21231 (eval $ac_try) 2>&5 21232 ac_status=$? 21233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21234 (exit $ac_status); }; }; then 21235 ac_cv_func_readv=yes 21236else 21237 echo "$as_me: failed program was:" >&5 21238cat conftest.$ac_ext >&5 21239ac_cv_func_readv=no 21240fi 21241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21242fi 21243echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5 21244echo "${ECHO_T}$ac_cv_func_readv" >&6 21245if test $ac_cv_func_readv = yes; then 21246 21247cat >>confdefs.h <<_ACEOF 21248#define HAVE_READV 1 21249_ACEOF 21250 21251else 21252 LIBOBJS="$LIBOBJS readv.$ac_objext" 21253fi 21254echo "$as_me:$LINENO: checking for recvmsg" >&5 21255echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6 21256if test "${ac_cv_func_recvmsg+set}" = set; then 21257 echo $ECHO_N "(cached) $ECHO_C" >&6 21258else 21259 cat >conftest.$ac_ext <<_ACEOF 21260#line $LINENO "configure" 21261#include "confdefs.h" 21262/* System header to define __stub macros and hopefully few prototypes, 21263 which can conflict with char recvmsg (); below. */ 21264#include <assert.h> 21265/* Override any gcc2 internal prototype to avoid an error. */ 21266#ifdef __cplusplus 21267extern "C" 21268#endif 21269/* We use char because int might match the return type of a gcc2 21270 builtin and then its argument prototype would still apply. */ 21271char recvmsg (); 21272char (*f) (); 21273 21274#ifdef F77_DUMMY_MAIN 21275# ifdef __cplusplus 21276 extern "C" 21277# endif 21278 int F77_DUMMY_MAIN() { return 1; } 21279#endif 21280int 21281main () 21282{ 21283/* The GNU C library defines this for functions which it implements 21284 to always fail with ENOSYS. Some functions are actually named 21285 something starting with __ and the normal name is an alias. */ 21286#if defined (__stub_recvmsg) || defined (__stub___recvmsg) 21287choke me 21288#else 21289f = recvmsg; 21290#endif 21291 21292 ; 21293 return 0; 21294} 21295_ACEOF 21296rm -f conftest.$ac_objext conftest$ac_exeext 21297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21298 (eval $ac_link) 2>&5 21299 ac_status=$? 21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21301 (exit $ac_status); } && 21302 { ac_try='test -s conftest$ac_exeext' 21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21304 (eval $ac_try) 2>&5 21305 ac_status=$? 21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21307 (exit $ac_status); }; }; then 21308 ac_cv_func_recvmsg=yes 21309else 21310 echo "$as_me: failed program was:" >&5 21311cat conftest.$ac_ext >&5 21312ac_cv_func_recvmsg=no 21313fi 21314rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21315fi 21316echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5 21317echo "${ECHO_T}$ac_cv_func_recvmsg" >&6 21318if test $ac_cv_func_recvmsg = yes; then 21319 21320cat >>confdefs.h <<_ACEOF 21321#define HAVE_RECVMSG 1 21322_ACEOF 21323 21324else 21325 LIBOBJS="$LIBOBJS recvmsg.$ac_objext" 21326fi 21327echo "$as_me:$LINENO: checking for sendmsg" >&5 21328echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6 21329if test "${ac_cv_func_sendmsg+set}" = set; then 21330 echo $ECHO_N "(cached) $ECHO_C" >&6 21331else 21332 cat >conftest.$ac_ext <<_ACEOF 21333#line $LINENO "configure" 21334#include "confdefs.h" 21335/* System header to define __stub macros and hopefully few prototypes, 21336 which can conflict with char sendmsg (); below. */ 21337#include <assert.h> 21338/* Override any gcc2 internal prototype to avoid an error. */ 21339#ifdef __cplusplus 21340extern "C" 21341#endif 21342/* We use char because int might match the return type of a gcc2 21343 builtin and then its argument prototype would still apply. */ 21344char sendmsg (); 21345char (*f) (); 21346 21347#ifdef F77_DUMMY_MAIN 21348# ifdef __cplusplus 21349 extern "C" 21350# endif 21351 int F77_DUMMY_MAIN() { return 1; } 21352#endif 21353int 21354main () 21355{ 21356/* The GNU C library defines this for functions which it implements 21357 to always fail with ENOSYS. Some functions are actually named 21358 something starting with __ and the normal name is an alias. */ 21359#if defined (__stub_sendmsg) || defined (__stub___sendmsg) 21360choke me 21361#else 21362f = sendmsg; 21363#endif 21364 21365 ; 21366 return 0; 21367} 21368_ACEOF 21369rm -f conftest.$ac_objext conftest$ac_exeext 21370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21371 (eval $ac_link) 2>&5 21372 ac_status=$? 21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21374 (exit $ac_status); } && 21375 { ac_try='test -s conftest$ac_exeext' 21376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21377 (eval $ac_try) 2>&5 21378 ac_status=$? 21379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21380 (exit $ac_status); }; }; then 21381 ac_cv_func_sendmsg=yes 21382else 21383 echo "$as_me: failed program was:" >&5 21384cat conftest.$ac_ext >&5 21385ac_cv_func_sendmsg=no 21386fi 21387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21388fi 21389echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5 21390echo "${ECHO_T}$ac_cv_func_sendmsg" >&6 21391if test $ac_cv_func_sendmsg = yes; then 21392 21393cat >>confdefs.h <<_ACEOF 21394#define HAVE_SENDMSG 1 21395_ACEOF 21396 21397else 21398 LIBOBJS="$LIBOBJS sendmsg.$ac_objext" 21399fi 21400echo "$as_me:$LINENO: checking for setegid" >&5 21401echo $ECHO_N "checking for setegid... $ECHO_C" >&6 21402if test "${ac_cv_func_setegid+set}" = set; then 21403 echo $ECHO_N "(cached) $ECHO_C" >&6 21404else 21405 cat >conftest.$ac_ext <<_ACEOF 21406#line $LINENO "configure" 21407#include "confdefs.h" 21408/* System header to define __stub macros and hopefully few prototypes, 21409 which can conflict with char setegid (); below. */ 21410#include <assert.h> 21411/* Override any gcc2 internal prototype to avoid an error. */ 21412#ifdef __cplusplus 21413extern "C" 21414#endif 21415/* We use char because int might match the return type of a gcc2 21416 builtin and then its argument prototype would still apply. */ 21417char setegid (); 21418char (*f) (); 21419 21420#ifdef F77_DUMMY_MAIN 21421# ifdef __cplusplus 21422 extern "C" 21423# endif 21424 int F77_DUMMY_MAIN() { return 1; } 21425#endif 21426int 21427main () 21428{ 21429/* The GNU C library defines this for functions which it implements 21430 to always fail with ENOSYS. Some functions are actually named 21431 something starting with __ and the normal name is an alias. */ 21432#if defined (__stub_setegid) || defined (__stub___setegid) 21433choke me 21434#else 21435f = setegid; 21436#endif 21437 21438 ; 21439 return 0; 21440} 21441_ACEOF 21442rm -f conftest.$ac_objext conftest$ac_exeext 21443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21444 (eval $ac_link) 2>&5 21445 ac_status=$? 21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21447 (exit $ac_status); } && 21448 { ac_try='test -s conftest$ac_exeext' 21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21450 (eval $ac_try) 2>&5 21451 ac_status=$? 21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21453 (exit $ac_status); }; }; then 21454 ac_cv_func_setegid=yes 21455else 21456 echo "$as_me: failed program was:" >&5 21457cat conftest.$ac_ext >&5 21458ac_cv_func_setegid=no 21459fi 21460rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21461fi 21462echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5 21463echo "${ECHO_T}$ac_cv_func_setegid" >&6 21464if test $ac_cv_func_setegid = yes; then 21465 21466cat >>confdefs.h <<_ACEOF 21467#define HAVE_SETEGID 1 21468_ACEOF 21469 21470else 21471 LIBOBJS="$LIBOBJS setegid.$ac_objext" 21472fi 21473echo "$as_me:$LINENO: checking for setenv" >&5 21474echo $ECHO_N "checking for setenv... $ECHO_C" >&6 21475if test "${ac_cv_func_setenv+set}" = set; then 21476 echo $ECHO_N "(cached) $ECHO_C" >&6 21477else 21478 cat >conftest.$ac_ext <<_ACEOF 21479#line $LINENO "configure" 21480#include "confdefs.h" 21481/* System header to define __stub macros and hopefully few prototypes, 21482 which can conflict with char setenv (); below. */ 21483#include <assert.h> 21484/* Override any gcc2 internal prototype to avoid an error. */ 21485#ifdef __cplusplus 21486extern "C" 21487#endif 21488/* We use char because int might match the return type of a gcc2 21489 builtin and then its argument prototype would still apply. */ 21490char setenv (); 21491char (*f) (); 21492 21493#ifdef F77_DUMMY_MAIN 21494# ifdef __cplusplus 21495 extern "C" 21496# endif 21497 int F77_DUMMY_MAIN() { return 1; } 21498#endif 21499int 21500main () 21501{ 21502/* The GNU C library defines this for functions which it implements 21503 to always fail with ENOSYS. Some functions are actually named 21504 something starting with __ and the normal name is an alias. */ 21505#if defined (__stub_setenv) || defined (__stub___setenv) 21506choke me 21507#else 21508f = setenv; 21509#endif 21510 21511 ; 21512 return 0; 21513} 21514_ACEOF 21515rm -f conftest.$ac_objext conftest$ac_exeext 21516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21517 (eval $ac_link) 2>&5 21518 ac_status=$? 21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21520 (exit $ac_status); } && 21521 { ac_try='test -s conftest$ac_exeext' 21522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21523 (eval $ac_try) 2>&5 21524 ac_status=$? 21525 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21526 (exit $ac_status); }; }; then 21527 ac_cv_func_setenv=yes 21528else 21529 echo "$as_me: failed program was:" >&5 21530cat conftest.$ac_ext >&5 21531ac_cv_func_setenv=no 21532fi 21533rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21534fi 21535echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5 21536echo "${ECHO_T}$ac_cv_func_setenv" >&6 21537if test $ac_cv_func_setenv = yes; then 21538 21539cat >>confdefs.h <<_ACEOF 21540#define HAVE_SETENV 1 21541_ACEOF 21542 21543else 21544 LIBOBJS="$LIBOBJS setenv.$ac_objext" 21545fi 21546echo "$as_me:$LINENO: checking for seteuid" >&5 21547echo $ECHO_N "checking for seteuid... $ECHO_C" >&6 21548if test "${ac_cv_func_seteuid+set}" = set; then 21549 echo $ECHO_N "(cached) $ECHO_C" >&6 21550else 21551 cat >conftest.$ac_ext <<_ACEOF 21552#line $LINENO "configure" 21553#include "confdefs.h" 21554/* System header to define __stub macros and hopefully few prototypes, 21555 which can conflict with char seteuid (); below. */ 21556#include <assert.h> 21557/* Override any gcc2 internal prototype to avoid an error. */ 21558#ifdef __cplusplus 21559extern "C" 21560#endif 21561/* We use char because int might match the return type of a gcc2 21562 builtin and then its argument prototype would still apply. */ 21563char seteuid (); 21564char (*f) (); 21565 21566#ifdef F77_DUMMY_MAIN 21567# ifdef __cplusplus 21568 extern "C" 21569# endif 21570 int F77_DUMMY_MAIN() { return 1; } 21571#endif 21572int 21573main () 21574{ 21575/* The GNU C library defines this for functions which it implements 21576 to always fail with ENOSYS. Some functions are actually named 21577 something starting with __ and the normal name is an alias. */ 21578#if defined (__stub_seteuid) || defined (__stub___seteuid) 21579choke me 21580#else 21581f = seteuid; 21582#endif 21583 21584 ; 21585 return 0; 21586} 21587_ACEOF 21588rm -f conftest.$ac_objext conftest$ac_exeext 21589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21590 (eval $ac_link) 2>&5 21591 ac_status=$? 21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21593 (exit $ac_status); } && 21594 { ac_try='test -s conftest$ac_exeext' 21595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21596 (eval $ac_try) 2>&5 21597 ac_status=$? 21598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21599 (exit $ac_status); }; }; then 21600 ac_cv_func_seteuid=yes 21601else 21602 echo "$as_me: failed program was:" >&5 21603cat conftest.$ac_ext >&5 21604ac_cv_func_seteuid=no 21605fi 21606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21607fi 21608echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5 21609echo "${ECHO_T}$ac_cv_func_seteuid" >&6 21610if test $ac_cv_func_seteuid = yes; then 21611 21612cat >>confdefs.h <<_ACEOF 21613#define HAVE_SETEUID 1 21614_ACEOF 21615 21616else 21617 LIBOBJS="$LIBOBJS seteuid.$ac_objext" 21618fi 21619echo "$as_me:$LINENO: checking for strcasecmp" >&5 21620echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 21621if test "${ac_cv_func_strcasecmp+set}" = set; then 21622 echo $ECHO_N "(cached) $ECHO_C" >&6 21623else 21624 cat >conftest.$ac_ext <<_ACEOF 21625#line $LINENO "configure" 21626#include "confdefs.h" 21627/* System header to define __stub macros and hopefully few prototypes, 21628 which can conflict with char strcasecmp (); below. */ 21629#include <assert.h> 21630/* Override any gcc2 internal prototype to avoid an error. */ 21631#ifdef __cplusplus 21632extern "C" 21633#endif 21634/* We use char because int might match the return type of a gcc2 21635 builtin and then its argument prototype would still apply. */ 21636char strcasecmp (); 21637char (*f) (); 21638 21639#ifdef F77_DUMMY_MAIN 21640# ifdef __cplusplus 21641 extern "C" 21642# endif 21643 int F77_DUMMY_MAIN() { return 1; } 21644#endif 21645int 21646main () 21647{ 21648/* The GNU C library defines this for functions which it implements 21649 to always fail with ENOSYS. Some functions are actually named 21650 something starting with __ and the normal name is an alias. */ 21651#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) 21652choke me 21653#else 21654f = strcasecmp; 21655#endif 21656 21657 ; 21658 return 0; 21659} 21660_ACEOF 21661rm -f conftest.$ac_objext conftest$ac_exeext 21662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21663 (eval $ac_link) 2>&5 21664 ac_status=$? 21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21666 (exit $ac_status); } && 21667 { ac_try='test -s conftest$ac_exeext' 21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21669 (eval $ac_try) 2>&5 21670 ac_status=$? 21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21672 (exit $ac_status); }; }; then 21673 ac_cv_func_strcasecmp=yes 21674else 21675 echo "$as_me: failed program was:" >&5 21676cat conftest.$ac_ext >&5 21677ac_cv_func_strcasecmp=no 21678fi 21679rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21680fi 21681echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 21682echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 21683if test $ac_cv_func_strcasecmp = yes; then 21684 21685cat >>confdefs.h <<_ACEOF 21686#define HAVE_STRCASECMP 1 21687_ACEOF 21688 21689else 21690 LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 21691fi 21692echo "$as_me:$LINENO: checking for strdup" >&5 21693echo $ECHO_N "checking for strdup... $ECHO_C" >&6 21694if test "${ac_cv_func_strdup+set}" = set; then 21695 echo $ECHO_N "(cached) $ECHO_C" >&6 21696else 21697 cat >conftest.$ac_ext <<_ACEOF 21698#line $LINENO "configure" 21699#include "confdefs.h" 21700/* System header to define __stub macros and hopefully few prototypes, 21701 which can conflict with char strdup (); below. */ 21702#include <assert.h> 21703/* Override any gcc2 internal prototype to avoid an error. */ 21704#ifdef __cplusplus 21705extern "C" 21706#endif 21707/* We use char because int might match the return type of a gcc2 21708 builtin and then its argument prototype would still apply. */ 21709char strdup (); 21710char (*f) (); 21711 21712#ifdef F77_DUMMY_MAIN 21713# ifdef __cplusplus 21714 extern "C" 21715# endif 21716 int F77_DUMMY_MAIN() { return 1; } 21717#endif 21718int 21719main () 21720{ 21721/* The GNU C library defines this for functions which it implements 21722 to always fail with ENOSYS. Some functions are actually named 21723 something starting with __ and the normal name is an alias. */ 21724#if defined (__stub_strdup) || defined (__stub___strdup) 21725choke me 21726#else 21727f = strdup; 21728#endif 21729 21730 ; 21731 return 0; 21732} 21733_ACEOF 21734rm -f conftest.$ac_objext conftest$ac_exeext 21735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21736 (eval $ac_link) 2>&5 21737 ac_status=$? 21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21739 (exit $ac_status); } && 21740 { ac_try='test -s conftest$ac_exeext' 21741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21742 (eval $ac_try) 2>&5 21743 ac_status=$? 21744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21745 (exit $ac_status); }; }; then 21746 ac_cv_func_strdup=yes 21747else 21748 echo "$as_me: failed program was:" >&5 21749cat conftest.$ac_ext >&5 21750ac_cv_func_strdup=no 21751fi 21752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21753fi 21754echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5 21755echo "${ECHO_T}$ac_cv_func_strdup" >&6 21756if test $ac_cv_func_strdup = yes; then 21757 21758cat >>confdefs.h <<_ACEOF 21759#define HAVE_STRDUP 1 21760_ACEOF 21761 21762else 21763 LIBOBJS="$LIBOBJS strdup.$ac_objext" 21764fi 21765echo "$as_me:$LINENO: checking for strerror" >&5 21766echo $ECHO_N "checking for strerror... $ECHO_C" >&6 21767if test "${ac_cv_func_strerror+set}" = set; then 21768 echo $ECHO_N "(cached) $ECHO_C" >&6 21769else 21770 cat >conftest.$ac_ext <<_ACEOF 21771#line $LINENO "configure" 21772#include "confdefs.h" 21773/* System header to define __stub macros and hopefully few prototypes, 21774 which can conflict with char strerror (); below. */ 21775#include <assert.h> 21776/* Override any gcc2 internal prototype to avoid an error. */ 21777#ifdef __cplusplus 21778extern "C" 21779#endif 21780/* We use char because int might match the return type of a gcc2 21781 builtin and then its argument prototype would still apply. */ 21782char strerror (); 21783char (*f) (); 21784 21785#ifdef F77_DUMMY_MAIN 21786# ifdef __cplusplus 21787 extern "C" 21788# endif 21789 int F77_DUMMY_MAIN() { return 1; } 21790#endif 21791int 21792main () 21793{ 21794/* The GNU C library defines this for functions which it implements 21795 to always fail with ENOSYS. Some functions are actually named 21796 something starting with __ and the normal name is an alias. */ 21797#if defined (__stub_strerror) || defined (__stub___strerror) 21798choke me 21799#else 21800f = strerror; 21801#endif 21802 21803 ; 21804 return 0; 21805} 21806_ACEOF 21807rm -f conftest.$ac_objext conftest$ac_exeext 21808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21809 (eval $ac_link) 2>&5 21810 ac_status=$? 21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21812 (exit $ac_status); } && 21813 { ac_try='test -s conftest$ac_exeext' 21814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21815 (eval $ac_try) 2>&5 21816 ac_status=$? 21817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21818 (exit $ac_status); }; }; then 21819 ac_cv_func_strerror=yes 21820else 21821 echo "$as_me: failed program was:" >&5 21822cat conftest.$ac_ext >&5 21823ac_cv_func_strerror=no 21824fi 21825rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21826fi 21827echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5 21828echo "${ECHO_T}$ac_cv_func_strerror" >&6 21829if test $ac_cv_func_strerror = yes; then 21830 21831cat >>confdefs.h <<_ACEOF 21832#define HAVE_STRERROR 1 21833_ACEOF 21834 21835else 21836 LIBOBJS="$LIBOBJS strerror.$ac_objext" 21837fi 21838echo "$as_me:$LINENO: checking for strftime" >&5 21839echo $ECHO_N "checking for strftime... $ECHO_C" >&6 21840if test "${ac_cv_func_strftime+set}" = set; then 21841 echo $ECHO_N "(cached) $ECHO_C" >&6 21842else 21843 cat >conftest.$ac_ext <<_ACEOF 21844#line $LINENO "configure" 21845#include "confdefs.h" 21846/* System header to define __stub macros and hopefully few prototypes, 21847 which can conflict with char strftime (); below. */ 21848#include <assert.h> 21849/* Override any gcc2 internal prototype to avoid an error. */ 21850#ifdef __cplusplus 21851extern "C" 21852#endif 21853/* We use char because int might match the return type of a gcc2 21854 builtin and then its argument prototype would still apply. */ 21855char strftime (); 21856char (*f) (); 21857 21858#ifdef F77_DUMMY_MAIN 21859# ifdef __cplusplus 21860 extern "C" 21861# endif 21862 int F77_DUMMY_MAIN() { return 1; } 21863#endif 21864int 21865main () 21866{ 21867/* The GNU C library defines this for functions which it implements 21868 to always fail with ENOSYS. Some functions are actually named 21869 something starting with __ and the normal name is an alias. */ 21870#if defined (__stub_strftime) || defined (__stub___strftime) 21871choke me 21872#else 21873f = strftime; 21874#endif 21875 21876 ; 21877 return 0; 21878} 21879_ACEOF 21880rm -f conftest.$ac_objext conftest$ac_exeext 21881if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21882 (eval $ac_link) 2>&5 21883 ac_status=$? 21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21885 (exit $ac_status); } && 21886 { ac_try='test -s conftest$ac_exeext' 21887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21888 (eval $ac_try) 2>&5 21889 ac_status=$? 21890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21891 (exit $ac_status); }; }; then 21892 ac_cv_func_strftime=yes 21893else 21894 echo "$as_me: failed program was:" >&5 21895cat conftest.$ac_ext >&5 21896ac_cv_func_strftime=no 21897fi 21898rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21899fi 21900echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5 21901echo "${ECHO_T}$ac_cv_func_strftime" >&6 21902if test $ac_cv_func_strftime = yes; then 21903 21904cat >>confdefs.h <<_ACEOF 21905#define HAVE_STRFTIME 1 21906_ACEOF 21907 21908else 21909 LIBOBJS="$LIBOBJS strftime.$ac_objext" 21910fi 21911echo "$as_me:$LINENO: checking for strlcat" >&5 21912echo $ECHO_N "checking for strlcat... $ECHO_C" >&6 21913if test "${ac_cv_func_strlcat+set}" = set; then 21914 echo $ECHO_N "(cached) $ECHO_C" >&6 21915else 21916 cat >conftest.$ac_ext <<_ACEOF 21917#line $LINENO "configure" 21918#include "confdefs.h" 21919/* System header to define __stub macros and hopefully few prototypes, 21920 which can conflict with char strlcat (); below. */ 21921#include <assert.h> 21922/* Override any gcc2 internal prototype to avoid an error. */ 21923#ifdef __cplusplus 21924extern "C" 21925#endif 21926/* We use char because int might match the return type of a gcc2 21927 builtin and then its argument prototype would still apply. */ 21928char strlcat (); 21929char (*f) (); 21930 21931#ifdef F77_DUMMY_MAIN 21932# ifdef __cplusplus 21933 extern "C" 21934# endif 21935 int F77_DUMMY_MAIN() { return 1; } 21936#endif 21937int 21938main () 21939{ 21940/* The GNU C library defines this for functions which it implements 21941 to always fail with ENOSYS. Some functions are actually named 21942 something starting with __ and the normal name is an alias. */ 21943#if defined (__stub_strlcat) || defined (__stub___strlcat) 21944choke me 21945#else 21946f = strlcat; 21947#endif 21948 21949 ; 21950 return 0; 21951} 21952_ACEOF 21953rm -f conftest.$ac_objext conftest$ac_exeext 21954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21955 (eval $ac_link) 2>&5 21956 ac_status=$? 21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21958 (exit $ac_status); } && 21959 { ac_try='test -s conftest$ac_exeext' 21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21961 (eval $ac_try) 2>&5 21962 ac_status=$? 21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21964 (exit $ac_status); }; }; then 21965 ac_cv_func_strlcat=yes 21966else 21967 echo "$as_me: failed program was:" >&5 21968cat conftest.$ac_ext >&5 21969ac_cv_func_strlcat=no 21970fi 21971rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21972fi 21973echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5 21974echo "${ECHO_T}$ac_cv_func_strlcat" >&6 21975if test $ac_cv_func_strlcat = yes; then 21976 21977cat >>confdefs.h <<_ACEOF 21978#define HAVE_STRLCAT 1 21979_ACEOF 21980 21981else 21982 LIBOBJS="$LIBOBJS strlcat.$ac_objext" 21983fi 21984echo "$as_me:$LINENO: checking for strlcpy" >&5 21985echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6 21986if test "${ac_cv_func_strlcpy+set}" = set; then 21987 echo $ECHO_N "(cached) $ECHO_C" >&6 21988else 21989 cat >conftest.$ac_ext <<_ACEOF 21990#line $LINENO "configure" 21991#include "confdefs.h" 21992/* System header to define __stub macros and hopefully few prototypes, 21993 which can conflict with char strlcpy (); below. */ 21994#include <assert.h> 21995/* Override any gcc2 internal prototype to avoid an error. */ 21996#ifdef __cplusplus 21997extern "C" 21998#endif 21999/* We use char because int might match the return type of a gcc2 22000 builtin and then its argument prototype would still apply. */ 22001char strlcpy (); 22002char (*f) (); 22003 22004#ifdef F77_DUMMY_MAIN 22005# ifdef __cplusplus 22006 extern "C" 22007# endif 22008 int F77_DUMMY_MAIN() { return 1; } 22009#endif 22010int 22011main () 22012{ 22013/* The GNU C library defines this for functions which it implements 22014 to always fail with ENOSYS. Some functions are actually named 22015 something starting with __ and the normal name is an alias. */ 22016#if defined (__stub_strlcpy) || defined (__stub___strlcpy) 22017choke me 22018#else 22019f = strlcpy; 22020#endif 22021 22022 ; 22023 return 0; 22024} 22025_ACEOF 22026rm -f conftest.$ac_objext conftest$ac_exeext 22027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22028 (eval $ac_link) 2>&5 22029 ac_status=$? 22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22031 (exit $ac_status); } && 22032 { ac_try='test -s conftest$ac_exeext' 22033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22034 (eval $ac_try) 2>&5 22035 ac_status=$? 22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22037 (exit $ac_status); }; }; then 22038 ac_cv_func_strlcpy=yes 22039else 22040 echo "$as_me: failed program was:" >&5 22041cat conftest.$ac_ext >&5 22042ac_cv_func_strlcpy=no 22043fi 22044rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22045fi 22046echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5 22047echo "${ECHO_T}$ac_cv_func_strlcpy" >&6 22048if test $ac_cv_func_strlcpy = yes; then 22049 22050cat >>confdefs.h <<_ACEOF 22051#define HAVE_STRLCPY 1 22052_ACEOF 22053 22054else 22055 LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22056fi 22057echo "$as_me:$LINENO: checking for strlwr" >&5 22058echo $ECHO_N "checking for strlwr... $ECHO_C" >&6 22059if test "${ac_cv_func_strlwr+set}" = set; then 22060 echo $ECHO_N "(cached) $ECHO_C" >&6 22061else 22062 cat >conftest.$ac_ext <<_ACEOF 22063#line $LINENO "configure" 22064#include "confdefs.h" 22065/* System header to define __stub macros and hopefully few prototypes, 22066 which can conflict with char strlwr (); below. */ 22067#include <assert.h> 22068/* Override any gcc2 internal prototype to avoid an error. */ 22069#ifdef __cplusplus 22070extern "C" 22071#endif 22072/* We use char because int might match the return type of a gcc2 22073 builtin and then its argument prototype would still apply. */ 22074char strlwr (); 22075char (*f) (); 22076 22077#ifdef F77_DUMMY_MAIN 22078# ifdef __cplusplus 22079 extern "C" 22080# endif 22081 int F77_DUMMY_MAIN() { return 1; } 22082#endif 22083int 22084main () 22085{ 22086/* The GNU C library defines this for functions which it implements 22087 to always fail with ENOSYS. Some functions are actually named 22088 something starting with __ and the normal name is an alias. */ 22089#if defined (__stub_strlwr) || defined (__stub___strlwr) 22090choke me 22091#else 22092f = strlwr; 22093#endif 22094 22095 ; 22096 return 0; 22097} 22098_ACEOF 22099rm -f conftest.$ac_objext conftest$ac_exeext 22100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22101 (eval $ac_link) 2>&5 22102 ac_status=$? 22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22104 (exit $ac_status); } && 22105 { ac_try='test -s conftest$ac_exeext' 22106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22107 (eval $ac_try) 2>&5 22108 ac_status=$? 22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22110 (exit $ac_status); }; }; then 22111 ac_cv_func_strlwr=yes 22112else 22113 echo "$as_me: failed program was:" >&5 22114cat conftest.$ac_ext >&5 22115ac_cv_func_strlwr=no 22116fi 22117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22118fi 22119echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5 22120echo "${ECHO_T}$ac_cv_func_strlwr" >&6 22121if test $ac_cv_func_strlwr = yes; then 22122 22123cat >>confdefs.h <<_ACEOF 22124#define HAVE_STRLWR 1 22125_ACEOF 22126 22127else 22128 LIBOBJS="$LIBOBJS strlwr.$ac_objext" 22129fi 22130echo "$as_me:$LINENO: checking for strncasecmp" >&5 22131echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6 22132if test "${ac_cv_func_strncasecmp+set}" = set; then 22133 echo $ECHO_N "(cached) $ECHO_C" >&6 22134else 22135 cat >conftest.$ac_ext <<_ACEOF 22136#line $LINENO "configure" 22137#include "confdefs.h" 22138/* System header to define __stub macros and hopefully few prototypes, 22139 which can conflict with char strncasecmp (); below. */ 22140#include <assert.h> 22141/* Override any gcc2 internal prototype to avoid an error. */ 22142#ifdef __cplusplus 22143extern "C" 22144#endif 22145/* We use char because int might match the return type of a gcc2 22146 builtin and then its argument prototype would still apply. */ 22147char strncasecmp (); 22148char (*f) (); 22149 22150#ifdef F77_DUMMY_MAIN 22151# ifdef __cplusplus 22152 extern "C" 22153# endif 22154 int F77_DUMMY_MAIN() { return 1; } 22155#endif 22156int 22157main () 22158{ 22159/* The GNU C library defines this for functions which it implements 22160 to always fail with ENOSYS. Some functions are actually named 22161 something starting with __ and the normal name is an alias. */ 22162#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp) 22163choke me 22164#else 22165f = strncasecmp; 22166#endif 22167 22168 ; 22169 return 0; 22170} 22171_ACEOF 22172rm -f conftest.$ac_objext conftest$ac_exeext 22173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22174 (eval $ac_link) 2>&5 22175 ac_status=$? 22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22177 (exit $ac_status); } && 22178 { ac_try='test -s conftest$ac_exeext' 22179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22180 (eval $ac_try) 2>&5 22181 ac_status=$? 22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22183 (exit $ac_status); }; }; then 22184 ac_cv_func_strncasecmp=yes 22185else 22186 echo "$as_me: failed program was:" >&5 22187cat conftest.$ac_ext >&5 22188ac_cv_func_strncasecmp=no 22189fi 22190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22191fi 22192echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5 22193echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6 22194if test $ac_cv_func_strncasecmp = yes; then 22195 22196cat >>confdefs.h <<_ACEOF 22197#define HAVE_STRNCASECMP 1 22198_ACEOF 22199 22200else 22201 LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 22202fi 22203echo "$as_me:$LINENO: checking for strndup" >&5 22204echo $ECHO_N "checking for strndup... $ECHO_C" >&6 22205if test "${ac_cv_func_strndup+set}" = set; then 22206 echo $ECHO_N "(cached) $ECHO_C" >&6 22207else 22208 cat >conftest.$ac_ext <<_ACEOF 22209#line $LINENO "configure" 22210#include "confdefs.h" 22211/* System header to define __stub macros and hopefully few prototypes, 22212 which can conflict with char strndup (); below. */ 22213#include <assert.h> 22214/* Override any gcc2 internal prototype to avoid an error. */ 22215#ifdef __cplusplus 22216extern "C" 22217#endif 22218/* We use char because int might match the return type of a gcc2 22219 builtin and then its argument prototype would still apply. */ 22220char strndup (); 22221char (*f) (); 22222 22223#ifdef F77_DUMMY_MAIN 22224# ifdef __cplusplus 22225 extern "C" 22226# endif 22227 int F77_DUMMY_MAIN() { return 1; } 22228#endif 22229int 22230main () 22231{ 22232/* The GNU C library defines this for functions which it implements 22233 to always fail with ENOSYS. Some functions are actually named 22234 something starting with __ and the normal name is an alias. */ 22235#if defined (__stub_strndup) || defined (__stub___strndup) 22236choke me 22237#else 22238f = strndup; 22239#endif 22240 22241 ; 22242 return 0; 22243} 22244_ACEOF 22245rm -f conftest.$ac_objext conftest$ac_exeext 22246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22247 (eval $ac_link) 2>&5 22248 ac_status=$? 22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22250 (exit $ac_status); } && 22251 { ac_try='test -s conftest$ac_exeext' 22252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22253 (eval $ac_try) 2>&5 22254 ac_status=$? 22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22256 (exit $ac_status); }; }; then 22257 ac_cv_func_strndup=yes 22258else 22259 echo "$as_me: failed program was:" >&5 22260cat conftest.$ac_ext >&5 22261ac_cv_func_strndup=no 22262fi 22263rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22264fi 22265echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5 22266echo "${ECHO_T}$ac_cv_func_strndup" >&6 22267if test $ac_cv_func_strndup = yes; then 22268 22269cat >>confdefs.h <<_ACEOF 22270#define HAVE_STRNDUP 1 22271_ACEOF 22272 22273else 22274 LIBOBJS="$LIBOBJS strndup.$ac_objext" 22275fi 22276echo "$as_me:$LINENO: checking for strnlen" >&5 22277echo $ECHO_N "checking for strnlen... $ECHO_C" >&6 22278if test "${ac_cv_func_strnlen+set}" = set; then 22279 echo $ECHO_N "(cached) $ECHO_C" >&6 22280else 22281 cat >conftest.$ac_ext <<_ACEOF 22282#line $LINENO "configure" 22283#include "confdefs.h" 22284/* System header to define __stub macros and hopefully few prototypes, 22285 which can conflict with char strnlen (); below. */ 22286#include <assert.h> 22287/* Override any gcc2 internal prototype to avoid an error. */ 22288#ifdef __cplusplus 22289extern "C" 22290#endif 22291/* We use char because int might match the return type of a gcc2 22292 builtin and then its argument prototype would still apply. */ 22293char strnlen (); 22294char (*f) (); 22295 22296#ifdef F77_DUMMY_MAIN 22297# ifdef __cplusplus 22298 extern "C" 22299# endif 22300 int F77_DUMMY_MAIN() { return 1; } 22301#endif 22302int 22303main () 22304{ 22305/* The GNU C library defines this for functions which it implements 22306 to always fail with ENOSYS. Some functions are actually named 22307 something starting with __ and the normal name is an alias. */ 22308#if defined (__stub_strnlen) || defined (__stub___strnlen) 22309choke me 22310#else 22311f = strnlen; 22312#endif 22313 22314 ; 22315 return 0; 22316} 22317_ACEOF 22318rm -f conftest.$ac_objext conftest$ac_exeext 22319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22320 (eval $ac_link) 2>&5 22321 ac_status=$? 22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22323 (exit $ac_status); } && 22324 { ac_try='test -s conftest$ac_exeext' 22325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22326 (eval $ac_try) 2>&5 22327 ac_status=$? 22328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22329 (exit $ac_status); }; }; then 22330 ac_cv_func_strnlen=yes 22331else 22332 echo "$as_me: failed program was:" >&5 22333cat conftest.$ac_ext >&5 22334ac_cv_func_strnlen=no 22335fi 22336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22337fi 22338echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5 22339echo "${ECHO_T}$ac_cv_func_strnlen" >&6 22340if test $ac_cv_func_strnlen = yes; then 22341 22342cat >>confdefs.h <<_ACEOF 22343#define HAVE_STRNLEN 1 22344_ACEOF 22345 22346else 22347 LIBOBJS="$LIBOBJS strnlen.$ac_objext" 22348fi 22349echo "$as_me:$LINENO: checking for strptime" >&5 22350echo $ECHO_N "checking for strptime... $ECHO_C" >&6 22351if test "${ac_cv_func_strptime+set}" = set; then 22352 echo $ECHO_N "(cached) $ECHO_C" >&6 22353else 22354 cat >conftest.$ac_ext <<_ACEOF 22355#line $LINENO "configure" 22356#include "confdefs.h" 22357/* System header to define __stub macros and hopefully few prototypes, 22358 which can conflict with char strptime (); below. */ 22359#include <assert.h> 22360/* Override any gcc2 internal prototype to avoid an error. */ 22361#ifdef __cplusplus 22362extern "C" 22363#endif 22364/* We use char because int might match the return type of a gcc2 22365 builtin and then its argument prototype would still apply. */ 22366char strptime (); 22367char (*f) (); 22368 22369#ifdef F77_DUMMY_MAIN 22370# ifdef __cplusplus 22371 extern "C" 22372# endif 22373 int F77_DUMMY_MAIN() { return 1; } 22374#endif 22375int 22376main () 22377{ 22378/* The GNU C library defines this for functions which it implements 22379 to always fail with ENOSYS. Some functions are actually named 22380 something starting with __ and the normal name is an alias. */ 22381#if defined (__stub_strptime) || defined (__stub___strptime) 22382choke me 22383#else 22384f = strptime; 22385#endif 22386 22387 ; 22388 return 0; 22389} 22390_ACEOF 22391rm -f conftest.$ac_objext conftest$ac_exeext 22392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22393 (eval $ac_link) 2>&5 22394 ac_status=$? 22395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22396 (exit $ac_status); } && 22397 { ac_try='test -s conftest$ac_exeext' 22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22399 (eval $ac_try) 2>&5 22400 ac_status=$? 22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22402 (exit $ac_status); }; }; then 22403 ac_cv_func_strptime=yes 22404else 22405 echo "$as_me: failed program was:" >&5 22406cat conftest.$ac_ext >&5 22407ac_cv_func_strptime=no 22408fi 22409rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22410fi 22411echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5 22412echo "${ECHO_T}$ac_cv_func_strptime" >&6 22413if test $ac_cv_func_strptime = yes; then 22414 22415cat >>confdefs.h <<_ACEOF 22416#define HAVE_STRPTIME 1 22417_ACEOF 22418 22419else 22420 LIBOBJS="$LIBOBJS strptime.$ac_objext" 22421fi 22422echo "$as_me:$LINENO: checking for strsep" >&5 22423echo $ECHO_N "checking for strsep... $ECHO_C" >&6 22424if test "${ac_cv_func_strsep+set}" = set; then 22425 echo $ECHO_N "(cached) $ECHO_C" >&6 22426else 22427 cat >conftest.$ac_ext <<_ACEOF 22428#line $LINENO "configure" 22429#include "confdefs.h" 22430/* System header to define __stub macros and hopefully few prototypes, 22431 which can conflict with char strsep (); below. */ 22432#include <assert.h> 22433/* Override any gcc2 internal prototype to avoid an error. */ 22434#ifdef __cplusplus 22435extern "C" 22436#endif 22437/* We use char because int might match the return type of a gcc2 22438 builtin and then its argument prototype would still apply. */ 22439char strsep (); 22440char (*f) (); 22441 22442#ifdef F77_DUMMY_MAIN 22443# ifdef __cplusplus 22444 extern "C" 22445# endif 22446 int F77_DUMMY_MAIN() { return 1; } 22447#endif 22448int 22449main () 22450{ 22451/* The GNU C library defines this for functions which it implements 22452 to always fail with ENOSYS. Some functions are actually named 22453 something starting with __ and the normal name is an alias. */ 22454#if defined (__stub_strsep) || defined (__stub___strsep) 22455choke me 22456#else 22457f = strsep; 22458#endif 22459 22460 ; 22461 return 0; 22462} 22463_ACEOF 22464rm -f conftest.$ac_objext conftest$ac_exeext 22465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22466 (eval $ac_link) 2>&5 22467 ac_status=$? 22468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22469 (exit $ac_status); } && 22470 { ac_try='test -s conftest$ac_exeext' 22471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22472 (eval $ac_try) 2>&5 22473 ac_status=$? 22474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22475 (exit $ac_status); }; }; then 22476 ac_cv_func_strsep=yes 22477else 22478 echo "$as_me: failed program was:" >&5 22479cat conftest.$ac_ext >&5 22480ac_cv_func_strsep=no 22481fi 22482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22483fi 22484echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5 22485echo "${ECHO_T}$ac_cv_func_strsep" >&6 22486if test $ac_cv_func_strsep = yes; then 22487 22488cat >>confdefs.h <<_ACEOF 22489#define HAVE_STRSEP 1 22490_ACEOF 22491 22492else 22493 LIBOBJS="$LIBOBJS strsep.$ac_objext" 22494fi 22495echo "$as_me:$LINENO: checking for strsep_copy" >&5 22496echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6 22497if test "${ac_cv_func_strsep_copy+set}" = set; then 22498 echo $ECHO_N "(cached) $ECHO_C" >&6 22499else 22500 cat >conftest.$ac_ext <<_ACEOF 22501#line $LINENO "configure" 22502#include "confdefs.h" 22503/* System header to define __stub macros and hopefully few prototypes, 22504 which can conflict with char strsep_copy (); below. */ 22505#include <assert.h> 22506/* Override any gcc2 internal prototype to avoid an error. */ 22507#ifdef __cplusplus 22508extern "C" 22509#endif 22510/* We use char because int might match the return type of a gcc2 22511 builtin and then its argument prototype would still apply. */ 22512char strsep_copy (); 22513char (*f) (); 22514 22515#ifdef F77_DUMMY_MAIN 22516# ifdef __cplusplus 22517 extern "C" 22518# endif 22519 int F77_DUMMY_MAIN() { return 1; } 22520#endif 22521int 22522main () 22523{ 22524/* The GNU C library defines this for functions which it implements 22525 to always fail with ENOSYS. Some functions are actually named 22526 something starting with __ and the normal name is an alias. */ 22527#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy) 22528choke me 22529#else 22530f = strsep_copy; 22531#endif 22532 22533 ; 22534 return 0; 22535} 22536_ACEOF 22537rm -f conftest.$ac_objext conftest$ac_exeext 22538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22539 (eval $ac_link) 2>&5 22540 ac_status=$? 22541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22542 (exit $ac_status); } && 22543 { ac_try='test -s conftest$ac_exeext' 22544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22545 (eval $ac_try) 2>&5 22546 ac_status=$? 22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22548 (exit $ac_status); }; }; then 22549 ac_cv_func_strsep_copy=yes 22550else 22551 echo "$as_me: failed program was:" >&5 22552cat conftest.$ac_ext >&5 22553ac_cv_func_strsep_copy=no 22554fi 22555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22556fi 22557echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5 22558echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6 22559if test $ac_cv_func_strsep_copy = yes; then 22560 22561cat >>confdefs.h <<_ACEOF 22562#define HAVE_STRSEP_COPY 1 22563_ACEOF 22564 22565else 22566 LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" 22567fi 22568echo "$as_me:$LINENO: checking for strtok_r" >&5 22569echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6 22570if test "${ac_cv_func_strtok_r+set}" = set; then 22571 echo $ECHO_N "(cached) $ECHO_C" >&6 22572else 22573 cat >conftest.$ac_ext <<_ACEOF 22574#line $LINENO "configure" 22575#include "confdefs.h" 22576/* System header to define __stub macros and hopefully few prototypes, 22577 which can conflict with char strtok_r (); below. */ 22578#include <assert.h> 22579/* Override any gcc2 internal prototype to avoid an error. */ 22580#ifdef __cplusplus 22581extern "C" 22582#endif 22583/* We use char because int might match the return type of a gcc2 22584 builtin and then its argument prototype would still apply. */ 22585char strtok_r (); 22586char (*f) (); 22587 22588#ifdef F77_DUMMY_MAIN 22589# ifdef __cplusplus 22590 extern "C" 22591# endif 22592 int F77_DUMMY_MAIN() { return 1; } 22593#endif 22594int 22595main () 22596{ 22597/* The GNU C library defines this for functions which it implements 22598 to always fail with ENOSYS. Some functions are actually named 22599 something starting with __ and the normal name is an alias. */ 22600#if defined (__stub_strtok_r) || defined (__stub___strtok_r) 22601choke me 22602#else 22603f = strtok_r; 22604#endif 22605 22606 ; 22607 return 0; 22608} 22609_ACEOF 22610rm -f conftest.$ac_objext conftest$ac_exeext 22611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22612 (eval $ac_link) 2>&5 22613 ac_status=$? 22614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22615 (exit $ac_status); } && 22616 { ac_try='test -s conftest$ac_exeext' 22617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22618 (eval $ac_try) 2>&5 22619 ac_status=$? 22620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22621 (exit $ac_status); }; }; then 22622 ac_cv_func_strtok_r=yes 22623else 22624 echo "$as_me: failed program was:" >&5 22625cat conftest.$ac_ext >&5 22626ac_cv_func_strtok_r=no 22627fi 22628rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22629fi 22630echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5 22631echo "${ECHO_T}$ac_cv_func_strtok_r" >&6 22632if test $ac_cv_func_strtok_r = yes; then 22633 22634cat >>confdefs.h <<_ACEOF 22635#define HAVE_STRTOK_R 1 22636_ACEOF 22637 22638else 22639 LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 22640fi 22641echo "$as_me:$LINENO: checking for strupr" >&5 22642echo $ECHO_N "checking for strupr... $ECHO_C" >&6 22643if test "${ac_cv_func_strupr+set}" = set; then 22644 echo $ECHO_N "(cached) $ECHO_C" >&6 22645else 22646 cat >conftest.$ac_ext <<_ACEOF 22647#line $LINENO "configure" 22648#include "confdefs.h" 22649/* System header to define __stub macros and hopefully few prototypes, 22650 which can conflict with char strupr (); below. */ 22651#include <assert.h> 22652/* Override any gcc2 internal prototype to avoid an error. */ 22653#ifdef __cplusplus 22654extern "C" 22655#endif 22656/* We use char because int might match the return type of a gcc2 22657 builtin and then its argument prototype would still apply. */ 22658char strupr (); 22659char (*f) (); 22660 22661#ifdef F77_DUMMY_MAIN 22662# ifdef __cplusplus 22663 extern "C" 22664# endif 22665 int F77_DUMMY_MAIN() { return 1; } 22666#endif 22667int 22668main () 22669{ 22670/* The GNU C library defines this for functions which it implements 22671 to always fail with ENOSYS. Some functions are actually named 22672 something starting with __ and the normal name is an alias. */ 22673#if defined (__stub_strupr) || defined (__stub___strupr) 22674choke me 22675#else 22676f = strupr; 22677#endif 22678 22679 ; 22680 return 0; 22681} 22682_ACEOF 22683rm -f conftest.$ac_objext conftest$ac_exeext 22684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22685 (eval $ac_link) 2>&5 22686 ac_status=$? 22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22688 (exit $ac_status); } && 22689 { ac_try='test -s conftest$ac_exeext' 22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22691 (eval $ac_try) 2>&5 22692 ac_status=$? 22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22694 (exit $ac_status); }; }; then 22695 ac_cv_func_strupr=yes 22696else 22697 echo "$as_me: failed program was:" >&5 22698cat conftest.$ac_ext >&5 22699ac_cv_func_strupr=no 22700fi 22701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22702fi 22703echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5 22704echo "${ECHO_T}$ac_cv_func_strupr" >&6 22705if test $ac_cv_func_strupr = yes; then 22706 22707cat >>confdefs.h <<_ACEOF 22708#define HAVE_STRUPR 1 22709_ACEOF 22710 22711else 22712 LIBOBJS="$LIBOBJS strupr.$ac_objext" 22713fi 22714echo "$as_me:$LINENO: checking for swab" >&5 22715echo $ECHO_N "checking for swab... $ECHO_C" >&6 22716if test "${ac_cv_func_swab+set}" = set; then 22717 echo $ECHO_N "(cached) $ECHO_C" >&6 22718else 22719 cat >conftest.$ac_ext <<_ACEOF 22720#line $LINENO "configure" 22721#include "confdefs.h" 22722/* System header to define __stub macros and hopefully few prototypes, 22723 which can conflict with char swab (); below. */ 22724#include <assert.h> 22725/* Override any gcc2 internal prototype to avoid an error. */ 22726#ifdef __cplusplus 22727extern "C" 22728#endif 22729/* We use char because int might match the return type of a gcc2 22730 builtin and then its argument prototype would still apply. */ 22731char swab (); 22732char (*f) (); 22733 22734#ifdef F77_DUMMY_MAIN 22735# ifdef __cplusplus 22736 extern "C" 22737# endif 22738 int F77_DUMMY_MAIN() { return 1; } 22739#endif 22740int 22741main () 22742{ 22743/* The GNU C library defines this for functions which it implements 22744 to always fail with ENOSYS. Some functions are actually named 22745 something starting with __ and the normal name is an alias. */ 22746#if defined (__stub_swab) || defined (__stub___swab) 22747choke me 22748#else 22749f = swab; 22750#endif 22751 22752 ; 22753 return 0; 22754} 22755_ACEOF 22756rm -f conftest.$ac_objext conftest$ac_exeext 22757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22758 (eval $ac_link) 2>&5 22759 ac_status=$? 22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22761 (exit $ac_status); } && 22762 { ac_try='test -s conftest$ac_exeext' 22763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22764 (eval $ac_try) 2>&5 22765 ac_status=$? 22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22767 (exit $ac_status); }; }; then 22768 ac_cv_func_swab=yes 22769else 22770 echo "$as_me: failed program was:" >&5 22771cat conftest.$ac_ext >&5 22772ac_cv_func_swab=no 22773fi 22774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22775fi 22776echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5 22777echo "${ECHO_T}$ac_cv_func_swab" >&6 22778if test $ac_cv_func_swab = yes; then 22779 22780cat >>confdefs.h <<_ACEOF 22781#define HAVE_SWAB 1 22782_ACEOF 22783 22784else 22785 LIBOBJS="$LIBOBJS swab.$ac_objext" 22786fi 22787echo "$as_me:$LINENO: checking for unsetenv" >&5 22788echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6 22789if test "${ac_cv_func_unsetenv+set}" = set; then 22790 echo $ECHO_N "(cached) $ECHO_C" >&6 22791else 22792 cat >conftest.$ac_ext <<_ACEOF 22793#line $LINENO "configure" 22794#include "confdefs.h" 22795/* System header to define __stub macros and hopefully few prototypes, 22796 which can conflict with char unsetenv (); below. */ 22797#include <assert.h> 22798/* Override any gcc2 internal prototype to avoid an error. */ 22799#ifdef __cplusplus 22800extern "C" 22801#endif 22802/* We use char because int might match the return type of a gcc2 22803 builtin and then its argument prototype would still apply. */ 22804char unsetenv (); 22805char (*f) (); 22806 22807#ifdef F77_DUMMY_MAIN 22808# ifdef __cplusplus 22809 extern "C" 22810# endif 22811 int F77_DUMMY_MAIN() { return 1; } 22812#endif 22813int 22814main () 22815{ 22816/* The GNU C library defines this for functions which it implements 22817 to always fail with ENOSYS. Some functions are actually named 22818 something starting with __ and the normal name is an alias. */ 22819#if defined (__stub_unsetenv) || defined (__stub___unsetenv) 22820choke me 22821#else 22822f = unsetenv; 22823#endif 22824 22825 ; 22826 return 0; 22827} 22828_ACEOF 22829rm -f conftest.$ac_objext conftest$ac_exeext 22830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22831 (eval $ac_link) 2>&5 22832 ac_status=$? 22833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22834 (exit $ac_status); } && 22835 { ac_try='test -s conftest$ac_exeext' 22836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22837 (eval $ac_try) 2>&5 22838 ac_status=$? 22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22840 (exit $ac_status); }; }; then 22841 ac_cv_func_unsetenv=yes 22842else 22843 echo "$as_me: failed program was:" >&5 22844cat conftest.$ac_ext >&5 22845ac_cv_func_unsetenv=no 22846fi 22847rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22848fi 22849echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5 22850echo "${ECHO_T}$ac_cv_func_unsetenv" >&6 22851if test $ac_cv_func_unsetenv = yes; then 22852 22853cat >>confdefs.h <<_ACEOF 22854#define HAVE_UNSETENV 1 22855_ACEOF 22856 22857else 22858 LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 22859fi 22860echo "$as_me:$LINENO: checking for verr" >&5 22861echo $ECHO_N "checking for verr... $ECHO_C" >&6 22862if test "${ac_cv_func_verr+set}" = set; then 22863 echo $ECHO_N "(cached) $ECHO_C" >&6 22864else 22865 cat >conftest.$ac_ext <<_ACEOF 22866#line $LINENO "configure" 22867#include "confdefs.h" 22868/* System header to define __stub macros and hopefully few prototypes, 22869 which can conflict with char verr (); below. */ 22870#include <assert.h> 22871/* Override any gcc2 internal prototype to avoid an error. */ 22872#ifdef __cplusplus 22873extern "C" 22874#endif 22875/* We use char because int might match the return type of a gcc2 22876 builtin and then its argument prototype would still apply. */ 22877char verr (); 22878char (*f) (); 22879 22880#ifdef F77_DUMMY_MAIN 22881# ifdef __cplusplus 22882 extern "C" 22883# endif 22884 int F77_DUMMY_MAIN() { return 1; } 22885#endif 22886int 22887main () 22888{ 22889/* The GNU C library defines this for functions which it implements 22890 to always fail with ENOSYS. Some functions are actually named 22891 something starting with __ and the normal name is an alias. */ 22892#if defined (__stub_verr) || defined (__stub___verr) 22893choke me 22894#else 22895f = verr; 22896#endif 22897 22898 ; 22899 return 0; 22900} 22901_ACEOF 22902rm -f conftest.$ac_objext conftest$ac_exeext 22903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22904 (eval $ac_link) 2>&5 22905 ac_status=$? 22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22907 (exit $ac_status); } && 22908 { ac_try='test -s conftest$ac_exeext' 22909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22910 (eval $ac_try) 2>&5 22911 ac_status=$? 22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22913 (exit $ac_status); }; }; then 22914 ac_cv_func_verr=yes 22915else 22916 echo "$as_me: failed program was:" >&5 22917cat conftest.$ac_ext >&5 22918ac_cv_func_verr=no 22919fi 22920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22921fi 22922echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5 22923echo "${ECHO_T}$ac_cv_func_verr" >&6 22924if test $ac_cv_func_verr = yes; then 22925 22926cat >>confdefs.h <<_ACEOF 22927#define HAVE_VERR 1 22928_ACEOF 22929 22930else 22931 LIBOBJS="$LIBOBJS verr.$ac_objext" 22932fi 22933echo "$as_me:$LINENO: checking for verrx" >&5 22934echo $ECHO_N "checking for verrx... $ECHO_C" >&6 22935if test "${ac_cv_func_verrx+set}" = set; then 22936 echo $ECHO_N "(cached) $ECHO_C" >&6 22937else 22938 cat >conftest.$ac_ext <<_ACEOF 22939#line $LINENO "configure" 22940#include "confdefs.h" 22941/* System header to define __stub macros and hopefully few prototypes, 22942 which can conflict with char verrx (); below. */ 22943#include <assert.h> 22944/* Override any gcc2 internal prototype to avoid an error. */ 22945#ifdef __cplusplus 22946extern "C" 22947#endif 22948/* We use char because int might match the return type of a gcc2 22949 builtin and then its argument prototype would still apply. */ 22950char verrx (); 22951char (*f) (); 22952 22953#ifdef F77_DUMMY_MAIN 22954# ifdef __cplusplus 22955 extern "C" 22956# endif 22957 int F77_DUMMY_MAIN() { return 1; } 22958#endif 22959int 22960main () 22961{ 22962/* The GNU C library defines this for functions which it implements 22963 to always fail with ENOSYS. Some functions are actually named 22964 something starting with __ and the normal name is an alias. */ 22965#if defined (__stub_verrx) || defined (__stub___verrx) 22966choke me 22967#else 22968f = verrx; 22969#endif 22970 22971 ; 22972 return 0; 22973} 22974_ACEOF 22975rm -f conftest.$ac_objext conftest$ac_exeext 22976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22977 (eval $ac_link) 2>&5 22978 ac_status=$? 22979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22980 (exit $ac_status); } && 22981 { ac_try='test -s conftest$ac_exeext' 22982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22983 (eval $ac_try) 2>&5 22984 ac_status=$? 22985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22986 (exit $ac_status); }; }; then 22987 ac_cv_func_verrx=yes 22988else 22989 echo "$as_me: failed program was:" >&5 22990cat conftest.$ac_ext >&5 22991ac_cv_func_verrx=no 22992fi 22993rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22994fi 22995echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5 22996echo "${ECHO_T}$ac_cv_func_verrx" >&6 22997if test $ac_cv_func_verrx = yes; then 22998 22999cat >>confdefs.h <<_ACEOF 23000#define HAVE_VERRX 1 23001_ACEOF 23002 23003else 23004 LIBOBJS="$LIBOBJS verrx.$ac_objext" 23005fi 23006echo "$as_me:$LINENO: checking for vsyslog" >&5 23007echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6 23008if test "${ac_cv_func_vsyslog+set}" = set; then 23009 echo $ECHO_N "(cached) $ECHO_C" >&6 23010else 23011 cat >conftest.$ac_ext <<_ACEOF 23012#line $LINENO "configure" 23013#include "confdefs.h" 23014/* System header to define __stub macros and hopefully few prototypes, 23015 which can conflict with char vsyslog (); below. */ 23016#include <assert.h> 23017/* Override any gcc2 internal prototype to avoid an error. */ 23018#ifdef __cplusplus 23019extern "C" 23020#endif 23021/* We use char because int might match the return type of a gcc2 23022 builtin and then its argument prototype would still apply. */ 23023char vsyslog (); 23024char (*f) (); 23025 23026#ifdef F77_DUMMY_MAIN 23027# ifdef __cplusplus 23028 extern "C" 23029# endif 23030 int F77_DUMMY_MAIN() { return 1; } 23031#endif 23032int 23033main () 23034{ 23035/* The GNU C library defines this for functions which it implements 23036 to always fail with ENOSYS. Some functions are actually named 23037 something starting with __ and the normal name is an alias. */ 23038#if defined (__stub_vsyslog) || defined (__stub___vsyslog) 23039choke me 23040#else 23041f = vsyslog; 23042#endif 23043 23044 ; 23045 return 0; 23046} 23047_ACEOF 23048rm -f conftest.$ac_objext conftest$ac_exeext 23049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23050 (eval $ac_link) 2>&5 23051 ac_status=$? 23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23053 (exit $ac_status); } && 23054 { ac_try='test -s conftest$ac_exeext' 23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23056 (eval $ac_try) 2>&5 23057 ac_status=$? 23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23059 (exit $ac_status); }; }; then 23060 ac_cv_func_vsyslog=yes 23061else 23062 echo "$as_me: failed program was:" >&5 23063cat conftest.$ac_ext >&5 23064ac_cv_func_vsyslog=no 23065fi 23066rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23067fi 23068echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5 23069echo "${ECHO_T}$ac_cv_func_vsyslog" >&6 23070if test $ac_cv_func_vsyslog = yes; then 23071 23072cat >>confdefs.h <<_ACEOF 23073#define HAVE_VSYSLOG 1 23074_ACEOF 23075 23076else 23077 LIBOBJS="$LIBOBJS vsyslog.$ac_objext" 23078fi 23079echo "$as_me:$LINENO: checking for vwarn" >&5 23080echo $ECHO_N "checking for vwarn... $ECHO_C" >&6 23081if test "${ac_cv_func_vwarn+set}" = set; then 23082 echo $ECHO_N "(cached) $ECHO_C" >&6 23083else 23084 cat >conftest.$ac_ext <<_ACEOF 23085#line $LINENO "configure" 23086#include "confdefs.h" 23087/* System header to define __stub macros and hopefully few prototypes, 23088 which can conflict with char vwarn (); below. */ 23089#include <assert.h> 23090/* Override any gcc2 internal prototype to avoid an error. */ 23091#ifdef __cplusplus 23092extern "C" 23093#endif 23094/* We use char because int might match the return type of a gcc2 23095 builtin and then its argument prototype would still apply. */ 23096char vwarn (); 23097char (*f) (); 23098 23099#ifdef F77_DUMMY_MAIN 23100# ifdef __cplusplus 23101 extern "C" 23102# endif 23103 int F77_DUMMY_MAIN() { return 1; } 23104#endif 23105int 23106main () 23107{ 23108/* The GNU C library defines this for functions which it implements 23109 to always fail with ENOSYS. Some functions are actually named 23110 something starting with __ and the normal name is an alias. */ 23111#if defined (__stub_vwarn) || defined (__stub___vwarn) 23112choke me 23113#else 23114f = vwarn; 23115#endif 23116 23117 ; 23118 return 0; 23119} 23120_ACEOF 23121rm -f conftest.$ac_objext conftest$ac_exeext 23122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23123 (eval $ac_link) 2>&5 23124 ac_status=$? 23125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23126 (exit $ac_status); } && 23127 { ac_try='test -s conftest$ac_exeext' 23128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23129 (eval $ac_try) 2>&5 23130 ac_status=$? 23131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23132 (exit $ac_status); }; }; then 23133 ac_cv_func_vwarn=yes 23134else 23135 echo "$as_me: failed program was:" >&5 23136cat conftest.$ac_ext >&5 23137ac_cv_func_vwarn=no 23138fi 23139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23140fi 23141echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5 23142echo "${ECHO_T}$ac_cv_func_vwarn" >&6 23143if test $ac_cv_func_vwarn = yes; then 23144 23145cat >>confdefs.h <<_ACEOF 23146#define HAVE_VWARN 1 23147_ACEOF 23148 23149else 23150 LIBOBJS="$LIBOBJS vwarn.$ac_objext" 23151fi 23152echo "$as_me:$LINENO: checking for vwarnx" >&5 23153echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6 23154if test "${ac_cv_func_vwarnx+set}" = set; then 23155 echo $ECHO_N "(cached) $ECHO_C" >&6 23156else 23157 cat >conftest.$ac_ext <<_ACEOF 23158#line $LINENO "configure" 23159#include "confdefs.h" 23160/* System header to define __stub macros and hopefully few prototypes, 23161 which can conflict with char vwarnx (); below. */ 23162#include <assert.h> 23163/* Override any gcc2 internal prototype to avoid an error. */ 23164#ifdef __cplusplus 23165extern "C" 23166#endif 23167/* We use char because int might match the return type of a gcc2 23168 builtin and then its argument prototype would still apply. */ 23169char vwarnx (); 23170char (*f) (); 23171 23172#ifdef F77_DUMMY_MAIN 23173# ifdef __cplusplus 23174 extern "C" 23175# endif 23176 int F77_DUMMY_MAIN() { return 1; } 23177#endif 23178int 23179main () 23180{ 23181/* The GNU C library defines this for functions which it implements 23182 to always fail with ENOSYS. Some functions are actually named 23183 something starting with __ and the normal name is an alias. */ 23184#if defined (__stub_vwarnx) || defined (__stub___vwarnx) 23185choke me 23186#else 23187f = vwarnx; 23188#endif 23189 23190 ; 23191 return 0; 23192} 23193_ACEOF 23194rm -f conftest.$ac_objext conftest$ac_exeext 23195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23196 (eval $ac_link) 2>&5 23197 ac_status=$? 23198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23199 (exit $ac_status); } && 23200 { ac_try='test -s conftest$ac_exeext' 23201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23202 (eval $ac_try) 2>&5 23203 ac_status=$? 23204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23205 (exit $ac_status); }; }; then 23206 ac_cv_func_vwarnx=yes 23207else 23208 echo "$as_me: failed program was:" >&5 23209cat conftest.$ac_ext >&5 23210ac_cv_func_vwarnx=no 23211fi 23212rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23213fi 23214echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5 23215echo "${ECHO_T}$ac_cv_func_vwarnx" >&6 23216if test $ac_cv_func_vwarnx = yes; then 23217 23218cat >>confdefs.h <<_ACEOF 23219#define HAVE_VWARNX 1 23220_ACEOF 23221 23222else 23223 LIBOBJS="$LIBOBJS vwarnx.$ac_objext" 23224fi 23225echo "$as_me:$LINENO: checking for warn" >&5 23226echo $ECHO_N "checking for warn... $ECHO_C" >&6 23227if test "${ac_cv_func_warn+set}" = set; then 23228 echo $ECHO_N "(cached) $ECHO_C" >&6 23229else 23230 cat >conftest.$ac_ext <<_ACEOF 23231#line $LINENO "configure" 23232#include "confdefs.h" 23233/* System header to define __stub macros and hopefully few prototypes, 23234 which can conflict with char warn (); below. */ 23235#include <assert.h> 23236/* Override any gcc2 internal prototype to avoid an error. */ 23237#ifdef __cplusplus 23238extern "C" 23239#endif 23240/* We use char because int might match the return type of a gcc2 23241 builtin and then its argument prototype would still apply. */ 23242char warn (); 23243char (*f) (); 23244 23245#ifdef F77_DUMMY_MAIN 23246# ifdef __cplusplus 23247 extern "C" 23248# endif 23249 int F77_DUMMY_MAIN() { return 1; } 23250#endif 23251int 23252main () 23253{ 23254/* The GNU C library defines this for functions which it implements 23255 to always fail with ENOSYS. Some functions are actually named 23256 something starting with __ and the normal name is an alias. */ 23257#if defined (__stub_warn) || defined (__stub___warn) 23258choke me 23259#else 23260f = warn; 23261#endif 23262 23263 ; 23264 return 0; 23265} 23266_ACEOF 23267rm -f conftest.$ac_objext conftest$ac_exeext 23268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23269 (eval $ac_link) 2>&5 23270 ac_status=$? 23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23272 (exit $ac_status); } && 23273 { ac_try='test -s conftest$ac_exeext' 23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23275 (eval $ac_try) 2>&5 23276 ac_status=$? 23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23278 (exit $ac_status); }; }; then 23279 ac_cv_func_warn=yes 23280else 23281 echo "$as_me: failed program was:" >&5 23282cat conftest.$ac_ext >&5 23283ac_cv_func_warn=no 23284fi 23285rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23286fi 23287echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5 23288echo "${ECHO_T}$ac_cv_func_warn" >&6 23289if test $ac_cv_func_warn = yes; then 23290 23291cat >>confdefs.h <<_ACEOF 23292#define HAVE_WARN 1 23293_ACEOF 23294 23295else 23296 LIBOBJS="$LIBOBJS warn.$ac_objext" 23297fi 23298echo "$as_me:$LINENO: checking for warnx" >&5 23299echo $ECHO_N "checking for warnx... $ECHO_C" >&6 23300if test "${ac_cv_func_warnx+set}" = set; then 23301 echo $ECHO_N "(cached) $ECHO_C" >&6 23302else 23303 cat >conftest.$ac_ext <<_ACEOF 23304#line $LINENO "configure" 23305#include "confdefs.h" 23306/* System header to define __stub macros and hopefully few prototypes, 23307 which can conflict with char warnx (); below. */ 23308#include <assert.h> 23309/* Override any gcc2 internal prototype to avoid an error. */ 23310#ifdef __cplusplus 23311extern "C" 23312#endif 23313/* We use char because int might match the return type of a gcc2 23314 builtin and then its argument prototype would still apply. */ 23315char warnx (); 23316char (*f) (); 23317 23318#ifdef F77_DUMMY_MAIN 23319# ifdef __cplusplus 23320 extern "C" 23321# endif 23322 int F77_DUMMY_MAIN() { return 1; } 23323#endif 23324int 23325main () 23326{ 23327/* The GNU C library defines this for functions which it implements 23328 to always fail with ENOSYS. Some functions are actually named 23329 something starting with __ and the normal name is an alias. */ 23330#if defined (__stub_warnx) || defined (__stub___warnx) 23331choke me 23332#else 23333f = warnx; 23334#endif 23335 23336 ; 23337 return 0; 23338} 23339_ACEOF 23340rm -f conftest.$ac_objext conftest$ac_exeext 23341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23342 (eval $ac_link) 2>&5 23343 ac_status=$? 23344 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23345 (exit $ac_status); } && 23346 { ac_try='test -s conftest$ac_exeext' 23347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23348 (eval $ac_try) 2>&5 23349 ac_status=$? 23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23351 (exit $ac_status); }; }; then 23352 ac_cv_func_warnx=yes 23353else 23354 echo "$as_me: failed program was:" >&5 23355cat conftest.$ac_ext >&5 23356ac_cv_func_warnx=no 23357fi 23358rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23359fi 23360echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5 23361echo "${ECHO_T}$ac_cv_func_warnx" >&6 23362if test $ac_cv_func_warnx = yes; then 23363 23364cat >>confdefs.h <<_ACEOF 23365#define HAVE_WARNX 1 23366_ACEOF 23367 23368else 23369 LIBOBJS="$LIBOBJS warnx.$ac_objext" 23370fi 23371echo "$as_me:$LINENO: checking for writev" >&5 23372echo $ECHO_N "checking for writev... $ECHO_C" >&6 23373if test "${ac_cv_func_writev+set}" = set; then 23374 echo $ECHO_N "(cached) $ECHO_C" >&6 23375else 23376 cat >conftest.$ac_ext <<_ACEOF 23377#line $LINENO "configure" 23378#include "confdefs.h" 23379/* System header to define __stub macros and hopefully few prototypes, 23380 which can conflict with char writev (); below. */ 23381#include <assert.h> 23382/* Override any gcc2 internal prototype to avoid an error. */ 23383#ifdef __cplusplus 23384extern "C" 23385#endif 23386/* We use char because int might match the return type of a gcc2 23387 builtin and then its argument prototype would still apply. */ 23388char writev (); 23389char (*f) (); 23390 23391#ifdef F77_DUMMY_MAIN 23392# ifdef __cplusplus 23393 extern "C" 23394# endif 23395 int F77_DUMMY_MAIN() { return 1; } 23396#endif 23397int 23398main () 23399{ 23400/* The GNU C library defines this for functions which it implements 23401 to always fail with ENOSYS. Some functions are actually named 23402 something starting with __ and the normal name is an alias. */ 23403#if defined (__stub_writev) || defined (__stub___writev) 23404choke me 23405#else 23406f = writev; 23407#endif 23408 23409 ; 23410 return 0; 23411} 23412_ACEOF 23413rm -f conftest.$ac_objext conftest$ac_exeext 23414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23415 (eval $ac_link) 2>&5 23416 ac_status=$? 23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23418 (exit $ac_status); } && 23419 { ac_try='test -s conftest$ac_exeext' 23420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23421 (eval $ac_try) 2>&5 23422 ac_status=$? 23423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23424 (exit $ac_status); }; }; then 23425 ac_cv_func_writev=yes 23426else 23427 echo "$as_me: failed program was:" >&5 23428cat conftest.$ac_ext >&5 23429ac_cv_func_writev=no 23430fi 23431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23432fi 23433echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5 23434echo "${ECHO_T}$ac_cv_func_writev" >&6 23435if test $ac_cv_func_writev = yes; then 23436 23437cat >>confdefs.h <<_ACEOF 23438#define HAVE_WRITEV 1 23439_ACEOF 23440 23441else 23442 LIBOBJS="$LIBOBJS writev.$ac_objext" 23443fi 23444 23445 23446 23447if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then 23448echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5 23449echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6 23450if test "${ac_cv_func_strndup_noproto+set}" = set; then 23451 echo $ECHO_N "(cached) $ECHO_C" >&6 23452else 23453 cat >conftest.$ac_ext <<_ACEOF 23454#line $LINENO "configure" 23455#include "confdefs.h" 23456#include <string.h> 23457#ifdef F77_DUMMY_MAIN 23458# ifdef __cplusplus 23459 extern "C" 23460# endif 23461 int F77_DUMMY_MAIN() { return 1; } 23462#endif 23463int 23464main () 23465{ 23466struct foo { int foo; } xx; 23467extern int strndup (struct foo*); 23468strndup(&xx); 23469 23470 ; 23471 return 0; 23472} 23473_ACEOF 23474rm -f conftest.$ac_objext 23475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23476 (eval $ac_compile) 2>&5 23477 ac_status=$? 23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23479 (exit $ac_status); } && 23480 { ac_try='test -s conftest.$ac_objext' 23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23482 (eval $ac_try) 2>&5 23483 ac_status=$? 23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23485 (exit $ac_status); }; }; then 23486 eval "ac_cv_func_strndup_noproto=yes" 23487else 23488 echo "$as_me: failed program was:" >&5 23489cat conftest.$ac_ext >&5 23490eval "ac_cv_func_strndup_noproto=no" 23491fi 23492rm -f conftest.$ac_objext conftest.$ac_ext 23493fi 23494echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5 23495echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6 23496if test "$ac_cv_func_strndup_noproto" = yes; then 23497 23498cat >>confdefs.h <<\_ACEOF 23499#define NEED_STRNDUP_PROTO 1 23500_ACEOF 23501 23502fi 23503fi 23504 23505if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 23506echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5 23507echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6 23508if test "${ac_cv_func_strsep_noproto+set}" = set; then 23509 echo $ECHO_N "(cached) $ECHO_C" >&6 23510else 23511 cat >conftest.$ac_ext <<_ACEOF 23512#line $LINENO "configure" 23513#include "confdefs.h" 23514#include <string.h> 23515#ifdef F77_DUMMY_MAIN 23516# ifdef __cplusplus 23517 extern "C" 23518# endif 23519 int F77_DUMMY_MAIN() { return 1; } 23520#endif 23521int 23522main () 23523{ 23524struct foo { int foo; } xx; 23525extern int strsep (struct foo*); 23526strsep(&xx); 23527 23528 ; 23529 return 0; 23530} 23531_ACEOF 23532rm -f conftest.$ac_objext 23533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23534 (eval $ac_compile) 2>&5 23535 ac_status=$? 23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23537 (exit $ac_status); } && 23538 { ac_try='test -s conftest.$ac_objext' 23539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23540 (eval $ac_try) 2>&5 23541 ac_status=$? 23542 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23543 (exit $ac_status); }; }; then 23544 eval "ac_cv_func_strsep_noproto=yes" 23545else 23546 echo "$as_me: failed program was:" >&5 23547cat conftest.$ac_ext >&5 23548eval "ac_cv_func_strsep_noproto=no" 23549fi 23550rm -f conftest.$ac_objext conftest.$ac_ext 23551fi 23552echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5 23553echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6 23554if test "$ac_cv_func_strsep_noproto" = yes; then 23555 23556cat >>confdefs.h <<\_ACEOF 23557#define NEED_STRSEP_PROTO 1 23558_ACEOF 23559 23560fi 23561fi 23562 23563if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 23564echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5 23565echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6 23566if test "${ac_cv_func_strtok_r_noproto+set}" = set; then 23567 echo $ECHO_N "(cached) $ECHO_C" >&6 23568else 23569 cat >conftest.$ac_ext <<_ACEOF 23570#line $LINENO "configure" 23571#include "confdefs.h" 23572#include <string.h> 23573#ifdef F77_DUMMY_MAIN 23574# ifdef __cplusplus 23575 extern "C" 23576# endif 23577 int F77_DUMMY_MAIN() { return 1; } 23578#endif 23579int 23580main () 23581{ 23582struct foo { int foo; } xx; 23583extern int strtok_r (struct foo*); 23584strtok_r(&xx); 23585 23586 ; 23587 return 0; 23588} 23589_ACEOF 23590rm -f conftest.$ac_objext 23591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23592 (eval $ac_compile) 2>&5 23593 ac_status=$? 23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23595 (exit $ac_status); } && 23596 { ac_try='test -s conftest.$ac_objext' 23597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23598 (eval $ac_try) 2>&5 23599 ac_status=$? 23600 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23601 (exit $ac_status); }; }; then 23602 eval "ac_cv_func_strtok_r_noproto=yes" 23603else 23604 echo "$as_me: failed program was:" >&5 23605cat conftest.$ac_ext >&5 23606eval "ac_cv_func_strtok_r_noproto=no" 23607fi 23608rm -f conftest.$ac_objext conftest.$ac_ext 23609fi 23610echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5 23611echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6 23612if test "$ac_cv_func_strtok_r_noproto" = yes; then 23613 23614cat >>confdefs.h <<\_ACEOF 23615#define NEED_STRTOK_R_PROTO 1 23616_ACEOF 23617 23618fi 23619fi 23620 23621 23622 23623if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then 23624echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5 23625echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6 23626if test "${ac_cv_func_strsvis_noproto+set}" = set; then 23627 echo $ECHO_N "(cached) $ECHO_C" >&6 23628else 23629 cat >conftest.$ac_ext <<_ACEOF 23630#line $LINENO "configure" 23631#include "confdefs.h" 23632#ifdef HAVE_VIS_H 23633#include <vis.h> 23634#endif 23635#ifdef F77_DUMMY_MAIN 23636# ifdef __cplusplus 23637 extern "C" 23638# endif 23639 int F77_DUMMY_MAIN() { return 1; } 23640#endif 23641int 23642main () 23643{ 23644struct foo { int foo; } xx; 23645extern int strsvis (struct foo*); 23646strsvis(&xx); 23647 23648 ; 23649 return 0; 23650} 23651_ACEOF 23652rm -f conftest.$ac_objext 23653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23654 (eval $ac_compile) 2>&5 23655 ac_status=$? 23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23657 (exit $ac_status); } && 23658 { ac_try='test -s conftest.$ac_objext' 23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23660 (eval $ac_try) 2>&5 23661 ac_status=$? 23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23663 (exit $ac_status); }; }; then 23664 eval "ac_cv_func_strsvis_noproto=yes" 23665else 23666 echo "$as_me: failed program was:" >&5 23667cat conftest.$ac_ext >&5 23668eval "ac_cv_func_strsvis_noproto=no" 23669fi 23670rm -f conftest.$ac_objext conftest.$ac_ext 23671fi 23672echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5 23673echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6 23674if test "$ac_cv_func_strsvis_noproto" = yes; then 23675 23676cat >>confdefs.h <<\_ACEOF 23677#define NEED_STRSVIS_PROTO 1 23678_ACEOF 23679 23680fi 23681fi 23682 23683if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then 23684echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5 23685echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6 23686if test "${ac_cv_func_strunvis_noproto+set}" = set; then 23687 echo $ECHO_N "(cached) $ECHO_C" >&6 23688else 23689 cat >conftest.$ac_ext <<_ACEOF 23690#line $LINENO "configure" 23691#include "confdefs.h" 23692#ifdef HAVE_VIS_H 23693#include <vis.h> 23694#endif 23695#ifdef F77_DUMMY_MAIN 23696# ifdef __cplusplus 23697 extern "C" 23698# endif 23699 int F77_DUMMY_MAIN() { return 1; } 23700#endif 23701int 23702main () 23703{ 23704struct foo { int foo; } xx; 23705extern int strunvis (struct foo*); 23706strunvis(&xx); 23707 23708 ; 23709 return 0; 23710} 23711_ACEOF 23712rm -f conftest.$ac_objext 23713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23714 (eval $ac_compile) 2>&5 23715 ac_status=$? 23716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23717 (exit $ac_status); } && 23718 { ac_try='test -s conftest.$ac_objext' 23719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23720 (eval $ac_try) 2>&5 23721 ac_status=$? 23722 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23723 (exit $ac_status); }; }; then 23724 eval "ac_cv_func_strunvis_noproto=yes" 23725else 23726 echo "$as_me: failed program was:" >&5 23727cat conftest.$ac_ext >&5 23728eval "ac_cv_func_strunvis_noproto=no" 23729fi 23730rm -f conftest.$ac_objext conftest.$ac_ext 23731fi 23732echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5 23733echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6 23734if test "$ac_cv_func_strunvis_noproto" = yes; then 23735 23736cat >>confdefs.h <<\_ACEOF 23737#define NEED_STRUNVIS_PROTO 1 23738_ACEOF 23739 23740fi 23741fi 23742 23743if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then 23744echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5 23745echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6 23746if test "${ac_cv_func_strvis_noproto+set}" = set; then 23747 echo $ECHO_N "(cached) $ECHO_C" >&6 23748else 23749 cat >conftest.$ac_ext <<_ACEOF 23750#line $LINENO "configure" 23751#include "confdefs.h" 23752#ifdef HAVE_VIS_H 23753#include <vis.h> 23754#endif 23755#ifdef F77_DUMMY_MAIN 23756# ifdef __cplusplus 23757 extern "C" 23758# endif 23759 int F77_DUMMY_MAIN() { return 1; } 23760#endif 23761int 23762main () 23763{ 23764struct foo { int foo; } xx; 23765extern int strvis (struct foo*); 23766strvis(&xx); 23767 23768 ; 23769 return 0; 23770} 23771_ACEOF 23772rm -f conftest.$ac_objext 23773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23774 (eval $ac_compile) 2>&5 23775 ac_status=$? 23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23777 (exit $ac_status); } && 23778 { ac_try='test -s conftest.$ac_objext' 23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23780 (eval $ac_try) 2>&5 23781 ac_status=$? 23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23783 (exit $ac_status); }; }; then 23784 eval "ac_cv_func_strvis_noproto=yes" 23785else 23786 echo "$as_me: failed program was:" >&5 23787cat conftest.$ac_ext >&5 23788eval "ac_cv_func_strvis_noproto=no" 23789fi 23790rm -f conftest.$ac_objext conftest.$ac_ext 23791fi 23792echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5 23793echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6 23794if test "$ac_cv_func_strvis_noproto" = yes; then 23795 23796cat >>confdefs.h <<\_ACEOF 23797#define NEED_STRVIS_PROTO 1 23798_ACEOF 23799 23800fi 23801fi 23802 23803if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then 23804echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5 23805echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6 23806if test "${ac_cv_func_strvisx_noproto+set}" = set; then 23807 echo $ECHO_N "(cached) $ECHO_C" >&6 23808else 23809 cat >conftest.$ac_ext <<_ACEOF 23810#line $LINENO "configure" 23811#include "confdefs.h" 23812#ifdef HAVE_VIS_H 23813#include <vis.h> 23814#endif 23815#ifdef F77_DUMMY_MAIN 23816# ifdef __cplusplus 23817 extern "C" 23818# endif 23819 int F77_DUMMY_MAIN() { return 1; } 23820#endif 23821int 23822main () 23823{ 23824struct foo { int foo; } xx; 23825extern int strvisx (struct foo*); 23826strvisx(&xx); 23827 23828 ; 23829 return 0; 23830} 23831_ACEOF 23832rm -f conftest.$ac_objext 23833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23834 (eval $ac_compile) 2>&5 23835 ac_status=$? 23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23837 (exit $ac_status); } && 23838 { ac_try='test -s conftest.$ac_objext' 23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23840 (eval $ac_try) 2>&5 23841 ac_status=$? 23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23843 (exit $ac_status); }; }; then 23844 eval "ac_cv_func_strvisx_noproto=yes" 23845else 23846 echo "$as_me: failed program was:" >&5 23847cat conftest.$ac_ext >&5 23848eval "ac_cv_func_strvisx_noproto=no" 23849fi 23850rm -f conftest.$ac_objext conftest.$ac_ext 23851fi 23852echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5 23853echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6 23854if test "$ac_cv_func_strvisx_noproto" = yes; then 23855 23856cat >>confdefs.h <<\_ACEOF 23857#define NEED_STRVISX_PROTO 1 23858_ACEOF 23859 23860fi 23861fi 23862 23863if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then 23864echo "$as_me:$LINENO: checking if svis needs a prototype" >&5 23865echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6 23866if test "${ac_cv_func_svis_noproto+set}" = set; then 23867 echo $ECHO_N "(cached) $ECHO_C" >&6 23868else 23869 cat >conftest.$ac_ext <<_ACEOF 23870#line $LINENO "configure" 23871#include "confdefs.h" 23872#ifdef HAVE_VIS_H 23873#include <vis.h> 23874#endif 23875#ifdef F77_DUMMY_MAIN 23876# ifdef __cplusplus 23877 extern "C" 23878# endif 23879 int F77_DUMMY_MAIN() { return 1; } 23880#endif 23881int 23882main () 23883{ 23884struct foo { int foo; } xx; 23885extern int svis (struct foo*); 23886svis(&xx); 23887 23888 ; 23889 return 0; 23890} 23891_ACEOF 23892rm -f conftest.$ac_objext 23893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23894 (eval $ac_compile) 2>&5 23895 ac_status=$? 23896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23897 (exit $ac_status); } && 23898 { ac_try='test -s conftest.$ac_objext' 23899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23900 (eval $ac_try) 2>&5 23901 ac_status=$? 23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23903 (exit $ac_status); }; }; then 23904 eval "ac_cv_func_svis_noproto=yes" 23905else 23906 echo "$as_me: failed program was:" >&5 23907cat conftest.$ac_ext >&5 23908eval "ac_cv_func_svis_noproto=no" 23909fi 23910rm -f conftest.$ac_objext conftest.$ac_ext 23911fi 23912echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5 23913echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6 23914if test "$ac_cv_func_svis_noproto" = yes; then 23915 23916cat >>confdefs.h <<\_ACEOF 23917#define NEED_SVIS_PROTO 1 23918_ACEOF 23919 23920fi 23921fi 23922 23923if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then 23924echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5 23925echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6 23926if test "${ac_cv_func_unvis_noproto+set}" = set; then 23927 echo $ECHO_N "(cached) $ECHO_C" >&6 23928else 23929 cat >conftest.$ac_ext <<_ACEOF 23930#line $LINENO "configure" 23931#include "confdefs.h" 23932#ifdef HAVE_VIS_H 23933#include <vis.h> 23934#endif 23935#ifdef F77_DUMMY_MAIN 23936# ifdef __cplusplus 23937 extern "C" 23938# endif 23939 int F77_DUMMY_MAIN() { return 1; } 23940#endif 23941int 23942main () 23943{ 23944struct foo { int foo; } xx; 23945extern int unvis (struct foo*); 23946unvis(&xx); 23947 23948 ; 23949 return 0; 23950} 23951_ACEOF 23952rm -f conftest.$ac_objext 23953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23954 (eval $ac_compile) 2>&5 23955 ac_status=$? 23956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23957 (exit $ac_status); } && 23958 { ac_try='test -s conftest.$ac_objext' 23959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23960 (eval $ac_try) 2>&5 23961 ac_status=$? 23962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23963 (exit $ac_status); }; }; then 23964 eval "ac_cv_func_unvis_noproto=yes" 23965else 23966 echo "$as_me: failed program was:" >&5 23967cat conftest.$ac_ext >&5 23968eval "ac_cv_func_unvis_noproto=no" 23969fi 23970rm -f conftest.$ac_objext conftest.$ac_ext 23971fi 23972echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5 23973echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6 23974if test "$ac_cv_func_unvis_noproto" = yes; then 23975 23976cat >>confdefs.h <<\_ACEOF 23977#define NEED_UNVIS_PROTO 1 23978_ACEOF 23979 23980fi 23981fi 23982 23983if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then 23984echo "$as_me:$LINENO: checking if vis needs a prototype" >&5 23985echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6 23986if test "${ac_cv_func_vis_noproto+set}" = set; then 23987 echo $ECHO_N "(cached) $ECHO_C" >&6 23988else 23989 cat >conftest.$ac_ext <<_ACEOF 23990#line $LINENO "configure" 23991#include "confdefs.h" 23992#ifdef HAVE_VIS_H 23993#include <vis.h> 23994#endif 23995#ifdef F77_DUMMY_MAIN 23996# ifdef __cplusplus 23997 extern "C" 23998# endif 23999 int F77_DUMMY_MAIN() { return 1; } 24000#endif 24001int 24002main () 24003{ 24004struct foo { int foo; } xx; 24005extern int vis (struct foo*); 24006vis(&xx); 24007 24008 ; 24009 return 0; 24010} 24011_ACEOF 24012rm -f conftest.$ac_objext 24013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24014 (eval $ac_compile) 2>&5 24015 ac_status=$? 24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24017 (exit $ac_status); } && 24018 { ac_try='test -s conftest.$ac_objext' 24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24020 (eval $ac_try) 2>&5 24021 ac_status=$? 24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24023 (exit $ac_status); }; }; then 24024 eval "ac_cv_func_vis_noproto=yes" 24025else 24026 echo "$as_me: failed program was:" >&5 24027cat conftest.$ac_ext >&5 24028eval "ac_cv_func_vis_noproto=no" 24029fi 24030rm -f conftest.$ac_objext conftest.$ac_ext 24031fi 24032echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5 24033echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6 24034if test "$ac_cv_func_vis_noproto" = yes; then 24035 24036cat >>confdefs.h <<\_ACEOF 24037#define NEED_VIS_PROTO 1 24038_ACEOF 24039 24040fi 24041fi 24042 24043 24044echo "$as_me:$LINENO: checking for inet_aton" >&5 24045echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 24046if test "${ac_cv_func_inet_aton+set}" = set; then 24047 echo $ECHO_N "(cached) $ECHO_C" >&6 24048else 24049 cat >conftest.$ac_ext <<_ACEOF 24050#line $LINENO "configure" 24051#include "confdefs.h" 24052#ifdef HAVE_SYS_TYPES_H 24053#include <sys/types.h> 24054#endif 24055#ifdef HAVE_SYS_SOCKET_H 24056#include <sys/socket.h> 24057#endif 24058#ifdef HAVE_NETINET_IN_H 24059#include <netinet/in.h> 24060#endif 24061#ifdef HAVE_ARPA_INET_H 24062#include <arpa/inet.h> 24063#endif 24064#ifdef F77_DUMMY_MAIN 24065# ifdef __cplusplus 24066 extern "C" 24067# endif 24068 int F77_DUMMY_MAIN() { return 1; } 24069#endif 24070int 24071main () 24072{ 24073 24074/* The GNU C library defines this for functions which it implements 24075 to always fail with ENOSYS. Some functions are actually named 24076 something starting with __ and the normal name is an alias. */ 24077#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 24078choke me 24079#else 24080inet_aton(0,0) 24081#endif 24082 24083 ; 24084 return 0; 24085} 24086_ACEOF 24087rm -f conftest.$ac_objext conftest$ac_exeext 24088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24089 (eval $ac_link) 2>&5 24090 ac_status=$? 24091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24092 (exit $ac_status); } && 24093 { ac_try='test -s conftest$ac_exeext' 24094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24095 (eval $ac_try) 2>&5 24096 ac_status=$? 24097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24098 (exit $ac_status); }; }; then 24099 eval "ac_cv_func_inet_aton=yes" 24100else 24101 echo "$as_me: failed program was:" >&5 24102cat conftest.$ac_ext >&5 24103eval "ac_cv_func_inet_aton=no" 24104fi 24105rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24106fi 24107 24108if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then 24109 24110cat >>confdefs.h <<_ACEOF 24111#define HAVE_INET_ATON 1 24112_ACEOF 24113 24114 echo "$as_me:$LINENO: result: yes" >&5 24115echo "${ECHO_T}yes" >&6 24116else 24117 echo "$as_me:$LINENO: result: no" >&5 24118echo "${ECHO_T}no" >&6 24119 LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 24120fi 24121 24122echo "$as_me:$LINENO: checking for inet_ntop" >&5 24123echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6 24124if test "${ac_cv_func_inet_ntop+set}" = set; then 24125 echo $ECHO_N "(cached) $ECHO_C" >&6 24126else 24127 cat >conftest.$ac_ext <<_ACEOF 24128#line $LINENO "configure" 24129#include "confdefs.h" 24130#ifdef HAVE_SYS_TYPES_H 24131#include <sys/types.h> 24132#endif 24133#ifdef HAVE_SYS_SOCKET_H 24134#include <sys/socket.h> 24135#endif 24136#ifdef HAVE_NETINET_IN_H 24137#include <netinet/in.h> 24138#endif 24139#ifdef HAVE_ARPA_INET_H 24140#include <arpa/inet.h> 24141#endif 24142#ifdef F77_DUMMY_MAIN 24143# ifdef __cplusplus 24144 extern "C" 24145# endif 24146 int F77_DUMMY_MAIN() { return 1; } 24147#endif 24148int 24149main () 24150{ 24151 24152/* The GNU C library defines this for functions which it implements 24153 to always fail with ENOSYS. Some functions are actually named 24154 something starting with __ and the normal name is an alias. */ 24155#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 24156choke me 24157#else 24158inet_ntop(0, 0, 0, 0) 24159#endif 24160 24161 ; 24162 return 0; 24163} 24164_ACEOF 24165rm -f conftest.$ac_objext conftest$ac_exeext 24166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24167 (eval $ac_link) 2>&5 24168 ac_status=$? 24169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24170 (exit $ac_status); } && 24171 { ac_try='test -s conftest$ac_exeext' 24172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24173 (eval $ac_try) 2>&5 24174 ac_status=$? 24175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24176 (exit $ac_status); }; }; then 24177 eval "ac_cv_func_inet_ntop=yes" 24178else 24179 echo "$as_me: failed program was:" >&5 24180cat conftest.$ac_ext >&5 24181eval "ac_cv_func_inet_ntop=no" 24182fi 24183rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24184fi 24185 24186if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then 24187 24188cat >>confdefs.h <<_ACEOF 24189#define HAVE_INET_NTOP 1 24190_ACEOF 24191 24192 echo "$as_me:$LINENO: result: yes" >&5 24193echo "${ECHO_T}yes" >&6 24194else 24195 echo "$as_me:$LINENO: result: no" >&5 24196echo "${ECHO_T}no" >&6 24197 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 24198fi 24199 24200echo "$as_me:$LINENO: checking for inet_pton" >&5 24201echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 24202if test "${ac_cv_func_inet_pton+set}" = set; then 24203 echo $ECHO_N "(cached) $ECHO_C" >&6 24204else 24205 cat >conftest.$ac_ext <<_ACEOF 24206#line $LINENO "configure" 24207#include "confdefs.h" 24208#ifdef HAVE_SYS_TYPES_H 24209#include <sys/types.h> 24210#endif 24211#ifdef HAVE_SYS_SOCKET_H 24212#include <sys/socket.h> 24213#endif 24214#ifdef HAVE_NETINET_IN_H 24215#include <netinet/in.h> 24216#endif 24217#ifdef HAVE_ARPA_INET_H 24218#include <arpa/inet.h> 24219#endif 24220#ifdef F77_DUMMY_MAIN 24221# ifdef __cplusplus 24222 extern "C" 24223# endif 24224 int F77_DUMMY_MAIN() { return 1; } 24225#endif 24226int 24227main () 24228{ 24229 24230/* The GNU C library defines this for functions which it implements 24231 to always fail with ENOSYS. Some functions are actually named 24232 something starting with __ and the normal name is an alias. */ 24233#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 24234choke me 24235#else 24236inet_pton(0,0,0) 24237#endif 24238 24239 ; 24240 return 0; 24241} 24242_ACEOF 24243rm -f conftest.$ac_objext conftest$ac_exeext 24244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24245 (eval $ac_link) 2>&5 24246 ac_status=$? 24247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24248 (exit $ac_status); } && 24249 { ac_try='test -s conftest$ac_exeext' 24250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24251 (eval $ac_try) 2>&5 24252 ac_status=$? 24253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24254 (exit $ac_status); }; }; then 24255 eval "ac_cv_func_inet_pton=yes" 24256else 24257 echo "$as_me: failed program was:" >&5 24258cat conftest.$ac_ext >&5 24259eval "ac_cv_func_inet_pton=no" 24260fi 24261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24262fi 24263 24264if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then 24265 24266cat >>confdefs.h <<_ACEOF 24267#define HAVE_INET_PTON 1 24268_ACEOF 24269 24270 echo "$as_me:$LINENO: result: yes" >&5 24271echo "${ECHO_T}yes" >&6 24272else 24273 echo "$as_me:$LINENO: result: no" >&5 24274echo "${ECHO_T}no" >&6 24275 LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 24276fi 24277 24278 24279 24280echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 24281echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 24282if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 24283 echo $ECHO_N "(cached) $ECHO_C" >&6 24284else 24285 24286cat >conftest.$ac_ext <<_ACEOF 24287#line $LINENO "configure" 24288#include "confdefs.h" 24289#include <sys/types.h> 24290#include <sys/socket.h> 24291#ifdef F77_DUMMY_MAIN 24292# ifdef __cplusplus 24293 extern "C" 24294# endif 24295 int F77_DUMMY_MAIN() { return 1; } 24296#endif 24297int 24298main () 24299{ 24300struct sockaddr x; x.sa_len; 24301 ; 24302 return 0; 24303} 24304_ACEOF 24305rm -f conftest.$ac_objext 24306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24307 (eval $ac_compile) 2>&5 24308 ac_status=$? 24309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24310 (exit $ac_status); } && 24311 { ac_try='test -s conftest.$ac_objext' 24312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24313 (eval $ac_try) 2>&5 24314 ac_status=$? 24315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24316 (exit $ac_status); }; }; then 24317 ac_cv_type_struct_sockaddr_sa_len=yes 24318else 24319 echo "$as_me: failed program was:" >&5 24320cat conftest.$ac_ext >&5 24321ac_cv_type_struct_sockaddr_sa_len=no 24322fi 24323rm -f conftest.$ac_objext conftest.$ac_ext 24324fi 24325echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 24326echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 24327if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 24328 24329 24330cat >>confdefs.h <<\_ACEOF 24331#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 24332_ACEOF 24333 24334 24335fi 24336 24337 24338 24339if test "$ac_cv_func_getnameinfo" = "yes"; then 24340 24341echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5 24342echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6 24343if test "${ac_cv_func_getnameinfo_broken+set}" = set; then 24344 echo $ECHO_N "(cached) $ECHO_C" >&6 24345else 24346 if test "$cross_compiling" = yes; then 24347 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 24348echo "$as_me: error: cannot run test program while cross compiling" >&2;} 24349 { (exit 1); exit 1; }; } 24350else 24351 cat >conftest.$ac_ext <<_ACEOF 24352#line $LINENO "configure" 24353#include "confdefs.h" 24354#include <stdio.h> 24355#include <sys/types.h> 24356#include <sys/socket.h> 24357#include <netinet/in.h> 24358#include <netdb.h> 24359 24360int 24361main(int argc, char **argv) 24362{ 24363 struct sockaddr_in sin; 24364 char host[256]; 24365 memset(&sin, 0, sizeof(sin)); 24366#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN 24367 sin.sin_len = sizeof(sin); 24368#endif 24369 sin.sin_family = AF_INET; 24370 sin.sin_addr.s_addr = 0xffffffff; 24371 sin.sin_port = 0; 24372 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host), 24373 NULL, 0, 0); 24374} 24375 24376_ACEOF 24377rm -f conftest$ac_exeext 24378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24379 (eval $ac_link) 2>&5 24380 ac_status=$? 24381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24382 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24384 (eval $ac_try) 2>&5 24385 ac_status=$? 24386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24387 (exit $ac_status); }; }; then 24388 ac_cv_func_getnameinfo_broken=no 24389else 24390 echo "$as_me: program exited with status $ac_status" >&5 24391echo "$as_me: failed program was:" >&5 24392cat conftest.$ac_ext >&5 24393( exit $ac_status ) 24394ac_cv_func_getnameinfo_broken=yes 24395fi 24396rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24397fi 24398fi 24399echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5 24400echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6 24401 if test "$ac_cv_func_getnameinfo_broken" = yes; then 24402 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 24403 fi 24404fi 24405 24406if test "$ac_cv_func_getaddrinfo" = "yes"; then 24407 24408echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5 24409echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6 24410if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then 24411 echo $ECHO_N "(cached) $ECHO_C" >&6 24412else 24413 if test "$cross_compiling" = yes; then 24414 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 24415echo "$as_me: error: cannot run test program while cross compiling" >&2;} 24416 { (exit 1); exit 1; }; } 24417else 24418 cat >conftest.$ac_ext <<_ACEOF 24419#line $LINENO "configure" 24420#include "confdefs.h" 24421#include <stdio.h> 24422#include <sys/types.h> 24423#include <sys/socket.h> 24424#include <netdb.h> 24425 24426int 24427main(int argc, char **argv) 24428{ 24429 struct addrinfo hints, *ai; 24430 memset(&hints, 0, sizeof(hints)); 24431 hints.ai_flags = AI_PASSIVE; 24432 hints.ai_socktype = SOCK_STREAM; 24433 hints.ai_family = PF_UNSPEC; 24434 if(getaddrinfo(NULL, "17", &hints, &ai) != 0) 24435 return 1; 24436 return 0; 24437} 24438 24439_ACEOF 24440rm -f conftest$ac_exeext 24441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24442 (eval $ac_link) 2>&5 24443 ac_status=$? 24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24447 (eval $ac_try) 2>&5 24448 ac_status=$? 24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24450 (exit $ac_status); }; }; then 24451 ac_cv_func_getaddrinfo_numserv=yes 24452else 24453 echo "$as_me: program exited with status $ac_status" >&5 24454echo "$as_me: failed program was:" >&5 24455cat conftest.$ac_ext >&5 24456( exit $ac_status ) 24457ac_cv_func_getaddrinfo_numserv=no 24458fi 24459rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24460fi 24461fi 24462echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5 24463echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6 24464 if test "$ac_cv_func_getaddrinfo_numserv" = no; then 24465 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 24466 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 24467 fi 24468fi 24469 24470 24471if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 24472echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5 24473echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6 24474if test "${ac_cv_func_setenv_noproto+set}" = set; then 24475 echo $ECHO_N "(cached) $ECHO_C" >&6 24476else 24477 cat >conftest.$ac_ext <<_ACEOF 24478#line $LINENO "configure" 24479#include "confdefs.h" 24480#include <stdlib.h> 24481#ifdef F77_DUMMY_MAIN 24482# ifdef __cplusplus 24483 extern "C" 24484# endif 24485 int F77_DUMMY_MAIN() { return 1; } 24486#endif 24487int 24488main () 24489{ 24490struct foo { int foo; } xx; 24491extern int setenv (struct foo*); 24492setenv(&xx); 24493 24494 ; 24495 return 0; 24496} 24497_ACEOF 24498rm -f conftest.$ac_objext 24499if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24500 (eval $ac_compile) 2>&5 24501 ac_status=$? 24502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24503 (exit $ac_status); } && 24504 { ac_try='test -s conftest.$ac_objext' 24505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24506 (eval $ac_try) 2>&5 24507 ac_status=$? 24508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24509 (exit $ac_status); }; }; then 24510 eval "ac_cv_func_setenv_noproto=yes" 24511else 24512 echo "$as_me: failed program was:" >&5 24513cat conftest.$ac_ext >&5 24514eval "ac_cv_func_setenv_noproto=no" 24515fi 24516rm -f conftest.$ac_objext conftest.$ac_ext 24517fi 24518echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5 24519echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6 24520if test "$ac_cv_func_setenv_noproto" = yes; then 24521 24522cat >>confdefs.h <<\_ACEOF 24523#define NEED_SETENV_PROTO 1 24524_ACEOF 24525 24526fi 24527fi 24528 24529 24530if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 24531echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5 24532echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6 24533if test "${ac_cv_func_unsetenv_noproto+set}" = set; then 24534 echo $ECHO_N "(cached) $ECHO_C" >&6 24535else 24536 cat >conftest.$ac_ext <<_ACEOF 24537#line $LINENO "configure" 24538#include "confdefs.h" 24539#include <stdlib.h> 24540#ifdef F77_DUMMY_MAIN 24541# ifdef __cplusplus 24542 extern "C" 24543# endif 24544 int F77_DUMMY_MAIN() { return 1; } 24545#endif 24546int 24547main () 24548{ 24549struct foo { int foo; } xx; 24550extern int unsetenv (struct foo*); 24551unsetenv(&xx); 24552 24553 ; 24554 return 0; 24555} 24556_ACEOF 24557rm -f conftest.$ac_objext 24558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24559 (eval $ac_compile) 2>&5 24560 ac_status=$? 24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24562 (exit $ac_status); } && 24563 { ac_try='test -s conftest.$ac_objext' 24564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24565 (eval $ac_try) 2>&5 24566 ac_status=$? 24567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24568 (exit $ac_status); }; }; then 24569 eval "ac_cv_func_unsetenv_noproto=yes" 24570else 24571 echo "$as_me: failed program was:" >&5 24572cat conftest.$ac_ext >&5 24573eval "ac_cv_func_unsetenv_noproto=no" 24574fi 24575rm -f conftest.$ac_objext conftest.$ac_ext 24576fi 24577echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5 24578echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6 24579if test "$ac_cv_func_unsetenv_noproto" = yes; then 24580 24581cat >>confdefs.h <<\_ACEOF 24582#define NEED_UNSETENV_PROTO 1 24583_ACEOF 24584 24585fi 24586fi 24587 24588 24589if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 24590echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5 24591echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6 24592if test "${ac_cv_func_gethostname_noproto+set}" = set; then 24593 echo $ECHO_N "(cached) $ECHO_C" >&6 24594else 24595 cat >conftest.$ac_ext <<_ACEOF 24596#line $LINENO "configure" 24597#include "confdefs.h" 24598#include <unistd.h> 24599#ifdef F77_DUMMY_MAIN 24600# ifdef __cplusplus 24601 extern "C" 24602# endif 24603 int F77_DUMMY_MAIN() { return 1; } 24604#endif 24605int 24606main () 24607{ 24608struct foo { int foo; } xx; 24609extern int gethostname (struct foo*); 24610gethostname(&xx); 24611 24612 ; 24613 return 0; 24614} 24615_ACEOF 24616rm -f conftest.$ac_objext 24617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24618 (eval $ac_compile) 2>&5 24619 ac_status=$? 24620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24621 (exit $ac_status); } && 24622 { ac_try='test -s conftest.$ac_objext' 24623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24624 (eval $ac_try) 2>&5 24625 ac_status=$? 24626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24627 (exit $ac_status); }; }; then 24628 eval "ac_cv_func_gethostname_noproto=yes" 24629else 24630 echo "$as_me: failed program was:" >&5 24631cat conftest.$ac_ext >&5 24632eval "ac_cv_func_gethostname_noproto=no" 24633fi 24634rm -f conftest.$ac_objext conftest.$ac_ext 24635fi 24636echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5 24637echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6 24638if test "$ac_cv_func_gethostname_noproto" = yes; then 24639 24640cat >>confdefs.h <<\_ACEOF 24641#define NEED_GETHOSTNAME_PROTO 1 24642_ACEOF 24643 24644fi 24645fi 24646 24647 24648if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 24649echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5 24650echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6 24651if test "${ac_cv_func_mkstemp_noproto+set}" = set; then 24652 echo $ECHO_N "(cached) $ECHO_C" >&6 24653else 24654 cat >conftest.$ac_ext <<_ACEOF 24655#line $LINENO "configure" 24656#include "confdefs.h" 24657#include <unistd.h> 24658#ifdef F77_DUMMY_MAIN 24659# ifdef __cplusplus 24660 extern "C" 24661# endif 24662 int F77_DUMMY_MAIN() { return 1; } 24663#endif 24664int 24665main () 24666{ 24667struct foo { int foo; } xx; 24668extern int mkstemp (struct foo*); 24669mkstemp(&xx); 24670 24671 ; 24672 return 0; 24673} 24674_ACEOF 24675rm -f conftest.$ac_objext 24676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24677 (eval $ac_compile) 2>&5 24678 ac_status=$? 24679 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24680 (exit $ac_status); } && 24681 { ac_try='test -s conftest.$ac_objext' 24682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24683 (eval $ac_try) 2>&5 24684 ac_status=$? 24685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24686 (exit $ac_status); }; }; then 24687 eval "ac_cv_func_mkstemp_noproto=yes" 24688else 24689 echo "$as_me: failed program was:" >&5 24690cat conftest.$ac_ext >&5 24691eval "ac_cv_func_mkstemp_noproto=no" 24692fi 24693rm -f conftest.$ac_objext conftest.$ac_ext 24694fi 24695echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5 24696echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6 24697if test "$ac_cv_func_mkstemp_noproto" = yes; then 24698 24699cat >>confdefs.h <<\_ACEOF 24700#define NEED_MKSTEMP_PROTO 1 24701_ACEOF 24702 24703fi 24704fi 24705 24706 24707if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 24708echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5 24709echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6 24710if test "${ac_cv_func_getusershell_noproto+set}" = set; then 24711 echo $ECHO_N "(cached) $ECHO_C" >&6 24712else 24713 cat >conftest.$ac_ext <<_ACEOF 24714#line $LINENO "configure" 24715#include "confdefs.h" 24716#include <unistd.h> 24717#ifdef F77_DUMMY_MAIN 24718# ifdef __cplusplus 24719 extern "C" 24720# endif 24721 int F77_DUMMY_MAIN() { return 1; } 24722#endif 24723int 24724main () 24725{ 24726struct foo { int foo; } xx; 24727extern int getusershell (struct foo*); 24728getusershell(&xx); 24729 24730 ; 24731 return 0; 24732} 24733_ACEOF 24734rm -f conftest.$ac_objext 24735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24736 (eval $ac_compile) 2>&5 24737 ac_status=$? 24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24739 (exit $ac_status); } && 24740 { ac_try='test -s conftest.$ac_objext' 24741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24742 (eval $ac_try) 2>&5 24743 ac_status=$? 24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24745 (exit $ac_status); }; }; then 24746 eval "ac_cv_func_getusershell_noproto=yes" 24747else 24748 echo "$as_me: failed program was:" >&5 24749cat conftest.$ac_ext >&5 24750eval "ac_cv_func_getusershell_noproto=no" 24751fi 24752rm -f conftest.$ac_objext conftest.$ac_ext 24753fi 24754echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5 24755echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6 24756if test "$ac_cv_func_getusershell_noproto" = yes; then 24757 24758cat >>confdefs.h <<\_ACEOF 24759#define NEED_GETUSERSHELL_PROTO 1 24760_ACEOF 24761 24762fi 24763fi 24764 24765 24766 24767if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 24768echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5 24769echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6 24770if test "${ac_cv_func_inet_aton_noproto+set}" = set; then 24771 echo $ECHO_N "(cached) $ECHO_C" >&6 24772else 24773 cat >conftest.$ac_ext <<_ACEOF 24774#line $LINENO "configure" 24775#include "confdefs.h" 24776 24777#ifdef HAVE_SYS_TYPES_H 24778#include <sys/types.h> 24779#endif 24780#ifdef HAVE_SYS_SOCKET_H 24781#include <sys/socket.h> 24782#endif 24783#ifdef HAVE_NETINET_IN_H 24784#include <netinet/in.h> 24785#endif 24786#ifdef HAVE_ARPA_INET_H 24787#include <arpa/inet.h> 24788#endif 24789#ifdef F77_DUMMY_MAIN 24790# ifdef __cplusplus 24791 extern "C" 24792# endif 24793 int F77_DUMMY_MAIN() { return 1; } 24794#endif 24795int 24796main () 24797{ 24798struct foo { int foo; } xx; 24799extern int inet_aton (struct foo*); 24800inet_aton(&xx); 24801 24802 ; 24803 return 0; 24804} 24805_ACEOF 24806rm -f conftest.$ac_objext 24807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24808 (eval $ac_compile) 2>&5 24809 ac_status=$? 24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24811 (exit $ac_status); } && 24812 { ac_try='test -s conftest.$ac_objext' 24813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24814 (eval $ac_try) 2>&5 24815 ac_status=$? 24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24817 (exit $ac_status); }; }; then 24818 eval "ac_cv_func_inet_aton_noproto=yes" 24819else 24820 echo "$as_me: failed program was:" >&5 24821cat conftest.$ac_ext >&5 24822eval "ac_cv_func_inet_aton_noproto=no" 24823fi 24824rm -f conftest.$ac_objext conftest.$ac_ext 24825fi 24826echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5 24827echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6 24828if test "$ac_cv_func_inet_aton_noproto" = yes; then 24829 24830cat >>confdefs.h <<\_ACEOF 24831#define NEED_INET_ATON_PROTO 1 24832_ACEOF 24833 24834fi 24835fi 24836 24837 24838 24839 24840 24841echo "$as_me:$LINENO: checking for crypt" >&5 24842echo $ECHO_N "checking for crypt... $ECHO_C" >&6 24843if test "${ac_cv_funclib_crypt+set}" = set; then 24844 echo $ECHO_N "(cached) $ECHO_C" >&6 24845else 24846 24847if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 24848 ac_save_LIBS="$LIBS" 24849 for ac_lib in "" crypt; do 24850 case "$ac_lib" in 24851 "") ;; 24852 yes) ac_lib="" ;; 24853 no) continue ;; 24854 -l*) ;; 24855 *) ac_lib="-l$ac_lib" ;; 24856 esac 24857 LIBS=" $ac_lib $ac_save_LIBS" 24858 cat >conftest.$ac_ext <<_ACEOF 24859#line $LINENO "configure" 24860#include "confdefs.h" 24861 24862#ifdef F77_DUMMY_MAIN 24863# ifdef __cplusplus 24864 extern "C" 24865# endif 24866 int F77_DUMMY_MAIN() { return 1; } 24867#endif 24868int 24869main () 24870{ 24871crypt() 24872 ; 24873 return 0; 24874} 24875_ACEOF 24876rm -f conftest.$ac_objext conftest$ac_exeext 24877if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24878 (eval $ac_link) 2>&5 24879 ac_status=$? 24880 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24881 (exit $ac_status); } && 24882 { ac_try='test -s conftest$ac_exeext' 24883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24884 (eval $ac_try) 2>&5 24885 ac_status=$? 24886 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24887 (exit $ac_status); }; }; then 24888 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 24889else 24890 echo "$as_me: failed program was:" >&5 24891cat conftest.$ac_ext >&5 24892fi 24893rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24894 done 24895 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 24896 LIBS="$ac_save_LIBS" 24897fi 24898 24899fi 24900 24901 24902eval "ac_res=\$ac_cv_funclib_crypt" 24903 24904if false; then 24905 24906for ac_func in crypt 24907do 24908as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24909echo "$as_me:$LINENO: checking for $ac_func" >&5 24910echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24911if eval "test \"\${$as_ac_var+set}\" = set"; then 24912 echo $ECHO_N "(cached) $ECHO_C" >&6 24913else 24914 cat >conftest.$ac_ext <<_ACEOF 24915#line $LINENO "configure" 24916#include "confdefs.h" 24917/* System header to define __stub macros and hopefully few prototypes, 24918 which can conflict with char $ac_func (); below. */ 24919#include <assert.h> 24920/* Override any gcc2 internal prototype to avoid an error. */ 24921#ifdef __cplusplus 24922extern "C" 24923#endif 24924/* We use char because int might match the return type of a gcc2 24925 builtin and then its argument prototype would still apply. */ 24926char $ac_func (); 24927char (*f) (); 24928 24929#ifdef F77_DUMMY_MAIN 24930# ifdef __cplusplus 24931 extern "C" 24932# endif 24933 int F77_DUMMY_MAIN() { return 1; } 24934#endif 24935int 24936main () 24937{ 24938/* The GNU C library defines this for functions which it implements 24939 to always fail with ENOSYS. Some functions are actually named 24940 something starting with __ and the normal name is an alias. */ 24941#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24942choke me 24943#else 24944f = $ac_func; 24945#endif 24946 24947 ; 24948 return 0; 24949} 24950_ACEOF 24951rm -f conftest.$ac_objext conftest$ac_exeext 24952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24953 (eval $ac_link) 2>&5 24954 ac_status=$? 24955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24956 (exit $ac_status); } && 24957 { ac_try='test -s conftest$ac_exeext' 24958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24959 (eval $ac_try) 2>&5 24960 ac_status=$? 24961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24962 (exit $ac_status); }; }; then 24963 eval "$as_ac_var=yes" 24964else 24965 echo "$as_me: failed program was:" >&5 24966cat conftest.$ac_ext >&5 24967eval "$as_ac_var=no" 24968fi 24969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24970fi 24971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 24972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 24973if test `eval echo '${'$as_ac_var'}'` = yes; then 24974 cat >>confdefs.h <<_ACEOF 24975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 24976_ACEOF 24977 24978fi 24979done 24980 24981fi 24982# crypt 24983eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 24984eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 24985eval "LIB_crypt=$ac_res" 24986 24987case "$ac_res" in 24988 yes) 24989 eval "ac_cv_func_crypt=yes" 24990 eval "LIB_crypt=" 24991 cat >>confdefs.h <<_ACEOF 24992#define $ac_tr_func 1 24993_ACEOF 24994 24995 echo "$as_me:$LINENO: result: yes" >&5 24996echo "${ECHO_T}yes" >&6 24997 ;; 24998 no) 24999 eval "ac_cv_func_crypt=no" 25000 eval "LIB_crypt=" 25001 echo "$as_me:$LINENO: result: no" >&5 25002echo "${ECHO_T}no" >&6 25003 ;; 25004 *) 25005 eval "ac_cv_func_crypt=yes" 25006 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 25007 cat >>confdefs.h <<_ACEOF 25008#define $ac_tr_func 1 25009_ACEOF 25010 25011 cat >>confdefs.h <<_ACEOF 25012#define $ac_tr_lib 1 25013_ACEOF 25014 25015 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 25016echo "${ECHO_T}yes, in $ac_res" >&6 25017 ;; 25018esac 25019 25020 25021 25022 25023 25024 25025echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5 25026echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6 25027if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then 25028 echo $ECHO_N "(cached) $ECHO_C" >&6 25029else 25030 cat >conftest.$ac_ext <<_ACEOF 25031#line $LINENO "configure" 25032#include "confdefs.h" 25033 25034#ifdef HAVE_SYS_TYPES_H 25035#include <sys/types.h> 25036#endif 25037#ifdef HAVE_SYS_SOCKET_H 25038#include <sys/socket.h> 25039#endif 25040#ifdef HAVE_NETINET_IN_H 25041#include <netinet/in.h> 25042#endif 25043#ifdef HAVE_ARPA_INET_H 25044#include <arpa/inet.h> 25045#endif 25046#ifdef HAVE_NETDB_H 25047#include <netdb.h> 25048#endif 25049 25050#ifdef F77_DUMMY_MAIN 25051# ifdef __cplusplus 25052 extern "C" 25053# endif 25054 int F77_DUMMY_MAIN() { return 1; } 25055#endif 25056int 25057main () 25058{ 25059struct hostent *gethostbyname(const char *); 25060 ; 25061 return 0; 25062} 25063_ACEOF 25064rm -f conftest.$ac_objext 25065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25066 (eval $ac_compile) 2>&5 25067 ac_status=$? 25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25069 (exit $ac_status); } && 25070 { ac_try='test -s conftest.$ac_objext' 25071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25072 (eval $ac_try) 2>&5 25073 ac_status=$? 25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25075 (exit $ac_status); }; }; then 25076 eval "ac_cv_func_gethostbyname_proto_compat=yes" 25077else 25078 echo "$as_me: failed program was:" >&5 25079cat conftest.$ac_ext >&5 25080eval "ac_cv_func_gethostbyname_proto_compat=no" 25081fi 25082rm -f conftest.$ac_objext conftest.$ac_ext 25083fi 25084echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5 25085echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6 25086 25087if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 25088 25089cat >>confdefs.h <<\_ACEOF 25090#define GETHOSTBYNAME_PROTO_COMPATIBLE 1 25091_ACEOF 25092 25093fi 25094 25095 25096 25097 25098echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5 25099echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6 25100if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then 25101 echo $ECHO_N "(cached) $ECHO_C" >&6 25102else 25103 cat >conftest.$ac_ext <<_ACEOF 25104#line $LINENO "configure" 25105#include "confdefs.h" 25106 25107#ifdef HAVE_SYS_TYPES_H 25108#include <sys/types.h> 25109#endif 25110#ifdef HAVE_SYS_SOCKET_H 25111#include <sys/socket.h> 25112#endif 25113#ifdef HAVE_NETINET_IN_H 25114#include <netinet/in.h> 25115#endif 25116#ifdef HAVE_ARPA_INET_H 25117#include <arpa/inet.h> 25118#endif 25119#ifdef HAVE_NETDB_H 25120#include <netdb.h> 25121#endif 25122 25123#ifdef F77_DUMMY_MAIN 25124# ifdef __cplusplus 25125 extern "C" 25126# endif 25127 int F77_DUMMY_MAIN() { return 1; } 25128#endif 25129int 25130main () 25131{ 25132struct hostent *gethostbyaddr(const void *, size_t, int); 25133 ; 25134 return 0; 25135} 25136_ACEOF 25137rm -f conftest.$ac_objext 25138if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25139 (eval $ac_compile) 2>&5 25140 ac_status=$? 25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25142 (exit $ac_status); } && 25143 { ac_try='test -s conftest.$ac_objext' 25144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25145 (eval $ac_try) 2>&5 25146 ac_status=$? 25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25148 (exit $ac_status); }; }; then 25149 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 25150else 25151 echo "$as_me: failed program was:" >&5 25152cat conftest.$ac_ext >&5 25153eval "ac_cv_func_gethostbyaddr_proto_compat=no" 25154fi 25155rm -f conftest.$ac_objext conftest.$ac_ext 25156fi 25157echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 25158echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6 25159 25160if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 25161 25162cat >>confdefs.h <<\_ACEOF 25163#define GETHOSTBYADDR_PROTO_COMPATIBLE 1 25164_ACEOF 25165 25166fi 25167 25168 25169 25170 25171echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5 25172echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6 25173if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then 25174 echo $ECHO_N "(cached) $ECHO_C" >&6 25175else 25176 cat >conftest.$ac_ext <<_ACEOF 25177#line $LINENO "configure" 25178#include "confdefs.h" 25179 25180#ifdef HAVE_SYS_TYPES_H 25181#include <sys/types.h> 25182#endif 25183#ifdef HAVE_SYS_SOCKET_H 25184#include <sys/socket.h> 25185#endif 25186#ifdef HAVE_NETINET_IN_H 25187#include <netinet/in.h> 25188#endif 25189#ifdef HAVE_ARPA_INET_H 25190#include <arpa/inet.h> 25191#endif 25192#ifdef HAVE_NETDB_H 25193#include <netdb.h> 25194#endif 25195 25196#ifdef F77_DUMMY_MAIN 25197# ifdef __cplusplus 25198 extern "C" 25199# endif 25200 int F77_DUMMY_MAIN() { return 1; } 25201#endif 25202int 25203main () 25204{ 25205struct servent *getservbyname(const char *, const char *); 25206 ; 25207 return 0; 25208} 25209_ACEOF 25210rm -f conftest.$ac_objext 25211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25212 (eval $ac_compile) 2>&5 25213 ac_status=$? 25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25215 (exit $ac_status); } && 25216 { ac_try='test -s conftest.$ac_objext' 25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25218 (eval $ac_try) 2>&5 25219 ac_status=$? 25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25221 (exit $ac_status); }; }; then 25222 eval "ac_cv_func_getservbyname_proto_compat=yes" 25223else 25224 echo "$as_me: failed program was:" >&5 25225cat conftest.$ac_ext >&5 25226eval "ac_cv_func_getservbyname_proto_compat=no" 25227fi 25228rm -f conftest.$ac_objext conftest.$ac_ext 25229fi 25230echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5 25231echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6 25232 25233if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 25234 25235cat >>confdefs.h <<\_ACEOF 25236#define GETSERVBYNAME_PROTO_COMPATIBLE 1 25237_ACEOF 25238 25239fi 25240 25241 25242 25243 25244echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5 25245echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6 25246if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then 25247 echo $ECHO_N "(cached) $ECHO_C" >&6 25248else 25249 cat >conftest.$ac_ext <<_ACEOF 25250#line $LINENO "configure" 25251#include "confdefs.h" 25252 25253#ifdef HAVE_SYS_TYPES_H 25254#include <sys/types.h> 25255#endif 25256#ifdef HAVE_SYS_SOCKET_H 25257#include <sys/socket.h> 25258#endif 25259 25260#ifdef F77_DUMMY_MAIN 25261# ifdef __cplusplus 25262 extern "C" 25263# endif 25264 int F77_DUMMY_MAIN() { return 1; } 25265#endif 25266int 25267main () 25268{ 25269int getsockname(int, struct sockaddr*, socklen_t*); 25270 ; 25271 return 0; 25272} 25273_ACEOF 25274rm -f conftest.$ac_objext 25275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25276 (eval $ac_compile) 2>&5 25277 ac_status=$? 25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25279 (exit $ac_status); } && 25280 { ac_try='test -s conftest.$ac_objext' 25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25282 (eval $ac_try) 2>&5 25283 ac_status=$? 25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25285 (exit $ac_status); }; }; then 25286 eval "ac_cv_func_getsockname_proto_compat=yes" 25287else 25288 echo "$as_me: failed program was:" >&5 25289cat conftest.$ac_ext >&5 25290eval "ac_cv_func_getsockname_proto_compat=no" 25291fi 25292rm -f conftest.$ac_objext conftest.$ac_ext 25293fi 25294echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5 25295echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6 25296 25297if test "$ac_cv_func_getsockname_proto_compat" = yes; then 25298 25299cat >>confdefs.h <<\_ACEOF 25300#define GETSOCKNAME_PROTO_COMPATIBLE 1 25301_ACEOF 25302 25303fi 25304 25305 25306 25307 25308echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5 25309echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6 25310if test "${ac_cv_func_openlog_proto_compat+set}" = set; then 25311 echo $ECHO_N "(cached) $ECHO_C" >&6 25312else 25313 cat >conftest.$ac_ext <<_ACEOF 25314#line $LINENO "configure" 25315#include "confdefs.h" 25316 25317#ifdef HAVE_SYSLOG_H 25318#include <syslog.h> 25319#endif 25320 25321#ifdef F77_DUMMY_MAIN 25322# ifdef __cplusplus 25323 extern "C" 25324# endif 25325 int F77_DUMMY_MAIN() { return 1; } 25326#endif 25327int 25328main () 25329{ 25330void openlog(const char *, int, int); 25331 ; 25332 return 0; 25333} 25334_ACEOF 25335rm -f conftest.$ac_objext 25336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25337 (eval $ac_compile) 2>&5 25338 ac_status=$? 25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25340 (exit $ac_status); } && 25341 { ac_try='test -s conftest.$ac_objext' 25342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25343 (eval $ac_try) 2>&5 25344 ac_status=$? 25345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25346 (exit $ac_status); }; }; then 25347 eval "ac_cv_func_openlog_proto_compat=yes" 25348else 25349 echo "$as_me: failed program was:" >&5 25350cat conftest.$ac_ext >&5 25351eval "ac_cv_func_openlog_proto_compat=no" 25352fi 25353rm -f conftest.$ac_objext conftest.$ac_ext 25354fi 25355echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5 25356echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6 25357 25358if test "$ac_cv_func_openlog_proto_compat" = yes; then 25359 25360cat >>confdefs.h <<\_ACEOF 25361#define OPENLOG_PROTO_COMPATIBLE 1 25362_ACEOF 25363 25364fi 25365 25366 25367 25368 25369if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 25370echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5 25371echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6 25372if test "${ac_cv_func_crypt_noproto+set}" = set; then 25373 echo $ECHO_N "(cached) $ECHO_C" >&6 25374else 25375 cat >conftest.$ac_ext <<_ACEOF 25376#line $LINENO "configure" 25377#include "confdefs.h" 25378 25379#ifdef HAVE_CRYPT_H 25380#include <crypt.h> 25381#endif 25382#ifdef HAVE_UNISTD_H 25383#include <unistd.h> 25384#endif 25385 25386#ifdef F77_DUMMY_MAIN 25387# ifdef __cplusplus 25388 extern "C" 25389# endif 25390 int F77_DUMMY_MAIN() { return 1; } 25391#endif 25392int 25393main () 25394{ 25395struct foo { int foo; } xx; 25396extern int crypt (struct foo*); 25397crypt(&xx); 25398 25399 ; 25400 return 0; 25401} 25402_ACEOF 25403rm -f conftest.$ac_objext 25404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25405 (eval $ac_compile) 2>&5 25406 ac_status=$? 25407 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25408 (exit $ac_status); } && 25409 { ac_try='test -s conftest.$ac_objext' 25410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25411 (eval $ac_try) 2>&5 25412 ac_status=$? 25413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25414 (exit $ac_status); }; }; then 25415 eval "ac_cv_func_crypt_noproto=yes" 25416else 25417 echo "$as_me: failed program was:" >&5 25418cat conftest.$ac_ext >&5 25419eval "ac_cv_func_crypt_noproto=no" 25420fi 25421rm -f conftest.$ac_objext conftest.$ac_ext 25422fi 25423echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5 25424echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6 25425if test "$ac_cv_func_crypt_noproto" = yes; then 25426 25427cat >>confdefs.h <<\_ACEOF 25428#define NEED_CRYPT_PROTO 1 25429_ACEOF 25430 25431fi 25432fi 25433 25434 25435 25436 25437echo "$as_me:$LINENO: checking for h_errno" >&5 25438echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 25439if test "${ac_cv_var_h_errno+set}" = set; then 25440 echo $ECHO_N "(cached) $ECHO_C" >&6 25441else 25442
| 15837 15838fi 15839 15840ac_foo=`eval echo \\$ac_cv_var__res` 15841echo "$as_me:$LINENO: result: $ac_foo" >&5 15842echo "${ECHO_T}$ac_foo" >&6 15843if test "$ac_foo" = yes; then 15844 15845cat >>confdefs.h <<_ACEOF 15846#define HAVE__RES 1 15847_ACEOF 15848 15849 15850echo "$as_me:$LINENO: checking if _res is properly declared" >&5 15851echo $ECHO_N "checking if _res is properly declared... $ECHO_C" >&6 15852if test "${ac_cv_var__res_declaration+set}" = set; then 15853 echo $ECHO_N "(cached) $ECHO_C" >&6 15854else 15855 15856cat >conftest.$ac_ext <<_ACEOF 15857#line $LINENO "configure" 15858#include "confdefs.h" 15859#include <stdio.h> 15860#ifdef HAVE_SYS_TYPES_H 15861#include <sys/types.h> 15862#endif 15863#ifdef HAVE_NETINET_IN_H 15864#include <netinet/in.h> 15865#endif 15866#ifdef HAVE_ARPA_NAMESER_H 15867#include <arpa/nameser.h> 15868#endif 15869#ifdef HAVE_RESOLV_H 15870#include <resolv.h> 15871#endif 15872extern struct { int foo; } _res; 15873#ifdef F77_DUMMY_MAIN 15874# ifdef __cplusplus 15875 extern "C" 15876# endif 15877 int F77_DUMMY_MAIN() { return 1; } 15878#endif 15879int 15880main () 15881{ 15882_res.foo = 1; 15883 ; 15884 return 0; 15885} 15886_ACEOF 15887rm -f conftest.$ac_objext 15888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15889 (eval $ac_compile) 2>&5 15890 ac_status=$? 15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15892 (exit $ac_status); } && 15893 { ac_try='test -s conftest.$ac_objext' 15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15895 (eval $ac_try) 2>&5 15896 ac_status=$? 15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15898 (exit $ac_status); }; }; then 15899 eval "ac_cv_var__res_declaration=no" 15900else 15901 echo "$as_me: failed program was:" >&5 15902cat conftest.$ac_ext >&5 15903eval "ac_cv_var__res_declaration=yes" 15904fi 15905rm -f conftest.$ac_objext conftest.$ac_ext 15906 15907fi 15908 15909 15910 15911 15912echo "$as_me:$LINENO: result: $ac_cv_var__res_declaration" >&5 15913echo "${ECHO_T}$ac_cv_var__res_declaration" >&6 15914if eval "test \"\$ac_cv_var__res_declaration\" = yes"; then 15915 15916cat >>confdefs.h <<\_ACEOF 15917#define HAVE__RES_DECLARATION 1 15918_ACEOF 15919 15920fi 15921 15922 15923fi 15924 15925 15926 15927 15928echo "$as_me:$LINENO: checking for working snprintf" >&5 15929echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 15930if test "${ac_cv_func_snprintf_working+set}" = set; then 15931 echo $ECHO_N "(cached) $ECHO_C" >&6 15932else 15933 ac_cv_func_snprintf_working=yes 15934if test "$cross_compiling" = yes; then 15935 : 15936else 15937 cat >conftest.$ac_ext <<_ACEOF 15938#line $LINENO "configure" 15939#include "confdefs.h" 15940 15941#include <stdio.h> 15942#include <string.h> 15943int main() 15944{ 15945 char foo[3]; 15946 snprintf(foo, 2, "12"); 15947 return strcmp(foo, "1"); 15948} 15949_ACEOF 15950rm -f conftest$ac_exeext 15951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15952 (eval $ac_link) 2>&5 15953 ac_status=$? 15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15957 (eval $ac_try) 2>&5 15958 ac_status=$? 15959 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15960 (exit $ac_status); }; }; then 15961 : 15962else 15963 echo "$as_me: program exited with status $ac_status" >&5 15964echo "$as_me: failed program was:" >&5 15965cat conftest.$ac_ext >&5 15966( exit $ac_status ) 15967ac_cv_func_snprintf_working=no 15968fi 15969rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15970fi 15971fi 15972echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_working" >&5 15973echo "${ECHO_T}$ac_cv_func_snprintf_working" >&6 15974 15975if test "$ac_cv_func_snprintf_working" = yes; then 15976 15977cat >>confdefs.h <<_ACEOF 15978#define HAVE_SNPRINTF 1 15979_ACEOF 15980 15981fi 15982if test "$ac_cv_func_snprintf_working" = yes; then 15983 15984if test "$ac_cv_func_snprintf+set" != set -o "$ac_cv_func_snprintf" = yes; then 15985echo "$as_me:$LINENO: checking if snprintf needs a prototype" >&5 15986echo $ECHO_N "checking if snprintf needs a prototype... $ECHO_C" >&6 15987if test "${ac_cv_func_snprintf_noproto+set}" = set; then 15988 echo $ECHO_N "(cached) $ECHO_C" >&6 15989else 15990 cat >conftest.$ac_ext <<_ACEOF 15991#line $LINENO "configure" 15992#include "confdefs.h" 15993#include <stdio.h> 15994#ifdef F77_DUMMY_MAIN 15995# ifdef __cplusplus 15996 extern "C" 15997# endif 15998 int F77_DUMMY_MAIN() { return 1; } 15999#endif 16000int 16001main () 16002{ 16003struct foo { int foo; } xx; 16004extern int snprintf (struct foo*); 16005snprintf(&xx); 16006 16007 ; 16008 return 0; 16009} 16010_ACEOF 16011rm -f conftest.$ac_objext 16012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16013 (eval $ac_compile) 2>&5 16014 ac_status=$? 16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16016 (exit $ac_status); } && 16017 { ac_try='test -s conftest.$ac_objext' 16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16019 (eval $ac_try) 2>&5 16020 ac_status=$? 16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16022 (exit $ac_status); }; }; then 16023 eval "ac_cv_func_snprintf_noproto=yes" 16024else 16025 echo "$as_me: failed program was:" >&5 16026cat conftest.$ac_ext >&5 16027eval "ac_cv_func_snprintf_noproto=no" 16028fi 16029rm -f conftest.$ac_objext conftest.$ac_ext 16030fi 16031echo "$as_me:$LINENO: result: $ac_cv_func_snprintf_noproto" >&5 16032echo "${ECHO_T}$ac_cv_func_snprintf_noproto" >&6 16033if test "$ac_cv_func_snprintf_noproto" = yes; then 16034 16035cat >>confdefs.h <<\_ACEOF 16036#define NEED_SNPRINTF_PROTO 1 16037_ACEOF 16038 16039fi 16040fi 16041 16042fi 16043 16044 16045echo "$as_me:$LINENO: checking for working vsnprintf" >&5 16046echo $ECHO_N "checking for working vsnprintf... $ECHO_C" >&6 16047if test "${ac_cv_func_vsnprintf_working+set}" = set; then 16048 echo $ECHO_N "(cached) $ECHO_C" >&6 16049else 16050 ac_cv_func_vsnprintf_working=yes 16051if test "$cross_compiling" = yes; then 16052 : 16053else 16054 cat >conftest.$ac_ext <<_ACEOF 16055#line $LINENO "configure" 16056#include "confdefs.h" 16057 16058#include <stdio.h> 16059#include <string.h> 16060#include <stdarg.h> 16061 16062int foo(int num, ...) 16063{ 16064 char bar[3]; 16065 va_list arg; 16066 va_start(arg, num); 16067 vsnprintf(bar, 2, "%s", arg); 16068 va_end(arg); 16069 return strcmp(bar, "1"); 16070} 16071 16072 16073int main() 16074{ 16075 return foo(0, "12"); 16076} 16077_ACEOF 16078rm -f conftest$ac_exeext 16079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16080 (eval $ac_link) 2>&5 16081 ac_status=$? 16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16085 (eval $ac_try) 2>&5 16086 ac_status=$? 16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16088 (exit $ac_status); }; }; then 16089 : 16090else 16091 echo "$as_me: program exited with status $ac_status" >&5 16092echo "$as_me: failed program was:" >&5 16093cat conftest.$ac_ext >&5 16094( exit $ac_status ) 16095ac_cv_func_vsnprintf_working=no 16096fi 16097rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16098fi 16099fi 16100echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_working" >&5 16101echo "${ECHO_T}$ac_cv_func_vsnprintf_working" >&6 16102 16103if test "$ac_cv_func_vsnprintf_working" = yes; then 16104 16105cat >>confdefs.h <<_ACEOF 16106#define HAVE_VSNPRINTF 1 16107_ACEOF 16108 16109fi 16110if test "$ac_cv_func_vsnprintf_working" = yes; then 16111 16112if test "$ac_cv_func_vsnprintf+set" != set -o "$ac_cv_func_vsnprintf" = yes; then 16113echo "$as_me:$LINENO: checking if vsnprintf needs a prototype" >&5 16114echo $ECHO_N "checking if vsnprintf needs a prototype... $ECHO_C" >&6 16115if test "${ac_cv_func_vsnprintf_noproto+set}" = set; then 16116 echo $ECHO_N "(cached) $ECHO_C" >&6 16117else 16118 cat >conftest.$ac_ext <<_ACEOF 16119#line $LINENO "configure" 16120#include "confdefs.h" 16121#include <stdio.h> 16122#ifdef F77_DUMMY_MAIN 16123# ifdef __cplusplus 16124 extern "C" 16125# endif 16126 int F77_DUMMY_MAIN() { return 1; } 16127#endif 16128int 16129main () 16130{ 16131struct foo { int foo; } xx; 16132extern int vsnprintf (struct foo*); 16133vsnprintf(&xx); 16134 16135 ; 16136 return 0; 16137} 16138_ACEOF 16139rm -f conftest.$ac_objext 16140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16141 (eval $ac_compile) 2>&5 16142 ac_status=$? 16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16144 (exit $ac_status); } && 16145 { ac_try='test -s conftest.$ac_objext' 16146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16147 (eval $ac_try) 2>&5 16148 ac_status=$? 16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16150 (exit $ac_status); }; }; then 16151 eval "ac_cv_func_vsnprintf_noproto=yes" 16152else 16153 echo "$as_me: failed program was:" >&5 16154cat conftest.$ac_ext >&5 16155eval "ac_cv_func_vsnprintf_noproto=no" 16156fi 16157rm -f conftest.$ac_objext conftest.$ac_ext 16158fi 16159echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf_noproto" >&5 16160echo "${ECHO_T}$ac_cv_func_vsnprintf_noproto" >&6 16161if test "$ac_cv_func_vsnprintf_noproto" = yes; then 16162 16163cat >>confdefs.h <<\_ACEOF 16164#define NEED_VSNPRINTF_PROTO 1 16165_ACEOF 16166 16167fi 16168fi 16169 16170fi 16171 16172 16173 16174echo "$as_me:$LINENO: checking for working glob" >&5 16175echo $ECHO_N "checking for working glob... $ECHO_C" >&6 16176if test "${ac_cv_func_glob_working+set}" = set; then 16177 echo $ECHO_N "(cached) $ECHO_C" >&6 16178else 16179 ac_cv_func_glob_working=yes 16180cat >conftest.$ac_ext <<_ACEOF 16181#line $LINENO "configure" 16182#include "confdefs.h" 16183 16184#include <stdio.h> 16185#include <glob.h> 16186#ifdef F77_DUMMY_MAIN 16187# ifdef __cplusplus 16188 extern "C" 16189# endif 16190 int F77_DUMMY_MAIN() { return 1; } 16191#endif 16192int 16193main () 16194{ 16195 16196glob(NULL, GLOB_BRACE|GLOB_NOCHECK|GLOB_QUOTE|GLOB_TILDE| 16197#ifdef GLOB_MAXPATH 16198GLOB_MAXPATH 16199#else 16200GLOB_LIMIT 16201#endif 16202, 16203NULL, NULL); 16204 16205 ; 16206 return 0; 16207} 16208_ACEOF 16209rm -f conftest.$ac_objext conftest$ac_exeext 16210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16211 (eval $ac_link) 2>&5 16212 ac_status=$? 16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16214 (exit $ac_status); } && 16215 { ac_try='test -s conftest$ac_exeext' 16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16217 (eval $ac_try) 2>&5 16218 ac_status=$? 16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16220 (exit $ac_status); }; }; then 16221 : 16222else 16223 echo "$as_me: failed program was:" >&5 16224cat conftest.$ac_ext >&5 16225ac_cv_func_glob_working=no 16226fi 16227rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16228fi 16229echo "$as_me:$LINENO: result: $ac_cv_func_glob_working" >&5 16230echo "${ECHO_T}$ac_cv_func_glob_working" >&6 16231 16232if test "$ac_cv_func_glob_working" = yes; then 16233 16234cat >>confdefs.h <<\_ACEOF 16235#define HAVE_GLOB 1 16236_ACEOF 16237 16238fi 16239if test "$ac_cv_func_glob_working" = yes; then 16240 16241if test "$ac_cv_func_glob+set" != set -o "$ac_cv_func_glob" = yes; then 16242echo "$as_me:$LINENO: checking if glob needs a prototype" >&5 16243echo $ECHO_N "checking if glob needs a prototype... $ECHO_C" >&6 16244if test "${ac_cv_func_glob_noproto+set}" = set; then 16245 echo $ECHO_N "(cached) $ECHO_C" >&6 16246else 16247 cat >conftest.$ac_ext <<_ACEOF 16248#line $LINENO "configure" 16249#include "confdefs.h" 16250#include <stdio.h> 16251#include <glob.h> 16252#ifdef F77_DUMMY_MAIN 16253# ifdef __cplusplus 16254 extern "C" 16255# endif 16256 int F77_DUMMY_MAIN() { return 1; } 16257#endif 16258int 16259main () 16260{ 16261struct foo { int foo; } xx; 16262extern int glob (struct foo*); 16263glob(&xx); 16264 16265 ; 16266 return 0; 16267} 16268_ACEOF 16269rm -f conftest.$ac_objext 16270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16271 (eval $ac_compile) 2>&5 16272 ac_status=$? 16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16274 (exit $ac_status); } && 16275 { ac_try='test -s conftest.$ac_objext' 16276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16277 (eval $ac_try) 2>&5 16278 ac_status=$? 16279 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16280 (exit $ac_status); }; }; then 16281 eval "ac_cv_func_glob_noproto=yes" 16282else 16283 echo "$as_me: failed program was:" >&5 16284cat conftest.$ac_ext >&5 16285eval "ac_cv_func_glob_noproto=no" 16286fi 16287rm -f conftest.$ac_objext conftest.$ac_ext 16288fi 16289echo "$as_me:$LINENO: result: $ac_cv_func_glob_noproto" >&5 16290echo "${ECHO_T}$ac_cv_func_glob_noproto" >&6 16291if test "$ac_cv_func_glob_noproto" = yes; then 16292 16293cat >>confdefs.h <<\_ACEOF 16294#define NEED_GLOB_PROTO 1 16295_ACEOF 16296 16297fi 16298fi 16299 16300fi 16301 16302if test "$ac_cv_func_glob_working" != yes; then 16303 LIBOBJS="$LIBOBJS glob.$ac_objext" 16304fi 16305 16306 16307if test "$ac_cv_func_glob_working" = yes; then 16308 have_glob_h_TRUE= 16309 have_glob_h_FALSE='#' 16310else 16311 have_glob_h_TRUE='#' 16312 have_glob_h_FALSE= 16313fi 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343for ac_func in \ 16344 asnprintf \ 16345 asprintf \ 16346 atexit \ 16347 cgetent \ 16348 getconfattr \ 16349 getprogname \ 16350 getrlimit \ 16351 getspnam \ 16352 initstate \ 16353 issetugid \ 16354 on_exit \ 16355 random \ 16356 setprogname \ 16357 setstate \ 16358 strsvis \ 16359 strunvis \ 16360 strvis \ 16361 strvisx \ 16362 svis \ 16363 sysconf \ 16364 sysctl \ 16365 uname \ 16366 unvis \ 16367 vasnprintf \ 16368 vasprintf \ 16369 vis \ 16370 16371do 16372as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16373echo "$as_me:$LINENO: checking for $ac_func" >&5 16374echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16375if eval "test \"\${$as_ac_var+set}\" = set"; then 16376 echo $ECHO_N "(cached) $ECHO_C" >&6 16377else 16378 cat >conftest.$ac_ext <<_ACEOF 16379#line $LINENO "configure" 16380#include "confdefs.h" 16381/* System header to define __stub macros and hopefully few prototypes, 16382 which can conflict with char $ac_func (); below. */ 16383#include <assert.h> 16384/* Override any gcc2 internal prototype to avoid an error. */ 16385#ifdef __cplusplus 16386extern "C" 16387#endif 16388/* We use char because int might match the return type of a gcc2 16389 builtin and then its argument prototype would still apply. */ 16390char $ac_func (); 16391char (*f) (); 16392 16393#ifdef F77_DUMMY_MAIN 16394# ifdef __cplusplus 16395 extern "C" 16396# endif 16397 int F77_DUMMY_MAIN() { return 1; } 16398#endif 16399int 16400main () 16401{ 16402/* The GNU C library defines this for functions which it implements 16403 to always fail with ENOSYS. Some functions are actually named 16404 something starting with __ and the normal name is an alias. */ 16405#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16406choke me 16407#else 16408f = $ac_func; 16409#endif 16410 16411 ; 16412 return 0; 16413} 16414_ACEOF 16415rm -f conftest.$ac_objext conftest$ac_exeext 16416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16417 (eval $ac_link) 2>&5 16418 ac_status=$? 16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16420 (exit $ac_status); } && 16421 { ac_try='test -s conftest$ac_exeext' 16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16423 (eval $ac_try) 2>&5 16424 ac_status=$? 16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16426 (exit $ac_status); }; }; then 16427 eval "$as_ac_var=yes" 16428else 16429 echo "$as_me: failed program was:" >&5 16430cat conftest.$ac_ext >&5 16431eval "$as_ac_var=no" 16432fi 16433rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16434fi 16435echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16436echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16437if test `eval echo '${'$as_ac_var'}'` = yes; then 16438 cat >>confdefs.h <<_ACEOF 16439#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16440_ACEOF 16441 16442fi 16443done 16444 16445 16446if test "$ac_cv_func_cgetent" = no; then 16447 LIBOBJS="$LIBOBJS getcap.$ac_objext" 16448fi 16449 16450 16451 16452 16453 16454 16455 16456 16457echo "$as_me:$LINENO: checking for getsockopt" >&5 16458echo $ECHO_N "checking for getsockopt... $ECHO_C" >&6 16459if test "${ac_cv_funclib_getsockopt+set}" = set; then 16460 echo $ECHO_N "(cached) $ECHO_C" >&6 16461else 16462 16463if eval "test \"\$ac_cv_func_getsockopt\" != yes" ; then 16464 ac_save_LIBS="$LIBS" 16465 for ac_lib in "" ; do 16466 case "$ac_lib" in 16467 "") ;; 16468 yes) ac_lib="" ;; 16469 no) continue ;; 16470 -l*) ;; 16471 *) ac_lib="-l$ac_lib" ;; 16472 esac 16473 LIBS=" $ac_lib $ac_save_LIBS" 16474 cat >conftest.$ac_ext <<_ACEOF 16475#line $LINENO "configure" 16476#include "confdefs.h" 16477#ifdef HAVE_SYS_TYPES_H 16478#include <sys/types.h> 16479#endif 16480#ifdef HAVE_SYS_SOCKET_H 16481#include <sys/socket.h> 16482#endif 16483#ifdef F77_DUMMY_MAIN 16484# ifdef __cplusplus 16485 extern "C" 16486# endif 16487 int F77_DUMMY_MAIN() { return 1; } 16488#endif 16489int 16490main () 16491{ 16492getsockopt(0,0,0,0,0) 16493 ; 16494 return 0; 16495} 16496_ACEOF 16497rm -f conftest.$ac_objext conftest$ac_exeext 16498if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16499 (eval $ac_link) 2>&5 16500 ac_status=$? 16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16502 (exit $ac_status); } && 16503 { ac_try='test -s conftest$ac_exeext' 16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16505 (eval $ac_try) 2>&5 16506 ac_status=$? 16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16508 (exit $ac_status); }; }; then 16509 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getsockopt=$ac_lib; else ac_cv_funclib_getsockopt=yes; fi";break 16510else 16511 echo "$as_me: failed program was:" >&5 16512cat conftest.$ac_ext >&5 16513fi 16514rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16515 done 16516 eval "ac_cv_funclib_getsockopt=\${ac_cv_funclib_getsockopt-no}" 16517 LIBS="$ac_save_LIBS" 16518fi 16519 16520fi 16521 16522 16523eval "ac_res=\$ac_cv_funclib_getsockopt" 16524 16525if false; then 16526 16527for ac_func in getsockopt 16528do 16529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16530echo "$as_me:$LINENO: checking for $ac_func" >&5 16531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16532if eval "test \"\${$as_ac_var+set}\" = set"; then 16533 echo $ECHO_N "(cached) $ECHO_C" >&6 16534else 16535 cat >conftest.$ac_ext <<_ACEOF 16536#line $LINENO "configure" 16537#include "confdefs.h" 16538/* System header to define __stub macros and hopefully few prototypes, 16539 which can conflict with char $ac_func (); below. */ 16540#include <assert.h> 16541/* Override any gcc2 internal prototype to avoid an error. */ 16542#ifdef __cplusplus 16543extern "C" 16544#endif 16545/* We use char because int might match the return type of a gcc2 16546 builtin and then its argument prototype would still apply. */ 16547char $ac_func (); 16548char (*f) (); 16549 16550#ifdef F77_DUMMY_MAIN 16551# ifdef __cplusplus 16552 extern "C" 16553# endif 16554 int F77_DUMMY_MAIN() { return 1; } 16555#endif 16556int 16557main () 16558{ 16559/* The GNU C library defines this for functions which it implements 16560 to always fail with ENOSYS. Some functions are actually named 16561 something starting with __ and the normal name is an alias. */ 16562#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16563choke me 16564#else 16565f = $ac_func; 16566#endif 16567 16568 ; 16569 return 0; 16570} 16571_ACEOF 16572rm -f conftest.$ac_objext conftest$ac_exeext 16573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16574 (eval $ac_link) 2>&5 16575 ac_status=$? 16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16577 (exit $ac_status); } && 16578 { ac_try='test -s conftest$ac_exeext' 16579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16580 (eval $ac_try) 2>&5 16581 ac_status=$? 16582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16583 (exit $ac_status); }; }; then 16584 eval "$as_ac_var=yes" 16585else 16586 echo "$as_me: failed program was:" >&5 16587cat conftest.$ac_ext >&5 16588eval "$as_ac_var=no" 16589fi 16590rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16591fi 16592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16593echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16594if test `eval echo '${'$as_ac_var'}'` = yes; then 16595 cat >>confdefs.h <<_ACEOF 16596#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16597_ACEOF 16598 16599fi 16600done 16601 16602fi 16603# getsockopt 16604eval "ac_tr_func=HAVE_`echo getsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16605eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16606eval "LIB_getsockopt=$ac_res" 16607 16608case "$ac_res" in 16609 yes) 16610 eval "ac_cv_func_getsockopt=yes" 16611 eval "LIB_getsockopt=" 16612 cat >>confdefs.h <<_ACEOF 16613#define $ac_tr_func 1 16614_ACEOF 16615 16616 echo "$as_me:$LINENO: result: yes" >&5 16617echo "${ECHO_T}yes" >&6 16618 ;; 16619 no) 16620 eval "ac_cv_func_getsockopt=no" 16621 eval "LIB_getsockopt=" 16622 echo "$as_me:$LINENO: result: no" >&5 16623echo "${ECHO_T}no" >&6 16624 ;; 16625 *) 16626 eval "ac_cv_func_getsockopt=yes" 16627 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16628 cat >>confdefs.h <<_ACEOF 16629#define $ac_tr_func 1 16630_ACEOF 16631 16632 cat >>confdefs.h <<_ACEOF 16633#define $ac_tr_lib 1 16634_ACEOF 16635 16636 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 16637echo "${ECHO_T}yes, in $ac_res" >&6 16638 ;; 16639esac 16640 16641 16642 16643 16644 16645echo "$as_me:$LINENO: checking for setsockopt" >&5 16646echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6 16647if test "${ac_cv_funclib_setsockopt+set}" = set; then 16648 echo $ECHO_N "(cached) $ECHO_C" >&6 16649else 16650 16651if eval "test \"\$ac_cv_func_setsockopt\" != yes" ; then 16652 ac_save_LIBS="$LIBS" 16653 for ac_lib in "" ; do 16654 case "$ac_lib" in 16655 "") ;; 16656 yes) ac_lib="" ;; 16657 no) continue ;; 16658 -l*) ;; 16659 *) ac_lib="-l$ac_lib" ;; 16660 esac 16661 LIBS=" $ac_lib $ac_save_LIBS" 16662 cat >conftest.$ac_ext <<_ACEOF 16663#line $LINENO "configure" 16664#include "confdefs.h" 16665#ifdef HAVE_SYS_TYPES_H 16666#include <sys/types.h> 16667#endif 16668#ifdef HAVE_SYS_SOCKET_H 16669#include <sys/socket.h> 16670#endif 16671#ifdef F77_DUMMY_MAIN 16672# ifdef __cplusplus 16673 extern "C" 16674# endif 16675 int F77_DUMMY_MAIN() { return 1; } 16676#endif 16677int 16678main () 16679{ 16680setsockopt(0,0,0,0,0) 16681 ; 16682 return 0; 16683} 16684_ACEOF 16685rm -f conftest.$ac_objext conftest$ac_exeext 16686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16687 (eval $ac_link) 2>&5 16688 ac_status=$? 16689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16690 (exit $ac_status); } && 16691 { ac_try='test -s conftest$ac_exeext' 16692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16693 (eval $ac_try) 2>&5 16694 ac_status=$? 16695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16696 (exit $ac_status); }; }; then 16697 eval "if test -n \"$ac_lib\";then ac_cv_funclib_setsockopt=$ac_lib; else ac_cv_funclib_setsockopt=yes; fi";break 16698else 16699 echo "$as_me: failed program was:" >&5 16700cat conftest.$ac_ext >&5 16701fi 16702rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16703 done 16704 eval "ac_cv_funclib_setsockopt=\${ac_cv_funclib_setsockopt-no}" 16705 LIBS="$ac_save_LIBS" 16706fi 16707 16708fi 16709 16710 16711eval "ac_res=\$ac_cv_funclib_setsockopt" 16712 16713if false; then 16714 16715for ac_func in setsockopt 16716do 16717as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16718echo "$as_me:$LINENO: checking for $ac_func" >&5 16719echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16720if eval "test \"\${$as_ac_var+set}\" = set"; then 16721 echo $ECHO_N "(cached) $ECHO_C" >&6 16722else 16723 cat >conftest.$ac_ext <<_ACEOF 16724#line $LINENO "configure" 16725#include "confdefs.h" 16726/* System header to define __stub macros and hopefully few prototypes, 16727 which can conflict with char $ac_func (); below. */ 16728#include <assert.h> 16729/* Override any gcc2 internal prototype to avoid an error. */ 16730#ifdef __cplusplus 16731extern "C" 16732#endif 16733/* We use char because int might match the return type of a gcc2 16734 builtin and then its argument prototype would still apply. */ 16735char $ac_func (); 16736char (*f) (); 16737 16738#ifdef F77_DUMMY_MAIN 16739# ifdef __cplusplus 16740 extern "C" 16741# endif 16742 int F77_DUMMY_MAIN() { return 1; } 16743#endif 16744int 16745main () 16746{ 16747/* The GNU C library defines this for functions which it implements 16748 to always fail with ENOSYS. Some functions are actually named 16749 something starting with __ and the normal name is an alias. */ 16750#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16751choke me 16752#else 16753f = $ac_func; 16754#endif 16755 16756 ; 16757 return 0; 16758} 16759_ACEOF 16760rm -f conftest.$ac_objext conftest$ac_exeext 16761if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16762 (eval $ac_link) 2>&5 16763 ac_status=$? 16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16765 (exit $ac_status); } && 16766 { ac_try='test -s conftest$ac_exeext' 16767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16768 (eval $ac_try) 2>&5 16769 ac_status=$? 16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16771 (exit $ac_status); }; }; then 16772 eval "$as_ac_var=yes" 16773else 16774 echo "$as_me: failed program was:" >&5 16775cat conftest.$ac_ext >&5 16776eval "$as_ac_var=no" 16777fi 16778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16779fi 16780echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16781echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16782if test `eval echo '${'$as_ac_var'}'` = yes; then 16783 cat >>confdefs.h <<_ACEOF 16784#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16785_ACEOF 16786 16787fi 16788done 16789 16790fi 16791# setsockopt 16792eval "ac_tr_func=HAVE_`echo setsockopt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16793eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16794eval "LIB_setsockopt=$ac_res" 16795 16796case "$ac_res" in 16797 yes) 16798 eval "ac_cv_func_setsockopt=yes" 16799 eval "LIB_setsockopt=" 16800 cat >>confdefs.h <<_ACEOF 16801#define $ac_tr_func 1 16802_ACEOF 16803 16804 echo "$as_me:$LINENO: result: yes" >&5 16805echo "${ECHO_T}yes" >&6 16806 ;; 16807 no) 16808 eval "ac_cv_func_setsockopt=no" 16809 eval "LIB_setsockopt=" 16810 echo "$as_me:$LINENO: result: no" >&5 16811echo "${ECHO_T}no" >&6 16812 ;; 16813 *) 16814 eval "ac_cv_func_setsockopt=yes" 16815 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 16816 cat >>confdefs.h <<_ACEOF 16817#define $ac_tr_func 1 16818_ACEOF 16819 16820 cat >>confdefs.h <<_ACEOF 16821#define $ac_tr_lib 1 16822_ACEOF 16823 16824 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 16825echo "${ECHO_T}yes, in $ac_res" >&6 16826 ;; 16827esac 16828 16829 16830 16831 16832 16833 16834 16835echo "$as_me:$LINENO: checking for hstrerror" >&5 16836echo $ECHO_N "checking for hstrerror... $ECHO_C" >&6 16837if test "${ac_cv_funclib_hstrerror+set}" = set; then 16838 echo $ECHO_N "(cached) $ECHO_C" >&6 16839else 16840 16841if eval "test \"\$ac_cv_func_hstrerror\" != yes" ; then 16842 ac_save_LIBS="$LIBS" 16843 for ac_lib in "" resolv; do 16844 case "$ac_lib" in 16845 "") ;; 16846 yes) ac_lib="" ;; 16847 no) continue ;; 16848 -l*) ;; 16849 *) ac_lib="-l$ac_lib" ;; 16850 esac 16851 LIBS=" $ac_lib $ac_save_LIBS" 16852 cat >conftest.$ac_ext <<_ACEOF 16853#line $LINENO "configure" 16854#include "confdefs.h" 16855#ifdef HAVE_NETDB_H 16856#include <netdb.h> 16857#endif 16858#ifdef F77_DUMMY_MAIN 16859# ifdef __cplusplus 16860 extern "C" 16861# endif 16862 int F77_DUMMY_MAIN() { return 1; } 16863#endif 16864int 16865main () 16866{ 16867hstrerror(17) 16868 ; 16869 return 0; 16870} 16871_ACEOF 16872rm -f conftest.$ac_objext conftest$ac_exeext 16873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16874 (eval $ac_link) 2>&5 16875 ac_status=$? 16876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16877 (exit $ac_status); } && 16878 { ac_try='test -s conftest$ac_exeext' 16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16880 (eval $ac_try) 2>&5 16881 ac_status=$? 16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16883 (exit $ac_status); }; }; then 16884 eval "if test -n \"$ac_lib\";then ac_cv_funclib_hstrerror=$ac_lib; else ac_cv_funclib_hstrerror=yes; fi";break 16885else 16886 echo "$as_me: failed program was:" >&5 16887cat conftest.$ac_ext >&5 16888fi 16889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16890 done 16891 eval "ac_cv_funclib_hstrerror=\${ac_cv_funclib_hstrerror-no}" 16892 LIBS="$ac_save_LIBS" 16893fi 16894 16895fi 16896 16897 16898eval "ac_res=\$ac_cv_funclib_hstrerror" 16899 16900if false; then 16901 16902for ac_func in hstrerror 16903do 16904as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16905echo "$as_me:$LINENO: checking for $ac_func" >&5 16906echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16907if eval "test \"\${$as_ac_var+set}\" = set"; then 16908 echo $ECHO_N "(cached) $ECHO_C" >&6 16909else 16910 cat >conftest.$ac_ext <<_ACEOF 16911#line $LINENO "configure" 16912#include "confdefs.h" 16913/* System header to define __stub macros and hopefully few prototypes, 16914 which can conflict with char $ac_func (); below. */ 16915#include <assert.h> 16916/* Override any gcc2 internal prototype to avoid an error. */ 16917#ifdef __cplusplus 16918extern "C" 16919#endif 16920/* We use char because int might match the return type of a gcc2 16921 builtin and then its argument prototype would still apply. */ 16922char $ac_func (); 16923char (*f) (); 16924 16925#ifdef F77_DUMMY_MAIN 16926# ifdef __cplusplus 16927 extern "C" 16928# endif 16929 int F77_DUMMY_MAIN() { return 1; } 16930#endif 16931int 16932main () 16933{ 16934/* The GNU C library defines this for functions which it implements 16935 to always fail with ENOSYS. Some functions are actually named 16936 something starting with __ and the normal name is an alias. */ 16937#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16938choke me 16939#else 16940f = $ac_func; 16941#endif 16942 16943 ; 16944 return 0; 16945} 16946_ACEOF 16947rm -f conftest.$ac_objext conftest$ac_exeext 16948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16949 (eval $ac_link) 2>&5 16950 ac_status=$? 16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16952 (exit $ac_status); } && 16953 { ac_try='test -s conftest$ac_exeext' 16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16955 (eval $ac_try) 2>&5 16956 ac_status=$? 16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16958 (exit $ac_status); }; }; then 16959 eval "$as_ac_var=yes" 16960else 16961 echo "$as_me: failed program was:" >&5 16962cat conftest.$ac_ext >&5 16963eval "$as_ac_var=no" 16964fi 16965rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 16966fi 16967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16969if test `eval echo '${'$as_ac_var'}'` = yes; then 16970 cat >>confdefs.h <<_ACEOF 16971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16972_ACEOF 16973 16974fi 16975done 16976 16977fi 16978# hstrerror 16979eval "ac_tr_func=HAVE_`echo hstrerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16980eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 16981eval "LIB_hstrerror=$ac_res" 16982 16983case "$ac_res" in 16984 yes) 16985 eval "ac_cv_func_hstrerror=yes" 16986 eval "LIB_hstrerror=" 16987 cat >>confdefs.h <<_ACEOF 16988#define $ac_tr_func 1 16989_ACEOF 16990 16991 echo "$as_me:$LINENO: result: yes" >&5 16992echo "${ECHO_T}yes" >&6 16993 ;; 16994 no) 16995 eval "ac_cv_func_hstrerror=no" 16996 eval "LIB_hstrerror=" 16997 echo "$as_me:$LINENO: result: no" >&5 16998echo "${ECHO_T}no" >&6 16999 ;; 17000 *) 17001 eval "ac_cv_func_hstrerror=yes" 17002 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17003 cat >>confdefs.h <<_ACEOF 17004#define $ac_tr_func 1 17005_ACEOF 17006 17007 cat >>confdefs.h <<_ACEOF 17008#define $ac_tr_lib 1 17009_ACEOF 17010 17011 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 17012echo "${ECHO_T}yes, in $ac_res" >&6 17013 ;; 17014esac 17015 17016 17017if test -n "$LIB_hstrerror"; then 17018 LIBS="$LIB_hstrerror $LIBS" 17019fi 17020 17021if eval "test \"$ac_cv_func_hstrerror\" != yes"; then 17022 LIBOBJS="$LIBOBJS hstrerror.$ac_objext" 17023fi 17024 17025 17026if test "$ac_cv_func_hstrerror+set" != set -o "$ac_cv_func_hstrerror" = yes; then 17027echo "$as_me:$LINENO: checking if hstrerror needs a prototype" >&5 17028echo $ECHO_N "checking if hstrerror needs a prototype... $ECHO_C" >&6 17029if test "${ac_cv_func_hstrerror_noproto+set}" = set; then 17030 echo $ECHO_N "(cached) $ECHO_C" >&6 17031else 17032 cat >conftest.$ac_ext <<_ACEOF 17033#line $LINENO "configure" 17034#include "confdefs.h" 17035 17036#ifdef HAVE_NETDB_H 17037#include <netdb.h> 17038#endif 17039#ifdef F77_DUMMY_MAIN 17040# ifdef __cplusplus 17041 extern "C" 17042# endif 17043 int F77_DUMMY_MAIN() { return 1; } 17044#endif 17045int 17046main () 17047{ 17048struct foo { int foo; } xx; 17049extern int hstrerror (struct foo*); 17050hstrerror(&xx); 17051 17052 ; 17053 return 0; 17054} 17055_ACEOF 17056rm -f conftest.$ac_objext 17057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17058 (eval $ac_compile) 2>&5 17059 ac_status=$? 17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17061 (exit $ac_status); } && 17062 { ac_try='test -s conftest.$ac_objext' 17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17064 (eval $ac_try) 2>&5 17065 ac_status=$? 17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17067 (exit $ac_status); }; }; then 17068 eval "ac_cv_func_hstrerror_noproto=yes" 17069else 17070 echo "$as_me: failed program was:" >&5 17071cat conftest.$ac_ext >&5 17072eval "ac_cv_func_hstrerror_noproto=no" 17073fi 17074rm -f conftest.$ac_objext conftest.$ac_ext 17075fi 17076echo "$as_me:$LINENO: result: $ac_cv_func_hstrerror_noproto" >&5 17077echo "${ECHO_T}$ac_cv_func_hstrerror_noproto" >&6 17078if test "$ac_cv_func_hstrerror_noproto" = yes; then 17079 17080cat >>confdefs.h <<\_ACEOF 17081#define NEED_HSTRERROR_PROTO 1 17082_ACEOF 17083 17084fi 17085fi 17086 17087 17088 17089if test "$ac_cv_func_asprintf+set" != set -o "$ac_cv_func_asprintf" = yes; then 17090echo "$as_me:$LINENO: checking if asprintf needs a prototype" >&5 17091echo $ECHO_N "checking if asprintf needs a prototype... $ECHO_C" >&6 17092if test "${ac_cv_func_asprintf_noproto+set}" = set; then 17093 echo $ECHO_N "(cached) $ECHO_C" >&6 17094else 17095 cat >conftest.$ac_ext <<_ACEOF 17096#line $LINENO "configure" 17097#include "confdefs.h" 17098 17099 #include <stdio.h> 17100 #include <string.h> 17101#ifdef F77_DUMMY_MAIN 17102# ifdef __cplusplus 17103 extern "C" 17104# endif 17105 int F77_DUMMY_MAIN() { return 1; } 17106#endif 17107int 17108main () 17109{ 17110struct foo { int foo; } xx; 17111extern int asprintf (struct foo*); 17112asprintf(&xx); 17113 17114 ; 17115 return 0; 17116} 17117_ACEOF 17118rm -f conftest.$ac_objext 17119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17120 (eval $ac_compile) 2>&5 17121 ac_status=$? 17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17123 (exit $ac_status); } && 17124 { ac_try='test -s conftest.$ac_objext' 17125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17126 (eval $ac_try) 2>&5 17127 ac_status=$? 17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17129 (exit $ac_status); }; }; then 17130 eval "ac_cv_func_asprintf_noproto=yes" 17131else 17132 echo "$as_me: failed program was:" >&5 17133cat conftest.$ac_ext >&5 17134eval "ac_cv_func_asprintf_noproto=no" 17135fi 17136rm -f conftest.$ac_objext conftest.$ac_ext 17137fi 17138echo "$as_me:$LINENO: result: $ac_cv_func_asprintf_noproto" >&5 17139echo "${ECHO_T}$ac_cv_func_asprintf_noproto" >&6 17140if test "$ac_cv_func_asprintf_noproto" = yes; then 17141 17142cat >>confdefs.h <<\_ACEOF 17143#define NEED_ASPRINTF_PROTO 1 17144_ACEOF 17145 17146fi 17147fi 17148 17149if test "$ac_cv_func_vasprintf+set" != set -o "$ac_cv_func_vasprintf" = yes; then 17150echo "$as_me:$LINENO: checking if vasprintf needs a prototype" >&5 17151echo $ECHO_N "checking if vasprintf needs a prototype... $ECHO_C" >&6 17152if test "${ac_cv_func_vasprintf_noproto+set}" = set; then 17153 echo $ECHO_N "(cached) $ECHO_C" >&6 17154else 17155 cat >conftest.$ac_ext <<_ACEOF 17156#line $LINENO "configure" 17157#include "confdefs.h" 17158 17159 #include <stdio.h> 17160 #include <string.h> 17161#ifdef F77_DUMMY_MAIN 17162# ifdef __cplusplus 17163 extern "C" 17164# endif 17165 int F77_DUMMY_MAIN() { return 1; } 17166#endif 17167int 17168main () 17169{ 17170struct foo { int foo; } xx; 17171extern int vasprintf (struct foo*); 17172vasprintf(&xx); 17173 17174 ; 17175 return 0; 17176} 17177_ACEOF 17178rm -f conftest.$ac_objext 17179if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17180 (eval $ac_compile) 2>&5 17181 ac_status=$? 17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17183 (exit $ac_status); } && 17184 { ac_try='test -s conftest.$ac_objext' 17185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17186 (eval $ac_try) 2>&5 17187 ac_status=$? 17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17189 (exit $ac_status); }; }; then 17190 eval "ac_cv_func_vasprintf_noproto=yes" 17191else 17192 echo "$as_me: failed program was:" >&5 17193cat conftest.$ac_ext >&5 17194eval "ac_cv_func_vasprintf_noproto=no" 17195fi 17196rm -f conftest.$ac_objext conftest.$ac_ext 17197fi 17198echo "$as_me:$LINENO: result: $ac_cv_func_vasprintf_noproto" >&5 17199echo "${ECHO_T}$ac_cv_func_vasprintf_noproto" >&6 17200if test "$ac_cv_func_vasprintf_noproto" = yes; then 17201 17202cat >>confdefs.h <<\_ACEOF 17203#define NEED_VASPRINTF_PROTO 1 17204_ACEOF 17205 17206fi 17207fi 17208 17209if test "$ac_cv_func_asnprintf+set" != set -o "$ac_cv_func_asnprintf" = yes; then 17210echo "$as_me:$LINENO: checking if asnprintf needs a prototype" >&5 17211echo $ECHO_N "checking if asnprintf needs a prototype... $ECHO_C" >&6 17212if test "${ac_cv_func_asnprintf_noproto+set}" = set; then 17213 echo $ECHO_N "(cached) $ECHO_C" >&6 17214else 17215 cat >conftest.$ac_ext <<_ACEOF 17216#line $LINENO "configure" 17217#include "confdefs.h" 17218 17219 #include <stdio.h> 17220 #include <string.h> 17221#ifdef F77_DUMMY_MAIN 17222# ifdef __cplusplus 17223 extern "C" 17224# endif 17225 int F77_DUMMY_MAIN() { return 1; } 17226#endif 17227int 17228main () 17229{ 17230struct foo { int foo; } xx; 17231extern int asnprintf (struct foo*); 17232asnprintf(&xx); 17233 17234 ; 17235 return 0; 17236} 17237_ACEOF 17238rm -f conftest.$ac_objext 17239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17240 (eval $ac_compile) 2>&5 17241 ac_status=$? 17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17243 (exit $ac_status); } && 17244 { ac_try='test -s conftest.$ac_objext' 17245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17246 (eval $ac_try) 2>&5 17247 ac_status=$? 17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17249 (exit $ac_status); }; }; then 17250 eval "ac_cv_func_asnprintf_noproto=yes" 17251else 17252 echo "$as_me: failed program was:" >&5 17253cat conftest.$ac_ext >&5 17254eval "ac_cv_func_asnprintf_noproto=no" 17255fi 17256rm -f conftest.$ac_objext conftest.$ac_ext 17257fi 17258echo "$as_me:$LINENO: result: $ac_cv_func_asnprintf_noproto" >&5 17259echo "${ECHO_T}$ac_cv_func_asnprintf_noproto" >&6 17260if test "$ac_cv_func_asnprintf_noproto" = yes; then 17261 17262cat >>confdefs.h <<\_ACEOF 17263#define NEED_ASNPRINTF_PROTO 1 17264_ACEOF 17265 17266fi 17267fi 17268 17269if test "$ac_cv_func_vasnprintf+set" != set -o "$ac_cv_func_vasnprintf" = yes; then 17270echo "$as_me:$LINENO: checking if vasnprintf needs a prototype" >&5 17271echo $ECHO_N "checking if vasnprintf needs a prototype... $ECHO_C" >&6 17272if test "${ac_cv_func_vasnprintf_noproto+set}" = set; then 17273 echo $ECHO_N "(cached) $ECHO_C" >&6 17274else 17275 cat >conftest.$ac_ext <<_ACEOF 17276#line $LINENO "configure" 17277#include "confdefs.h" 17278 17279 #include <stdio.h> 17280 #include <string.h> 17281#ifdef F77_DUMMY_MAIN 17282# ifdef __cplusplus 17283 extern "C" 17284# endif 17285 int F77_DUMMY_MAIN() { return 1; } 17286#endif 17287int 17288main () 17289{ 17290struct foo { int foo; } xx; 17291extern int vasnprintf (struct foo*); 17292vasnprintf(&xx); 17293 17294 ; 17295 return 0; 17296} 17297_ACEOF 17298rm -f conftest.$ac_objext 17299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17300 (eval $ac_compile) 2>&5 17301 ac_status=$? 17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17303 (exit $ac_status); } && 17304 { ac_try='test -s conftest.$ac_objext' 17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17306 (eval $ac_try) 2>&5 17307 ac_status=$? 17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17309 (exit $ac_status); }; }; then 17310 eval "ac_cv_func_vasnprintf_noproto=yes" 17311else 17312 echo "$as_me: failed program was:" >&5 17313cat conftest.$ac_ext >&5 17314eval "ac_cv_func_vasnprintf_noproto=no" 17315fi 17316rm -f conftest.$ac_objext conftest.$ac_ext 17317fi 17318echo "$as_me:$LINENO: result: $ac_cv_func_vasnprintf_noproto" >&5 17319echo "${ECHO_T}$ac_cv_func_vasnprintf_noproto" >&6 17320if test "$ac_cv_func_vasnprintf_noproto" = yes; then 17321 17322cat >>confdefs.h <<\_ACEOF 17323#define NEED_VASNPRINTF_PROTO 1 17324_ACEOF 17325 17326fi 17327fi 17328 17329 17330 17331 17332 17333echo "$as_me:$LINENO: checking for bswap16" >&5 17334echo $ECHO_N "checking for bswap16... $ECHO_C" >&6 17335if test "${ac_cv_funclib_bswap16+set}" = set; then 17336 echo $ECHO_N "(cached) $ECHO_C" >&6 17337else 17338 17339if eval "test \"\$ac_cv_func_bswap16\" != yes" ; then 17340 ac_save_LIBS="$LIBS" 17341 for ac_lib in "" ; do 17342 case "$ac_lib" in 17343 "") ;; 17344 yes) ac_lib="" ;; 17345 no) continue ;; 17346 -l*) ;; 17347 *) ac_lib="-l$ac_lib" ;; 17348 esac 17349 LIBS=" $ac_lib $ac_save_LIBS" 17350 cat >conftest.$ac_ext <<_ACEOF 17351#line $LINENO "configure" 17352#include "confdefs.h" 17353#ifdef HAVE_SYS_BSWAP_H 17354#include <sys/bswap.h> 17355#endif 17356#ifdef F77_DUMMY_MAIN 17357# ifdef __cplusplus 17358 extern "C" 17359# endif 17360 int F77_DUMMY_MAIN() { return 1; } 17361#endif 17362int 17363main () 17364{ 17365bswap16(0) 17366 ; 17367 return 0; 17368} 17369_ACEOF 17370rm -f conftest.$ac_objext conftest$ac_exeext 17371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17372 (eval $ac_link) 2>&5 17373 ac_status=$? 17374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17375 (exit $ac_status); } && 17376 { ac_try='test -s conftest$ac_exeext' 17377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17378 (eval $ac_try) 2>&5 17379 ac_status=$? 17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17381 (exit $ac_status); }; }; then 17382 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap16=$ac_lib; else ac_cv_funclib_bswap16=yes; fi";break 17383else 17384 echo "$as_me: failed program was:" >&5 17385cat conftest.$ac_ext >&5 17386fi 17387rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17388 done 17389 eval "ac_cv_funclib_bswap16=\${ac_cv_funclib_bswap16-no}" 17390 LIBS="$ac_save_LIBS" 17391fi 17392 17393fi 17394 17395 17396eval "ac_res=\$ac_cv_funclib_bswap16" 17397 17398if false; then 17399 17400for ac_func in bswap16 17401do 17402as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17403echo "$as_me:$LINENO: checking for $ac_func" >&5 17404echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17405if eval "test \"\${$as_ac_var+set}\" = set"; then 17406 echo $ECHO_N "(cached) $ECHO_C" >&6 17407else 17408 cat >conftest.$ac_ext <<_ACEOF 17409#line $LINENO "configure" 17410#include "confdefs.h" 17411/* System header to define __stub macros and hopefully few prototypes, 17412 which can conflict with char $ac_func (); below. */ 17413#include <assert.h> 17414/* Override any gcc2 internal prototype to avoid an error. */ 17415#ifdef __cplusplus 17416extern "C" 17417#endif 17418/* We use char because int might match the return type of a gcc2 17419 builtin and then its argument prototype would still apply. */ 17420char $ac_func (); 17421char (*f) (); 17422 17423#ifdef F77_DUMMY_MAIN 17424# ifdef __cplusplus 17425 extern "C" 17426# endif 17427 int F77_DUMMY_MAIN() { return 1; } 17428#endif 17429int 17430main () 17431{ 17432/* The GNU C library defines this for functions which it implements 17433 to always fail with ENOSYS. Some functions are actually named 17434 something starting with __ and the normal name is an alias. */ 17435#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17436choke me 17437#else 17438f = $ac_func; 17439#endif 17440 17441 ; 17442 return 0; 17443} 17444_ACEOF 17445rm -f conftest.$ac_objext conftest$ac_exeext 17446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17447 (eval $ac_link) 2>&5 17448 ac_status=$? 17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17450 (exit $ac_status); } && 17451 { ac_try='test -s conftest$ac_exeext' 17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17453 (eval $ac_try) 2>&5 17454 ac_status=$? 17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17456 (exit $ac_status); }; }; then 17457 eval "$as_ac_var=yes" 17458else 17459 echo "$as_me: failed program was:" >&5 17460cat conftest.$ac_ext >&5 17461eval "$as_ac_var=no" 17462fi 17463rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17464fi 17465echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17466echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17467if test `eval echo '${'$as_ac_var'}'` = yes; then 17468 cat >>confdefs.h <<_ACEOF 17469#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17470_ACEOF 17471 17472fi 17473done 17474 17475fi 17476# bswap16 17477eval "ac_tr_func=HAVE_`echo bswap16 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17478eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17479eval "LIB_bswap16=$ac_res" 17480 17481case "$ac_res" in 17482 yes) 17483 eval "ac_cv_func_bswap16=yes" 17484 eval "LIB_bswap16=" 17485 cat >>confdefs.h <<_ACEOF 17486#define $ac_tr_func 1 17487_ACEOF 17488 17489 echo "$as_me:$LINENO: result: yes" >&5 17490echo "${ECHO_T}yes" >&6 17491 ;; 17492 no) 17493 eval "ac_cv_func_bswap16=no" 17494 eval "LIB_bswap16=" 17495 echo "$as_me:$LINENO: result: no" >&5 17496echo "${ECHO_T}no" >&6 17497 ;; 17498 *) 17499 eval "ac_cv_func_bswap16=yes" 17500 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17501 cat >>confdefs.h <<_ACEOF 17502#define $ac_tr_func 1 17503_ACEOF 17504 17505 cat >>confdefs.h <<_ACEOF 17506#define $ac_tr_lib 1 17507_ACEOF 17508 17509 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 17510echo "${ECHO_T}yes, in $ac_res" >&6 17511 ;; 17512esac 17513 17514 17515 17516 17517 17518 17519echo "$as_me:$LINENO: checking for bswap32" >&5 17520echo $ECHO_N "checking for bswap32... $ECHO_C" >&6 17521if test "${ac_cv_funclib_bswap32+set}" = set; then 17522 echo $ECHO_N "(cached) $ECHO_C" >&6 17523else 17524 17525if eval "test \"\$ac_cv_func_bswap32\" != yes" ; then 17526 ac_save_LIBS="$LIBS" 17527 for ac_lib in "" ; do 17528 case "$ac_lib" in 17529 "") ;; 17530 yes) ac_lib="" ;; 17531 no) continue ;; 17532 -l*) ;; 17533 *) ac_lib="-l$ac_lib" ;; 17534 esac 17535 LIBS=" $ac_lib $ac_save_LIBS" 17536 cat >conftest.$ac_ext <<_ACEOF 17537#line $LINENO "configure" 17538#include "confdefs.h" 17539#ifdef HAVE_SYS_BSWAP_H 17540#include <sys/bswap.h> 17541#endif 17542#ifdef F77_DUMMY_MAIN 17543# ifdef __cplusplus 17544 extern "C" 17545# endif 17546 int F77_DUMMY_MAIN() { return 1; } 17547#endif 17548int 17549main () 17550{ 17551bswap32(0) 17552 ; 17553 return 0; 17554} 17555_ACEOF 17556rm -f conftest.$ac_objext conftest$ac_exeext 17557if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17558 (eval $ac_link) 2>&5 17559 ac_status=$? 17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17561 (exit $ac_status); } && 17562 { ac_try='test -s conftest$ac_exeext' 17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17564 (eval $ac_try) 2>&5 17565 ac_status=$? 17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17567 (exit $ac_status); }; }; then 17568 eval "if test -n \"$ac_lib\";then ac_cv_funclib_bswap32=$ac_lib; else ac_cv_funclib_bswap32=yes; fi";break 17569else 17570 echo "$as_me: failed program was:" >&5 17571cat conftest.$ac_ext >&5 17572fi 17573rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17574 done 17575 eval "ac_cv_funclib_bswap32=\${ac_cv_funclib_bswap32-no}" 17576 LIBS="$ac_save_LIBS" 17577fi 17578 17579fi 17580 17581 17582eval "ac_res=\$ac_cv_funclib_bswap32" 17583 17584if false; then 17585 17586for ac_func in bswap32 17587do 17588as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17589echo "$as_me:$LINENO: checking for $ac_func" >&5 17590echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17591if eval "test \"\${$as_ac_var+set}\" = set"; then 17592 echo $ECHO_N "(cached) $ECHO_C" >&6 17593else 17594 cat >conftest.$ac_ext <<_ACEOF 17595#line $LINENO "configure" 17596#include "confdefs.h" 17597/* System header to define __stub macros and hopefully few prototypes, 17598 which can conflict with char $ac_func (); below. */ 17599#include <assert.h> 17600/* Override any gcc2 internal prototype to avoid an error. */ 17601#ifdef __cplusplus 17602extern "C" 17603#endif 17604/* We use char because int might match the return type of a gcc2 17605 builtin and then its argument prototype would still apply. */ 17606char $ac_func (); 17607char (*f) (); 17608 17609#ifdef F77_DUMMY_MAIN 17610# ifdef __cplusplus 17611 extern "C" 17612# endif 17613 int F77_DUMMY_MAIN() { return 1; } 17614#endif 17615int 17616main () 17617{ 17618/* The GNU C library defines this for functions which it implements 17619 to always fail with ENOSYS. Some functions are actually named 17620 something starting with __ and the normal name is an alias. */ 17621#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17622choke me 17623#else 17624f = $ac_func; 17625#endif 17626 17627 ; 17628 return 0; 17629} 17630_ACEOF 17631rm -f conftest.$ac_objext conftest$ac_exeext 17632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17633 (eval $ac_link) 2>&5 17634 ac_status=$? 17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17636 (exit $ac_status); } && 17637 { ac_try='test -s conftest$ac_exeext' 17638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17639 (eval $ac_try) 2>&5 17640 ac_status=$? 17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17642 (exit $ac_status); }; }; then 17643 eval "$as_ac_var=yes" 17644else 17645 echo "$as_me: failed program was:" >&5 17646cat conftest.$ac_ext >&5 17647eval "$as_ac_var=no" 17648fi 17649rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17650fi 17651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17652echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17653if test `eval echo '${'$as_ac_var'}'` = yes; then 17654 cat >>confdefs.h <<_ACEOF 17655#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17656_ACEOF 17657 17658fi 17659done 17660 17661fi 17662# bswap32 17663eval "ac_tr_func=HAVE_`echo bswap32 | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17664eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17665eval "LIB_bswap32=$ac_res" 17666 17667case "$ac_res" in 17668 yes) 17669 eval "ac_cv_func_bswap32=yes" 17670 eval "LIB_bswap32=" 17671 cat >>confdefs.h <<_ACEOF 17672#define $ac_tr_func 1 17673_ACEOF 17674 17675 echo "$as_me:$LINENO: result: yes" >&5 17676echo "${ECHO_T}yes" >&6 17677 ;; 17678 no) 17679 eval "ac_cv_func_bswap32=no" 17680 eval "LIB_bswap32=" 17681 echo "$as_me:$LINENO: result: no" >&5 17682echo "${ECHO_T}no" >&6 17683 ;; 17684 *) 17685 eval "ac_cv_func_bswap32=yes" 17686 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17687 cat >>confdefs.h <<_ACEOF 17688#define $ac_tr_func 1 17689_ACEOF 17690 17691 cat >>confdefs.h <<_ACEOF 17692#define $ac_tr_lib 1 17693_ACEOF 17694 17695 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 17696echo "${ECHO_T}yes, in $ac_res" >&6 17697 ;; 17698esac 17699 17700 17701 17702 17703 17704 17705echo "$as_me:$LINENO: checking for pidfile" >&5 17706echo $ECHO_N "checking for pidfile... $ECHO_C" >&6 17707if test "${ac_cv_funclib_pidfile+set}" = set; then 17708 echo $ECHO_N "(cached) $ECHO_C" >&6 17709else 17710 17711if eval "test \"\$ac_cv_func_pidfile\" != yes" ; then 17712 ac_save_LIBS="$LIBS" 17713 for ac_lib in "" util; do 17714 case "$ac_lib" in 17715 "") ;; 17716 yes) ac_lib="" ;; 17717 no) continue ;; 17718 -l*) ;; 17719 *) ac_lib="-l$ac_lib" ;; 17720 esac 17721 LIBS=" $ac_lib $ac_save_LIBS" 17722 cat >conftest.$ac_ext <<_ACEOF 17723#line $LINENO "configure" 17724#include "confdefs.h" 17725#ifdef HAVE_UTIL_H 17726#include <util.h> 17727#endif 17728#ifdef F77_DUMMY_MAIN 17729# ifdef __cplusplus 17730 extern "C" 17731# endif 17732 int F77_DUMMY_MAIN() { return 1; } 17733#endif 17734int 17735main () 17736{ 17737pidfile(0) 17738 ; 17739 return 0; 17740} 17741_ACEOF 17742rm -f conftest.$ac_objext conftest$ac_exeext 17743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17744 (eval $ac_link) 2>&5 17745 ac_status=$? 17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17747 (exit $ac_status); } && 17748 { ac_try='test -s conftest$ac_exeext' 17749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17750 (eval $ac_try) 2>&5 17751 ac_status=$? 17752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17753 (exit $ac_status); }; }; then 17754 eval "if test -n \"$ac_lib\";then ac_cv_funclib_pidfile=$ac_lib; else ac_cv_funclib_pidfile=yes; fi";break 17755else 17756 echo "$as_me: failed program was:" >&5 17757cat conftest.$ac_ext >&5 17758fi 17759rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17760 done 17761 eval "ac_cv_funclib_pidfile=\${ac_cv_funclib_pidfile-no}" 17762 LIBS="$ac_save_LIBS" 17763fi 17764 17765fi 17766 17767 17768eval "ac_res=\$ac_cv_funclib_pidfile" 17769 17770if false; then 17771 17772for ac_func in pidfile 17773do 17774as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17775echo "$as_me:$LINENO: checking for $ac_func" >&5 17776echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17777if eval "test \"\${$as_ac_var+set}\" = set"; then 17778 echo $ECHO_N "(cached) $ECHO_C" >&6 17779else 17780 cat >conftest.$ac_ext <<_ACEOF 17781#line $LINENO "configure" 17782#include "confdefs.h" 17783/* System header to define __stub macros and hopefully few prototypes, 17784 which can conflict with char $ac_func (); below. */ 17785#include <assert.h> 17786/* Override any gcc2 internal prototype to avoid an error. */ 17787#ifdef __cplusplus 17788extern "C" 17789#endif 17790/* We use char because int might match the return type of a gcc2 17791 builtin and then its argument prototype would still apply. */ 17792char $ac_func (); 17793char (*f) (); 17794 17795#ifdef F77_DUMMY_MAIN 17796# ifdef __cplusplus 17797 extern "C" 17798# endif 17799 int F77_DUMMY_MAIN() { return 1; } 17800#endif 17801int 17802main () 17803{ 17804/* The GNU C library defines this for functions which it implements 17805 to always fail with ENOSYS. Some functions are actually named 17806 something starting with __ and the normal name is an alias. */ 17807#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17808choke me 17809#else 17810f = $ac_func; 17811#endif 17812 17813 ; 17814 return 0; 17815} 17816_ACEOF 17817rm -f conftest.$ac_objext conftest$ac_exeext 17818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17819 (eval $ac_link) 2>&5 17820 ac_status=$? 17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17822 (exit $ac_status); } && 17823 { ac_try='test -s conftest$ac_exeext' 17824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17825 (eval $ac_try) 2>&5 17826 ac_status=$? 17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17828 (exit $ac_status); }; }; then 17829 eval "$as_ac_var=yes" 17830else 17831 echo "$as_me: failed program was:" >&5 17832cat conftest.$ac_ext >&5 17833eval "$as_ac_var=no" 17834fi 17835rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17836fi 17837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 17838echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 17839if test `eval echo '${'$as_ac_var'}'` = yes; then 17840 cat >>confdefs.h <<_ACEOF 17841#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 17842_ACEOF 17843 17844fi 17845done 17846 17847fi 17848# pidfile 17849eval "ac_tr_func=HAVE_`echo pidfile | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17850eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 17851eval "LIB_pidfile=$ac_res" 17852 17853case "$ac_res" in 17854 yes) 17855 eval "ac_cv_func_pidfile=yes" 17856 eval "LIB_pidfile=" 17857 cat >>confdefs.h <<_ACEOF 17858#define $ac_tr_func 1 17859_ACEOF 17860 17861 echo "$as_me:$LINENO: result: yes" >&5 17862echo "${ECHO_T}yes" >&6 17863 ;; 17864 no) 17865 eval "ac_cv_func_pidfile=no" 17866 eval "LIB_pidfile=" 17867 echo "$as_me:$LINENO: result: no" >&5 17868echo "${ECHO_T}no" >&6 17869 ;; 17870 *) 17871 eval "ac_cv_func_pidfile=yes" 17872 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 17873 cat >>confdefs.h <<_ACEOF 17874#define $ac_tr_func 1 17875_ACEOF 17876 17877 cat >>confdefs.h <<_ACEOF 17878#define $ac_tr_lib 1 17879_ACEOF 17880 17881 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 17882echo "${ECHO_T}yes, in $ac_res" >&6 17883 ;; 17884esac 17885 17886 17887 17888 17889 17890 17891 17892echo "$as_me:$LINENO: checking for getaddrinfo" >&5 17893echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6 17894if test "${ac_cv_funclib_getaddrinfo+set}" = set; then 17895 echo $ECHO_N "(cached) $ECHO_C" >&6 17896else 17897 17898if eval "test \"\$ac_cv_func_getaddrinfo\" != yes" ; then 17899 ac_save_LIBS="$LIBS" 17900 for ac_lib in "" ; do 17901 case "$ac_lib" in 17902 "") ;; 17903 yes) ac_lib="" ;; 17904 no) continue ;; 17905 -l*) ;; 17906 *) ac_lib="-l$ac_lib" ;; 17907 esac 17908 LIBS=" $ac_lib $ac_save_LIBS" 17909 cat >conftest.$ac_ext <<_ACEOF 17910#line $LINENO "configure" 17911#include "confdefs.h" 17912#ifdef HAVE_NETDB_H 17913#include <netdb.h> 17914#endif 17915#ifdef F77_DUMMY_MAIN 17916# ifdef __cplusplus 17917 extern "C" 17918# endif 17919 int F77_DUMMY_MAIN() { return 1; } 17920#endif 17921int 17922main () 17923{ 17924getaddrinfo(0,0,0,0) 17925 ; 17926 return 0; 17927} 17928_ACEOF 17929rm -f conftest.$ac_objext conftest$ac_exeext 17930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17931 (eval $ac_link) 2>&5 17932 ac_status=$? 17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17934 (exit $ac_status); } && 17935 { ac_try='test -s conftest$ac_exeext' 17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17937 (eval $ac_try) 2>&5 17938 ac_status=$? 17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17940 (exit $ac_status); }; }; then 17941 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getaddrinfo=$ac_lib; else ac_cv_funclib_getaddrinfo=yes; fi";break 17942else 17943 echo "$as_me: failed program was:" >&5 17944cat conftest.$ac_ext >&5 17945fi 17946rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 17947 done 17948 eval "ac_cv_funclib_getaddrinfo=\${ac_cv_funclib_getaddrinfo-no}" 17949 LIBS="$ac_save_LIBS" 17950fi 17951 17952fi 17953 17954 17955eval "ac_res=\$ac_cv_funclib_getaddrinfo" 17956 17957if false; then 17958 17959for ac_func in getaddrinfo 17960do 17961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 17962echo "$as_me:$LINENO: checking for $ac_func" >&5 17963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 17964if eval "test \"\${$as_ac_var+set}\" = set"; then 17965 echo $ECHO_N "(cached) $ECHO_C" >&6 17966else 17967 cat >conftest.$ac_ext <<_ACEOF 17968#line $LINENO "configure" 17969#include "confdefs.h" 17970/* System header to define __stub macros and hopefully few prototypes, 17971 which can conflict with char $ac_func (); below. */ 17972#include <assert.h> 17973/* Override any gcc2 internal prototype to avoid an error. */ 17974#ifdef __cplusplus 17975extern "C" 17976#endif 17977/* We use char because int might match the return type of a gcc2 17978 builtin and then its argument prototype would still apply. */ 17979char $ac_func (); 17980char (*f) (); 17981 17982#ifdef F77_DUMMY_MAIN 17983# ifdef __cplusplus 17984 extern "C" 17985# endif 17986 int F77_DUMMY_MAIN() { return 1; } 17987#endif 17988int 17989main () 17990{ 17991/* The GNU C library defines this for functions which it implements 17992 to always fail with ENOSYS. Some functions are actually named 17993 something starting with __ and the normal name is an alias. */ 17994#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 17995choke me 17996#else 17997f = $ac_func; 17998#endif 17999 18000 ; 18001 return 0; 18002} 18003_ACEOF 18004rm -f conftest.$ac_objext conftest$ac_exeext 18005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18006 (eval $ac_link) 2>&5 18007 ac_status=$? 18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18009 (exit $ac_status); } && 18010 { ac_try='test -s conftest$ac_exeext' 18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18012 (eval $ac_try) 2>&5 18013 ac_status=$? 18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18015 (exit $ac_status); }; }; then 18016 eval "$as_ac_var=yes" 18017else 18018 echo "$as_me: failed program was:" >&5 18019cat conftest.$ac_ext >&5 18020eval "$as_ac_var=no" 18021fi 18022rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18023fi 18024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18026if test `eval echo '${'$as_ac_var'}'` = yes; then 18027 cat >>confdefs.h <<_ACEOF 18028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18029_ACEOF 18030 18031fi 18032done 18033 18034fi 18035# getaddrinfo 18036eval "ac_tr_func=HAVE_`echo getaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18037eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18038eval "LIB_getaddrinfo=$ac_res" 18039 18040case "$ac_res" in 18041 yes) 18042 eval "ac_cv_func_getaddrinfo=yes" 18043 eval "LIB_getaddrinfo=" 18044 cat >>confdefs.h <<_ACEOF 18045#define $ac_tr_func 1 18046_ACEOF 18047 18048 echo "$as_me:$LINENO: result: yes" >&5 18049echo "${ECHO_T}yes" >&6 18050 ;; 18051 no) 18052 eval "ac_cv_func_getaddrinfo=no" 18053 eval "LIB_getaddrinfo=" 18054 echo "$as_me:$LINENO: result: no" >&5 18055echo "${ECHO_T}no" >&6 18056 ;; 18057 *) 18058 eval "ac_cv_func_getaddrinfo=yes" 18059 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18060 cat >>confdefs.h <<_ACEOF 18061#define $ac_tr_func 1 18062_ACEOF 18063 18064 cat >>confdefs.h <<_ACEOF 18065#define $ac_tr_lib 1 18066_ACEOF 18067 18068 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18069echo "${ECHO_T}yes, in $ac_res" >&6 18070 ;; 18071esac 18072 18073 18074if test -n "$LIB_getaddrinfo"; then 18075 LIBS="$LIB_getaddrinfo $LIBS" 18076fi 18077 18078if eval "test \"$ac_cv_func_getaddrinfo\" != yes"; then 18079 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 18080fi 18081 18082 18083 18084 18085 18086 18087echo "$as_me:$LINENO: checking for getnameinfo" >&5 18088echo $ECHO_N "checking for getnameinfo... $ECHO_C" >&6 18089if test "${ac_cv_funclib_getnameinfo+set}" = set; then 18090 echo $ECHO_N "(cached) $ECHO_C" >&6 18091else 18092 18093if eval "test \"\$ac_cv_func_getnameinfo\" != yes" ; then 18094 ac_save_LIBS="$LIBS" 18095 for ac_lib in "" ; do 18096 case "$ac_lib" in 18097 "") ;; 18098 yes) ac_lib="" ;; 18099 no) continue ;; 18100 -l*) ;; 18101 *) ac_lib="-l$ac_lib" ;; 18102 esac 18103 LIBS=" $ac_lib $ac_save_LIBS" 18104 cat >conftest.$ac_ext <<_ACEOF 18105#line $LINENO "configure" 18106#include "confdefs.h" 18107#ifdef HAVE_NETDB_H 18108#include <netdb.h> 18109#endif 18110#ifdef F77_DUMMY_MAIN 18111# ifdef __cplusplus 18112 extern "C" 18113# endif 18114 int F77_DUMMY_MAIN() { return 1; } 18115#endif 18116int 18117main () 18118{ 18119getnameinfo(0,0,0,0,0,0,0) 18120 ; 18121 return 0; 18122} 18123_ACEOF 18124rm -f conftest.$ac_objext conftest$ac_exeext 18125if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18126 (eval $ac_link) 2>&5 18127 ac_status=$? 18128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18129 (exit $ac_status); } && 18130 { ac_try='test -s conftest$ac_exeext' 18131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18132 (eval $ac_try) 2>&5 18133 ac_status=$? 18134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18135 (exit $ac_status); }; }; then 18136 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getnameinfo=$ac_lib; else ac_cv_funclib_getnameinfo=yes; fi";break 18137else 18138 echo "$as_me: failed program was:" >&5 18139cat conftest.$ac_ext >&5 18140fi 18141rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18142 done 18143 eval "ac_cv_funclib_getnameinfo=\${ac_cv_funclib_getnameinfo-no}" 18144 LIBS="$ac_save_LIBS" 18145fi 18146 18147fi 18148 18149 18150eval "ac_res=\$ac_cv_funclib_getnameinfo" 18151 18152if false; then 18153 18154for ac_func in getnameinfo 18155do 18156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18157echo "$as_me:$LINENO: checking for $ac_func" >&5 18158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18159if eval "test \"\${$as_ac_var+set}\" = set"; then 18160 echo $ECHO_N "(cached) $ECHO_C" >&6 18161else 18162 cat >conftest.$ac_ext <<_ACEOF 18163#line $LINENO "configure" 18164#include "confdefs.h" 18165/* System header to define __stub macros and hopefully few prototypes, 18166 which can conflict with char $ac_func (); below. */ 18167#include <assert.h> 18168/* Override any gcc2 internal prototype to avoid an error. */ 18169#ifdef __cplusplus 18170extern "C" 18171#endif 18172/* We use char because int might match the return type of a gcc2 18173 builtin and then its argument prototype would still apply. */ 18174char $ac_func (); 18175char (*f) (); 18176 18177#ifdef F77_DUMMY_MAIN 18178# ifdef __cplusplus 18179 extern "C" 18180# endif 18181 int F77_DUMMY_MAIN() { return 1; } 18182#endif 18183int 18184main () 18185{ 18186/* The GNU C library defines this for functions which it implements 18187 to always fail with ENOSYS. Some functions are actually named 18188 something starting with __ and the normal name is an alias. */ 18189#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18190choke me 18191#else 18192f = $ac_func; 18193#endif 18194 18195 ; 18196 return 0; 18197} 18198_ACEOF 18199rm -f conftest.$ac_objext conftest$ac_exeext 18200if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18201 (eval $ac_link) 2>&5 18202 ac_status=$? 18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18204 (exit $ac_status); } && 18205 { ac_try='test -s conftest$ac_exeext' 18206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18207 (eval $ac_try) 2>&5 18208 ac_status=$? 18209 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18210 (exit $ac_status); }; }; then 18211 eval "$as_ac_var=yes" 18212else 18213 echo "$as_me: failed program was:" >&5 18214cat conftest.$ac_ext >&5 18215eval "$as_ac_var=no" 18216fi 18217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18218fi 18219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18220echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18221if test `eval echo '${'$as_ac_var'}'` = yes; then 18222 cat >>confdefs.h <<_ACEOF 18223#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18224_ACEOF 18225 18226fi 18227done 18228 18229fi 18230# getnameinfo 18231eval "ac_tr_func=HAVE_`echo getnameinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18232eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18233eval "LIB_getnameinfo=$ac_res" 18234 18235case "$ac_res" in 18236 yes) 18237 eval "ac_cv_func_getnameinfo=yes" 18238 eval "LIB_getnameinfo=" 18239 cat >>confdefs.h <<_ACEOF 18240#define $ac_tr_func 1 18241_ACEOF 18242 18243 echo "$as_me:$LINENO: result: yes" >&5 18244echo "${ECHO_T}yes" >&6 18245 ;; 18246 no) 18247 eval "ac_cv_func_getnameinfo=no" 18248 eval "LIB_getnameinfo=" 18249 echo "$as_me:$LINENO: result: no" >&5 18250echo "${ECHO_T}no" >&6 18251 ;; 18252 *) 18253 eval "ac_cv_func_getnameinfo=yes" 18254 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18255 cat >>confdefs.h <<_ACEOF 18256#define $ac_tr_func 1 18257_ACEOF 18258 18259 cat >>confdefs.h <<_ACEOF 18260#define $ac_tr_lib 1 18261_ACEOF 18262 18263 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18264echo "${ECHO_T}yes, in $ac_res" >&6 18265 ;; 18266esac 18267 18268 18269if test -n "$LIB_getnameinfo"; then 18270 LIBS="$LIB_getnameinfo $LIBS" 18271fi 18272 18273if eval "test \"$ac_cv_func_getnameinfo\" != yes"; then 18274 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 18275fi 18276 18277 18278 18279 18280 18281 18282echo "$as_me:$LINENO: checking for freeaddrinfo" >&5 18283echo $ECHO_N "checking for freeaddrinfo... $ECHO_C" >&6 18284if test "${ac_cv_funclib_freeaddrinfo+set}" = set; then 18285 echo $ECHO_N "(cached) $ECHO_C" >&6 18286else 18287 18288if eval "test \"\$ac_cv_func_freeaddrinfo\" != yes" ; then 18289 ac_save_LIBS="$LIBS" 18290 for ac_lib in "" ; do 18291 case "$ac_lib" in 18292 "") ;; 18293 yes) ac_lib="" ;; 18294 no) continue ;; 18295 -l*) ;; 18296 *) ac_lib="-l$ac_lib" ;; 18297 esac 18298 LIBS=" $ac_lib $ac_save_LIBS" 18299 cat >conftest.$ac_ext <<_ACEOF 18300#line $LINENO "configure" 18301#include "confdefs.h" 18302#ifdef HAVE_NETDB_H 18303#include <netdb.h> 18304#endif 18305#ifdef F77_DUMMY_MAIN 18306# ifdef __cplusplus 18307 extern "C" 18308# endif 18309 int F77_DUMMY_MAIN() { return 1; } 18310#endif 18311int 18312main () 18313{ 18314freeaddrinfo(0) 18315 ; 18316 return 0; 18317} 18318_ACEOF 18319rm -f conftest.$ac_objext conftest$ac_exeext 18320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18321 (eval $ac_link) 2>&5 18322 ac_status=$? 18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18324 (exit $ac_status); } && 18325 { ac_try='test -s conftest$ac_exeext' 18326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18327 (eval $ac_try) 2>&5 18328 ac_status=$? 18329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18330 (exit $ac_status); }; }; then 18331 eval "if test -n \"$ac_lib\";then ac_cv_funclib_freeaddrinfo=$ac_lib; else ac_cv_funclib_freeaddrinfo=yes; fi";break 18332else 18333 echo "$as_me: failed program was:" >&5 18334cat conftest.$ac_ext >&5 18335fi 18336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18337 done 18338 eval "ac_cv_funclib_freeaddrinfo=\${ac_cv_funclib_freeaddrinfo-no}" 18339 LIBS="$ac_save_LIBS" 18340fi 18341 18342fi 18343 18344 18345eval "ac_res=\$ac_cv_funclib_freeaddrinfo" 18346 18347if false; then 18348 18349for ac_func in freeaddrinfo 18350do 18351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18352echo "$as_me:$LINENO: checking for $ac_func" >&5 18353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18354if eval "test \"\${$as_ac_var+set}\" = set"; then 18355 echo $ECHO_N "(cached) $ECHO_C" >&6 18356else 18357 cat >conftest.$ac_ext <<_ACEOF 18358#line $LINENO "configure" 18359#include "confdefs.h" 18360/* System header to define __stub macros and hopefully few prototypes, 18361 which can conflict with char $ac_func (); below. */ 18362#include <assert.h> 18363/* Override any gcc2 internal prototype to avoid an error. */ 18364#ifdef __cplusplus 18365extern "C" 18366#endif 18367/* We use char because int might match the return type of a gcc2 18368 builtin and then its argument prototype would still apply. */ 18369char $ac_func (); 18370char (*f) (); 18371 18372#ifdef F77_DUMMY_MAIN 18373# ifdef __cplusplus 18374 extern "C" 18375# endif 18376 int F77_DUMMY_MAIN() { return 1; } 18377#endif 18378int 18379main () 18380{ 18381/* The GNU C library defines this for functions which it implements 18382 to always fail with ENOSYS. Some functions are actually named 18383 something starting with __ and the normal name is an alias. */ 18384#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18385choke me 18386#else 18387f = $ac_func; 18388#endif 18389 18390 ; 18391 return 0; 18392} 18393_ACEOF 18394rm -f conftest.$ac_objext conftest$ac_exeext 18395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18396 (eval $ac_link) 2>&5 18397 ac_status=$? 18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18399 (exit $ac_status); } && 18400 { ac_try='test -s conftest$ac_exeext' 18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18402 (eval $ac_try) 2>&5 18403 ac_status=$? 18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18405 (exit $ac_status); }; }; then 18406 eval "$as_ac_var=yes" 18407else 18408 echo "$as_me: failed program was:" >&5 18409cat conftest.$ac_ext >&5 18410eval "$as_ac_var=no" 18411fi 18412rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18413fi 18414echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18415echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18416if test `eval echo '${'$as_ac_var'}'` = yes; then 18417 cat >>confdefs.h <<_ACEOF 18418#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18419_ACEOF 18420 18421fi 18422done 18423 18424fi 18425# freeaddrinfo 18426eval "ac_tr_func=HAVE_`echo freeaddrinfo | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18427eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18428eval "LIB_freeaddrinfo=$ac_res" 18429 18430case "$ac_res" in 18431 yes) 18432 eval "ac_cv_func_freeaddrinfo=yes" 18433 eval "LIB_freeaddrinfo=" 18434 cat >>confdefs.h <<_ACEOF 18435#define $ac_tr_func 1 18436_ACEOF 18437 18438 echo "$as_me:$LINENO: result: yes" >&5 18439echo "${ECHO_T}yes" >&6 18440 ;; 18441 no) 18442 eval "ac_cv_func_freeaddrinfo=no" 18443 eval "LIB_freeaddrinfo=" 18444 echo "$as_me:$LINENO: result: no" >&5 18445echo "${ECHO_T}no" >&6 18446 ;; 18447 *) 18448 eval "ac_cv_func_freeaddrinfo=yes" 18449 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18450 cat >>confdefs.h <<_ACEOF 18451#define $ac_tr_func 1 18452_ACEOF 18453 18454 cat >>confdefs.h <<_ACEOF 18455#define $ac_tr_lib 1 18456_ACEOF 18457 18458 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18459echo "${ECHO_T}yes, in $ac_res" >&6 18460 ;; 18461esac 18462 18463 18464if test -n "$LIB_freeaddrinfo"; then 18465 LIBS="$LIB_freeaddrinfo $LIBS" 18466fi 18467 18468if eval "test \"$ac_cv_func_freeaddrinfo\" != yes"; then 18469 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 18470fi 18471 18472 18473 18474 18475 18476 18477echo "$as_me:$LINENO: checking for gai_strerror" >&5 18478echo $ECHO_N "checking for gai_strerror... $ECHO_C" >&6 18479if test "${ac_cv_funclib_gai_strerror+set}" = set; then 18480 echo $ECHO_N "(cached) $ECHO_C" >&6 18481else 18482 18483if eval "test \"\$ac_cv_func_gai_strerror\" != yes" ; then 18484 ac_save_LIBS="$LIBS" 18485 for ac_lib in "" ; do 18486 case "$ac_lib" in 18487 "") ;; 18488 yes) ac_lib="" ;; 18489 no) continue ;; 18490 -l*) ;; 18491 *) ac_lib="-l$ac_lib" ;; 18492 esac 18493 LIBS=" $ac_lib $ac_save_LIBS" 18494 cat >conftest.$ac_ext <<_ACEOF 18495#line $LINENO "configure" 18496#include "confdefs.h" 18497#ifdef HAVE_NETDB_H 18498#include <netdb.h> 18499#endif 18500#ifdef F77_DUMMY_MAIN 18501# ifdef __cplusplus 18502 extern "C" 18503# endif 18504 int F77_DUMMY_MAIN() { return 1; } 18505#endif 18506int 18507main () 18508{ 18509gai_strerror(0) 18510 ; 18511 return 0; 18512} 18513_ACEOF 18514rm -f conftest.$ac_objext conftest$ac_exeext 18515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18516 (eval $ac_link) 2>&5 18517 ac_status=$? 18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18519 (exit $ac_status); } && 18520 { ac_try='test -s conftest$ac_exeext' 18521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18522 (eval $ac_try) 2>&5 18523 ac_status=$? 18524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18525 (exit $ac_status); }; }; then 18526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_gai_strerror=$ac_lib; else ac_cv_funclib_gai_strerror=yes; fi";break 18527else 18528 echo "$as_me: failed program was:" >&5 18529cat conftest.$ac_ext >&5 18530fi 18531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18532 done 18533 eval "ac_cv_funclib_gai_strerror=\${ac_cv_funclib_gai_strerror-no}" 18534 LIBS="$ac_save_LIBS" 18535fi 18536 18537fi 18538 18539 18540eval "ac_res=\$ac_cv_funclib_gai_strerror" 18541 18542if false; then 18543 18544for ac_func in gai_strerror 18545do 18546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 18547echo "$as_me:$LINENO: checking for $ac_func" >&5 18548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 18549if eval "test \"\${$as_ac_var+set}\" = set"; then 18550 echo $ECHO_N "(cached) $ECHO_C" >&6 18551else 18552 cat >conftest.$ac_ext <<_ACEOF 18553#line $LINENO "configure" 18554#include "confdefs.h" 18555/* System header to define __stub macros and hopefully few prototypes, 18556 which can conflict with char $ac_func (); below. */ 18557#include <assert.h> 18558/* Override any gcc2 internal prototype to avoid an error. */ 18559#ifdef __cplusplus 18560extern "C" 18561#endif 18562/* We use char because int might match the return type of a gcc2 18563 builtin and then its argument prototype would still apply. */ 18564char $ac_func (); 18565char (*f) (); 18566 18567#ifdef F77_DUMMY_MAIN 18568# ifdef __cplusplus 18569 extern "C" 18570# endif 18571 int F77_DUMMY_MAIN() { return 1; } 18572#endif 18573int 18574main () 18575{ 18576/* The GNU C library defines this for functions which it implements 18577 to always fail with ENOSYS. Some functions are actually named 18578 something starting with __ and the normal name is an alias. */ 18579#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 18580choke me 18581#else 18582f = $ac_func; 18583#endif 18584 18585 ; 18586 return 0; 18587} 18588_ACEOF 18589rm -f conftest.$ac_objext conftest$ac_exeext 18590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18591 (eval $ac_link) 2>&5 18592 ac_status=$? 18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18594 (exit $ac_status); } && 18595 { ac_try='test -s conftest$ac_exeext' 18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18597 (eval $ac_try) 2>&5 18598 ac_status=$? 18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18600 (exit $ac_status); }; }; then 18601 eval "$as_ac_var=yes" 18602else 18603 echo "$as_me: failed program was:" >&5 18604cat conftest.$ac_ext >&5 18605eval "$as_ac_var=no" 18606fi 18607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18608fi 18609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 18610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 18611if test `eval echo '${'$as_ac_var'}'` = yes; then 18612 cat >>confdefs.h <<_ACEOF 18613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 18614_ACEOF 18615 18616fi 18617done 18618 18619fi 18620# gai_strerror 18621eval "ac_tr_func=HAVE_`echo gai_strerror | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18622eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 18623eval "LIB_gai_strerror=$ac_res" 18624 18625case "$ac_res" in 18626 yes) 18627 eval "ac_cv_func_gai_strerror=yes" 18628 eval "LIB_gai_strerror=" 18629 cat >>confdefs.h <<_ACEOF 18630#define $ac_tr_func 1 18631_ACEOF 18632 18633 echo "$as_me:$LINENO: result: yes" >&5 18634echo "${ECHO_T}yes" >&6 18635 ;; 18636 no) 18637 eval "ac_cv_func_gai_strerror=no" 18638 eval "LIB_gai_strerror=" 18639 echo "$as_me:$LINENO: result: no" >&5 18640echo "${ECHO_T}no" >&6 18641 ;; 18642 *) 18643 eval "ac_cv_func_gai_strerror=yes" 18644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 18645 cat >>confdefs.h <<_ACEOF 18646#define $ac_tr_func 1 18647_ACEOF 18648 18649 cat >>confdefs.h <<_ACEOF 18650#define $ac_tr_lib 1 18651_ACEOF 18652 18653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 18654echo "${ECHO_T}yes, in $ac_res" >&6 18655 ;; 18656esac 18657 18658 18659if test -n "$LIB_gai_strerror"; then 18660 LIBS="$LIB_gai_strerror $LIBS" 18661fi 18662 18663if eval "test \"$ac_cv_func_gai_strerror\" != yes"; then 18664 LIBOBJS="$LIBOBJS gai_strerror.$ac_objext" 18665fi 18666 18667 18668echo "$as_me:$LINENO: checking for chown" >&5 18669echo $ECHO_N "checking for chown... $ECHO_C" >&6 18670if test "${ac_cv_func_chown+set}" = set; then 18671 echo $ECHO_N "(cached) $ECHO_C" >&6 18672else 18673 cat >conftest.$ac_ext <<_ACEOF 18674#line $LINENO "configure" 18675#include "confdefs.h" 18676/* System header to define __stub macros and hopefully few prototypes, 18677 which can conflict with char chown (); below. */ 18678#include <assert.h> 18679/* Override any gcc2 internal prototype to avoid an error. */ 18680#ifdef __cplusplus 18681extern "C" 18682#endif 18683/* We use char because int might match the return type of a gcc2 18684 builtin and then its argument prototype would still apply. */ 18685char chown (); 18686char (*f) (); 18687 18688#ifdef F77_DUMMY_MAIN 18689# ifdef __cplusplus 18690 extern "C" 18691# endif 18692 int F77_DUMMY_MAIN() { return 1; } 18693#endif 18694int 18695main () 18696{ 18697/* The GNU C library defines this for functions which it implements 18698 to always fail with ENOSYS. Some functions are actually named 18699 something starting with __ and the normal name is an alias. */ 18700#if defined (__stub_chown) || defined (__stub___chown) 18701choke me 18702#else 18703f = chown; 18704#endif 18705 18706 ; 18707 return 0; 18708} 18709_ACEOF 18710rm -f conftest.$ac_objext conftest$ac_exeext 18711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18712 (eval $ac_link) 2>&5 18713 ac_status=$? 18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18715 (exit $ac_status); } && 18716 { ac_try='test -s conftest$ac_exeext' 18717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18718 (eval $ac_try) 2>&5 18719 ac_status=$? 18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18721 (exit $ac_status); }; }; then 18722 ac_cv_func_chown=yes 18723else 18724 echo "$as_me: failed program was:" >&5 18725cat conftest.$ac_ext >&5 18726ac_cv_func_chown=no 18727fi 18728rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18729fi 18730echo "$as_me:$LINENO: result: $ac_cv_func_chown" >&5 18731echo "${ECHO_T}$ac_cv_func_chown" >&6 18732if test $ac_cv_func_chown = yes; then 18733 18734cat >>confdefs.h <<_ACEOF 18735#define HAVE_CHOWN 1 18736_ACEOF 18737 18738else 18739 LIBOBJS="$LIBOBJS chown.$ac_objext" 18740fi 18741echo "$as_me:$LINENO: checking for copyhostent" >&5 18742echo $ECHO_N "checking for copyhostent... $ECHO_C" >&6 18743if test "${ac_cv_func_copyhostent+set}" = set; then 18744 echo $ECHO_N "(cached) $ECHO_C" >&6 18745else 18746 cat >conftest.$ac_ext <<_ACEOF 18747#line $LINENO "configure" 18748#include "confdefs.h" 18749/* System header to define __stub macros and hopefully few prototypes, 18750 which can conflict with char copyhostent (); below. */ 18751#include <assert.h> 18752/* Override any gcc2 internal prototype to avoid an error. */ 18753#ifdef __cplusplus 18754extern "C" 18755#endif 18756/* We use char because int might match the return type of a gcc2 18757 builtin and then its argument prototype would still apply. */ 18758char copyhostent (); 18759char (*f) (); 18760 18761#ifdef F77_DUMMY_MAIN 18762# ifdef __cplusplus 18763 extern "C" 18764# endif 18765 int F77_DUMMY_MAIN() { return 1; } 18766#endif 18767int 18768main () 18769{ 18770/* The GNU C library defines this for functions which it implements 18771 to always fail with ENOSYS. Some functions are actually named 18772 something starting with __ and the normal name is an alias. */ 18773#if defined (__stub_copyhostent) || defined (__stub___copyhostent) 18774choke me 18775#else 18776f = copyhostent; 18777#endif 18778 18779 ; 18780 return 0; 18781} 18782_ACEOF 18783rm -f conftest.$ac_objext conftest$ac_exeext 18784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18785 (eval $ac_link) 2>&5 18786 ac_status=$? 18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18788 (exit $ac_status); } && 18789 { ac_try='test -s conftest$ac_exeext' 18790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18791 (eval $ac_try) 2>&5 18792 ac_status=$? 18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18794 (exit $ac_status); }; }; then 18795 ac_cv_func_copyhostent=yes 18796else 18797 echo "$as_me: failed program was:" >&5 18798cat conftest.$ac_ext >&5 18799ac_cv_func_copyhostent=no 18800fi 18801rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18802fi 18803echo "$as_me:$LINENO: result: $ac_cv_func_copyhostent" >&5 18804echo "${ECHO_T}$ac_cv_func_copyhostent" >&6 18805if test $ac_cv_func_copyhostent = yes; then 18806 18807cat >>confdefs.h <<_ACEOF 18808#define HAVE_COPYHOSTENT 1 18809_ACEOF 18810 18811else 18812 LIBOBJS="$LIBOBJS copyhostent.$ac_objext" 18813fi 18814echo "$as_me:$LINENO: checking for daemon" >&5 18815echo $ECHO_N "checking for daemon... $ECHO_C" >&6 18816if test "${ac_cv_func_daemon+set}" = set; then 18817 echo $ECHO_N "(cached) $ECHO_C" >&6 18818else 18819 cat >conftest.$ac_ext <<_ACEOF 18820#line $LINENO "configure" 18821#include "confdefs.h" 18822/* System header to define __stub macros and hopefully few prototypes, 18823 which can conflict with char daemon (); below. */ 18824#include <assert.h> 18825/* Override any gcc2 internal prototype to avoid an error. */ 18826#ifdef __cplusplus 18827extern "C" 18828#endif 18829/* We use char because int might match the return type of a gcc2 18830 builtin and then its argument prototype would still apply. */ 18831char daemon (); 18832char (*f) (); 18833 18834#ifdef F77_DUMMY_MAIN 18835# ifdef __cplusplus 18836 extern "C" 18837# endif 18838 int F77_DUMMY_MAIN() { return 1; } 18839#endif 18840int 18841main () 18842{ 18843/* The GNU C library defines this for functions which it implements 18844 to always fail with ENOSYS. Some functions are actually named 18845 something starting with __ and the normal name is an alias. */ 18846#if defined (__stub_daemon) || defined (__stub___daemon) 18847choke me 18848#else 18849f = daemon; 18850#endif 18851 18852 ; 18853 return 0; 18854} 18855_ACEOF 18856rm -f conftest.$ac_objext conftest$ac_exeext 18857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18858 (eval $ac_link) 2>&5 18859 ac_status=$? 18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18861 (exit $ac_status); } && 18862 { ac_try='test -s conftest$ac_exeext' 18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18864 (eval $ac_try) 2>&5 18865 ac_status=$? 18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18867 (exit $ac_status); }; }; then 18868 ac_cv_func_daemon=yes 18869else 18870 echo "$as_me: failed program was:" >&5 18871cat conftest.$ac_ext >&5 18872ac_cv_func_daemon=no 18873fi 18874rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18875fi 18876echo "$as_me:$LINENO: result: $ac_cv_func_daemon" >&5 18877echo "${ECHO_T}$ac_cv_func_daemon" >&6 18878if test $ac_cv_func_daemon = yes; then 18879 18880cat >>confdefs.h <<_ACEOF 18881#define HAVE_DAEMON 1 18882_ACEOF 18883 18884else 18885 LIBOBJS="$LIBOBJS daemon.$ac_objext" 18886fi 18887echo "$as_me:$LINENO: checking for ecalloc" >&5 18888echo $ECHO_N "checking for ecalloc... $ECHO_C" >&6 18889if test "${ac_cv_func_ecalloc+set}" = set; then 18890 echo $ECHO_N "(cached) $ECHO_C" >&6 18891else 18892 cat >conftest.$ac_ext <<_ACEOF 18893#line $LINENO "configure" 18894#include "confdefs.h" 18895/* System header to define __stub macros and hopefully few prototypes, 18896 which can conflict with char ecalloc (); below. */ 18897#include <assert.h> 18898/* Override any gcc2 internal prototype to avoid an error. */ 18899#ifdef __cplusplus 18900extern "C" 18901#endif 18902/* We use char because int might match the return type of a gcc2 18903 builtin and then its argument prototype would still apply. */ 18904char ecalloc (); 18905char (*f) (); 18906 18907#ifdef F77_DUMMY_MAIN 18908# ifdef __cplusplus 18909 extern "C" 18910# endif 18911 int F77_DUMMY_MAIN() { return 1; } 18912#endif 18913int 18914main () 18915{ 18916/* The GNU C library defines this for functions which it implements 18917 to always fail with ENOSYS. Some functions are actually named 18918 something starting with __ and the normal name is an alias. */ 18919#if defined (__stub_ecalloc) || defined (__stub___ecalloc) 18920choke me 18921#else 18922f = ecalloc; 18923#endif 18924 18925 ; 18926 return 0; 18927} 18928_ACEOF 18929rm -f conftest.$ac_objext conftest$ac_exeext 18930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18931 (eval $ac_link) 2>&5 18932 ac_status=$? 18933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18934 (exit $ac_status); } && 18935 { ac_try='test -s conftest$ac_exeext' 18936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18937 (eval $ac_try) 2>&5 18938 ac_status=$? 18939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18940 (exit $ac_status); }; }; then 18941 ac_cv_func_ecalloc=yes 18942else 18943 echo "$as_me: failed program was:" >&5 18944cat conftest.$ac_ext >&5 18945ac_cv_func_ecalloc=no 18946fi 18947rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 18948fi 18949echo "$as_me:$LINENO: result: $ac_cv_func_ecalloc" >&5 18950echo "${ECHO_T}$ac_cv_func_ecalloc" >&6 18951if test $ac_cv_func_ecalloc = yes; then 18952 18953cat >>confdefs.h <<_ACEOF 18954#define HAVE_ECALLOC 1 18955_ACEOF 18956 18957else 18958 LIBOBJS="$LIBOBJS ecalloc.$ac_objext" 18959fi 18960echo "$as_me:$LINENO: checking for emalloc" >&5 18961echo $ECHO_N "checking for emalloc... $ECHO_C" >&6 18962if test "${ac_cv_func_emalloc+set}" = set; then 18963 echo $ECHO_N "(cached) $ECHO_C" >&6 18964else 18965 cat >conftest.$ac_ext <<_ACEOF 18966#line $LINENO "configure" 18967#include "confdefs.h" 18968/* System header to define __stub macros and hopefully few prototypes, 18969 which can conflict with char emalloc (); below. */ 18970#include <assert.h> 18971/* Override any gcc2 internal prototype to avoid an error. */ 18972#ifdef __cplusplus 18973extern "C" 18974#endif 18975/* We use char because int might match the return type of a gcc2 18976 builtin and then its argument prototype would still apply. */ 18977char emalloc (); 18978char (*f) (); 18979 18980#ifdef F77_DUMMY_MAIN 18981# ifdef __cplusplus 18982 extern "C" 18983# endif 18984 int F77_DUMMY_MAIN() { return 1; } 18985#endif 18986int 18987main () 18988{ 18989/* The GNU C library defines this for functions which it implements 18990 to always fail with ENOSYS. Some functions are actually named 18991 something starting with __ and the normal name is an alias. */ 18992#if defined (__stub_emalloc) || defined (__stub___emalloc) 18993choke me 18994#else 18995f = emalloc; 18996#endif 18997 18998 ; 18999 return 0; 19000} 19001_ACEOF 19002rm -f conftest.$ac_objext conftest$ac_exeext 19003if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19004 (eval $ac_link) 2>&5 19005 ac_status=$? 19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19007 (exit $ac_status); } && 19008 { ac_try='test -s conftest$ac_exeext' 19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19010 (eval $ac_try) 2>&5 19011 ac_status=$? 19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19013 (exit $ac_status); }; }; then 19014 ac_cv_func_emalloc=yes 19015else 19016 echo "$as_me: failed program was:" >&5 19017cat conftest.$ac_ext >&5 19018ac_cv_func_emalloc=no 19019fi 19020rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19021fi 19022echo "$as_me:$LINENO: result: $ac_cv_func_emalloc" >&5 19023echo "${ECHO_T}$ac_cv_func_emalloc" >&6 19024if test $ac_cv_func_emalloc = yes; then 19025 19026cat >>confdefs.h <<_ACEOF 19027#define HAVE_EMALLOC 1 19028_ACEOF 19029 19030else 19031 LIBOBJS="$LIBOBJS emalloc.$ac_objext" 19032fi 19033echo "$as_me:$LINENO: checking for erealloc" >&5 19034echo $ECHO_N "checking for erealloc... $ECHO_C" >&6 19035if test "${ac_cv_func_erealloc+set}" = set; then 19036 echo $ECHO_N "(cached) $ECHO_C" >&6 19037else 19038 cat >conftest.$ac_ext <<_ACEOF 19039#line $LINENO "configure" 19040#include "confdefs.h" 19041/* System header to define __stub macros and hopefully few prototypes, 19042 which can conflict with char erealloc (); below. */ 19043#include <assert.h> 19044/* Override any gcc2 internal prototype to avoid an error. */ 19045#ifdef __cplusplus 19046extern "C" 19047#endif 19048/* We use char because int might match the return type of a gcc2 19049 builtin and then its argument prototype would still apply. */ 19050char erealloc (); 19051char (*f) (); 19052 19053#ifdef F77_DUMMY_MAIN 19054# ifdef __cplusplus 19055 extern "C" 19056# endif 19057 int F77_DUMMY_MAIN() { return 1; } 19058#endif 19059int 19060main () 19061{ 19062/* The GNU C library defines this for functions which it implements 19063 to always fail with ENOSYS. Some functions are actually named 19064 something starting with __ and the normal name is an alias. */ 19065#if defined (__stub_erealloc) || defined (__stub___erealloc) 19066choke me 19067#else 19068f = erealloc; 19069#endif 19070 19071 ; 19072 return 0; 19073} 19074_ACEOF 19075rm -f conftest.$ac_objext conftest$ac_exeext 19076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19077 (eval $ac_link) 2>&5 19078 ac_status=$? 19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19080 (exit $ac_status); } && 19081 { ac_try='test -s conftest$ac_exeext' 19082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19083 (eval $ac_try) 2>&5 19084 ac_status=$? 19085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19086 (exit $ac_status); }; }; then 19087 ac_cv_func_erealloc=yes 19088else 19089 echo "$as_me: failed program was:" >&5 19090cat conftest.$ac_ext >&5 19091ac_cv_func_erealloc=no 19092fi 19093rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19094fi 19095echo "$as_me:$LINENO: result: $ac_cv_func_erealloc" >&5 19096echo "${ECHO_T}$ac_cv_func_erealloc" >&6 19097if test $ac_cv_func_erealloc = yes; then 19098 19099cat >>confdefs.h <<_ACEOF 19100#define HAVE_EREALLOC 1 19101_ACEOF 19102 19103else 19104 LIBOBJS="$LIBOBJS erealloc.$ac_objext" 19105fi 19106echo "$as_me:$LINENO: checking for estrdup" >&5 19107echo $ECHO_N "checking for estrdup... $ECHO_C" >&6 19108if test "${ac_cv_func_estrdup+set}" = set; then 19109 echo $ECHO_N "(cached) $ECHO_C" >&6 19110else 19111 cat >conftest.$ac_ext <<_ACEOF 19112#line $LINENO "configure" 19113#include "confdefs.h" 19114/* System header to define __stub macros and hopefully few prototypes, 19115 which can conflict with char estrdup (); below. */ 19116#include <assert.h> 19117/* Override any gcc2 internal prototype to avoid an error. */ 19118#ifdef __cplusplus 19119extern "C" 19120#endif 19121/* We use char because int might match the return type of a gcc2 19122 builtin and then its argument prototype would still apply. */ 19123char estrdup (); 19124char (*f) (); 19125 19126#ifdef F77_DUMMY_MAIN 19127# ifdef __cplusplus 19128 extern "C" 19129# endif 19130 int F77_DUMMY_MAIN() { return 1; } 19131#endif 19132int 19133main () 19134{ 19135/* The GNU C library defines this for functions which it implements 19136 to always fail with ENOSYS. Some functions are actually named 19137 something starting with __ and the normal name is an alias. */ 19138#if defined (__stub_estrdup) || defined (__stub___estrdup) 19139choke me 19140#else 19141f = estrdup; 19142#endif 19143 19144 ; 19145 return 0; 19146} 19147_ACEOF 19148rm -f conftest.$ac_objext conftest$ac_exeext 19149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19150 (eval $ac_link) 2>&5 19151 ac_status=$? 19152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19153 (exit $ac_status); } && 19154 { ac_try='test -s conftest$ac_exeext' 19155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19156 (eval $ac_try) 2>&5 19157 ac_status=$? 19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19159 (exit $ac_status); }; }; then 19160 ac_cv_func_estrdup=yes 19161else 19162 echo "$as_me: failed program was:" >&5 19163cat conftest.$ac_ext >&5 19164ac_cv_func_estrdup=no 19165fi 19166rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19167fi 19168echo "$as_me:$LINENO: result: $ac_cv_func_estrdup" >&5 19169echo "${ECHO_T}$ac_cv_func_estrdup" >&6 19170if test $ac_cv_func_estrdup = yes; then 19171 19172cat >>confdefs.h <<_ACEOF 19173#define HAVE_ESTRDUP 1 19174_ACEOF 19175 19176else 19177 LIBOBJS="$LIBOBJS estrdup.$ac_objext" 19178fi 19179echo "$as_me:$LINENO: checking for err" >&5 19180echo $ECHO_N "checking for err... $ECHO_C" >&6 19181if test "${ac_cv_func_err+set}" = set; then 19182 echo $ECHO_N "(cached) $ECHO_C" >&6 19183else 19184 cat >conftest.$ac_ext <<_ACEOF 19185#line $LINENO "configure" 19186#include "confdefs.h" 19187/* System header to define __stub macros and hopefully few prototypes, 19188 which can conflict with char err (); below. */ 19189#include <assert.h> 19190/* Override any gcc2 internal prototype to avoid an error. */ 19191#ifdef __cplusplus 19192extern "C" 19193#endif 19194/* We use char because int might match the return type of a gcc2 19195 builtin and then its argument prototype would still apply. */ 19196char err (); 19197char (*f) (); 19198 19199#ifdef F77_DUMMY_MAIN 19200# ifdef __cplusplus 19201 extern "C" 19202# endif 19203 int F77_DUMMY_MAIN() { return 1; } 19204#endif 19205int 19206main () 19207{ 19208/* The GNU C library defines this for functions which it implements 19209 to always fail with ENOSYS. Some functions are actually named 19210 something starting with __ and the normal name is an alias. */ 19211#if defined (__stub_err) || defined (__stub___err) 19212choke me 19213#else 19214f = err; 19215#endif 19216 19217 ; 19218 return 0; 19219} 19220_ACEOF 19221rm -f conftest.$ac_objext conftest$ac_exeext 19222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19223 (eval $ac_link) 2>&5 19224 ac_status=$? 19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19226 (exit $ac_status); } && 19227 { ac_try='test -s conftest$ac_exeext' 19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19229 (eval $ac_try) 2>&5 19230 ac_status=$? 19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19232 (exit $ac_status); }; }; then 19233 ac_cv_func_err=yes 19234else 19235 echo "$as_me: failed program was:" >&5 19236cat conftest.$ac_ext >&5 19237ac_cv_func_err=no 19238fi 19239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19240fi 19241echo "$as_me:$LINENO: result: $ac_cv_func_err" >&5 19242echo "${ECHO_T}$ac_cv_func_err" >&6 19243if test $ac_cv_func_err = yes; then 19244 19245cat >>confdefs.h <<_ACEOF 19246#define HAVE_ERR 1 19247_ACEOF 19248 19249else 19250 LIBOBJS="$LIBOBJS err.$ac_objext" 19251fi 19252echo "$as_me:$LINENO: checking for errx" >&5 19253echo $ECHO_N "checking for errx... $ECHO_C" >&6 19254if test "${ac_cv_func_errx+set}" = set; then 19255 echo $ECHO_N "(cached) $ECHO_C" >&6 19256else 19257 cat >conftest.$ac_ext <<_ACEOF 19258#line $LINENO "configure" 19259#include "confdefs.h" 19260/* System header to define __stub macros and hopefully few prototypes, 19261 which can conflict with char errx (); below. */ 19262#include <assert.h> 19263/* Override any gcc2 internal prototype to avoid an error. */ 19264#ifdef __cplusplus 19265extern "C" 19266#endif 19267/* We use char because int might match the return type of a gcc2 19268 builtin and then its argument prototype would still apply. */ 19269char errx (); 19270char (*f) (); 19271 19272#ifdef F77_DUMMY_MAIN 19273# ifdef __cplusplus 19274 extern "C" 19275# endif 19276 int F77_DUMMY_MAIN() { return 1; } 19277#endif 19278int 19279main () 19280{ 19281/* The GNU C library defines this for functions which it implements 19282 to always fail with ENOSYS. Some functions are actually named 19283 something starting with __ and the normal name is an alias. */ 19284#if defined (__stub_errx) || defined (__stub___errx) 19285choke me 19286#else 19287f = errx; 19288#endif 19289 19290 ; 19291 return 0; 19292} 19293_ACEOF 19294rm -f conftest.$ac_objext conftest$ac_exeext 19295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19296 (eval $ac_link) 2>&5 19297 ac_status=$? 19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19299 (exit $ac_status); } && 19300 { ac_try='test -s conftest$ac_exeext' 19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19302 (eval $ac_try) 2>&5 19303 ac_status=$? 19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19305 (exit $ac_status); }; }; then 19306 ac_cv_func_errx=yes 19307else 19308 echo "$as_me: failed program was:" >&5 19309cat conftest.$ac_ext >&5 19310ac_cv_func_errx=no 19311fi 19312rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19313fi 19314echo "$as_me:$LINENO: result: $ac_cv_func_errx" >&5 19315echo "${ECHO_T}$ac_cv_func_errx" >&6 19316if test $ac_cv_func_errx = yes; then 19317 19318cat >>confdefs.h <<_ACEOF 19319#define HAVE_ERRX 1 19320_ACEOF 19321 19322else 19323 LIBOBJS="$LIBOBJS errx.$ac_objext" 19324fi 19325echo "$as_me:$LINENO: checking for fchown" >&5 19326echo $ECHO_N "checking for fchown... $ECHO_C" >&6 19327if test "${ac_cv_func_fchown+set}" = set; then 19328 echo $ECHO_N "(cached) $ECHO_C" >&6 19329else 19330 cat >conftest.$ac_ext <<_ACEOF 19331#line $LINENO "configure" 19332#include "confdefs.h" 19333/* System header to define __stub macros and hopefully few prototypes, 19334 which can conflict with char fchown (); below. */ 19335#include <assert.h> 19336/* Override any gcc2 internal prototype to avoid an error. */ 19337#ifdef __cplusplus 19338extern "C" 19339#endif 19340/* We use char because int might match the return type of a gcc2 19341 builtin and then its argument prototype would still apply. */ 19342char fchown (); 19343char (*f) (); 19344 19345#ifdef F77_DUMMY_MAIN 19346# ifdef __cplusplus 19347 extern "C" 19348# endif 19349 int F77_DUMMY_MAIN() { return 1; } 19350#endif 19351int 19352main () 19353{ 19354/* The GNU C library defines this for functions which it implements 19355 to always fail with ENOSYS. Some functions are actually named 19356 something starting with __ and the normal name is an alias. */ 19357#if defined (__stub_fchown) || defined (__stub___fchown) 19358choke me 19359#else 19360f = fchown; 19361#endif 19362 19363 ; 19364 return 0; 19365} 19366_ACEOF 19367rm -f conftest.$ac_objext conftest$ac_exeext 19368if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19369 (eval $ac_link) 2>&5 19370 ac_status=$? 19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19372 (exit $ac_status); } && 19373 { ac_try='test -s conftest$ac_exeext' 19374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19375 (eval $ac_try) 2>&5 19376 ac_status=$? 19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19378 (exit $ac_status); }; }; then 19379 ac_cv_func_fchown=yes 19380else 19381 echo "$as_me: failed program was:" >&5 19382cat conftest.$ac_ext >&5 19383ac_cv_func_fchown=no 19384fi 19385rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19386fi 19387echo "$as_me:$LINENO: result: $ac_cv_func_fchown" >&5 19388echo "${ECHO_T}$ac_cv_func_fchown" >&6 19389if test $ac_cv_func_fchown = yes; then 19390 19391cat >>confdefs.h <<_ACEOF 19392#define HAVE_FCHOWN 1 19393_ACEOF 19394 19395else 19396 LIBOBJS="$LIBOBJS fchown.$ac_objext" 19397fi 19398echo "$as_me:$LINENO: checking for flock" >&5 19399echo $ECHO_N "checking for flock... $ECHO_C" >&6 19400if test "${ac_cv_func_flock+set}" = set; then 19401 echo $ECHO_N "(cached) $ECHO_C" >&6 19402else 19403 cat >conftest.$ac_ext <<_ACEOF 19404#line $LINENO "configure" 19405#include "confdefs.h" 19406/* System header to define __stub macros and hopefully few prototypes, 19407 which can conflict with char flock (); below. */ 19408#include <assert.h> 19409/* Override any gcc2 internal prototype to avoid an error. */ 19410#ifdef __cplusplus 19411extern "C" 19412#endif 19413/* We use char because int might match the return type of a gcc2 19414 builtin and then its argument prototype would still apply. */ 19415char flock (); 19416char (*f) (); 19417 19418#ifdef F77_DUMMY_MAIN 19419# ifdef __cplusplus 19420 extern "C" 19421# endif 19422 int F77_DUMMY_MAIN() { return 1; } 19423#endif 19424int 19425main () 19426{ 19427/* The GNU C library defines this for functions which it implements 19428 to always fail with ENOSYS. Some functions are actually named 19429 something starting with __ and the normal name is an alias. */ 19430#if defined (__stub_flock) || defined (__stub___flock) 19431choke me 19432#else 19433f = flock; 19434#endif 19435 19436 ; 19437 return 0; 19438} 19439_ACEOF 19440rm -f conftest.$ac_objext conftest$ac_exeext 19441if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19442 (eval $ac_link) 2>&5 19443 ac_status=$? 19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19445 (exit $ac_status); } && 19446 { ac_try='test -s conftest$ac_exeext' 19447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19448 (eval $ac_try) 2>&5 19449 ac_status=$? 19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19451 (exit $ac_status); }; }; then 19452 ac_cv_func_flock=yes 19453else 19454 echo "$as_me: failed program was:" >&5 19455cat conftest.$ac_ext >&5 19456ac_cv_func_flock=no 19457fi 19458rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19459fi 19460echo "$as_me:$LINENO: result: $ac_cv_func_flock" >&5 19461echo "${ECHO_T}$ac_cv_func_flock" >&6 19462if test $ac_cv_func_flock = yes; then 19463 19464cat >>confdefs.h <<_ACEOF 19465#define HAVE_FLOCK 1 19466_ACEOF 19467 19468else 19469 LIBOBJS="$LIBOBJS flock.$ac_objext" 19470fi 19471echo "$as_me:$LINENO: checking for fnmatch" >&5 19472echo $ECHO_N "checking for fnmatch... $ECHO_C" >&6 19473if test "${ac_cv_func_fnmatch+set}" = set; then 19474 echo $ECHO_N "(cached) $ECHO_C" >&6 19475else 19476 cat >conftest.$ac_ext <<_ACEOF 19477#line $LINENO "configure" 19478#include "confdefs.h" 19479/* System header to define __stub macros and hopefully few prototypes, 19480 which can conflict with char fnmatch (); below. */ 19481#include <assert.h> 19482/* Override any gcc2 internal prototype to avoid an error. */ 19483#ifdef __cplusplus 19484extern "C" 19485#endif 19486/* We use char because int might match the return type of a gcc2 19487 builtin and then its argument prototype would still apply. */ 19488char fnmatch (); 19489char (*f) (); 19490 19491#ifdef F77_DUMMY_MAIN 19492# ifdef __cplusplus 19493 extern "C" 19494# endif 19495 int F77_DUMMY_MAIN() { return 1; } 19496#endif 19497int 19498main () 19499{ 19500/* The GNU C library defines this for functions which it implements 19501 to always fail with ENOSYS. Some functions are actually named 19502 something starting with __ and the normal name is an alias. */ 19503#if defined (__stub_fnmatch) || defined (__stub___fnmatch) 19504choke me 19505#else 19506f = fnmatch; 19507#endif 19508 19509 ; 19510 return 0; 19511} 19512_ACEOF 19513rm -f conftest.$ac_objext conftest$ac_exeext 19514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19515 (eval $ac_link) 2>&5 19516 ac_status=$? 19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19518 (exit $ac_status); } && 19519 { ac_try='test -s conftest$ac_exeext' 19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19521 (eval $ac_try) 2>&5 19522 ac_status=$? 19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19524 (exit $ac_status); }; }; then 19525 ac_cv_func_fnmatch=yes 19526else 19527 echo "$as_me: failed program was:" >&5 19528cat conftest.$ac_ext >&5 19529ac_cv_func_fnmatch=no 19530fi 19531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19532fi 19533echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch" >&5 19534echo "${ECHO_T}$ac_cv_func_fnmatch" >&6 19535if test $ac_cv_func_fnmatch = yes; then 19536 19537cat >>confdefs.h <<_ACEOF 19538#define HAVE_FNMATCH 1 19539_ACEOF 19540 19541else 19542 LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 19543fi 19544echo "$as_me:$LINENO: checking for freehostent" >&5 19545echo $ECHO_N "checking for freehostent... $ECHO_C" >&6 19546if test "${ac_cv_func_freehostent+set}" = set; then 19547 echo $ECHO_N "(cached) $ECHO_C" >&6 19548else 19549 cat >conftest.$ac_ext <<_ACEOF 19550#line $LINENO "configure" 19551#include "confdefs.h" 19552/* System header to define __stub macros and hopefully few prototypes, 19553 which can conflict with char freehostent (); below. */ 19554#include <assert.h> 19555/* Override any gcc2 internal prototype to avoid an error. */ 19556#ifdef __cplusplus 19557extern "C" 19558#endif 19559/* We use char because int might match the return type of a gcc2 19560 builtin and then its argument prototype would still apply. */ 19561char freehostent (); 19562char (*f) (); 19563 19564#ifdef F77_DUMMY_MAIN 19565# ifdef __cplusplus 19566 extern "C" 19567# endif 19568 int F77_DUMMY_MAIN() { return 1; } 19569#endif 19570int 19571main () 19572{ 19573/* The GNU C library defines this for functions which it implements 19574 to always fail with ENOSYS. Some functions are actually named 19575 something starting with __ and the normal name is an alias. */ 19576#if defined (__stub_freehostent) || defined (__stub___freehostent) 19577choke me 19578#else 19579f = freehostent; 19580#endif 19581 19582 ; 19583 return 0; 19584} 19585_ACEOF 19586rm -f conftest.$ac_objext conftest$ac_exeext 19587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19588 (eval $ac_link) 2>&5 19589 ac_status=$? 19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19591 (exit $ac_status); } && 19592 { ac_try='test -s conftest$ac_exeext' 19593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19594 (eval $ac_try) 2>&5 19595 ac_status=$? 19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19597 (exit $ac_status); }; }; then 19598 ac_cv_func_freehostent=yes 19599else 19600 echo "$as_me: failed program was:" >&5 19601cat conftest.$ac_ext >&5 19602ac_cv_func_freehostent=no 19603fi 19604rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19605fi 19606echo "$as_me:$LINENO: result: $ac_cv_func_freehostent" >&5 19607echo "${ECHO_T}$ac_cv_func_freehostent" >&6 19608if test $ac_cv_func_freehostent = yes; then 19609 19610cat >>confdefs.h <<_ACEOF 19611#define HAVE_FREEHOSTENT 1 19612_ACEOF 19613 19614else 19615 LIBOBJS="$LIBOBJS freehostent.$ac_objext" 19616fi 19617echo "$as_me:$LINENO: checking for getcwd" >&5 19618echo $ECHO_N "checking for getcwd... $ECHO_C" >&6 19619if test "${ac_cv_func_getcwd+set}" = set; then 19620 echo $ECHO_N "(cached) $ECHO_C" >&6 19621else 19622 cat >conftest.$ac_ext <<_ACEOF 19623#line $LINENO "configure" 19624#include "confdefs.h" 19625/* System header to define __stub macros and hopefully few prototypes, 19626 which can conflict with char getcwd (); below. */ 19627#include <assert.h> 19628/* Override any gcc2 internal prototype to avoid an error. */ 19629#ifdef __cplusplus 19630extern "C" 19631#endif 19632/* We use char because int might match the return type of a gcc2 19633 builtin and then its argument prototype would still apply. */ 19634char getcwd (); 19635char (*f) (); 19636 19637#ifdef F77_DUMMY_MAIN 19638# ifdef __cplusplus 19639 extern "C" 19640# endif 19641 int F77_DUMMY_MAIN() { return 1; } 19642#endif 19643int 19644main () 19645{ 19646/* The GNU C library defines this for functions which it implements 19647 to always fail with ENOSYS. Some functions are actually named 19648 something starting with __ and the normal name is an alias. */ 19649#if defined (__stub_getcwd) || defined (__stub___getcwd) 19650choke me 19651#else 19652f = getcwd; 19653#endif 19654 19655 ; 19656 return 0; 19657} 19658_ACEOF 19659rm -f conftest.$ac_objext conftest$ac_exeext 19660if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19661 (eval $ac_link) 2>&5 19662 ac_status=$? 19663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19664 (exit $ac_status); } && 19665 { ac_try='test -s conftest$ac_exeext' 19666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19667 (eval $ac_try) 2>&5 19668 ac_status=$? 19669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19670 (exit $ac_status); }; }; then 19671 ac_cv_func_getcwd=yes 19672else 19673 echo "$as_me: failed program was:" >&5 19674cat conftest.$ac_ext >&5 19675ac_cv_func_getcwd=no 19676fi 19677rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19678fi 19679echo "$as_me:$LINENO: result: $ac_cv_func_getcwd" >&5 19680echo "${ECHO_T}$ac_cv_func_getcwd" >&6 19681if test $ac_cv_func_getcwd = yes; then 19682 19683cat >>confdefs.h <<_ACEOF 19684#define HAVE_GETCWD 1 19685_ACEOF 19686 19687else 19688 LIBOBJS="$LIBOBJS getcwd.$ac_objext" 19689fi 19690echo "$as_me:$LINENO: checking for getdtablesize" >&5 19691echo $ECHO_N "checking for getdtablesize... $ECHO_C" >&6 19692if test "${ac_cv_func_getdtablesize+set}" = set; then 19693 echo $ECHO_N "(cached) $ECHO_C" >&6 19694else 19695 cat >conftest.$ac_ext <<_ACEOF 19696#line $LINENO "configure" 19697#include "confdefs.h" 19698/* System header to define __stub macros and hopefully few prototypes, 19699 which can conflict with char getdtablesize (); below. */ 19700#include <assert.h> 19701/* Override any gcc2 internal prototype to avoid an error. */ 19702#ifdef __cplusplus 19703extern "C" 19704#endif 19705/* We use char because int might match the return type of a gcc2 19706 builtin and then its argument prototype would still apply. */ 19707char getdtablesize (); 19708char (*f) (); 19709 19710#ifdef F77_DUMMY_MAIN 19711# ifdef __cplusplus 19712 extern "C" 19713# endif 19714 int F77_DUMMY_MAIN() { return 1; } 19715#endif 19716int 19717main () 19718{ 19719/* The GNU C library defines this for functions which it implements 19720 to always fail with ENOSYS. Some functions are actually named 19721 something starting with __ and the normal name is an alias. */ 19722#if defined (__stub_getdtablesize) || defined (__stub___getdtablesize) 19723choke me 19724#else 19725f = getdtablesize; 19726#endif 19727 19728 ; 19729 return 0; 19730} 19731_ACEOF 19732rm -f conftest.$ac_objext conftest$ac_exeext 19733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19734 (eval $ac_link) 2>&5 19735 ac_status=$? 19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19737 (exit $ac_status); } && 19738 { ac_try='test -s conftest$ac_exeext' 19739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19740 (eval $ac_try) 2>&5 19741 ac_status=$? 19742 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19743 (exit $ac_status); }; }; then 19744 ac_cv_func_getdtablesize=yes 19745else 19746 echo "$as_me: failed program was:" >&5 19747cat conftest.$ac_ext >&5 19748ac_cv_func_getdtablesize=no 19749fi 19750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19751fi 19752echo "$as_me:$LINENO: result: $ac_cv_func_getdtablesize" >&5 19753echo "${ECHO_T}$ac_cv_func_getdtablesize" >&6 19754if test $ac_cv_func_getdtablesize = yes; then 19755 19756cat >>confdefs.h <<_ACEOF 19757#define HAVE_GETDTABLESIZE 1 19758_ACEOF 19759 19760else 19761 LIBOBJS="$LIBOBJS getdtablesize.$ac_objext" 19762fi 19763echo "$as_me:$LINENO: checking for getegid" >&5 19764echo $ECHO_N "checking for getegid... $ECHO_C" >&6 19765if test "${ac_cv_func_getegid+set}" = set; then 19766 echo $ECHO_N "(cached) $ECHO_C" >&6 19767else 19768 cat >conftest.$ac_ext <<_ACEOF 19769#line $LINENO "configure" 19770#include "confdefs.h" 19771/* System header to define __stub macros and hopefully few prototypes, 19772 which can conflict with char getegid (); below. */ 19773#include <assert.h> 19774/* Override any gcc2 internal prototype to avoid an error. */ 19775#ifdef __cplusplus 19776extern "C" 19777#endif 19778/* We use char because int might match the return type of a gcc2 19779 builtin and then its argument prototype would still apply. */ 19780char getegid (); 19781char (*f) (); 19782 19783#ifdef F77_DUMMY_MAIN 19784# ifdef __cplusplus 19785 extern "C" 19786# endif 19787 int F77_DUMMY_MAIN() { return 1; } 19788#endif 19789int 19790main () 19791{ 19792/* The GNU C library defines this for functions which it implements 19793 to always fail with ENOSYS. Some functions are actually named 19794 something starting with __ and the normal name is an alias. */ 19795#if defined (__stub_getegid) || defined (__stub___getegid) 19796choke me 19797#else 19798f = getegid; 19799#endif 19800 19801 ; 19802 return 0; 19803} 19804_ACEOF 19805rm -f conftest.$ac_objext conftest$ac_exeext 19806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19807 (eval $ac_link) 2>&5 19808 ac_status=$? 19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19810 (exit $ac_status); } && 19811 { ac_try='test -s conftest$ac_exeext' 19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19813 (eval $ac_try) 2>&5 19814 ac_status=$? 19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19816 (exit $ac_status); }; }; then 19817 ac_cv_func_getegid=yes 19818else 19819 echo "$as_me: failed program was:" >&5 19820cat conftest.$ac_ext >&5 19821ac_cv_func_getegid=no 19822fi 19823rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19824fi 19825echo "$as_me:$LINENO: result: $ac_cv_func_getegid" >&5 19826echo "${ECHO_T}$ac_cv_func_getegid" >&6 19827if test $ac_cv_func_getegid = yes; then 19828 19829cat >>confdefs.h <<_ACEOF 19830#define HAVE_GETEGID 1 19831_ACEOF 19832 19833else 19834 LIBOBJS="$LIBOBJS getegid.$ac_objext" 19835fi 19836echo "$as_me:$LINENO: checking for geteuid" >&5 19837echo $ECHO_N "checking for geteuid... $ECHO_C" >&6 19838if test "${ac_cv_func_geteuid+set}" = set; then 19839 echo $ECHO_N "(cached) $ECHO_C" >&6 19840else 19841 cat >conftest.$ac_ext <<_ACEOF 19842#line $LINENO "configure" 19843#include "confdefs.h" 19844/* System header to define __stub macros and hopefully few prototypes, 19845 which can conflict with char geteuid (); below. */ 19846#include <assert.h> 19847/* Override any gcc2 internal prototype to avoid an error. */ 19848#ifdef __cplusplus 19849extern "C" 19850#endif 19851/* We use char because int might match the return type of a gcc2 19852 builtin and then its argument prototype would still apply. */ 19853char geteuid (); 19854char (*f) (); 19855 19856#ifdef F77_DUMMY_MAIN 19857# ifdef __cplusplus 19858 extern "C" 19859# endif 19860 int F77_DUMMY_MAIN() { return 1; } 19861#endif 19862int 19863main () 19864{ 19865/* The GNU C library defines this for functions which it implements 19866 to always fail with ENOSYS. Some functions are actually named 19867 something starting with __ and the normal name is an alias. */ 19868#if defined (__stub_geteuid) || defined (__stub___geteuid) 19869choke me 19870#else 19871f = geteuid; 19872#endif 19873 19874 ; 19875 return 0; 19876} 19877_ACEOF 19878rm -f conftest.$ac_objext conftest$ac_exeext 19879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19880 (eval $ac_link) 2>&5 19881 ac_status=$? 19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19883 (exit $ac_status); } && 19884 { ac_try='test -s conftest$ac_exeext' 19885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19886 (eval $ac_try) 2>&5 19887 ac_status=$? 19888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19889 (exit $ac_status); }; }; then 19890 ac_cv_func_geteuid=yes 19891else 19892 echo "$as_me: failed program was:" >&5 19893cat conftest.$ac_ext >&5 19894ac_cv_func_geteuid=no 19895fi 19896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19897fi 19898echo "$as_me:$LINENO: result: $ac_cv_func_geteuid" >&5 19899echo "${ECHO_T}$ac_cv_func_geteuid" >&6 19900if test $ac_cv_func_geteuid = yes; then 19901 19902cat >>confdefs.h <<_ACEOF 19903#define HAVE_GETEUID 1 19904_ACEOF 19905 19906else 19907 LIBOBJS="$LIBOBJS geteuid.$ac_objext" 19908fi 19909echo "$as_me:$LINENO: checking for getgid" >&5 19910echo $ECHO_N "checking for getgid... $ECHO_C" >&6 19911if test "${ac_cv_func_getgid+set}" = set; then 19912 echo $ECHO_N "(cached) $ECHO_C" >&6 19913else 19914 cat >conftest.$ac_ext <<_ACEOF 19915#line $LINENO "configure" 19916#include "confdefs.h" 19917/* System header to define __stub macros and hopefully few prototypes, 19918 which can conflict with char getgid (); below. */ 19919#include <assert.h> 19920/* Override any gcc2 internal prototype to avoid an error. */ 19921#ifdef __cplusplus 19922extern "C" 19923#endif 19924/* We use char because int might match the return type of a gcc2 19925 builtin and then its argument prototype would still apply. */ 19926char getgid (); 19927char (*f) (); 19928 19929#ifdef F77_DUMMY_MAIN 19930# ifdef __cplusplus 19931 extern "C" 19932# endif 19933 int F77_DUMMY_MAIN() { return 1; } 19934#endif 19935int 19936main () 19937{ 19938/* The GNU C library defines this for functions which it implements 19939 to always fail with ENOSYS. Some functions are actually named 19940 something starting with __ and the normal name is an alias. */ 19941#if defined (__stub_getgid) || defined (__stub___getgid) 19942choke me 19943#else 19944f = getgid; 19945#endif 19946 19947 ; 19948 return 0; 19949} 19950_ACEOF 19951rm -f conftest.$ac_objext conftest$ac_exeext 19952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19953 (eval $ac_link) 2>&5 19954 ac_status=$? 19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19956 (exit $ac_status); } && 19957 { ac_try='test -s conftest$ac_exeext' 19958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19959 (eval $ac_try) 2>&5 19960 ac_status=$? 19961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19962 (exit $ac_status); }; }; then 19963 ac_cv_func_getgid=yes 19964else 19965 echo "$as_me: failed program was:" >&5 19966cat conftest.$ac_ext >&5 19967ac_cv_func_getgid=no 19968fi 19969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 19970fi 19971echo "$as_me:$LINENO: result: $ac_cv_func_getgid" >&5 19972echo "${ECHO_T}$ac_cv_func_getgid" >&6 19973if test $ac_cv_func_getgid = yes; then 19974 19975cat >>confdefs.h <<_ACEOF 19976#define HAVE_GETGID 1 19977_ACEOF 19978 19979else 19980 LIBOBJS="$LIBOBJS getgid.$ac_objext" 19981fi 19982echo "$as_me:$LINENO: checking for gethostname" >&5 19983echo $ECHO_N "checking for gethostname... $ECHO_C" >&6 19984if test "${ac_cv_func_gethostname+set}" = set; then 19985 echo $ECHO_N "(cached) $ECHO_C" >&6 19986else 19987 cat >conftest.$ac_ext <<_ACEOF 19988#line $LINENO "configure" 19989#include "confdefs.h" 19990/* System header to define __stub macros and hopefully few prototypes, 19991 which can conflict with char gethostname (); below. */ 19992#include <assert.h> 19993/* Override any gcc2 internal prototype to avoid an error. */ 19994#ifdef __cplusplus 19995extern "C" 19996#endif 19997/* We use char because int might match the return type of a gcc2 19998 builtin and then its argument prototype would still apply. */ 19999char gethostname (); 20000char (*f) (); 20001 20002#ifdef F77_DUMMY_MAIN 20003# ifdef __cplusplus 20004 extern "C" 20005# endif 20006 int F77_DUMMY_MAIN() { return 1; } 20007#endif 20008int 20009main () 20010{ 20011/* The GNU C library defines this for functions which it implements 20012 to always fail with ENOSYS. Some functions are actually named 20013 something starting with __ and the normal name is an alias. */ 20014#if defined (__stub_gethostname) || defined (__stub___gethostname) 20015choke me 20016#else 20017f = gethostname; 20018#endif 20019 20020 ; 20021 return 0; 20022} 20023_ACEOF 20024rm -f conftest.$ac_objext conftest$ac_exeext 20025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20026 (eval $ac_link) 2>&5 20027 ac_status=$? 20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20029 (exit $ac_status); } && 20030 { ac_try='test -s conftest$ac_exeext' 20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20032 (eval $ac_try) 2>&5 20033 ac_status=$? 20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20035 (exit $ac_status); }; }; then 20036 ac_cv_func_gethostname=yes 20037else 20038 echo "$as_me: failed program was:" >&5 20039cat conftest.$ac_ext >&5 20040ac_cv_func_gethostname=no 20041fi 20042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20043fi 20044echo "$as_me:$LINENO: result: $ac_cv_func_gethostname" >&5 20045echo "${ECHO_T}$ac_cv_func_gethostname" >&6 20046if test $ac_cv_func_gethostname = yes; then 20047 20048cat >>confdefs.h <<_ACEOF 20049#define HAVE_GETHOSTNAME 1 20050_ACEOF 20051 20052else 20053 LIBOBJS="$LIBOBJS gethostname.$ac_objext" 20054fi 20055echo "$as_me:$LINENO: checking for getifaddrs" >&5 20056echo $ECHO_N "checking for getifaddrs... $ECHO_C" >&6 20057if test "${ac_cv_func_getifaddrs+set}" = set; then 20058 echo $ECHO_N "(cached) $ECHO_C" >&6 20059else 20060 cat >conftest.$ac_ext <<_ACEOF 20061#line $LINENO "configure" 20062#include "confdefs.h" 20063/* System header to define __stub macros and hopefully few prototypes, 20064 which can conflict with char getifaddrs (); below. */ 20065#include <assert.h> 20066/* Override any gcc2 internal prototype to avoid an error. */ 20067#ifdef __cplusplus 20068extern "C" 20069#endif 20070/* We use char because int might match the return type of a gcc2 20071 builtin and then its argument prototype would still apply. */ 20072char getifaddrs (); 20073char (*f) (); 20074 20075#ifdef F77_DUMMY_MAIN 20076# ifdef __cplusplus 20077 extern "C" 20078# endif 20079 int F77_DUMMY_MAIN() { return 1; } 20080#endif 20081int 20082main () 20083{ 20084/* The GNU C library defines this for functions which it implements 20085 to always fail with ENOSYS. Some functions are actually named 20086 something starting with __ and the normal name is an alias. */ 20087#if defined (__stub_getifaddrs) || defined (__stub___getifaddrs) 20088choke me 20089#else 20090f = getifaddrs; 20091#endif 20092 20093 ; 20094 return 0; 20095} 20096_ACEOF 20097rm -f conftest.$ac_objext conftest$ac_exeext 20098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20099 (eval $ac_link) 2>&5 20100 ac_status=$? 20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20102 (exit $ac_status); } && 20103 { ac_try='test -s conftest$ac_exeext' 20104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20105 (eval $ac_try) 2>&5 20106 ac_status=$? 20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20108 (exit $ac_status); }; }; then 20109 ac_cv_func_getifaddrs=yes 20110else 20111 echo "$as_me: failed program was:" >&5 20112cat conftest.$ac_ext >&5 20113ac_cv_func_getifaddrs=no 20114fi 20115rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20116fi 20117echo "$as_me:$LINENO: result: $ac_cv_func_getifaddrs" >&5 20118echo "${ECHO_T}$ac_cv_func_getifaddrs" >&6 20119if test $ac_cv_func_getifaddrs = yes; then 20120 20121cat >>confdefs.h <<_ACEOF 20122#define HAVE_GETIFADDRS 1 20123_ACEOF 20124 20125else 20126 LIBOBJS="$LIBOBJS getifaddrs.$ac_objext" 20127fi 20128echo "$as_me:$LINENO: checking for getipnodebyaddr" >&5 20129echo $ECHO_N "checking for getipnodebyaddr... $ECHO_C" >&6 20130if test "${ac_cv_func_getipnodebyaddr+set}" = set; then 20131 echo $ECHO_N "(cached) $ECHO_C" >&6 20132else 20133 cat >conftest.$ac_ext <<_ACEOF 20134#line $LINENO "configure" 20135#include "confdefs.h" 20136/* System header to define __stub macros and hopefully few prototypes, 20137 which can conflict with char getipnodebyaddr (); below. */ 20138#include <assert.h> 20139/* Override any gcc2 internal prototype to avoid an error. */ 20140#ifdef __cplusplus 20141extern "C" 20142#endif 20143/* We use char because int might match the return type of a gcc2 20144 builtin and then its argument prototype would still apply. */ 20145char getipnodebyaddr (); 20146char (*f) (); 20147 20148#ifdef F77_DUMMY_MAIN 20149# ifdef __cplusplus 20150 extern "C" 20151# endif 20152 int F77_DUMMY_MAIN() { return 1; } 20153#endif 20154int 20155main () 20156{ 20157/* The GNU C library defines this for functions which it implements 20158 to always fail with ENOSYS. Some functions are actually named 20159 something starting with __ and the normal name is an alias. */ 20160#if defined (__stub_getipnodebyaddr) || defined (__stub___getipnodebyaddr) 20161choke me 20162#else 20163f = getipnodebyaddr; 20164#endif 20165 20166 ; 20167 return 0; 20168} 20169_ACEOF 20170rm -f conftest.$ac_objext conftest$ac_exeext 20171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20172 (eval $ac_link) 2>&5 20173 ac_status=$? 20174 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20175 (exit $ac_status); } && 20176 { ac_try='test -s conftest$ac_exeext' 20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20178 (eval $ac_try) 2>&5 20179 ac_status=$? 20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20181 (exit $ac_status); }; }; then 20182 ac_cv_func_getipnodebyaddr=yes 20183else 20184 echo "$as_me: failed program was:" >&5 20185cat conftest.$ac_ext >&5 20186ac_cv_func_getipnodebyaddr=no 20187fi 20188rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20189fi 20190echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyaddr" >&5 20191echo "${ECHO_T}$ac_cv_func_getipnodebyaddr" >&6 20192if test $ac_cv_func_getipnodebyaddr = yes; then 20193 20194cat >>confdefs.h <<_ACEOF 20195#define HAVE_GETIPNODEBYADDR 1 20196_ACEOF 20197 20198else 20199 LIBOBJS="$LIBOBJS getipnodebyaddr.$ac_objext" 20200fi 20201echo "$as_me:$LINENO: checking for getipnodebyname" >&5 20202echo $ECHO_N "checking for getipnodebyname... $ECHO_C" >&6 20203if test "${ac_cv_func_getipnodebyname+set}" = set; then 20204 echo $ECHO_N "(cached) $ECHO_C" >&6 20205else 20206 cat >conftest.$ac_ext <<_ACEOF 20207#line $LINENO "configure" 20208#include "confdefs.h" 20209/* System header to define __stub macros and hopefully few prototypes, 20210 which can conflict with char getipnodebyname (); below. */ 20211#include <assert.h> 20212/* Override any gcc2 internal prototype to avoid an error. */ 20213#ifdef __cplusplus 20214extern "C" 20215#endif 20216/* We use char because int might match the return type of a gcc2 20217 builtin and then its argument prototype would still apply. */ 20218char getipnodebyname (); 20219char (*f) (); 20220 20221#ifdef F77_DUMMY_MAIN 20222# ifdef __cplusplus 20223 extern "C" 20224# endif 20225 int F77_DUMMY_MAIN() { return 1; } 20226#endif 20227int 20228main () 20229{ 20230/* The GNU C library defines this for functions which it implements 20231 to always fail with ENOSYS. Some functions are actually named 20232 something starting with __ and the normal name is an alias. */ 20233#if defined (__stub_getipnodebyname) || defined (__stub___getipnodebyname) 20234choke me 20235#else 20236f = getipnodebyname; 20237#endif 20238 20239 ; 20240 return 0; 20241} 20242_ACEOF 20243rm -f conftest.$ac_objext conftest$ac_exeext 20244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20245 (eval $ac_link) 2>&5 20246 ac_status=$? 20247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20248 (exit $ac_status); } && 20249 { ac_try='test -s conftest$ac_exeext' 20250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20251 (eval $ac_try) 2>&5 20252 ac_status=$? 20253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20254 (exit $ac_status); }; }; then 20255 ac_cv_func_getipnodebyname=yes 20256else 20257 echo "$as_me: failed program was:" >&5 20258cat conftest.$ac_ext >&5 20259ac_cv_func_getipnodebyname=no 20260fi 20261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20262fi 20263echo "$as_me:$LINENO: result: $ac_cv_func_getipnodebyname" >&5 20264echo "${ECHO_T}$ac_cv_func_getipnodebyname" >&6 20265if test $ac_cv_func_getipnodebyname = yes; then 20266 20267cat >>confdefs.h <<_ACEOF 20268#define HAVE_GETIPNODEBYNAME 1 20269_ACEOF 20270 20271else 20272 LIBOBJS="$LIBOBJS getipnodebyname.$ac_objext" 20273fi 20274echo "$as_me:$LINENO: checking for getopt" >&5 20275echo $ECHO_N "checking for getopt... $ECHO_C" >&6 20276if test "${ac_cv_func_getopt+set}" = set; then 20277 echo $ECHO_N "(cached) $ECHO_C" >&6 20278else 20279 cat >conftest.$ac_ext <<_ACEOF 20280#line $LINENO "configure" 20281#include "confdefs.h" 20282/* System header to define __stub macros and hopefully few prototypes, 20283 which can conflict with char getopt (); below. */ 20284#include <assert.h> 20285/* Override any gcc2 internal prototype to avoid an error. */ 20286#ifdef __cplusplus 20287extern "C" 20288#endif 20289/* We use char because int might match the return type of a gcc2 20290 builtin and then its argument prototype would still apply. */ 20291char getopt (); 20292char (*f) (); 20293 20294#ifdef F77_DUMMY_MAIN 20295# ifdef __cplusplus 20296 extern "C" 20297# endif 20298 int F77_DUMMY_MAIN() { return 1; } 20299#endif 20300int 20301main () 20302{ 20303/* The GNU C library defines this for functions which it implements 20304 to always fail with ENOSYS. Some functions are actually named 20305 something starting with __ and the normal name is an alias. */ 20306#if defined (__stub_getopt) || defined (__stub___getopt) 20307choke me 20308#else 20309f = getopt; 20310#endif 20311 20312 ; 20313 return 0; 20314} 20315_ACEOF 20316rm -f conftest.$ac_objext conftest$ac_exeext 20317if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20318 (eval $ac_link) 2>&5 20319 ac_status=$? 20320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20321 (exit $ac_status); } && 20322 { ac_try='test -s conftest$ac_exeext' 20323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20324 (eval $ac_try) 2>&5 20325 ac_status=$? 20326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20327 (exit $ac_status); }; }; then 20328 ac_cv_func_getopt=yes 20329else 20330 echo "$as_me: failed program was:" >&5 20331cat conftest.$ac_ext >&5 20332ac_cv_func_getopt=no 20333fi 20334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20335fi 20336echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5 20337echo "${ECHO_T}$ac_cv_func_getopt" >&6 20338if test $ac_cv_func_getopt = yes; then 20339 20340cat >>confdefs.h <<_ACEOF 20341#define HAVE_GETOPT 1 20342_ACEOF 20343 20344else 20345 LIBOBJS="$LIBOBJS getopt.$ac_objext" 20346fi 20347echo "$as_me:$LINENO: checking for gettimeofday" >&5 20348echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6 20349if test "${ac_cv_func_gettimeofday+set}" = set; then 20350 echo $ECHO_N "(cached) $ECHO_C" >&6 20351else 20352 cat >conftest.$ac_ext <<_ACEOF 20353#line $LINENO "configure" 20354#include "confdefs.h" 20355/* System header to define __stub macros and hopefully few prototypes, 20356 which can conflict with char gettimeofday (); below. */ 20357#include <assert.h> 20358/* Override any gcc2 internal prototype to avoid an error. */ 20359#ifdef __cplusplus 20360extern "C" 20361#endif 20362/* We use char because int might match the return type of a gcc2 20363 builtin and then its argument prototype would still apply. */ 20364char gettimeofday (); 20365char (*f) (); 20366 20367#ifdef F77_DUMMY_MAIN 20368# ifdef __cplusplus 20369 extern "C" 20370# endif 20371 int F77_DUMMY_MAIN() { return 1; } 20372#endif 20373int 20374main () 20375{ 20376/* The GNU C library defines this for functions which it implements 20377 to always fail with ENOSYS. Some functions are actually named 20378 something starting with __ and the normal name is an alias. */ 20379#if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) 20380choke me 20381#else 20382f = gettimeofday; 20383#endif 20384 20385 ; 20386 return 0; 20387} 20388_ACEOF 20389rm -f conftest.$ac_objext conftest$ac_exeext 20390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20391 (eval $ac_link) 2>&5 20392 ac_status=$? 20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20394 (exit $ac_status); } && 20395 { ac_try='test -s conftest$ac_exeext' 20396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20397 (eval $ac_try) 2>&5 20398 ac_status=$? 20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20400 (exit $ac_status); }; }; then 20401 ac_cv_func_gettimeofday=yes 20402else 20403 echo "$as_me: failed program was:" >&5 20404cat conftest.$ac_ext >&5 20405ac_cv_func_gettimeofday=no 20406fi 20407rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20408fi 20409echo "$as_me:$LINENO: result: $ac_cv_func_gettimeofday" >&5 20410echo "${ECHO_T}$ac_cv_func_gettimeofday" >&6 20411if test $ac_cv_func_gettimeofday = yes; then 20412 20413cat >>confdefs.h <<_ACEOF 20414#define HAVE_GETTIMEOFDAY 1 20415_ACEOF 20416 20417else 20418 LIBOBJS="$LIBOBJS gettimeofday.$ac_objext" 20419fi 20420echo "$as_me:$LINENO: checking for getuid" >&5 20421echo $ECHO_N "checking for getuid... $ECHO_C" >&6 20422if test "${ac_cv_func_getuid+set}" = set; then 20423 echo $ECHO_N "(cached) $ECHO_C" >&6 20424else 20425 cat >conftest.$ac_ext <<_ACEOF 20426#line $LINENO "configure" 20427#include "confdefs.h" 20428/* System header to define __stub macros and hopefully few prototypes, 20429 which can conflict with char getuid (); below. */ 20430#include <assert.h> 20431/* Override any gcc2 internal prototype to avoid an error. */ 20432#ifdef __cplusplus 20433extern "C" 20434#endif 20435/* We use char because int might match the return type of a gcc2 20436 builtin and then its argument prototype would still apply. */ 20437char getuid (); 20438char (*f) (); 20439 20440#ifdef F77_DUMMY_MAIN 20441# ifdef __cplusplus 20442 extern "C" 20443# endif 20444 int F77_DUMMY_MAIN() { return 1; } 20445#endif 20446int 20447main () 20448{ 20449/* The GNU C library defines this for functions which it implements 20450 to always fail with ENOSYS. Some functions are actually named 20451 something starting with __ and the normal name is an alias. */ 20452#if defined (__stub_getuid) || defined (__stub___getuid) 20453choke me 20454#else 20455f = getuid; 20456#endif 20457 20458 ; 20459 return 0; 20460} 20461_ACEOF 20462rm -f conftest.$ac_objext conftest$ac_exeext 20463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20464 (eval $ac_link) 2>&5 20465 ac_status=$? 20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20467 (exit $ac_status); } && 20468 { ac_try='test -s conftest$ac_exeext' 20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20470 (eval $ac_try) 2>&5 20471 ac_status=$? 20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20473 (exit $ac_status); }; }; then 20474 ac_cv_func_getuid=yes 20475else 20476 echo "$as_me: failed program was:" >&5 20477cat conftest.$ac_ext >&5 20478ac_cv_func_getuid=no 20479fi 20480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20481fi 20482echo "$as_me:$LINENO: result: $ac_cv_func_getuid" >&5 20483echo "${ECHO_T}$ac_cv_func_getuid" >&6 20484if test $ac_cv_func_getuid = yes; then 20485 20486cat >>confdefs.h <<_ACEOF 20487#define HAVE_GETUID 1 20488_ACEOF 20489 20490else 20491 LIBOBJS="$LIBOBJS getuid.$ac_objext" 20492fi 20493echo "$as_me:$LINENO: checking for getusershell" >&5 20494echo $ECHO_N "checking for getusershell... $ECHO_C" >&6 20495if test "${ac_cv_func_getusershell+set}" = set; then 20496 echo $ECHO_N "(cached) $ECHO_C" >&6 20497else 20498 cat >conftest.$ac_ext <<_ACEOF 20499#line $LINENO "configure" 20500#include "confdefs.h" 20501/* System header to define __stub macros and hopefully few prototypes, 20502 which can conflict with char getusershell (); below. */ 20503#include <assert.h> 20504/* Override any gcc2 internal prototype to avoid an error. */ 20505#ifdef __cplusplus 20506extern "C" 20507#endif 20508/* We use char because int might match the return type of a gcc2 20509 builtin and then its argument prototype would still apply. */ 20510char getusershell (); 20511char (*f) (); 20512 20513#ifdef F77_DUMMY_MAIN 20514# ifdef __cplusplus 20515 extern "C" 20516# endif 20517 int F77_DUMMY_MAIN() { return 1; } 20518#endif 20519int 20520main () 20521{ 20522/* The GNU C library defines this for functions which it implements 20523 to always fail with ENOSYS. Some functions are actually named 20524 something starting with __ and the normal name is an alias. */ 20525#if defined (__stub_getusershell) || defined (__stub___getusershell) 20526choke me 20527#else 20528f = getusershell; 20529#endif 20530 20531 ; 20532 return 0; 20533} 20534_ACEOF 20535rm -f conftest.$ac_objext conftest$ac_exeext 20536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20537 (eval $ac_link) 2>&5 20538 ac_status=$? 20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20540 (exit $ac_status); } && 20541 { ac_try='test -s conftest$ac_exeext' 20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20543 (eval $ac_try) 2>&5 20544 ac_status=$? 20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20546 (exit $ac_status); }; }; then 20547 ac_cv_func_getusershell=yes 20548else 20549 echo "$as_me: failed program was:" >&5 20550cat conftest.$ac_ext >&5 20551ac_cv_func_getusershell=no 20552fi 20553rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20554fi 20555echo "$as_me:$LINENO: result: $ac_cv_func_getusershell" >&5 20556echo "${ECHO_T}$ac_cv_func_getusershell" >&6 20557if test $ac_cv_func_getusershell = yes; then 20558 20559cat >>confdefs.h <<_ACEOF 20560#define HAVE_GETUSERSHELL 1 20561_ACEOF 20562 20563else 20564 LIBOBJS="$LIBOBJS getusershell.$ac_objext" 20565fi 20566echo "$as_me:$LINENO: checking for initgroups" >&5 20567echo $ECHO_N "checking for initgroups... $ECHO_C" >&6 20568if test "${ac_cv_func_initgroups+set}" = set; then 20569 echo $ECHO_N "(cached) $ECHO_C" >&6 20570else 20571 cat >conftest.$ac_ext <<_ACEOF 20572#line $LINENO "configure" 20573#include "confdefs.h" 20574/* System header to define __stub macros and hopefully few prototypes, 20575 which can conflict with char initgroups (); below. */ 20576#include <assert.h> 20577/* Override any gcc2 internal prototype to avoid an error. */ 20578#ifdef __cplusplus 20579extern "C" 20580#endif 20581/* We use char because int might match the return type of a gcc2 20582 builtin and then its argument prototype would still apply. */ 20583char initgroups (); 20584char (*f) (); 20585 20586#ifdef F77_DUMMY_MAIN 20587# ifdef __cplusplus 20588 extern "C" 20589# endif 20590 int F77_DUMMY_MAIN() { return 1; } 20591#endif 20592int 20593main () 20594{ 20595/* The GNU C library defines this for functions which it implements 20596 to always fail with ENOSYS. Some functions are actually named 20597 something starting with __ and the normal name is an alias. */ 20598#if defined (__stub_initgroups) || defined (__stub___initgroups) 20599choke me 20600#else 20601f = initgroups; 20602#endif 20603 20604 ; 20605 return 0; 20606} 20607_ACEOF 20608rm -f conftest.$ac_objext conftest$ac_exeext 20609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20610 (eval $ac_link) 2>&5 20611 ac_status=$? 20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20613 (exit $ac_status); } && 20614 { ac_try='test -s conftest$ac_exeext' 20615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20616 (eval $ac_try) 2>&5 20617 ac_status=$? 20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20619 (exit $ac_status); }; }; then 20620 ac_cv_func_initgroups=yes 20621else 20622 echo "$as_me: failed program was:" >&5 20623cat conftest.$ac_ext >&5 20624ac_cv_func_initgroups=no 20625fi 20626rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20627fi 20628echo "$as_me:$LINENO: result: $ac_cv_func_initgroups" >&5 20629echo "${ECHO_T}$ac_cv_func_initgroups" >&6 20630if test $ac_cv_func_initgroups = yes; then 20631 20632cat >>confdefs.h <<_ACEOF 20633#define HAVE_INITGROUPS 1 20634_ACEOF 20635 20636else 20637 LIBOBJS="$LIBOBJS initgroups.$ac_objext" 20638fi 20639echo "$as_me:$LINENO: checking for innetgr" >&5 20640echo $ECHO_N "checking for innetgr... $ECHO_C" >&6 20641if test "${ac_cv_func_innetgr+set}" = set; then 20642 echo $ECHO_N "(cached) $ECHO_C" >&6 20643else 20644 cat >conftest.$ac_ext <<_ACEOF 20645#line $LINENO "configure" 20646#include "confdefs.h" 20647/* System header to define __stub macros and hopefully few prototypes, 20648 which can conflict with char innetgr (); below. */ 20649#include <assert.h> 20650/* Override any gcc2 internal prototype to avoid an error. */ 20651#ifdef __cplusplus 20652extern "C" 20653#endif 20654/* We use char because int might match the return type of a gcc2 20655 builtin and then its argument prototype would still apply. */ 20656char innetgr (); 20657char (*f) (); 20658 20659#ifdef F77_DUMMY_MAIN 20660# ifdef __cplusplus 20661 extern "C" 20662# endif 20663 int F77_DUMMY_MAIN() { return 1; } 20664#endif 20665int 20666main () 20667{ 20668/* The GNU C library defines this for functions which it implements 20669 to always fail with ENOSYS. Some functions are actually named 20670 something starting with __ and the normal name is an alias. */ 20671#if defined (__stub_innetgr) || defined (__stub___innetgr) 20672choke me 20673#else 20674f = innetgr; 20675#endif 20676 20677 ; 20678 return 0; 20679} 20680_ACEOF 20681rm -f conftest.$ac_objext conftest$ac_exeext 20682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20683 (eval $ac_link) 2>&5 20684 ac_status=$? 20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20686 (exit $ac_status); } && 20687 { ac_try='test -s conftest$ac_exeext' 20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20689 (eval $ac_try) 2>&5 20690 ac_status=$? 20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20692 (exit $ac_status); }; }; then 20693 ac_cv_func_innetgr=yes 20694else 20695 echo "$as_me: failed program was:" >&5 20696cat conftest.$ac_ext >&5 20697ac_cv_func_innetgr=no 20698fi 20699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20700fi 20701echo "$as_me:$LINENO: result: $ac_cv_func_innetgr" >&5 20702echo "${ECHO_T}$ac_cv_func_innetgr" >&6 20703if test $ac_cv_func_innetgr = yes; then 20704 20705cat >>confdefs.h <<_ACEOF 20706#define HAVE_INNETGR 1 20707_ACEOF 20708 20709else 20710 LIBOBJS="$LIBOBJS innetgr.$ac_objext" 20711fi 20712echo "$as_me:$LINENO: checking for iruserok" >&5 20713echo $ECHO_N "checking for iruserok... $ECHO_C" >&6 20714if test "${ac_cv_func_iruserok+set}" = set; then 20715 echo $ECHO_N "(cached) $ECHO_C" >&6 20716else 20717 cat >conftest.$ac_ext <<_ACEOF 20718#line $LINENO "configure" 20719#include "confdefs.h" 20720/* System header to define __stub macros and hopefully few prototypes, 20721 which can conflict with char iruserok (); below. */ 20722#include <assert.h> 20723/* Override any gcc2 internal prototype to avoid an error. */ 20724#ifdef __cplusplus 20725extern "C" 20726#endif 20727/* We use char because int might match the return type of a gcc2 20728 builtin and then its argument prototype would still apply. */ 20729char iruserok (); 20730char (*f) (); 20731 20732#ifdef F77_DUMMY_MAIN 20733# ifdef __cplusplus 20734 extern "C" 20735# endif 20736 int F77_DUMMY_MAIN() { return 1; } 20737#endif 20738int 20739main () 20740{ 20741/* The GNU C library defines this for functions which it implements 20742 to always fail with ENOSYS. Some functions are actually named 20743 something starting with __ and the normal name is an alias. */ 20744#if defined (__stub_iruserok) || defined (__stub___iruserok) 20745choke me 20746#else 20747f = iruserok; 20748#endif 20749 20750 ; 20751 return 0; 20752} 20753_ACEOF 20754rm -f conftest.$ac_objext conftest$ac_exeext 20755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20756 (eval $ac_link) 2>&5 20757 ac_status=$? 20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20759 (exit $ac_status); } && 20760 { ac_try='test -s conftest$ac_exeext' 20761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20762 (eval $ac_try) 2>&5 20763 ac_status=$? 20764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20765 (exit $ac_status); }; }; then 20766 ac_cv_func_iruserok=yes 20767else 20768 echo "$as_me: failed program was:" >&5 20769cat conftest.$ac_ext >&5 20770ac_cv_func_iruserok=no 20771fi 20772rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20773fi 20774echo "$as_me:$LINENO: result: $ac_cv_func_iruserok" >&5 20775echo "${ECHO_T}$ac_cv_func_iruserok" >&6 20776if test $ac_cv_func_iruserok = yes; then 20777 20778cat >>confdefs.h <<_ACEOF 20779#define HAVE_IRUSEROK 1 20780_ACEOF 20781 20782else 20783 LIBOBJS="$LIBOBJS iruserok.$ac_objext" 20784fi 20785echo "$as_me:$LINENO: checking for localtime_r" >&5 20786echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6 20787if test "${ac_cv_func_localtime_r+set}" = set; then 20788 echo $ECHO_N "(cached) $ECHO_C" >&6 20789else 20790 cat >conftest.$ac_ext <<_ACEOF 20791#line $LINENO "configure" 20792#include "confdefs.h" 20793/* System header to define __stub macros and hopefully few prototypes, 20794 which can conflict with char localtime_r (); below. */ 20795#include <assert.h> 20796/* Override any gcc2 internal prototype to avoid an error. */ 20797#ifdef __cplusplus 20798extern "C" 20799#endif 20800/* We use char because int might match the return type of a gcc2 20801 builtin and then its argument prototype would still apply. */ 20802char localtime_r (); 20803char (*f) (); 20804 20805#ifdef F77_DUMMY_MAIN 20806# ifdef __cplusplus 20807 extern "C" 20808# endif 20809 int F77_DUMMY_MAIN() { return 1; } 20810#endif 20811int 20812main () 20813{ 20814/* The GNU C library defines this for functions which it implements 20815 to always fail with ENOSYS. Some functions are actually named 20816 something starting with __ and the normal name is an alias. */ 20817#if defined (__stub_localtime_r) || defined (__stub___localtime_r) 20818choke me 20819#else 20820f = localtime_r; 20821#endif 20822 20823 ; 20824 return 0; 20825} 20826_ACEOF 20827rm -f conftest.$ac_objext conftest$ac_exeext 20828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20829 (eval $ac_link) 2>&5 20830 ac_status=$? 20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20832 (exit $ac_status); } && 20833 { ac_try='test -s conftest$ac_exeext' 20834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20835 (eval $ac_try) 2>&5 20836 ac_status=$? 20837 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20838 (exit $ac_status); }; }; then 20839 ac_cv_func_localtime_r=yes 20840else 20841 echo "$as_me: failed program was:" >&5 20842cat conftest.$ac_ext >&5 20843ac_cv_func_localtime_r=no 20844fi 20845rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20846fi 20847echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5 20848echo "${ECHO_T}$ac_cv_func_localtime_r" >&6 20849if test $ac_cv_func_localtime_r = yes; then 20850 20851cat >>confdefs.h <<_ACEOF 20852#define HAVE_LOCALTIME_R 1 20853_ACEOF 20854 20855else 20856 LIBOBJS="$LIBOBJS localtime_r.$ac_objext" 20857fi 20858echo "$as_me:$LINENO: checking for lstat" >&5 20859echo $ECHO_N "checking for lstat... $ECHO_C" >&6 20860if test "${ac_cv_func_lstat+set}" = set; then 20861 echo $ECHO_N "(cached) $ECHO_C" >&6 20862else 20863 cat >conftest.$ac_ext <<_ACEOF 20864#line $LINENO "configure" 20865#include "confdefs.h" 20866/* System header to define __stub macros and hopefully few prototypes, 20867 which can conflict with char lstat (); below. */ 20868#include <assert.h> 20869/* Override any gcc2 internal prototype to avoid an error. */ 20870#ifdef __cplusplus 20871extern "C" 20872#endif 20873/* We use char because int might match the return type of a gcc2 20874 builtin and then its argument prototype would still apply. */ 20875char lstat (); 20876char (*f) (); 20877 20878#ifdef F77_DUMMY_MAIN 20879# ifdef __cplusplus 20880 extern "C" 20881# endif 20882 int F77_DUMMY_MAIN() { return 1; } 20883#endif 20884int 20885main () 20886{ 20887/* The GNU C library defines this for functions which it implements 20888 to always fail with ENOSYS. Some functions are actually named 20889 something starting with __ and the normal name is an alias. */ 20890#if defined (__stub_lstat) || defined (__stub___lstat) 20891choke me 20892#else 20893f = lstat; 20894#endif 20895 20896 ; 20897 return 0; 20898} 20899_ACEOF 20900rm -f conftest.$ac_objext conftest$ac_exeext 20901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20902 (eval $ac_link) 2>&5 20903 ac_status=$? 20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20905 (exit $ac_status); } && 20906 { ac_try='test -s conftest$ac_exeext' 20907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20908 (eval $ac_try) 2>&5 20909 ac_status=$? 20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20911 (exit $ac_status); }; }; then 20912 ac_cv_func_lstat=yes 20913else 20914 echo "$as_me: failed program was:" >&5 20915cat conftest.$ac_ext >&5 20916ac_cv_func_lstat=no 20917fi 20918rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20919fi 20920echo "$as_me:$LINENO: result: $ac_cv_func_lstat" >&5 20921echo "${ECHO_T}$ac_cv_func_lstat" >&6 20922if test $ac_cv_func_lstat = yes; then 20923 20924cat >>confdefs.h <<_ACEOF 20925#define HAVE_LSTAT 1 20926_ACEOF 20927 20928else 20929 LIBOBJS="$LIBOBJS lstat.$ac_objext" 20930fi 20931echo "$as_me:$LINENO: checking for memmove" >&5 20932echo $ECHO_N "checking for memmove... $ECHO_C" >&6 20933if test "${ac_cv_func_memmove+set}" = set; then 20934 echo $ECHO_N "(cached) $ECHO_C" >&6 20935else 20936 cat >conftest.$ac_ext <<_ACEOF 20937#line $LINENO "configure" 20938#include "confdefs.h" 20939/* System header to define __stub macros and hopefully few prototypes, 20940 which can conflict with char memmove (); below. */ 20941#include <assert.h> 20942/* Override any gcc2 internal prototype to avoid an error. */ 20943#ifdef __cplusplus 20944extern "C" 20945#endif 20946/* We use char because int might match the return type of a gcc2 20947 builtin and then its argument prototype would still apply. */ 20948char memmove (); 20949char (*f) (); 20950 20951#ifdef F77_DUMMY_MAIN 20952# ifdef __cplusplus 20953 extern "C" 20954# endif 20955 int F77_DUMMY_MAIN() { return 1; } 20956#endif 20957int 20958main () 20959{ 20960/* The GNU C library defines this for functions which it implements 20961 to always fail with ENOSYS. Some functions are actually named 20962 something starting with __ and the normal name is an alias. */ 20963#if defined (__stub_memmove) || defined (__stub___memmove) 20964choke me 20965#else 20966f = memmove; 20967#endif 20968 20969 ; 20970 return 0; 20971} 20972_ACEOF 20973rm -f conftest.$ac_objext conftest$ac_exeext 20974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20975 (eval $ac_link) 2>&5 20976 ac_status=$? 20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20978 (exit $ac_status); } && 20979 { ac_try='test -s conftest$ac_exeext' 20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20981 (eval $ac_try) 2>&5 20982 ac_status=$? 20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20984 (exit $ac_status); }; }; then 20985 ac_cv_func_memmove=yes 20986else 20987 echo "$as_me: failed program was:" >&5 20988cat conftest.$ac_ext >&5 20989ac_cv_func_memmove=no 20990fi 20991rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 20992fi 20993echo "$as_me:$LINENO: result: $ac_cv_func_memmove" >&5 20994echo "${ECHO_T}$ac_cv_func_memmove" >&6 20995if test $ac_cv_func_memmove = yes; then 20996 20997cat >>confdefs.h <<_ACEOF 20998#define HAVE_MEMMOVE 1 20999_ACEOF 21000 21001else 21002 LIBOBJS="$LIBOBJS memmove.$ac_objext" 21003fi 21004echo "$as_me:$LINENO: checking for mkstemp" >&5 21005echo $ECHO_N "checking for mkstemp... $ECHO_C" >&6 21006if test "${ac_cv_func_mkstemp+set}" = set; then 21007 echo $ECHO_N "(cached) $ECHO_C" >&6 21008else 21009 cat >conftest.$ac_ext <<_ACEOF 21010#line $LINENO "configure" 21011#include "confdefs.h" 21012/* System header to define __stub macros and hopefully few prototypes, 21013 which can conflict with char mkstemp (); below. */ 21014#include <assert.h> 21015/* Override any gcc2 internal prototype to avoid an error. */ 21016#ifdef __cplusplus 21017extern "C" 21018#endif 21019/* We use char because int might match the return type of a gcc2 21020 builtin and then its argument prototype would still apply. */ 21021char mkstemp (); 21022char (*f) (); 21023 21024#ifdef F77_DUMMY_MAIN 21025# ifdef __cplusplus 21026 extern "C" 21027# endif 21028 int F77_DUMMY_MAIN() { return 1; } 21029#endif 21030int 21031main () 21032{ 21033/* The GNU C library defines this for functions which it implements 21034 to always fail with ENOSYS. Some functions are actually named 21035 something starting with __ and the normal name is an alias. */ 21036#if defined (__stub_mkstemp) || defined (__stub___mkstemp) 21037choke me 21038#else 21039f = mkstemp; 21040#endif 21041 21042 ; 21043 return 0; 21044} 21045_ACEOF 21046rm -f conftest.$ac_objext conftest$ac_exeext 21047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21048 (eval $ac_link) 2>&5 21049 ac_status=$? 21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21051 (exit $ac_status); } && 21052 { ac_try='test -s conftest$ac_exeext' 21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21054 (eval $ac_try) 2>&5 21055 ac_status=$? 21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21057 (exit $ac_status); }; }; then 21058 ac_cv_func_mkstemp=yes 21059else 21060 echo "$as_me: failed program was:" >&5 21061cat conftest.$ac_ext >&5 21062ac_cv_func_mkstemp=no 21063fi 21064rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21065fi 21066echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp" >&5 21067echo "${ECHO_T}$ac_cv_func_mkstemp" >&6 21068if test $ac_cv_func_mkstemp = yes; then 21069 21070cat >>confdefs.h <<_ACEOF 21071#define HAVE_MKSTEMP 1 21072_ACEOF 21073 21074else 21075 LIBOBJS="$LIBOBJS mkstemp.$ac_objext" 21076fi 21077echo "$as_me:$LINENO: checking for putenv" >&5 21078echo $ECHO_N "checking for putenv... $ECHO_C" >&6 21079if test "${ac_cv_func_putenv+set}" = set; then 21080 echo $ECHO_N "(cached) $ECHO_C" >&6 21081else 21082 cat >conftest.$ac_ext <<_ACEOF 21083#line $LINENO "configure" 21084#include "confdefs.h" 21085/* System header to define __stub macros and hopefully few prototypes, 21086 which can conflict with char putenv (); below. */ 21087#include <assert.h> 21088/* Override any gcc2 internal prototype to avoid an error. */ 21089#ifdef __cplusplus 21090extern "C" 21091#endif 21092/* We use char because int might match the return type of a gcc2 21093 builtin and then its argument prototype would still apply. */ 21094char putenv (); 21095char (*f) (); 21096 21097#ifdef F77_DUMMY_MAIN 21098# ifdef __cplusplus 21099 extern "C" 21100# endif 21101 int F77_DUMMY_MAIN() { return 1; } 21102#endif 21103int 21104main () 21105{ 21106/* The GNU C library defines this for functions which it implements 21107 to always fail with ENOSYS. Some functions are actually named 21108 something starting with __ and the normal name is an alias. */ 21109#if defined (__stub_putenv) || defined (__stub___putenv) 21110choke me 21111#else 21112f = putenv; 21113#endif 21114 21115 ; 21116 return 0; 21117} 21118_ACEOF 21119rm -f conftest.$ac_objext conftest$ac_exeext 21120if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21121 (eval $ac_link) 2>&5 21122 ac_status=$? 21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21124 (exit $ac_status); } && 21125 { ac_try='test -s conftest$ac_exeext' 21126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21127 (eval $ac_try) 2>&5 21128 ac_status=$? 21129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21130 (exit $ac_status); }; }; then 21131 ac_cv_func_putenv=yes 21132else 21133 echo "$as_me: failed program was:" >&5 21134cat conftest.$ac_ext >&5 21135ac_cv_func_putenv=no 21136fi 21137rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21138fi 21139echo "$as_me:$LINENO: result: $ac_cv_func_putenv" >&5 21140echo "${ECHO_T}$ac_cv_func_putenv" >&6 21141if test $ac_cv_func_putenv = yes; then 21142 21143cat >>confdefs.h <<_ACEOF 21144#define HAVE_PUTENV 1 21145_ACEOF 21146 21147else 21148 LIBOBJS="$LIBOBJS putenv.$ac_objext" 21149fi 21150echo "$as_me:$LINENO: checking for rcmd" >&5 21151echo $ECHO_N "checking for rcmd... $ECHO_C" >&6 21152if test "${ac_cv_func_rcmd+set}" = set; then 21153 echo $ECHO_N "(cached) $ECHO_C" >&6 21154else 21155 cat >conftest.$ac_ext <<_ACEOF 21156#line $LINENO "configure" 21157#include "confdefs.h" 21158/* System header to define __stub macros and hopefully few prototypes, 21159 which can conflict with char rcmd (); below. */ 21160#include <assert.h> 21161/* Override any gcc2 internal prototype to avoid an error. */ 21162#ifdef __cplusplus 21163extern "C" 21164#endif 21165/* We use char because int might match the return type of a gcc2 21166 builtin and then its argument prototype would still apply. */ 21167char rcmd (); 21168char (*f) (); 21169 21170#ifdef F77_DUMMY_MAIN 21171# ifdef __cplusplus 21172 extern "C" 21173# endif 21174 int F77_DUMMY_MAIN() { return 1; } 21175#endif 21176int 21177main () 21178{ 21179/* The GNU C library defines this for functions which it implements 21180 to always fail with ENOSYS. Some functions are actually named 21181 something starting with __ and the normal name is an alias. */ 21182#if defined (__stub_rcmd) || defined (__stub___rcmd) 21183choke me 21184#else 21185f = rcmd; 21186#endif 21187 21188 ; 21189 return 0; 21190} 21191_ACEOF 21192rm -f conftest.$ac_objext conftest$ac_exeext 21193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21194 (eval $ac_link) 2>&5 21195 ac_status=$? 21196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21197 (exit $ac_status); } && 21198 { ac_try='test -s conftest$ac_exeext' 21199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21200 (eval $ac_try) 2>&5 21201 ac_status=$? 21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21203 (exit $ac_status); }; }; then 21204 ac_cv_func_rcmd=yes 21205else 21206 echo "$as_me: failed program was:" >&5 21207cat conftest.$ac_ext >&5 21208ac_cv_func_rcmd=no 21209fi 21210rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21211fi 21212echo "$as_me:$LINENO: result: $ac_cv_func_rcmd" >&5 21213echo "${ECHO_T}$ac_cv_func_rcmd" >&6 21214if test $ac_cv_func_rcmd = yes; then 21215 21216cat >>confdefs.h <<_ACEOF 21217#define HAVE_RCMD 1 21218_ACEOF 21219 21220else 21221 LIBOBJS="$LIBOBJS rcmd.$ac_objext" 21222fi 21223echo "$as_me:$LINENO: checking for readv" >&5 21224echo $ECHO_N "checking for readv... $ECHO_C" >&6 21225if test "${ac_cv_func_readv+set}" = set; then 21226 echo $ECHO_N "(cached) $ECHO_C" >&6 21227else 21228 cat >conftest.$ac_ext <<_ACEOF 21229#line $LINENO "configure" 21230#include "confdefs.h" 21231/* System header to define __stub macros and hopefully few prototypes, 21232 which can conflict with char readv (); below. */ 21233#include <assert.h> 21234/* Override any gcc2 internal prototype to avoid an error. */ 21235#ifdef __cplusplus 21236extern "C" 21237#endif 21238/* We use char because int might match the return type of a gcc2 21239 builtin and then its argument prototype would still apply. */ 21240char readv (); 21241char (*f) (); 21242 21243#ifdef F77_DUMMY_MAIN 21244# ifdef __cplusplus 21245 extern "C" 21246# endif 21247 int F77_DUMMY_MAIN() { return 1; } 21248#endif 21249int 21250main () 21251{ 21252/* The GNU C library defines this for functions which it implements 21253 to always fail with ENOSYS. Some functions are actually named 21254 something starting with __ and the normal name is an alias. */ 21255#if defined (__stub_readv) || defined (__stub___readv) 21256choke me 21257#else 21258f = readv; 21259#endif 21260 21261 ; 21262 return 0; 21263} 21264_ACEOF 21265rm -f conftest.$ac_objext conftest$ac_exeext 21266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21267 (eval $ac_link) 2>&5 21268 ac_status=$? 21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21270 (exit $ac_status); } && 21271 { ac_try='test -s conftest$ac_exeext' 21272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21273 (eval $ac_try) 2>&5 21274 ac_status=$? 21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21276 (exit $ac_status); }; }; then 21277 ac_cv_func_readv=yes 21278else 21279 echo "$as_me: failed program was:" >&5 21280cat conftest.$ac_ext >&5 21281ac_cv_func_readv=no 21282fi 21283rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21284fi 21285echo "$as_me:$LINENO: result: $ac_cv_func_readv" >&5 21286echo "${ECHO_T}$ac_cv_func_readv" >&6 21287if test $ac_cv_func_readv = yes; then 21288 21289cat >>confdefs.h <<_ACEOF 21290#define HAVE_READV 1 21291_ACEOF 21292 21293else 21294 LIBOBJS="$LIBOBJS readv.$ac_objext" 21295fi 21296echo "$as_me:$LINENO: checking for recvmsg" >&5 21297echo $ECHO_N "checking for recvmsg... $ECHO_C" >&6 21298if test "${ac_cv_func_recvmsg+set}" = set; then 21299 echo $ECHO_N "(cached) $ECHO_C" >&6 21300else 21301 cat >conftest.$ac_ext <<_ACEOF 21302#line $LINENO "configure" 21303#include "confdefs.h" 21304/* System header to define __stub macros and hopefully few prototypes, 21305 which can conflict with char recvmsg (); below. */ 21306#include <assert.h> 21307/* Override any gcc2 internal prototype to avoid an error. */ 21308#ifdef __cplusplus 21309extern "C" 21310#endif 21311/* We use char because int might match the return type of a gcc2 21312 builtin and then its argument prototype would still apply. */ 21313char recvmsg (); 21314char (*f) (); 21315 21316#ifdef F77_DUMMY_MAIN 21317# ifdef __cplusplus 21318 extern "C" 21319# endif 21320 int F77_DUMMY_MAIN() { return 1; } 21321#endif 21322int 21323main () 21324{ 21325/* The GNU C library defines this for functions which it implements 21326 to always fail with ENOSYS. Some functions are actually named 21327 something starting with __ and the normal name is an alias. */ 21328#if defined (__stub_recvmsg) || defined (__stub___recvmsg) 21329choke me 21330#else 21331f = recvmsg; 21332#endif 21333 21334 ; 21335 return 0; 21336} 21337_ACEOF 21338rm -f conftest.$ac_objext conftest$ac_exeext 21339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21340 (eval $ac_link) 2>&5 21341 ac_status=$? 21342 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21343 (exit $ac_status); } && 21344 { ac_try='test -s conftest$ac_exeext' 21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21346 (eval $ac_try) 2>&5 21347 ac_status=$? 21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21349 (exit $ac_status); }; }; then 21350 ac_cv_func_recvmsg=yes 21351else 21352 echo "$as_me: failed program was:" >&5 21353cat conftest.$ac_ext >&5 21354ac_cv_func_recvmsg=no 21355fi 21356rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21357fi 21358echo "$as_me:$LINENO: result: $ac_cv_func_recvmsg" >&5 21359echo "${ECHO_T}$ac_cv_func_recvmsg" >&6 21360if test $ac_cv_func_recvmsg = yes; then 21361 21362cat >>confdefs.h <<_ACEOF 21363#define HAVE_RECVMSG 1 21364_ACEOF 21365 21366else 21367 LIBOBJS="$LIBOBJS recvmsg.$ac_objext" 21368fi 21369echo "$as_me:$LINENO: checking for sendmsg" >&5 21370echo $ECHO_N "checking for sendmsg... $ECHO_C" >&6 21371if test "${ac_cv_func_sendmsg+set}" = set; then 21372 echo $ECHO_N "(cached) $ECHO_C" >&6 21373else 21374 cat >conftest.$ac_ext <<_ACEOF 21375#line $LINENO "configure" 21376#include "confdefs.h" 21377/* System header to define __stub macros and hopefully few prototypes, 21378 which can conflict with char sendmsg (); below. */ 21379#include <assert.h> 21380/* Override any gcc2 internal prototype to avoid an error. */ 21381#ifdef __cplusplus 21382extern "C" 21383#endif 21384/* We use char because int might match the return type of a gcc2 21385 builtin and then its argument prototype would still apply. */ 21386char sendmsg (); 21387char (*f) (); 21388 21389#ifdef F77_DUMMY_MAIN 21390# ifdef __cplusplus 21391 extern "C" 21392# endif 21393 int F77_DUMMY_MAIN() { return 1; } 21394#endif 21395int 21396main () 21397{ 21398/* The GNU C library defines this for functions which it implements 21399 to always fail with ENOSYS. Some functions are actually named 21400 something starting with __ and the normal name is an alias. */ 21401#if defined (__stub_sendmsg) || defined (__stub___sendmsg) 21402choke me 21403#else 21404f = sendmsg; 21405#endif 21406 21407 ; 21408 return 0; 21409} 21410_ACEOF 21411rm -f conftest.$ac_objext conftest$ac_exeext 21412if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21413 (eval $ac_link) 2>&5 21414 ac_status=$? 21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21416 (exit $ac_status); } && 21417 { ac_try='test -s conftest$ac_exeext' 21418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21419 (eval $ac_try) 2>&5 21420 ac_status=$? 21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21422 (exit $ac_status); }; }; then 21423 ac_cv_func_sendmsg=yes 21424else 21425 echo "$as_me: failed program was:" >&5 21426cat conftest.$ac_ext >&5 21427ac_cv_func_sendmsg=no 21428fi 21429rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21430fi 21431echo "$as_me:$LINENO: result: $ac_cv_func_sendmsg" >&5 21432echo "${ECHO_T}$ac_cv_func_sendmsg" >&6 21433if test $ac_cv_func_sendmsg = yes; then 21434 21435cat >>confdefs.h <<_ACEOF 21436#define HAVE_SENDMSG 1 21437_ACEOF 21438 21439else 21440 LIBOBJS="$LIBOBJS sendmsg.$ac_objext" 21441fi 21442echo "$as_me:$LINENO: checking for setegid" >&5 21443echo $ECHO_N "checking for setegid... $ECHO_C" >&6 21444if test "${ac_cv_func_setegid+set}" = set; then 21445 echo $ECHO_N "(cached) $ECHO_C" >&6 21446else 21447 cat >conftest.$ac_ext <<_ACEOF 21448#line $LINENO "configure" 21449#include "confdefs.h" 21450/* System header to define __stub macros and hopefully few prototypes, 21451 which can conflict with char setegid (); below. */ 21452#include <assert.h> 21453/* Override any gcc2 internal prototype to avoid an error. */ 21454#ifdef __cplusplus 21455extern "C" 21456#endif 21457/* We use char because int might match the return type of a gcc2 21458 builtin and then its argument prototype would still apply. */ 21459char setegid (); 21460char (*f) (); 21461 21462#ifdef F77_DUMMY_MAIN 21463# ifdef __cplusplus 21464 extern "C" 21465# endif 21466 int F77_DUMMY_MAIN() { return 1; } 21467#endif 21468int 21469main () 21470{ 21471/* The GNU C library defines this for functions which it implements 21472 to always fail with ENOSYS. Some functions are actually named 21473 something starting with __ and the normal name is an alias. */ 21474#if defined (__stub_setegid) || defined (__stub___setegid) 21475choke me 21476#else 21477f = setegid; 21478#endif 21479 21480 ; 21481 return 0; 21482} 21483_ACEOF 21484rm -f conftest.$ac_objext conftest$ac_exeext 21485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21486 (eval $ac_link) 2>&5 21487 ac_status=$? 21488 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21489 (exit $ac_status); } && 21490 { ac_try='test -s conftest$ac_exeext' 21491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21492 (eval $ac_try) 2>&5 21493 ac_status=$? 21494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21495 (exit $ac_status); }; }; then 21496 ac_cv_func_setegid=yes 21497else 21498 echo "$as_me: failed program was:" >&5 21499cat conftest.$ac_ext >&5 21500ac_cv_func_setegid=no 21501fi 21502rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21503fi 21504echo "$as_me:$LINENO: result: $ac_cv_func_setegid" >&5 21505echo "${ECHO_T}$ac_cv_func_setegid" >&6 21506if test $ac_cv_func_setegid = yes; then 21507 21508cat >>confdefs.h <<_ACEOF 21509#define HAVE_SETEGID 1 21510_ACEOF 21511 21512else 21513 LIBOBJS="$LIBOBJS setegid.$ac_objext" 21514fi 21515echo "$as_me:$LINENO: checking for setenv" >&5 21516echo $ECHO_N "checking for setenv... $ECHO_C" >&6 21517if test "${ac_cv_func_setenv+set}" = set; then 21518 echo $ECHO_N "(cached) $ECHO_C" >&6 21519else 21520 cat >conftest.$ac_ext <<_ACEOF 21521#line $LINENO "configure" 21522#include "confdefs.h" 21523/* System header to define __stub macros and hopefully few prototypes, 21524 which can conflict with char setenv (); below. */ 21525#include <assert.h> 21526/* Override any gcc2 internal prototype to avoid an error. */ 21527#ifdef __cplusplus 21528extern "C" 21529#endif 21530/* We use char because int might match the return type of a gcc2 21531 builtin and then its argument prototype would still apply. */ 21532char setenv (); 21533char (*f) (); 21534 21535#ifdef F77_DUMMY_MAIN 21536# ifdef __cplusplus 21537 extern "C" 21538# endif 21539 int F77_DUMMY_MAIN() { return 1; } 21540#endif 21541int 21542main () 21543{ 21544/* The GNU C library defines this for functions which it implements 21545 to always fail with ENOSYS. Some functions are actually named 21546 something starting with __ and the normal name is an alias. */ 21547#if defined (__stub_setenv) || defined (__stub___setenv) 21548choke me 21549#else 21550f = setenv; 21551#endif 21552 21553 ; 21554 return 0; 21555} 21556_ACEOF 21557rm -f conftest.$ac_objext conftest$ac_exeext 21558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21559 (eval $ac_link) 2>&5 21560 ac_status=$? 21561 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21562 (exit $ac_status); } && 21563 { ac_try='test -s conftest$ac_exeext' 21564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21565 (eval $ac_try) 2>&5 21566 ac_status=$? 21567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21568 (exit $ac_status); }; }; then 21569 ac_cv_func_setenv=yes 21570else 21571 echo "$as_me: failed program was:" >&5 21572cat conftest.$ac_ext >&5 21573ac_cv_func_setenv=no 21574fi 21575rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21576fi 21577echo "$as_me:$LINENO: result: $ac_cv_func_setenv" >&5 21578echo "${ECHO_T}$ac_cv_func_setenv" >&6 21579if test $ac_cv_func_setenv = yes; then 21580 21581cat >>confdefs.h <<_ACEOF 21582#define HAVE_SETENV 1 21583_ACEOF 21584 21585else 21586 LIBOBJS="$LIBOBJS setenv.$ac_objext" 21587fi 21588echo "$as_me:$LINENO: checking for seteuid" >&5 21589echo $ECHO_N "checking for seteuid... $ECHO_C" >&6 21590if test "${ac_cv_func_seteuid+set}" = set; then 21591 echo $ECHO_N "(cached) $ECHO_C" >&6 21592else 21593 cat >conftest.$ac_ext <<_ACEOF 21594#line $LINENO "configure" 21595#include "confdefs.h" 21596/* System header to define __stub macros and hopefully few prototypes, 21597 which can conflict with char seteuid (); below. */ 21598#include <assert.h> 21599/* Override any gcc2 internal prototype to avoid an error. */ 21600#ifdef __cplusplus 21601extern "C" 21602#endif 21603/* We use char because int might match the return type of a gcc2 21604 builtin and then its argument prototype would still apply. */ 21605char seteuid (); 21606char (*f) (); 21607 21608#ifdef F77_DUMMY_MAIN 21609# ifdef __cplusplus 21610 extern "C" 21611# endif 21612 int F77_DUMMY_MAIN() { return 1; } 21613#endif 21614int 21615main () 21616{ 21617/* The GNU C library defines this for functions which it implements 21618 to always fail with ENOSYS. Some functions are actually named 21619 something starting with __ and the normal name is an alias. */ 21620#if defined (__stub_seteuid) || defined (__stub___seteuid) 21621choke me 21622#else 21623f = seteuid; 21624#endif 21625 21626 ; 21627 return 0; 21628} 21629_ACEOF 21630rm -f conftest.$ac_objext conftest$ac_exeext 21631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21632 (eval $ac_link) 2>&5 21633 ac_status=$? 21634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21635 (exit $ac_status); } && 21636 { ac_try='test -s conftest$ac_exeext' 21637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21638 (eval $ac_try) 2>&5 21639 ac_status=$? 21640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21641 (exit $ac_status); }; }; then 21642 ac_cv_func_seteuid=yes 21643else 21644 echo "$as_me: failed program was:" >&5 21645cat conftest.$ac_ext >&5 21646ac_cv_func_seteuid=no 21647fi 21648rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21649fi 21650echo "$as_me:$LINENO: result: $ac_cv_func_seteuid" >&5 21651echo "${ECHO_T}$ac_cv_func_seteuid" >&6 21652if test $ac_cv_func_seteuid = yes; then 21653 21654cat >>confdefs.h <<_ACEOF 21655#define HAVE_SETEUID 1 21656_ACEOF 21657 21658else 21659 LIBOBJS="$LIBOBJS seteuid.$ac_objext" 21660fi 21661echo "$as_me:$LINENO: checking for strcasecmp" >&5 21662echo $ECHO_N "checking for strcasecmp... $ECHO_C" >&6 21663if test "${ac_cv_func_strcasecmp+set}" = set; then 21664 echo $ECHO_N "(cached) $ECHO_C" >&6 21665else 21666 cat >conftest.$ac_ext <<_ACEOF 21667#line $LINENO "configure" 21668#include "confdefs.h" 21669/* System header to define __stub macros and hopefully few prototypes, 21670 which can conflict with char strcasecmp (); below. */ 21671#include <assert.h> 21672/* Override any gcc2 internal prototype to avoid an error. */ 21673#ifdef __cplusplus 21674extern "C" 21675#endif 21676/* We use char because int might match the return type of a gcc2 21677 builtin and then its argument prototype would still apply. */ 21678char strcasecmp (); 21679char (*f) (); 21680 21681#ifdef F77_DUMMY_MAIN 21682# ifdef __cplusplus 21683 extern "C" 21684# endif 21685 int F77_DUMMY_MAIN() { return 1; } 21686#endif 21687int 21688main () 21689{ 21690/* The GNU C library defines this for functions which it implements 21691 to always fail with ENOSYS. Some functions are actually named 21692 something starting with __ and the normal name is an alias. */ 21693#if defined (__stub_strcasecmp) || defined (__stub___strcasecmp) 21694choke me 21695#else 21696f = strcasecmp; 21697#endif 21698 21699 ; 21700 return 0; 21701} 21702_ACEOF 21703rm -f conftest.$ac_objext conftest$ac_exeext 21704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21705 (eval $ac_link) 2>&5 21706 ac_status=$? 21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21708 (exit $ac_status); } && 21709 { ac_try='test -s conftest$ac_exeext' 21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21711 (eval $ac_try) 2>&5 21712 ac_status=$? 21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21714 (exit $ac_status); }; }; then 21715 ac_cv_func_strcasecmp=yes 21716else 21717 echo "$as_me: failed program was:" >&5 21718cat conftest.$ac_ext >&5 21719ac_cv_func_strcasecmp=no 21720fi 21721rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21722fi 21723echo "$as_me:$LINENO: result: $ac_cv_func_strcasecmp" >&5 21724echo "${ECHO_T}$ac_cv_func_strcasecmp" >&6 21725if test $ac_cv_func_strcasecmp = yes; then 21726 21727cat >>confdefs.h <<_ACEOF 21728#define HAVE_STRCASECMP 1 21729_ACEOF 21730 21731else 21732 LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 21733fi 21734echo "$as_me:$LINENO: checking for strdup" >&5 21735echo $ECHO_N "checking for strdup... $ECHO_C" >&6 21736if test "${ac_cv_func_strdup+set}" = set; then 21737 echo $ECHO_N "(cached) $ECHO_C" >&6 21738else 21739 cat >conftest.$ac_ext <<_ACEOF 21740#line $LINENO "configure" 21741#include "confdefs.h" 21742/* System header to define __stub macros and hopefully few prototypes, 21743 which can conflict with char strdup (); below. */ 21744#include <assert.h> 21745/* Override any gcc2 internal prototype to avoid an error. */ 21746#ifdef __cplusplus 21747extern "C" 21748#endif 21749/* We use char because int might match the return type of a gcc2 21750 builtin and then its argument prototype would still apply. */ 21751char strdup (); 21752char (*f) (); 21753 21754#ifdef F77_DUMMY_MAIN 21755# ifdef __cplusplus 21756 extern "C" 21757# endif 21758 int F77_DUMMY_MAIN() { return 1; } 21759#endif 21760int 21761main () 21762{ 21763/* The GNU C library defines this for functions which it implements 21764 to always fail with ENOSYS. Some functions are actually named 21765 something starting with __ and the normal name is an alias. */ 21766#if defined (__stub_strdup) || defined (__stub___strdup) 21767choke me 21768#else 21769f = strdup; 21770#endif 21771 21772 ; 21773 return 0; 21774} 21775_ACEOF 21776rm -f conftest.$ac_objext conftest$ac_exeext 21777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21778 (eval $ac_link) 2>&5 21779 ac_status=$? 21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21781 (exit $ac_status); } && 21782 { ac_try='test -s conftest$ac_exeext' 21783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21784 (eval $ac_try) 2>&5 21785 ac_status=$? 21786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21787 (exit $ac_status); }; }; then 21788 ac_cv_func_strdup=yes 21789else 21790 echo "$as_me: failed program was:" >&5 21791cat conftest.$ac_ext >&5 21792ac_cv_func_strdup=no 21793fi 21794rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21795fi 21796echo "$as_me:$LINENO: result: $ac_cv_func_strdup" >&5 21797echo "${ECHO_T}$ac_cv_func_strdup" >&6 21798if test $ac_cv_func_strdup = yes; then 21799 21800cat >>confdefs.h <<_ACEOF 21801#define HAVE_STRDUP 1 21802_ACEOF 21803 21804else 21805 LIBOBJS="$LIBOBJS strdup.$ac_objext" 21806fi 21807echo "$as_me:$LINENO: checking for strerror" >&5 21808echo $ECHO_N "checking for strerror... $ECHO_C" >&6 21809if test "${ac_cv_func_strerror+set}" = set; then 21810 echo $ECHO_N "(cached) $ECHO_C" >&6 21811else 21812 cat >conftest.$ac_ext <<_ACEOF 21813#line $LINENO "configure" 21814#include "confdefs.h" 21815/* System header to define __stub macros and hopefully few prototypes, 21816 which can conflict with char strerror (); below. */ 21817#include <assert.h> 21818/* Override any gcc2 internal prototype to avoid an error. */ 21819#ifdef __cplusplus 21820extern "C" 21821#endif 21822/* We use char because int might match the return type of a gcc2 21823 builtin and then its argument prototype would still apply. */ 21824char strerror (); 21825char (*f) (); 21826 21827#ifdef F77_DUMMY_MAIN 21828# ifdef __cplusplus 21829 extern "C" 21830# endif 21831 int F77_DUMMY_MAIN() { return 1; } 21832#endif 21833int 21834main () 21835{ 21836/* The GNU C library defines this for functions which it implements 21837 to always fail with ENOSYS. Some functions are actually named 21838 something starting with __ and the normal name is an alias. */ 21839#if defined (__stub_strerror) || defined (__stub___strerror) 21840choke me 21841#else 21842f = strerror; 21843#endif 21844 21845 ; 21846 return 0; 21847} 21848_ACEOF 21849rm -f conftest.$ac_objext conftest$ac_exeext 21850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21851 (eval $ac_link) 2>&5 21852 ac_status=$? 21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21854 (exit $ac_status); } && 21855 { ac_try='test -s conftest$ac_exeext' 21856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21857 (eval $ac_try) 2>&5 21858 ac_status=$? 21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21860 (exit $ac_status); }; }; then 21861 ac_cv_func_strerror=yes 21862else 21863 echo "$as_me: failed program was:" >&5 21864cat conftest.$ac_ext >&5 21865ac_cv_func_strerror=no 21866fi 21867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21868fi 21869echo "$as_me:$LINENO: result: $ac_cv_func_strerror" >&5 21870echo "${ECHO_T}$ac_cv_func_strerror" >&6 21871if test $ac_cv_func_strerror = yes; then 21872 21873cat >>confdefs.h <<_ACEOF 21874#define HAVE_STRERROR 1 21875_ACEOF 21876 21877else 21878 LIBOBJS="$LIBOBJS strerror.$ac_objext" 21879fi 21880echo "$as_me:$LINENO: checking for strftime" >&5 21881echo $ECHO_N "checking for strftime... $ECHO_C" >&6 21882if test "${ac_cv_func_strftime+set}" = set; then 21883 echo $ECHO_N "(cached) $ECHO_C" >&6 21884else 21885 cat >conftest.$ac_ext <<_ACEOF 21886#line $LINENO "configure" 21887#include "confdefs.h" 21888/* System header to define __stub macros and hopefully few prototypes, 21889 which can conflict with char strftime (); below. */ 21890#include <assert.h> 21891/* Override any gcc2 internal prototype to avoid an error. */ 21892#ifdef __cplusplus 21893extern "C" 21894#endif 21895/* We use char because int might match the return type of a gcc2 21896 builtin and then its argument prototype would still apply. */ 21897char strftime (); 21898char (*f) (); 21899 21900#ifdef F77_DUMMY_MAIN 21901# ifdef __cplusplus 21902 extern "C" 21903# endif 21904 int F77_DUMMY_MAIN() { return 1; } 21905#endif 21906int 21907main () 21908{ 21909/* The GNU C library defines this for functions which it implements 21910 to always fail with ENOSYS. Some functions are actually named 21911 something starting with __ and the normal name is an alias. */ 21912#if defined (__stub_strftime) || defined (__stub___strftime) 21913choke me 21914#else 21915f = strftime; 21916#endif 21917 21918 ; 21919 return 0; 21920} 21921_ACEOF 21922rm -f conftest.$ac_objext conftest$ac_exeext 21923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21924 (eval $ac_link) 2>&5 21925 ac_status=$? 21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21927 (exit $ac_status); } && 21928 { ac_try='test -s conftest$ac_exeext' 21929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21930 (eval $ac_try) 2>&5 21931 ac_status=$? 21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21933 (exit $ac_status); }; }; then 21934 ac_cv_func_strftime=yes 21935else 21936 echo "$as_me: failed program was:" >&5 21937cat conftest.$ac_ext >&5 21938ac_cv_func_strftime=no 21939fi 21940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 21941fi 21942echo "$as_me:$LINENO: result: $ac_cv_func_strftime" >&5 21943echo "${ECHO_T}$ac_cv_func_strftime" >&6 21944if test $ac_cv_func_strftime = yes; then 21945 21946cat >>confdefs.h <<_ACEOF 21947#define HAVE_STRFTIME 1 21948_ACEOF 21949 21950else 21951 LIBOBJS="$LIBOBJS strftime.$ac_objext" 21952fi 21953echo "$as_me:$LINENO: checking for strlcat" >&5 21954echo $ECHO_N "checking for strlcat... $ECHO_C" >&6 21955if test "${ac_cv_func_strlcat+set}" = set; then 21956 echo $ECHO_N "(cached) $ECHO_C" >&6 21957else 21958 cat >conftest.$ac_ext <<_ACEOF 21959#line $LINENO "configure" 21960#include "confdefs.h" 21961/* System header to define __stub macros and hopefully few prototypes, 21962 which can conflict with char strlcat (); below. */ 21963#include <assert.h> 21964/* Override any gcc2 internal prototype to avoid an error. */ 21965#ifdef __cplusplus 21966extern "C" 21967#endif 21968/* We use char because int might match the return type of a gcc2 21969 builtin and then its argument prototype would still apply. */ 21970char strlcat (); 21971char (*f) (); 21972 21973#ifdef F77_DUMMY_MAIN 21974# ifdef __cplusplus 21975 extern "C" 21976# endif 21977 int F77_DUMMY_MAIN() { return 1; } 21978#endif 21979int 21980main () 21981{ 21982/* The GNU C library defines this for functions which it implements 21983 to always fail with ENOSYS. Some functions are actually named 21984 something starting with __ and the normal name is an alias. */ 21985#if defined (__stub_strlcat) || defined (__stub___strlcat) 21986choke me 21987#else 21988f = strlcat; 21989#endif 21990 21991 ; 21992 return 0; 21993} 21994_ACEOF 21995rm -f conftest.$ac_objext conftest$ac_exeext 21996if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21997 (eval $ac_link) 2>&5 21998 ac_status=$? 21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22000 (exit $ac_status); } && 22001 { ac_try='test -s conftest$ac_exeext' 22002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22003 (eval $ac_try) 2>&5 22004 ac_status=$? 22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22006 (exit $ac_status); }; }; then 22007 ac_cv_func_strlcat=yes 22008else 22009 echo "$as_me: failed program was:" >&5 22010cat conftest.$ac_ext >&5 22011ac_cv_func_strlcat=no 22012fi 22013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22014fi 22015echo "$as_me:$LINENO: result: $ac_cv_func_strlcat" >&5 22016echo "${ECHO_T}$ac_cv_func_strlcat" >&6 22017if test $ac_cv_func_strlcat = yes; then 22018 22019cat >>confdefs.h <<_ACEOF 22020#define HAVE_STRLCAT 1 22021_ACEOF 22022 22023else 22024 LIBOBJS="$LIBOBJS strlcat.$ac_objext" 22025fi 22026echo "$as_me:$LINENO: checking for strlcpy" >&5 22027echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6 22028if test "${ac_cv_func_strlcpy+set}" = set; then 22029 echo $ECHO_N "(cached) $ECHO_C" >&6 22030else 22031 cat >conftest.$ac_ext <<_ACEOF 22032#line $LINENO "configure" 22033#include "confdefs.h" 22034/* System header to define __stub macros and hopefully few prototypes, 22035 which can conflict with char strlcpy (); below. */ 22036#include <assert.h> 22037/* Override any gcc2 internal prototype to avoid an error. */ 22038#ifdef __cplusplus 22039extern "C" 22040#endif 22041/* We use char because int might match the return type of a gcc2 22042 builtin and then its argument prototype would still apply. */ 22043char strlcpy (); 22044char (*f) (); 22045 22046#ifdef F77_DUMMY_MAIN 22047# ifdef __cplusplus 22048 extern "C" 22049# endif 22050 int F77_DUMMY_MAIN() { return 1; } 22051#endif 22052int 22053main () 22054{ 22055/* The GNU C library defines this for functions which it implements 22056 to always fail with ENOSYS. Some functions are actually named 22057 something starting with __ and the normal name is an alias. */ 22058#if defined (__stub_strlcpy) || defined (__stub___strlcpy) 22059choke me 22060#else 22061f = strlcpy; 22062#endif 22063 22064 ; 22065 return 0; 22066} 22067_ACEOF 22068rm -f conftest.$ac_objext conftest$ac_exeext 22069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22070 (eval $ac_link) 2>&5 22071 ac_status=$? 22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22073 (exit $ac_status); } && 22074 { ac_try='test -s conftest$ac_exeext' 22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22076 (eval $ac_try) 2>&5 22077 ac_status=$? 22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22079 (exit $ac_status); }; }; then 22080 ac_cv_func_strlcpy=yes 22081else 22082 echo "$as_me: failed program was:" >&5 22083cat conftest.$ac_ext >&5 22084ac_cv_func_strlcpy=no 22085fi 22086rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22087fi 22088echo "$as_me:$LINENO: result: $ac_cv_func_strlcpy" >&5 22089echo "${ECHO_T}$ac_cv_func_strlcpy" >&6 22090if test $ac_cv_func_strlcpy = yes; then 22091 22092cat >>confdefs.h <<_ACEOF 22093#define HAVE_STRLCPY 1 22094_ACEOF 22095 22096else 22097 LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 22098fi 22099echo "$as_me:$LINENO: checking for strlwr" >&5 22100echo $ECHO_N "checking for strlwr... $ECHO_C" >&6 22101if test "${ac_cv_func_strlwr+set}" = set; then 22102 echo $ECHO_N "(cached) $ECHO_C" >&6 22103else 22104 cat >conftest.$ac_ext <<_ACEOF 22105#line $LINENO "configure" 22106#include "confdefs.h" 22107/* System header to define __stub macros and hopefully few prototypes, 22108 which can conflict with char strlwr (); below. */ 22109#include <assert.h> 22110/* Override any gcc2 internal prototype to avoid an error. */ 22111#ifdef __cplusplus 22112extern "C" 22113#endif 22114/* We use char because int might match the return type of a gcc2 22115 builtin and then its argument prototype would still apply. */ 22116char strlwr (); 22117char (*f) (); 22118 22119#ifdef F77_DUMMY_MAIN 22120# ifdef __cplusplus 22121 extern "C" 22122# endif 22123 int F77_DUMMY_MAIN() { return 1; } 22124#endif 22125int 22126main () 22127{ 22128/* The GNU C library defines this for functions which it implements 22129 to always fail with ENOSYS. Some functions are actually named 22130 something starting with __ and the normal name is an alias. */ 22131#if defined (__stub_strlwr) || defined (__stub___strlwr) 22132choke me 22133#else 22134f = strlwr; 22135#endif 22136 22137 ; 22138 return 0; 22139} 22140_ACEOF 22141rm -f conftest.$ac_objext conftest$ac_exeext 22142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22143 (eval $ac_link) 2>&5 22144 ac_status=$? 22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22146 (exit $ac_status); } && 22147 { ac_try='test -s conftest$ac_exeext' 22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22149 (eval $ac_try) 2>&5 22150 ac_status=$? 22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22152 (exit $ac_status); }; }; then 22153 ac_cv_func_strlwr=yes 22154else 22155 echo "$as_me: failed program was:" >&5 22156cat conftest.$ac_ext >&5 22157ac_cv_func_strlwr=no 22158fi 22159rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22160fi 22161echo "$as_me:$LINENO: result: $ac_cv_func_strlwr" >&5 22162echo "${ECHO_T}$ac_cv_func_strlwr" >&6 22163if test $ac_cv_func_strlwr = yes; then 22164 22165cat >>confdefs.h <<_ACEOF 22166#define HAVE_STRLWR 1 22167_ACEOF 22168 22169else 22170 LIBOBJS="$LIBOBJS strlwr.$ac_objext" 22171fi 22172echo "$as_me:$LINENO: checking for strncasecmp" >&5 22173echo $ECHO_N "checking for strncasecmp... $ECHO_C" >&6 22174if test "${ac_cv_func_strncasecmp+set}" = set; then 22175 echo $ECHO_N "(cached) $ECHO_C" >&6 22176else 22177 cat >conftest.$ac_ext <<_ACEOF 22178#line $LINENO "configure" 22179#include "confdefs.h" 22180/* System header to define __stub macros and hopefully few prototypes, 22181 which can conflict with char strncasecmp (); below. */ 22182#include <assert.h> 22183/* Override any gcc2 internal prototype to avoid an error. */ 22184#ifdef __cplusplus 22185extern "C" 22186#endif 22187/* We use char because int might match the return type of a gcc2 22188 builtin and then its argument prototype would still apply. */ 22189char strncasecmp (); 22190char (*f) (); 22191 22192#ifdef F77_DUMMY_MAIN 22193# ifdef __cplusplus 22194 extern "C" 22195# endif 22196 int F77_DUMMY_MAIN() { return 1; } 22197#endif 22198int 22199main () 22200{ 22201/* The GNU C library defines this for functions which it implements 22202 to always fail with ENOSYS. Some functions are actually named 22203 something starting with __ and the normal name is an alias. */ 22204#if defined (__stub_strncasecmp) || defined (__stub___strncasecmp) 22205choke me 22206#else 22207f = strncasecmp; 22208#endif 22209 22210 ; 22211 return 0; 22212} 22213_ACEOF 22214rm -f conftest.$ac_objext conftest$ac_exeext 22215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22216 (eval $ac_link) 2>&5 22217 ac_status=$? 22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22219 (exit $ac_status); } && 22220 { ac_try='test -s conftest$ac_exeext' 22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22222 (eval $ac_try) 2>&5 22223 ac_status=$? 22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22225 (exit $ac_status); }; }; then 22226 ac_cv_func_strncasecmp=yes 22227else 22228 echo "$as_me: failed program was:" >&5 22229cat conftest.$ac_ext >&5 22230ac_cv_func_strncasecmp=no 22231fi 22232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22233fi 22234echo "$as_me:$LINENO: result: $ac_cv_func_strncasecmp" >&5 22235echo "${ECHO_T}$ac_cv_func_strncasecmp" >&6 22236if test $ac_cv_func_strncasecmp = yes; then 22237 22238cat >>confdefs.h <<_ACEOF 22239#define HAVE_STRNCASECMP 1 22240_ACEOF 22241 22242else 22243 LIBOBJS="$LIBOBJS strncasecmp.$ac_objext" 22244fi 22245echo "$as_me:$LINENO: checking for strndup" >&5 22246echo $ECHO_N "checking for strndup... $ECHO_C" >&6 22247if test "${ac_cv_func_strndup+set}" = set; then 22248 echo $ECHO_N "(cached) $ECHO_C" >&6 22249else 22250 cat >conftest.$ac_ext <<_ACEOF 22251#line $LINENO "configure" 22252#include "confdefs.h" 22253/* System header to define __stub macros and hopefully few prototypes, 22254 which can conflict with char strndup (); below. */ 22255#include <assert.h> 22256/* Override any gcc2 internal prototype to avoid an error. */ 22257#ifdef __cplusplus 22258extern "C" 22259#endif 22260/* We use char because int might match the return type of a gcc2 22261 builtin and then its argument prototype would still apply. */ 22262char strndup (); 22263char (*f) (); 22264 22265#ifdef F77_DUMMY_MAIN 22266# ifdef __cplusplus 22267 extern "C" 22268# endif 22269 int F77_DUMMY_MAIN() { return 1; } 22270#endif 22271int 22272main () 22273{ 22274/* The GNU C library defines this for functions which it implements 22275 to always fail with ENOSYS. Some functions are actually named 22276 something starting with __ and the normal name is an alias. */ 22277#if defined (__stub_strndup) || defined (__stub___strndup) 22278choke me 22279#else 22280f = strndup; 22281#endif 22282 22283 ; 22284 return 0; 22285} 22286_ACEOF 22287rm -f conftest.$ac_objext conftest$ac_exeext 22288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22289 (eval $ac_link) 2>&5 22290 ac_status=$? 22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22292 (exit $ac_status); } && 22293 { ac_try='test -s conftest$ac_exeext' 22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22295 (eval $ac_try) 2>&5 22296 ac_status=$? 22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22298 (exit $ac_status); }; }; then 22299 ac_cv_func_strndup=yes 22300else 22301 echo "$as_me: failed program was:" >&5 22302cat conftest.$ac_ext >&5 22303ac_cv_func_strndup=no 22304fi 22305rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22306fi 22307echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5 22308echo "${ECHO_T}$ac_cv_func_strndup" >&6 22309if test $ac_cv_func_strndup = yes; then 22310 22311cat >>confdefs.h <<_ACEOF 22312#define HAVE_STRNDUP 1 22313_ACEOF 22314 22315else 22316 LIBOBJS="$LIBOBJS strndup.$ac_objext" 22317fi 22318echo "$as_me:$LINENO: checking for strnlen" >&5 22319echo $ECHO_N "checking for strnlen... $ECHO_C" >&6 22320if test "${ac_cv_func_strnlen+set}" = set; then 22321 echo $ECHO_N "(cached) $ECHO_C" >&6 22322else 22323 cat >conftest.$ac_ext <<_ACEOF 22324#line $LINENO "configure" 22325#include "confdefs.h" 22326/* System header to define __stub macros and hopefully few prototypes, 22327 which can conflict with char strnlen (); below. */ 22328#include <assert.h> 22329/* Override any gcc2 internal prototype to avoid an error. */ 22330#ifdef __cplusplus 22331extern "C" 22332#endif 22333/* We use char because int might match the return type of a gcc2 22334 builtin and then its argument prototype would still apply. */ 22335char strnlen (); 22336char (*f) (); 22337 22338#ifdef F77_DUMMY_MAIN 22339# ifdef __cplusplus 22340 extern "C" 22341# endif 22342 int F77_DUMMY_MAIN() { return 1; } 22343#endif 22344int 22345main () 22346{ 22347/* The GNU C library defines this for functions which it implements 22348 to always fail with ENOSYS. Some functions are actually named 22349 something starting with __ and the normal name is an alias. */ 22350#if defined (__stub_strnlen) || defined (__stub___strnlen) 22351choke me 22352#else 22353f = strnlen; 22354#endif 22355 22356 ; 22357 return 0; 22358} 22359_ACEOF 22360rm -f conftest.$ac_objext conftest$ac_exeext 22361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22362 (eval $ac_link) 2>&5 22363 ac_status=$? 22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22365 (exit $ac_status); } && 22366 { ac_try='test -s conftest$ac_exeext' 22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22368 (eval $ac_try) 2>&5 22369 ac_status=$? 22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22371 (exit $ac_status); }; }; then 22372 ac_cv_func_strnlen=yes 22373else 22374 echo "$as_me: failed program was:" >&5 22375cat conftest.$ac_ext >&5 22376ac_cv_func_strnlen=no 22377fi 22378rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22379fi 22380echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5 22381echo "${ECHO_T}$ac_cv_func_strnlen" >&6 22382if test $ac_cv_func_strnlen = yes; then 22383 22384cat >>confdefs.h <<_ACEOF 22385#define HAVE_STRNLEN 1 22386_ACEOF 22387 22388else 22389 LIBOBJS="$LIBOBJS strnlen.$ac_objext" 22390fi 22391echo "$as_me:$LINENO: checking for strptime" >&5 22392echo $ECHO_N "checking for strptime... $ECHO_C" >&6 22393if test "${ac_cv_func_strptime+set}" = set; then 22394 echo $ECHO_N "(cached) $ECHO_C" >&6 22395else 22396 cat >conftest.$ac_ext <<_ACEOF 22397#line $LINENO "configure" 22398#include "confdefs.h" 22399/* System header to define __stub macros and hopefully few prototypes, 22400 which can conflict with char strptime (); below. */ 22401#include <assert.h> 22402/* Override any gcc2 internal prototype to avoid an error. */ 22403#ifdef __cplusplus 22404extern "C" 22405#endif 22406/* We use char because int might match the return type of a gcc2 22407 builtin and then its argument prototype would still apply. */ 22408char strptime (); 22409char (*f) (); 22410 22411#ifdef F77_DUMMY_MAIN 22412# ifdef __cplusplus 22413 extern "C" 22414# endif 22415 int F77_DUMMY_MAIN() { return 1; } 22416#endif 22417int 22418main () 22419{ 22420/* The GNU C library defines this for functions which it implements 22421 to always fail with ENOSYS. Some functions are actually named 22422 something starting with __ and the normal name is an alias. */ 22423#if defined (__stub_strptime) || defined (__stub___strptime) 22424choke me 22425#else 22426f = strptime; 22427#endif 22428 22429 ; 22430 return 0; 22431} 22432_ACEOF 22433rm -f conftest.$ac_objext conftest$ac_exeext 22434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22435 (eval $ac_link) 2>&5 22436 ac_status=$? 22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22438 (exit $ac_status); } && 22439 { ac_try='test -s conftest$ac_exeext' 22440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22441 (eval $ac_try) 2>&5 22442 ac_status=$? 22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22444 (exit $ac_status); }; }; then 22445 ac_cv_func_strptime=yes 22446else 22447 echo "$as_me: failed program was:" >&5 22448cat conftest.$ac_ext >&5 22449ac_cv_func_strptime=no 22450fi 22451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22452fi 22453echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5 22454echo "${ECHO_T}$ac_cv_func_strptime" >&6 22455if test $ac_cv_func_strptime = yes; then 22456 22457cat >>confdefs.h <<_ACEOF 22458#define HAVE_STRPTIME 1 22459_ACEOF 22460 22461else 22462 LIBOBJS="$LIBOBJS strptime.$ac_objext" 22463fi 22464echo "$as_me:$LINENO: checking for strsep" >&5 22465echo $ECHO_N "checking for strsep... $ECHO_C" >&6 22466if test "${ac_cv_func_strsep+set}" = set; then 22467 echo $ECHO_N "(cached) $ECHO_C" >&6 22468else 22469 cat >conftest.$ac_ext <<_ACEOF 22470#line $LINENO "configure" 22471#include "confdefs.h" 22472/* System header to define __stub macros and hopefully few prototypes, 22473 which can conflict with char strsep (); below. */ 22474#include <assert.h> 22475/* Override any gcc2 internal prototype to avoid an error. */ 22476#ifdef __cplusplus 22477extern "C" 22478#endif 22479/* We use char because int might match the return type of a gcc2 22480 builtin and then its argument prototype would still apply. */ 22481char strsep (); 22482char (*f) (); 22483 22484#ifdef F77_DUMMY_MAIN 22485# ifdef __cplusplus 22486 extern "C" 22487# endif 22488 int F77_DUMMY_MAIN() { return 1; } 22489#endif 22490int 22491main () 22492{ 22493/* The GNU C library defines this for functions which it implements 22494 to always fail with ENOSYS. Some functions are actually named 22495 something starting with __ and the normal name is an alias. */ 22496#if defined (__stub_strsep) || defined (__stub___strsep) 22497choke me 22498#else 22499f = strsep; 22500#endif 22501 22502 ; 22503 return 0; 22504} 22505_ACEOF 22506rm -f conftest.$ac_objext conftest$ac_exeext 22507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22508 (eval $ac_link) 2>&5 22509 ac_status=$? 22510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22511 (exit $ac_status); } && 22512 { ac_try='test -s conftest$ac_exeext' 22513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22514 (eval $ac_try) 2>&5 22515 ac_status=$? 22516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22517 (exit $ac_status); }; }; then 22518 ac_cv_func_strsep=yes 22519else 22520 echo "$as_me: failed program was:" >&5 22521cat conftest.$ac_ext >&5 22522ac_cv_func_strsep=no 22523fi 22524rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22525fi 22526echo "$as_me:$LINENO: result: $ac_cv_func_strsep" >&5 22527echo "${ECHO_T}$ac_cv_func_strsep" >&6 22528if test $ac_cv_func_strsep = yes; then 22529 22530cat >>confdefs.h <<_ACEOF 22531#define HAVE_STRSEP 1 22532_ACEOF 22533 22534else 22535 LIBOBJS="$LIBOBJS strsep.$ac_objext" 22536fi 22537echo "$as_me:$LINENO: checking for strsep_copy" >&5 22538echo $ECHO_N "checking for strsep_copy... $ECHO_C" >&6 22539if test "${ac_cv_func_strsep_copy+set}" = set; then 22540 echo $ECHO_N "(cached) $ECHO_C" >&6 22541else 22542 cat >conftest.$ac_ext <<_ACEOF 22543#line $LINENO "configure" 22544#include "confdefs.h" 22545/* System header to define __stub macros and hopefully few prototypes, 22546 which can conflict with char strsep_copy (); below. */ 22547#include <assert.h> 22548/* Override any gcc2 internal prototype to avoid an error. */ 22549#ifdef __cplusplus 22550extern "C" 22551#endif 22552/* We use char because int might match the return type of a gcc2 22553 builtin and then its argument prototype would still apply. */ 22554char strsep_copy (); 22555char (*f) (); 22556 22557#ifdef F77_DUMMY_MAIN 22558# ifdef __cplusplus 22559 extern "C" 22560# endif 22561 int F77_DUMMY_MAIN() { return 1; } 22562#endif 22563int 22564main () 22565{ 22566/* The GNU C library defines this for functions which it implements 22567 to always fail with ENOSYS. Some functions are actually named 22568 something starting with __ and the normal name is an alias. */ 22569#if defined (__stub_strsep_copy) || defined (__stub___strsep_copy) 22570choke me 22571#else 22572f = strsep_copy; 22573#endif 22574 22575 ; 22576 return 0; 22577} 22578_ACEOF 22579rm -f conftest.$ac_objext conftest$ac_exeext 22580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22581 (eval $ac_link) 2>&5 22582 ac_status=$? 22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22584 (exit $ac_status); } && 22585 { ac_try='test -s conftest$ac_exeext' 22586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22587 (eval $ac_try) 2>&5 22588 ac_status=$? 22589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22590 (exit $ac_status); }; }; then 22591 ac_cv_func_strsep_copy=yes 22592else 22593 echo "$as_me: failed program was:" >&5 22594cat conftest.$ac_ext >&5 22595ac_cv_func_strsep_copy=no 22596fi 22597rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22598fi 22599echo "$as_me:$LINENO: result: $ac_cv_func_strsep_copy" >&5 22600echo "${ECHO_T}$ac_cv_func_strsep_copy" >&6 22601if test $ac_cv_func_strsep_copy = yes; then 22602 22603cat >>confdefs.h <<_ACEOF 22604#define HAVE_STRSEP_COPY 1 22605_ACEOF 22606 22607else 22608 LIBOBJS="$LIBOBJS strsep_copy.$ac_objext" 22609fi 22610echo "$as_me:$LINENO: checking for strtok_r" >&5 22611echo $ECHO_N "checking for strtok_r... $ECHO_C" >&6 22612if test "${ac_cv_func_strtok_r+set}" = set; then 22613 echo $ECHO_N "(cached) $ECHO_C" >&6 22614else 22615 cat >conftest.$ac_ext <<_ACEOF 22616#line $LINENO "configure" 22617#include "confdefs.h" 22618/* System header to define __stub macros and hopefully few prototypes, 22619 which can conflict with char strtok_r (); below. */ 22620#include <assert.h> 22621/* Override any gcc2 internal prototype to avoid an error. */ 22622#ifdef __cplusplus 22623extern "C" 22624#endif 22625/* We use char because int might match the return type of a gcc2 22626 builtin and then its argument prototype would still apply. */ 22627char strtok_r (); 22628char (*f) (); 22629 22630#ifdef F77_DUMMY_MAIN 22631# ifdef __cplusplus 22632 extern "C" 22633# endif 22634 int F77_DUMMY_MAIN() { return 1; } 22635#endif 22636int 22637main () 22638{ 22639/* The GNU C library defines this for functions which it implements 22640 to always fail with ENOSYS. Some functions are actually named 22641 something starting with __ and the normal name is an alias. */ 22642#if defined (__stub_strtok_r) || defined (__stub___strtok_r) 22643choke me 22644#else 22645f = strtok_r; 22646#endif 22647 22648 ; 22649 return 0; 22650} 22651_ACEOF 22652rm -f conftest.$ac_objext conftest$ac_exeext 22653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22654 (eval $ac_link) 2>&5 22655 ac_status=$? 22656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22657 (exit $ac_status); } && 22658 { ac_try='test -s conftest$ac_exeext' 22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22660 (eval $ac_try) 2>&5 22661 ac_status=$? 22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22663 (exit $ac_status); }; }; then 22664 ac_cv_func_strtok_r=yes 22665else 22666 echo "$as_me: failed program was:" >&5 22667cat conftest.$ac_ext >&5 22668ac_cv_func_strtok_r=no 22669fi 22670rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22671fi 22672echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r" >&5 22673echo "${ECHO_T}$ac_cv_func_strtok_r" >&6 22674if test $ac_cv_func_strtok_r = yes; then 22675 22676cat >>confdefs.h <<_ACEOF 22677#define HAVE_STRTOK_R 1 22678_ACEOF 22679 22680else 22681 LIBOBJS="$LIBOBJS strtok_r.$ac_objext" 22682fi 22683echo "$as_me:$LINENO: checking for strupr" >&5 22684echo $ECHO_N "checking for strupr... $ECHO_C" >&6 22685if test "${ac_cv_func_strupr+set}" = set; then 22686 echo $ECHO_N "(cached) $ECHO_C" >&6 22687else 22688 cat >conftest.$ac_ext <<_ACEOF 22689#line $LINENO "configure" 22690#include "confdefs.h" 22691/* System header to define __stub macros and hopefully few prototypes, 22692 which can conflict with char strupr (); below. */ 22693#include <assert.h> 22694/* Override any gcc2 internal prototype to avoid an error. */ 22695#ifdef __cplusplus 22696extern "C" 22697#endif 22698/* We use char because int might match the return type of a gcc2 22699 builtin and then its argument prototype would still apply. */ 22700char strupr (); 22701char (*f) (); 22702 22703#ifdef F77_DUMMY_MAIN 22704# ifdef __cplusplus 22705 extern "C" 22706# endif 22707 int F77_DUMMY_MAIN() { return 1; } 22708#endif 22709int 22710main () 22711{ 22712/* The GNU C library defines this for functions which it implements 22713 to always fail with ENOSYS. Some functions are actually named 22714 something starting with __ and the normal name is an alias. */ 22715#if defined (__stub_strupr) || defined (__stub___strupr) 22716choke me 22717#else 22718f = strupr; 22719#endif 22720 22721 ; 22722 return 0; 22723} 22724_ACEOF 22725rm -f conftest.$ac_objext conftest$ac_exeext 22726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22727 (eval $ac_link) 2>&5 22728 ac_status=$? 22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22730 (exit $ac_status); } && 22731 { ac_try='test -s conftest$ac_exeext' 22732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22733 (eval $ac_try) 2>&5 22734 ac_status=$? 22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22736 (exit $ac_status); }; }; then 22737 ac_cv_func_strupr=yes 22738else 22739 echo "$as_me: failed program was:" >&5 22740cat conftest.$ac_ext >&5 22741ac_cv_func_strupr=no 22742fi 22743rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22744fi 22745echo "$as_me:$LINENO: result: $ac_cv_func_strupr" >&5 22746echo "${ECHO_T}$ac_cv_func_strupr" >&6 22747if test $ac_cv_func_strupr = yes; then 22748 22749cat >>confdefs.h <<_ACEOF 22750#define HAVE_STRUPR 1 22751_ACEOF 22752 22753else 22754 LIBOBJS="$LIBOBJS strupr.$ac_objext" 22755fi 22756echo "$as_me:$LINENO: checking for swab" >&5 22757echo $ECHO_N "checking for swab... $ECHO_C" >&6 22758if test "${ac_cv_func_swab+set}" = set; then 22759 echo $ECHO_N "(cached) $ECHO_C" >&6 22760else 22761 cat >conftest.$ac_ext <<_ACEOF 22762#line $LINENO "configure" 22763#include "confdefs.h" 22764/* System header to define __stub macros and hopefully few prototypes, 22765 which can conflict with char swab (); below. */ 22766#include <assert.h> 22767/* Override any gcc2 internal prototype to avoid an error. */ 22768#ifdef __cplusplus 22769extern "C" 22770#endif 22771/* We use char because int might match the return type of a gcc2 22772 builtin and then its argument prototype would still apply. */ 22773char swab (); 22774char (*f) (); 22775 22776#ifdef F77_DUMMY_MAIN 22777# ifdef __cplusplus 22778 extern "C" 22779# endif 22780 int F77_DUMMY_MAIN() { return 1; } 22781#endif 22782int 22783main () 22784{ 22785/* The GNU C library defines this for functions which it implements 22786 to always fail with ENOSYS. Some functions are actually named 22787 something starting with __ and the normal name is an alias. */ 22788#if defined (__stub_swab) || defined (__stub___swab) 22789choke me 22790#else 22791f = swab; 22792#endif 22793 22794 ; 22795 return 0; 22796} 22797_ACEOF 22798rm -f conftest.$ac_objext conftest$ac_exeext 22799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22800 (eval $ac_link) 2>&5 22801 ac_status=$? 22802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22803 (exit $ac_status); } && 22804 { ac_try='test -s conftest$ac_exeext' 22805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22806 (eval $ac_try) 2>&5 22807 ac_status=$? 22808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22809 (exit $ac_status); }; }; then 22810 ac_cv_func_swab=yes 22811else 22812 echo "$as_me: failed program was:" >&5 22813cat conftest.$ac_ext >&5 22814ac_cv_func_swab=no 22815fi 22816rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22817fi 22818echo "$as_me:$LINENO: result: $ac_cv_func_swab" >&5 22819echo "${ECHO_T}$ac_cv_func_swab" >&6 22820if test $ac_cv_func_swab = yes; then 22821 22822cat >>confdefs.h <<_ACEOF 22823#define HAVE_SWAB 1 22824_ACEOF 22825 22826else 22827 LIBOBJS="$LIBOBJS swab.$ac_objext" 22828fi 22829echo "$as_me:$LINENO: checking for unsetenv" >&5 22830echo $ECHO_N "checking for unsetenv... $ECHO_C" >&6 22831if test "${ac_cv_func_unsetenv+set}" = set; then 22832 echo $ECHO_N "(cached) $ECHO_C" >&6 22833else 22834 cat >conftest.$ac_ext <<_ACEOF 22835#line $LINENO "configure" 22836#include "confdefs.h" 22837/* System header to define __stub macros and hopefully few prototypes, 22838 which can conflict with char unsetenv (); below. */ 22839#include <assert.h> 22840/* Override any gcc2 internal prototype to avoid an error. */ 22841#ifdef __cplusplus 22842extern "C" 22843#endif 22844/* We use char because int might match the return type of a gcc2 22845 builtin and then its argument prototype would still apply. */ 22846char unsetenv (); 22847char (*f) (); 22848 22849#ifdef F77_DUMMY_MAIN 22850# ifdef __cplusplus 22851 extern "C" 22852# endif 22853 int F77_DUMMY_MAIN() { return 1; } 22854#endif 22855int 22856main () 22857{ 22858/* The GNU C library defines this for functions which it implements 22859 to always fail with ENOSYS. Some functions are actually named 22860 something starting with __ and the normal name is an alias. */ 22861#if defined (__stub_unsetenv) || defined (__stub___unsetenv) 22862choke me 22863#else 22864f = unsetenv; 22865#endif 22866 22867 ; 22868 return 0; 22869} 22870_ACEOF 22871rm -f conftest.$ac_objext conftest$ac_exeext 22872if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22873 (eval $ac_link) 2>&5 22874 ac_status=$? 22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22876 (exit $ac_status); } && 22877 { ac_try='test -s conftest$ac_exeext' 22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22879 (eval $ac_try) 2>&5 22880 ac_status=$? 22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22882 (exit $ac_status); }; }; then 22883 ac_cv_func_unsetenv=yes 22884else 22885 echo "$as_me: failed program was:" >&5 22886cat conftest.$ac_ext >&5 22887ac_cv_func_unsetenv=no 22888fi 22889rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22890fi 22891echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv" >&5 22892echo "${ECHO_T}$ac_cv_func_unsetenv" >&6 22893if test $ac_cv_func_unsetenv = yes; then 22894 22895cat >>confdefs.h <<_ACEOF 22896#define HAVE_UNSETENV 1 22897_ACEOF 22898 22899else 22900 LIBOBJS="$LIBOBJS unsetenv.$ac_objext" 22901fi 22902echo "$as_me:$LINENO: checking for verr" >&5 22903echo $ECHO_N "checking for verr... $ECHO_C" >&6 22904if test "${ac_cv_func_verr+set}" = set; then 22905 echo $ECHO_N "(cached) $ECHO_C" >&6 22906else 22907 cat >conftest.$ac_ext <<_ACEOF 22908#line $LINENO "configure" 22909#include "confdefs.h" 22910/* System header to define __stub macros and hopefully few prototypes, 22911 which can conflict with char verr (); below. */ 22912#include <assert.h> 22913/* Override any gcc2 internal prototype to avoid an error. */ 22914#ifdef __cplusplus 22915extern "C" 22916#endif 22917/* We use char because int might match the return type of a gcc2 22918 builtin and then its argument prototype would still apply. */ 22919char verr (); 22920char (*f) (); 22921 22922#ifdef F77_DUMMY_MAIN 22923# ifdef __cplusplus 22924 extern "C" 22925# endif 22926 int F77_DUMMY_MAIN() { return 1; } 22927#endif 22928int 22929main () 22930{ 22931/* The GNU C library defines this for functions which it implements 22932 to always fail with ENOSYS. Some functions are actually named 22933 something starting with __ and the normal name is an alias. */ 22934#if defined (__stub_verr) || defined (__stub___verr) 22935choke me 22936#else 22937f = verr; 22938#endif 22939 22940 ; 22941 return 0; 22942} 22943_ACEOF 22944rm -f conftest.$ac_objext conftest$ac_exeext 22945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22946 (eval $ac_link) 2>&5 22947 ac_status=$? 22948 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22949 (exit $ac_status); } && 22950 { ac_try='test -s conftest$ac_exeext' 22951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22952 (eval $ac_try) 2>&5 22953 ac_status=$? 22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22955 (exit $ac_status); }; }; then 22956 ac_cv_func_verr=yes 22957else 22958 echo "$as_me: failed program was:" >&5 22959cat conftest.$ac_ext >&5 22960ac_cv_func_verr=no 22961fi 22962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 22963fi 22964echo "$as_me:$LINENO: result: $ac_cv_func_verr" >&5 22965echo "${ECHO_T}$ac_cv_func_verr" >&6 22966if test $ac_cv_func_verr = yes; then 22967 22968cat >>confdefs.h <<_ACEOF 22969#define HAVE_VERR 1 22970_ACEOF 22971 22972else 22973 LIBOBJS="$LIBOBJS verr.$ac_objext" 22974fi 22975echo "$as_me:$LINENO: checking for verrx" >&5 22976echo $ECHO_N "checking for verrx... $ECHO_C" >&6 22977if test "${ac_cv_func_verrx+set}" = set; then 22978 echo $ECHO_N "(cached) $ECHO_C" >&6 22979else 22980 cat >conftest.$ac_ext <<_ACEOF 22981#line $LINENO "configure" 22982#include "confdefs.h" 22983/* System header to define __stub macros and hopefully few prototypes, 22984 which can conflict with char verrx (); below. */ 22985#include <assert.h> 22986/* Override any gcc2 internal prototype to avoid an error. */ 22987#ifdef __cplusplus 22988extern "C" 22989#endif 22990/* We use char because int might match the return type of a gcc2 22991 builtin and then its argument prototype would still apply. */ 22992char verrx (); 22993char (*f) (); 22994 22995#ifdef F77_DUMMY_MAIN 22996# ifdef __cplusplus 22997 extern "C" 22998# endif 22999 int F77_DUMMY_MAIN() { return 1; } 23000#endif 23001int 23002main () 23003{ 23004/* The GNU C library defines this for functions which it implements 23005 to always fail with ENOSYS. Some functions are actually named 23006 something starting with __ and the normal name is an alias. */ 23007#if defined (__stub_verrx) || defined (__stub___verrx) 23008choke me 23009#else 23010f = verrx; 23011#endif 23012 23013 ; 23014 return 0; 23015} 23016_ACEOF 23017rm -f conftest.$ac_objext conftest$ac_exeext 23018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23019 (eval $ac_link) 2>&5 23020 ac_status=$? 23021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23022 (exit $ac_status); } && 23023 { ac_try='test -s conftest$ac_exeext' 23024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23025 (eval $ac_try) 2>&5 23026 ac_status=$? 23027 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23028 (exit $ac_status); }; }; then 23029 ac_cv_func_verrx=yes 23030else 23031 echo "$as_me: failed program was:" >&5 23032cat conftest.$ac_ext >&5 23033ac_cv_func_verrx=no 23034fi 23035rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23036fi 23037echo "$as_me:$LINENO: result: $ac_cv_func_verrx" >&5 23038echo "${ECHO_T}$ac_cv_func_verrx" >&6 23039if test $ac_cv_func_verrx = yes; then 23040 23041cat >>confdefs.h <<_ACEOF 23042#define HAVE_VERRX 1 23043_ACEOF 23044 23045else 23046 LIBOBJS="$LIBOBJS verrx.$ac_objext" 23047fi 23048echo "$as_me:$LINENO: checking for vsyslog" >&5 23049echo $ECHO_N "checking for vsyslog... $ECHO_C" >&6 23050if test "${ac_cv_func_vsyslog+set}" = set; then 23051 echo $ECHO_N "(cached) $ECHO_C" >&6 23052else 23053 cat >conftest.$ac_ext <<_ACEOF 23054#line $LINENO "configure" 23055#include "confdefs.h" 23056/* System header to define __stub macros and hopefully few prototypes, 23057 which can conflict with char vsyslog (); below. */ 23058#include <assert.h> 23059/* Override any gcc2 internal prototype to avoid an error. */ 23060#ifdef __cplusplus 23061extern "C" 23062#endif 23063/* We use char because int might match the return type of a gcc2 23064 builtin and then its argument prototype would still apply. */ 23065char vsyslog (); 23066char (*f) (); 23067 23068#ifdef F77_DUMMY_MAIN 23069# ifdef __cplusplus 23070 extern "C" 23071# endif 23072 int F77_DUMMY_MAIN() { return 1; } 23073#endif 23074int 23075main () 23076{ 23077/* The GNU C library defines this for functions which it implements 23078 to always fail with ENOSYS. Some functions are actually named 23079 something starting with __ and the normal name is an alias. */ 23080#if defined (__stub_vsyslog) || defined (__stub___vsyslog) 23081choke me 23082#else 23083f = vsyslog; 23084#endif 23085 23086 ; 23087 return 0; 23088} 23089_ACEOF 23090rm -f conftest.$ac_objext conftest$ac_exeext 23091if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23092 (eval $ac_link) 2>&5 23093 ac_status=$? 23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23095 (exit $ac_status); } && 23096 { ac_try='test -s conftest$ac_exeext' 23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23098 (eval $ac_try) 2>&5 23099 ac_status=$? 23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23101 (exit $ac_status); }; }; then 23102 ac_cv_func_vsyslog=yes 23103else 23104 echo "$as_me: failed program was:" >&5 23105cat conftest.$ac_ext >&5 23106ac_cv_func_vsyslog=no 23107fi 23108rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23109fi 23110echo "$as_me:$LINENO: result: $ac_cv_func_vsyslog" >&5 23111echo "${ECHO_T}$ac_cv_func_vsyslog" >&6 23112if test $ac_cv_func_vsyslog = yes; then 23113 23114cat >>confdefs.h <<_ACEOF 23115#define HAVE_VSYSLOG 1 23116_ACEOF 23117 23118else 23119 LIBOBJS="$LIBOBJS vsyslog.$ac_objext" 23120fi 23121echo "$as_me:$LINENO: checking for vwarn" >&5 23122echo $ECHO_N "checking for vwarn... $ECHO_C" >&6 23123if test "${ac_cv_func_vwarn+set}" = set; then 23124 echo $ECHO_N "(cached) $ECHO_C" >&6 23125else 23126 cat >conftest.$ac_ext <<_ACEOF 23127#line $LINENO "configure" 23128#include "confdefs.h" 23129/* System header to define __stub macros and hopefully few prototypes, 23130 which can conflict with char vwarn (); below. */ 23131#include <assert.h> 23132/* Override any gcc2 internal prototype to avoid an error. */ 23133#ifdef __cplusplus 23134extern "C" 23135#endif 23136/* We use char because int might match the return type of a gcc2 23137 builtin and then its argument prototype would still apply. */ 23138char vwarn (); 23139char (*f) (); 23140 23141#ifdef F77_DUMMY_MAIN 23142# ifdef __cplusplus 23143 extern "C" 23144# endif 23145 int F77_DUMMY_MAIN() { return 1; } 23146#endif 23147int 23148main () 23149{ 23150/* The GNU C library defines this for functions which it implements 23151 to always fail with ENOSYS. Some functions are actually named 23152 something starting with __ and the normal name is an alias. */ 23153#if defined (__stub_vwarn) || defined (__stub___vwarn) 23154choke me 23155#else 23156f = vwarn; 23157#endif 23158 23159 ; 23160 return 0; 23161} 23162_ACEOF 23163rm -f conftest.$ac_objext conftest$ac_exeext 23164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23165 (eval $ac_link) 2>&5 23166 ac_status=$? 23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23168 (exit $ac_status); } && 23169 { ac_try='test -s conftest$ac_exeext' 23170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23171 (eval $ac_try) 2>&5 23172 ac_status=$? 23173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23174 (exit $ac_status); }; }; then 23175 ac_cv_func_vwarn=yes 23176else 23177 echo "$as_me: failed program was:" >&5 23178cat conftest.$ac_ext >&5 23179ac_cv_func_vwarn=no 23180fi 23181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23182fi 23183echo "$as_me:$LINENO: result: $ac_cv_func_vwarn" >&5 23184echo "${ECHO_T}$ac_cv_func_vwarn" >&6 23185if test $ac_cv_func_vwarn = yes; then 23186 23187cat >>confdefs.h <<_ACEOF 23188#define HAVE_VWARN 1 23189_ACEOF 23190 23191else 23192 LIBOBJS="$LIBOBJS vwarn.$ac_objext" 23193fi 23194echo "$as_me:$LINENO: checking for vwarnx" >&5 23195echo $ECHO_N "checking for vwarnx... $ECHO_C" >&6 23196if test "${ac_cv_func_vwarnx+set}" = set; then 23197 echo $ECHO_N "(cached) $ECHO_C" >&6 23198else 23199 cat >conftest.$ac_ext <<_ACEOF 23200#line $LINENO "configure" 23201#include "confdefs.h" 23202/* System header to define __stub macros and hopefully few prototypes, 23203 which can conflict with char vwarnx (); below. */ 23204#include <assert.h> 23205/* Override any gcc2 internal prototype to avoid an error. */ 23206#ifdef __cplusplus 23207extern "C" 23208#endif 23209/* We use char because int might match the return type of a gcc2 23210 builtin and then its argument prototype would still apply. */ 23211char vwarnx (); 23212char (*f) (); 23213 23214#ifdef F77_DUMMY_MAIN 23215# ifdef __cplusplus 23216 extern "C" 23217# endif 23218 int F77_DUMMY_MAIN() { return 1; } 23219#endif 23220int 23221main () 23222{ 23223/* The GNU C library defines this for functions which it implements 23224 to always fail with ENOSYS. Some functions are actually named 23225 something starting with __ and the normal name is an alias. */ 23226#if defined (__stub_vwarnx) || defined (__stub___vwarnx) 23227choke me 23228#else 23229f = vwarnx; 23230#endif 23231 23232 ; 23233 return 0; 23234} 23235_ACEOF 23236rm -f conftest.$ac_objext conftest$ac_exeext 23237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23238 (eval $ac_link) 2>&5 23239 ac_status=$? 23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23241 (exit $ac_status); } && 23242 { ac_try='test -s conftest$ac_exeext' 23243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23244 (eval $ac_try) 2>&5 23245 ac_status=$? 23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23247 (exit $ac_status); }; }; then 23248 ac_cv_func_vwarnx=yes 23249else 23250 echo "$as_me: failed program was:" >&5 23251cat conftest.$ac_ext >&5 23252ac_cv_func_vwarnx=no 23253fi 23254rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23255fi 23256echo "$as_me:$LINENO: result: $ac_cv_func_vwarnx" >&5 23257echo "${ECHO_T}$ac_cv_func_vwarnx" >&6 23258if test $ac_cv_func_vwarnx = yes; then 23259 23260cat >>confdefs.h <<_ACEOF 23261#define HAVE_VWARNX 1 23262_ACEOF 23263 23264else 23265 LIBOBJS="$LIBOBJS vwarnx.$ac_objext" 23266fi 23267echo "$as_me:$LINENO: checking for warn" >&5 23268echo $ECHO_N "checking for warn... $ECHO_C" >&6 23269if test "${ac_cv_func_warn+set}" = set; then 23270 echo $ECHO_N "(cached) $ECHO_C" >&6 23271else 23272 cat >conftest.$ac_ext <<_ACEOF 23273#line $LINENO "configure" 23274#include "confdefs.h" 23275/* System header to define __stub macros and hopefully few prototypes, 23276 which can conflict with char warn (); below. */ 23277#include <assert.h> 23278/* Override any gcc2 internal prototype to avoid an error. */ 23279#ifdef __cplusplus 23280extern "C" 23281#endif 23282/* We use char because int might match the return type of a gcc2 23283 builtin and then its argument prototype would still apply. */ 23284char warn (); 23285char (*f) (); 23286 23287#ifdef F77_DUMMY_MAIN 23288# ifdef __cplusplus 23289 extern "C" 23290# endif 23291 int F77_DUMMY_MAIN() { return 1; } 23292#endif 23293int 23294main () 23295{ 23296/* The GNU C library defines this for functions which it implements 23297 to always fail with ENOSYS. Some functions are actually named 23298 something starting with __ and the normal name is an alias. */ 23299#if defined (__stub_warn) || defined (__stub___warn) 23300choke me 23301#else 23302f = warn; 23303#endif 23304 23305 ; 23306 return 0; 23307} 23308_ACEOF 23309rm -f conftest.$ac_objext conftest$ac_exeext 23310if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23311 (eval $ac_link) 2>&5 23312 ac_status=$? 23313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23314 (exit $ac_status); } && 23315 { ac_try='test -s conftest$ac_exeext' 23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23317 (eval $ac_try) 2>&5 23318 ac_status=$? 23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23320 (exit $ac_status); }; }; then 23321 ac_cv_func_warn=yes 23322else 23323 echo "$as_me: failed program was:" >&5 23324cat conftest.$ac_ext >&5 23325ac_cv_func_warn=no 23326fi 23327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23328fi 23329echo "$as_me:$LINENO: result: $ac_cv_func_warn" >&5 23330echo "${ECHO_T}$ac_cv_func_warn" >&6 23331if test $ac_cv_func_warn = yes; then 23332 23333cat >>confdefs.h <<_ACEOF 23334#define HAVE_WARN 1 23335_ACEOF 23336 23337else 23338 LIBOBJS="$LIBOBJS warn.$ac_objext" 23339fi 23340echo "$as_me:$LINENO: checking for warnx" >&5 23341echo $ECHO_N "checking for warnx... $ECHO_C" >&6 23342if test "${ac_cv_func_warnx+set}" = set; then 23343 echo $ECHO_N "(cached) $ECHO_C" >&6 23344else 23345 cat >conftest.$ac_ext <<_ACEOF 23346#line $LINENO "configure" 23347#include "confdefs.h" 23348/* System header to define __stub macros and hopefully few prototypes, 23349 which can conflict with char warnx (); below. */ 23350#include <assert.h> 23351/* Override any gcc2 internal prototype to avoid an error. */ 23352#ifdef __cplusplus 23353extern "C" 23354#endif 23355/* We use char because int might match the return type of a gcc2 23356 builtin and then its argument prototype would still apply. */ 23357char warnx (); 23358char (*f) (); 23359 23360#ifdef F77_DUMMY_MAIN 23361# ifdef __cplusplus 23362 extern "C" 23363# endif 23364 int F77_DUMMY_MAIN() { return 1; } 23365#endif 23366int 23367main () 23368{ 23369/* The GNU C library defines this for functions which it implements 23370 to always fail with ENOSYS. Some functions are actually named 23371 something starting with __ and the normal name is an alias. */ 23372#if defined (__stub_warnx) || defined (__stub___warnx) 23373choke me 23374#else 23375f = warnx; 23376#endif 23377 23378 ; 23379 return 0; 23380} 23381_ACEOF 23382rm -f conftest.$ac_objext conftest$ac_exeext 23383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23384 (eval $ac_link) 2>&5 23385 ac_status=$? 23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23387 (exit $ac_status); } && 23388 { ac_try='test -s conftest$ac_exeext' 23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23390 (eval $ac_try) 2>&5 23391 ac_status=$? 23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23393 (exit $ac_status); }; }; then 23394 ac_cv_func_warnx=yes 23395else 23396 echo "$as_me: failed program was:" >&5 23397cat conftest.$ac_ext >&5 23398ac_cv_func_warnx=no 23399fi 23400rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23401fi 23402echo "$as_me:$LINENO: result: $ac_cv_func_warnx" >&5 23403echo "${ECHO_T}$ac_cv_func_warnx" >&6 23404if test $ac_cv_func_warnx = yes; then 23405 23406cat >>confdefs.h <<_ACEOF 23407#define HAVE_WARNX 1 23408_ACEOF 23409 23410else 23411 LIBOBJS="$LIBOBJS warnx.$ac_objext" 23412fi 23413echo "$as_me:$LINENO: checking for writev" >&5 23414echo $ECHO_N "checking for writev... $ECHO_C" >&6 23415if test "${ac_cv_func_writev+set}" = set; then 23416 echo $ECHO_N "(cached) $ECHO_C" >&6 23417else 23418 cat >conftest.$ac_ext <<_ACEOF 23419#line $LINENO "configure" 23420#include "confdefs.h" 23421/* System header to define __stub macros and hopefully few prototypes, 23422 which can conflict with char writev (); below. */ 23423#include <assert.h> 23424/* Override any gcc2 internal prototype to avoid an error. */ 23425#ifdef __cplusplus 23426extern "C" 23427#endif 23428/* We use char because int might match the return type of a gcc2 23429 builtin and then its argument prototype would still apply. */ 23430char writev (); 23431char (*f) (); 23432 23433#ifdef F77_DUMMY_MAIN 23434# ifdef __cplusplus 23435 extern "C" 23436# endif 23437 int F77_DUMMY_MAIN() { return 1; } 23438#endif 23439int 23440main () 23441{ 23442/* The GNU C library defines this for functions which it implements 23443 to always fail with ENOSYS. Some functions are actually named 23444 something starting with __ and the normal name is an alias. */ 23445#if defined (__stub_writev) || defined (__stub___writev) 23446choke me 23447#else 23448f = writev; 23449#endif 23450 23451 ; 23452 return 0; 23453} 23454_ACEOF 23455rm -f conftest.$ac_objext conftest$ac_exeext 23456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23457 (eval $ac_link) 2>&5 23458 ac_status=$? 23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23460 (exit $ac_status); } && 23461 { ac_try='test -s conftest$ac_exeext' 23462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23463 (eval $ac_try) 2>&5 23464 ac_status=$? 23465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23466 (exit $ac_status); }; }; then 23467 ac_cv_func_writev=yes 23468else 23469 echo "$as_me: failed program was:" >&5 23470cat conftest.$ac_ext >&5 23471ac_cv_func_writev=no 23472fi 23473rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 23474fi 23475echo "$as_me:$LINENO: result: $ac_cv_func_writev" >&5 23476echo "${ECHO_T}$ac_cv_func_writev" >&6 23477if test $ac_cv_func_writev = yes; then 23478 23479cat >>confdefs.h <<_ACEOF 23480#define HAVE_WRITEV 1 23481_ACEOF 23482 23483else 23484 LIBOBJS="$LIBOBJS writev.$ac_objext" 23485fi 23486 23487 23488 23489if test "$ac_cv_func_strndup+set" != set -o "$ac_cv_func_strndup" = yes; then 23490echo "$as_me:$LINENO: checking if strndup needs a prototype" >&5 23491echo $ECHO_N "checking if strndup needs a prototype... $ECHO_C" >&6 23492if test "${ac_cv_func_strndup_noproto+set}" = set; then 23493 echo $ECHO_N "(cached) $ECHO_C" >&6 23494else 23495 cat >conftest.$ac_ext <<_ACEOF 23496#line $LINENO "configure" 23497#include "confdefs.h" 23498#include <string.h> 23499#ifdef F77_DUMMY_MAIN 23500# ifdef __cplusplus 23501 extern "C" 23502# endif 23503 int F77_DUMMY_MAIN() { return 1; } 23504#endif 23505int 23506main () 23507{ 23508struct foo { int foo; } xx; 23509extern int strndup (struct foo*); 23510strndup(&xx); 23511 23512 ; 23513 return 0; 23514} 23515_ACEOF 23516rm -f conftest.$ac_objext 23517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23518 (eval $ac_compile) 2>&5 23519 ac_status=$? 23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23521 (exit $ac_status); } && 23522 { ac_try='test -s conftest.$ac_objext' 23523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23524 (eval $ac_try) 2>&5 23525 ac_status=$? 23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23527 (exit $ac_status); }; }; then 23528 eval "ac_cv_func_strndup_noproto=yes" 23529else 23530 echo "$as_me: failed program was:" >&5 23531cat conftest.$ac_ext >&5 23532eval "ac_cv_func_strndup_noproto=no" 23533fi 23534rm -f conftest.$ac_objext conftest.$ac_ext 23535fi 23536echo "$as_me:$LINENO: result: $ac_cv_func_strndup_noproto" >&5 23537echo "${ECHO_T}$ac_cv_func_strndup_noproto" >&6 23538if test "$ac_cv_func_strndup_noproto" = yes; then 23539 23540cat >>confdefs.h <<\_ACEOF 23541#define NEED_STRNDUP_PROTO 1 23542_ACEOF 23543 23544fi 23545fi 23546 23547if test "$ac_cv_func_strsep+set" != set -o "$ac_cv_func_strsep" = yes; then 23548echo "$as_me:$LINENO: checking if strsep needs a prototype" >&5 23549echo $ECHO_N "checking if strsep needs a prototype... $ECHO_C" >&6 23550if test "${ac_cv_func_strsep_noproto+set}" = set; then 23551 echo $ECHO_N "(cached) $ECHO_C" >&6 23552else 23553 cat >conftest.$ac_ext <<_ACEOF 23554#line $LINENO "configure" 23555#include "confdefs.h" 23556#include <string.h> 23557#ifdef F77_DUMMY_MAIN 23558# ifdef __cplusplus 23559 extern "C" 23560# endif 23561 int F77_DUMMY_MAIN() { return 1; } 23562#endif 23563int 23564main () 23565{ 23566struct foo { int foo; } xx; 23567extern int strsep (struct foo*); 23568strsep(&xx); 23569 23570 ; 23571 return 0; 23572} 23573_ACEOF 23574rm -f conftest.$ac_objext 23575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23576 (eval $ac_compile) 2>&5 23577 ac_status=$? 23578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23579 (exit $ac_status); } && 23580 { ac_try='test -s conftest.$ac_objext' 23581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23582 (eval $ac_try) 2>&5 23583 ac_status=$? 23584 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23585 (exit $ac_status); }; }; then 23586 eval "ac_cv_func_strsep_noproto=yes" 23587else 23588 echo "$as_me: failed program was:" >&5 23589cat conftest.$ac_ext >&5 23590eval "ac_cv_func_strsep_noproto=no" 23591fi 23592rm -f conftest.$ac_objext conftest.$ac_ext 23593fi 23594echo "$as_me:$LINENO: result: $ac_cv_func_strsep_noproto" >&5 23595echo "${ECHO_T}$ac_cv_func_strsep_noproto" >&6 23596if test "$ac_cv_func_strsep_noproto" = yes; then 23597 23598cat >>confdefs.h <<\_ACEOF 23599#define NEED_STRSEP_PROTO 1 23600_ACEOF 23601 23602fi 23603fi 23604 23605if test "$ac_cv_func_strtok_r+set" != set -o "$ac_cv_func_strtok_r" = yes; then 23606echo "$as_me:$LINENO: checking if strtok_r needs a prototype" >&5 23607echo $ECHO_N "checking if strtok_r needs a prototype... $ECHO_C" >&6 23608if test "${ac_cv_func_strtok_r_noproto+set}" = set; then 23609 echo $ECHO_N "(cached) $ECHO_C" >&6 23610else 23611 cat >conftest.$ac_ext <<_ACEOF 23612#line $LINENO "configure" 23613#include "confdefs.h" 23614#include <string.h> 23615#ifdef F77_DUMMY_MAIN 23616# ifdef __cplusplus 23617 extern "C" 23618# endif 23619 int F77_DUMMY_MAIN() { return 1; } 23620#endif 23621int 23622main () 23623{ 23624struct foo { int foo; } xx; 23625extern int strtok_r (struct foo*); 23626strtok_r(&xx); 23627 23628 ; 23629 return 0; 23630} 23631_ACEOF 23632rm -f conftest.$ac_objext 23633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23634 (eval $ac_compile) 2>&5 23635 ac_status=$? 23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23637 (exit $ac_status); } && 23638 { ac_try='test -s conftest.$ac_objext' 23639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23640 (eval $ac_try) 2>&5 23641 ac_status=$? 23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23643 (exit $ac_status); }; }; then 23644 eval "ac_cv_func_strtok_r_noproto=yes" 23645else 23646 echo "$as_me: failed program was:" >&5 23647cat conftest.$ac_ext >&5 23648eval "ac_cv_func_strtok_r_noproto=no" 23649fi 23650rm -f conftest.$ac_objext conftest.$ac_ext 23651fi 23652echo "$as_me:$LINENO: result: $ac_cv_func_strtok_r_noproto" >&5 23653echo "${ECHO_T}$ac_cv_func_strtok_r_noproto" >&6 23654if test "$ac_cv_func_strtok_r_noproto" = yes; then 23655 23656cat >>confdefs.h <<\_ACEOF 23657#define NEED_STRTOK_R_PROTO 1 23658_ACEOF 23659 23660fi 23661fi 23662 23663 23664 23665if test "$ac_cv_func_strsvis+set" != set -o "$ac_cv_func_strsvis" = yes; then 23666echo "$as_me:$LINENO: checking if strsvis needs a prototype" >&5 23667echo $ECHO_N "checking if strsvis needs a prototype... $ECHO_C" >&6 23668if test "${ac_cv_func_strsvis_noproto+set}" = set; then 23669 echo $ECHO_N "(cached) $ECHO_C" >&6 23670else 23671 cat >conftest.$ac_ext <<_ACEOF 23672#line $LINENO "configure" 23673#include "confdefs.h" 23674#ifdef HAVE_VIS_H 23675#include <vis.h> 23676#endif 23677#ifdef F77_DUMMY_MAIN 23678# ifdef __cplusplus 23679 extern "C" 23680# endif 23681 int F77_DUMMY_MAIN() { return 1; } 23682#endif 23683int 23684main () 23685{ 23686struct foo { int foo; } xx; 23687extern int strsvis (struct foo*); 23688strsvis(&xx); 23689 23690 ; 23691 return 0; 23692} 23693_ACEOF 23694rm -f conftest.$ac_objext 23695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23696 (eval $ac_compile) 2>&5 23697 ac_status=$? 23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23699 (exit $ac_status); } && 23700 { ac_try='test -s conftest.$ac_objext' 23701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23702 (eval $ac_try) 2>&5 23703 ac_status=$? 23704 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23705 (exit $ac_status); }; }; then 23706 eval "ac_cv_func_strsvis_noproto=yes" 23707else 23708 echo "$as_me: failed program was:" >&5 23709cat conftest.$ac_ext >&5 23710eval "ac_cv_func_strsvis_noproto=no" 23711fi 23712rm -f conftest.$ac_objext conftest.$ac_ext 23713fi 23714echo "$as_me:$LINENO: result: $ac_cv_func_strsvis_noproto" >&5 23715echo "${ECHO_T}$ac_cv_func_strsvis_noproto" >&6 23716if test "$ac_cv_func_strsvis_noproto" = yes; then 23717 23718cat >>confdefs.h <<\_ACEOF 23719#define NEED_STRSVIS_PROTO 1 23720_ACEOF 23721 23722fi 23723fi 23724 23725if test "$ac_cv_func_strunvis+set" != set -o "$ac_cv_func_strunvis" = yes; then 23726echo "$as_me:$LINENO: checking if strunvis needs a prototype" >&5 23727echo $ECHO_N "checking if strunvis needs a prototype... $ECHO_C" >&6 23728if test "${ac_cv_func_strunvis_noproto+set}" = set; then 23729 echo $ECHO_N "(cached) $ECHO_C" >&6 23730else 23731 cat >conftest.$ac_ext <<_ACEOF 23732#line $LINENO "configure" 23733#include "confdefs.h" 23734#ifdef HAVE_VIS_H 23735#include <vis.h> 23736#endif 23737#ifdef F77_DUMMY_MAIN 23738# ifdef __cplusplus 23739 extern "C" 23740# endif 23741 int F77_DUMMY_MAIN() { return 1; } 23742#endif 23743int 23744main () 23745{ 23746struct foo { int foo; } xx; 23747extern int strunvis (struct foo*); 23748strunvis(&xx); 23749 23750 ; 23751 return 0; 23752} 23753_ACEOF 23754rm -f conftest.$ac_objext 23755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23756 (eval $ac_compile) 2>&5 23757 ac_status=$? 23758 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23759 (exit $ac_status); } && 23760 { ac_try='test -s conftest.$ac_objext' 23761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23762 (eval $ac_try) 2>&5 23763 ac_status=$? 23764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23765 (exit $ac_status); }; }; then 23766 eval "ac_cv_func_strunvis_noproto=yes" 23767else 23768 echo "$as_me: failed program was:" >&5 23769cat conftest.$ac_ext >&5 23770eval "ac_cv_func_strunvis_noproto=no" 23771fi 23772rm -f conftest.$ac_objext conftest.$ac_ext 23773fi 23774echo "$as_me:$LINENO: result: $ac_cv_func_strunvis_noproto" >&5 23775echo "${ECHO_T}$ac_cv_func_strunvis_noproto" >&6 23776if test "$ac_cv_func_strunvis_noproto" = yes; then 23777 23778cat >>confdefs.h <<\_ACEOF 23779#define NEED_STRUNVIS_PROTO 1 23780_ACEOF 23781 23782fi 23783fi 23784 23785if test "$ac_cv_func_strvis+set" != set -o "$ac_cv_func_strvis" = yes; then 23786echo "$as_me:$LINENO: checking if strvis needs a prototype" >&5 23787echo $ECHO_N "checking if strvis needs a prototype... $ECHO_C" >&6 23788if test "${ac_cv_func_strvis_noproto+set}" = set; then 23789 echo $ECHO_N "(cached) $ECHO_C" >&6 23790else 23791 cat >conftest.$ac_ext <<_ACEOF 23792#line $LINENO "configure" 23793#include "confdefs.h" 23794#ifdef HAVE_VIS_H 23795#include <vis.h> 23796#endif 23797#ifdef F77_DUMMY_MAIN 23798# ifdef __cplusplus 23799 extern "C" 23800# endif 23801 int F77_DUMMY_MAIN() { return 1; } 23802#endif 23803int 23804main () 23805{ 23806struct foo { int foo; } xx; 23807extern int strvis (struct foo*); 23808strvis(&xx); 23809 23810 ; 23811 return 0; 23812} 23813_ACEOF 23814rm -f conftest.$ac_objext 23815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23816 (eval $ac_compile) 2>&5 23817 ac_status=$? 23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23819 (exit $ac_status); } && 23820 { ac_try='test -s conftest.$ac_objext' 23821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23822 (eval $ac_try) 2>&5 23823 ac_status=$? 23824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23825 (exit $ac_status); }; }; then 23826 eval "ac_cv_func_strvis_noproto=yes" 23827else 23828 echo "$as_me: failed program was:" >&5 23829cat conftest.$ac_ext >&5 23830eval "ac_cv_func_strvis_noproto=no" 23831fi 23832rm -f conftest.$ac_objext conftest.$ac_ext 23833fi 23834echo "$as_me:$LINENO: result: $ac_cv_func_strvis_noproto" >&5 23835echo "${ECHO_T}$ac_cv_func_strvis_noproto" >&6 23836if test "$ac_cv_func_strvis_noproto" = yes; then 23837 23838cat >>confdefs.h <<\_ACEOF 23839#define NEED_STRVIS_PROTO 1 23840_ACEOF 23841 23842fi 23843fi 23844 23845if test "$ac_cv_func_strvisx+set" != set -o "$ac_cv_func_strvisx" = yes; then 23846echo "$as_me:$LINENO: checking if strvisx needs a prototype" >&5 23847echo $ECHO_N "checking if strvisx needs a prototype... $ECHO_C" >&6 23848if test "${ac_cv_func_strvisx_noproto+set}" = set; then 23849 echo $ECHO_N "(cached) $ECHO_C" >&6 23850else 23851 cat >conftest.$ac_ext <<_ACEOF 23852#line $LINENO "configure" 23853#include "confdefs.h" 23854#ifdef HAVE_VIS_H 23855#include <vis.h> 23856#endif 23857#ifdef F77_DUMMY_MAIN 23858# ifdef __cplusplus 23859 extern "C" 23860# endif 23861 int F77_DUMMY_MAIN() { return 1; } 23862#endif 23863int 23864main () 23865{ 23866struct foo { int foo; } xx; 23867extern int strvisx (struct foo*); 23868strvisx(&xx); 23869 23870 ; 23871 return 0; 23872} 23873_ACEOF 23874rm -f conftest.$ac_objext 23875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23876 (eval $ac_compile) 2>&5 23877 ac_status=$? 23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23879 (exit $ac_status); } && 23880 { ac_try='test -s conftest.$ac_objext' 23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23882 (eval $ac_try) 2>&5 23883 ac_status=$? 23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23885 (exit $ac_status); }; }; then 23886 eval "ac_cv_func_strvisx_noproto=yes" 23887else 23888 echo "$as_me: failed program was:" >&5 23889cat conftest.$ac_ext >&5 23890eval "ac_cv_func_strvisx_noproto=no" 23891fi 23892rm -f conftest.$ac_objext conftest.$ac_ext 23893fi 23894echo "$as_me:$LINENO: result: $ac_cv_func_strvisx_noproto" >&5 23895echo "${ECHO_T}$ac_cv_func_strvisx_noproto" >&6 23896if test "$ac_cv_func_strvisx_noproto" = yes; then 23897 23898cat >>confdefs.h <<\_ACEOF 23899#define NEED_STRVISX_PROTO 1 23900_ACEOF 23901 23902fi 23903fi 23904 23905if test "$ac_cv_func_svis+set" != set -o "$ac_cv_func_svis" = yes; then 23906echo "$as_me:$LINENO: checking if svis needs a prototype" >&5 23907echo $ECHO_N "checking if svis needs a prototype... $ECHO_C" >&6 23908if test "${ac_cv_func_svis_noproto+set}" = set; then 23909 echo $ECHO_N "(cached) $ECHO_C" >&6 23910else 23911 cat >conftest.$ac_ext <<_ACEOF 23912#line $LINENO "configure" 23913#include "confdefs.h" 23914#ifdef HAVE_VIS_H 23915#include <vis.h> 23916#endif 23917#ifdef F77_DUMMY_MAIN 23918# ifdef __cplusplus 23919 extern "C" 23920# endif 23921 int F77_DUMMY_MAIN() { return 1; } 23922#endif 23923int 23924main () 23925{ 23926struct foo { int foo; } xx; 23927extern int svis (struct foo*); 23928svis(&xx); 23929 23930 ; 23931 return 0; 23932} 23933_ACEOF 23934rm -f conftest.$ac_objext 23935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23936 (eval $ac_compile) 2>&5 23937 ac_status=$? 23938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23939 (exit $ac_status); } && 23940 { ac_try='test -s conftest.$ac_objext' 23941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23942 (eval $ac_try) 2>&5 23943 ac_status=$? 23944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23945 (exit $ac_status); }; }; then 23946 eval "ac_cv_func_svis_noproto=yes" 23947else 23948 echo "$as_me: failed program was:" >&5 23949cat conftest.$ac_ext >&5 23950eval "ac_cv_func_svis_noproto=no" 23951fi 23952rm -f conftest.$ac_objext conftest.$ac_ext 23953fi 23954echo "$as_me:$LINENO: result: $ac_cv_func_svis_noproto" >&5 23955echo "${ECHO_T}$ac_cv_func_svis_noproto" >&6 23956if test "$ac_cv_func_svis_noproto" = yes; then 23957 23958cat >>confdefs.h <<\_ACEOF 23959#define NEED_SVIS_PROTO 1 23960_ACEOF 23961 23962fi 23963fi 23964 23965if test "$ac_cv_func_unvis+set" != set -o "$ac_cv_func_unvis" = yes; then 23966echo "$as_me:$LINENO: checking if unvis needs a prototype" >&5 23967echo $ECHO_N "checking if unvis needs a prototype... $ECHO_C" >&6 23968if test "${ac_cv_func_unvis_noproto+set}" = set; then 23969 echo $ECHO_N "(cached) $ECHO_C" >&6 23970else 23971 cat >conftest.$ac_ext <<_ACEOF 23972#line $LINENO "configure" 23973#include "confdefs.h" 23974#ifdef HAVE_VIS_H 23975#include <vis.h> 23976#endif 23977#ifdef F77_DUMMY_MAIN 23978# ifdef __cplusplus 23979 extern "C" 23980# endif 23981 int F77_DUMMY_MAIN() { return 1; } 23982#endif 23983int 23984main () 23985{ 23986struct foo { int foo; } xx; 23987extern int unvis (struct foo*); 23988unvis(&xx); 23989 23990 ; 23991 return 0; 23992} 23993_ACEOF 23994rm -f conftest.$ac_objext 23995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23996 (eval $ac_compile) 2>&5 23997 ac_status=$? 23998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23999 (exit $ac_status); } && 24000 { ac_try='test -s conftest.$ac_objext' 24001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24002 (eval $ac_try) 2>&5 24003 ac_status=$? 24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24005 (exit $ac_status); }; }; then 24006 eval "ac_cv_func_unvis_noproto=yes" 24007else 24008 echo "$as_me: failed program was:" >&5 24009cat conftest.$ac_ext >&5 24010eval "ac_cv_func_unvis_noproto=no" 24011fi 24012rm -f conftest.$ac_objext conftest.$ac_ext 24013fi 24014echo "$as_me:$LINENO: result: $ac_cv_func_unvis_noproto" >&5 24015echo "${ECHO_T}$ac_cv_func_unvis_noproto" >&6 24016if test "$ac_cv_func_unvis_noproto" = yes; then 24017 24018cat >>confdefs.h <<\_ACEOF 24019#define NEED_UNVIS_PROTO 1 24020_ACEOF 24021 24022fi 24023fi 24024 24025if test "$ac_cv_func_vis+set" != set -o "$ac_cv_func_vis" = yes; then 24026echo "$as_me:$LINENO: checking if vis needs a prototype" >&5 24027echo $ECHO_N "checking if vis needs a prototype... $ECHO_C" >&6 24028if test "${ac_cv_func_vis_noproto+set}" = set; then 24029 echo $ECHO_N "(cached) $ECHO_C" >&6 24030else 24031 cat >conftest.$ac_ext <<_ACEOF 24032#line $LINENO "configure" 24033#include "confdefs.h" 24034#ifdef HAVE_VIS_H 24035#include <vis.h> 24036#endif 24037#ifdef F77_DUMMY_MAIN 24038# ifdef __cplusplus 24039 extern "C" 24040# endif 24041 int F77_DUMMY_MAIN() { return 1; } 24042#endif 24043int 24044main () 24045{ 24046struct foo { int foo; } xx; 24047extern int vis (struct foo*); 24048vis(&xx); 24049 24050 ; 24051 return 0; 24052} 24053_ACEOF 24054rm -f conftest.$ac_objext 24055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24056 (eval $ac_compile) 2>&5 24057 ac_status=$? 24058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24059 (exit $ac_status); } && 24060 { ac_try='test -s conftest.$ac_objext' 24061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24062 (eval $ac_try) 2>&5 24063 ac_status=$? 24064 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24065 (exit $ac_status); }; }; then 24066 eval "ac_cv_func_vis_noproto=yes" 24067else 24068 echo "$as_me: failed program was:" >&5 24069cat conftest.$ac_ext >&5 24070eval "ac_cv_func_vis_noproto=no" 24071fi 24072rm -f conftest.$ac_objext conftest.$ac_ext 24073fi 24074echo "$as_me:$LINENO: result: $ac_cv_func_vis_noproto" >&5 24075echo "${ECHO_T}$ac_cv_func_vis_noproto" >&6 24076if test "$ac_cv_func_vis_noproto" = yes; then 24077 24078cat >>confdefs.h <<\_ACEOF 24079#define NEED_VIS_PROTO 1 24080_ACEOF 24081 24082fi 24083fi 24084 24085 24086echo "$as_me:$LINENO: checking for inet_aton" >&5 24087echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6 24088if test "${ac_cv_func_inet_aton+set}" = set; then 24089 echo $ECHO_N "(cached) $ECHO_C" >&6 24090else 24091 cat >conftest.$ac_ext <<_ACEOF 24092#line $LINENO "configure" 24093#include "confdefs.h" 24094#ifdef HAVE_SYS_TYPES_H 24095#include <sys/types.h> 24096#endif 24097#ifdef HAVE_SYS_SOCKET_H 24098#include <sys/socket.h> 24099#endif 24100#ifdef HAVE_NETINET_IN_H 24101#include <netinet/in.h> 24102#endif 24103#ifdef HAVE_ARPA_INET_H 24104#include <arpa/inet.h> 24105#endif 24106#ifdef F77_DUMMY_MAIN 24107# ifdef __cplusplus 24108 extern "C" 24109# endif 24110 int F77_DUMMY_MAIN() { return 1; } 24111#endif 24112int 24113main () 24114{ 24115 24116/* The GNU C library defines this for functions which it implements 24117 to always fail with ENOSYS. Some functions are actually named 24118 something starting with __ and the normal name is an alias. */ 24119#if defined (__stub_inet_aton) || defined (__stub___inet_aton) 24120choke me 24121#else 24122inet_aton(0,0) 24123#endif 24124 24125 ; 24126 return 0; 24127} 24128_ACEOF 24129rm -f conftest.$ac_objext conftest$ac_exeext 24130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24131 (eval $ac_link) 2>&5 24132 ac_status=$? 24133 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24134 (exit $ac_status); } && 24135 { ac_try='test -s conftest$ac_exeext' 24136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24137 (eval $ac_try) 2>&5 24138 ac_status=$? 24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24140 (exit $ac_status); }; }; then 24141 eval "ac_cv_func_inet_aton=yes" 24142else 24143 echo "$as_me: failed program was:" >&5 24144cat conftest.$ac_ext >&5 24145eval "ac_cv_func_inet_aton=no" 24146fi 24147rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24148fi 24149 24150if eval "test \"\${ac_cv_func_inet_aton}\" = yes"; then 24151 24152cat >>confdefs.h <<_ACEOF 24153#define HAVE_INET_ATON 1 24154_ACEOF 24155 24156 echo "$as_me:$LINENO: result: yes" >&5 24157echo "${ECHO_T}yes" >&6 24158else 24159 echo "$as_me:$LINENO: result: no" >&5 24160echo "${ECHO_T}no" >&6 24161 LIBOBJS="$LIBOBJS inet_aton.$ac_objext" 24162fi 24163 24164echo "$as_me:$LINENO: checking for inet_ntop" >&5 24165echo $ECHO_N "checking for inet_ntop... $ECHO_C" >&6 24166if test "${ac_cv_func_inet_ntop+set}" = set; then 24167 echo $ECHO_N "(cached) $ECHO_C" >&6 24168else 24169 cat >conftest.$ac_ext <<_ACEOF 24170#line $LINENO "configure" 24171#include "confdefs.h" 24172#ifdef HAVE_SYS_TYPES_H 24173#include <sys/types.h> 24174#endif 24175#ifdef HAVE_SYS_SOCKET_H 24176#include <sys/socket.h> 24177#endif 24178#ifdef HAVE_NETINET_IN_H 24179#include <netinet/in.h> 24180#endif 24181#ifdef HAVE_ARPA_INET_H 24182#include <arpa/inet.h> 24183#endif 24184#ifdef F77_DUMMY_MAIN 24185# ifdef __cplusplus 24186 extern "C" 24187# endif 24188 int F77_DUMMY_MAIN() { return 1; } 24189#endif 24190int 24191main () 24192{ 24193 24194/* The GNU C library defines this for functions which it implements 24195 to always fail with ENOSYS. Some functions are actually named 24196 something starting with __ and the normal name is an alias. */ 24197#if defined (__stub_inet_ntop) || defined (__stub___inet_ntop) 24198choke me 24199#else 24200inet_ntop(0, 0, 0, 0) 24201#endif 24202 24203 ; 24204 return 0; 24205} 24206_ACEOF 24207rm -f conftest.$ac_objext conftest$ac_exeext 24208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24209 (eval $ac_link) 2>&5 24210 ac_status=$? 24211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24212 (exit $ac_status); } && 24213 { ac_try='test -s conftest$ac_exeext' 24214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24215 (eval $ac_try) 2>&5 24216 ac_status=$? 24217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24218 (exit $ac_status); }; }; then 24219 eval "ac_cv_func_inet_ntop=yes" 24220else 24221 echo "$as_me: failed program was:" >&5 24222cat conftest.$ac_ext >&5 24223eval "ac_cv_func_inet_ntop=no" 24224fi 24225rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24226fi 24227 24228if eval "test \"\${ac_cv_func_inet_ntop}\" = yes"; then 24229 24230cat >>confdefs.h <<_ACEOF 24231#define HAVE_INET_NTOP 1 24232_ACEOF 24233 24234 echo "$as_me:$LINENO: result: yes" >&5 24235echo "${ECHO_T}yes" >&6 24236else 24237 echo "$as_me:$LINENO: result: no" >&5 24238echo "${ECHO_T}no" >&6 24239 LIBOBJS="$LIBOBJS inet_ntop.$ac_objext" 24240fi 24241 24242echo "$as_me:$LINENO: checking for inet_pton" >&5 24243echo $ECHO_N "checking for inet_pton... $ECHO_C" >&6 24244if test "${ac_cv_func_inet_pton+set}" = set; then 24245 echo $ECHO_N "(cached) $ECHO_C" >&6 24246else 24247 cat >conftest.$ac_ext <<_ACEOF 24248#line $LINENO "configure" 24249#include "confdefs.h" 24250#ifdef HAVE_SYS_TYPES_H 24251#include <sys/types.h> 24252#endif 24253#ifdef HAVE_SYS_SOCKET_H 24254#include <sys/socket.h> 24255#endif 24256#ifdef HAVE_NETINET_IN_H 24257#include <netinet/in.h> 24258#endif 24259#ifdef HAVE_ARPA_INET_H 24260#include <arpa/inet.h> 24261#endif 24262#ifdef F77_DUMMY_MAIN 24263# ifdef __cplusplus 24264 extern "C" 24265# endif 24266 int F77_DUMMY_MAIN() { return 1; } 24267#endif 24268int 24269main () 24270{ 24271 24272/* The GNU C library defines this for functions which it implements 24273 to always fail with ENOSYS. Some functions are actually named 24274 something starting with __ and the normal name is an alias. */ 24275#if defined (__stub_inet_pton) || defined (__stub___inet_pton) 24276choke me 24277#else 24278inet_pton(0,0,0) 24279#endif 24280 24281 ; 24282 return 0; 24283} 24284_ACEOF 24285rm -f conftest.$ac_objext conftest$ac_exeext 24286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24287 (eval $ac_link) 2>&5 24288 ac_status=$? 24289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24290 (exit $ac_status); } && 24291 { ac_try='test -s conftest$ac_exeext' 24292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24293 (eval $ac_try) 2>&5 24294 ac_status=$? 24295 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24296 (exit $ac_status); }; }; then 24297 eval "ac_cv_func_inet_pton=yes" 24298else 24299 echo "$as_me: failed program was:" >&5 24300cat conftest.$ac_ext >&5 24301eval "ac_cv_func_inet_pton=no" 24302fi 24303rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24304fi 24305 24306if eval "test \"\${ac_cv_func_inet_pton}\" = yes"; then 24307 24308cat >>confdefs.h <<_ACEOF 24309#define HAVE_INET_PTON 1 24310_ACEOF 24311 24312 echo "$as_me:$LINENO: result: yes" >&5 24313echo "${ECHO_T}yes" >&6 24314else 24315 echo "$as_me:$LINENO: result: no" >&5 24316echo "${ECHO_T}no" >&6 24317 LIBOBJS="$LIBOBJS inet_pton.$ac_objext" 24318fi 24319 24320 24321 24322echo "$as_me:$LINENO: checking for sa_len in struct sockaddr" >&5 24323echo $ECHO_N "checking for sa_len in struct sockaddr... $ECHO_C" >&6 24324if test "${ac_cv_type_struct_sockaddr_sa_len+set}" = set; then 24325 echo $ECHO_N "(cached) $ECHO_C" >&6 24326else 24327 24328cat >conftest.$ac_ext <<_ACEOF 24329#line $LINENO "configure" 24330#include "confdefs.h" 24331#include <sys/types.h> 24332#include <sys/socket.h> 24333#ifdef F77_DUMMY_MAIN 24334# ifdef __cplusplus 24335 extern "C" 24336# endif 24337 int F77_DUMMY_MAIN() { return 1; } 24338#endif 24339int 24340main () 24341{ 24342struct sockaddr x; x.sa_len; 24343 ; 24344 return 0; 24345} 24346_ACEOF 24347rm -f conftest.$ac_objext 24348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24349 (eval $ac_compile) 2>&5 24350 ac_status=$? 24351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24352 (exit $ac_status); } && 24353 { ac_try='test -s conftest.$ac_objext' 24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24355 (eval $ac_try) 2>&5 24356 ac_status=$? 24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24358 (exit $ac_status); }; }; then 24359 ac_cv_type_struct_sockaddr_sa_len=yes 24360else 24361 echo "$as_me: failed program was:" >&5 24362cat conftest.$ac_ext >&5 24363ac_cv_type_struct_sockaddr_sa_len=no 24364fi 24365rm -f conftest.$ac_objext conftest.$ac_ext 24366fi 24367echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_sa_len" >&5 24368echo "${ECHO_T}$ac_cv_type_struct_sockaddr_sa_len" >&6 24369if test "$ac_cv_type_struct_sockaddr_sa_len" = yes; then 24370 24371 24372cat >>confdefs.h <<\_ACEOF 24373#define HAVE_STRUCT_SOCKADDR_SA_LEN 1 24374_ACEOF 24375 24376 24377fi 24378 24379 24380 24381if test "$ac_cv_func_getnameinfo" = "yes"; then 24382 24383echo "$as_me:$LINENO: checking if getnameinfo is broken" >&5 24384echo $ECHO_N "checking if getnameinfo is broken... $ECHO_C" >&6 24385if test "${ac_cv_func_getnameinfo_broken+set}" = set; then 24386 echo $ECHO_N "(cached) $ECHO_C" >&6 24387else 24388 if test "$cross_compiling" = yes; then 24389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 24390echo "$as_me: error: cannot run test program while cross compiling" >&2;} 24391 { (exit 1); exit 1; }; } 24392else 24393 cat >conftest.$ac_ext <<_ACEOF 24394#line $LINENO "configure" 24395#include "confdefs.h" 24396#include <stdio.h> 24397#include <sys/types.h> 24398#include <sys/socket.h> 24399#include <netinet/in.h> 24400#include <netdb.h> 24401 24402int 24403main(int argc, char **argv) 24404{ 24405 struct sockaddr_in sin; 24406 char host[256]; 24407 memset(&sin, 0, sizeof(sin)); 24408#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN 24409 sin.sin_len = sizeof(sin); 24410#endif 24411 sin.sin_family = AF_INET; 24412 sin.sin_addr.s_addr = 0xffffffff; 24413 sin.sin_port = 0; 24414 return getnameinfo((struct sockaddr*)&sin, sizeof(sin), host, sizeof(host), 24415 NULL, 0, 0); 24416} 24417 24418_ACEOF 24419rm -f conftest$ac_exeext 24420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24421 (eval $ac_link) 2>&5 24422 ac_status=$? 24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24426 (eval $ac_try) 2>&5 24427 ac_status=$? 24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24429 (exit $ac_status); }; }; then 24430 ac_cv_func_getnameinfo_broken=no 24431else 24432 echo "$as_me: program exited with status $ac_status" >&5 24433echo "$as_me: failed program was:" >&5 24434cat conftest.$ac_ext >&5 24435( exit $ac_status ) 24436ac_cv_func_getnameinfo_broken=yes 24437fi 24438rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24439fi 24440fi 24441echo "$as_me:$LINENO: result: $ac_cv_func_getnameinfo_broken" >&5 24442echo "${ECHO_T}$ac_cv_func_getnameinfo_broken" >&6 24443 if test "$ac_cv_func_getnameinfo_broken" = yes; then 24444 LIBOBJS="$LIBOBJS getnameinfo.$ac_objext" 24445 fi 24446fi 24447 24448if test "$ac_cv_func_getaddrinfo" = "yes"; then 24449 24450echo "$as_me:$LINENO: checking if getaddrinfo handles numeric services" >&5 24451echo $ECHO_N "checking if getaddrinfo handles numeric services... $ECHO_C" >&6 24452if test "${ac_cv_func_getaddrinfo_numserv+set}" = set; then 24453 echo $ECHO_N "(cached) $ECHO_C" >&6 24454else 24455 if test "$cross_compiling" = yes; then 24456 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 24457echo "$as_me: error: cannot run test program while cross compiling" >&2;} 24458 { (exit 1); exit 1; }; } 24459else 24460 cat >conftest.$ac_ext <<_ACEOF 24461#line $LINENO "configure" 24462#include "confdefs.h" 24463#include <stdio.h> 24464#include <sys/types.h> 24465#include <sys/socket.h> 24466#include <netdb.h> 24467 24468int 24469main(int argc, char **argv) 24470{ 24471 struct addrinfo hints, *ai; 24472 memset(&hints, 0, sizeof(hints)); 24473 hints.ai_flags = AI_PASSIVE; 24474 hints.ai_socktype = SOCK_STREAM; 24475 hints.ai_family = PF_UNSPEC; 24476 if(getaddrinfo(NULL, "17", &hints, &ai) != 0) 24477 return 1; 24478 return 0; 24479} 24480 24481_ACEOF 24482rm -f conftest$ac_exeext 24483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24484 (eval $ac_link) 2>&5 24485 ac_status=$? 24486 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 24488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24489 (eval $ac_try) 2>&5 24490 ac_status=$? 24491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24492 (exit $ac_status); }; }; then 24493 ac_cv_func_getaddrinfo_numserv=yes 24494else 24495 echo "$as_me: program exited with status $ac_status" >&5 24496echo "$as_me: failed program was:" >&5 24497cat conftest.$ac_ext >&5 24498( exit $ac_status ) 24499ac_cv_func_getaddrinfo_numserv=no 24500fi 24501rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 24502fi 24503fi 24504echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo_numserv" >&5 24505echo "${ECHO_T}$ac_cv_func_getaddrinfo_numserv" >&6 24506 if test "$ac_cv_func_getaddrinfo_numserv" = no; then 24507 LIBOBJS="$LIBOBJS getaddrinfo.$ac_objext" 24508 LIBOBJS="$LIBOBJS freeaddrinfo.$ac_objext" 24509 fi 24510fi 24511 24512 24513if test "$ac_cv_func_setenv+set" != set -o "$ac_cv_func_setenv" = yes; then 24514echo "$as_me:$LINENO: checking if setenv needs a prototype" >&5 24515echo $ECHO_N "checking if setenv needs a prototype... $ECHO_C" >&6 24516if test "${ac_cv_func_setenv_noproto+set}" = set; then 24517 echo $ECHO_N "(cached) $ECHO_C" >&6 24518else 24519 cat >conftest.$ac_ext <<_ACEOF 24520#line $LINENO "configure" 24521#include "confdefs.h" 24522#include <stdlib.h> 24523#ifdef F77_DUMMY_MAIN 24524# ifdef __cplusplus 24525 extern "C" 24526# endif 24527 int F77_DUMMY_MAIN() { return 1; } 24528#endif 24529int 24530main () 24531{ 24532struct foo { int foo; } xx; 24533extern int setenv (struct foo*); 24534setenv(&xx); 24535 24536 ; 24537 return 0; 24538} 24539_ACEOF 24540rm -f conftest.$ac_objext 24541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24542 (eval $ac_compile) 2>&5 24543 ac_status=$? 24544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24545 (exit $ac_status); } && 24546 { ac_try='test -s conftest.$ac_objext' 24547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24548 (eval $ac_try) 2>&5 24549 ac_status=$? 24550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24551 (exit $ac_status); }; }; then 24552 eval "ac_cv_func_setenv_noproto=yes" 24553else 24554 echo "$as_me: failed program was:" >&5 24555cat conftest.$ac_ext >&5 24556eval "ac_cv_func_setenv_noproto=no" 24557fi 24558rm -f conftest.$ac_objext conftest.$ac_ext 24559fi 24560echo "$as_me:$LINENO: result: $ac_cv_func_setenv_noproto" >&5 24561echo "${ECHO_T}$ac_cv_func_setenv_noproto" >&6 24562if test "$ac_cv_func_setenv_noproto" = yes; then 24563 24564cat >>confdefs.h <<\_ACEOF 24565#define NEED_SETENV_PROTO 1 24566_ACEOF 24567 24568fi 24569fi 24570 24571 24572if test "$ac_cv_func_unsetenv+set" != set -o "$ac_cv_func_unsetenv" = yes; then 24573echo "$as_me:$LINENO: checking if unsetenv needs a prototype" >&5 24574echo $ECHO_N "checking if unsetenv needs a prototype... $ECHO_C" >&6 24575if test "${ac_cv_func_unsetenv_noproto+set}" = set; then 24576 echo $ECHO_N "(cached) $ECHO_C" >&6 24577else 24578 cat >conftest.$ac_ext <<_ACEOF 24579#line $LINENO "configure" 24580#include "confdefs.h" 24581#include <stdlib.h> 24582#ifdef F77_DUMMY_MAIN 24583# ifdef __cplusplus 24584 extern "C" 24585# endif 24586 int F77_DUMMY_MAIN() { return 1; } 24587#endif 24588int 24589main () 24590{ 24591struct foo { int foo; } xx; 24592extern int unsetenv (struct foo*); 24593unsetenv(&xx); 24594 24595 ; 24596 return 0; 24597} 24598_ACEOF 24599rm -f conftest.$ac_objext 24600if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24601 (eval $ac_compile) 2>&5 24602 ac_status=$? 24603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24604 (exit $ac_status); } && 24605 { ac_try='test -s conftest.$ac_objext' 24606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24607 (eval $ac_try) 2>&5 24608 ac_status=$? 24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24610 (exit $ac_status); }; }; then 24611 eval "ac_cv_func_unsetenv_noproto=yes" 24612else 24613 echo "$as_me: failed program was:" >&5 24614cat conftest.$ac_ext >&5 24615eval "ac_cv_func_unsetenv_noproto=no" 24616fi 24617rm -f conftest.$ac_objext conftest.$ac_ext 24618fi 24619echo "$as_me:$LINENO: result: $ac_cv_func_unsetenv_noproto" >&5 24620echo "${ECHO_T}$ac_cv_func_unsetenv_noproto" >&6 24621if test "$ac_cv_func_unsetenv_noproto" = yes; then 24622 24623cat >>confdefs.h <<\_ACEOF 24624#define NEED_UNSETENV_PROTO 1 24625_ACEOF 24626 24627fi 24628fi 24629 24630 24631if test "$ac_cv_func_gethostname+set" != set -o "$ac_cv_func_gethostname" = yes; then 24632echo "$as_me:$LINENO: checking if gethostname needs a prototype" >&5 24633echo $ECHO_N "checking if gethostname needs a prototype... $ECHO_C" >&6 24634if test "${ac_cv_func_gethostname_noproto+set}" = set; then 24635 echo $ECHO_N "(cached) $ECHO_C" >&6 24636else 24637 cat >conftest.$ac_ext <<_ACEOF 24638#line $LINENO "configure" 24639#include "confdefs.h" 24640#include <unistd.h> 24641#ifdef F77_DUMMY_MAIN 24642# ifdef __cplusplus 24643 extern "C" 24644# endif 24645 int F77_DUMMY_MAIN() { return 1; } 24646#endif 24647int 24648main () 24649{ 24650struct foo { int foo; } xx; 24651extern int gethostname (struct foo*); 24652gethostname(&xx); 24653 24654 ; 24655 return 0; 24656} 24657_ACEOF 24658rm -f conftest.$ac_objext 24659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24660 (eval $ac_compile) 2>&5 24661 ac_status=$? 24662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24663 (exit $ac_status); } && 24664 { ac_try='test -s conftest.$ac_objext' 24665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24666 (eval $ac_try) 2>&5 24667 ac_status=$? 24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24669 (exit $ac_status); }; }; then 24670 eval "ac_cv_func_gethostname_noproto=yes" 24671else 24672 echo "$as_me: failed program was:" >&5 24673cat conftest.$ac_ext >&5 24674eval "ac_cv_func_gethostname_noproto=no" 24675fi 24676rm -f conftest.$ac_objext conftest.$ac_ext 24677fi 24678echo "$as_me:$LINENO: result: $ac_cv_func_gethostname_noproto" >&5 24679echo "${ECHO_T}$ac_cv_func_gethostname_noproto" >&6 24680if test "$ac_cv_func_gethostname_noproto" = yes; then 24681 24682cat >>confdefs.h <<\_ACEOF 24683#define NEED_GETHOSTNAME_PROTO 1 24684_ACEOF 24685 24686fi 24687fi 24688 24689 24690if test "$ac_cv_func_mkstemp+set" != set -o "$ac_cv_func_mkstemp" = yes; then 24691echo "$as_me:$LINENO: checking if mkstemp needs a prototype" >&5 24692echo $ECHO_N "checking if mkstemp needs a prototype... $ECHO_C" >&6 24693if test "${ac_cv_func_mkstemp_noproto+set}" = set; then 24694 echo $ECHO_N "(cached) $ECHO_C" >&6 24695else 24696 cat >conftest.$ac_ext <<_ACEOF 24697#line $LINENO "configure" 24698#include "confdefs.h" 24699#include <unistd.h> 24700#ifdef F77_DUMMY_MAIN 24701# ifdef __cplusplus 24702 extern "C" 24703# endif 24704 int F77_DUMMY_MAIN() { return 1; } 24705#endif 24706int 24707main () 24708{ 24709struct foo { int foo; } xx; 24710extern int mkstemp (struct foo*); 24711mkstemp(&xx); 24712 24713 ; 24714 return 0; 24715} 24716_ACEOF 24717rm -f conftest.$ac_objext 24718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24719 (eval $ac_compile) 2>&5 24720 ac_status=$? 24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24722 (exit $ac_status); } && 24723 { ac_try='test -s conftest.$ac_objext' 24724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24725 (eval $ac_try) 2>&5 24726 ac_status=$? 24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24728 (exit $ac_status); }; }; then 24729 eval "ac_cv_func_mkstemp_noproto=yes" 24730else 24731 echo "$as_me: failed program was:" >&5 24732cat conftest.$ac_ext >&5 24733eval "ac_cv_func_mkstemp_noproto=no" 24734fi 24735rm -f conftest.$ac_objext conftest.$ac_ext 24736fi 24737echo "$as_me:$LINENO: result: $ac_cv_func_mkstemp_noproto" >&5 24738echo "${ECHO_T}$ac_cv_func_mkstemp_noproto" >&6 24739if test "$ac_cv_func_mkstemp_noproto" = yes; then 24740 24741cat >>confdefs.h <<\_ACEOF 24742#define NEED_MKSTEMP_PROTO 1 24743_ACEOF 24744 24745fi 24746fi 24747 24748 24749if test "$ac_cv_func_getusershell+set" != set -o "$ac_cv_func_getusershell" = yes; then 24750echo "$as_me:$LINENO: checking if getusershell needs a prototype" >&5 24751echo $ECHO_N "checking if getusershell needs a prototype... $ECHO_C" >&6 24752if test "${ac_cv_func_getusershell_noproto+set}" = set; then 24753 echo $ECHO_N "(cached) $ECHO_C" >&6 24754else 24755 cat >conftest.$ac_ext <<_ACEOF 24756#line $LINENO "configure" 24757#include "confdefs.h" 24758#include <unistd.h> 24759#ifdef F77_DUMMY_MAIN 24760# ifdef __cplusplus 24761 extern "C" 24762# endif 24763 int F77_DUMMY_MAIN() { return 1; } 24764#endif 24765int 24766main () 24767{ 24768struct foo { int foo; } xx; 24769extern int getusershell (struct foo*); 24770getusershell(&xx); 24771 24772 ; 24773 return 0; 24774} 24775_ACEOF 24776rm -f conftest.$ac_objext 24777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24778 (eval $ac_compile) 2>&5 24779 ac_status=$? 24780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24781 (exit $ac_status); } && 24782 { ac_try='test -s conftest.$ac_objext' 24783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24784 (eval $ac_try) 2>&5 24785 ac_status=$? 24786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24787 (exit $ac_status); }; }; then 24788 eval "ac_cv_func_getusershell_noproto=yes" 24789else 24790 echo "$as_me: failed program was:" >&5 24791cat conftest.$ac_ext >&5 24792eval "ac_cv_func_getusershell_noproto=no" 24793fi 24794rm -f conftest.$ac_objext conftest.$ac_ext 24795fi 24796echo "$as_me:$LINENO: result: $ac_cv_func_getusershell_noproto" >&5 24797echo "${ECHO_T}$ac_cv_func_getusershell_noproto" >&6 24798if test "$ac_cv_func_getusershell_noproto" = yes; then 24799 24800cat >>confdefs.h <<\_ACEOF 24801#define NEED_GETUSERSHELL_PROTO 1 24802_ACEOF 24803 24804fi 24805fi 24806 24807 24808 24809if test "$ac_cv_func_inet_aton+set" != set -o "$ac_cv_func_inet_aton" = yes; then 24810echo "$as_me:$LINENO: checking if inet_aton needs a prototype" >&5 24811echo $ECHO_N "checking if inet_aton needs a prototype... $ECHO_C" >&6 24812if test "${ac_cv_func_inet_aton_noproto+set}" = set; then 24813 echo $ECHO_N "(cached) $ECHO_C" >&6 24814else 24815 cat >conftest.$ac_ext <<_ACEOF 24816#line $LINENO "configure" 24817#include "confdefs.h" 24818 24819#ifdef HAVE_SYS_TYPES_H 24820#include <sys/types.h> 24821#endif 24822#ifdef HAVE_SYS_SOCKET_H 24823#include <sys/socket.h> 24824#endif 24825#ifdef HAVE_NETINET_IN_H 24826#include <netinet/in.h> 24827#endif 24828#ifdef HAVE_ARPA_INET_H 24829#include <arpa/inet.h> 24830#endif 24831#ifdef F77_DUMMY_MAIN 24832# ifdef __cplusplus 24833 extern "C" 24834# endif 24835 int F77_DUMMY_MAIN() { return 1; } 24836#endif 24837int 24838main () 24839{ 24840struct foo { int foo; } xx; 24841extern int inet_aton (struct foo*); 24842inet_aton(&xx); 24843 24844 ; 24845 return 0; 24846} 24847_ACEOF 24848rm -f conftest.$ac_objext 24849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24850 (eval $ac_compile) 2>&5 24851 ac_status=$? 24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24853 (exit $ac_status); } && 24854 { ac_try='test -s conftest.$ac_objext' 24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24856 (eval $ac_try) 2>&5 24857 ac_status=$? 24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24859 (exit $ac_status); }; }; then 24860 eval "ac_cv_func_inet_aton_noproto=yes" 24861else 24862 echo "$as_me: failed program was:" >&5 24863cat conftest.$ac_ext >&5 24864eval "ac_cv_func_inet_aton_noproto=no" 24865fi 24866rm -f conftest.$ac_objext conftest.$ac_ext 24867fi 24868echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton_noproto" >&5 24869echo "${ECHO_T}$ac_cv_func_inet_aton_noproto" >&6 24870if test "$ac_cv_func_inet_aton_noproto" = yes; then 24871 24872cat >>confdefs.h <<\_ACEOF 24873#define NEED_INET_ATON_PROTO 1 24874_ACEOF 24875 24876fi 24877fi 24878 24879 24880 24881 24882 24883echo "$as_me:$LINENO: checking for crypt" >&5 24884echo $ECHO_N "checking for crypt... $ECHO_C" >&6 24885if test "${ac_cv_funclib_crypt+set}" = set; then 24886 echo $ECHO_N "(cached) $ECHO_C" >&6 24887else 24888 24889if eval "test \"\$ac_cv_func_crypt\" != yes" ; then 24890 ac_save_LIBS="$LIBS" 24891 for ac_lib in "" crypt; do 24892 case "$ac_lib" in 24893 "") ;; 24894 yes) ac_lib="" ;; 24895 no) continue ;; 24896 -l*) ;; 24897 *) ac_lib="-l$ac_lib" ;; 24898 esac 24899 LIBS=" $ac_lib $ac_save_LIBS" 24900 cat >conftest.$ac_ext <<_ACEOF 24901#line $LINENO "configure" 24902#include "confdefs.h" 24903 24904#ifdef F77_DUMMY_MAIN 24905# ifdef __cplusplus 24906 extern "C" 24907# endif 24908 int F77_DUMMY_MAIN() { return 1; } 24909#endif 24910int 24911main () 24912{ 24913crypt() 24914 ; 24915 return 0; 24916} 24917_ACEOF 24918rm -f conftest.$ac_objext conftest$ac_exeext 24919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24920 (eval $ac_link) 2>&5 24921 ac_status=$? 24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24923 (exit $ac_status); } && 24924 { ac_try='test -s conftest$ac_exeext' 24925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24926 (eval $ac_try) 2>&5 24927 ac_status=$? 24928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24929 (exit $ac_status); }; }; then 24930 eval "if test -n \"$ac_lib\";then ac_cv_funclib_crypt=$ac_lib; else ac_cv_funclib_crypt=yes; fi";break 24931else 24932 echo "$as_me: failed program was:" >&5 24933cat conftest.$ac_ext >&5 24934fi 24935rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 24936 done 24937 eval "ac_cv_funclib_crypt=\${ac_cv_funclib_crypt-no}" 24938 LIBS="$ac_save_LIBS" 24939fi 24940 24941fi 24942 24943 24944eval "ac_res=\$ac_cv_funclib_crypt" 24945 24946if false; then 24947 24948for ac_func in crypt 24949do 24950as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 24951echo "$as_me:$LINENO: checking for $ac_func" >&5 24952echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 24953if eval "test \"\${$as_ac_var+set}\" = set"; then 24954 echo $ECHO_N "(cached) $ECHO_C" >&6 24955else 24956 cat >conftest.$ac_ext <<_ACEOF 24957#line $LINENO "configure" 24958#include "confdefs.h" 24959/* System header to define __stub macros and hopefully few prototypes, 24960 which can conflict with char $ac_func (); below. */ 24961#include <assert.h> 24962/* Override any gcc2 internal prototype to avoid an error. */ 24963#ifdef __cplusplus 24964extern "C" 24965#endif 24966/* We use char because int might match the return type of a gcc2 24967 builtin and then its argument prototype would still apply. */ 24968char $ac_func (); 24969char (*f) (); 24970 24971#ifdef F77_DUMMY_MAIN 24972# ifdef __cplusplus 24973 extern "C" 24974# endif 24975 int F77_DUMMY_MAIN() { return 1; } 24976#endif 24977int 24978main () 24979{ 24980/* The GNU C library defines this for functions which it implements 24981 to always fail with ENOSYS. Some functions are actually named 24982 something starting with __ and the normal name is an alias. */ 24983#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 24984choke me 24985#else 24986f = $ac_func; 24987#endif 24988 24989 ; 24990 return 0; 24991} 24992_ACEOF 24993rm -f conftest.$ac_objext conftest$ac_exeext 24994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 24995 (eval $ac_link) 2>&5 24996 ac_status=$? 24997 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24998 (exit $ac_status); } && 24999 { ac_try='test -s conftest$ac_exeext' 25000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25001 (eval $ac_try) 2>&5 25002 ac_status=$? 25003 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25004 (exit $ac_status); }; }; then 25005 eval "$as_ac_var=yes" 25006else 25007 echo "$as_me: failed program was:" >&5 25008cat conftest.$ac_ext >&5 25009eval "$as_ac_var=no" 25010fi 25011rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 25012fi 25013echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 25014echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 25015if test `eval echo '${'$as_ac_var'}'` = yes; then 25016 cat >>confdefs.h <<_ACEOF 25017#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 25018_ACEOF 25019 25020fi 25021done 25022 25023fi 25024# crypt 25025eval "ac_tr_func=HAVE_`echo crypt | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25026eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 25027eval "LIB_crypt=$ac_res" 25028 25029case "$ac_res" in 25030 yes) 25031 eval "ac_cv_func_crypt=yes" 25032 eval "LIB_crypt=" 25033 cat >>confdefs.h <<_ACEOF 25034#define $ac_tr_func 1 25035_ACEOF 25036 25037 echo "$as_me:$LINENO: result: yes" >&5 25038echo "${ECHO_T}yes" >&6 25039 ;; 25040 no) 25041 eval "ac_cv_func_crypt=no" 25042 eval "LIB_crypt=" 25043 echo "$as_me:$LINENO: result: no" >&5 25044echo "${ECHO_T}no" >&6 25045 ;; 25046 *) 25047 eval "ac_cv_func_crypt=yes" 25048 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 25049 cat >>confdefs.h <<_ACEOF 25050#define $ac_tr_func 1 25051_ACEOF 25052 25053 cat >>confdefs.h <<_ACEOF 25054#define $ac_tr_lib 1 25055_ACEOF 25056 25057 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 25058echo "${ECHO_T}yes, in $ac_res" >&6 25059 ;; 25060esac 25061 25062 25063 25064 25065 25066 25067echo "$as_me:$LINENO: checking if gethostbyname is compatible with system prototype" >&5 25068echo $ECHO_N "checking if gethostbyname is compatible with system prototype... $ECHO_C" >&6 25069if test "${ac_cv_func_gethostbyname_proto_compat+set}" = set; then 25070 echo $ECHO_N "(cached) $ECHO_C" >&6 25071else 25072 cat >conftest.$ac_ext <<_ACEOF 25073#line $LINENO "configure" 25074#include "confdefs.h" 25075 25076#ifdef HAVE_SYS_TYPES_H 25077#include <sys/types.h> 25078#endif 25079#ifdef HAVE_SYS_SOCKET_H 25080#include <sys/socket.h> 25081#endif 25082#ifdef HAVE_NETINET_IN_H 25083#include <netinet/in.h> 25084#endif 25085#ifdef HAVE_ARPA_INET_H 25086#include <arpa/inet.h> 25087#endif 25088#ifdef HAVE_NETDB_H 25089#include <netdb.h> 25090#endif 25091 25092#ifdef F77_DUMMY_MAIN 25093# ifdef __cplusplus 25094 extern "C" 25095# endif 25096 int F77_DUMMY_MAIN() { return 1; } 25097#endif 25098int 25099main () 25100{ 25101struct hostent *gethostbyname(const char *); 25102 ; 25103 return 0; 25104} 25105_ACEOF 25106rm -f conftest.$ac_objext 25107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25108 (eval $ac_compile) 2>&5 25109 ac_status=$? 25110 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25111 (exit $ac_status); } && 25112 { ac_try='test -s conftest.$ac_objext' 25113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25114 (eval $ac_try) 2>&5 25115 ac_status=$? 25116 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25117 (exit $ac_status); }; }; then 25118 eval "ac_cv_func_gethostbyname_proto_compat=yes" 25119else 25120 echo "$as_me: failed program was:" >&5 25121cat conftest.$ac_ext >&5 25122eval "ac_cv_func_gethostbyname_proto_compat=no" 25123fi 25124rm -f conftest.$ac_objext conftest.$ac_ext 25125fi 25126echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_proto_compat" >&5 25127echo "${ECHO_T}$ac_cv_func_gethostbyname_proto_compat" >&6 25128 25129if test "$ac_cv_func_gethostbyname_proto_compat" = yes; then 25130 25131cat >>confdefs.h <<\_ACEOF 25132#define GETHOSTBYNAME_PROTO_COMPATIBLE 1 25133_ACEOF 25134 25135fi 25136 25137 25138 25139 25140echo "$as_me:$LINENO: checking if gethostbyaddr is compatible with system prototype" >&5 25141echo $ECHO_N "checking if gethostbyaddr is compatible with system prototype... $ECHO_C" >&6 25142if test "${ac_cv_func_gethostbyaddr_proto_compat+set}" = set; then 25143 echo $ECHO_N "(cached) $ECHO_C" >&6 25144else 25145 cat >conftest.$ac_ext <<_ACEOF 25146#line $LINENO "configure" 25147#include "confdefs.h" 25148 25149#ifdef HAVE_SYS_TYPES_H 25150#include <sys/types.h> 25151#endif 25152#ifdef HAVE_SYS_SOCKET_H 25153#include <sys/socket.h> 25154#endif 25155#ifdef HAVE_NETINET_IN_H 25156#include <netinet/in.h> 25157#endif 25158#ifdef HAVE_ARPA_INET_H 25159#include <arpa/inet.h> 25160#endif 25161#ifdef HAVE_NETDB_H 25162#include <netdb.h> 25163#endif 25164 25165#ifdef F77_DUMMY_MAIN 25166# ifdef __cplusplus 25167 extern "C" 25168# endif 25169 int F77_DUMMY_MAIN() { return 1; } 25170#endif 25171int 25172main () 25173{ 25174struct hostent *gethostbyaddr(const void *, size_t, int); 25175 ; 25176 return 0; 25177} 25178_ACEOF 25179rm -f conftest.$ac_objext 25180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25181 (eval $ac_compile) 2>&5 25182 ac_status=$? 25183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25184 (exit $ac_status); } && 25185 { ac_try='test -s conftest.$ac_objext' 25186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25187 (eval $ac_try) 2>&5 25188 ac_status=$? 25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25190 (exit $ac_status); }; }; then 25191 eval "ac_cv_func_gethostbyaddr_proto_compat=yes" 25192else 25193 echo "$as_me: failed program was:" >&5 25194cat conftest.$ac_ext >&5 25195eval "ac_cv_func_gethostbyaddr_proto_compat=no" 25196fi 25197rm -f conftest.$ac_objext conftest.$ac_ext 25198fi 25199echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyaddr_proto_compat" >&5 25200echo "${ECHO_T}$ac_cv_func_gethostbyaddr_proto_compat" >&6 25201 25202if test "$ac_cv_func_gethostbyaddr_proto_compat" = yes; then 25203 25204cat >>confdefs.h <<\_ACEOF 25205#define GETHOSTBYADDR_PROTO_COMPATIBLE 1 25206_ACEOF 25207 25208fi 25209 25210 25211 25212 25213echo "$as_me:$LINENO: checking if getservbyname is compatible with system prototype" >&5 25214echo $ECHO_N "checking if getservbyname is compatible with system prototype... $ECHO_C" >&6 25215if test "${ac_cv_func_getservbyname_proto_compat+set}" = set; then 25216 echo $ECHO_N "(cached) $ECHO_C" >&6 25217else 25218 cat >conftest.$ac_ext <<_ACEOF 25219#line $LINENO "configure" 25220#include "confdefs.h" 25221 25222#ifdef HAVE_SYS_TYPES_H 25223#include <sys/types.h> 25224#endif 25225#ifdef HAVE_SYS_SOCKET_H 25226#include <sys/socket.h> 25227#endif 25228#ifdef HAVE_NETINET_IN_H 25229#include <netinet/in.h> 25230#endif 25231#ifdef HAVE_ARPA_INET_H 25232#include <arpa/inet.h> 25233#endif 25234#ifdef HAVE_NETDB_H 25235#include <netdb.h> 25236#endif 25237 25238#ifdef F77_DUMMY_MAIN 25239# ifdef __cplusplus 25240 extern "C" 25241# endif 25242 int F77_DUMMY_MAIN() { return 1; } 25243#endif 25244int 25245main () 25246{ 25247struct servent *getservbyname(const char *, const char *); 25248 ; 25249 return 0; 25250} 25251_ACEOF 25252rm -f conftest.$ac_objext 25253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25254 (eval $ac_compile) 2>&5 25255 ac_status=$? 25256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25257 (exit $ac_status); } && 25258 { ac_try='test -s conftest.$ac_objext' 25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25260 (eval $ac_try) 2>&5 25261 ac_status=$? 25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25263 (exit $ac_status); }; }; then 25264 eval "ac_cv_func_getservbyname_proto_compat=yes" 25265else 25266 echo "$as_me: failed program was:" >&5 25267cat conftest.$ac_ext >&5 25268eval "ac_cv_func_getservbyname_proto_compat=no" 25269fi 25270rm -f conftest.$ac_objext conftest.$ac_ext 25271fi 25272echo "$as_me:$LINENO: result: $ac_cv_func_getservbyname_proto_compat" >&5 25273echo "${ECHO_T}$ac_cv_func_getservbyname_proto_compat" >&6 25274 25275if test "$ac_cv_func_getservbyname_proto_compat" = yes; then 25276 25277cat >>confdefs.h <<\_ACEOF 25278#define GETSERVBYNAME_PROTO_COMPATIBLE 1 25279_ACEOF 25280 25281fi 25282 25283 25284 25285 25286echo "$as_me:$LINENO: checking if getsockname is compatible with system prototype" >&5 25287echo $ECHO_N "checking if getsockname is compatible with system prototype... $ECHO_C" >&6 25288if test "${ac_cv_func_getsockname_proto_compat+set}" = set; then 25289 echo $ECHO_N "(cached) $ECHO_C" >&6 25290else 25291 cat >conftest.$ac_ext <<_ACEOF 25292#line $LINENO "configure" 25293#include "confdefs.h" 25294 25295#ifdef HAVE_SYS_TYPES_H 25296#include <sys/types.h> 25297#endif 25298#ifdef HAVE_SYS_SOCKET_H 25299#include <sys/socket.h> 25300#endif 25301 25302#ifdef F77_DUMMY_MAIN 25303# ifdef __cplusplus 25304 extern "C" 25305# endif 25306 int F77_DUMMY_MAIN() { return 1; } 25307#endif 25308int 25309main () 25310{ 25311int getsockname(int, struct sockaddr*, socklen_t*); 25312 ; 25313 return 0; 25314} 25315_ACEOF 25316rm -f conftest.$ac_objext 25317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25318 (eval $ac_compile) 2>&5 25319 ac_status=$? 25320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25321 (exit $ac_status); } && 25322 { ac_try='test -s conftest.$ac_objext' 25323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25324 (eval $ac_try) 2>&5 25325 ac_status=$? 25326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25327 (exit $ac_status); }; }; then 25328 eval "ac_cv_func_getsockname_proto_compat=yes" 25329else 25330 echo "$as_me: failed program was:" >&5 25331cat conftest.$ac_ext >&5 25332eval "ac_cv_func_getsockname_proto_compat=no" 25333fi 25334rm -f conftest.$ac_objext conftest.$ac_ext 25335fi 25336echo "$as_me:$LINENO: result: $ac_cv_func_getsockname_proto_compat" >&5 25337echo "${ECHO_T}$ac_cv_func_getsockname_proto_compat" >&6 25338 25339if test "$ac_cv_func_getsockname_proto_compat" = yes; then 25340 25341cat >>confdefs.h <<\_ACEOF 25342#define GETSOCKNAME_PROTO_COMPATIBLE 1 25343_ACEOF 25344 25345fi 25346 25347 25348 25349 25350echo "$as_me:$LINENO: checking if openlog is compatible with system prototype" >&5 25351echo $ECHO_N "checking if openlog is compatible with system prototype... $ECHO_C" >&6 25352if test "${ac_cv_func_openlog_proto_compat+set}" = set; then 25353 echo $ECHO_N "(cached) $ECHO_C" >&6 25354else 25355 cat >conftest.$ac_ext <<_ACEOF 25356#line $LINENO "configure" 25357#include "confdefs.h" 25358 25359#ifdef HAVE_SYSLOG_H 25360#include <syslog.h> 25361#endif 25362 25363#ifdef F77_DUMMY_MAIN 25364# ifdef __cplusplus 25365 extern "C" 25366# endif 25367 int F77_DUMMY_MAIN() { return 1; } 25368#endif 25369int 25370main () 25371{ 25372void openlog(const char *, int, int); 25373 ; 25374 return 0; 25375} 25376_ACEOF 25377rm -f conftest.$ac_objext 25378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25379 (eval $ac_compile) 2>&5 25380 ac_status=$? 25381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25382 (exit $ac_status); } && 25383 { ac_try='test -s conftest.$ac_objext' 25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25385 (eval $ac_try) 2>&5 25386 ac_status=$? 25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25388 (exit $ac_status); }; }; then 25389 eval "ac_cv_func_openlog_proto_compat=yes" 25390else 25391 echo "$as_me: failed program was:" >&5 25392cat conftest.$ac_ext >&5 25393eval "ac_cv_func_openlog_proto_compat=no" 25394fi 25395rm -f conftest.$ac_objext conftest.$ac_ext 25396fi 25397echo "$as_me:$LINENO: result: $ac_cv_func_openlog_proto_compat" >&5 25398echo "${ECHO_T}$ac_cv_func_openlog_proto_compat" >&6 25399 25400if test "$ac_cv_func_openlog_proto_compat" = yes; then 25401 25402cat >>confdefs.h <<\_ACEOF 25403#define OPENLOG_PROTO_COMPATIBLE 1 25404_ACEOF 25405 25406fi 25407 25408 25409 25410 25411if test "$ac_cv_func_crypt+set" != set -o "$ac_cv_func_crypt" = yes; then 25412echo "$as_me:$LINENO: checking if crypt needs a prototype" >&5 25413echo $ECHO_N "checking if crypt needs a prototype... $ECHO_C" >&6 25414if test "${ac_cv_func_crypt_noproto+set}" = set; then 25415 echo $ECHO_N "(cached) $ECHO_C" >&6 25416else 25417 cat >conftest.$ac_ext <<_ACEOF 25418#line $LINENO "configure" 25419#include "confdefs.h" 25420 25421#ifdef HAVE_CRYPT_H 25422#include <crypt.h> 25423#endif 25424#ifdef HAVE_UNISTD_H 25425#include <unistd.h> 25426#endif 25427 25428#ifdef F77_DUMMY_MAIN 25429# ifdef __cplusplus 25430 extern "C" 25431# endif 25432 int F77_DUMMY_MAIN() { return 1; } 25433#endif 25434int 25435main () 25436{ 25437struct foo { int foo; } xx; 25438extern int crypt (struct foo*); 25439crypt(&xx); 25440 25441 ; 25442 return 0; 25443} 25444_ACEOF 25445rm -f conftest.$ac_objext 25446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25447 (eval $ac_compile) 2>&5 25448 ac_status=$? 25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25450 (exit $ac_status); } && 25451 { ac_try='test -s conftest.$ac_objext' 25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25453 (eval $ac_try) 2>&5 25454 ac_status=$? 25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25456 (exit $ac_status); }; }; then 25457 eval "ac_cv_func_crypt_noproto=yes" 25458else 25459 echo "$as_me: failed program was:" >&5 25460cat conftest.$ac_ext >&5 25461eval "ac_cv_func_crypt_noproto=no" 25462fi 25463rm -f conftest.$ac_objext conftest.$ac_ext 25464fi 25465echo "$as_me:$LINENO: result: $ac_cv_func_crypt_noproto" >&5 25466echo "${ECHO_T}$ac_cv_func_crypt_noproto" >&6 25467if test "$ac_cv_func_crypt_noproto" = yes; then 25468 25469cat >>confdefs.h <<\_ACEOF 25470#define NEED_CRYPT_PROTO 1 25471_ACEOF 25472 25473fi 25474fi 25475 25476 25477 25478 25479echo "$as_me:$LINENO: checking for h_errno" >&5 25480echo $ECHO_N "checking for h_errno... $ECHO_C" >&6 25481if test "${ac_cv_var_h_errno+set}" = set; then 25482 echo $ECHO_N "(cached) $ECHO_C" >&6 25483else 25484
|
| 25485 25486 cat >conftest.$ac_ext <<_ACEOF 25487#line $LINENO "configure" 25488#include "confdefs.h" 25489#ifdef HAVE_SYS_TYPES_H 25490#include <sys/types.h> 25491#endif 25492#ifdef HAVE_NETDB_H 25493#include <netdb.h> 25494#endif 25495 void * foo() { return &h_errno; } 25496#ifdef F77_DUMMY_MAIN 25497# ifdef __cplusplus 25498 extern "C" 25499# endif 25500 int F77_DUMMY_MAIN() { return 1; } 25501#endif 25502int 25503main () 25504{ 25505foo() 25506 ; 25507 return 0; 25508} 25509_ACEOF 25510rm -f conftest.$ac_objext conftest$ac_exeext 25511if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25512 (eval $ac_link) 2>&5 25513 ac_status=$? 25514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25515 (exit $ac_status); } && 25516 { ac_try='test -s conftest$ac_exeext' 25517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25518 (eval $ac_try) 2>&5 25519 ac_status=$? 25520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25521 (exit $ac_status); }; }; then 25522 ac_cv_var_h_errno=yes 25523else 25524 echo "$as_me: failed program was:" >&5 25525cat conftest.$ac_ext >&5 25526ac_cv_var_h_errno=no 25527fi 25528rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 25529if test "$ac_cv_var_h_errno" != yes ; then
|
25443cat >conftest.$ac_ext <<_ACEOF 25444#line $LINENO "configure" 25445#include "confdefs.h" 25446extern int h_errno; 25447int foo() { return h_errno; } 25448#ifdef F77_DUMMY_MAIN 25449# ifdef __cplusplus 25450 extern "C" 25451# endif 25452 int F77_DUMMY_MAIN() { return 1; } 25453#endif 25454int 25455main () 25456{ 25457foo() 25458 ; 25459 return 0; 25460} 25461_ACEOF 25462rm -f conftest.$ac_objext conftest$ac_exeext 25463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25464 (eval $ac_link) 2>&5 25465 ac_status=$? 25466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25467 (exit $ac_status); } && 25468 { ac_try='test -s conftest$ac_exeext' 25469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25470 (eval $ac_try) 2>&5 25471 ac_status=$? 25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25473 (exit $ac_status); }; }; then 25474 ac_cv_var_h_errno=yes 25475else 25476 echo "$as_me: failed program was:" >&5 25477cat conftest.$ac_ext >&5 25478ac_cv_var_h_errno=no 25479fi 25480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 25530cat >conftest.$ac_ext <<_ACEOF 25531#line $LINENO "configure" 25532#include "confdefs.h" 25533extern int h_errno; 25534int foo() { return h_errno; } 25535#ifdef F77_DUMMY_MAIN 25536# ifdef __cplusplus 25537 extern "C" 25538# endif 25539 int F77_DUMMY_MAIN() { return 1; } 25540#endif 25541int 25542main () 25543{ 25544foo() 25545 ; 25546 return 0; 25547} 25548_ACEOF 25549rm -f conftest.$ac_objext conftest$ac_exeext 25550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25551 (eval $ac_link) 2>&5 25552 ac_status=$? 25553 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25554 (exit $ac_status); } && 25555 { ac_try='test -s conftest$ac_exeext' 25556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25557 (eval $ac_try) 2>&5 25558 ac_status=$? 25559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25560 (exit $ac_status); }; }; then 25561 ac_cv_var_h_errno=yes 25562else 25563 echo "$as_me: failed program was:" >&5 25564cat conftest.$ac_ext >&5 25565ac_cv_var_h_errno=no 25566fi 25567rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 25568fi
|
25481 25482fi 25483 25484ac_foo=`eval echo \\$ac_cv_var_h_errno` 25485echo "$as_me:$LINENO: result: $ac_foo" >&5 25486echo "${ECHO_T}$ac_foo" >&6 25487if test "$ac_foo" = yes; then 25488 25489cat >>confdefs.h <<_ACEOF 25490#define HAVE_H_ERRNO 1 25491_ACEOF 25492 25493 25494echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5 25495echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6 25496if test "${ac_cv_var_h_errno_declaration+set}" = set; then 25497 echo $ECHO_N "(cached) $ECHO_C" >&6 25498else 25499 25500cat >conftest.$ac_ext <<_ACEOF 25501#line $LINENO "configure" 25502#include "confdefs.h" 25503#ifdef HAVE_SYS_TYPES_H 25504#include <sys/types.h> 25505#endif 25506#ifdef HAVE_NETDB_H 25507#include <netdb.h> 25508#endif 25509extern struct { int foo; } h_errno; 25510#ifdef F77_DUMMY_MAIN 25511# ifdef __cplusplus 25512 extern "C" 25513# endif 25514 int F77_DUMMY_MAIN() { return 1; } 25515#endif 25516int 25517main () 25518{ 25519h_errno.foo = 1; 25520 ; 25521 return 0; 25522} 25523_ACEOF 25524rm -f conftest.$ac_objext 25525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25526 (eval $ac_compile) 2>&5 25527 ac_status=$? 25528 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25529 (exit $ac_status); } && 25530 { ac_try='test -s conftest.$ac_objext' 25531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25532 (eval $ac_try) 2>&5 25533 ac_status=$? 25534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25535 (exit $ac_status); }; }; then 25536 eval "ac_cv_var_h_errno_declaration=no" 25537else 25538 echo "$as_me: failed program was:" >&5 25539cat conftest.$ac_ext >&5 25540eval "ac_cv_var_h_errno_declaration=yes" 25541fi 25542rm -f conftest.$ac_objext conftest.$ac_ext 25543 25544fi 25545 25546 25547 25548 25549echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5 25550echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6 25551if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then 25552 25553cat >>confdefs.h <<\_ACEOF 25554#define HAVE_H_ERRNO_DECLARATION 1 25555_ACEOF 25556 25557fi 25558 25559 25560fi 25561 25562 25563 25564echo "$as_me:$LINENO: checking for h_errlist" >&5 25565echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6 25566if test "${ac_cv_var_h_errlist+set}" = set; then 25567 echo $ECHO_N "(cached) $ECHO_C" >&6 25568else 25569
| 25569 25570fi 25571 25572ac_foo=`eval echo \\$ac_cv_var_h_errno` 25573echo "$as_me:$LINENO: result: $ac_foo" >&5 25574echo "${ECHO_T}$ac_foo" >&6 25575if test "$ac_foo" = yes; then 25576 25577cat >>confdefs.h <<_ACEOF 25578#define HAVE_H_ERRNO 1 25579_ACEOF 25580 25581 25582echo "$as_me:$LINENO: checking if h_errno is properly declared" >&5 25583echo $ECHO_N "checking if h_errno is properly declared... $ECHO_C" >&6 25584if test "${ac_cv_var_h_errno_declaration+set}" = set; then 25585 echo $ECHO_N "(cached) $ECHO_C" >&6 25586else 25587 25588cat >conftest.$ac_ext <<_ACEOF 25589#line $LINENO "configure" 25590#include "confdefs.h" 25591#ifdef HAVE_SYS_TYPES_H 25592#include <sys/types.h> 25593#endif 25594#ifdef HAVE_NETDB_H 25595#include <netdb.h> 25596#endif 25597extern struct { int foo; } h_errno; 25598#ifdef F77_DUMMY_MAIN 25599# ifdef __cplusplus 25600 extern "C" 25601# endif 25602 int F77_DUMMY_MAIN() { return 1; } 25603#endif 25604int 25605main () 25606{ 25607h_errno.foo = 1; 25608 ; 25609 return 0; 25610} 25611_ACEOF 25612rm -f conftest.$ac_objext 25613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25614 (eval $ac_compile) 2>&5 25615 ac_status=$? 25616 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25617 (exit $ac_status); } && 25618 { ac_try='test -s conftest.$ac_objext' 25619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25620 (eval $ac_try) 2>&5 25621 ac_status=$? 25622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25623 (exit $ac_status); }; }; then 25624 eval "ac_cv_var_h_errno_declaration=no" 25625else 25626 echo "$as_me: failed program was:" >&5 25627cat conftest.$ac_ext >&5 25628eval "ac_cv_var_h_errno_declaration=yes" 25629fi 25630rm -f conftest.$ac_objext conftest.$ac_ext 25631 25632fi 25633 25634 25635 25636 25637echo "$as_me:$LINENO: result: $ac_cv_var_h_errno_declaration" >&5 25638echo "${ECHO_T}$ac_cv_var_h_errno_declaration" >&6 25639if eval "test \"\$ac_cv_var_h_errno_declaration\" = yes"; then 25640 25641cat >>confdefs.h <<\_ACEOF 25642#define HAVE_H_ERRNO_DECLARATION 1 25643_ACEOF 25644 25645fi 25646 25647 25648fi 25649 25650 25651 25652echo "$as_me:$LINENO: checking for h_errlist" >&5 25653echo $ECHO_N "checking for h_errlist... $ECHO_C" >&6 25654if test "${ac_cv_var_h_errlist+set}" = set; then 25655 echo $ECHO_N "(cached) $ECHO_C" >&6 25656else 25657
|
| 25658 25659 cat >conftest.$ac_ext <<_ACEOF 25660#line $LINENO "configure" 25661#include "confdefs.h" 25662#ifdef HAVE_NETDB_H 25663#include <netdb.h> 25664#endif 25665 void * foo() { return &h_errlist; } 25666#ifdef F77_DUMMY_MAIN 25667# ifdef __cplusplus 25668 extern "C" 25669# endif 25670 int F77_DUMMY_MAIN() { return 1; } 25671#endif 25672int 25673main () 25674{ 25675foo() 25676 ; 25677 return 0; 25678} 25679_ACEOF 25680rm -f conftest.$ac_objext conftest$ac_exeext 25681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25682 (eval $ac_link) 2>&5 25683 ac_status=$? 25684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25685 (exit $ac_status); } && 25686 { ac_try='test -s conftest$ac_exeext' 25687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25688 (eval $ac_try) 2>&5 25689 ac_status=$? 25690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25691 (exit $ac_status); }; }; then 25692 ac_cv_var_h_errlist=yes 25693else 25694 echo "$as_me: failed program was:" >&5 25695cat conftest.$ac_ext >&5 25696ac_cv_var_h_errlist=no 25697fi 25698rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 25699if test "$ac_cv_var_h_errlist" != yes ; then
|
25570cat >conftest.$ac_ext <<_ACEOF 25571#line $LINENO "configure" 25572#include "confdefs.h" 25573extern int h_errlist; 25574int foo() { return h_errlist; } 25575#ifdef F77_DUMMY_MAIN 25576# ifdef __cplusplus 25577 extern "C" 25578# endif 25579 int F77_DUMMY_MAIN() { return 1; } 25580#endif 25581int 25582main () 25583{ 25584foo() 25585 ; 25586 return 0; 25587} 25588_ACEOF 25589rm -f conftest.$ac_objext conftest$ac_exeext 25590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25591 (eval $ac_link) 2>&5 25592 ac_status=$? 25593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25594 (exit $ac_status); } && 25595 { ac_try='test -s conftest$ac_exeext' 25596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25597 (eval $ac_try) 2>&5 25598 ac_status=$? 25599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25600 (exit $ac_status); }; }; then 25601 ac_cv_var_h_errlist=yes 25602else 25603 echo "$as_me: failed program was:" >&5 25604cat conftest.$ac_ext >&5 25605ac_cv_var_h_errlist=no 25606fi 25607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 25700cat >conftest.$ac_ext <<_ACEOF 25701#line $LINENO "configure" 25702#include "confdefs.h" 25703extern int h_errlist; 25704int foo() { return h_errlist; } 25705#ifdef F77_DUMMY_MAIN 25706# ifdef __cplusplus 25707 extern "C" 25708# endif 25709 int F77_DUMMY_MAIN() { return 1; } 25710#endif 25711int 25712main () 25713{ 25714foo() 25715 ; 25716 return 0; 25717} 25718_ACEOF 25719rm -f conftest.$ac_objext conftest$ac_exeext 25720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25721 (eval $ac_link) 2>&5 25722 ac_status=$? 25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25724 (exit $ac_status); } && 25725 { ac_try='test -s conftest$ac_exeext' 25726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25727 (eval $ac_try) 2>&5 25728 ac_status=$? 25729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25730 (exit $ac_status); }; }; then 25731 ac_cv_var_h_errlist=yes 25732else 25733 echo "$as_me: failed program was:" >&5 25734cat conftest.$ac_ext >&5 25735ac_cv_var_h_errlist=no 25736fi 25737rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 25738fi
|
25608 25609fi 25610 25611ac_foo=`eval echo \\$ac_cv_var_h_errlist` 25612echo "$as_me:$LINENO: result: $ac_foo" >&5 25613echo "${ECHO_T}$ac_foo" >&6 25614if test "$ac_foo" = yes; then 25615 25616cat >>confdefs.h <<_ACEOF 25617#define HAVE_H_ERRLIST 1 25618_ACEOF 25619 25620 25621echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5 25622echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6 25623if test "${ac_cv_var_h_errlist_declaration+set}" = set; then 25624 echo $ECHO_N "(cached) $ECHO_C" >&6 25625else 25626 25627cat >conftest.$ac_ext <<_ACEOF 25628#line $LINENO "configure" 25629#include "confdefs.h" 25630#ifdef HAVE_NETDB_H 25631#include <netdb.h> 25632#endif 25633extern struct { int foo; } h_errlist; 25634#ifdef F77_DUMMY_MAIN 25635# ifdef __cplusplus 25636 extern "C" 25637# endif 25638 int F77_DUMMY_MAIN() { return 1; } 25639#endif 25640int 25641main () 25642{ 25643h_errlist.foo = 1; 25644 ; 25645 return 0; 25646} 25647_ACEOF 25648rm -f conftest.$ac_objext 25649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25650 (eval $ac_compile) 2>&5 25651 ac_status=$? 25652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25653 (exit $ac_status); } && 25654 { ac_try='test -s conftest.$ac_objext' 25655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25656 (eval $ac_try) 2>&5 25657 ac_status=$? 25658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25659 (exit $ac_status); }; }; then 25660 eval "ac_cv_var_h_errlist_declaration=no" 25661else 25662 echo "$as_me: failed program was:" >&5 25663cat conftest.$ac_ext >&5 25664eval "ac_cv_var_h_errlist_declaration=yes" 25665fi 25666rm -f conftest.$ac_objext conftest.$ac_ext 25667 25668fi 25669 25670 25671 25672 25673echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5 25674echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6 25675if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then 25676 25677cat >>confdefs.h <<\_ACEOF 25678#define HAVE_H_ERRLIST_DECLARATION 1 25679_ACEOF 25680 25681fi 25682 25683 25684fi 25685 25686 25687 25688echo "$as_me:$LINENO: checking for h_nerr" >&5 25689echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6 25690if test "${ac_cv_var_h_nerr+set}" = set; then 25691 echo $ECHO_N "(cached) $ECHO_C" >&6 25692else 25693
| 25739 25740fi 25741 25742ac_foo=`eval echo \\$ac_cv_var_h_errlist` 25743echo "$as_me:$LINENO: result: $ac_foo" >&5 25744echo "${ECHO_T}$ac_foo" >&6 25745if test "$ac_foo" = yes; then 25746 25747cat >>confdefs.h <<_ACEOF 25748#define HAVE_H_ERRLIST 1 25749_ACEOF 25750 25751 25752echo "$as_me:$LINENO: checking if h_errlist is properly declared" >&5 25753echo $ECHO_N "checking if h_errlist is properly declared... $ECHO_C" >&6 25754if test "${ac_cv_var_h_errlist_declaration+set}" = set; then 25755 echo $ECHO_N "(cached) $ECHO_C" >&6 25756else 25757 25758cat >conftest.$ac_ext <<_ACEOF 25759#line $LINENO "configure" 25760#include "confdefs.h" 25761#ifdef HAVE_NETDB_H 25762#include <netdb.h> 25763#endif 25764extern struct { int foo; } h_errlist; 25765#ifdef F77_DUMMY_MAIN 25766# ifdef __cplusplus 25767 extern "C" 25768# endif 25769 int F77_DUMMY_MAIN() { return 1; } 25770#endif 25771int 25772main () 25773{ 25774h_errlist.foo = 1; 25775 ; 25776 return 0; 25777} 25778_ACEOF 25779rm -f conftest.$ac_objext 25780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25781 (eval $ac_compile) 2>&5 25782 ac_status=$? 25783 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25784 (exit $ac_status); } && 25785 { ac_try='test -s conftest.$ac_objext' 25786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25787 (eval $ac_try) 2>&5 25788 ac_status=$? 25789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25790 (exit $ac_status); }; }; then 25791 eval "ac_cv_var_h_errlist_declaration=no" 25792else 25793 echo "$as_me: failed program was:" >&5 25794cat conftest.$ac_ext >&5 25795eval "ac_cv_var_h_errlist_declaration=yes" 25796fi 25797rm -f conftest.$ac_objext conftest.$ac_ext 25798 25799fi 25800 25801 25802 25803 25804echo "$as_me:$LINENO: result: $ac_cv_var_h_errlist_declaration" >&5 25805echo "${ECHO_T}$ac_cv_var_h_errlist_declaration" >&6 25806if eval "test \"\$ac_cv_var_h_errlist_declaration\" = yes"; then 25807 25808cat >>confdefs.h <<\_ACEOF 25809#define HAVE_H_ERRLIST_DECLARATION 1 25810_ACEOF 25811 25812fi 25813 25814 25815fi 25816 25817 25818 25819echo "$as_me:$LINENO: checking for h_nerr" >&5 25820echo $ECHO_N "checking for h_nerr... $ECHO_C" >&6 25821if test "${ac_cv_var_h_nerr+set}" = set; then 25822 echo $ECHO_N "(cached) $ECHO_C" >&6 25823else 25824
|
| 25825 25826 cat >conftest.$ac_ext <<_ACEOF 25827#line $LINENO "configure" 25828#include "confdefs.h" 25829#ifdef HAVE_NETDB_H 25830#include <netdb.h> 25831#endif 25832 void * foo() { return &h_nerr; } 25833#ifdef F77_DUMMY_MAIN 25834# ifdef __cplusplus 25835 extern "C" 25836# endif 25837 int F77_DUMMY_MAIN() { return 1; } 25838#endif 25839int 25840main () 25841{ 25842foo() 25843 ; 25844 return 0; 25845} 25846_ACEOF 25847rm -f conftest.$ac_objext conftest$ac_exeext 25848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25849 (eval $ac_link) 2>&5 25850 ac_status=$? 25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25852 (exit $ac_status); } && 25853 { ac_try='test -s conftest$ac_exeext' 25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25855 (eval $ac_try) 2>&5 25856 ac_status=$? 25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25858 (exit $ac_status); }; }; then 25859 ac_cv_var_h_nerr=yes 25860else 25861 echo "$as_me: failed program was:" >&5 25862cat conftest.$ac_ext >&5 25863ac_cv_var_h_nerr=no 25864fi 25865rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 25866if test "$ac_cv_var_h_nerr" != yes ; then
|
25694cat >conftest.$ac_ext <<_ACEOF 25695#line $LINENO "configure" 25696#include "confdefs.h" 25697extern int h_nerr; 25698int foo() { return h_nerr; } 25699#ifdef F77_DUMMY_MAIN 25700# ifdef __cplusplus 25701 extern "C" 25702# endif 25703 int F77_DUMMY_MAIN() { return 1; } 25704#endif 25705int 25706main () 25707{ 25708foo() 25709 ; 25710 return 0; 25711} 25712_ACEOF 25713rm -f conftest.$ac_objext conftest$ac_exeext 25714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25715 (eval $ac_link) 2>&5 25716 ac_status=$? 25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25718 (exit $ac_status); } && 25719 { ac_try='test -s conftest$ac_exeext' 25720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25721 (eval $ac_try) 2>&5 25722 ac_status=$? 25723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25724 (exit $ac_status); }; }; then 25725 ac_cv_var_h_nerr=yes 25726else 25727 echo "$as_me: failed program was:" >&5 25728cat conftest.$ac_ext >&5 25729ac_cv_var_h_nerr=no 25730fi 25731rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 25867cat >conftest.$ac_ext <<_ACEOF 25868#line $LINENO "configure" 25869#include "confdefs.h" 25870extern int h_nerr; 25871int foo() { return h_nerr; } 25872#ifdef F77_DUMMY_MAIN 25873# ifdef __cplusplus 25874 extern "C" 25875# endif 25876 int F77_DUMMY_MAIN() { return 1; } 25877#endif 25878int 25879main () 25880{ 25881foo() 25882 ; 25883 return 0; 25884} 25885_ACEOF 25886rm -f conftest.$ac_objext conftest$ac_exeext 25887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25888 (eval $ac_link) 2>&5 25889 ac_status=$? 25890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25891 (exit $ac_status); } && 25892 { ac_try='test -s conftest$ac_exeext' 25893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25894 (eval $ac_try) 2>&5 25895 ac_status=$? 25896 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25897 (exit $ac_status); }; }; then 25898 ac_cv_var_h_nerr=yes 25899else 25900 echo "$as_me: failed program was:" >&5 25901cat conftest.$ac_ext >&5 25902ac_cv_var_h_nerr=no 25903fi 25904rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 25905fi
|
25732 25733fi 25734 25735ac_foo=`eval echo \\$ac_cv_var_h_nerr` 25736echo "$as_me:$LINENO: result: $ac_foo" >&5 25737echo "${ECHO_T}$ac_foo" >&6 25738if test "$ac_foo" = yes; then 25739 25740cat >>confdefs.h <<_ACEOF 25741#define HAVE_H_NERR 1 25742_ACEOF 25743 25744 25745echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5 25746echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6 25747if test "${ac_cv_var_h_nerr_declaration+set}" = set; then 25748 echo $ECHO_N "(cached) $ECHO_C" >&6 25749else 25750 25751cat >conftest.$ac_ext <<_ACEOF 25752#line $LINENO "configure" 25753#include "confdefs.h" 25754#ifdef HAVE_NETDB_H 25755#include <netdb.h> 25756#endif 25757extern struct { int foo; } h_nerr; 25758#ifdef F77_DUMMY_MAIN 25759# ifdef __cplusplus 25760 extern "C" 25761# endif 25762 int F77_DUMMY_MAIN() { return 1; } 25763#endif 25764int 25765main () 25766{ 25767h_nerr.foo = 1; 25768 ; 25769 return 0; 25770} 25771_ACEOF 25772rm -f conftest.$ac_objext 25773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25774 (eval $ac_compile) 2>&5 25775 ac_status=$? 25776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25777 (exit $ac_status); } && 25778 { ac_try='test -s conftest.$ac_objext' 25779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25780 (eval $ac_try) 2>&5 25781 ac_status=$? 25782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25783 (exit $ac_status); }; }; then 25784 eval "ac_cv_var_h_nerr_declaration=no" 25785else 25786 echo "$as_me: failed program was:" >&5 25787cat conftest.$ac_ext >&5 25788eval "ac_cv_var_h_nerr_declaration=yes" 25789fi 25790rm -f conftest.$ac_objext conftest.$ac_ext 25791 25792fi 25793 25794 25795 25796 25797echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5 25798echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6 25799if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then 25800 25801cat >>confdefs.h <<\_ACEOF 25802#define HAVE_H_NERR_DECLARATION 1 25803_ACEOF 25804 25805fi 25806 25807 25808fi 25809 25810 25811 25812echo "$as_me:$LINENO: checking for __progname" >&5 25813echo $ECHO_N "checking for __progname... $ECHO_C" >&6 25814if test "${ac_cv_var___progname+set}" = set; then 25815 echo $ECHO_N "(cached) $ECHO_C" >&6 25816else 25817
| 25906 25907fi 25908 25909ac_foo=`eval echo \\$ac_cv_var_h_nerr` 25910echo "$as_me:$LINENO: result: $ac_foo" >&5 25911echo "${ECHO_T}$ac_foo" >&6 25912if test "$ac_foo" = yes; then 25913 25914cat >>confdefs.h <<_ACEOF 25915#define HAVE_H_NERR 1 25916_ACEOF 25917 25918 25919echo "$as_me:$LINENO: checking if h_nerr is properly declared" >&5 25920echo $ECHO_N "checking if h_nerr is properly declared... $ECHO_C" >&6 25921if test "${ac_cv_var_h_nerr_declaration+set}" = set; then 25922 echo $ECHO_N "(cached) $ECHO_C" >&6 25923else 25924 25925cat >conftest.$ac_ext <<_ACEOF 25926#line $LINENO "configure" 25927#include "confdefs.h" 25928#ifdef HAVE_NETDB_H 25929#include <netdb.h> 25930#endif 25931extern struct { int foo; } h_nerr; 25932#ifdef F77_DUMMY_MAIN 25933# ifdef __cplusplus 25934 extern "C" 25935# endif 25936 int F77_DUMMY_MAIN() { return 1; } 25937#endif 25938int 25939main () 25940{ 25941h_nerr.foo = 1; 25942 ; 25943 return 0; 25944} 25945_ACEOF 25946rm -f conftest.$ac_objext 25947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25948 (eval $ac_compile) 2>&5 25949 ac_status=$? 25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25951 (exit $ac_status); } && 25952 { ac_try='test -s conftest.$ac_objext' 25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25954 (eval $ac_try) 2>&5 25955 ac_status=$? 25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25957 (exit $ac_status); }; }; then 25958 eval "ac_cv_var_h_nerr_declaration=no" 25959else 25960 echo "$as_me: failed program was:" >&5 25961cat conftest.$ac_ext >&5 25962eval "ac_cv_var_h_nerr_declaration=yes" 25963fi 25964rm -f conftest.$ac_objext conftest.$ac_ext 25965 25966fi 25967 25968 25969 25970 25971echo "$as_me:$LINENO: result: $ac_cv_var_h_nerr_declaration" >&5 25972echo "${ECHO_T}$ac_cv_var_h_nerr_declaration" >&6 25973if eval "test \"\$ac_cv_var_h_nerr_declaration\" = yes"; then 25974 25975cat >>confdefs.h <<\_ACEOF 25976#define HAVE_H_NERR_DECLARATION 1 25977_ACEOF 25978 25979fi 25980 25981 25982fi 25983 25984 25985 25986echo "$as_me:$LINENO: checking for __progname" >&5 25987echo $ECHO_N "checking for __progname... $ECHO_C" >&6 25988if test "${ac_cv_var___progname+set}" = set; then 25989 echo $ECHO_N "(cached) $ECHO_C" >&6 25990else 25991
|
| 25992 25993 cat >conftest.$ac_ext <<_ACEOF 25994#line $LINENO "configure" 25995#include "confdefs.h" 25996#ifdef HAVE_ERR_H 25997#include <err.h> 25998#endif 25999 void * foo() { return &__progname; } 26000#ifdef F77_DUMMY_MAIN 26001# ifdef __cplusplus 26002 extern "C" 26003# endif 26004 int F77_DUMMY_MAIN() { return 1; } 26005#endif 26006int 26007main () 26008{ 26009foo() 26010 ; 26011 return 0; 26012} 26013_ACEOF 26014rm -f conftest.$ac_objext conftest$ac_exeext 26015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26016 (eval $ac_link) 2>&5 26017 ac_status=$? 26018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26019 (exit $ac_status); } && 26020 { ac_try='test -s conftest$ac_exeext' 26021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26022 (eval $ac_try) 2>&5 26023 ac_status=$? 26024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26025 (exit $ac_status); }; }; then 26026 ac_cv_var___progname=yes 26027else 26028 echo "$as_me: failed program was:" >&5 26029cat conftest.$ac_ext >&5 26030ac_cv_var___progname=no 26031fi 26032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 26033if test "$ac_cv_var___progname" != yes ; then
|
25818cat >conftest.$ac_ext <<_ACEOF 25819#line $LINENO "configure" 25820#include "confdefs.h" 25821extern int __progname; 25822int foo() { return __progname; } 25823#ifdef F77_DUMMY_MAIN 25824# ifdef __cplusplus 25825 extern "C" 25826# endif 25827 int F77_DUMMY_MAIN() { return 1; } 25828#endif 25829int 25830main () 25831{ 25832foo() 25833 ; 25834 return 0; 25835} 25836_ACEOF 25837rm -f conftest.$ac_objext conftest$ac_exeext 25838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 25839 (eval $ac_link) 2>&5 25840 ac_status=$? 25841 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25842 (exit $ac_status); } && 25843 { ac_try='test -s conftest$ac_exeext' 25844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25845 (eval $ac_try) 2>&5 25846 ac_status=$? 25847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25848 (exit $ac_status); }; }; then 25849 ac_cv_var___progname=yes 25850else 25851 echo "$as_me: failed program was:" >&5 25852cat conftest.$ac_ext >&5 25853ac_cv_var___progname=no 25854fi 25855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 26034cat >conftest.$ac_ext <<_ACEOF 26035#line $LINENO "configure" 26036#include "confdefs.h" 26037extern int __progname; 26038int foo() { return __progname; } 26039#ifdef F77_DUMMY_MAIN 26040# ifdef __cplusplus 26041 extern "C" 26042# endif 26043 int F77_DUMMY_MAIN() { return 1; } 26044#endif 26045int 26046main () 26047{ 26048foo() 26049 ; 26050 return 0; 26051} 26052_ACEOF 26053rm -f conftest.$ac_objext conftest$ac_exeext 26054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26055 (eval $ac_link) 2>&5 26056 ac_status=$? 26057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26058 (exit $ac_status); } && 26059 { ac_try='test -s conftest$ac_exeext' 26060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26061 (eval $ac_try) 2>&5 26062 ac_status=$? 26063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26064 (exit $ac_status); }; }; then 26065 ac_cv_var___progname=yes 26066else 26067 echo "$as_me: failed program was:" >&5 26068cat conftest.$ac_ext >&5 26069ac_cv_var___progname=no 26070fi 26071rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 26072fi
|
25856 25857fi 25858 25859ac_foo=`eval echo \\$ac_cv_var___progname` 25860echo "$as_me:$LINENO: result: $ac_foo" >&5 25861echo "${ECHO_T}$ac_foo" >&6 25862if test "$ac_foo" = yes; then 25863 25864cat >>confdefs.h <<_ACEOF 25865#define HAVE___PROGNAME 1 25866_ACEOF 25867 25868 25869echo "$as_me:$LINENO: checking if __progname is properly declared" >&5 25870echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6 25871if test "${ac_cv_var___progname_declaration+set}" = set; then 25872 echo $ECHO_N "(cached) $ECHO_C" >&6 25873else 25874 25875cat >conftest.$ac_ext <<_ACEOF 25876#line $LINENO "configure" 25877#include "confdefs.h" 25878#ifdef HAVE_ERR_H 25879#include <err.h> 25880#endif 25881extern struct { int foo; } __progname; 25882#ifdef F77_DUMMY_MAIN 25883# ifdef __cplusplus 25884 extern "C" 25885# endif 25886 int F77_DUMMY_MAIN() { return 1; } 25887#endif 25888int 25889main () 25890{ 25891__progname.foo = 1; 25892 ; 25893 return 0; 25894} 25895_ACEOF 25896rm -f conftest.$ac_objext 25897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25898 (eval $ac_compile) 2>&5 25899 ac_status=$? 25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25901 (exit $ac_status); } && 25902 { ac_try='test -s conftest.$ac_objext' 25903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25904 (eval $ac_try) 2>&5 25905 ac_status=$? 25906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25907 (exit $ac_status); }; }; then 25908 eval "ac_cv_var___progname_declaration=no" 25909else 25910 echo "$as_me: failed program was:" >&5 25911cat conftest.$ac_ext >&5 25912eval "ac_cv_var___progname_declaration=yes" 25913fi 25914rm -f conftest.$ac_objext conftest.$ac_ext 25915 25916fi 25917 25918 25919 25920 25921echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5 25922echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6 25923if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then 25924 25925cat >>confdefs.h <<\_ACEOF 25926#define HAVE___PROGNAME_DECLARATION 1 25927_ACEOF 25928 25929fi 25930 25931 25932fi 25933 25934 25935 25936echo "$as_me:$LINENO: checking if optarg is properly declared" >&5 25937echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6 25938if test "${ac_cv_var_optarg_declaration+set}" = set; then 25939 echo $ECHO_N "(cached) $ECHO_C" >&6 25940else 25941 25942cat >conftest.$ac_ext <<_ACEOF 25943#line $LINENO "configure" 25944#include "confdefs.h" 25945#include <stdlib.h> 25946#ifdef HAVE_UNISTD_H 25947#include <unistd.h> 25948#endif 25949extern struct { int foo; } optarg; 25950#ifdef F77_DUMMY_MAIN 25951# ifdef __cplusplus 25952 extern "C" 25953# endif 25954 int F77_DUMMY_MAIN() { return 1; } 25955#endif 25956int 25957main () 25958{ 25959optarg.foo = 1; 25960 ; 25961 return 0; 25962} 25963_ACEOF 25964rm -f conftest.$ac_objext 25965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 25966 (eval $ac_compile) 2>&5 25967 ac_status=$? 25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25969 (exit $ac_status); } && 25970 { ac_try='test -s conftest.$ac_objext' 25971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 25972 (eval $ac_try) 2>&5 25973 ac_status=$? 25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 25975 (exit $ac_status); }; }; then 25976 eval "ac_cv_var_optarg_declaration=no" 25977else 25978 echo "$as_me: failed program was:" >&5 25979cat conftest.$ac_ext >&5 25980eval "ac_cv_var_optarg_declaration=yes" 25981fi 25982rm -f conftest.$ac_objext conftest.$ac_ext 25983 25984fi 25985 25986 25987 25988 25989echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5 25990echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6 25991if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then 25992 25993cat >>confdefs.h <<\_ACEOF 25994#define HAVE_OPTARG_DECLARATION 1 25995_ACEOF 25996 25997fi 25998 25999 26000 26001echo "$as_me:$LINENO: checking if optind is properly declared" >&5 26002echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6 26003if test "${ac_cv_var_optind_declaration+set}" = set; then 26004 echo $ECHO_N "(cached) $ECHO_C" >&6 26005else 26006 26007cat >conftest.$ac_ext <<_ACEOF 26008#line $LINENO "configure" 26009#include "confdefs.h" 26010#include <stdlib.h> 26011#ifdef HAVE_UNISTD_H 26012#include <unistd.h> 26013#endif 26014extern struct { int foo; } optind; 26015#ifdef F77_DUMMY_MAIN 26016# ifdef __cplusplus 26017 extern "C" 26018# endif 26019 int F77_DUMMY_MAIN() { return 1; } 26020#endif 26021int 26022main () 26023{ 26024optind.foo = 1; 26025 ; 26026 return 0; 26027} 26028_ACEOF 26029rm -f conftest.$ac_objext 26030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26031 (eval $ac_compile) 2>&5 26032 ac_status=$? 26033 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26034 (exit $ac_status); } && 26035 { ac_try='test -s conftest.$ac_objext' 26036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26037 (eval $ac_try) 2>&5 26038 ac_status=$? 26039 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26040 (exit $ac_status); }; }; then 26041 eval "ac_cv_var_optind_declaration=no" 26042else 26043 echo "$as_me: failed program was:" >&5 26044cat conftest.$ac_ext >&5 26045eval "ac_cv_var_optind_declaration=yes" 26046fi 26047rm -f conftest.$ac_objext conftest.$ac_ext 26048 26049fi 26050 26051 26052 26053 26054echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5 26055echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6 26056if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then 26057 26058cat >>confdefs.h <<\_ACEOF 26059#define HAVE_OPTIND_DECLARATION 1 26060_ACEOF 26061 26062fi 26063 26064 26065 26066echo "$as_me:$LINENO: checking if opterr is properly declared" >&5 26067echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6 26068if test "${ac_cv_var_opterr_declaration+set}" = set; then 26069 echo $ECHO_N "(cached) $ECHO_C" >&6 26070else 26071 26072cat >conftest.$ac_ext <<_ACEOF 26073#line $LINENO "configure" 26074#include "confdefs.h" 26075#include <stdlib.h> 26076#ifdef HAVE_UNISTD_H 26077#include <unistd.h> 26078#endif 26079extern struct { int foo; } opterr; 26080#ifdef F77_DUMMY_MAIN 26081# ifdef __cplusplus 26082 extern "C" 26083# endif 26084 int F77_DUMMY_MAIN() { return 1; } 26085#endif 26086int 26087main () 26088{ 26089opterr.foo = 1; 26090 ; 26091 return 0; 26092} 26093_ACEOF 26094rm -f conftest.$ac_objext 26095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26096 (eval $ac_compile) 2>&5 26097 ac_status=$? 26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26099 (exit $ac_status); } && 26100 { ac_try='test -s conftest.$ac_objext' 26101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26102 (eval $ac_try) 2>&5 26103 ac_status=$? 26104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26105 (exit $ac_status); }; }; then 26106 eval "ac_cv_var_opterr_declaration=no" 26107else 26108 echo "$as_me: failed program was:" >&5 26109cat conftest.$ac_ext >&5 26110eval "ac_cv_var_opterr_declaration=yes" 26111fi 26112rm -f conftest.$ac_objext conftest.$ac_ext 26113 26114fi 26115 26116 26117 26118 26119echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5 26120echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6 26121if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then 26122 26123cat >>confdefs.h <<\_ACEOF 26124#define HAVE_OPTERR_DECLARATION 1 26125_ACEOF 26126 26127fi 26128 26129 26130 26131echo "$as_me:$LINENO: checking if optopt is properly declared" >&5 26132echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6 26133if test "${ac_cv_var_optopt_declaration+set}" = set; then 26134 echo $ECHO_N "(cached) $ECHO_C" >&6 26135else 26136 26137cat >conftest.$ac_ext <<_ACEOF 26138#line $LINENO "configure" 26139#include "confdefs.h" 26140#include <stdlib.h> 26141#ifdef HAVE_UNISTD_H 26142#include <unistd.h> 26143#endif 26144extern struct { int foo; } optopt; 26145#ifdef F77_DUMMY_MAIN 26146# ifdef __cplusplus 26147 extern "C" 26148# endif 26149 int F77_DUMMY_MAIN() { return 1; } 26150#endif 26151int 26152main () 26153{ 26154optopt.foo = 1; 26155 ; 26156 return 0; 26157} 26158_ACEOF 26159rm -f conftest.$ac_objext 26160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26161 (eval $ac_compile) 2>&5 26162 ac_status=$? 26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26164 (exit $ac_status); } && 26165 { ac_try='test -s conftest.$ac_objext' 26166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26167 (eval $ac_try) 2>&5 26168 ac_status=$? 26169 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26170 (exit $ac_status); }; }; then 26171 eval "ac_cv_var_optopt_declaration=no" 26172else 26173 echo "$as_me: failed program was:" >&5 26174cat conftest.$ac_ext >&5 26175eval "ac_cv_var_optopt_declaration=yes" 26176fi 26177rm -f conftest.$ac_objext conftest.$ac_ext 26178 26179fi 26180 26181 26182 26183 26184echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5 26185echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6 26186if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then 26187 26188cat >>confdefs.h <<\_ACEOF 26189#define HAVE_OPTOPT_DECLARATION 1 26190_ACEOF 26191 26192fi 26193 26194 26195 26196 26197echo "$as_me:$LINENO: checking if environ is properly declared" >&5 26198echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6 26199if test "${ac_cv_var_environ_declaration+set}" = set; then 26200 echo $ECHO_N "(cached) $ECHO_C" >&6 26201else 26202 26203cat >conftest.$ac_ext <<_ACEOF 26204#line $LINENO "configure" 26205#include "confdefs.h" 26206#include <stdlib.h> 26207extern struct { int foo; } environ; 26208#ifdef F77_DUMMY_MAIN 26209# ifdef __cplusplus 26210 extern "C" 26211# endif 26212 int F77_DUMMY_MAIN() { return 1; } 26213#endif 26214int 26215main () 26216{ 26217environ.foo = 1; 26218 ; 26219 return 0; 26220} 26221_ACEOF 26222rm -f conftest.$ac_objext 26223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26224 (eval $ac_compile) 2>&5 26225 ac_status=$? 26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26227 (exit $ac_status); } && 26228 { ac_try='test -s conftest.$ac_objext' 26229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26230 (eval $ac_try) 2>&5 26231 ac_status=$? 26232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26233 (exit $ac_status); }; }; then 26234 eval "ac_cv_var_environ_declaration=no" 26235else 26236 echo "$as_me: failed program was:" >&5 26237cat conftest.$ac_ext >&5 26238eval "ac_cv_var_environ_declaration=yes" 26239fi 26240rm -f conftest.$ac_objext conftest.$ac_ext 26241 26242fi 26243 26244 26245 26246 26247echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5 26248echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6 26249if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then 26250 26251cat >>confdefs.h <<\_ACEOF 26252#define HAVE_ENVIRON_DECLARATION 1 26253_ACEOF 26254 26255fi 26256 26257 26258 26259 26260 26261 26262echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 26263echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 26264if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 26265 echo $ECHO_N "(cached) $ECHO_C" >&6 26266else 26267 26268cat >conftest.$ac_ext <<_ACEOF 26269#line $LINENO "configure" 26270#include "confdefs.h" 26271#include <time.h> 26272#ifdef F77_DUMMY_MAIN 26273# ifdef __cplusplus 26274 extern "C" 26275# endif 26276 int F77_DUMMY_MAIN() { return 1; } 26277#endif 26278int 26279main () 26280{ 26281struct tm x; x.tm_gmtoff; 26282 ; 26283 return 0; 26284} 26285_ACEOF 26286rm -f conftest.$ac_objext 26287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26288 (eval $ac_compile) 2>&5 26289 ac_status=$? 26290 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26291 (exit $ac_status); } && 26292 { ac_try='test -s conftest.$ac_objext' 26293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26294 (eval $ac_try) 2>&5 26295 ac_status=$? 26296 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26297 (exit $ac_status); }; }; then 26298 ac_cv_type_struct_tm_tm_gmtoff=yes 26299else 26300 echo "$as_me: failed program was:" >&5 26301cat conftest.$ac_ext >&5 26302ac_cv_type_struct_tm_tm_gmtoff=no 26303fi 26304rm -f conftest.$ac_objext conftest.$ac_ext 26305fi 26306echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 26307echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 26308if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 26309 26310 26311cat >>confdefs.h <<\_ACEOF 26312#define HAVE_STRUCT_TM_TM_GMTOFF 1 26313_ACEOF 26314 26315 26316fi 26317 26318 26319 26320 26321echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5 26322echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 26323if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 26324 echo $ECHO_N "(cached) $ECHO_C" >&6 26325else 26326 26327cat >conftest.$ac_ext <<_ACEOF 26328#line $LINENO "configure" 26329#include "confdefs.h" 26330#include <time.h> 26331#ifdef F77_DUMMY_MAIN 26332# ifdef __cplusplus 26333 extern "C" 26334# endif 26335 int F77_DUMMY_MAIN() { return 1; } 26336#endif 26337int 26338main () 26339{ 26340struct tm x; x.tm_zone; 26341 ; 26342 return 0; 26343} 26344_ACEOF 26345rm -f conftest.$ac_objext 26346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26347 (eval $ac_compile) 2>&5 26348 ac_status=$? 26349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26350 (exit $ac_status); } && 26351 { ac_try='test -s conftest.$ac_objext' 26352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26353 (eval $ac_try) 2>&5 26354 ac_status=$? 26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26356 (exit $ac_status); }; }; then 26357 ac_cv_type_struct_tm_tm_zone=yes 26358else 26359 echo "$as_me: failed program was:" >&5 26360cat conftest.$ac_ext >&5 26361ac_cv_type_struct_tm_tm_zone=no 26362fi 26363rm -f conftest.$ac_objext conftest.$ac_ext 26364fi 26365echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5 26366echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 26367if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 26368 26369 26370cat >>confdefs.h <<\_ACEOF 26371#define HAVE_STRUCT_TM_TM_ZONE 1 26372_ACEOF 26373 26374 26375fi 26376 26377 26378 26379 26380 26381echo "$as_me:$LINENO: checking for timezone" >&5 26382echo $ECHO_N "checking for timezone... $ECHO_C" >&6 26383if test "${ac_cv_var_timezone+set}" = set; then 26384 echo $ECHO_N "(cached) $ECHO_C" >&6 26385else 26386
| 26073 26074fi 26075 26076ac_foo=`eval echo \\$ac_cv_var___progname` 26077echo "$as_me:$LINENO: result: $ac_foo" >&5 26078echo "${ECHO_T}$ac_foo" >&6 26079if test "$ac_foo" = yes; then 26080 26081cat >>confdefs.h <<_ACEOF 26082#define HAVE___PROGNAME 1 26083_ACEOF 26084 26085 26086echo "$as_me:$LINENO: checking if __progname is properly declared" >&5 26087echo $ECHO_N "checking if __progname is properly declared... $ECHO_C" >&6 26088if test "${ac_cv_var___progname_declaration+set}" = set; then 26089 echo $ECHO_N "(cached) $ECHO_C" >&6 26090else 26091 26092cat >conftest.$ac_ext <<_ACEOF 26093#line $LINENO "configure" 26094#include "confdefs.h" 26095#ifdef HAVE_ERR_H 26096#include <err.h> 26097#endif 26098extern struct { int foo; } __progname; 26099#ifdef F77_DUMMY_MAIN 26100# ifdef __cplusplus 26101 extern "C" 26102# endif 26103 int F77_DUMMY_MAIN() { return 1; } 26104#endif 26105int 26106main () 26107{ 26108__progname.foo = 1; 26109 ; 26110 return 0; 26111} 26112_ACEOF 26113rm -f conftest.$ac_objext 26114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26115 (eval $ac_compile) 2>&5 26116 ac_status=$? 26117 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26118 (exit $ac_status); } && 26119 { ac_try='test -s conftest.$ac_objext' 26120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26121 (eval $ac_try) 2>&5 26122 ac_status=$? 26123 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26124 (exit $ac_status); }; }; then 26125 eval "ac_cv_var___progname_declaration=no" 26126else 26127 echo "$as_me: failed program was:" >&5 26128cat conftest.$ac_ext >&5 26129eval "ac_cv_var___progname_declaration=yes" 26130fi 26131rm -f conftest.$ac_objext conftest.$ac_ext 26132 26133fi 26134 26135 26136 26137 26138echo "$as_me:$LINENO: result: $ac_cv_var___progname_declaration" >&5 26139echo "${ECHO_T}$ac_cv_var___progname_declaration" >&6 26140if eval "test \"\$ac_cv_var___progname_declaration\" = yes"; then 26141 26142cat >>confdefs.h <<\_ACEOF 26143#define HAVE___PROGNAME_DECLARATION 1 26144_ACEOF 26145 26146fi 26147 26148 26149fi 26150 26151 26152 26153echo "$as_me:$LINENO: checking if optarg is properly declared" >&5 26154echo $ECHO_N "checking if optarg is properly declared... $ECHO_C" >&6 26155if test "${ac_cv_var_optarg_declaration+set}" = set; then 26156 echo $ECHO_N "(cached) $ECHO_C" >&6 26157else 26158 26159cat >conftest.$ac_ext <<_ACEOF 26160#line $LINENO "configure" 26161#include "confdefs.h" 26162#include <stdlib.h> 26163#ifdef HAVE_UNISTD_H 26164#include <unistd.h> 26165#endif 26166extern struct { int foo; } optarg; 26167#ifdef F77_DUMMY_MAIN 26168# ifdef __cplusplus 26169 extern "C" 26170# endif 26171 int F77_DUMMY_MAIN() { return 1; } 26172#endif 26173int 26174main () 26175{ 26176optarg.foo = 1; 26177 ; 26178 return 0; 26179} 26180_ACEOF 26181rm -f conftest.$ac_objext 26182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26183 (eval $ac_compile) 2>&5 26184 ac_status=$? 26185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26186 (exit $ac_status); } && 26187 { ac_try='test -s conftest.$ac_objext' 26188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26189 (eval $ac_try) 2>&5 26190 ac_status=$? 26191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26192 (exit $ac_status); }; }; then 26193 eval "ac_cv_var_optarg_declaration=no" 26194else 26195 echo "$as_me: failed program was:" >&5 26196cat conftest.$ac_ext >&5 26197eval "ac_cv_var_optarg_declaration=yes" 26198fi 26199rm -f conftest.$ac_objext conftest.$ac_ext 26200 26201fi 26202 26203 26204 26205 26206echo "$as_me:$LINENO: result: $ac_cv_var_optarg_declaration" >&5 26207echo "${ECHO_T}$ac_cv_var_optarg_declaration" >&6 26208if eval "test \"\$ac_cv_var_optarg_declaration\" = yes"; then 26209 26210cat >>confdefs.h <<\_ACEOF 26211#define HAVE_OPTARG_DECLARATION 1 26212_ACEOF 26213 26214fi 26215 26216 26217 26218echo "$as_me:$LINENO: checking if optind is properly declared" >&5 26219echo $ECHO_N "checking if optind is properly declared... $ECHO_C" >&6 26220if test "${ac_cv_var_optind_declaration+set}" = set; then 26221 echo $ECHO_N "(cached) $ECHO_C" >&6 26222else 26223 26224cat >conftest.$ac_ext <<_ACEOF 26225#line $LINENO "configure" 26226#include "confdefs.h" 26227#include <stdlib.h> 26228#ifdef HAVE_UNISTD_H 26229#include <unistd.h> 26230#endif 26231extern struct { int foo; } optind; 26232#ifdef F77_DUMMY_MAIN 26233# ifdef __cplusplus 26234 extern "C" 26235# endif 26236 int F77_DUMMY_MAIN() { return 1; } 26237#endif 26238int 26239main () 26240{ 26241optind.foo = 1; 26242 ; 26243 return 0; 26244} 26245_ACEOF 26246rm -f conftest.$ac_objext 26247if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26248 (eval $ac_compile) 2>&5 26249 ac_status=$? 26250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26251 (exit $ac_status); } && 26252 { ac_try='test -s conftest.$ac_objext' 26253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26254 (eval $ac_try) 2>&5 26255 ac_status=$? 26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26257 (exit $ac_status); }; }; then 26258 eval "ac_cv_var_optind_declaration=no" 26259else 26260 echo "$as_me: failed program was:" >&5 26261cat conftest.$ac_ext >&5 26262eval "ac_cv_var_optind_declaration=yes" 26263fi 26264rm -f conftest.$ac_objext conftest.$ac_ext 26265 26266fi 26267 26268 26269 26270 26271echo "$as_me:$LINENO: result: $ac_cv_var_optind_declaration" >&5 26272echo "${ECHO_T}$ac_cv_var_optind_declaration" >&6 26273if eval "test \"\$ac_cv_var_optind_declaration\" = yes"; then 26274 26275cat >>confdefs.h <<\_ACEOF 26276#define HAVE_OPTIND_DECLARATION 1 26277_ACEOF 26278 26279fi 26280 26281 26282 26283echo "$as_me:$LINENO: checking if opterr is properly declared" >&5 26284echo $ECHO_N "checking if opterr is properly declared... $ECHO_C" >&6 26285if test "${ac_cv_var_opterr_declaration+set}" = set; then 26286 echo $ECHO_N "(cached) $ECHO_C" >&6 26287else 26288 26289cat >conftest.$ac_ext <<_ACEOF 26290#line $LINENO "configure" 26291#include "confdefs.h" 26292#include <stdlib.h> 26293#ifdef HAVE_UNISTD_H 26294#include <unistd.h> 26295#endif 26296extern struct { int foo; } opterr; 26297#ifdef F77_DUMMY_MAIN 26298# ifdef __cplusplus 26299 extern "C" 26300# endif 26301 int F77_DUMMY_MAIN() { return 1; } 26302#endif 26303int 26304main () 26305{ 26306opterr.foo = 1; 26307 ; 26308 return 0; 26309} 26310_ACEOF 26311rm -f conftest.$ac_objext 26312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26313 (eval $ac_compile) 2>&5 26314 ac_status=$? 26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26316 (exit $ac_status); } && 26317 { ac_try='test -s conftest.$ac_objext' 26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26319 (eval $ac_try) 2>&5 26320 ac_status=$? 26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26322 (exit $ac_status); }; }; then 26323 eval "ac_cv_var_opterr_declaration=no" 26324else 26325 echo "$as_me: failed program was:" >&5 26326cat conftest.$ac_ext >&5 26327eval "ac_cv_var_opterr_declaration=yes" 26328fi 26329rm -f conftest.$ac_objext conftest.$ac_ext 26330 26331fi 26332 26333 26334 26335 26336echo "$as_me:$LINENO: result: $ac_cv_var_opterr_declaration" >&5 26337echo "${ECHO_T}$ac_cv_var_opterr_declaration" >&6 26338if eval "test \"\$ac_cv_var_opterr_declaration\" = yes"; then 26339 26340cat >>confdefs.h <<\_ACEOF 26341#define HAVE_OPTERR_DECLARATION 1 26342_ACEOF 26343 26344fi 26345 26346 26347 26348echo "$as_me:$LINENO: checking if optopt is properly declared" >&5 26349echo $ECHO_N "checking if optopt is properly declared... $ECHO_C" >&6 26350if test "${ac_cv_var_optopt_declaration+set}" = set; then 26351 echo $ECHO_N "(cached) $ECHO_C" >&6 26352else 26353 26354cat >conftest.$ac_ext <<_ACEOF 26355#line $LINENO "configure" 26356#include "confdefs.h" 26357#include <stdlib.h> 26358#ifdef HAVE_UNISTD_H 26359#include <unistd.h> 26360#endif 26361extern struct { int foo; } optopt; 26362#ifdef F77_DUMMY_MAIN 26363# ifdef __cplusplus 26364 extern "C" 26365# endif 26366 int F77_DUMMY_MAIN() { return 1; } 26367#endif 26368int 26369main () 26370{ 26371optopt.foo = 1; 26372 ; 26373 return 0; 26374} 26375_ACEOF 26376rm -f conftest.$ac_objext 26377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26378 (eval $ac_compile) 2>&5 26379 ac_status=$? 26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26381 (exit $ac_status); } && 26382 { ac_try='test -s conftest.$ac_objext' 26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26384 (eval $ac_try) 2>&5 26385 ac_status=$? 26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26387 (exit $ac_status); }; }; then 26388 eval "ac_cv_var_optopt_declaration=no" 26389else 26390 echo "$as_me: failed program was:" >&5 26391cat conftest.$ac_ext >&5 26392eval "ac_cv_var_optopt_declaration=yes" 26393fi 26394rm -f conftest.$ac_objext conftest.$ac_ext 26395 26396fi 26397 26398 26399 26400 26401echo "$as_me:$LINENO: result: $ac_cv_var_optopt_declaration" >&5 26402echo "${ECHO_T}$ac_cv_var_optopt_declaration" >&6 26403if eval "test \"\$ac_cv_var_optopt_declaration\" = yes"; then 26404 26405cat >>confdefs.h <<\_ACEOF 26406#define HAVE_OPTOPT_DECLARATION 1 26407_ACEOF 26408 26409fi 26410 26411 26412 26413 26414echo "$as_me:$LINENO: checking if environ is properly declared" >&5 26415echo $ECHO_N "checking if environ is properly declared... $ECHO_C" >&6 26416if test "${ac_cv_var_environ_declaration+set}" = set; then 26417 echo $ECHO_N "(cached) $ECHO_C" >&6 26418else 26419 26420cat >conftest.$ac_ext <<_ACEOF 26421#line $LINENO "configure" 26422#include "confdefs.h" 26423#include <stdlib.h> 26424extern struct { int foo; } environ; 26425#ifdef F77_DUMMY_MAIN 26426# ifdef __cplusplus 26427 extern "C" 26428# endif 26429 int F77_DUMMY_MAIN() { return 1; } 26430#endif 26431int 26432main () 26433{ 26434environ.foo = 1; 26435 ; 26436 return 0; 26437} 26438_ACEOF 26439rm -f conftest.$ac_objext 26440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26441 (eval $ac_compile) 2>&5 26442 ac_status=$? 26443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26444 (exit $ac_status); } && 26445 { ac_try='test -s conftest.$ac_objext' 26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26447 (eval $ac_try) 2>&5 26448 ac_status=$? 26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26450 (exit $ac_status); }; }; then 26451 eval "ac_cv_var_environ_declaration=no" 26452else 26453 echo "$as_me: failed program was:" >&5 26454cat conftest.$ac_ext >&5 26455eval "ac_cv_var_environ_declaration=yes" 26456fi 26457rm -f conftest.$ac_objext conftest.$ac_ext 26458 26459fi 26460 26461 26462 26463 26464echo "$as_me:$LINENO: result: $ac_cv_var_environ_declaration" >&5 26465echo "${ECHO_T}$ac_cv_var_environ_declaration" >&6 26466if eval "test \"\$ac_cv_var_environ_declaration\" = yes"; then 26467 26468cat >>confdefs.h <<\_ACEOF 26469#define HAVE_ENVIRON_DECLARATION 1 26470_ACEOF 26471 26472fi 26473 26474 26475 26476 26477 26478 26479echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 26480echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 26481if test "${ac_cv_type_struct_tm_tm_gmtoff+set}" = set; then 26482 echo $ECHO_N "(cached) $ECHO_C" >&6 26483else 26484 26485cat >conftest.$ac_ext <<_ACEOF 26486#line $LINENO "configure" 26487#include "confdefs.h" 26488#include <time.h> 26489#ifdef F77_DUMMY_MAIN 26490# ifdef __cplusplus 26491 extern "C" 26492# endif 26493 int F77_DUMMY_MAIN() { return 1; } 26494#endif 26495int 26496main () 26497{ 26498struct tm x; x.tm_gmtoff; 26499 ; 26500 return 0; 26501} 26502_ACEOF 26503rm -f conftest.$ac_objext 26504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26505 (eval $ac_compile) 2>&5 26506 ac_status=$? 26507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26508 (exit $ac_status); } && 26509 { ac_try='test -s conftest.$ac_objext' 26510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26511 (eval $ac_try) 2>&5 26512 ac_status=$? 26513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26514 (exit $ac_status); }; }; then 26515 ac_cv_type_struct_tm_tm_gmtoff=yes 26516else 26517 echo "$as_me: failed program was:" >&5 26518cat conftest.$ac_ext >&5 26519ac_cv_type_struct_tm_tm_gmtoff=no 26520fi 26521rm -f conftest.$ac_objext conftest.$ac_ext 26522fi 26523echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_gmtoff" >&5 26524echo "${ECHO_T}$ac_cv_type_struct_tm_tm_gmtoff" >&6 26525if test "$ac_cv_type_struct_tm_tm_gmtoff" = yes; then 26526 26527 26528cat >>confdefs.h <<\_ACEOF 26529#define HAVE_STRUCT_TM_TM_GMTOFF 1 26530_ACEOF 26531 26532 26533fi 26534 26535 26536 26537 26538echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5 26539echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6 26540if test "${ac_cv_type_struct_tm_tm_zone+set}" = set; then 26541 echo $ECHO_N "(cached) $ECHO_C" >&6 26542else 26543 26544cat >conftest.$ac_ext <<_ACEOF 26545#line $LINENO "configure" 26546#include "confdefs.h" 26547#include <time.h> 26548#ifdef F77_DUMMY_MAIN 26549# ifdef __cplusplus 26550 extern "C" 26551# endif 26552 int F77_DUMMY_MAIN() { return 1; } 26553#endif 26554int 26555main () 26556{ 26557struct tm x; x.tm_zone; 26558 ; 26559 return 0; 26560} 26561_ACEOF 26562rm -f conftest.$ac_objext 26563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26564 (eval $ac_compile) 2>&5 26565 ac_status=$? 26566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26567 (exit $ac_status); } && 26568 { ac_try='test -s conftest.$ac_objext' 26569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26570 (eval $ac_try) 2>&5 26571 ac_status=$? 26572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26573 (exit $ac_status); }; }; then 26574 ac_cv_type_struct_tm_tm_zone=yes 26575else 26576 echo "$as_me: failed program was:" >&5 26577cat conftest.$ac_ext >&5 26578ac_cv_type_struct_tm_tm_zone=no 26579fi 26580rm -f conftest.$ac_objext conftest.$ac_ext 26581fi 26582echo "$as_me:$LINENO: result: $ac_cv_type_struct_tm_tm_zone" >&5 26583echo "${ECHO_T}$ac_cv_type_struct_tm_tm_zone" >&6 26584if test "$ac_cv_type_struct_tm_tm_zone" = yes; then 26585 26586 26587cat >>confdefs.h <<\_ACEOF 26588#define HAVE_STRUCT_TM_TM_ZONE 1 26589_ACEOF 26590 26591 26592fi 26593 26594 26595 26596 26597 26598echo "$as_me:$LINENO: checking for timezone" >&5 26599echo $ECHO_N "checking for timezone... $ECHO_C" >&6 26600if test "${ac_cv_var_timezone+set}" = set; then 26601 echo $ECHO_N "(cached) $ECHO_C" >&6 26602else 26603
|
| 26604 26605 cat >conftest.$ac_ext <<_ACEOF 26606#line $LINENO "configure" 26607#include "confdefs.h" 26608#include <time.h> 26609 void * foo() { return &timezone; } 26610#ifdef F77_DUMMY_MAIN 26611# ifdef __cplusplus 26612 extern "C" 26613# endif 26614 int F77_DUMMY_MAIN() { return 1; } 26615#endif 26616int 26617main () 26618{ 26619foo() 26620 ; 26621 return 0; 26622} 26623_ACEOF 26624rm -f conftest.$ac_objext conftest$ac_exeext 26625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26626 (eval $ac_link) 2>&5 26627 ac_status=$? 26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26629 (exit $ac_status); } && 26630 { ac_try='test -s conftest$ac_exeext' 26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26632 (eval $ac_try) 2>&5 26633 ac_status=$? 26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26635 (exit $ac_status); }; }; then 26636 ac_cv_var_timezone=yes 26637else 26638 echo "$as_me: failed program was:" >&5 26639cat conftest.$ac_ext >&5 26640ac_cv_var_timezone=no 26641fi 26642rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 26643if test "$ac_cv_var_timezone" != yes ; then
|
26387cat >conftest.$ac_ext <<_ACEOF 26388#line $LINENO "configure" 26389#include "confdefs.h" 26390extern int timezone; 26391int foo() { return timezone; } 26392#ifdef F77_DUMMY_MAIN 26393# ifdef __cplusplus 26394 extern "C" 26395# endif 26396 int F77_DUMMY_MAIN() { return 1; } 26397#endif 26398int 26399main () 26400{ 26401foo() 26402 ; 26403 return 0; 26404} 26405_ACEOF 26406rm -f conftest.$ac_objext conftest$ac_exeext 26407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26408 (eval $ac_link) 2>&5 26409 ac_status=$? 26410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26411 (exit $ac_status); } && 26412 { ac_try='test -s conftest$ac_exeext' 26413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26414 (eval $ac_try) 2>&5 26415 ac_status=$? 26416 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26417 (exit $ac_status); }; }; then 26418 ac_cv_var_timezone=yes 26419else 26420 echo "$as_me: failed program was:" >&5 26421cat conftest.$ac_ext >&5 26422ac_cv_var_timezone=no 26423fi 26424rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 26644cat >conftest.$ac_ext <<_ACEOF 26645#line $LINENO "configure" 26646#include "confdefs.h" 26647extern int timezone; 26648int foo() { return timezone; } 26649#ifdef F77_DUMMY_MAIN 26650# ifdef __cplusplus 26651 extern "C" 26652# endif 26653 int F77_DUMMY_MAIN() { return 1; } 26654#endif 26655int 26656main () 26657{ 26658foo() 26659 ; 26660 return 0; 26661} 26662_ACEOF 26663rm -f conftest.$ac_objext conftest$ac_exeext 26664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26665 (eval $ac_link) 2>&5 26666 ac_status=$? 26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26668 (exit $ac_status); } && 26669 { ac_try='test -s conftest$ac_exeext' 26670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26671 (eval $ac_try) 2>&5 26672 ac_status=$? 26673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26674 (exit $ac_status); }; }; then 26675 ac_cv_var_timezone=yes 26676else 26677 echo "$as_me: failed program was:" >&5 26678cat conftest.$ac_ext >&5 26679ac_cv_var_timezone=no 26680fi 26681rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 26682fi
|
26425 26426fi 26427 26428ac_foo=`eval echo \\$ac_cv_var_timezone` 26429echo "$as_me:$LINENO: result: $ac_foo" >&5 26430echo "${ECHO_T}$ac_foo" >&6 26431if test "$ac_foo" = yes; then 26432 26433cat >>confdefs.h <<_ACEOF 26434#define HAVE_TIMEZONE 1 26435_ACEOF 26436 26437 26438echo "$as_me:$LINENO: checking if timezone is properly declared" >&5 26439echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 26440if test "${ac_cv_var_timezone_declaration+set}" = set; then 26441 echo $ECHO_N "(cached) $ECHO_C" >&6 26442else 26443 26444cat >conftest.$ac_ext <<_ACEOF 26445#line $LINENO "configure" 26446#include "confdefs.h" 26447#include <time.h> 26448extern struct { int foo; } timezone; 26449#ifdef F77_DUMMY_MAIN 26450# ifdef __cplusplus 26451 extern "C" 26452# endif 26453 int F77_DUMMY_MAIN() { return 1; } 26454#endif 26455int 26456main () 26457{ 26458timezone.foo = 1; 26459 ; 26460 return 0; 26461} 26462_ACEOF 26463rm -f conftest.$ac_objext 26464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26465 (eval $ac_compile) 2>&5 26466 ac_status=$? 26467 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26468 (exit $ac_status); } && 26469 { ac_try='test -s conftest.$ac_objext' 26470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26471 (eval $ac_try) 2>&5 26472 ac_status=$? 26473 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26474 (exit $ac_status); }; }; then 26475 eval "ac_cv_var_timezone_declaration=no" 26476else 26477 echo "$as_me: failed program was:" >&5 26478cat conftest.$ac_ext >&5 26479eval "ac_cv_var_timezone_declaration=yes" 26480fi 26481rm -f conftest.$ac_objext conftest.$ac_ext 26482 26483fi 26484 26485 26486 26487 26488echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5 26489echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 26490if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 26491 26492cat >>confdefs.h <<\_ACEOF 26493#define HAVE_TIMEZONE_DECLARATION 1 26494_ACEOF 26495 26496fi 26497 26498 26499fi 26500 26501 26502echo "$as_me:$LINENO: checking for altzone" >&5 26503echo $ECHO_N "checking for altzone... $ECHO_C" >&6 26504if test "${ac_cv_var_altzone+set}" = set; then 26505 echo $ECHO_N "(cached) $ECHO_C" >&6 26506else 26507
| 26683 26684fi 26685 26686ac_foo=`eval echo \\$ac_cv_var_timezone` 26687echo "$as_me:$LINENO: result: $ac_foo" >&5 26688echo "${ECHO_T}$ac_foo" >&6 26689if test "$ac_foo" = yes; then 26690 26691cat >>confdefs.h <<_ACEOF 26692#define HAVE_TIMEZONE 1 26693_ACEOF 26694 26695 26696echo "$as_me:$LINENO: checking if timezone is properly declared" >&5 26697echo $ECHO_N "checking if timezone is properly declared... $ECHO_C" >&6 26698if test "${ac_cv_var_timezone_declaration+set}" = set; then 26699 echo $ECHO_N "(cached) $ECHO_C" >&6 26700else 26701 26702cat >conftest.$ac_ext <<_ACEOF 26703#line $LINENO "configure" 26704#include "confdefs.h" 26705#include <time.h> 26706extern struct { int foo; } timezone; 26707#ifdef F77_DUMMY_MAIN 26708# ifdef __cplusplus 26709 extern "C" 26710# endif 26711 int F77_DUMMY_MAIN() { return 1; } 26712#endif 26713int 26714main () 26715{ 26716timezone.foo = 1; 26717 ; 26718 return 0; 26719} 26720_ACEOF 26721rm -f conftest.$ac_objext 26722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26723 (eval $ac_compile) 2>&5 26724 ac_status=$? 26725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26726 (exit $ac_status); } && 26727 { ac_try='test -s conftest.$ac_objext' 26728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26729 (eval $ac_try) 2>&5 26730 ac_status=$? 26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26732 (exit $ac_status); }; }; then 26733 eval "ac_cv_var_timezone_declaration=no" 26734else 26735 echo "$as_me: failed program was:" >&5 26736cat conftest.$ac_ext >&5 26737eval "ac_cv_var_timezone_declaration=yes" 26738fi 26739rm -f conftest.$ac_objext conftest.$ac_ext 26740 26741fi 26742 26743 26744 26745 26746echo "$as_me:$LINENO: result: $ac_cv_var_timezone_declaration" >&5 26747echo "${ECHO_T}$ac_cv_var_timezone_declaration" >&6 26748if eval "test \"\$ac_cv_var_timezone_declaration\" = yes"; then 26749 26750cat >>confdefs.h <<\_ACEOF 26751#define HAVE_TIMEZONE_DECLARATION 1 26752_ACEOF 26753 26754fi 26755 26756 26757fi 26758 26759 26760echo "$as_me:$LINENO: checking for altzone" >&5 26761echo $ECHO_N "checking for altzone... $ECHO_C" >&6 26762if test "${ac_cv_var_altzone+set}" = set; then 26763 echo $ECHO_N "(cached) $ECHO_C" >&6 26764else 26765
|
| 26766 26767 cat >conftest.$ac_ext <<_ACEOF 26768#line $LINENO "configure" 26769#include "confdefs.h" 26770#include <time.h> 26771 void * foo() { return &altzone; } 26772#ifdef F77_DUMMY_MAIN 26773# ifdef __cplusplus 26774 extern "C" 26775# endif 26776 int F77_DUMMY_MAIN() { return 1; } 26777#endif 26778int 26779main () 26780{ 26781foo() 26782 ; 26783 return 0; 26784} 26785_ACEOF 26786rm -f conftest.$ac_objext conftest$ac_exeext 26787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26788 (eval $ac_link) 2>&5 26789 ac_status=$? 26790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26791 (exit $ac_status); } && 26792 { ac_try='test -s conftest$ac_exeext' 26793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26794 (eval $ac_try) 2>&5 26795 ac_status=$? 26796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26797 (exit $ac_status); }; }; then 26798 ac_cv_var_altzone=yes 26799else 26800 echo "$as_me: failed program was:" >&5 26801cat conftest.$ac_ext >&5 26802ac_cv_var_altzone=no 26803fi 26804rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 26805if test "$ac_cv_var_altzone" != yes ; then
|
26508cat >conftest.$ac_ext <<_ACEOF 26509#line $LINENO "configure" 26510#include "confdefs.h" 26511extern int altzone; 26512int foo() { return altzone; } 26513#ifdef F77_DUMMY_MAIN 26514# ifdef __cplusplus 26515 extern "C" 26516# endif 26517 int F77_DUMMY_MAIN() { return 1; } 26518#endif 26519int 26520main () 26521{ 26522foo() 26523 ; 26524 return 0; 26525} 26526_ACEOF 26527rm -f conftest.$ac_objext conftest$ac_exeext 26528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26529 (eval $ac_link) 2>&5 26530 ac_status=$? 26531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26532 (exit $ac_status); } && 26533 { ac_try='test -s conftest$ac_exeext' 26534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26535 (eval $ac_try) 2>&5 26536 ac_status=$? 26537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26538 (exit $ac_status); }; }; then 26539 ac_cv_var_altzone=yes 26540else 26541 echo "$as_me: failed program was:" >&5 26542cat conftest.$ac_ext >&5 26543ac_cv_var_altzone=no 26544fi 26545rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
| 26806cat >conftest.$ac_ext <<_ACEOF 26807#line $LINENO "configure" 26808#include "confdefs.h" 26809extern int altzone; 26810int foo() { return altzone; } 26811#ifdef F77_DUMMY_MAIN 26812# ifdef __cplusplus 26813 extern "C" 26814# endif 26815 int F77_DUMMY_MAIN() { return 1; } 26816#endif 26817int 26818main () 26819{ 26820foo() 26821 ; 26822 return 0; 26823} 26824_ACEOF 26825rm -f conftest.$ac_objext conftest$ac_exeext 26826if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 26827 (eval $ac_link) 2>&5 26828 ac_status=$? 26829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26830 (exit $ac_status); } && 26831 { ac_try='test -s conftest$ac_exeext' 26832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26833 (eval $ac_try) 2>&5 26834 ac_status=$? 26835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26836 (exit $ac_status); }; }; then 26837 ac_cv_var_altzone=yes 26838else 26839 echo "$as_me: failed program was:" >&5 26840cat conftest.$ac_ext >&5 26841ac_cv_var_altzone=no 26842fi 26843rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
| 26844fi
|
26546 26547fi 26548 26549ac_foo=`eval echo \\$ac_cv_var_altzone` 26550echo "$as_me:$LINENO: result: $ac_foo" >&5 26551echo "${ECHO_T}$ac_foo" >&6 26552if test "$ac_foo" = yes; then 26553 26554cat >>confdefs.h <<_ACEOF 26555#define HAVE_ALTZONE 1 26556_ACEOF 26557 26558 26559echo "$as_me:$LINENO: checking if altzone is properly declared" >&5 26560echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6 26561if test "${ac_cv_var_altzone_declaration+set}" = set; then 26562 echo $ECHO_N "(cached) $ECHO_C" >&6 26563else 26564 26565cat >conftest.$ac_ext <<_ACEOF 26566#line $LINENO "configure" 26567#include "confdefs.h" 26568#include <time.h> 26569extern struct { int foo; } altzone; 26570#ifdef F77_DUMMY_MAIN 26571# ifdef __cplusplus 26572 extern "C" 26573# endif 26574 int F77_DUMMY_MAIN() { return 1; } 26575#endif 26576int 26577main () 26578{ 26579altzone.foo = 1; 26580 ; 26581 return 0; 26582} 26583_ACEOF 26584rm -f conftest.$ac_objext 26585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26586 (eval $ac_compile) 2>&5 26587 ac_status=$? 26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26589 (exit $ac_status); } && 26590 { ac_try='test -s conftest.$ac_objext' 26591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26592 (eval $ac_try) 2>&5 26593 ac_status=$? 26594 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26595 (exit $ac_status); }; }; then 26596 eval "ac_cv_var_altzone_declaration=no" 26597else 26598 echo "$as_me: failed program was:" >&5 26599cat conftest.$ac_ext >&5 26600eval "ac_cv_var_altzone_declaration=yes" 26601fi 26602rm -f conftest.$ac_objext conftest.$ac_ext 26603 26604fi 26605 26606 26607 26608 26609echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5 26610echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6 26611if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then 26612 26613cat >>confdefs.h <<\_ACEOF 26614#define HAVE_ALTZONE_DECLARATION 1 26615_ACEOF 26616 26617fi 26618 26619 26620fi 26621 26622 26623 26624 26625cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 26626echo "$as_me:$LINENO: checking for sa_family_t" >&5 26627echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 26628if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 26629 echo $ECHO_N "(cached) $ECHO_C" >&6 26630else 26631 cat >conftest.$ac_ext <<_ACEOF 26632#line $LINENO "configure" 26633#include "confdefs.h" 26634#include <sys/types.h> 26635#if STDC_HEADERS 26636#include <stdlib.h> 26637#include <stddef.h> 26638#endif 26639#include <sys/socket.h> 26640#ifdef F77_DUMMY_MAIN 26641# ifdef __cplusplus 26642 extern "C" 26643# endif 26644 int F77_DUMMY_MAIN() { return 1; } 26645#endif 26646int 26647main () 26648{ 26649sa_family_t foo; 26650 ; 26651 return 0; 26652} 26653_ACEOF 26654rm -f conftest.$ac_objext 26655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26656 (eval $ac_compile) 2>&5 26657 ac_status=$? 26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26659 (exit $ac_status); } && 26660 { ac_try='test -s conftest.$ac_objext' 26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26662 (eval $ac_try) 2>&5 26663 ac_status=$? 26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26665 (exit $ac_status); }; }; then 26666 eval "ac_cv_type_$cv=yes" 26667else 26668 echo "$as_me: failed program was:" >&5 26669cat conftest.$ac_ext >&5 26670eval "ac_cv_type_$cv=no" 26671fi 26672rm -f conftest.$ac_objext conftest.$ac_ext 26673fi 26674ac_foo=`eval echo \\$ac_cv_type_$cv` 26675echo "$as_me:$LINENO: result: $ac_foo" >&5 26676echo "${ECHO_T}$ac_foo" >&6 26677if test "$ac_foo" = yes; then 26678 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26679if false; then 26680 echo "$as_me:$LINENO: checking for sa_family_t" >&5 26681echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 26682if test "${ac_cv_type_sa_family_t+set}" = set; then 26683 echo $ECHO_N "(cached) $ECHO_C" >&6 26684else 26685 cat >conftest.$ac_ext <<_ACEOF 26686#line $LINENO "configure" 26687#include "confdefs.h" 26688$ac_includes_default 26689#ifdef F77_DUMMY_MAIN 26690# ifdef __cplusplus 26691 extern "C" 26692# endif 26693 int F77_DUMMY_MAIN() { return 1; } 26694#endif 26695int 26696main () 26697{ 26698if ((sa_family_t *) 0) 26699 return 0; 26700if (sizeof (sa_family_t)) 26701 return 0; 26702 ; 26703 return 0; 26704} 26705_ACEOF 26706rm -f conftest.$ac_objext 26707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26708 (eval $ac_compile) 2>&5 26709 ac_status=$? 26710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26711 (exit $ac_status); } && 26712 { ac_try='test -s conftest.$ac_objext' 26713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26714 (eval $ac_try) 2>&5 26715 ac_status=$? 26716 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26717 (exit $ac_status); }; }; then 26718 ac_cv_type_sa_family_t=yes 26719else 26720 echo "$as_me: failed program was:" >&5 26721cat conftest.$ac_ext >&5 26722ac_cv_type_sa_family_t=no 26723fi 26724rm -f conftest.$ac_objext conftest.$ac_ext 26725fi 26726echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 26727echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 26728if test $ac_cv_type_sa_family_t = yes; then 26729 26730cat >>confdefs.h <<_ACEOF 26731#define HAVE_SA_FAMILY_T 1 26732_ACEOF 26733 26734 26735fi 26736 26737fi 26738 26739cat >>confdefs.h <<_ACEOF 26740#define $ac_tr_hdr 1 26741_ACEOF 26742 26743fi 26744 26745 26746 26747cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 26748echo "$as_me:$LINENO: checking for socklen_t" >&5 26749echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 26750if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 26751 echo $ECHO_N "(cached) $ECHO_C" >&6 26752else 26753 cat >conftest.$ac_ext <<_ACEOF 26754#line $LINENO "configure" 26755#include "confdefs.h" 26756#include <sys/types.h> 26757#if STDC_HEADERS 26758#include <stdlib.h> 26759#include <stddef.h> 26760#endif 26761#include <sys/socket.h> 26762#ifdef F77_DUMMY_MAIN 26763# ifdef __cplusplus 26764 extern "C" 26765# endif 26766 int F77_DUMMY_MAIN() { return 1; } 26767#endif 26768int 26769main () 26770{ 26771socklen_t foo; 26772 ; 26773 return 0; 26774} 26775_ACEOF 26776rm -f conftest.$ac_objext 26777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26778 (eval $ac_compile) 2>&5 26779 ac_status=$? 26780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26781 (exit $ac_status); } && 26782 { ac_try='test -s conftest.$ac_objext' 26783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26784 (eval $ac_try) 2>&5 26785 ac_status=$? 26786 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26787 (exit $ac_status); }; }; then 26788 eval "ac_cv_type_$cv=yes" 26789else 26790 echo "$as_me: failed program was:" >&5 26791cat conftest.$ac_ext >&5 26792eval "ac_cv_type_$cv=no" 26793fi 26794rm -f conftest.$ac_objext conftest.$ac_ext 26795fi 26796ac_foo=`eval echo \\$ac_cv_type_$cv` 26797echo "$as_me:$LINENO: result: $ac_foo" >&5 26798echo "${ECHO_T}$ac_foo" >&6 26799if test "$ac_foo" = yes; then 26800 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26801if false; then 26802 echo "$as_me:$LINENO: checking for socklen_t" >&5 26803echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 26804if test "${ac_cv_type_socklen_t+set}" = set; then 26805 echo $ECHO_N "(cached) $ECHO_C" >&6 26806else 26807 cat >conftest.$ac_ext <<_ACEOF 26808#line $LINENO "configure" 26809#include "confdefs.h" 26810$ac_includes_default 26811#ifdef F77_DUMMY_MAIN 26812# ifdef __cplusplus 26813 extern "C" 26814# endif 26815 int F77_DUMMY_MAIN() { return 1; } 26816#endif 26817int 26818main () 26819{ 26820if ((socklen_t *) 0) 26821 return 0; 26822if (sizeof (socklen_t)) 26823 return 0; 26824 ; 26825 return 0; 26826} 26827_ACEOF 26828rm -f conftest.$ac_objext 26829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26830 (eval $ac_compile) 2>&5 26831 ac_status=$? 26832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26833 (exit $ac_status); } && 26834 { ac_try='test -s conftest.$ac_objext' 26835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26836 (eval $ac_try) 2>&5 26837 ac_status=$? 26838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26839 (exit $ac_status); }; }; then 26840 ac_cv_type_socklen_t=yes 26841else 26842 echo "$as_me: failed program was:" >&5 26843cat conftest.$ac_ext >&5 26844ac_cv_type_socklen_t=no 26845fi 26846rm -f conftest.$ac_objext conftest.$ac_ext 26847fi 26848echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 26849echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 26850if test $ac_cv_type_socklen_t = yes; then 26851 26852cat >>confdefs.h <<_ACEOF 26853#define HAVE_SOCKLEN_T 1 26854_ACEOF 26855 26856 26857fi 26858 26859fi 26860 26861cat >>confdefs.h <<_ACEOF 26862#define $ac_tr_hdr 1 26863_ACEOF 26864 26865fi 26866 26867 26868 26869cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 26870echo "$as_me:$LINENO: checking for struct sockaddr" >&5 26871echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 26872if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 26873 echo $ECHO_N "(cached) $ECHO_C" >&6 26874else 26875 cat >conftest.$ac_ext <<_ACEOF 26876#line $LINENO "configure" 26877#include "confdefs.h" 26878#include <sys/types.h> 26879#if STDC_HEADERS 26880#include <stdlib.h> 26881#include <stddef.h> 26882#endif 26883#include <sys/socket.h> 26884#ifdef F77_DUMMY_MAIN 26885# ifdef __cplusplus 26886 extern "C" 26887# endif 26888 int F77_DUMMY_MAIN() { return 1; } 26889#endif 26890int 26891main () 26892{ 26893struct sockaddr foo; 26894 ; 26895 return 0; 26896} 26897_ACEOF 26898rm -f conftest.$ac_objext 26899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26900 (eval $ac_compile) 2>&5 26901 ac_status=$? 26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26903 (exit $ac_status); } && 26904 { ac_try='test -s conftest.$ac_objext' 26905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26906 (eval $ac_try) 2>&5 26907 ac_status=$? 26908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26909 (exit $ac_status); }; }; then 26910 eval "ac_cv_type_$cv=yes" 26911else 26912 echo "$as_me: failed program was:" >&5 26913cat conftest.$ac_ext >&5 26914eval "ac_cv_type_$cv=no" 26915fi 26916rm -f conftest.$ac_objext conftest.$ac_ext 26917fi 26918ac_foo=`eval echo \\$ac_cv_type_$cv` 26919echo "$as_me:$LINENO: result: $ac_foo" >&5 26920echo "${ECHO_T}$ac_foo" >&6 26921if test "$ac_foo" = yes; then 26922 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26923if false; then 26924 echo "$as_me:$LINENO: checking for struct sockaddr" >&5 26925echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 26926if test "${ac_cv_type_struct_sockaddr+set}" = set; then 26927 echo $ECHO_N "(cached) $ECHO_C" >&6 26928else 26929 cat >conftest.$ac_ext <<_ACEOF 26930#line $LINENO "configure" 26931#include "confdefs.h" 26932$ac_includes_default 26933#ifdef F77_DUMMY_MAIN 26934# ifdef __cplusplus 26935 extern "C" 26936# endif 26937 int F77_DUMMY_MAIN() { return 1; } 26938#endif 26939int 26940main () 26941{ 26942if ((struct sockaddr *) 0) 26943 return 0; 26944if (sizeof (struct sockaddr)) 26945 return 0; 26946 ; 26947 return 0; 26948} 26949_ACEOF 26950rm -f conftest.$ac_objext 26951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26952 (eval $ac_compile) 2>&5 26953 ac_status=$? 26954 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26955 (exit $ac_status); } && 26956 { ac_try='test -s conftest.$ac_objext' 26957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26958 (eval $ac_try) 2>&5 26959 ac_status=$? 26960 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26961 (exit $ac_status); }; }; then 26962 ac_cv_type_struct_sockaddr=yes 26963else 26964 echo "$as_me: failed program was:" >&5 26965cat conftest.$ac_ext >&5 26966ac_cv_type_struct_sockaddr=no 26967fi 26968rm -f conftest.$ac_objext conftest.$ac_ext 26969fi 26970echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5 26971echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 26972if test $ac_cv_type_struct_sockaddr = yes; then 26973 26974cat >>confdefs.h <<_ACEOF 26975#define HAVE_STRUCT_SOCKADDR 1 26976_ACEOF 26977 26978 26979fi 26980 26981fi 26982 26983cat >>confdefs.h <<_ACEOF 26984#define $ac_tr_hdr 1 26985_ACEOF 26986 26987fi 26988 26989 26990 26991cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 26992echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 26993echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 26994if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 26995 echo $ECHO_N "(cached) $ECHO_C" >&6 26996else 26997 cat >conftest.$ac_ext <<_ACEOF 26998#line $LINENO "configure" 26999#include "confdefs.h" 27000#include <sys/types.h> 27001#if STDC_HEADERS 27002#include <stdlib.h> 27003#include <stddef.h> 27004#endif 27005#include <sys/socket.h> 27006#ifdef F77_DUMMY_MAIN 27007# ifdef __cplusplus 27008 extern "C" 27009# endif 27010 int F77_DUMMY_MAIN() { return 1; } 27011#endif 27012int 27013main () 27014{ 27015struct sockaddr_storage foo; 27016 ; 27017 return 0; 27018} 27019_ACEOF 27020rm -f conftest.$ac_objext 27021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27022 (eval $ac_compile) 2>&5 27023 ac_status=$? 27024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27025 (exit $ac_status); } && 27026 { ac_try='test -s conftest.$ac_objext' 27027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27028 (eval $ac_try) 2>&5 27029 ac_status=$? 27030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27031 (exit $ac_status); }; }; then 27032 eval "ac_cv_type_$cv=yes" 27033else 27034 echo "$as_me: failed program was:" >&5 27035cat conftest.$ac_ext >&5 27036eval "ac_cv_type_$cv=no" 27037fi 27038rm -f conftest.$ac_objext conftest.$ac_ext 27039fi 27040ac_foo=`eval echo \\$ac_cv_type_$cv` 27041echo "$as_me:$LINENO: result: $ac_foo" >&5 27042echo "${ECHO_T}$ac_foo" >&6 27043if test "$ac_foo" = yes; then 27044 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27045if false; then 27046 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 27047echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 27048if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 27049 echo $ECHO_N "(cached) $ECHO_C" >&6 27050else 27051 cat >conftest.$ac_ext <<_ACEOF 27052#line $LINENO "configure" 27053#include "confdefs.h" 27054$ac_includes_default 27055#ifdef F77_DUMMY_MAIN 27056# ifdef __cplusplus 27057 extern "C" 27058# endif 27059 int F77_DUMMY_MAIN() { return 1; } 27060#endif 27061int 27062main () 27063{ 27064if ((struct sockaddr_storage *) 0) 27065 return 0; 27066if (sizeof (struct sockaddr_storage)) 27067 return 0; 27068 ; 27069 return 0; 27070} 27071_ACEOF 27072rm -f conftest.$ac_objext 27073if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27074 (eval $ac_compile) 2>&5 27075 ac_status=$? 27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27077 (exit $ac_status); } && 27078 { ac_try='test -s conftest.$ac_objext' 27079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27080 (eval $ac_try) 2>&5 27081 ac_status=$? 27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27083 (exit $ac_status); }; }; then 27084 ac_cv_type_struct_sockaddr_storage=yes 27085else 27086 echo "$as_me: failed program was:" >&5 27087cat conftest.$ac_ext >&5 27088ac_cv_type_struct_sockaddr_storage=no 27089fi 27090rm -f conftest.$ac_objext conftest.$ac_ext 27091fi 27092echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 27093echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 27094if test $ac_cv_type_struct_sockaddr_storage = yes; then 27095 27096cat >>confdefs.h <<_ACEOF 27097#define HAVE_STRUCT_SOCKADDR_STORAGE 1 27098_ACEOF 27099 27100 27101fi 27102 27103fi 27104 27105cat >>confdefs.h <<_ACEOF 27106#define $ac_tr_hdr 1 27107_ACEOF 27108 27109fi 27110 27111 27112 27113cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 27114echo "$as_me:$LINENO: checking for struct addrinfo" >&5 27115echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 27116if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27117 echo $ECHO_N "(cached) $ECHO_C" >&6 27118else 27119 cat >conftest.$ac_ext <<_ACEOF 27120#line $LINENO "configure" 27121#include "confdefs.h" 27122#include <sys/types.h> 27123#if STDC_HEADERS 27124#include <stdlib.h> 27125#include <stddef.h> 27126#endif 27127#include <netdb.h> 27128#ifdef F77_DUMMY_MAIN 27129# ifdef __cplusplus 27130 extern "C" 27131# endif 27132 int F77_DUMMY_MAIN() { return 1; } 27133#endif 27134int 27135main () 27136{ 27137struct addrinfo foo; 27138 ; 27139 return 0; 27140} 27141_ACEOF 27142rm -f conftest.$ac_objext 27143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27144 (eval $ac_compile) 2>&5 27145 ac_status=$? 27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27147 (exit $ac_status); } && 27148 { ac_try='test -s conftest.$ac_objext' 27149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27150 (eval $ac_try) 2>&5 27151 ac_status=$? 27152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27153 (exit $ac_status); }; }; then 27154 eval "ac_cv_type_$cv=yes" 27155else 27156 echo "$as_me: failed program was:" >&5 27157cat conftest.$ac_ext >&5 27158eval "ac_cv_type_$cv=no" 27159fi 27160rm -f conftest.$ac_objext conftest.$ac_ext 27161fi 27162ac_foo=`eval echo \\$ac_cv_type_$cv` 27163echo "$as_me:$LINENO: result: $ac_foo" >&5 27164echo "${ECHO_T}$ac_foo" >&6 27165if test "$ac_foo" = yes; then 27166 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27167if false; then 27168 echo "$as_me:$LINENO: checking for struct addrinfo" >&5 27169echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 27170if test "${ac_cv_type_struct_addrinfo+set}" = set; then 27171 echo $ECHO_N "(cached) $ECHO_C" >&6 27172else 27173 cat >conftest.$ac_ext <<_ACEOF 27174#line $LINENO "configure" 27175#include "confdefs.h" 27176$ac_includes_default 27177#ifdef F77_DUMMY_MAIN 27178# ifdef __cplusplus 27179 extern "C" 27180# endif 27181 int F77_DUMMY_MAIN() { return 1; } 27182#endif 27183int 27184main () 27185{ 27186if ((struct addrinfo *) 0) 27187 return 0; 27188if (sizeof (struct addrinfo)) 27189 return 0; 27190 ; 27191 return 0; 27192} 27193_ACEOF 27194rm -f conftest.$ac_objext 27195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27196 (eval $ac_compile) 2>&5 27197 ac_status=$? 27198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27199 (exit $ac_status); } && 27200 { ac_try='test -s conftest.$ac_objext' 27201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27202 (eval $ac_try) 2>&5 27203 ac_status=$? 27204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27205 (exit $ac_status); }; }; then 27206 ac_cv_type_struct_addrinfo=yes 27207else 27208 echo "$as_me: failed program was:" >&5 27209cat conftest.$ac_ext >&5 27210ac_cv_type_struct_addrinfo=no 27211fi 27212rm -f conftest.$ac_objext conftest.$ac_ext 27213fi 27214echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5 27215echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 27216if test $ac_cv_type_struct_addrinfo = yes; then 27217 27218cat >>confdefs.h <<_ACEOF 27219#define HAVE_STRUCT_ADDRINFO 1 27220_ACEOF 27221 27222 27223fi 27224 27225fi 27226 27227cat >>confdefs.h <<_ACEOF 27228#define $ac_tr_hdr 1 27229_ACEOF 27230 27231fi 27232 27233 27234 27235cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 27236echo "$as_me:$LINENO: checking for struct ifaddrs" >&5 27237echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 27238if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27239 echo $ECHO_N "(cached) $ECHO_C" >&6 27240else 27241 cat >conftest.$ac_ext <<_ACEOF 27242#line $LINENO "configure" 27243#include "confdefs.h" 27244#include <sys/types.h> 27245#if STDC_HEADERS 27246#include <stdlib.h> 27247#include <stddef.h> 27248#endif 27249#include <ifaddrs.h> 27250#ifdef F77_DUMMY_MAIN 27251# ifdef __cplusplus 27252 extern "C" 27253# endif 27254 int F77_DUMMY_MAIN() { return 1; } 27255#endif 27256int 27257main () 27258{ 27259struct ifaddrs foo; 27260 ; 27261 return 0; 27262} 27263_ACEOF 27264rm -f conftest.$ac_objext 27265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27266 (eval $ac_compile) 2>&5 27267 ac_status=$? 27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27269 (exit $ac_status); } && 27270 { ac_try='test -s conftest.$ac_objext' 27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27272 (eval $ac_try) 2>&5 27273 ac_status=$? 27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27275 (exit $ac_status); }; }; then 27276 eval "ac_cv_type_$cv=yes" 27277else 27278 echo "$as_me: failed program was:" >&5 27279cat conftest.$ac_ext >&5 27280eval "ac_cv_type_$cv=no" 27281fi 27282rm -f conftest.$ac_objext conftest.$ac_ext 27283fi 27284ac_foo=`eval echo \\$ac_cv_type_$cv` 27285echo "$as_me:$LINENO: result: $ac_foo" >&5 27286echo "${ECHO_T}$ac_foo" >&6 27287if test "$ac_foo" = yes; then 27288 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27289if false; then 27290 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5 27291echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 27292if test "${ac_cv_type_struct_ifaddrs+set}" = set; then 27293 echo $ECHO_N "(cached) $ECHO_C" >&6 27294else 27295 cat >conftest.$ac_ext <<_ACEOF 27296#line $LINENO "configure" 27297#include "confdefs.h" 27298$ac_includes_default 27299#ifdef F77_DUMMY_MAIN 27300# ifdef __cplusplus 27301 extern "C" 27302# endif 27303 int F77_DUMMY_MAIN() { return 1; } 27304#endif 27305int 27306main () 27307{ 27308if ((struct ifaddrs *) 0) 27309 return 0; 27310if (sizeof (struct ifaddrs)) 27311 return 0; 27312 ; 27313 return 0; 27314} 27315_ACEOF 27316rm -f conftest.$ac_objext 27317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27318 (eval $ac_compile) 2>&5 27319 ac_status=$? 27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27321 (exit $ac_status); } && 27322 { ac_try='test -s conftest.$ac_objext' 27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27324 (eval $ac_try) 2>&5 27325 ac_status=$? 27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27327 (exit $ac_status); }; }; then 27328 ac_cv_type_struct_ifaddrs=yes 27329else 27330 echo "$as_me: failed program was:" >&5 27331cat conftest.$ac_ext >&5 27332ac_cv_type_struct_ifaddrs=no 27333fi 27334rm -f conftest.$ac_objext conftest.$ac_ext 27335fi 27336echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5 27337echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6 27338if test $ac_cv_type_struct_ifaddrs = yes; then 27339 27340cat >>confdefs.h <<_ACEOF 27341#define HAVE_STRUCT_IFADDRS 1 27342_ACEOF 27343 27344 27345fi 27346 27347fi 27348 27349cat >>confdefs.h <<_ACEOF 27350#define $ac_tr_hdr 1 27351_ACEOF 27352 27353fi 27354 27355 27356 27357cv=`echo "struct iovec" | sed 'y%./+- %__p__%'` 27358echo "$as_me:$LINENO: checking for struct iovec" >&5 27359echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6 27360if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27361 echo $ECHO_N "(cached) $ECHO_C" >&6 27362else 27363 cat >conftest.$ac_ext <<_ACEOF 27364#line $LINENO "configure" 27365#include "confdefs.h" 27366#include <sys/types.h> 27367#if STDC_HEADERS 27368#include <stdlib.h> 27369#include <stddef.h> 27370#endif 27371 27372#include <sys/types.h> 27373#include <sys/uio.h> 27374 27375#ifdef F77_DUMMY_MAIN 27376# ifdef __cplusplus 27377 extern "C" 27378# endif 27379 int F77_DUMMY_MAIN() { return 1; } 27380#endif 27381int 27382main () 27383{ 27384struct iovec foo; 27385 ; 27386 return 0; 27387} 27388_ACEOF 27389rm -f conftest.$ac_objext 27390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27391 (eval $ac_compile) 2>&5 27392 ac_status=$? 27393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27394 (exit $ac_status); } && 27395 { ac_try='test -s conftest.$ac_objext' 27396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27397 (eval $ac_try) 2>&5 27398 ac_status=$? 27399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27400 (exit $ac_status); }; }; then 27401 eval "ac_cv_type_$cv=yes" 27402else 27403 echo "$as_me: failed program was:" >&5 27404cat conftest.$ac_ext >&5 27405eval "ac_cv_type_$cv=no" 27406fi 27407rm -f conftest.$ac_objext conftest.$ac_ext 27408fi 27409ac_foo=`eval echo \\$ac_cv_type_$cv` 27410echo "$as_me:$LINENO: result: $ac_foo" >&5 27411echo "${ECHO_T}$ac_foo" >&6 27412if test "$ac_foo" = yes; then 27413 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27414if false; then 27415 echo "$as_me:$LINENO: checking for struct iovec" >&5 27416echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6 27417if test "${ac_cv_type_struct_iovec+set}" = set; then 27418 echo $ECHO_N "(cached) $ECHO_C" >&6 27419else 27420 cat >conftest.$ac_ext <<_ACEOF 27421#line $LINENO "configure" 27422#include "confdefs.h" 27423$ac_includes_default 27424#ifdef F77_DUMMY_MAIN 27425# ifdef __cplusplus 27426 extern "C" 27427# endif 27428 int F77_DUMMY_MAIN() { return 1; } 27429#endif 27430int 27431main () 27432{ 27433if ((struct iovec *) 0) 27434 return 0; 27435if (sizeof (struct iovec)) 27436 return 0; 27437 ; 27438 return 0; 27439} 27440_ACEOF 27441rm -f conftest.$ac_objext 27442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27443 (eval $ac_compile) 2>&5 27444 ac_status=$? 27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27446 (exit $ac_status); } && 27447 { ac_try='test -s conftest.$ac_objext' 27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27449 (eval $ac_try) 2>&5 27450 ac_status=$? 27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27452 (exit $ac_status); }; }; then 27453 ac_cv_type_struct_iovec=yes 27454else 27455 echo "$as_me: failed program was:" >&5 27456cat conftest.$ac_ext >&5 27457ac_cv_type_struct_iovec=no 27458fi 27459rm -f conftest.$ac_objext conftest.$ac_ext 27460fi 27461echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5 27462echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6 27463if test $ac_cv_type_struct_iovec = yes; then 27464 27465cat >>confdefs.h <<_ACEOF 27466#define HAVE_STRUCT_IOVEC 1 27467_ACEOF 27468 27469 27470fi 27471 27472fi 27473 27474cat >>confdefs.h <<_ACEOF 27475#define $ac_tr_hdr 1 27476_ACEOF 27477 27478fi 27479 27480 27481 27482cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'` 27483echo "$as_me:$LINENO: checking for struct msghdr" >&5 27484echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6 27485if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27486 echo $ECHO_N "(cached) $ECHO_C" >&6 27487else 27488 cat >conftest.$ac_ext <<_ACEOF 27489#line $LINENO "configure" 27490#include "confdefs.h" 27491#include <sys/types.h> 27492#if STDC_HEADERS 27493#include <stdlib.h> 27494#include <stddef.h> 27495#endif 27496 27497#include <sys/types.h> 27498#include <sys/socket.h> 27499 27500#ifdef F77_DUMMY_MAIN 27501# ifdef __cplusplus 27502 extern "C" 27503# endif 27504 int F77_DUMMY_MAIN() { return 1; } 27505#endif 27506int 27507main () 27508{ 27509struct msghdr foo; 27510 ; 27511 return 0; 27512} 27513_ACEOF 27514rm -f conftest.$ac_objext 27515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27516 (eval $ac_compile) 2>&5 27517 ac_status=$? 27518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27519 (exit $ac_status); } && 27520 { ac_try='test -s conftest.$ac_objext' 27521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27522 (eval $ac_try) 2>&5 27523 ac_status=$? 27524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27525 (exit $ac_status); }; }; then 27526 eval "ac_cv_type_$cv=yes" 27527else 27528 echo "$as_me: failed program was:" >&5 27529cat conftest.$ac_ext >&5 27530eval "ac_cv_type_$cv=no" 27531fi 27532rm -f conftest.$ac_objext conftest.$ac_ext 27533fi 27534ac_foo=`eval echo \\$ac_cv_type_$cv` 27535echo "$as_me:$LINENO: result: $ac_foo" >&5 27536echo "${ECHO_T}$ac_foo" >&6 27537if test "$ac_foo" = yes; then 27538 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27539if false; then 27540 echo "$as_me:$LINENO: checking for struct msghdr" >&5 27541echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6 27542if test "${ac_cv_type_struct_msghdr+set}" = set; then 27543 echo $ECHO_N "(cached) $ECHO_C" >&6 27544else 27545 cat >conftest.$ac_ext <<_ACEOF 27546#line $LINENO "configure" 27547#include "confdefs.h" 27548$ac_includes_default 27549#ifdef F77_DUMMY_MAIN 27550# ifdef __cplusplus 27551 extern "C" 27552# endif 27553 int F77_DUMMY_MAIN() { return 1; } 27554#endif 27555int 27556main () 27557{ 27558if ((struct msghdr *) 0) 27559 return 0; 27560if (sizeof (struct msghdr)) 27561 return 0; 27562 ; 27563 return 0; 27564} 27565_ACEOF 27566rm -f conftest.$ac_objext 27567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27568 (eval $ac_compile) 2>&5 27569 ac_status=$? 27570 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27571 (exit $ac_status); } && 27572 { ac_try='test -s conftest.$ac_objext' 27573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27574 (eval $ac_try) 2>&5 27575 ac_status=$? 27576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27577 (exit $ac_status); }; }; then 27578 ac_cv_type_struct_msghdr=yes 27579else 27580 echo "$as_me: failed program was:" >&5 27581cat conftest.$ac_ext >&5 27582ac_cv_type_struct_msghdr=no 27583fi 27584rm -f conftest.$ac_objext conftest.$ac_ext 27585fi 27586echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5 27587echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6 27588if test $ac_cv_type_struct_msghdr = yes; then 27589 27590cat >>confdefs.h <<_ACEOF 27591#define HAVE_STRUCT_MSGHDR 1 27592_ACEOF 27593 27594 27595fi 27596 27597fi 27598 27599cat >>confdefs.h <<_ACEOF 27600#define $ac_tr_hdr 1 27601_ACEOF 27602 27603fi 27604 27605 27606 27607 27608echo "$as_me:$LINENO: checking for struct winsize" >&5 27609echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 27610if test "${ac_cv_struct_winsize+set}" = set; then 27611 echo $ECHO_N "(cached) $ECHO_C" >&6 27612else 27613 27614ac_cv_struct_winsize=no 27615for i in sys/termios.h sys/ioctl.h; do 27616cat >conftest.$ac_ext <<_ACEOF 27617#line $LINENO "configure" 27618#include "confdefs.h" 27619#include <$i> 27620 27621_ACEOF 27622if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27623 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 27624 ac_cv_struct_winsize=yes; break 27625fi 27626rm -f conftest* 27627done 27628 27629fi 27630 27631if test "$ac_cv_struct_winsize" = "yes"; then 27632 27633cat >>confdefs.h <<\_ACEOF 27634#define HAVE_STRUCT_WINSIZE 1 27635_ACEOF 27636 27637fi 27638echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5 27639echo "${ECHO_T}$ac_cv_struct_winsize" >&6 27640cat >conftest.$ac_ext <<_ACEOF 27641#line $LINENO "configure" 27642#include "confdefs.h" 27643#include <termios.h> 27644 27645_ACEOF 27646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27647 egrep "ws_xpixel" >/dev/null 2>&1; then 27648 27649cat >>confdefs.h <<\_ACEOF 27650#define HAVE_WS_XPIXEL 1 27651_ACEOF 27652 27653fi 27654rm -f conftest* 27655 27656cat >conftest.$ac_ext <<_ACEOF 27657#line $LINENO "configure" 27658#include "confdefs.h" 27659#include <termios.h> 27660 27661_ACEOF 27662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27663 egrep "ws_ypixel" >/dev/null 2>&1; then 27664 27665cat >>confdefs.h <<\_ACEOF 27666#define HAVE_WS_YPIXEL 1 27667_ACEOF 27668 27669fi 27670rm -f conftest* 27671 27672 27673 27674 27675 27676echo "$as_me:$LINENO: checking for struct spwd" >&5 27677echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 27678if test "${ac_cv_struct_spwd+set}" = set; then 27679 echo $ECHO_N "(cached) $ECHO_C" >&6 27680else 27681 27682cat >conftest.$ac_ext <<_ACEOF 27683#line $LINENO "configure" 27684#include "confdefs.h" 27685#include <pwd.h> 27686#ifdef HAVE_SHADOW_H 27687#include <shadow.h> 27688#endif 27689#ifdef F77_DUMMY_MAIN 27690# ifdef __cplusplus 27691 extern "C" 27692# endif 27693 int F77_DUMMY_MAIN() { return 1; } 27694#endif 27695int 27696main () 27697{ 27698struct spwd foo; 27699 ; 27700 return 0; 27701} 27702_ACEOF 27703rm -f conftest.$ac_objext 27704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27705 (eval $ac_compile) 2>&5 27706 ac_status=$? 27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27708 (exit $ac_status); } && 27709 { ac_try='test -s conftest.$ac_objext' 27710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27711 (eval $ac_try) 2>&5 27712 ac_status=$? 27713 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27714 (exit $ac_status); }; }; then 27715 ac_cv_struct_spwd=yes 27716else 27717 echo "$as_me: failed program was:" >&5 27718cat conftest.$ac_ext >&5 27719ac_cv_struct_spwd=no 27720fi 27721rm -f conftest.$ac_objext conftest.$ac_ext 27722 27723fi 27724 27725echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5 27726echo "${ECHO_T}$ac_cv_struct_spwd" >&6 27727 27728if test "$ac_cv_struct_spwd" = "yes"; then 27729 27730cat >>confdefs.h <<\_ACEOF 27731#define HAVE_STRUCT_SPWD 1 27732_ACEOF 27733 27734fi 27735 27736 27737 27738LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 27739 27740 27741LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 27742 27743 27744# Check whether --enable-otp or --disable-otp was given. 27745if test "${enable_otp+set}" = set; then 27746 enableval="$enable_otp" 27747 27748fi; 27749if test "$enable_otp" = yes -a "$db_type" = unknown; then 27750 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5 27751echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;} 27752 { (exit 1); exit 1; }; } 27753fi 27754if test "$enable_otp" != no; then 27755 if test "$db_type" != unknown; then 27756 enable_otp=yes 27757 else 27758 enable_otp=no 27759 fi 27760fi 27761if test "$enable_otp" = yes; then 27762 27763cat >>confdefs.h <<\_ACEOF 27764#define OTP 1 27765_ACEOF 27766 27767 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 27768 27769fi 27770echo "$as_me:$LINENO: checking whether to enable OTP library" >&5 27771echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6 27772echo "$as_me:$LINENO: result: $enable_otp" >&5 27773echo "${ECHO_T}$enable_otp" >&6 27774 27775 27776if test "$enable_otp" = yes; then 27777 OTP_TRUE= 27778 OTP_FALSE='#' 27779else 27780 OTP_TRUE='#' 27781 OTP_FALSE= 27782fi 27783 27784 27785 27786# Check whether --enable-osfc2 or --disable-osfc2 was given. 27787if test "${enable_osfc2+set}" = set; then 27788 enableval="$enable_osfc2" 27789 27790fi; 27791LIB_security= 27792if test "$enable_osfc2" = yes; then 27793 27794cat >>confdefs.h <<\_ACEOF 27795#define HAVE_OSFC2 1 27796_ACEOF 27797 27798 LIB_security=-lsecurity 27799fi 27800 27801 27802 27803# Check whether --enable-mmap or --disable-mmap was given. 27804if test "${enable_mmap+set}" = set; then 27805 enableval="$enable_mmap" 27806 27807fi; 27808if test "$enable_mmap" = "no"; then 27809 27810cat >>confdefs.h <<\_ACEOF 27811#define NO_MMAP 1 27812_ACEOF 27813 27814fi 27815 27816# Extract the first word of "nroff", so it can be a program name with args. 27817set dummy nroff; ac_word=$2 27818echo "$as_me:$LINENO: checking for $ac_word" >&5 27819echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 27820if test "${ac_cv_path_NROFF+set}" = set; then 27821 echo $ECHO_N "(cached) $ECHO_C" >&6 27822else 27823 case $NROFF in 27824 [\\/]* | ?:[\\/]*) 27825 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 27826 ;; 27827 *) 27828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27829for as_dir in $PATH 27830do 27831 IFS=$as_save_IFS 27832 test -z "$as_dir" && as_dir=. 27833 for ac_exec_ext in '' $ac_executable_extensions; do 27834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27835 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 27836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 27837 break 2 27838 fi 27839done 27840done 27841 27842 ;; 27843esac 27844fi 27845NROFF=$ac_cv_path_NROFF 27846 27847if test -n "$NROFF"; then 27848 echo "$as_me:$LINENO: result: $NROFF" >&5 27849echo "${ECHO_T}$NROFF" >&6 27850else 27851 echo "$as_me:$LINENO: result: no" >&5 27852echo "${ECHO_T}no" >&6 27853fi 27854 27855# Extract the first word of "groff", so it can be a program name with args. 27856set dummy groff; ac_word=$2 27857echo "$as_me:$LINENO: checking for $ac_word" >&5 27858echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 27859if test "${ac_cv_path_GROFF+set}" = set; then 27860 echo $ECHO_N "(cached) $ECHO_C" >&6 27861else 27862 case $GROFF in 27863 [\\/]* | ?:[\\/]*) 27864 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 27865 ;; 27866 *) 27867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27868for as_dir in $PATH 27869do 27870 IFS=$as_save_IFS 27871 test -z "$as_dir" && as_dir=. 27872 for ac_exec_ext in '' $ac_executable_extensions; do 27873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27874 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 27875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 27876 break 2 27877 fi 27878done 27879done 27880 27881 ;; 27882esac 27883fi 27884GROFF=$ac_cv_path_GROFF 27885 27886if test -n "$GROFF"; then 27887 echo "$as_me:$LINENO: result: $GROFF" >&5 27888echo "${ECHO_T}$GROFF" >&6 27889else 27890 echo "$as_me:$LINENO: result: no" >&5 27891echo "${ECHO_T}no" >&6 27892fi 27893 27894echo "$as_me:$LINENO: checking how to format man pages" >&5 27895echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6 27896if test "${ac_cv_sys_man_format+set}" = set; then 27897 echo $ECHO_N "(cached) $ECHO_C" >&6 27898else 27899 cat > conftest.1 << END 27900.Dd January 1, 1970 27901.Dt CONFTEST 1 27902.Sh NAME 27903.Nm conftest 27904.Nd 27905foobar 27906END 27907 27908if test "$NROFF" ; then 27909 for i in "-mdoc" "-mandoc"; do 27910 if "$NROFF" $i conftest.1 2> /dev/null | \ 27911 grep Jan > /dev/null 2>&1 ; then 27912 ac_cv_sys_man_format="$NROFF $i" 27913 break 27914 fi 27915 done 27916fi 27917if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 27918 for i in "-mdoc" "-mandoc"; do 27919 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 27920 grep Jan > /dev/null 2>&1 ; then 27921 ac_cv_sys_man_format="$GROFF -Tascii $i" 27922 break 27923 fi 27924 done 27925fi 27926if test "$ac_cv_sys_man_format"; then 27927 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 27928fi 27929 27930fi 27931echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5 27932echo "${ECHO_T}$ac_cv_sys_man_format" >&6 27933if test "$ac_cv_sys_man_format"; then 27934 CATMAN="$ac_cv_sys_man_format" 27935 27936fi 27937 27938 27939if test "$CATMAN"; then 27940 CATMAN_TRUE= 27941 CATMAN_FALSE='#' 27942else 27943 CATMAN_TRUE='#' 27944 CATMAN_FALSE= 27945fi 27946 27947echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5 27948echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6 27949if test "${ac_cv_sys_catman_ext+set}" = set; then 27950 echo $ECHO_N "(cached) $ECHO_C" >&6 27951else 27952 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 27953 ac_cv_sys_catman_ext=0 27954else 27955 ac_cv_sys_catman_ext=number 27956fi 27957 27958fi 27959echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5 27960echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6 27961if test "$ac_cv_sys_catman_ext" = number; then 27962 CATMANEXT='$$section' 27963else 27964 CATMANEXT=0 27965fi 27966 27967 27968 27969 27970 27971# Check whether --with-readline or --without-readline was given. 27972if test "${with_readline+set}" = set; then 27973 withval="$with_readline" 27974 27975fi; 27976 27977# Check whether --with-readline-lib or --without-readline-lib was given. 27978if test "${with_readline_lib+set}" = set; then 27979 withval="$with_readline_lib" 27980 if test "$withval" = "yes" -o "$withval" = "no"; then 27981 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5 27982echo "$as_me: error: No argument for --with-readline-lib" >&2;} 27983 { (exit 1); exit 1; }; } 27984elif test "X$with_readline" = "X"; then 27985 with_readline=yes 27986fi 27987fi; 27988 27989# Check whether --with-readline-include or --without-readline-include was given. 27990if test "${with_readline_include+set}" = set; then 27991 withval="$with_readline_include" 27992 if test "$withval" = "yes" -o "$withval" = "no"; then 27993 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5 27994echo "$as_me: error: No argument for --with-readline-include" >&2;} 27995 { (exit 1); exit 1; }; } 27996elif test "X$with_readline" = "X"; then 27997 with_readline=yes 27998fi 27999fi; 28000 28001# Check whether --with-readline-config or --without-readline-config was given. 28002if test "${with_readline_config+set}" = set; then 28003 withval="$with_readline_config" 28004 28005fi; 28006 28007 28008 28009echo "$as_me:$LINENO: checking for readline" >&5 28010echo $ECHO_N "checking for readline... $ECHO_C" >&6 28011 28012case "$with_readline" in 28013yes|"") d='' ;; 28014no) d= ;; 28015*) d="$with_readline" ;; 28016esac 28017 28018header_dirs= 28019lib_dirs= 28020for i in $d; do 28021 if test "$with_readline_include" = ""; then 28022 if test -d "$i/include/readline"; then 28023 header_dirs="$header_dirs $i/include/readline" 28024 fi 28025 if test -d "$i/include"; then 28026 header_dirs="$header_dirs $i/include" 28027 fi 28028 fi 28029 if test "$with_readline_lib" = ""; then 28030 if test -d "$i/lib$abilibdirext"; then 28031 lib_dirs="$lib_dirs $i/lib$abilibdirext" 28032 fi 28033 fi 28034done 28035 28036if test "$with_readline_include"; then 28037 header_dirs="$with_readline_include $header_dirs" 28038fi 28039if test "$with_readline_lib"; then 28040 lib_dirs="$with_readline_lib $lib_dirs" 28041fi 28042 28043if test "$with_readline_config" = ""; then 28044 with_readline_config='' 28045fi 28046 28047readline_cflags= 28048readline_libs= 28049 28050case "$with_readline_config" in 28051yes|no|"") 28052 ;; 28053*) 28054 readline_cflags="`$with_readline_config --cflags 2>&1`" 28055 readline_libs="`$with_readline_config --libs 2>&1`" 28056 ;; 28057esac 28058 28059found=no 28060if test "$with_readline" != no; then 28061 save_CFLAGS="$CFLAGS" 28062 save_LIBS="$LIBS" 28063 if test "$readline_cflags" -a "$readline_libs"; then 28064 CFLAGS="$readline_cflags $save_CFLAGS" 28065 LIBS="$readline_libs $save_LIBS" 28066 cat >conftest.$ac_ext <<_ACEOF 28067#line $LINENO "configure" 28068#include "confdefs.h" 28069#include <stdio.h> 28070 #include <readline.h> 28071#ifdef F77_DUMMY_MAIN 28072# ifdef __cplusplus 28073 extern "C" 28074# endif 28075 int F77_DUMMY_MAIN() { return 1; } 28076#endif 28077int 28078main () 28079{ 28080 28081 ; 28082 return 0; 28083} 28084_ACEOF 28085rm -f conftest.$ac_objext conftest$ac_exeext 28086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28087 (eval $ac_link) 2>&5 28088 ac_status=$? 28089 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28090 (exit $ac_status); } && 28091 { ac_try='test -s conftest$ac_exeext' 28092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28093 (eval $ac_try) 2>&5 28094 ac_status=$? 28095 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28096 (exit $ac_status); }; }; then 28097 28098 INCLUDE_readline="$readline_cflags" 28099 LIB_readline="$readline_libs" 28100 echo "$as_me:$LINENO: result: from $with_readline_config" >&5 28101echo "${ECHO_T}from $with_readline_config" >&6 28102 found=yes 28103else 28104 echo "$as_me: failed program was:" >&5 28105cat conftest.$ac_ext >&5 28106fi 28107rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28108 fi 28109 if test "$found" = no; then 28110 ires= lres= 28111 for i in $header_dirs; do 28112 CFLAGS="-I$i $save_CFLAGS" 28113 cat >conftest.$ac_ext <<_ACEOF 28114#line $LINENO "configure" 28115#include "confdefs.h" 28116#include <stdio.h> 28117 #include <readline.h> 28118#ifdef F77_DUMMY_MAIN 28119# ifdef __cplusplus 28120 extern "C" 28121# endif 28122 int F77_DUMMY_MAIN() { return 1; } 28123#endif 28124int 28125main () 28126{ 28127 28128 ; 28129 return 0; 28130} 28131_ACEOF 28132rm -f conftest.$ac_objext 28133if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28134 (eval $ac_compile) 2>&5 28135 ac_status=$? 28136 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28137 (exit $ac_status); } && 28138 { ac_try='test -s conftest.$ac_objext' 28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28140 (eval $ac_try) 2>&5 28141 ac_status=$? 28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28143 (exit $ac_status); }; }; then 28144 ires=$i;break 28145else 28146 echo "$as_me: failed program was:" >&5 28147cat conftest.$ac_ext >&5 28148fi 28149rm -f conftest.$ac_objext conftest.$ac_ext 28150 done 28151 for i in $lib_dirs; do 28152 LIBS="-L$i -lreadline $save_LIBS" 28153 cat >conftest.$ac_ext <<_ACEOF 28154#line $LINENO "configure" 28155#include "confdefs.h" 28156#include <stdio.h> 28157 #include <readline.h> 28158#ifdef F77_DUMMY_MAIN 28159# ifdef __cplusplus 28160 extern "C" 28161# endif 28162 int F77_DUMMY_MAIN() { return 1; } 28163#endif 28164int 28165main () 28166{ 28167 28168 ; 28169 return 0; 28170} 28171_ACEOF 28172rm -f conftest.$ac_objext conftest$ac_exeext 28173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28174 (eval $ac_link) 2>&5 28175 ac_status=$? 28176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28177 (exit $ac_status); } && 28178 { ac_try='test -s conftest$ac_exeext' 28179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28180 (eval $ac_try) 2>&5 28181 ac_status=$? 28182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28183 (exit $ac_status); }; }; then 28184 lres=$i;break 28185else 28186 echo "$as_me: failed program was:" >&5 28187cat conftest.$ac_ext >&5 28188fi 28189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28190 done 28191 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 28192 INCLUDE_readline="-I$ires" 28193 LIB_readline="-L$lres -lreadline " 28194 found=yes 28195 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 28196echo "${ECHO_T}headers $ires, libraries $lres" >&6 28197 fi 28198 fi 28199 CFLAGS="$save_CFLAGS" 28200 LIBS="$save_LIBS" 28201fi 28202 28203if test "$found" = yes; then 28204 28205cat >>confdefs.h <<_ACEOF 28206#define READLINE 1 28207_ACEOF 28208 28209 with_readline=yes 28210else 28211 with_readline=no 28212 INCLUDE_readline= 28213 LIB_readline= 28214 echo "$as_me:$LINENO: result: no" >&5 28215echo "${ECHO_T}no" >&6 28216fi 28217 28218 28219 28220 28221 28222 28223 28224# Check whether --with-hesiod or --without-hesiod was given. 28225if test "${with_hesiod+set}" = set; then 28226 withval="$with_hesiod" 28227 28228fi; 28229 28230# Check whether --with-hesiod-lib or --without-hesiod-lib was given. 28231if test "${with_hesiod_lib+set}" = set; then 28232 withval="$with_hesiod_lib" 28233 if test "$withval" = "yes" -o "$withval" = "no"; then 28234 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5 28235echo "$as_me: error: No argument for --with-hesiod-lib" >&2;} 28236 { (exit 1); exit 1; }; } 28237elif test "X$with_hesiod" = "X"; then 28238 with_hesiod=yes 28239fi 28240fi; 28241 28242# Check whether --with-hesiod-include or --without-hesiod-include was given. 28243if test "${with_hesiod_include+set}" = set; then 28244 withval="$with_hesiod_include" 28245 if test "$withval" = "yes" -o "$withval" = "no"; then 28246 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5 28247echo "$as_me: error: No argument for --with-hesiod-include" >&2;} 28248 { (exit 1); exit 1; }; } 28249elif test "X$with_hesiod" = "X"; then 28250 with_hesiod=yes 28251fi 28252fi; 28253 28254# Check whether --with-hesiod-config or --without-hesiod-config was given. 28255if test "${with_hesiod_config+set}" = set; then 28256 withval="$with_hesiod_config" 28257 28258fi; 28259 28260 28261 28262echo "$as_me:$LINENO: checking for hesiod" >&5 28263echo $ECHO_N "checking for hesiod... $ECHO_C" >&6 28264 28265case "$with_hesiod" in 28266yes|"") d='' ;; 28267no) d= ;; 28268*) d="$with_hesiod" ;; 28269esac 28270 28271header_dirs= 28272lib_dirs= 28273for i in $d; do 28274 if test "$with_hesiod_include" = ""; then 28275 if test -d "$i/include/hesiod"; then 28276 header_dirs="$header_dirs $i/include/hesiod" 28277 fi 28278 if test -d "$i/include"; then 28279 header_dirs="$header_dirs $i/include" 28280 fi 28281 fi 28282 if test "$with_hesiod_lib" = ""; then 28283 if test -d "$i/lib$abilibdirext"; then 28284 lib_dirs="$lib_dirs $i/lib$abilibdirext" 28285 fi 28286 fi 28287done 28288 28289if test "$with_hesiod_include"; then 28290 header_dirs="$with_hesiod_include $header_dirs" 28291fi 28292if test "$with_hesiod_lib"; then 28293 lib_dirs="$with_hesiod_lib $lib_dirs" 28294fi 28295 28296if test "$with_hesiod_config" = ""; then 28297 with_hesiod_config='' 28298fi 28299 28300hesiod_cflags= 28301hesiod_libs= 28302 28303case "$with_hesiod_config" in 28304yes|no|"") 28305 ;; 28306*) 28307 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`" 28308 hesiod_libs="`$with_hesiod_config --libs 2>&1`" 28309 ;; 28310esac 28311 28312found=no 28313if test "$with_hesiod" != no; then 28314 save_CFLAGS="$CFLAGS" 28315 save_LIBS="$LIBS" 28316 if test "$hesiod_cflags" -a "$hesiod_libs"; then 28317 CFLAGS="$hesiod_cflags $save_CFLAGS" 28318 LIBS="$hesiod_libs $save_LIBS" 28319 cat >conftest.$ac_ext <<_ACEOF 28320#line $LINENO "configure" 28321#include "confdefs.h" 28322#include <hesiod.h> 28323#ifdef F77_DUMMY_MAIN 28324# ifdef __cplusplus 28325 extern "C" 28326# endif 28327 int F77_DUMMY_MAIN() { return 1; } 28328#endif 28329int 28330main () 28331{ 28332 28333 ; 28334 return 0; 28335} 28336_ACEOF 28337rm -f conftest.$ac_objext conftest$ac_exeext 28338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28339 (eval $ac_link) 2>&5 28340 ac_status=$? 28341 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28342 (exit $ac_status); } && 28343 { ac_try='test -s conftest$ac_exeext' 28344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28345 (eval $ac_try) 2>&5 28346 ac_status=$? 28347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28348 (exit $ac_status); }; }; then 28349 28350 INCLUDE_hesiod="$hesiod_cflags" 28351 LIB_hesiod="$hesiod_libs" 28352 echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5 28353echo "${ECHO_T}from $with_hesiod_config" >&6 28354 found=yes 28355else 28356 echo "$as_me: failed program was:" >&5 28357cat conftest.$ac_ext >&5 28358fi 28359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28360 fi 28361 if test "$found" = no; then 28362 ires= lres= 28363 for i in $header_dirs; do 28364 CFLAGS="-I$i $save_CFLAGS" 28365 cat >conftest.$ac_ext <<_ACEOF 28366#line $LINENO "configure" 28367#include "confdefs.h" 28368#include <hesiod.h> 28369#ifdef F77_DUMMY_MAIN 28370# ifdef __cplusplus 28371 extern "C" 28372# endif 28373 int F77_DUMMY_MAIN() { return 1; } 28374#endif 28375int 28376main () 28377{ 28378 28379 ; 28380 return 0; 28381} 28382_ACEOF 28383rm -f conftest.$ac_objext 28384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28385 (eval $ac_compile) 2>&5 28386 ac_status=$? 28387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28388 (exit $ac_status); } && 28389 { ac_try='test -s conftest.$ac_objext' 28390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28391 (eval $ac_try) 2>&5 28392 ac_status=$? 28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28394 (exit $ac_status); }; }; then 28395 ires=$i;break 28396else 28397 echo "$as_me: failed program was:" >&5 28398cat conftest.$ac_ext >&5 28399fi 28400rm -f conftest.$ac_objext conftest.$ac_ext 28401 done 28402 for i in $lib_dirs; do 28403 LIBS="-L$i -lhesiod $save_LIBS" 28404 cat >conftest.$ac_ext <<_ACEOF 28405#line $LINENO "configure" 28406#include "confdefs.h" 28407#include <hesiod.h> 28408#ifdef F77_DUMMY_MAIN 28409# ifdef __cplusplus 28410 extern "C" 28411# endif 28412 int F77_DUMMY_MAIN() { return 1; } 28413#endif 28414int 28415main () 28416{ 28417 28418 ; 28419 return 0; 28420} 28421_ACEOF 28422rm -f conftest.$ac_objext conftest$ac_exeext 28423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28424 (eval $ac_link) 2>&5 28425 ac_status=$? 28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28427 (exit $ac_status); } && 28428 { ac_try='test -s conftest$ac_exeext' 28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28430 (eval $ac_try) 2>&5 28431 ac_status=$? 28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28433 (exit $ac_status); }; }; then 28434 lres=$i;break 28435else 28436 echo "$as_me: failed program was:" >&5 28437cat conftest.$ac_ext >&5 28438fi 28439rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28440 done 28441 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 28442 INCLUDE_hesiod="-I$ires" 28443 LIB_hesiod="-L$lres -lhesiod " 28444 found=yes 28445 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 28446echo "${ECHO_T}headers $ires, libraries $lres" >&6 28447 fi 28448 fi 28449 CFLAGS="$save_CFLAGS" 28450 LIBS="$save_LIBS" 28451fi 28452 28453if test "$found" = yes; then 28454 28455cat >>confdefs.h <<_ACEOF 28456#define HESIOD 1 28457_ACEOF 28458 28459 with_hesiod=yes 28460else 28461 with_hesiod=no 28462 INCLUDE_hesiod= 28463 LIB_hesiod= 28464 echo "$as_me:$LINENO: result: no" >&5 28465echo "${ECHO_T}no" >&6 28466fi 28467 28468 28469 28470 28471 28472 28473# Check whether --enable-bigendian or --disable-bigendian was given. 28474if test "${enable_bigendian+set}" = set; then 28475 enableval="$enable_bigendian" 28476 krb_cv_c_bigendian=yes 28477fi; 28478# Check whether --enable-littleendian or --disable-littleendian was given. 28479if test "${enable_littleendian+set}" = set; then 28480 enableval="$enable_littleendian" 28481 krb_cv_c_bigendian=no 28482fi; 28483echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5 28484echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6 28485if test "${krb_cv_c_bigendian_compile+set}" = set; then 28486 echo $ECHO_N "(cached) $ECHO_C" >&6 28487else 28488 cat >conftest.$ac_ext <<_ACEOF 28489#line $LINENO "configure" 28490#include "confdefs.h" 28491 28492#include <sys/types.h> 28493#include <sys/param.h> 28494#ifdef F77_DUMMY_MAIN 28495# ifdef __cplusplus 28496 extern "C" 28497# endif 28498 int F77_DUMMY_MAIN() { return 1; } 28499#endif 28500int 28501main () 28502{ 28503 28504#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 28505 bogus endian macros 28506#endif 28507 ; 28508 return 0; 28509} 28510_ACEOF 28511rm -f conftest.$ac_objext 28512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28513 (eval $ac_compile) 2>&5 28514 ac_status=$? 28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28516 (exit $ac_status); } && 28517 { ac_try='test -s conftest.$ac_objext' 28518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28519 (eval $ac_try) 2>&5 28520 ac_status=$? 28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28522 (exit $ac_status); }; }; then 28523 krb_cv_c_bigendian_compile=yes 28524else 28525 echo "$as_me: failed program was:" >&5 28526cat conftest.$ac_ext >&5 28527krb_cv_c_bigendian_compile=no 28528fi 28529rm -f conftest.$ac_objext conftest.$ac_ext 28530fi 28531echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5 28532echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6 28533echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 28534echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 28535if test "${krb_cv_c_bigendian+set}" = set; then 28536 echo $ECHO_N "(cached) $ECHO_C" >&6 28537else 28538 28539 if test "$krb_cv_c_bigendian_compile" = "yes"; then 28540 cat >conftest.$ac_ext <<_ACEOF 28541#line $LINENO "configure" 28542#include "confdefs.h" 28543 28544#include <sys/types.h> 28545#include <sys/param.h> 28546#ifdef F77_DUMMY_MAIN 28547# ifdef __cplusplus 28548 extern "C" 28549# endif 28550 int F77_DUMMY_MAIN() { return 1; } 28551#endif 28552int 28553main () 28554{ 28555 28556#if BYTE_ORDER != BIG_ENDIAN 28557 not big endian 28558#endif 28559 ; 28560 return 0; 28561} 28562_ACEOF 28563rm -f conftest.$ac_objext 28564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28565 (eval $ac_compile) 2>&5 28566 ac_status=$? 28567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28568 (exit $ac_status); } && 28569 { ac_try='test -s conftest.$ac_objext' 28570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28571 (eval $ac_try) 2>&5 28572 ac_status=$? 28573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28574 (exit $ac_status); }; }; then 28575 krb_cv_c_bigendian=yes 28576else 28577 echo "$as_me: failed program was:" >&5 28578cat conftest.$ac_ext >&5 28579krb_cv_c_bigendian=no 28580fi 28581rm -f conftest.$ac_objext conftest.$ac_ext 28582 else 28583 if test "$cross_compiling" = yes; then 28584 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5 28585echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;} 28586 { (exit 1); exit 1; }; } 28587else 28588 cat >conftest.$ac_ext <<_ACEOF 28589#line $LINENO "configure" 28590#include "confdefs.h" 28591main () { 28592 /* Are we little or big endian? From Harbison&Steele. */ 28593 union 28594 { 28595 long l; 28596 char c[sizeof (long)]; 28597 } u; 28598 u.l = 1; 28599 exit (u.c[sizeof (long) - 1] == 1); 28600 } 28601_ACEOF 28602rm -f conftest$ac_exeext 28603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28604 (eval $ac_link) 2>&5 28605 ac_status=$? 28606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28609 (eval $ac_try) 2>&5 28610 ac_status=$? 28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28612 (exit $ac_status); }; }; then 28613 krb_cv_c_bigendian=no 28614else 28615 echo "$as_me: program exited with status $ac_status" >&5 28616echo "$as_me: failed program was:" >&5 28617cat conftest.$ac_ext >&5 28618( exit $ac_status ) 28619krb_cv_c_bigendian=yes 28620fi 28621rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28622fi 28623 fi 28624 28625fi 28626echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5 28627echo "${ECHO_T}$krb_cv_c_bigendian" >&6 28628if test "$krb_cv_c_bigendian" = "yes"; then 28629 28630cat >>confdefs.h <<\_ACEOF 28631#define WORDS_BIGENDIAN 1 28632_ACEOF 28633fi 28634if test "$krb_cv_c_bigendian_compile" = "yes"; then 28635 28636cat >>confdefs.h <<\_ACEOF 28637#define ENDIANESS_IN_SYS_PARAM_H 1 28638_ACEOF 28639fi 28640 28641 28642 28643echo "$as_me:$LINENO: checking for inline" >&5 28644echo $ECHO_N "checking for inline... $ECHO_C" >&6 28645if test "${ac_cv_c_inline+set}" = set; then 28646 echo $ECHO_N "(cached) $ECHO_C" >&6 28647else 28648 ac_cv_c_inline=no 28649for ac_kw in inline __inline__ __inline; do 28650 cat >conftest.$ac_ext <<_ACEOF 28651#line $LINENO "configure" 28652#include "confdefs.h" 28653#ifndef __cplusplus 28654static $ac_kw int static_foo () {return 0; } 28655$ac_kw int foo () {return 0; } 28656#endif 28657 28658_ACEOF 28659rm -f conftest.$ac_objext 28660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28661 (eval $ac_compile) 2>&5 28662 ac_status=$? 28663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28664 (exit $ac_status); } && 28665 { ac_try='test -s conftest.$ac_objext' 28666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28667 (eval $ac_try) 2>&5 28668 ac_status=$? 28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28670 (exit $ac_status); }; }; then 28671 ac_cv_c_inline=$ac_kw; break 28672else 28673 echo "$as_me: failed program was:" >&5 28674cat conftest.$ac_ext >&5 28675fi 28676rm -f conftest.$ac_objext conftest.$ac_ext 28677done 28678 28679fi 28680echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 28681echo "${ECHO_T}$ac_cv_c_inline" >&6 28682case $ac_cv_c_inline in 28683 inline | yes) ;; 28684 no) 28685cat >>confdefs.h <<\_ACEOF 28686#define inline 28687_ACEOF 28688 ;; 28689 *) cat >>confdefs.h <<_ACEOF 28690#define inline $ac_cv_c_inline 28691_ACEOF 28692 ;; 28693esac 28694 28695 28696 28697 28698 28699 28700echo "$as_me:$LINENO: checking for dlopen" >&5 28701echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 28702if test "${ac_cv_funclib_dlopen+set}" = set; then 28703 echo $ECHO_N "(cached) $ECHO_C" >&6 28704else 28705 28706if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 28707 ac_save_LIBS="$LIBS" 28708 for ac_lib in "" dl; do 28709 case "$ac_lib" in 28710 "") ;; 28711 yes) ac_lib="" ;; 28712 no) continue ;; 28713 -l*) ;; 28714 *) ac_lib="-l$ac_lib" ;; 28715 esac 28716 LIBS=" $ac_lib $ac_save_LIBS" 28717 cat >conftest.$ac_ext <<_ACEOF 28718#line $LINENO "configure" 28719#include "confdefs.h" 28720 28721#ifdef F77_DUMMY_MAIN 28722# ifdef __cplusplus 28723 extern "C" 28724# endif 28725 int F77_DUMMY_MAIN() { return 1; } 28726#endif 28727int 28728main () 28729{ 28730dlopen() 28731 ; 28732 return 0; 28733} 28734_ACEOF 28735rm -f conftest.$ac_objext conftest$ac_exeext 28736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28737 (eval $ac_link) 2>&5 28738 ac_status=$? 28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28740 (exit $ac_status); } && 28741 { ac_try='test -s conftest$ac_exeext' 28742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28743 (eval $ac_try) 2>&5 28744 ac_status=$? 28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28746 (exit $ac_status); }; }; then 28747 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 28748else 28749 echo "$as_me: failed program was:" >&5 28750cat conftest.$ac_ext >&5 28751fi 28752rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28753 done 28754 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 28755 LIBS="$ac_save_LIBS" 28756fi 28757 28758fi 28759 28760 28761eval "ac_res=\$ac_cv_funclib_dlopen" 28762 28763if false; then 28764 28765for ac_func in dlopen 28766do 28767as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 28768echo "$as_me:$LINENO: checking for $ac_func" >&5 28769echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 28770if eval "test \"\${$as_ac_var+set}\" = set"; then 28771 echo $ECHO_N "(cached) $ECHO_C" >&6 28772else 28773 cat >conftest.$ac_ext <<_ACEOF 28774#line $LINENO "configure" 28775#include "confdefs.h" 28776/* System header to define __stub macros and hopefully few prototypes, 28777 which can conflict with char $ac_func (); below. */ 28778#include <assert.h> 28779/* Override any gcc2 internal prototype to avoid an error. */ 28780#ifdef __cplusplus 28781extern "C" 28782#endif 28783/* We use char because int might match the return type of a gcc2 28784 builtin and then its argument prototype would still apply. */ 28785char $ac_func (); 28786char (*f) (); 28787 28788#ifdef F77_DUMMY_MAIN 28789# ifdef __cplusplus 28790 extern "C" 28791# endif 28792 int F77_DUMMY_MAIN() { return 1; } 28793#endif 28794int 28795main () 28796{ 28797/* The GNU C library defines this for functions which it implements 28798 to always fail with ENOSYS. Some functions are actually named 28799 something starting with __ and the normal name is an alias. */ 28800#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 28801choke me 28802#else 28803f = $ac_func; 28804#endif 28805 28806 ; 28807 return 0; 28808} 28809_ACEOF 28810rm -f conftest.$ac_objext conftest$ac_exeext 28811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28812 (eval $ac_link) 2>&5 28813 ac_status=$? 28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28815 (exit $ac_status); } && 28816 { ac_try='test -s conftest$ac_exeext' 28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28818 (eval $ac_try) 2>&5 28819 ac_status=$? 28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28821 (exit $ac_status); }; }; then 28822 eval "$as_ac_var=yes" 28823else 28824 echo "$as_me: failed program was:" >&5 28825cat conftest.$ac_ext >&5 28826eval "$as_ac_var=no" 28827fi 28828rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28829fi 28830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 28831echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 28832if test `eval echo '${'$as_ac_var'}'` = yes; then 28833 cat >>confdefs.h <<_ACEOF 28834#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 28835_ACEOF 28836 28837fi 28838done 28839 28840fi 28841# dlopen 28842eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28843eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 28844eval "LIB_dlopen=$ac_res" 28845 28846case "$ac_res" in 28847 yes) 28848 eval "ac_cv_func_dlopen=yes" 28849 eval "LIB_dlopen=" 28850 cat >>confdefs.h <<_ACEOF 28851#define $ac_tr_func 1 28852_ACEOF 28853 28854 echo "$as_me:$LINENO: result: yes" >&5 28855echo "${ECHO_T}yes" >&6 28856 ;; 28857 no) 28858 eval "ac_cv_func_dlopen=no" 28859 eval "LIB_dlopen=" 28860 echo "$as_me:$LINENO: result: no" >&5 28861echo "${ECHO_T}no" >&6 28862 ;; 28863 *) 28864 eval "ac_cv_func_dlopen=yes" 28865 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 28866 cat >>confdefs.h <<_ACEOF 28867#define $ac_tr_func 1 28868_ACEOF 28869 28870 cat >>confdefs.h <<_ACEOF 28871#define $ac_tr_lib 1 28872_ACEOF 28873 28874 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 28875echo "${ECHO_T}yes, in $ac_res" >&6 28876 ;; 28877esac 28878 28879 28880 28881 28882if test "$ac_cv_funclib_dlopen" != no; then 28883 HAVE_DLOPEN_TRUE= 28884 HAVE_DLOPEN_FALSE='#' 28885else 28886 HAVE_DLOPEN_TRUE='#' 28887 HAVE_DLOPEN_FALSE= 28888fi 28889 28890 28891 28892 28893aix=no 28894case "$host" in 28895*-*-aix3*) 28896 aix=3 28897 ;; 28898*-*-aix4*|*-*-aix5*) 28899 aix=4 28900 ;; 28901esac 28902 28903 28904 28905if test "$aix" != no; then 28906 AIX_TRUE= 28907 AIX_FALSE='#' 28908else 28909 AIX_TRUE='#' 28910 AIX_FALSE= 28911fi 28912 28913 28914if test "$aix" = 4; then 28915 AIX4_TRUE= 28916 AIX4_FALSE='#' 28917else 28918 AIX4_TRUE='#' 28919 AIX4_FALSE= 28920fi 28921 28922 28923 28924# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given. 28925if test "${enable_dynamic_afs+set}" = set; then 28926 enableval="$enable_dynamic_afs" 28927 28928fi; 28929 28930if test "$aix" != no; then 28931 if test "$enable_dynamic_afs" != no; then 28932 28933 if test "$ac_cv_func_dlopen" = no; then 28934 28935 28936 28937echo "$as_me:$LINENO: checking for loadquery" >&5 28938echo $ECHO_N "checking for loadquery... $ECHO_C" >&6 28939if test "${ac_cv_funclib_loadquery+set}" = set; then 28940 echo $ECHO_N "(cached) $ECHO_C" >&6 28941else 28942 28943if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then 28944 ac_save_LIBS="$LIBS" 28945 for ac_lib in "" ld; do 28946 case "$ac_lib" in 28947 "") ;; 28948 yes) ac_lib="" ;; 28949 no) continue ;; 28950 -l*) ;; 28951 *) ac_lib="-l$ac_lib" ;; 28952 esac 28953 LIBS=" $ac_lib $ac_save_LIBS" 28954 cat >conftest.$ac_ext <<_ACEOF 28955#line $LINENO "configure" 28956#include "confdefs.h" 28957 28958#ifdef F77_DUMMY_MAIN 28959# ifdef __cplusplus 28960 extern "C" 28961# endif 28962 int F77_DUMMY_MAIN() { return 1; } 28963#endif 28964int 28965main () 28966{ 28967loadquery() 28968 ; 28969 return 0; 28970} 28971_ACEOF 28972rm -f conftest.$ac_objext conftest$ac_exeext 28973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28974 (eval $ac_link) 2>&5 28975 ac_status=$? 28976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28977 (exit $ac_status); } && 28978 { ac_try='test -s conftest$ac_exeext' 28979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28980 (eval $ac_try) 2>&5 28981 ac_status=$? 28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28983 (exit $ac_status); }; }; then 28984 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break 28985else 28986 echo "$as_me: failed program was:" >&5 28987cat conftest.$ac_ext >&5 28988fi 28989rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28990 done 28991 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}" 28992 LIBS="$ac_save_LIBS" 28993fi 28994 28995fi 28996 28997 28998eval "ac_res=\$ac_cv_funclib_loadquery" 28999 29000if false; then 29001 29002for ac_func in loadquery 29003do 29004as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29005echo "$as_me:$LINENO: checking for $ac_func" >&5 29006echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 29007if eval "test \"\${$as_ac_var+set}\" = set"; then 29008 echo $ECHO_N "(cached) $ECHO_C" >&6 29009else 29010 cat >conftest.$ac_ext <<_ACEOF 29011#line $LINENO "configure" 29012#include "confdefs.h" 29013/* System header to define __stub macros and hopefully few prototypes, 29014 which can conflict with char $ac_func (); below. */ 29015#include <assert.h> 29016/* Override any gcc2 internal prototype to avoid an error. */ 29017#ifdef __cplusplus 29018extern "C" 29019#endif 29020/* We use char because int might match the return type of a gcc2 29021 builtin and then its argument prototype would still apply. */ 29022char $ac_func (); 29023char (*f) (); 29024 29025#ifdef F77_DUMMY_MAIN 29026# ifdef __cplusplus 29027 extern "C" 29028# endif 29029 int F77_DUMMY_MAIN() { return 1; } 29030#endif 29031int 29032main () 29033{ 29034/* The GNU C library defines this for functions which it implements 29035 to always fail with ENOSYS. Some functions are actually named 29036 something starting with __ and the normal name is an alias. */ 29037#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 29038choke me 29039#else 29040f = $ac_func; 29041#endif 29042 29043 ; 29044 return 0; 29045} 29046_ACEOF 29047rm -f conftest.$ac_objext conftest$ac_exeext 29048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29049 (eval $ac_link) 2>&5 29050 ac_status=$? 29051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29052 (exit $ac_status); } && 29053 { ac_try='test -s conftest$ac_exeext' 29054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29055 (eval $ac_try) 2>&5 29056 ac_status=$? 29057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29058 (exit $ac_status); }; }; then 29059 eval "$as_ac_var=yes" 29060else 29061 echo "$as_me: failed program was:" >&5 29062cat conftest.$ac_ext >&5 29063eval "$as_ac_var=no" 29064fi 29065rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29066fi 29067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 29068echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 29069if test `eval echo '${'$as_ac_var'}'` = yes; then 29070 cat >>confdefs.h <<_ACEOF 29071#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29072_ACEOF 29073 29074fi 29075done 29076 29077fi 29078# loadquery 29079eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29080eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29081eval "LIB_loadquery=$ac_res" 29082 29083case "$ac_res" in 29084 yes) 29085 eval "ac_cv_func_loadquery=yes" 29086 eval "LIB_loadquery=" 29087 cat >>confdefs.h <<_ACEOF 29088#define $ac_tr_func 1 29089_ACEOF 29090 29091 echo "$as_me:$LINENO: result: yes" >&5 29092echo "${ECHO_T}yes" >&6 29093 ;; 29094 no) 29095 eval "ac_cv_func_loadquery=no" 29096 eval "LIB_loadquery=" 29097 echo "$as_me:$LINENO: result: no" >&5 29098echo "${ECHO_T}no" >&6 29099 ;; 29100 *) 29101 eval "ac_cv_func_loadquery=yes" 29102 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 29103 cat >>confdefs.h <<_ACEOF 29104#define $ac_tr_func 1 29105_ACEOF 29106 29107 cat >>confdefs.h <<_ACEOF 29108#define $ac_tr_lib 1 29109_ACEOF 29110 29111 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 29112echo "${ECHO_T}yes, in $ac_res" >&6 29113 ;; 29114esac 29115 29116 29117 fi 29118 if test "$ac_cv_func_dlopen" != no; then 29119 AIX_EXTRA_KAFS='$(LIB_dlopen)' 29120 elif test "$ac_cv_func_loadquery" != no; then 29121 AIX_EXTRA_KAFS='$(LIB_loadquery)' 29122 else 29123 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5 29124echo "$as_me: not using dynloaded AFS library" >&6;} 29125 AIX_EXTRA_KAFS= 29126 enable_dynamic_afs=no 29127 fi 29128 else 29129 AIX_EXTRA_KAFS= 29130 fi 29131fi 29132 29133 29134 29135if test "$enable_dynamic_afs" != no; then 29136 AIX_DYNAMIC_AFS_TRUE= 29137 AIX_DYNAMIC_AFS_FALSE='#' 29138else 29139 AIX_DYNAMIC_AFS_TRUE='#' 29140 AIX_DYNAMIC_AFS_FALSE= 29141fi 29142 29143 29144 29145 29146 29147 29148irix=no 29149case "$host" in 29150*-*-irix4*) 29151 29152cat >>confdefs.h <<\_ACEOF 29153#define IRIX4 1 29154_ACEOF 29155 29156 irix=yes 29157 ;; 29158*-*-irix*) 29159 irix=yes 29160 ;; 29161esac 29162 29163 29164if test "$irix" != no; then 29165 IRIX_TRUE= 29166 IRIX_FALSE='#' 29167else 29168 IRIX_TRUE='#' 29169 IRIX_FALSE= 29170fi 29171 29172 29173 29174 29175 29176sunos=no 29177case "$host" in 29178*-*-sunos4*) 29179 sunos=40 29180 ;; 29181*-*-solaris2.7) 29182 sunos=57 29183 ;; 29184*-*-solaris2.[89]) 29185 sunos=58 29186 ;; 29187*-*-solaris2*) 29188 sunos=50 29189 ;; 29190esac 29191if test "$sunos" != no; then 29192 29193cat >>confdefs.h <<_ACEOF 29194#define SunOS $sunos 29195_ACEOF 29196 29197fi 29198 29199 29200echo "$as_me:$LINENO: checking for X" >&5 29201echo $ECHO_N "checking for X... $ECHO_C" >&6 29202 29203 29204# Check whether --with-x or --without-x was given. 29205if test "${with_x+set}" = set; then 29206 withval="$with_x" 29207 29208fi; 29209# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 29210if test "x$with_x" = xno; then 29211 # The user explicitly disabled X. 29212 have_x=disabled 29213else 29214 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 29215 # Both variables are already set. 29216 have_x=yes 29217 else 29218 if test "${ac_cv_have_x+set}" = set; then 29219 echo $ECHO_N "(cached) $ECHO_C" >&6 29220else 29221 # One or both of the vars are not set, and there is no cached value. 29222ac_x_includes=no ac_x_libraries=no 29223rm -fr conftest.dir 29224if mkdir conftest.dir; then 29225 cd conftest.dir 29226 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 29227 cat >Imakefile <<'_ACEOF' 29228acfindx: 29229 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 29230_ACEOF 29231 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 29232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 29233 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 29234 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 29235 for ac_extension in a so sl; do 29236 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 29237 test -f $ac_im_libdir/libX11.$ac_extension; then 29238 ac_im_usrlibdir=$ac_im_libdir; break 29239 fi 29240 done 29241 # Screen out bogus values from the imake configuration. They are 29242 # bogus both because they are the default anyway, and because 29243 # using them would break gcc on systems where it needs fixed includes. 29244 case $ac_im_incroot in 29245 /usr/include) ;; 29246 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 29247 esac 29248 case $ac_im_usrlibdir in 29249 /usr/lib | /lib) ;; 29250 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 29251 esac 29252 fi 29253 cd .. 29254 rm -fr conftest.dir 29255fi 29256 29257# Standard set of common directories for X headers. 29258# Check X11 before X11Rn because it is often a symlink to the current release. 29259ac_x_header_dirs=' 29260/usr/X11/include 29261/usr/X11R6/include 29262/usr/X11R5/include 29263/usr/X11R4/include 29264 29265/usr/include/X11 29266/usr/include/X11R6 29267/usr/include/X11R5 29268/usr/include/X11R4 29269 29270/usr/local/X11/include 29271/usr/local/X11R6/include 29272/usr/local/X11R5/include 29273/usr/local/X11R4/include 29274 29275/usr/local/include/X11 29276/usr/local/include/X11R6 29277/usr/local/include/X11R5 29278/usr/local/include/X11R4 29279 29280/usr/X386/include 29281/usr/x386/include 29282/usr/XFree86/include/X11 29283 29284/usr/include 29285/usr/local/include 29286/usr/unsupported/include 29287/usr/athena/include 29288/usr/local/x11r5/include 29289/usr/lpp/Xamples/include 29290 29291/usr/openwin/include 29292/usr/openwin/share/include' 29293 29294if test "$ac_x_includes" = no; then 29295 # Guess where to find include files, by looking for Intrinsic.h. 29296 # First, try using that file with no special directory specified. 29297 cat >conftest.$ac_ext <<_ACEOF 29298#line $LINENO "configure" 29299#include "confdefs.h" 29300#include <X11/Intrinsic.h> 29301_ACEOF 29302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 29303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 29304 ac_status=$? 29305 egrep -v '^ *\+' conftest.er1 >conftest.err 29306 rm -f conftest.er1 29307 cat conftest.err >&5 29308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29309 (exit $ac_status); } >/dev/null; then 29310 if test -s conftest.err; then 29311 ac_cpp_err=$ac_c_preproc_warn_flag 29312 else 29313 ac_cpp_err= 29314 fi 29315else 29316 ac_cpp_err=yes 29317fi 29318if test -z "$ac_cpp_err"; then 29319 # We can compile using X headers with no special include directory. 29320ac_x_includes= 29321else 29322 echo "$as_me: failed program was:" >&5 29323 cat conftest.$ac_ext >&5 29324 for ac_dir in $ac_x_header_dirs; do 29325 if test -r "$ac_dir/X11/Intrinsic.h"; then 29326 ac_x_includes=$ac_dir 29327 break 29328 fi 29329done 29330fi 29331rm -f conftest.err conftest.$ac_ext 29332fi # $ac_x_includes = no 29333 29334if test "$ac_x_libraries" = no; then 29335 # Check for the libraries. 29336 # See if we find them without any special options. 29337 # Don't add to $LIBS permanently. 29338 ac_save_LIBS=$LIBS 29339 LIBS="-lXt $LIBS" 29340 cat >conftest.$ac_ext <<_ACEOF 29341#line $LINENO "configure" 29342#include "confdefs.h" 29343#include <X11/Intrinsic.h> 29344#ifdef F77_DUMMY_MAIN 29345# ifdef __cplusplus 29346 extern "C" 29347# endif 29348 int F77_DUMMY_MAIN() { return 1; } 29349#endif 29350int 29351main () 29352{ 29353XtMalloc (0) 29354 ; 29355 return 0; 29356} 29357_ACEOF 29358rm -f conftest.$ac_objext conftest$ac_exeext 29359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29360 (eval $ac_link) 2>&5 29361 ac_status=$? 29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29363 (exit $ac_status); } && 29364 { ac_try='test -s conftest$ac_exeext' 29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29366 (eval $ac_try) 2>&5 29367 ac_status=$? 29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29369 (exit $ac_status); }; }; then 29370 LIBS=$ac_save_LIBS 29371# We can link X programs with no special library path. 29372ac_x_libraries= 29373else 29374 echo "$as_me: failed program was:" >&5 29375cat conftest.$ac_ext >&5 29376LIBS=$ac_save_LIBS 29377for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 29378do 29379 # Don't even attempt the hair of trying to link an X program! 29380 for ac_extension in a so sl; do 29381 if test -r $ac_dir/libXt.$ac_extension; then 29382 ac_x_libraries=$ac_dir 29383 break 2 29384 fi 29385 done 29386done 29387fi 29388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29389fi # $ac_x_libraries = no 29390 29391if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 29392 # Didn't find X anywhere. Cache the known absence of X. 29393 ac_cv_have_x="have_x=no" 29394else 29395 # Record where we found X for the cache. 29396 ac_cv_have_x="have_x=yes \ 29397 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 29398fi 29399fi 29400 29401 fi 29402 eval "$ac_cv_have_x" 29403fi # $with_x != no 29404 29405if test "$have_x" != yes; then 29406 echo "$as_me:$LINENO: result: $have_x" >&5 29407echo "${ECHO_T}$have_x" >&6 29408 no_x=yes 29409else 29410 # If each of the values was on the command line, it overrides each guess. 29411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 29412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 29413 # Update the cache value to reflect the command line values. 29414 ac_cv_have_x="have_x=yes \ 29415 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 29416 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 29417echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 29418fi 29419 29420 29421if test "$no_x" = yes; then 29422 # Not all programs may use this symbol, but it does not hurt to define it. 29423 29424cat >>confdefs.h <<\_ACEOF 29425#define X_DISPLAY_MISSING 1 29426_ACEOF 29427 29428 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 29429else 29430 if test -n "$x_includes"; then 29431 X_CFLAGS="$X_CFLAGS -I$x_includes" 29432 fi 29433 29434 # It would also be nice to do this for all -L options, not just this one. 29435 if test -n "$x_libraries"; then 29436 X_LIBS="$X_LIBS -L$x_libraries" 29437 # For Solaris; some versions of Sun CC require a space after -R and 29438 # others require no space. Words are not sufficient . . . . 29439 case `(uname -sr) 2>/dev/null` in 29440 "SunOS 5"*) 29441 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 29442echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 29443 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 29444 cat >conftest.$ac_ext <<_ACEOF 29445#line $LINENO "configure" 29446#include "confdefs.h" 29447 29448#ifdef F77_DUMMY_MAIN 29449# ifdef __cplusplus 29450 extern "C" 29451# endif 29452 int F77_DUMMY_MAIN() { return 1; } 29453#endif 29454int 29455main () 29456{ 29457 29458 ; 29459 return 0; 29460} 29461_ACEOF 29462rm -f conftest.$ac_objext conftest$ac_exeext 29463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29464 (eval $ac_link) 2>&5 29465 ac_status=$? 29466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29467 (exit $ac_status); } && 29468 { ac_try='test -s conftest$ac_exeext' 29469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29470 (eval $ac_try) 2>&5 29471 ac_status=$? 29472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29473 (exit $ac_status); }; }; then 29474 ac_R_nospace=yes 29475else 29476 echo "$as_me: failed program was:" >&5 29477cat conftest.$ac_ext >&5 29478ac_R_nospace=no 29479fi 29480rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29481 if test $ac_R_nospace = yes; then 29482 echo "$as_me:$LINENO: result: no" >&5 29483echo "${ECHO_T}no" >&6 29484 X_LIBS="$X_LIBS -R$x_libraries" 29485 else 29486 LIBS="$ac_xsave_LIBS -R $x_libraries" 29487 cat >conftest.$ac_ext <<_ACEOF 29488#line $LINENO "configure" 29489#include "confdefs.h" 29490 29491#ifdef F77_DUMMY_MAIN 29492# ifdef __cplusplus 29493 extern "C" 29494# endif 29495 int F77_DUMMY_MAIN() { return 1; } 29496#endif 29497int 29498main () 29499{ 29500 29501 ; 29502 return 0; 29503} 29504_ACEOF 29505rm -f conftest.$ac_objext conftest$ac_exeext 29506if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29507 (eval $ac_link) 2>&5 29508 ac_status=$? 29509 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29510 (exit $ac_status); } && 29511 { ac_try='test -s conftest$ac_exeext' 29512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29513 (eval $ac_try) 2>&5 29514 ac_status=$? 29515 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29516 (exit $ac_status); }; }; then 29517 ac_R_space=yes 29518else 29519 echo "$as_me: failed program was:" >&5 29520cat conftest.$ac_ext >&5 29521ac_R_space=no 29522fi 29523rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29524 if test $ac_R_space = yes; then 29525 echo "$as_me:$LINENO: result: yes" >&5 29526echo "${ECHO_T}yes" >&6 29527 X_LIBS="$X_LIBS -R $x_libraries" 29528 else 29529 echo "$as_me:$LINENO: result: neither works" >&5 29530echo "${ECHO_T}neither works" >&6 29531 fi 29532 fi 29533 LIBS=$ac_xsave_LIBS 29534 esac 29535 fi 29536 29537 # Check for system-dependent libraries X programs must link with. 29538 # Do this before checking for the system-independent R6 libraries 29539 # (-lICE), since we may need -lsocket or whatever for X linking. 29540 29541 if test "$ISC" = yes; then 29542 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 29543 else 29544 # Martyn Johnson says this is needed for Ultrix, if the X 29545 # libraries were built with DECnet support. And Karl Berry says 29546 # the Alpha needs dnet_stub (dnet does not exist). 29547 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 29548 cat >conftest.$ac_ext <<_ACEOF 29549#line $LINENO "configure" 29550#include "confdefs.h" 29551 29552/* Override any gcc2 internal prototype to avoid an error. */ 29553#ifdef __cplusplus 29554extern "C" 29555#endif 29556/* We use char because int might match the return type of a gcc2 29557 builtin and then its argument prototype would still apply. */ 29558char XOpenDisplay (); 29559#ifdef F77_DUMMY_MAIN 29560# ifdef __cplusplus 29561 extern "C" 29562# endif 29563 int F77_DUMMY_MAIN() { return 1; } 29564#endif 29565int 29566main () 29567{ 29568XOpenDisplay (); 29569 ; 29570 return 0; 29571} 29572_ACEOF 29573rm -f conftest.$ac_objext conftest$ac_exeext 29574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29575 (eval $ac_link) 2>&5 29576 ac_status=$? 29577 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29578 (exit $ac_status); } && 29579 { ac_try='test -s conftest$ac_exeext' 29580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29581 (eval $ac_try) 2>&5 29582 ac_status=$? 29583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29584 (exit $ac_status); }; }; then 29585 : 29586else 29587 echo "$as_me: failed program was:" >&5 29588cat conftest.$ac_ext >&5 29589echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 29590echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 29591if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 29592 echo $ECHO_N "(cached) $ECHO_C" >&6 29593else 29594 ac_check_lib_save_LIBS=$LIBS 29595LIBS="-ldnet $LIBS" 29596cat >conftest.$ac_ext <<_ACEOF 29597#line $LINENO "configure" 29598#include "confdefs.h" 29599 29600/* Override any gcc2 internal prototype to avoid an error. */ 29601#ifdef __cplusplus 29602extern "C" 29603#endif 29604/* We use char because int might match the return type of a gcc2 29605 builtin and then its argument prototype would still apply. */ 29606char dnet_ntoa (); 29607#ifdef F77_DUMMY_MAIN 29608# ifdef __cplusplus 29609 extern "C" 29610# endif 29611 int F77_DUMMY_MAIN() { return 1; } 29612#endif 29613int 29614main () 29615{ 29616dnet_ntoa (); 29617 ; 29618 return 0; 29619} 29620_ACEOF 29621rm -f conftest.$ac_objext conftest$ac_exeext 29622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29623 (eval $ac_link) 2>&5 29624 ac_status=$? 29625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29626 (exit $ac_status); } && 29627 { ac_try='test -s conftest$ac_exeext' 29628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29629 (eval $ac_try) 2>&5 29630 ac_status=$? 29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29632 (exit $ac_status); }; }; then 29633 ac_cv_lib_dnet_dnet_ntoa=yes 29634else 29635 echo "$as_me: failed program was:" >&5 29636cat conftest.$ac_ext >&5 29637ac_cv_lib_dnet_dnet_ntoa=no 29638fi 29639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29640LIBS=$ac_check_lib_save_LIBS 29641fi 29642echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 29643echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 29644if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 29645 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 29646fi 29647 29648 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 29649 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 29650echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 29651if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 29652 echo $ECHO_N "(cached) $ECHO_C" >&6 29653else 29654 ac_check_lib_save_LIBS=$LIBS 29655LIBS="-ldnet_stub $LIBS" 29656cat >conftest.$ac_ext <<_ACEOF 29657#line $LINENO "configure" 29658#include "confdefs.h" 29659 29660/* Override any gcc2 internal prototype to avoid an error. */ 29661#ifdef __cplusplus 29662extern "C" 29663#endif 29664/* We use char because int might match the return type of a gcc2 29665 builtin and then its argument prototype would still apply. */ 29666char dnet_ntoa (); 29667#ifdef F77_DUMMY_MAIN 29668# ifdef __cplusplus 29669 extern "C" 29670# endif 29671 int F77_DUMMY_MAIN() { return 1; } 29672#endif 29673int 29674main () 29675{ 29676dnet_ntoa (); 29677 ; 29678 return 0; 29679} 29680_ACEOF 29681rm -f conftest.$ac_objext conftest$ac_exeext 29682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29683 (eval $ac_link) 2>&5 29684 ac_status=$? 29685 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29686 (exit $ac_status); } && 29687 { ac_try='test -s conftest$ac_exeext' 29688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29689 (eval $ac_try) 2>&5 29690 ac_status=$? 29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29692 (exit $ac_status); }; }; then 29693 ac_cv_lib_dnet_stub_dnet_ntoa=yes 29694else 29695 echo "$as_me: failed program was:" >&5 29696cat conftest.$ac_ext >&5 29697ac_cv_lib_dnet_stub_dnet_ntoa=no 29698fi 29699rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29700LIBS=$ac_check_lib_save_LIBS 29701fi 29702echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 29703echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 29704if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 29705 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 29706fi 29707 29708 fi 29709fi 29710rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29711 LIBS="$ac_xsave_LIBS" 29712 29713 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 29714 # to get the SysV transport functions. 29715 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 29716 # needs -lnsl. 29717 # The nsl library prevents programs from opening the X display 29718 # on Irix 5.2, according to T.E. Dickey. 29719 # The functions gethostbyname, getservbyname, and inet_addr are 29720 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 29721 echo "$as_me:$LINENO: checking for gethostbyname" >&5 29722echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 29723if test "${ac_cv_func_gethostbyname+set}" = set; then 29724 echo $ECHO_N "(cached) $ECHO_C" >&6 29725else 29726 cat >conftest.$ac_ext <<_ACEOF 29727#line $LINENO "configure" 29728#include "confdefs.h" 29729/* System header to define __stub macros and hopefully few prototypes, 29730 which can conflict with char gethostbyname (); below. */ 29731#include <assert.h> 29732/* Override any gcc2 internal prototype to avoid an error. */ 29733#ifdef __cplusplus 29734extern "C" 29735#endif 29736/* We use char because int might match the return type of a gcc2 29737 builtin and then its argument prototype would still apply. */ 29738char gethostbyname (); 29739char (*f) (); 29740 29741#ifdef F77_DUMMY_MAIN 29742# ifdef __cplusplus 29743 extern "C" 29744# endif 29745 int F77_DUMMY_MAIN() { return 1; } 29746#endif 29747int 29748main () 29749{ 29750/* The GNU C library defines this for functions which it implements 29751 to always fail with ENOSYS. Some functions are actually named 29752 something starting with __ and the normal name is an alias. */ 29753#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 29754choke me 29755#else 29756f = gethostbyname; 29757#endif 29758 29759 ; 29760 return 0; 29761} 29762_ACEOF 29763rm -f conftest.$ac_objext conftest$ac_exeext 29764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29765 (eval $ac_link) 2>&5 29766 ac_status=$? 29767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29768 (exit $ac_status); } && 29769 { ac_try='test -s conftest$ac_exeext' 29770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29771 (eval $ac_try) 2>&5 29772 ac_status=$? 29773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29774 (exit $ac_status); }; }; then 29775 ac_cv_func_gethostbyname=yes 29776else 29777 echo "$as_me: failed program was:" >&5 29778cat conftest.$ac_ext >&5 29779ac_cv_func_gethostbyname=no 29780fi 29781rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29782fi 29783echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 29784echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 29785 29786 if test $ac_cv_func_gethostbyname = no; then 29787 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 29788echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 29789if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 29790 echo $ECHO_N "(cached) $ECHO_C" >&6 29791else 29792 ac_check_lib_save_LIBS=$LIBS 29793LIBS="-lnsl $LIBS" 29794cat >conftest.$ac_ext <<_ACEOF 29795#line $LINENO "configure" 29796#include "confdefs.h" 29797 29798/* Override any gcc2 internal prototype to avoid an error. */ 29799#ifdef __cplusplus 29800extern "C" 29801#endif 29802/* We use char because int might match the return type of a gcc2 29803 builtin and then its argument prototype would still apply. */ 29804char gethostbyname (); 29805#ifdef F77_DUMMY_MAIN 29806# ifdef __cplusplus 29807 extern "C" 29808# endif 29809 int F77_DUMMY_MAIN() { return 1; } 29810#endif 29811int 29812main () 29813{ 29814gethostbyname (); 29815 ; 29816 return 0; 29817} 29818_ACEOF 29819rm -f conftest.$ac_objext conftest$ac_exeext 29820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29821 (eval $ac_link) 2>&5 29822 ac_status=$? 29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29824 (exit $ac_status); } && 29825 { ac_try='test -s conftest$ac_exeext' 29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29827 (eval $ac_try) 2>&5 29828 ac_status=$? 29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29830 (exit $ac_status); }; }; then 29831 ac_cv_lib_nsl_gethostbyname=yes 29832else 29833 echo "$as_me: failed program was:" >&5 29834cat conftest.$ac_ext >&5 29835ac_cv_lib_nsl_gethostbyname=no 29836fi 29837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29838LIBS=$ac_check_lib_save_LIBS 29839fi 29840echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 29841echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 29842if test $ac_cv_lib_nsl_gethostbyname = yes; then 29843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 29844fi 29845 29846 if test $ac_cv_lib_nsl_gethostbyname = no; then 29847 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 29848echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 29849if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 29850 echo $ECHO_N "(cached) $ECHO_C" >&6 29851else 29852 ac_check_lib_save_LIBS=$LIBS 29853LIBS="-lbsd $LIBS" 29854cat >conftest.$ac_ext <<_ACEOF 29855#line $LINENO "configure" 29856#include "confdefs.h" 29857 29858/* Override any gcc2 internal prototype to avoid an error. */ 29859#ifdef __cplusplus 29860extern "C" 29861#endif 29862/* We use char because int might match the return type of a gcc2 29863 builtin and then its argument prototype would still apply. */ 29864char gethostbyname (); 29865#ifdef F77_DUMMY_MAIN 29866# ifdef __cplusplus 29867 extern "C" 29868# endif 29869 int F77_DUMMY_MAIN() { return 1; } 29870#endif 29871int 29872main () 29873{ 29874gethostbyname (); 29875 ; 29876 return 0; 29877} 29878_ACEOF 29879rm -f conftest.$ac_objext conftest$ac_exeext 29880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29881 (eval $ac_link) 2>&5 29882 ac_status=$? 29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29884 (exit $ac_status); } && 29885 { ac_try='test -s conftest$ac_exeext' 29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29887 (eval $ac_try) 2>&5 29888 ac_status=$? 29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29890 (exit $ac_status); }; }; then 29891 ac_cv_lib_bsd_gethostbyname=yes 29892else 29893 echo "$as_me: failed program was:" >&5 29894cat conftest.$ac_ext >&5 29895ac_cv_lib_bsd_gethostbyname=no 29896fi 29897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29898LIBS=$ac_check_lib_save_LIBS 29899fi 29900echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 29901echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 29902if test $ac_cv_lib_bsd_gethostbyname = yes; then 29903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 29904fi 29905 29906 fi 29907 fi 29908 29909 # lieder@skyler.mavd.honeywell.com says without -lsocket, 29910 # socket/setsockopt and other routines are undefined under SCO ODT 29911 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 29912 # on later versions), says Simon Leinen: it contains gethostby* 29913 # variants that don't use the nameserver (or something). -lsocket 29914 # must be given before -lnsl if both are needed. We assume that 29915 # if connect needs -lnsl, so does gethostbyname. 29916 echo "$as_me:$LINENO: checking for connect" >&5 29917echo $ECHO_N "checking for connect... $ECHO_C" >&6 29918if test "${ac_cv_func_connect+set}" = set; then 29919 echo $ECHO_N "(cached) $ECHO_C" >&6 29920else 29921 cat >conftest.$ac_ext <<_ACEOF 29922#line $LINENO "configure" 29923#include "confdefs.h" 29924/* System header to define __stub macros and hopefully few prototypes, 29925 which can conflict with char connect (); below. */ 29926#include <assert.h> 29927/* Override any gcc2 internal prototype to avoid an error. */ 29928#ifdef __cplusplus 29929extern "C" 29930#endif 29931/* We use char because int might match the return type of a gcc2 29932 builtin and then its argument prototype would still apply. */ 29933char connect (); 29934char (*f) (); 29935 29936#ifdef F77_DUMMY_MAIN 29937# ifdef __cplusplus 29938 extern "C" 29939# endif 29940 int F77_DUMMY_MAIN() { return 1; } 29941#endif 29942int 29943main () 29944{ 29945/* The GNU C library defines this for functions which it implements 29946 to always fail with ENOSYS. Some functions are actually named 29947 something starting with __ and the normal name is an alias. */ 29948#if defined (__stub_connect) || defined (__stub___connect) 29949choke me 29950#else 29951f = connect; 29952#endif 29953 29954 ; 29955 return 0; 29956} 29957_ACEOF 29958rm -f conftest.$ac_objext conftest$ac_exeext 29959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29960 (eval $ac_link) 2>&5 29961 ac_status=$? 29962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29963 (exit $ac_status); } && 29964 { ac_try='test -s conftest$ac_exeext' 29965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29966 (eval $ac_try) 2>&5 29967 ac_status=$? 29968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29969 (exit $ac_status); }; }; then 29970 ac_cv_func_connect=yes 29971else 29972 echo "$as_me: failed program was:" >&5 29973cat conftest.$ac_ext >&5 29974ac_cv_func_connect=no 29975fi 29976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29977fi 29978echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 29979echo "${ECHO_T}$ac_cv_func_connect" >&6 29980 29981 if test $ac_cv_func_connect = no; then 29982 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 29983echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 29984if test "${ac_cv_lib_socket_connect+set}" = set; then 29985 echo $ECHO_N "(cached) $ECHO_C" >&6 29986else 29987 ac_check_lib_save_LIBS=$LIBS 29988LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 29989cat >conftest.$ac_ext <<_ACEOF 29990#line $LINENO "configure" 29991#include "confdefs.h" 29992 29993/* Override any gcc2 internal prototype to avoid an error. */ 29994#ifdef __cplusplus 29995extern "C" 29996#endif 29997/* We use char because int might match the return type of a gcc2 29998 builtin and then its argument prototype would still apply. */ 29999char connect (); 30000#ifdef F77_DUMMY_MAIN 30001# ifdef __cplusplus 30002 extern "C" 30003# endif 30004 int F77_DUMMY_MAIN() { return 1; } 30005#endif 30006int 30007main () 30008{ 30009connect (); 30010 ; 30011 return 0; 30012} 30013_ACEOF 30014rm -f conftest.$ac_objext conftest$ac_exeext 30015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30016 (eval $ac_link) 2>&5 30017 ac_status=$? 30018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30019 (exit $ac_status); } && 30020 { ac_try='test -s conftest$ac_exeext' 30021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30022 (eval $ac_try) 2>&5 30023 ac_status=$? 30024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30025 (exit $ac_status); }; }; then 30026 ac_cv_lib_socket_connect=yes 30027else 30028 echo "$as_me: failed program was:" >&5 30029cat conftest.$ac_ext >&5 30030ac_cv_lib_socket_connect=no 30031fi 30032rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30033LIBS=$ac_check_lib_save_LIBS 30034fi 30035echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 30036echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 30037if test $ac_cv_lib_socket_connect = yes; then 30038 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 30039fi 30040 30041 fi 30042 30043 # Guillermo Gomez says -lposix is necessary on A/UX. 30044 echo "$as_me:$LINENO: checking for remove" >&5 30045echo $ECHO_N "checking for remove... $ECHO_C" >&6 30046if test "${ac_cv_func_remove+set}" = set; then 30047 echo $ECHO_N "(cached) $ECHO_C" >&6 30048else 30049 cat >conftest.$ac_ext <<_ACEOF 30050#line $LINENO "configure" 30051#include "confdefs.h" 30052/* System header to define __stub macros and hopefully few prototypes, 30053 which can conflict with char remove (); below. */ 30054#include <assert.h> 30055/* Override any gcc2 internal prototype to avoid an error. */ 30056#ifdef __cplusplus 30057extern "C" 30058#endif 30059/* We use char because int might match the return type of a gcc2 30060 builtin and then its argument prototype would still apply. */ 30061char remove (); 30062char (*f) (); 30063 30064#ifdef F77_DUMMY_MAIN 30065# ifdef __cplusplus 30066 extern "C" 30067# endif 30068 int F77_DUMMY_MAIN() { return 1; } 30069#endif 30070int 30071main () 30072{ 30073/* The GNU C library defines this for functions which it implements 30074 to always fail with ENOSYS. Some functions are actually named 30075 something starting with __ and the normal name is an alias. */ 30076#if defined (__stub_remove) || defined (__stub___remove) 30077choke me 30078#else 30079f = remove; 30080#endif 30081 30082 ; 30083 return 0; 30084} 30085_ACEOF 30086rm -f conftest.$ac_objext conftest$ac_exeext 30087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30088 (eval $ac_link) 2>&5 30089 ac_status=$? 30090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30091 (exit $ac_status); } && 30092 { ac_try='test -s conftest$ac_exeext' 30093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30094 (eval $ac_try) 2>&5 30095 ac_status=$? 30096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30097 (exit $ac_status); }; }; then 30098 ac_cv_func_remove=yes 30099else 30100 echo "$as_me: failed program was:" >&5 30101cat conftest.$ac_ext >&5 30102ac_cv_func_remove=no 30103fi 30104rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30105fi 30106echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 30107echo "${ECHO_T}$ac_cv_func_remove" >&6 30108 30109 if test $ac_cv_func_remove = no; then 30110 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 30111echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 30112if test "${ac_cv_lib_posix_remove+set}" = set; then 30113 echo $ECHO_N "(cached) $ECHO_C" >&6 30114else 30115 ac_check_lib_save_LIBS=$LIBS 30116LIBS="-lposix $LIBS" 30117cat >conftest.$ac_ext <<_ACEOF 30118#line $LINENO "configure" 30119#include "confdefs.h" 30120 30121/* Override any gcc2 internal prototype to avoid an error. */ 30122#ifdef __cplusplus 30123extern "C" 30124#endif 30125/* We use char because int might match the return type of a gcc2 30126 builtin and then its argument prototype would still apply. */ 30127char remove (); 30128#ifdef F77_DUMMY_MAIN 30129# ifdef __cplusplus 30130 extern "C" 30131# endif 30132 int F77_DUMMY_MAIN() { return 1; } 30133#endif 30134int 30135main () 30136{ 30137remove (); 30138 ; 30139 return 0; 30140} 30141_ACEOF 30142rm -f conftest.$ac_objext conftest$ac_exeext 30143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30144 (eval $ac_link) 2>&5 30145 ac_status=$? 30146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30147 (exit $ac_status); } && 30148 { ac_try='test -s conftest$ac_exeext' 30149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30150 (eval $ac_try) 2>&5 30151 ac_status=$? 30152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30153 (exit $ac_status); }; }; then 30154 ac_cv_lib_posix_remove=yes 30155else 30156 echo "$as_me: failed program was:" >&5 30157cat conftest.$ac_ext >&5 30158ac_cv_lib_posix_remove=no 30159fi 30160rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30161LIBS=$ac_check_lib_save_LIBS 30162fi 30163echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 30164echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 30165if test $ac_cv_lib_posix_remove = yes; then 30166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 30167fi 30168 30169 fi 30170 30171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 30172 echo "$as_me:$LINENO: checking for shmat" >&5 30173echo $ECHO_N "checking for shmat... $ECHO_C" >&6 30174if test "${ac_cv_func_shmat+set}" = set; then 30175 echo $ECHO_N "(cached) $ECHO_C" >&6 30176else 30177 cat >conftest.$ac_ext <<_ACEOF 30178#line $LINENO "configure" 30179#include "confdefs.h" 30180/* System header to define __stub macros and hopefully few prototypes, 30181 which can conflict with char shmat (); below. */ 30182#include <assert.h> 30183/* Override any gcc2 internal prototype to avoid an error. */ 30184#ifdef __cplusplus 30185extern "C" 30186#endif 30187/* We use char because int might match the return type of a gcc2 30188 builtin and then its argument prototype would still apply. */ 30189char shmat (); 30190char (*f) (); 30191 30192#ifdef F77_DUMMY_MAIN 30193# ifdef __cplusplus 30194 extern "C" 30195# endif 30196 int F77_DUMMY_MAIN() { return 1; } 30197#endif 30198int 30199main () 30200{ 30201/* The GNU C library defines this for functions which it implements 30202 to always fail with ENOSYS. Some functions are actually named 30203 something starting with __ and the normal name is an alias. */ 30204#if defined (__stub_shmat) || defined (__stub___shmat) 30205choke me 30206#else 30207f = shmat; 30208#endif 30209 30210 ; 30211 return 0; 30212} 30213_ACEOF 30214rm -f conftest.$ac_objext conftest$ac_exeext 30215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30216 (eval $ac_link) 2>&5 30217 ac_status=$? 30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30219 (exit $ac_status); } && 30220 { ac_try='test -s conftest$ac_exeext' 30221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30222 (eval $ac_try) 2>&5 30223 ac_status=$? 30224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30225 (exit $ac_status); }; }; then 30226 ac_cv_func_shmat=yes 30227else 30228 echo "$as_me: failed program was:" >&5 30229cat conftest.$ac_ext >&5 30230ac_cv_func_shmat=no 30231fi 30232rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30233fi 30234echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 30235echo "${ECHO_T}$ac_cv_func_shmat" >&6 30236 30237 if test $ac_cv_func_shmat = no; then 30238 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 30239echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 30240if test "${ac_cv_lib_ipc_shmat+set}" = set; then 30241 echo $ECHO_N "(cached) $ECHO_C" >&6 30242else 30243 ac_check_lib_save_LIBS=$LIBS 30244LIBS="-lipc $LIBS" 30245cat >conftest.$ac_ext <<_ACEOF 30246#line $LINENO "configure" 30247#include "confdefs.h" 30248 30249/* Override any gcc2 internal prototype to avoid an error. */ 30250#ifdef __cplusplus 30251extern "C" 30252#endif 30253/* We use char because int might match the return type of a gcc2 30254 builtin and then its argument prototype would still apply. */ 30255char shmat (); 30256#ifdef F77_DUMMY_MAIN 30257# ifdef __cplusplus 30258 extern "C" 30259# endif 30260 int F77_DUMMY_MAIN() { return 1; } 30261#endif 30262int 30263main () 30264{ 30265shmat (); 30266 ; 30267 return 0; 30268} 30269_ACEOF 30270rm -f conftest.$ac_objext conftest$ac_exeext 30271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30272 (eval $ac_link) 2>&5 30273 ac_status=$? 30274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30275 (exit $ac_status); } && 30276 { ac_try='test -s conftest$ac_exeext' 30277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30278 (eval $ac_try) 2>&5 30279 ac_status=$? 30280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30281 (exit $ac_status); }; }; then 30282 ac_cv_lib_ipc_shmat=yes 30283else 30284 echo "$as_me: failed program was:" >&5 30285cat conftest.$ac_ext >&5 30286ac_cv_lib_ipc_shmat=no 30287fi 30288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30289LIBS=$ac_check_lib_save_LIBS 30290fi 30291echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 30292echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 30293if test $ac_cv_lib_ipc_shmat = yes; then 30294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 30295fi 30296 30297 fi 30298 fi 30299 30300 # Check for libraries that X11R6 Xt/Xaw programs need. 30301 ac_save_LDFLAGS=$LDFLAGS 30302 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 30303 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 30304 # check for ICE first), but we must link in the order -lSM -lICE or 30305 # we get undefined symbols. So assume we have SM if we have ICE. 30306 # These have to be linked with before -lX11, unlike the other 30307 # libraries we check for below, so use a different variable. 30308 # John Interrante, Karl Berry 30309 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 30310echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 30311if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 30312 echo $ECHO_N "(cached) $ECHO_C" >&6 30313else 30314 ac_check_lib_save_LIBS=$LIBS 30315LIBS="-lICE $X_EXTRA_LIBS $LIBS" 30316cat >conftest.$ac_ext <<_ACEOF 30317#line $LINENO "configure" 30318#include "confdefs.h" 30319 30320/* Override any gcc2 internal prototype to avoid an error. */ 30321#ifdef __cplusplus 30322extern "C" 30323#endif 30324/* We use char because int might match the return type of a gcc2 30325 builtin and then its argument prototype would still apply. */ 30326char IceConnectionNumber (); 30327#ifdef F77_DUMMY_MAIN 30328# ifdef __cplusplus 30329 extern "C" 30330# endif 30331 int F77_DUMMY_MAIN() { return 1; } 30332#endif 30333int 30334main () 30335{ 30336IceConnectionNumber (); 30337 ; 30338 return 0; 30339} 30340_ACEOF 30341rm -f conftest.$ac_objext conftest$ac_exeext 30342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30343 (eval $ac_link) 2>&5 30344 ac_status=$? 30345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30346 (exit $ac_status); } && 30347 { ac_try='test -s conftest$ac_exeext' 30348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30349 (eval $ac_try) 2>&5 30350 ac_status=$? 30351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30352 (exit $ac_status); }; }; then 30353 ac_cv_lib_ICE_IceConnectionNumber=yes 30354else 30355 echo "$as_me: failed program was:" >&5 30356cat conftest.$ac_ext >&5 30357ac_cv_lib_ICE_IceConnectionNumber=no 30358fi 30359rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30360LIBS=$ac_check_lib_save_LIBS 30361fi 30362echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 30363echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 30364if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 30365 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 30366fi 30367 30368 LDFLAGS=$ac_save_LDFLAGS 30369 30370fi 30371 30372 30373# try to figure out if we need any additional ld flags, like -R 30374# and yes, the autoconf X test is utterly broken 30375if test "$no_x" != yes; then 30376 echo "$as_me:$LINENO: checking for special X linker flags" >&5 30377echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6 30378if test "${krb_cv_sys_x_libs_rpath+set}" = set; then 30379 echo $ECHO_N "(cached) $ECHO_C" >&6 30380else 30381 30382 ac_save_libs="$LIBS" 30383 ac_save_cflags="$CFLAGS" 30384 CFLAGS="$CFLAGS $X_CFLAGS" 30385 krb_cv_sys_x_libs_rpath="" 30386 krb_cv_sys_x_libs="" 30387 for rflag in "" "-R" "-R " "-rpath "; do 30388 if test "$rflag" = ""; then 30389 foo="$X_LIBS" 30390 else 30391 foo="" 30392 for flag in $X_LIBS; do 30393 case $flag in 30394 -L*) 30395 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 30396 ;; 30397 *) 30398 foo="$foo $flag" 30399 ;; 30400 esac 30401 done 30402 fi 30403 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 30404 if test "$cross_compiling" = yes; then 30405 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 30406echo "$as_me: error: cannot run test program while cross compiling" >&2;} 30407 { (exit 1); exit 1; }; } 30408else 30409 cat >conftest.$ac_ext <<_ACEOF 30410#line $LINENO "configure" 30411#include "confdefs.h" 30412 30413 #include <X11/Xlib.h> 30414 foo() 30415 { 30416 XOpenDisplay(NULL); 30417 } 30418 main() 30419 { 30420 return 0; 30421 } 30422 30423_ACEOF 30424rm -f conftest$ac_exeext 30425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30426 (eval $ac_link) 2>&5 30427 ac_status=$? 30428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30431 (eval $ac_try) 2>&5 30432 ac_status=$? 30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30434 (exit $ac_status); }; }; then 30435 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 30436else 30437 echo "$as_me: program exited with status $ac_status" >&5 30438echo "$as_me: failed program was:" >&5 30439cat conftest.$ac_ext >&5 30440( exit $ac_status ) 30441: 30442fi 30443rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 30444fi 30445 done 30446 LIBS="$ac_save_libs" 30447 CFLAGS="$ac_save_cflags" 30448 30449fi 30450echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5 30451echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6 30452 X_LIBS="$krb_cv_sys_x_libs" 30453fi 30454 30455 30456 30457 30458if test "$no_x" != yes; then 30459 HAVE_X_TRUE= 30460 HAVE_X_FALSE='#' 30461else 30462 HAVE_X_TRUE='#' 30463 HAVE_X_FALSE= 30464fi 30465 30466 30467 30468save_CFLAGS="$CFLAGS" 30469CFLAGS="$X_CFLAGS $CFLAGS" 30470save_LIBS="$LIBS" 30471LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 30472save_LDFLAGS="$LDFLAGS" 30473LDFLAGS="$LDFLAGS $X_LIBS" 30474 30475 30476 30477 30478 30479echo "$as_me:$LINENO: checking for XauWriteAuth" >&5 30480echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6 30481if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then 30482 echo $ECHO_N "(cached) $ECHO_C" >&6 30483else 30484 30485if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 30486 ac_save_LIBS="$LIBS" 30487 for ac_lib in "" X11 Xau; do 30488 case "$ac_lib" in 30489 "") ;; 30490 yes) ac_lib="" ;; 30491 no) continue ;; 30492 -l*) ;; 30493 *) ac_lib="-l$ac_lib" ;; 30494 esac 30495 LIBS=" $ac_lib $ac_save_LIBS" 30496 cat >conftest.$ac_ext <<_ACEOF 30497#line $LINENO "configure" 30498#include "confdefs.h" 30499 30500#ifdef F77_DUMMY_MAIN 30501# ifdef __cplusplus 30502 extern "C" 30503# endif 30504 int F77_DUMMY_MAIN() { return 1; } 30505#endif 30506int 30507main () 30508{ 30509XauWriteAuth() 30510 ; 30511 return 0; 30512} 30513_ACEOF 30514rm -f conftest.$ac_objext conftest$ac_exeext 30515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30516 (eval $ac_link) 2>&5 30517 ac_status=$? 30518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30519 (exit $ac_status); } && 30520 { ac_try='test -s conftest$ac_exeext' 30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30522 (eval $ac_try) 2>&5 30523 ac_status=$? 30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30525 (exit $ac_status); }; }; then 30526 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 30527else 30528 echo "$as_me: failed program was:" >&5 30529cat conftest.$ac_ext >&5 30530fi 30531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30532 done 30533 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 30534 LIBS="$ac_save_LIBS" 30535fi 30536 30537fi 30538 30539 30540eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 30541 30542if false; then 30543 30544for ac_func in XauWriteAuth 30545do 30546as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30547echo "$as_me:$LINENO: checking for $ac_func" >&5 30548echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 30549if eval "test \"\${$as_ac_var+set}\" = set"; then 30550 echo $ECHO_N "(cached) $ECHO_C" >&6 30551else 30552 cat >conftest.$ac_ext <<_ACEOF 30553#line $LINENO "configure" 30554#include "confdefs.h" 30555/* System header to define __stub macros and hopefully few prototypes, 30556 which can conflict with char $ac_func (); below. */ 30557#include <assert.h> 30558/* Override any gcc2 internal prototype to avoid an error. */ 30559#ifdef __cplusplus 30560extern "C" 30561#endif 30562/* We use char because int might match the return type of a gcc2 30563 builtin and then its argument prototype would still apply. */ 30564char $ac_func (); 30565char (*f) (); 30566 30567#ifdef F77_DUMMY_MAIN 30568# ifdef __cplusplus 30569 extern "C" 30570# endif 30571 int F77_DUMMY_MAIN() { return 1; } 30572#endif 30573int 30574main () 30575{ 30576/* The GNU C library defines this for functions which it implements 30577 to always fail with ENOSYS. Some functions are actually named 30578 something starting with __ and the normal name is an alias. */ 30579#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 30580choke me 30581#else 30582f = $ac_func; 30583#endif 30584 30585 ; 30586 return 0; 30587} 30588_ACEOF 30589rm -f conftest.$ac_objext conftest$ac_exeext 30590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30591 (eval $ac_link) 2>&5 30592 ac_status=$? 30593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30594 (exit $ac_status); } && 30595 { ac_try='test -s conftest$ac_exeext' 30596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30597 (eval $ac_try) 2>&5 30598 ac_status=$? 30599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30600 (exit $ac_status); }; }; then 30601 eval "$as_ac_var=yes" 30602else 30603 echo "$as_me: failed program was:" >&5 30604cat conftest.$ac_ext >&5 30605eval "$as_ac_var=no" 30606fi 30607rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30608fi 30609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 30610echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 30611if test `eval echo '${'$as_ac_var'}'` = yes; then 30612 cat >>confdefs.h <<_ACEOF 30613#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30614_ACEOF 30615 30616fi 30617done 30618 30619fi 30620# XauWriteAuth 30621eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30622eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30623eval "LIB_XauWriteAuth=$ac_res" 30624 30625case "$ac_res" in 30626 yes) 30627 eval "ac_cv_func_XauWriteAuth=yes" 30628 eval "LIB_XauWriteAuth=" 30629 cat >>confdefs.h <<_ACEOF 30630#define $ac_tr_func 1 30631_ACEOF 30632 30633 echo "$as_me:$LINENO: result: yes" >&5 30634echo "${ECHO_T}yes" >&6 30635 ;; 30636 no) 30637 eval "ac_cv_func_XauWriteAuth=no" 30638 eval "LIB_XauWriteAuth=" 30639 echo "$as_me:$LINENO: result: no" >&5 30640echo "${ECHO_T}no" >&6 30641 ;; 30642 *) 30643 eval "ac_cv_func_XauWriteAuth=yes" 30644 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30645 cat >>confdefs.h <<_ACEOF 30646#define $ac_tr_func 1 30647_ACEOF 30648 30649 cat >>confdefs.h <<_ACEOF 30650#define $ac_tr_lib 1 30651_ACEOF 30652 30653 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30654echo "${ECHO_T}yes, in $ac_res" >&6 30655 ;; 30656esac 30657 30658 30659ac_xxx="$LIBS" 30660LIBS="$LIB_XauWriteAuth $LIBS" 30661 30662 30663 30664echo "$as_me:$LINENO: checking for XauReadAuth" >&5 30665echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6 30666if test "${ac_cv_funclib_XauReadAuth+set}" = set; then 30667 echo $ECHO_N "(cached) $ECHO_C" >&6 30668else 30669 30670if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 30671 ac_save_LIBS="$LIBS" 30672 for ac_lib in "" X11 Xau; do 30673 case "$ac_lib" in 30674 "") ;; 30675 yes) ac_lib="" ;; 30676 no) continue ;; 30677 -l*) ;; 30678 *) ac_lib="-l$ac_lib" ;; 30679 esac 30680 LIBS=" $ac_lib $ac_save_LIBS" 30681 cat >conftest.$ac_ext <<_ACEOF 30682#line $LINENO "configure" 30683#include "confdefs.h" 30684 30685#ifdef F77_DUMMY_MAIN 30686# ifdef __cplusplus 30687 extern "C" 30688# endif 30689 int F77_DUMMY_MAIN() { return 1; } 30690#endif 30691int 30692main () 30693{ 30694XauReadAuth() 30695 ; 30696 return 0; 30697} 30698_ACEOF 30699rm -f conftest.$ac_objext conftest$ac_exeext 30700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30701 (eval $ac_link) 2>&5 30702 ac_status=$? 30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30704 (exit $ac_status); } && 30705 { ac_try='test -s conftest$ac_exeext' 30706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30707 (eval $ac_try) 2>&5 30708 ac_status=$? 30709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30710 (exit $ac_status); }; }; then 30711 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 30712else 30713 echo "$as_me: failed program was:" >&5 30714cat conftest.$ac_ext >&5 30715fi 30716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30717 done 30718 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 30719 LIBS="$ac_save_LIBS" 30720fi 30721 30722fi 30723 30724 30725eval "ac_res=\$ac_cv_funclib_XauReadAuth" 30726 30727if false; then 30728 30729for ac_func in XauReadAuth 30730do 30731as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30732echo "$as_me:$LINENO: checking for $ac_func" >&5 30733echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 30734if eval "test \"\${$as_ac_var+set}\" = set"; then 30735 echo $ECHO_N "(cached) $ECHO_C" >&6 30736else 30737 cat >conftest.$ac_ext <<_ACEOF 30738#line $LINENO "configure" 30739#include "confdefs.h" 30740/* System header to define __stub macros and hopefully few prototypes, 30741 which can conflict with char $ac_func (); below. */ 30742#include <assert.h> 30743/* Override any gcc2 internal prototype to avoid an error. */ 30744#ifdef __cplusplus 30745extern "C" 30746#endif 30747/* We use char because int might match the return type of a gcc2 30748 builtin and then its argument prototype would still apply. */ 30749char $ac_func (); 30750char (*f) (); 30751 30752#ifdef F77_DUMMY_MAIN 30753# ifdef __cplusplus 30754 extern "C" 30755# endif 30756 int F77_DUMMY_MAIN() { return 1; } 30757#endif 30758int 30759main () 30760{ 30761/* The GNU C library defines this for functions which it implements 30762 to always fail with ENOSYS. Some functions are actually named 30763 something starting with __ and the normal name is an alias. */ 30764#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 30765choke me 30766#else 30767f = $ac_func; 30768#endif 30769 30770 ; 30771 return 0; 30772} 30773_ACEOF 30774rm -f conftest.$ac_objext conftest$ac_exeext 30775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30776 (eval $ac_link) 2>&5 30777 ac_status=$? 30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30779 (exit $ac_status); } && 30780 { ac_try='test -s conftest$ac_exeext' 30781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30782 (eval $ac_try) 2>&5 30783 ac_status=$? 30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30785 (exit $ac_status); }; }; then 30786 eval "$as_ac_var=yes" 30787else 30788 echo "$as_me: failed program was:" >&5 30789cat conftest.$ac_ext >&5 30790eval "$as_ac_var=no" 30791fi 30792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30793fi 30794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 30795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 30796if test `eval echo '${'$as_ac_var'}'` = yes; then 30797 cat >>confdefs.h <<_ACEOF 30798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30799_ACEOF 30800 30801fi 30802done 30803 30804fi 30805# XauReadAuth 30806eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30807eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30808eval "LIB_XauReadAuth=$ac_res" 30809 30810case "$ac_res" in 30811 yes) 30812 eval "ac_cv_func_XauReadAuth=yes" 30813 eval "LIB_XauReadAuth=" 30814 cat >>confdefs.h <<_ACEOF 30815#define $ac_tr_func 1 30816_ACEOF 30817 30818 echo "$as_me:$LINENO: result: yes" >&5 30819echo "${ECHO_T}yes" >&6 30820 ;; 30821 no) 30822 eval "ac_cv_func_XauReadAuth=no" 30823 eval "LIB_XauReadAuth=" 30824 echo "$as_me:$LINENO: result: no" >&5 30825echo "${ECHO_T}no" >&6 30826 ;; 30827 *) 30828 eval "ac_cv_func_XauReadAuth=yes" 30829 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30830 cat >>confdefs.h <<_ACEOF 30831#define $ac_tr_func 1 30832_ACEOF 30833 30834 cat >>confdefs.h <<_ACEOF 30835#define $ac_tr_lib 1 30836_ACEOF 30837 30838 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30839echo "${ECHO_T}yes, in $ac_res" >&6 30840 ;; 30841esac 30842 30843 30844LIBS="$LIB_XauReadAauth $LIBS" 30845 30846 30847 30848echo "$as_me:$LINENO: checking for XauFileName" >&5 30849echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6 30850if test "${ac_cv_funclib_XauFileName+set}" = set; then 30851 echo $ECHO_N "(cached) $ECHO_C" >&6 30852else 30853 30854if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 30855 ac_save_LIBS="$LIBS" 30856 for ac_lib in "" X11 Xau; do 30857 case "$ac_lib" in 30858 "") ;; 30859 yes) ac_lib="" ;; 30860 no) continue ;; 30861 -l*) ;; 30862 *) ac_lib="-l$ac_lib" ;; 30863 esac 30864 LIBS=" $ac_lib $ac_save_LIBS" 30865 cat >conftest.$ac_ext <<_ACEOF 30866#line $LINENO "configure" 30867#include "confdefs.h" 30868 30869#ifdef F77_DUMMY_MAIN 30870# ifdef __cplusplus 30871 extern "C" 30872# endif 30873 int F77_DUMMY_MAIN() { return 1; } 30874#endif 30875int 30876main () 30877{ 30878XauFileName() 30879 ; 30880 return 0; 30881} 30882_ACEOF 30883rm -f conftest.$ac_objext conftest$ac_exeext 30884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30885 (eval $ac_link) 2>&5 30886 ac_status=$? 30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30888 (exit $ac_status); } && 30889 { ac_try='test -s conftest$ac_exeext' 30890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30891 (eval $ac_try) 2>&5 30892 ac_status=$? 30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30894 (exit $ac_status); }; }; then 30895 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 30896else 30897 echo "$as_me: failed program was:" >&5 30898cat conftest.$ac_ext >&5 30899fi 30900rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30901 done 30902 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 30903 LIBS="$ac_save_LIBS" 30904fi 30905 30906fi 30907 30908 30909eval "ac_res=\$ac_cv_funclib_XauFileName" 30910 30911if false; then 30912 30913for ac_func in XauFileName 30914do 30915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30916echo "$as_me:$LINENO: checking for $ac_func" >&5 30917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 30918if eval "test \"\${$as_ac_var+set}\" = set"; then 30919 echo $ECHO_N "(cached) $ECHO_C" >&6 30920else 30921 cat >conftest.$ac_ext <<_ACEOF 30922#line $LINENO "configure" 30923#include "confdefs.h" 30924/* System header to define __stub macros and hopefully few prototypes, 30925 which can conflict with char $ac_func (); below. */ 30926#include <assert.h> 30927/* Override any gcc2 internal prototype to avoid an error. */ 30928#ifdef __cplusplus 30929extern "C" 30930#endif 30931/* We use char because int might match the return type of a gcc2 30932 builtin and then its argument prototype would still apply. */ 30933char $ac_func (); 30934char (*f) (); 30935 30936#ifdef F77_DUMMY_MAIN 30937# ifdef __cplusplus 30938 extern "C" 30939# endif 30940 int F77_DUMMY_MAIN() { return 1; } 30941#endif 30942int 30943main () 30944{ 30945/* The GNU C library defines this for functions which it implements 30946 to always fail with ENOSYS. Some functions are actually named 30947 something starting with __ and the normal name is an alias. */ 30948#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 30949choke me 30950#else 30951f = $ac_func; 30952#endif 30953 30954 ; 30955 return 0; 30956} 30957_ACEOF 30958rm -f conftest.$ac_objext conftest$ac_exeext 30959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30960 (eval $ac_link) 2>&5 30961 ac_status=$? 30962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30963 (exit $ac_status); } && 30964 { ac_try='test -s conftest$ac_exeext' 30965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30966 (eval $ac_try) 2>&5 30967 ac_status=$? 30968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30969 (exit $ac_status); }; }; then 30970 eval "$as_ac_var=yes" 30971else 30972 echo "$as_me: failed program was:" >&5 30973cat conftest.$ac_ext >&5 30974eval "$as_ac_var=no" 30975fi 30976rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30977fi 30978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 30979echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 30980if test `eval echo '${'$as_ac_var'}'` = yes; then 30981 cat >>confdefs.h <<_ACEOF 30982#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30983_ACEOF 30984 30985fi 30986done 30987 30988fi 30989# XauFileName 30990eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30991eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30992eval "LIB_XauFileName=$ac_res" 30993 30994case "$ac_res" in 30995 yes) 30996 eval "ac_cv_func_XauFileName=yes" 30997 eval "LIB_XauFileName=" 30998 cat >>confdefs.h <<_ACEOF 30999#define $ac_tr_func 1 31000_ACEOF 31001 31002 echo "$as_me:$LINENO: result: yes" >&5 31003echo "${ECHO_T}yes" >&6 31004 ;; 31005 no) 31006 eval "ac_cv_func_XauFileName=no" 31007 eval "LIB_XauFileName=" 31008 echo "$as_me:$LINENO: result: no" >&5 31009echo "${ECHO_T}no" >&6 31010 ;; 31011 *) 31012 eval "ac_cv_func_XauFileName=yes" 31013 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 31014 cat >>confdefs.h <<_ACEOF 31015#define $ac_tr_func 1 31016_ACEOF 31017 31018 cat >>confdefs.h <<_ACEOF 31019#define $ac_tr_lib 1 31020_ACEOF 31021 31022 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 31023echo "${ECHO_T}yes, in $ac_res" >&6 31024 ;; 31025esac 31026 31027 31028LIBS="$ac_xxx" 31029 31030case "$ac_cv_funclib_XauWriteAuth" in 31031yes) ;; 31032no) ;; 31033*) if test "$ac_cv_funclib_XauReadAuth" = yes; then 31034 if test "$ac_cv_funclib_XauFileName" = yes; then 31035 LIB_XauReadAuth="$LIB_XauWriteAuth" 31036 else 31037 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 31038 fi 31039 else 31040 if test "$ac_cv_funclib_XauFileName" = yes; then 31041 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 31042 else 31043 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 31044 fi 31045 fi 31046 ;; 31047esac 31048 31049if test "$AUTOMAKE" != ""; then 31050 31051 31052if test "$ac_cv_func_XauWriteAuth" != "yes"; then 31053 NEED_WRITEAUTH_TRUE= 31054 NEED_WRITEAUTH_FALSE='#' 31055else 31056 NEED_WRITEAUTH_TRUE='#' 31057 NEED_WRITEAUTH_FALSE= 31058fi 31059 31060else 31061 31062 31063 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 31064 NEED_WRITEAUTH_TRUE= 31065 NEED_WRITEAUTH_FALSE='#' 31066 else 31067 NEED_WRITEAUTH_TRUE='#' 31068 NEED_WRITEAUTH_FALSE= 31069 fi 31070fi 31071CFLAGS=$save_CFLAGS 31072LIBS=$save_LIBS 31073LDFLAGS=$save_LDFLAGS 31074 31075 31076 31077echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 31078echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 31079if test "${ac_cv_c_const+set}" = set; then 31080 echo $ECHO_N "(cached) $ECHO_C" >&6 31081else 31082 cat >conftest.$ac_ext <<_ACEOF 31083#line $LINENO "configure" 31084#include "confdefs.h" 31085 31086#ifdef F77_DUMMY_MAIN 31087# ifdef __cplusplus 31088 extern "C" 31089# endif 31090 int F77_DUMMY_MAIN() { return 1; } 31091#endif 31092int 31093main () 31094{ 31095/* FIXME: Include the comments suggested by Paul. */ 31096#ifndef __cplusplus 31097 /* Ultrix mips cc rejects this. */ 31098 typedef int charset[2]; 31099 const charset x; 31100 /* SunOS 4.1.1 cc rejects this. */ 31101 char const *const *ccp; 31102 char **p; 31103 /* NEC SVR4.0.2 mips cc rejects this. */ 31104 struct point {int x, y;}; 31105 static struct point const zero = {0,0}; 31106 /* AIX XL C 1.02.0.0 rejects this. 31107 It does not let you subtract one const X* pointer from another in 31108 an arm of an if-expression whose if-part is not a constant 31109 expression */ 31110 const char *g = "string"; 31111 ccp = &g + (g ? g-g : 0); 31112 /* HPUX 7.0 cc rejects these. */ 31113 ++ccp; 31114 p = (char**) ccp; 31115 ccp = (char const *const *) p; 31116 { /* SCO 3.2v4 cc rejects this. */ 31117 char *t; 31118 char const *s = 0 ? (char *) 0 : (char const *) 0; 31119 31120 *t++ = 0; 31121 } 31122 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 31123 int x[] = {25, 17}; 31124 const int *foo = &x[0]; 31125 ++foo; 31126 } 31127 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 31128 typedef const int *iptr; 31129 iptr p = 0; 31130 ++p; 31131 } 31132 { /* AIX XL C 1.02.0.0 rejects this saying 31133 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 31134 struct s { int j; const int *ap[3]; }; 31135 struct s *b; b->j = 5; 31136 } 31137 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 31138 const int foo = 10; 31139 } 31140#endif 31141 31142 ; 31143 return 0; 31144} 31145_ACEOF 31146rm -f conftest.$ac_objext 31147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31148 (eval $ac_compile) 2>&5 31149 ac_status=$? 31150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31151 (exit $ac_status); } && 31152 { ac_try='test -s conftest.$ac_objext' 31153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31154 (eval $ac_try) 2>&5 31155 ac_status=$? 31156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31157 (exit $ac_status); }; }; then 31158 ac_cv_c_const=yes 31159else 31160 echo "$as_me: failed program was:" >&5 31161cat conftest.$ac_ext >&5 31162ac_cv_c_const=no 31163fi 31164rm -f conftest.$ac_objext conftest.$ac_ext 31165fi 31166echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 31167echo "${ECHO_T}$ac_cv_c_const" >&6 31168if test $ac_cv_c_const = no; then 31169 31170cat >>confdefs.h <<\_ACEOF 31171#define const 31172_ACEOF 31173 31174fi 31175 31176echo "$as_me:$LINENO: checking for off_t" >&5 31177echo $ECHO_N "checking for off_t... $ECHO_C" >&6 31178if test "${ac_cv_type_off_t+set}" = set; then 31179 echo $ECHO_N "(cached) $ECHO_C" >&6 31180else 31181 cat >conftest.$ac_ext <<_ACEOF 31182#line $LINENO "configure" 31183#include "confdefs.h" 31184$ac_includes_default 31185#ifdef F77_DUMMY_MAIN 31186# ifdef __cplusplus 31187 extern "C" 31188# endif 31189 int F77_DUMMY_MAIN() { return 1; } 31190#endif 31191int 31192main () 31193{ 31194if ((off_t *) 0) 31195 return 0; 31196if (sizeof (off_t)) 31197 return 0; 31198 ; 31199 return 0; 31200} 31201_ACEOF 31202rm -f conftest.$ac_objext 31203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31204 (eval $ac_compile) 2>&5 31205 ac_status=$? 31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31207 (exit $ac_status); } && 31208 { ac_try='test -s conftest.$ac_objext' 31209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31210 (eval $ac_try) 2>&5 31211 ac_status=$? 31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31213 (exit $ac_status); }; }; then 31214 ac_cv_type_off_t=yes 31215else 31216 echo "$as_me: failed program was:" >&5 31217cat conftest.$ac_ext >&5 31218ac_cv_type_off_t=no 31219fi 31220rm -f conftest.$ac_objext conftest.$ac_ext 31221fi 31222echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 31223echo "${ECHO_T}$ac_cv_type_off_t" >&6 31224if test $ac_cv_type_off_t = yes; then 31225 : 31226else 31227 31228cat >>confdefs.h <<_ACEOF 31229#define off_t long 31230_ACEOF 31231 31232fi 31233 31234echo "$as_me:$LINENO: checking for mode_t" >&5 31235echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 31236if test "${ac_cv_type_mode_t+set}" = set; then 31237 echo $ECHO_N "(cached) $ECHO_C" >&6 31238else 31239 cat >conftest.$ac_ext <<_ACEOF 31240#line $LINENO "configure" 31241#include "confdefs.h" 31242#include <sys/types.h> 31243#if STDC_HEADERS 31244#include <stdlib.h> 31245#include <stddef.h> 31246#endif 31247 31248_ACEOF 31249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31250 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 31251 ac_cv_type_mode_t=yes 31252else 31253 ac_cv_type_mode_t=no 31254fi 31255rm -f conftest* 31256 31257fi 31258echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 31259echo "${ECHO_T}$ac_cv_type_mode_t" >&6 31260if test $ac_cv_type_mode_t = no; then 31261 31262cat >>confdefs.h <<\_ACEOF 31263#define mode_t unsigned short 31264_ACEOF 31265 31266fi 31267 31268echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 31269echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 31270if test "${ac_cv_type_sig_atomic_t+set}" = set; then 31271 echo $ECHO_N "(cached) $ECHO_C" >&6 31272else 31273 cat >conftest.$ac_ext <<_ACEOF 31274#line $LINENO "configure" 31275#include "confdefs.h" 31276#include <sys/types.h> 31277#if STDC_HEADERS 31278#include <stdlib.h> 31279#include <stddef.h> 31280#endif 31281#include <signal.h> 31282_ACEOF 31283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31284 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 31285 ac_cv_type_sig_atomic_t=yes 31286else 31287 ac_cv_type_sig_atomic_t=no 31288fi 31289rm -f conftest* 31290 31291fi 31292echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 31293echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 31294if test $ac_cv_type_sig_atomic_t = no; then 31295 31296cat >>confdefs.h <<\_ACEOF 31297#define sig_atomic_t int 31298_ACEOF 31299 31300fi 31301 31302 31303 31304cv=`echo "long long" | sed 'y%./+- %__p__%'` 31305echo "$as_me:$LINENO: checking for long long" >&5 31306echo $ECHO_N "checking for long long... $ECHO_C" >&6 31307if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 31308 echo $ECHO_N "(cached) $ECHO_C" >&6 31309else 31310 cat >conftest.$ac_ext <<_ACEOF 31311#line $LINENO "configure" 31312#include "confdefs.h" 31313#include <sys/types.h> 31314#if STDC_HEADERS 31315#include <stdlib.h> 31316#include <stddef.h> 31317#endif 31318 31319#ifdef F77_DUMMY_MAIN 31320# ifdef __cplusplus 31321 extern "C" 31322# endif 31323 int F77_DUMMY_MAIN() { return 1; } 31324#endif 31325int 31326main () 31327{ 31328long long foo; 31329 ; 31330 return 0; 31331} 31332_ACEOF 31333rm -f conftest.$ac_objext 31334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31335 (eval $ac_compile) 2>&5 31336 ac_status=$? 31337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31338 (exit $ac_status); } && 31339 { ac_try='test -s conftest.$ac_objext' 31340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31341 (eval $ac_try) 2>&5 31342 ac_status=$? 31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31344 (exit $ac_status); }; }; then 31345 eval "ac_cv_type_$cv=yes" 31346else 31347 echo "$as_me: failed program was:" >&5 31348cat conftest.$ac_ext >&5 31349eval "ac_cv_type_$cv=no" 31350fi 31351rm -f conftest.$ac_objext conftest.$ac_ext 31352fi 31353ac_foo=`eval echo \\$ac_cv_type_$cv` 31354echo "$as_me:$LINENO: result: $ac_foo" >&5 31355echo "${ECHO_T}$ac_foo" >&6 31356if test "$ac_foo" = yes; then 31357 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 31358if false; then 31359 echo "$as_me:$LINENO: checking for long long" >&5 31360echo $ECHO_N "checking for long long... $ECHO_C" >&6 31361if test "${ac_cv_type_long_long+set}" = set; then 31362 echo $ECHO_N "(cached) $ECHO_C" >&6 31363else 31364 cat >conftest.$ac_ext <<_ACEOF 31365#line $LINENO "configure" 31366#include "confdefs.h" 31367$ac_includes_default 31368#ifdef F77_DUMMY_MAIN 31369# ifdef __cplusplus 31370 extern "C" 31371# endif 31372 int F77_DUMMY_MAIN() { return 1; } 31373#endif 31374int 31375main () 31376{ 31377if ((long long *) 0) 31378 return 0; 31379if (sizeof (long long)) 31380 return 0; 31381 ; 31382 return 0; 31383} 31384_ACEOF 31385rm -f conftest.$ac_objext 31386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31387 (eval $ac_compile) 2>&5 31388 ac_status=$? 31389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31390 (exit $ac_status); } && 31391 { ac_try='test -s conftest.$ac_objext' 31392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31393 (eval $ac_try) 2>&5 31394 ac_status=$? 31395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31396 (exit $ac_status); }; }; then 31397 ac_cv_type_long_long=yes 31398else 31399 echo "$as_me: failed program was:" >&5 31400cat conftest.$ac_ext >&5 31401ac_cv_type_long_long=no 31402fi 31403rm -f conftest.$ac_objext conftest.$ac_ext 31404fi 31405echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 31406echo "${ECHO_T}$ac_cv_type_long_long" >&6 31407if test $ac_cv_type_long_long = yes; then 31408 31409cat >>confdefs.h <<_ACEOF 31410#define HAVE_LONG_LONG 1 31411_ACEOF 31412 31413 31414fi 31415 31416fi 31417 31418cat >>confdefs.h <<_ACEOF 31419#define $ac_tr_hdr 1 31420_ACEOF 31421 31422fi 31423 31424echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 31425echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 31426if test "${ac_cv_header_time+set}" = set; then 31427 echo $ECHO_N "(cached) $ECHO_C" >&6 31428else 31429 cat >conftest.$ac_ext <<_ACEOF 31430#line $LINENO "configure" 31431#include "confdefs.h" 31432#include <sys/types.h> 31433#include <sys/time.h> 31434#include <time.h> 31435 31436#ifdef F77_DUMMY_MAIN 31437# ifdef __cplusplus 31438 extern "C" 31439# endif 31440 int F77_DUMMY_MAIN() { return 1; } 31441#endif 31442int 31443main () 31444{ 31445if ((struct tm *) 0) 31446return 0; 31447 ; 31448 return 0; 31449} 31450_ACEOF 31451rm -f conftest.$ac_objext 31452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31453 (eval $ac_compile) 2>&5 31454 ac_status=$? 31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31456 (exit $ac_status); } && 31457 { ac_try='test -s conftest.$ac_objext' 31458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31459 (eval $ac_try) 2>&5 31460 ac_status=$? 31461 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31462 (exit $ac_status); }; }; then 31463 ac_cv_header_time=yes 31464else 31465 echo "$as_me: failed program was:" >&5 31466cat conftest.$ac_ext >&5 31467ac_cv_header_time=no 31468fi 31469rm -f conftest.$ac_objext conftest.$ac_ext 31470fi 31471echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 31472echo "${ECHO_T}$ac_cv_header_time" >&6 31473if test $ac_cv_header_time = yes; then 31474 31475cat >>confdefs.h <<\_ACEOF 31476#define TIME_WITH_SYS_TIME 1 31477_ACEOF 31478 31479fi 31480 31481echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 31482echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 31483if test "${ac_cv_struct_tm+set}" = set; then 31484 echo $ECHO_N "(cached) $ECHO_C" >&6 31485else 31486 cat >conftest.$ac_ext <<_ACEOF 31487#line $LINENO "configure" 31488#include "confdefs.h" 31489#include <sys/types.h> 31490#include <time.h> 31491 31492#ifdef F77_DUMMY_MAIN 31493# ifdef __cplusplus 31494 extern "C" 31495# endif 31496 int F77_DUMMY_MAIN() { return 1; } 31497#endif 31498int 31499main () 31500{ 31501struct tm *tp; tp->tm_sec; 31502 ; 31503 return 0; 31504} 31505_ACEOF 31506rm -f conftest.$ac_objext 31507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31508 (eval $ac_compile) 2>&5 31509 ac_status=$? 31510 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31511 (exit $ac_status); } && 31512 { ac_try='test -s conftest.$ac_objext' 31513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31514 (eval $ac_try) 2>&5 31515 ac_status=$? 31516 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31517 (exit $ac_status); }; }; then 31518 ac_cv_struct_tm=time.h 31519else 31520 echo "$as_me: failed program was:" >&5 31521cat conftest.$ac_ext >&5 31522ac_cv_struct_tm=sys/time.h 31523fi 31524rm -f conftest.$ac_objext conftest.$ac_ext 31525fi 31526echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 31527echo "${ECHO_T}$ac_cv_struct_tm" >&6 31528if test $ac_cv_struct_tm = sys/time.h; then 31529 31530cat >>confdefs.h <<\_ACEOF 31531#define TM_IN_SYS_TIME 1 31532_ACEOF 31533 31534fi 31535 31536 31537echo "$as_me:$LINENO: checking for ANSI C header files" >&5 31538echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 31539if test "${ac_cv_header_stdc+set}" = set; then 31540 echo $ECHO_N "(cached) $ECHO_C" >&6 31541else 31542 cat >conftest.$ac_ext <<_ACEOF 31543#line $LINENO "configure" 31544#include "confdefs.h" 31545#include <stdlib.h> 31546#include <stdarg.h> 31547#include <string.h> 31548#include <float.h> 31549 31550_ACEOF 31551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 31552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 31553 ac_status=$? 31554 egrep -v '^ *\+' conftest.er1 >conftest.err 31555 rm -f conftest.er1 31556 cat conftest.err >&5 31557 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31558 (exit $ac_status); } >/dev/null; then 31559 if test -s conftest.err; then 31560 ac_cpp_err=$ac_c_preproc_warn_flag 31561 else 31562 ac_cpp_err= 31563 fi 31564else 31565 ac_cpp_err=yes 31566fi 31567if test -z "$ac_cpp_err"; then 31568 ac_cv_header_stdc=yes 31569else 31570 echo "$as_me: failed program was:" >&5 31571 cat conftest.$ac_ext >&5 31572 ac_cv_header_stdc=no 31573fi 31574rm -f conftest.err conftest.$ac_ext 31575 31576if test $ac_cv_header_stdc = yes; then 31577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 31578 cat >conftest.$ac_ext <<_ACEOF 31579#line $LINENO "configure" 31580#include "confdefs.h" 31581#include <string.h> 31582 31583_ACEOF 31584if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31585 egrep "memchr" >/dev/null 2>&1; then 31586 : 31587else 31588 ac_cv_header_stdc=no 31589fi 31590rm -f conftest* 31591 31592fi 31593 31594if test $ac_cv_header_stdc = yes; then 31595 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 31596 cat >conftest.$ac_ext <<_ACEOF 31597#line $LINENO "configure" 31598#include "confdefs.h" 31599#include <stdlib.h> 31600 31601_ACEOF 31602if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31603 egrep "free" >/dev/null 2>&1; then 31604 : 31605else 31606 ac_cv_header_stdc=no 31607fi 31608rm -f conftest* 31609 31610fi 31611 31612if test $ac_cv_header_stdc = yes; then 31613 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 31614 if test "$cross_compiling" = yes; then 31615 : 31616else 31617 cat >conftest.$ac_ext <<_ACEOF 31618#line $LINENO "configure" 31619#include "confdefs.h" 31620#include <ctype.h> 31621#if ((' ' & 0x0FF) == 0x020) 31622# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 31623# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 31624#else 31625# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 31626 || ('j' <= (c) && (c) <= 'r') \ 31627 || ('s' <= (c) && (c) <= 'z')) 31628# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 31629#endif 31630 31631#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 31632int 31633main () 31634{ 31635 int i; 31636 for (i = 0; i < 256; i++) 31637 if (XOR (islower (i), ISLOWER (i)) 31638 || toupper (i) != TOUPPER (i)) 31639 exit(2); 31640 exit (0); 31641} 31642_ACEOF 31643rm -f conftest$ac_exeext 31644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31645 (eval $ac_link) 2>&5 31646 ac_status=$? 31647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 31649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31650 (eval $ac_try) 2>&5 31651 ac_status=$? 31652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31653 (exit $ac_status); }; }; then 31654 : 31655else 31656 echo "$as_me: program exited with status $ac_status" >&5 31657echo "$as_me: failed program was:" >&5 31658cat conftest.$ac_ext >&5 31659( exit $ac_status ) 31660ac_cv_header_stdc=no 31661fi 31662rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 31663fi 31664fi 31665fi 31666echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 31667echo "${ECHO_T}$ac_cv_header_stdc" >&6 31668if test $ac_cv_header_stdc = yes; then 31669 31670cat >>confdefs.h <<\_ACEOF 31671#define STDC_HEADERS 1 31672_ACEOF 31673 31674fi 31675 31676 31677 31678 31679 31680 31681 31682 31683 31684 31685 31686 31687 31688 31689 31690 31691 31692 31693 31694 31695 31696 31697 31698 31699 31700 31701 31702 31703 31704 31705 31706 31707 31708 31709 31710 31711 31712 31713 31714 31715 31716 31717 31718 31719 31720 31721 31722 31723 31724 31725 31726 31727for ac_header in \ 31728 arpa/ftp.h \ 31729 arpa/telnet.h \ 31730 bind/bitypes.h \ 31731 bsdsetjmp.h \ 31732 curses.h \ 31733 dlfcn.h \ 31734 fnmatch.h \ 31735 inttypes.h \ 31736 io.h \ 31737 libutil.h \ 31738 limits.h \ 31739 maillock.h \ 31740 netgroup.h \ 31741 netinet/in6_machtypes.h \ 31742 netinfo/ni.h \ 31743 pthread.h \ 31744 pty.h \ 31745 sac.h \ 31746 security/pam_modules.h \ 31747 sgtty.h \ 31748 siad.h \ 31749 signal.h \ 31750 stropts.h \ 31751 sys/bitypes.h \ 31752 sys/category.h \ 31753 sys/file.h \ 31754 sys/filio.h \ 31755 sys/ioccom.h \ 31756 sys/mman.h \ 31757 sys/pty.h \ 31758 sys/ptyio.h \ 31759 sys/ptyvar.h \ 31760 sys/select.h \ 31761 sys/str_tty.h \ 31762 sys/stream.h \ 31763 sys/stropts.h \ 31764 sys/strtty.h \ 31765 sys/syscall.h \ 31766 sys/termio.h \ 31767 sys/timeb.h \ 31768 sys/times.h \ 31769 sys/un.h \ 31770 term.h \ 31771 termcap.h \ 31772 termio.h \ 31773 time.h \ 31774 tmpdir.h \ 31775 udb.h \ 31776 utmp.h \ 31777 utmpx.h \ 31778 31779do 31780as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 31781if eval "test \"\${$as_ac_Header+set}\" = set"; then 31782 echo "$as_me:$LINENO: checking for $ac_header" >&5 31783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 31784if eval "test \"\${$as_ac_Header+set}\" = set"; then 31785 echo $ECHO_N "(cached) $ECHO_C" >&6 31786fi 31787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 31788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 31789else 31790 # Is the header compilable? 31791echo "$as_me:$LINENO: checking $ac_header usability" >&5 31792echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 31793cat >conftest.$ac_ext <<_ACEOF 31794#line $LINENO "configure" 31795#include "confdefs.h" 31796$ac_includes_default 31797#include <$ac_header> 31798_ACEOF 31799rm -f conftest.$ac_objext 31800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31801 (eval $ac_compile) 2>&5 31802 ac_status=$? 31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31804 (exit $ac_status); } && 31805 { ac_try='test -s conftest.$ac_objext' 31806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31807 (eval $ac_try) 2>&5 31808 ac_status=$? 31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31810 (exit $ac_status); }; }; then 31811 ac_header_compiler=yes 31812else 31813 echo "$as_me: failed program was:" >&5 31814cat conftest.$ac_ext >&5 31815ac_header_compiler=no 31816fi 31817rm -f conftest.$ac_objext conftest.$ac_ext 31818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 31819echo "${ECHO_T}$ac_header_compiler" >&6 31820 31821# Is the header present? 31822echo "$as_me:$LINENO: checking $ac_header presence" >&5 31823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 31824cat >conftest.$ac_ext <<_ACEOF 31825#line $LINENO "configure" 31826#include "confdefs.h" 31827#include <$ac_header> 31828_ACEOF 31829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 31830 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 31831 ac_status=$? 31832 egrep -v '^ *\+' conftest.er1 >conftest.err 31833 rm -f conftest.er1 31834 cat conftest.err >&5 31835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31836 (exit $ac_status); } >/dev/null; then 31837 if test -s conftest.err; then 31838 ac_cpp_err=$ac_c_preproc_warn_flag 31839 else 31840 ac_cpp_err= 31841 fi 31842else 31843 ac_cpp_err=yes 31844fi 31845if test -z "$ac_cpp_err"; then 31846 ac_header_preproc=yes 31847else 31848 echo "$as_me: failed program was:" >&5 31849 cat conftest.$ac_ext >&5 31850 ac_header_preproc=no 31851fi 31852rm -f conftest.err conftest.$ac_ext 31853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 31854echo "${ECHO_T}$ac_header_preproc" >&6 31855 31856# So? What about this header? 31857case $ac_header_compiler:$ac_header_preproc in 31858 yes:no ) 31859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 31860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 31861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 31862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 31863 no:yes ) 31864 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 31865echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 31866 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 31867echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 31868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 31869echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 31870esac 31871echo "$as_me:$LINENO: checking for $ac_header" >&5 31872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 31873if eval "test \"\${$as_ac_Header+set}\" = set"; then 31874 echo $ECHO_N "(cached) $ECHO_C" >&6 31875else 31876 eval "$as_ac_Header=$ac_header_preproc" 31877fi 31878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 31879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 31880 31881fi 31882if test `eval echo '${'$as_ac_Header'}'` = yes; then 31883 cat >>confdefs.h <<_ACEOF 31884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 31885_ACEOF 31886 31887fi 31888 31889done 31890 31891 31892# Check whether --enable-netinfo or --disable-netinfo was given. 31893if test "${enable_netinfo+set}" = set; then 31894 enableval="$enable_netinfo" 31895 31896fi; 31897 31898if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then 31899 31900cat >>confdefs.h <<\_ACEOF 31901#define HAVE_NETINFO 1 31902_ACEOF 31903 31904fi 31905 31906 31907 31908 31909 31910echo "$as_me:$LINENO: checking for logwtmp" >&5 31911echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6 31912if test "${ac_cv_funclib_logwtmp+set}" = set; then 31913 echo $ECHO_N "(cached) $ECHO_C" >&6 31914else 31915 31916if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 31917 ac_save_LIBS="$LIBS" 31918 for ac_lib in "" util; do 31919 case "$ac_lib" in 31920 "") ;; 31921 yes) ac_lib="" ;; 31922 no) continue ;; 31923 -l*) ;; 31924 *) ac_lib="-l$ac_lib" ;; 31925 esac 31926 LIBS=" $ac_lib $ac_save_LIBS" 31927 cat >conftest.$ac_ext <<_ACEOF 31928#line $LINENO "configure" 31929#include "confdefs.h" 31930 31931#ifdef F77_DUMMY_MAIN 31932# ifdef __cplusplus 31933 extern "C" 31934# endif 31935 int F77_DUMMY_MAIN() { return 1; } 31936#endif 31937int 31938main () 31939{ 31940logwtmp() 31941 ; 31942 return 0; 31943} 31944_ACEOF 31945rm -f conftest.$ac_objext conftest$ac_exeext 31946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31947 (eval $ac_link) 2>&5 31948 ac_status=$? 31949 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31950 (exit $ac_status); } && 31951 { ac_try='test -s conftest$ac_exeext' 31952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31953 (eval $ac_try) 2>&5 31954 ac_status=$? 31955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31956 (exit $ac_status); }; }; then 31957 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 31958else 31959 echo "$as_me: failed program was:" >&5 31960cat conftest.$ac_ext >&5 31961fi 31962rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 31963 done 31964 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 31965 LIBS="$ac_save_LIBS" 31966fi 31967 31968fi 31969 31970 31971eval "ac_res=\$ac_cv_funclib_logwtmp" 31972 31973if false; then 31974 31975for ac_func in logwtmp 31976do 31977as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31978echo "$as_me:$LINENO: checking for $ac_func" >&5 31979echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 31980if eval "test \"\${$as_ac_var+set}\" = set"; then 31981 echo $ECHO_N "(cached) $ECHO_C" >&6 31982else 31983 cat >conftest.$ac_ext <<_ACEOF 31984#line $LINENO "configure" 31985#include "confdefs.h" 31986/* System header to define __stub macros and hopefully few prototypes, 31987 which can conflict with char $ac_func (); below. */ 31988#include <assert.h> 31989/* Override any gcc2 internal prototype to avoid an error. */ 31990#ifdef __cplusplus 31991extern "C" 31992#endif 31993/* We use char because int might match the return type of a gcc2 31994 builtin and then its argument prototype would still apply. */ 31995char $ac_func (); 31996char (*f) (); 31997 31998#ifdef F77_DUMMY_MAIN 31999# ifdef __cplusplus 32000 extern "C" 32001# endif 32002 int F77_DUMMY_MAIN() { return 1; } 32003#endif 32004int 32005main () 32006{ 32007/* The GNU C library defines this for functions which it implements 32008 to always fail with ENOSYS. Some functions are actually named 32009 something starting with __ and the normal name is an alias. */ 32010#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32011choke me 32012#else 32013f = $ac_func; 32014#endif 32015 32016 ; 32017 return 0; 32018} 32019_ACEOF 32020rm -f conftest.$ac_objext conftest$ac_exeext 32021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32022 (eval $ac_link) 2>&5 32023 ac_status=$? 32024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32025 (exit $ac_status); } && 32026 { ac_try='test -s conftest$ac_exeext' 32027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32028 (eval $ac_try) 2>&5 32029 ac_status=$? 32030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32031 (exit $ac_status); }; }; then 32032 eval "$as_ac_var=yes" 32033else 32034 echo "$as_me: failed program was:" >&5 32035cat conftest.$ac_ext >&5 32036eval "$as_ac_var=no" 32037fi 32038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32039fi 32040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32042if test `eval echo '${'$as_ac_var'}'` = yes; then 32043 cat >>confdefs.h <<_ACEOF 32044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32045_ACEOF 32046 32047fi 32048done 32049 32050fi 32051# logwtmp 32052eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32053eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32054eval "LIB_logwtmp=$ac_res" 32055 32056case "$ac_res" in 32057 yes) 32058 eval "ac_cv_func_logwtmp=yes" 32059 eval "LIB_logwtmp=" 32060 cat >>confdefs.h <<_ACEOF 32061#define $ac_tr_func 1 32062_ACEOF 32063 32064 echo "$as_me:$LINENO: result: yes" >&5 32065echo "${ECHO_T}yes" >&6 32066 ;; 32067 no) 32068 eval "ac_cv_func_logwtmp=no" 32069 eval "LIB_logwtmp=" 32070 echo "$as_me:$LINENO: result: no" >&5 32071echo "${ECHO_T}no" >&6 32072 ;; 32073 *) 32074 eval "ac_cv_func_logwtmp=yes" 32075 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32076 cat >>confdefs.h <<_ACEOF 32077#define $ac_tr_func 1 32078_ACEOF 32079 32080 cat >>confdefs.h <<_ACEOF 32081#define $ac_tr_lib 1 32082_ACEOF 32083 32084 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32085echo "${ECHO_T}yes, in $ac_res" >&6 32086 ;; 32087esac 32088 32089 32090 32091 32092 32093echo "$as_me:$LINENO: checking for logout" >&5 32094echo $ECHO_N "checking for logout... $ECHO_C" >&6 32095if test "${ac_cv_funclib_logout+set}" = set; then 32096 echo $ECHO_N "(cached) $ECHO_C" >&6 32097else 32098 32099if eval "test \"\$ac_cv_func_logout\" != yes" ; then 32100 ac_save_LIBS="$LIBS" 32101 for ac_lib in "" util; do 32102 case "$ac_lib" in 32103 "") ;; 32104 yes) ac_lib="" ;; 32105 no) continue ;; 32106 -l*) ;; 32107 *) ac_lib="-l$ac_lib" ;; 32108 esac 32109 LIBS=" $ac_lib $ac_save_LIBS" 32110 cat >conftest.$ac_ext <<_ACEOF 32111#line $LINENO "configure" 32112#include "confdefs.h" 32113 32114#ifdef F77_DUMMY_MAIN 32115# ifdef __cplusplus 32116 extern "C" 32117# endif 32118 int F77_DUMMY_MAIN() { return 1; } 32119#endif 32120int 32121main () 32122{ 32123logout() 32124 ; 32125 return 0; 32126} 32127_ACEOF 32128rm -f conftest.$ac_objext conftest$ac_exeext 32129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32130 (eval $ac_link) 2>&5 32131 ac_status=$? 32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32133 (exit $ac_status); } && 32134 { ac_try='test -s conftest$ac_exeext' 32135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32136 (eval $ac_try) 2>&5 32137 ac_status=$? 32138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32139 (exit $ac_status); }; }; then 32140 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 32141else 32142 echo "$as_me: failed program was:" >&5 32143cat conftest.$ac_ext >&5 32144fi 32145rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32146 done 32147 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 32148 LIBS="$ac_save_LIBS" 32149fi 32150 32151fi 32152 32153 32154eval "ac_res=\$ac_cv_funclib_logout" 32155 32156if false; then 32157 32158for ac_func in logout 32159do 32160as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32161echo "$as_me:$LINENO: checking for $ac_func" >&5 32162echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32163if eval "test \"\${$as_ac_var+set}\" = set"; then 32164 echo $ECHO_N "(cached) $ECHO_C" >&6 32165else 32166 cat >conftest.$ac_ext <<_ACEOF 32167#line $LINENO "configure" 32168#include "confdefs.h" 32169/* System header to define __stub macros and hopefully few prototypes, 32170 which can conflict with char $ac_func (); below. */ 32171#include <assert.h> 32172/* Override any gcc2 internal prototype to avoid an error. */ 32173#ifdef __cplusplus 32174extern "C" 32175#endif 32176/* We use char because int might match the return type of a gcc2 32177 builtin and then its argument prototype would still apply. */ 32178char $ac_func (); 32179char (*f) (); 32180 32181#ifdef F77_DUMMY_MAIN 32182# ifdef __cplusplus 32183 extern "C" 32184# endif 32185 int F77_DUMMY_MAIN() { return 1; } 32186#endif 32187int 32188main () 32189{ 32190/* The GNU C library defines this for functions which it implements 32191 to always fail with ENOSYS. Some functions are actually named 32192 something starting with __ and the normal name is an alias. */ 32193#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32194choke me 32195#else 32196f = $ac_func; 32197#endif 32198 32199 ; 32200 return 0; 32201} 32202_ACEOF 32203rm -f conftest.$ac_objext conftest$ac_exeext 32204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32205 (eval $ac_link) 2>&5 32206 ac_status=$? 32207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32208 (exit $ac_status); } && 32209 { ac_try='test -s conftest$ac_exeext' 32210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32211 (eval $ac_try) 2>&5 32212 ac_status=$? 32213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32214 (exit $ac_status); }; }; then 32215 eval "$as_ac_var=yes" 32216else 32217 echo "$as_me: failed program was:" >&5 32218cat conftest.$ac_ext >&5 32219eval "$as_ac_var=no" 32220fi 32221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32222fi 32223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32224echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32225if test `eval echo '${'$as_ac_var'}'` = yes; then 32226 cat >>confdefs.h <<_ACEOF 32227#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32228_ACEOF 32229 32230fi 32231done 32232 32233fi 32234# logout 32235eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32236eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32237eval "LIB_logout=$ac_res" 32238 32239case "$ac_res" in 32240 yes) 32241 eval "ac_cv_func_logout=yes" 32242 eval "LIB_logout=" 32243 cat >>confdefs.h <<_ACEOF 32244#define $ac_tr_func 1 32245_ACEOF 32246 32247 echo "$as_me:$LINENO: result: yes" >&5 32248echo "${ECHO_T}yes" >&6 32249 ;; 32250 no) 32251 eval "ac_cv_func_logout=no" 32252 eval "LIB_logout=" 32253 echo "$as_me:$LINENO: result: no" >&5 32254echo "${ECHO_T}no" >&6 32255 ;; 32256 *) 32257 eval "ac_cv_func_logout=yes" 32258 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32259 cat >>confdefs.h <<_ACEOF 32260#define $ac_tr_func 1 32261_ACEOF 32262 32263 cat >>confdefs.h <<_ACEOF 32264#define $ac_tr_lib 1 32265_ACEOF 32266 32267 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32268echo "${ECHO_T}yes, in $ac_res" >&6 32269 ;; 32270esac 32271 32272 32273 32274 32275 32276echo "$as_me:$LINENO: checking for openpty" >&5 32277echo $ECHO_N "checking for openpty... $ECHO_C" >&6 32278if test "${ac_cv_funclib_openpty+set}" = set; then 32279 echo $ECHO_N "(cached) $ECHO_C" >&6 32280else 32281 32282if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 32283 ac_save_LIBS="$LIBS" 32284 for ac_lib in "" util; do 32285 case "$ac_lib" in 32286 "") ;; 32287 yes) ac_lib="" ;; 32288 no) continue ;; 32289 -l*) ;; 32290 *) ac_lib="-l$ac_lib" ;; 32291 esac 32292 LIBS=" $ac_lib $ac_save_LIBS" 32293 cat >conftest.$ac_ext <<_ACEOF 32294#line $LINENO "configure" 32295#include "confdefs.h" 32296 32297#ifdef F77_DUMMY_MAIN 32298# ifdef __cplusplus 32299 extern "C" 32300# endif 32301 int F77_DUMMY_MAIN() { return 1; } 32302#endif 32303int 32304main () 32305{ 32306openpty() 32307 ; 32308 return 0; 32309} 32310_ACEOF 32311rm -f conftest.$ac_objext conftest$ac_exeext 32312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32313 (eval $ac_link) 2>&5 32314 ac_status=$? 32315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32316 (exit $ac_status); } && 32317 { ac_try='test -s conftest$ac_exeext' 32318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32319 (eval $ac_try) 2>&5 32320 ac_status=$? 32321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32322 (exit $ac_status); }; }; then 32323 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 32324else 32325 echo "$as_me: failed program was:" >&5 32326cat conftest.$ac_ext >&5 32327fi 32328rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32329 done 32330 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 32331 LIBS="$ac_save_LIBS" 32332fi 32333 32334fi 32335 32336 32337eval "ac_res=\$ac_cv_funclib_openpty" 32338 32339if false; then 32340 32341for ac_func in openpty 32342do 32343as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32344echo "$as_me:$LINENO: checking for $ac_func" >&5 32345echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32346if eval "test \"\${$as_ac_var+set}\" = set"; then 32347 echo $ECHO_N "(cached) $ECHO_C" >&6 32348else 32349 cat >conftest.$ac_ext <<_ACEOF 32350#line $LINENO "configure" 32351#include "confdefs.h" 32352/* System header to define __stub macros and hopefully few prototypes, 32353 which can conflict with char $ac_func (); below. */ 32354#include <assert.h> 32355/* Override any gcc2 internal prototype to avoid an error. */ 32356#ifdef __cplusplus 32357extern "C" 32358#endif 32359/* We use char because int might match the return type of a gcc2 32360 builtin and then its argument prototype would still apply. */ 32361char $ac_func (); 32362char (*f) (); 32363 32364#ifdef F77_DUMMY_MAIN 32365# ifdef __cplusplus 32366 extern "C" 32367# endif 32368 int F77_DUMMY_MAIN() { return 1; } 32369#endif 32370int 32371main () 32372{ 32373/* The GNU C library defines this for functions which it implements 32374 to always fail with ENOSYS. Some functions are actually named 32375 something starting with __ and the normal name is an alias. */ 32376#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32377choke me 32378#else 32379f = $ac_func; 32380#endif 32381 32382 ; 32383 return 0; 32384} 32385_ACEOF 32386rm -f conftest.$ac_objext conftest$ac_exeext 32387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32388 (eval $ac_link) 2>&5 32389 ac_status=$? 32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32391 (exit $ac_status); } && 32392 { ac_try='test -s conftest$ac_exeext' 32393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32394 (eval $ac_try) 2>&5 32395 ac_status=$? 32396 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32397 (exit $ac_status); }; }; then 32398 eval "$as_ac_var=yes" 32399else 32400 echo "$as_me: failed program was:" >&5 32401cat conftest.$ac_ext >&5 32402eval "$as_ac_var=no" 32403fi 32404rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32405fi 32406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32407echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32408if test `eval echo '${'$as_ac_var'}'` = yes; then 32409 cat >>confdefs.h <<_ACEOF 32410#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32411_ACEOF 32412 32413fi 32414done 32415 32416fi 32417# openpty 32418eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32419eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32420eval "LIB_openpty=$ac_res" 32421 32422case "$ac_res" in 32423 yes) 32424 eval "ac_cv_func_openpty=yes" 32425 eval "LIB_openpty=" 32426 cat >>confdefs.h <<_ACEOF 32427#define $ac_tr_func 1 32428_ACEOF 32429 32430 echo "$as_me:$LINENO: result: yes" >&5 32431echo "${ECHO_T}yes" >&6 32432 ;; 32433 no) 32434 eval "ac_cv_func_openpty=no" 32435 eval "LIB_openpty=" 32436 echo "$as_me:$LINENO: result: no" >&5 32437echo "${ECHO_T}no" >&6 32438 ;; 32439 *) 32440 eval "ac_cv_func_openpty=yes" 32441 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32442 cat >>confdefs.h <<_ACEOF 32443#define $ac_tr_func 1 32444_ACEOF 32445 32446 cat >>confdefs.h <<_ACEOF 32447#define $ac_tr_lib 1 32448_ACEOF 32449 32450 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32451echo "${ECHO_T}yes, in $ac_res" >&6 32452 ;; 32453esac 32454 32455 32456 32457 32458 32459echo "$as_me:$LINENO: checking for tgetent" >&5 32460echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 32461if test "${ac_cv_funclib_tgetent+set}" = set; then 32462 echo $ECHO_N "(cached) $ECHO_C" >&6 32463else 32464 32465if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 32466 ac_save_LIBS="$LIBS" 32467 for ac_lib in "" termcap ncurses curses; do 32468 case "$ac_lib" in 32469 "") ;; 32470 yes) ac_lib="" ;; 32471 no) continue ;; 32472 -l*) ;; 32473 *) ac_lib="-l$ac_lib" ;; 32474 esac 32475 LIBS=" $ac_lib $ac_save_LIBS" 32476 cat >conftest.$ac_ext <<_ACEOF 32477#line $LINENO "configure" 32478#include "confdefs.h" 32479 32480#ifdef F77_DUMMY_MAIN 32481# ifdef __cplusplus 32482 extern "C" 32483# endif 32484 int F77_DUMMY_MAIN() { return 1; } 32485#endif 32486int 32487main () 32488{ 32489tgetent() 32490 ; 32491 return 0; 32492} 32493_ACEOF 32494rm -f conftest.$ac_objext conftest$ac_exeext 32495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32496 (eval $ac_link) 2>&5 32497 ac_status=$? 32498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32499 (exit $ac_status); } && 32500 { ac_try='test -s conftest$ac_exeext' 32501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32502 (eval $ac_try) 2>&5 32503 ac_status=$? 32504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32505 (exit $ac_status); }; }; then 32506 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 32507else 32508 echo "$as_me: failed program was:" >&5 32509cat conftest.$ac_ext >&5 32510fi 32511rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32512 done 32513 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 32514 LIBS="$ac_save_LIBS" 32515fi 32516 32517fi 32518 32519 32520eval "ac_res=\$ac_cv_funclib_tgetent" 32521 32522if false; then 32523 32524for ac_func in tgetent 32525do 32526as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32527echo "$as_me:$LINENO: checking for $ac_func" >&5 32528echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32529if eval "test \"\${$as_ac_var+set}\" = set"; then 32530 echo $ECHO_N "(cached) $ECHO_C" >&6 32531else 32532 cat >conftest.$ac_ext <<_ACEOF 32533#line $LINENO "configure" 32534#include "confdefs.h" 32535/* System header to define __stub macros and hopefully few prototypes, 32536 which can conflict with char $ac_func (); below. */ 32537#include <assert.h> 32538/* Override any gcc2 internal prototype to avoid an error. */ 32539#ifdef __cplusplus 32540extern "C" 32541#endif 32542/* We use char because int might match the return type of a gcc2 32543 builtin and then its argument prototype would still apply. */ 32544char $ac_func (); 32545char (*f) (); 32546 32547#ifdef F77_DUMMY_MAIN 32548# ifdef __cplusplus 32549 extern "C" 32550# endif 32551 int F77_DUMMY_MAIN() { return 1; } 32552#endif 32553int 32554main () 32555{ 32556/* The GNU C library defines this for functions which it implements 32557 to always fail with ENOSYS. Some functions are actually named 32558 something starting with __ and the normal name is an alias. */ 32559#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32560choke me 32561#else 32562f = $ac_func; 32563#endif 32564 32565 ; 32566 return 0; 32567} 32568_ACEOF 32569rm -f conftest.$ac_objext conftest$ac_exeext 32570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32571 (eval $ac_link) 2>&5 32572 ac_status=$? 32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32574 (exit $ac_status); } && 32575 { ac_try='test -s conftest$ac_exeext' 32576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32577 (eval $ac_try) 2>&5 32578 ac_status=$? 32579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32580 (exit $ac_status); }; }; then 32581 eval "$as_ac_var=yes" 32582else 32583 echo "$as_me: failed program was:" >&5 32584cat conftest.$ac_ext >&5 32585eval "$as_ac_var=no" 32586fi 32587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32588fi 32589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32591if test `eval echo '${'$as_ac_var'}'` = yes; then 32592 cat >>confdefs.h <<_ACEOF 32593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32594_ACEOF 32595 32596fi 32597done 32598 32599fi 32600# tgetent 32601eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32602eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32603eval "LIB_tgetent=$ac_res" 32604 32605case "$ac_res" in 32606 yes) 32607 eval "ac_cv_func_tgetent=yes" 32608 eval "LIB_tgetent=" 32609 cat >>confdefs.h <<_ACEOF 32610#define $ac_tr_func 1 32611_ACEOF 32612 32613 echo "$as_me:$LINENO: result: yes" >&5 32614echo "${ECHO_T}yes" >&6 32615 ;; 32616 no) 32617 eval "ac_cv_func_tgetent=no" 32618 eval "LIB_tgetent=" 32619 echo "$as_me:$LINENO: result: no" >&5 32620echo "${ECHO_T}no" >&6 32621 ;; 32622 *) 32623 eval "ac_cv_func_tgetent=yes" 32624 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32625 cat >>confdefs.h <<_ACEOF 32626#define $ac_tr_func 1 32627_ACEOF 32628 32629 cat >>confdefs.h <<_ACEOF 32630#define $ac_tr_lib 1 32631_ACEOF 32632 32633 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32634echo "${ECHO_T}yes, in $ac_res" >&6 32635 ;; 32636esac 32637 32638 32639 32640 32641 32642 32643 32644 32645 32646 32647 32648 32649 32650 32651 32652 32653 32654 32655 32656 32657 32658 32659 32660 32661 32662 32663 32664 32665 32666 32667 32668 32669for ac_func in \ 32670 _getpty \ 32671 _scrsize \ 32672 fcntl \ 32673 grantpt \ 32674 mktime \ 32675 ptsname \ 32676 rand \ 32677 revoke \ 32678 select \ 32679 setitimer \ 32680 setpcred \ 32681 setpgid \ 32682 setproctitle \ 32683 setregid \ 32684 setresgid \ 32685 setresuid \ 32686 setreuid \ 32687 setsid \ 32688 setutent \ 32689 sigaction \ 32690 strstr \ 32691 timegm \ 32692 ttyname \ 32693 ttyslot \ 32694 umask \ 32695 unlockpt \ 32696 vhangup \ 32697 yp_get_default_domain \ 32698 32699do 32700as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32701echo "$as_me:$LINENO: checking for $ac_func" >&5 32702echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32703if eval "test \"\${$as_ac_var+set}\" = set"; then 32704 echo $ECHO_N "(cached) $ECHO_C" >&6 32705else 32706 cat >conftest.$ac_ext <<_ACEOF 32707#line $LINENO "configure" 32708#include "confdefs.h" 32709/* System header to define __stub macros and hopefully few prototypes, 32710 which can conflict with char $ac_func (); below. */ 32711#include <assert.h> 32712/* Override any gcc2 internal prototype to avoid an error. */ 32713#ifdef __cplusplus 32714extern "C" 32715#endif 32716/* We use char because int might match the return type of a gcc2 32717 builtin and then its argument prototype would still apply. */ 32718char $ac_func (); 32719char (*f) (); 32720 32721#ifdef F77_DUMMY_MAIN 32722# ifdef __cplusplus 32723 extern "C" 32724# endif 32725 int F77_DUMMY_MAIN() { return 1; } 32726#endif 32727int 32728main () 32729{ 32730/* The GNU C library defines this for functions which it implements 32731 to always fail with ENOSYS. Some functions are actually named 32732 something starting with __ and the normal name is an alias. */ 32733#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32734choke me 32735#else 32736f = $ac_func; 32737#endif 32738 32739 ; 32740 return 0; 32741} 32742_ACEOF 32743rm -f conftest.$ac_objext conftest$ac_exeext 32744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32745 (eval $ac_link) 2>&5 32746 ac_status=$? 32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32748 (exit $ac_status); } && 32749 { ac_try='test -s conftest$ac_exeext' 32750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32751 (eval $ac_try) 2>&5 32752 ac_status=$? 32753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32754 (exit $ac_status); }; }; then 32755 eval "$as_ac_var=yes" 32756else 32757 echo "$as_me: failed program was:" >&5 32758cat conftest.$ac_ext >&5 32759eval "$as_ac_var=no" 32760fi 32761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32762fi 32763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32765if test `eval echo '${'$as_ac_var'}'` = yes; then 32766 cat >>confdefs.h <<_ACEOF 32767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32768_ACEOF 32769 32770fi 32771done 32772 32773 32774 32775 32776for ac_header in stdlib.h unistd.h 32777do 32778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 32779if eval "test \"\${$as_ac_Header+set}\" = set"; then 32780 echo "$as_me:$LINENO: checking for $ac_header" >&5 32781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 32782if eval "test \"\${$as_ac_Header+set}\" = set"; then 32783 echo $ECHO_N "(cached) $ECHO_C" >&6 32784fi 32785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 32786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 32787else 32788 # Is the header compilable? 32789echo "$as_me:$LINENO: checking $ac_header usability" >&5 32790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 32791cat >conftest.$ac_ext <<_ACEOF 32792#line $LINENO "configure" 32793#include "confdefs.h" 32794$ac_includes_default 32795#include <$ac_header> 32796_ACEOF 32797rm -f conftest.$ac_objext 32798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 32799 (eval $ac_compile) 2>&5 32800 ac_status=$? 32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32802 (exit $ac_status); } && 32803 { ac_try='test -s conftest.$ac_objext' 32804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32805 (eval $ac_try) 2>&5 32806 ac_status=$? 32807 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32808 (exit $ac_status); }; }; then 32809 ac_header_compiler=yes 32810else 32811 echo "$as_me: failed program was:" >&5 32812cat conftest.$ac_ext >&5 32813ac_header_compiler=no 32814fi 32815rm -f conftest.$ac_objext conftest.$ac_ext 32816echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 32817echo "${ECHO_T}$ac_header_compiler" >&6 32818 32819# Is the header present? 32820echo "$as_me:$LINENO: checking $ac_header presence" >&5 32821echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 32822cat >conftest.$ac_ext <<_ACEOF 32823#line $LINENO "configure" 32824#include "confdefs.h" 32825#include <$ac_header> 32826_ACEOF 32827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 32828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 32829 ac_status=$? 32830 egrep -v '^ *\+' conftest.er1 >conftest.err 32831 rm -f conftest.er1 32832 cat conftest.err >&5 32833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32834 (exit $ac_status); } >/dev/null; then 32835 if test -s conftest.err; then 32836 ac_cpp_err=$ac_c_preproc_warn_flag 32837 else 32838 ac_cpp_err= 32839 fi 32840else 32841 ac_cpp_err=yes 32842fi 32843if test -z "$ac_cpp_err"; then 32844 ac_header_preproc=yes 32845else 32846 echo "$as_me: failed program was:" >&5 32847 cat conftest.$ac_ext >&5 32848 ac_header_preproc=no 32849fi 32850rm -f conftest.err conftest.$ac_ext 32851echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 32852echo "${ECHO_T}$ac_header_preproc" >&6 32853 32854# So? What about this header? 32855case $ac_header_compiler:$ac_header_preproc in 32856 yes:no ) 32857 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 32858echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 32859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 32860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 32861 no:yes ) 32862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 32863echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 32864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 32865echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 32866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 32867echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 32868esac 32869echo "$as_me:$LINENO: checking for $ac_header" >&5 32870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 32871if eval "test \"\${$as_ac_Header+set}\" = set"; then 32872 echo $ECHO_N "(cached) $ECHO_C" >&6 32873else 32874 eval "$as_ac_Header=$ac_header_preproc" 32875fi 32876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 32877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 32878 32879fi 32880if test `eval echo '${'$as_ac_Header'}'` = yes; then 32881 cat >>confdefs.h <<_ACEOF 32882#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 32883_ACEOF 32884 32885fi 32886 32887done 32888 32889 32890for ac_func in getpagesize 32891do 32892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32893echo "$as_me:$LINENO: checking for $ac_func" >&5 32894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32895if eval "test \"\${$as_ac_var+set}\" = set"; then 32896 echo $ECHO_N "(cached) $ECHO_C" >&6 32897else 32898 cat >conftest.$ac_ext <<_ACEOF 32899#line $LINENO "configure" 32900#include "confdefs.h" 32901/* System header to define __stub macros and hopefully few prototypes, 32902 which can conflict with char $ac_func (); below. */ 32903#include <assert.h> 32904/* Override any gcc2 internal prototype to avoid an error. */ 32905#ifdef __cplusplus 32906extern "C" 32907#endif 32908/* We use char because int might match the return type of a gcc2 32909 builtin and then its argument prototype would still apply. */ 32910char $ac_func (); 32911char (*f) (); 32912 32913#ifdef F77_DUMMY_MAIN 32914# ifdef __cplusplus 32915 extern "C" 32916# endif 32917 int F77_DUMMY_MAIN() { return 1; } 32918#endif 32919int 32920main () 32921{ 32922/* The GNU C library defines this for functions which it implements 32923 to always fail with ENOSYS. Some functions are actually named 32924 something starting with __ and the normal name is an alias. */ 32925#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32926choke me 32927#else 32928f = $ac_func; 32929#endif 32930 32931 ; 32932 return 0; 32933} 32934_ACEOF 32935rm -f conftest.$ac_objext conftest$ac_exeext 32936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32937 (eval $ac_link) 2>&5 32938 ac_status=$? 32939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32940 (exit $ac_status); } && 32941 { ac_try='test -s conftest$ac_exeext' 32942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32943 (eval $ac_try) 2>&5 32944 ac_status=$? 32945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32946 (exit $ac_status); }; }; then 32947 eval "$as_ac_var=yes" 32948else 32949 echo "$as_me: failed program was:" >&5 32950cat conftest.$ac_ext >&5 32951eval "$as_ac_var=no" 32952fi 32953rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32954fi 32955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32957if test `eval echo '${'$as_ac_var'}'` = yes; then 32958 cat >>confdefs.h <<_ACEOF 32959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32960_ACEOF 32961 32962fi 32963done 32964 32965echo "$as_me:$LINENO: checking for working mmap" >&5 32966echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 32967if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 32968 echo $ECHO_N "(cached) $ECHO_C" >&6 32969else 32970 if test "$cross_compiling" = yes; then 32971 ac_cv_func_mmap_fixed_mapped=no 32972else 32973 cat >conftest.$ac_ext <<_ACEOF 32974#line $LINENO "configure" 32975#include "confdefs.h" 32976$ac_includes_default 32977/* malloc might have been renamed as rpl_malloc. */ 32978#undef malloc 32979 32980/* Thanks to Mike Haertel and Jim Avera for this test. 32981 Here is a matrix of mmap possibilities: 32982 mmap private not fixed 32983 mmap private fixed at somewhere currently unmapped 32984 mmap private fixed at somewhere already mapped 32985 mmap shared not fixed 32986 mmap shared fixed at somewhere currently unmapped 32987 mmap shared fixed at somewhere already mapped 32988 For private mappings, we should verify that changes cannot be read() 32989 back from the file, nor mmap's back from the file at a different 32990 address. (There have been systems where private was not correctly 32991 implemented like the infamous i386 svr4.0, and systems where the 32992 VM page cache was not coherent with the file system buffer cache 32993 like early versions of FreeBSD and possibly contemporary NetBSD.) 32994 For shared mappings, we should conversely verify that changes get 32995 propagated back to all the places they're supposed to be. 32996 32997 Grep wants private fixed already mapped. 32998 The main things grep needs to know about mmap are: 32999 * does it exist and is it safe to write into the mmap'd area 33000 * how to use it (BSD variants) */ 33001 33002#include <fcntl.h> 33003#include <sys/mman.h> 33004 33005#if !STDC_HEADERS && !HAVE_STDLIB_H 33006char *malloc (); 33007#endif 33008 33009/* This mess was copied from the GNU getpagesize.h. */ 33010#if !HAVE_GETPAGESIZE 33011/* Assume that all systems that can run configure have sys/param.h. */ 33012# if !HAVE_SYS_PARAM_H 33013# define HAVE_SYS_PARAM_H 1 33014# endif 33015 33016# ifdef _SC_PAGESIZE 33017# define getpagesize() sysconf(_SC_PAGESIZE) 33018# else /* no _SC_PAGESIZE */ 33019# if HAVE_SYS_PARAM_H 33020# include <sys/param.h> 33021# ifdef EXEC_PAGESIZE 33022# define getpagesize() EXEC_PAGESIZE 33023# else /* no EXEC_PAGESIZE */ 33024# ifdef NBPG 33025# define getpagesize() NBPG * CLSIZE 33026# ifndef CLSIZE 33027# define CLSIZE 1 33028# endif /* no CLSIZE */ 33029# else /* no NBPG */ 33030# ifdef NBPC 33031# define getpagesize() NBPC 33032# else /* no NBPC */ 33033# ifdef PAGESIZE 33034# define getpagesize() PAGESIZE 33035# endif /* PAGESIZE */ 33036# endif /* no NBPC */ 33037# endif /* no NBPG */ 33038# endif /* no EXEC_PAGESIZE */ 33039# else /* no HAVE_SYS_PARAM_H */ 33040# define getpagesize() 8192 /* punt totally */ 33041# endif /* no HAVE_SYS_PARAM_H */ 33042# endif /* no _SC_PAGESIZE */ 33043 33044#endif /* no HAVE_GETPAGESIZE */ 33045 33046int 33047main () 33048{ 33049 char *data, *data2, *data3; 33050 int i, pagesize; 33051 int fd; 33052 33053 pagesize = getpagesize (); 33054 33055 /* First, make a file with some known garbage in it. */ 33056 data = (char *) malloc (pagesize); 33057 if (!data) 33058 exit (1); 33059 for (i = 0; i < pagesize; ++i) 33060 *(data + i) = rand (); 33061 umask (0); 33062 fd = creat ("conftest.mmap", 0600); 33063 if (fd < 0) 33064 exit (1); 33065 if (write (fd, data, pagesize) != pagesize) 33066 exit (1); 33067 close (fd); 33068 33069 /* Next, try to mmap the file at a fixed address which already has 33070 something else allocated at it. If we can, also make sure that 33071 we see the same garbage. */ 33072 fd = open ("conftest.mmap", O_RDWR); 33073 if (fd < 0) 33074 exit (1); 33075 data2 = (char *) malloc (2 * pagesize); 33076 if (!data2) 33077 exit (1); 33078 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 33079 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 33080 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 33081 exit (1); 33082 for (i = 0; i < pagesize; ++i) 33083 if (*(data + i) != *(data2 + i)) 33084 exit (1); 33085 33086 /* Finally, make sure that changes to the mapped area do not 33087 percolate back to the file as seen by read(). (This is a bug on 33088 some variants of i386 svr4.0.) */ 33089 for (i = 0; i < pagesize; ++i) 33090 *(data2 + i) = *(data2 + i) + 1; 33091 data3 = (char *) malloc (pagesize); 33092 if (!data3) 33093 exit (1); 33094 if (read (fd, data3, pagesize) != pagesize) 33095 exit (1); 33096 for (i = 0; i < pagesize; ++i) 33097 if (*(data + i) != *(data3 + i)) 33098 exit (1); 33099 close (fd); 33100 exit (0); 33101} 33102_ACEOF 33103rm -f conftest$ac_exeext 33104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33105 (eval $ac_link) 2>&5 33106 ac_status=$? 33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33108 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 33109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33110 (eval $ac_try) 2>&5 33111 ac_status=$? 33112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33113 (exit $ac_status); }; }; then 33114 ac_cv_func_mmap_fixed_mapped=yes 33115else 33116 echo "$as_me: program exited with status $ac_status" >&5 33117echo "$as_me: failed program was:" >&5 33118cat conftest.$ac_ext >&5 33119( exit $ac_status ) 33120ac_cv_func_mmap_fixed_mapped=no 33121fi 33122rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 33123fi 33124fi 33125echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 33126echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 33127if test $ac_cv_func_mmap_fixed_mapped = yes; then 33128 33129cat >>confdefs.h <<\_ACEOF 33130#define HAVE_MMAP 1 33131_ACEOF 33132 33133fi 33134rm -f conftest.mmap 33135 33136 33137 33138 33139 33140 33141for ac_header in capability.h sys/capability.h 33142do 33143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33144if eval "test \"\${$as_ac_Header+set}\" = set"; then 33145 echo "$as_me:$LINENO: checking for $ac_header" >&5 33146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33147if eval "test \"\${$as_ac_Header+set}\" = set"; then 33148 echo $ECHO_N "(cached) $ECHO_C" >&6 33149fi 33150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33152else 33153 # Is the header compilable? 33154echo "$as_me:$LINENO: checking $ac_header usability" >&5 33155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33156cat >conftest.$ac_ext <<_ACEOF 33157#line $LINENO "configure" 33158#include "confdefs.h" 33159$ac_includes_default 33160#include <$ac_header> 33161_ACEOF 33162rm -f conftest.$ac_objext 33163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33164 (eval $ac_compile) 2>&5 33165 ac_status=$? 33166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33167 (exit $ac_status); } && 33168 { ac_try='test -s conftest.$ac_objext' 33169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33170 (eval $ac_try) 2>&5 33171 ac_status=$? 33172 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33173 (exit $ac_status); }; }; then 33174 ac_header_compiler=yes 33175else 33176 echo "$as_me: failed program was:" >&5 33177cat conftest.$ac_ext >&5 33178ac_header_compiler=no 33179fi 33180rm -f conftest.$ac_objext conftest.$ac_ext 33181echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33182echo "${ECHO_T}$ac_header_compiler" >&6 33183 33184# Is the header present? 33185echo "$as_me:$LINENO: checking $ac_header presence" >&5 33186echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33187cat >conftest.$ac_ext <<_ACEOF 33188#line $LINENO "configure" 33189#include "confdefs.h" 33190#include <$ac_header> 33191_ACEOF 33192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33194 ac_status=$? 33195 egrep -v '^ *\+' conftest.er1 >conftest.err 33196 rm -f conftest.er1 33197 cat conftest.err >&5 33198 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33199 (exit $ac_status); } >/dev/null; then 33200 if test -s conftest.err; then 33201 ac_cpp_err=$ac_c_preproc_warn_flag 33202 else 33203 ac_cpp_err= 33204 fi 33205else 33206 ac_cpp_err=yes 33207fi 33208if test -z "$ac_cpp_err"; then 33209 ac_header_preproc=yes 33210else 33211 echo "$as_me: failed program was:" >&5 33212 cat conftest.$ac_ext >&5 33213 ac_header_preproc=no 33214fi 33215rm -f conftest.err conftest.$ac_ext 33216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33217echo "${ECHO_T}$ac_header_preproc" >&6 33218 33219# So? What about this header? 33220case $ac_header_compiler:$ac_header_preproc in 33221 yes:no ) 33222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33225echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 33226 no:yes ) 33227 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33228echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33229 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33230echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 33233esac 33234echo "$as_me:$LINENO: checking for $ac_header" >&5 33235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33236if eval "test \"\${$as_ac_Header+set}\" = set"; then 33237 echo $ECHO_N "(cached) $ECHO_C" >&6 33238else 33239 eval "$as_ac_Header=$ac_header_preproc" 33240fi 33241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33243 33244fi 33245if test `eval echo '${'$as_ac_Header'}'` = yes; then 33246 cat >>confdefs.h <<_ACEOF 33247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33248_ACEOF 33249 33250fi 33251 33252done 33253 33254 33255 33256 33257for ac_func in sgi_getcapabilitybyname cap_set_proc 33258do 33259as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33260echo "$as_me:$LINENO: checking for $ac_func" >&5 33261echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33262if eval "test \"\${$as_ac_var+set}\" = set"; then 33263 echo $ECHO_N "(cached) $ECHO_C" >&6 33264else 33265 cat >conftest.$ac_ext <<_ACEOF 33266#line $LINENO "configure" 33267#include "confdefs.h" 33268/* System header to define __stub macros and hopefully few prototypes, 33269 which can conflict with char $ac_func (); below. */ 33270#include <assert.h> 33271/* Override any gcc2 internal prototype to avoid an error. */ 33272#ifdef __cplusplus 33273extern "C" 33274#endif 33275/* We use char because int might match the return type of a gcc2 33276 builtin and then its argument prototype would still apply. */ 33277char $ac_func (); 33278char (*f) (); 33279 33280#ifdef F77_DUMMY_MAIN 33281# ifdef __cplusplus 33282 extern "C" 33283# endif 33284 int F77_DUMMY_MAIN() { return 1; } 33285#endif 33286int 33287main () 33288{ 33289/* The GNU C library defines this for functions which it implements 33290 to always fail with ENOSYS. Some functions are actually named 33291 something starting with __ and the normal name is an alias. */ 33292#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33293choke me 33294#else 33295f = $ac_func; 33296#endif 33297 33298 ; 33299 return 0; 33300} 33301_ACEOF 33302rm -f conftest.$ac_objext conftest$ac_exeext 33303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33304 (eval $ac_link) 2>&5 33305 ac_status=$? 33306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33307 (exit $ac_status); } && 33308 { ac_try='test -s conftest$ac_exeext' 33309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33310 (eval $ac_try) 2>&5 33311 ac_status=$? 33312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33313 (exit $ac_status); }; }; then 33314 eval "$as_ac_var=yes" 33315else 33316 echo "$as_me: failed program was:" >&5 33317cat conftest.$ac_ext >&5 33318eval "$as_ac_var=no" 33319fi 33320rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33321fi 33322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33323echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33324if test `eval echo '${'$as_ac_var'}'` = yes; then 33325 cat >>confdefs.h <<_ACEOF 33326#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33327_ACEOF 33328 33329fi 33330done 33331 33332 33333 33334 33335 33336 33337 33338echo "$as_me:$LINENO: checking for getpwnam_r" >&5 33339echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6 33340if test "${ac_cv_funclib_getpwnam_r+set}" = set; then 33341 echo $ECHO_N "(cached) $ECHO_C" >&6 33342else 33343 33344if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 33345 ac_save_LIBS="$LIBS" 33346 for ac_lib in "" c_r; do 33347 case "$ac_lib" in 33348 "") ;; 33349 yes) ac_lib="" ;; 33350 no) continue ;; 33351 -l*) ;; 33352 *) ac_lib="-l$ac_lib" ;; 33353 esac 33354 LIBS=" $ac_lib $ac_save_LIBS" 33355 cat >conftest.$ac_ext <<_ACEOF 33356#line $LINENO "configure" 33357#include "confdefs.h" 33358 33359#ifdef F77_DUMMY_MAIN 33360# ifdef __cplusplus 33361 extern "C" 33362# endif 33363 int F77_DUMMY_MAIN() { return 1; } 33364#endif 33365int 33366main () 33367{ 33368getpwnam_r() 33369 ; 33370 return 0; 33371} 33372_ACEOF 33373rm -f conftest.$ac_objext conftest$ac_exeext 33374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33375 (eval $ac_link) 2>&5 33376 ac_status=$? 33377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33378 (exit $ac_status); } && 33379 { ac_try='test -s conftest$ac_exeext' 33380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33381 (eval $ac_try) 2>&5 33382 ac_status=$? 33383 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33384 (exit $ac_status); }; }; then 33385 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 33386else 33387 echo "$as_me: failed program was:" >&5 33388cat conftest.$ac_ext >&5 33389fi 33390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33391 done 33392 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 33393 LIBS="$ac_save_LIBS" 33394fi 33395 33396fi 33397 33398 33399eval "ac_res=\$ac_cv_funclib_getpwnam_r" 33400 33401if false; then 33402 33403for ac_func in getpwnam_r 33404do 33405as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33406echo "$as_me:$LINENO: checking for $ac_func" >&5 33407echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33408if eval "test \"\${$as_ac_var+set}\" = set"; then 33409 echo $ECHO_N "(cached) $ECHO_C" >&6 33410else 33411 cat >conftest.$ac_ext <<_ACEOF 33412#line $LINENO "configure" 33413#include "confdefs.h" 33414/* System header to define __stub macros and hopefully few prototypes, 33415 which can conflict with char $ac_func (); below. */ 33416#include <assert.h> 33417/* Override any gcc2 internal prototype to avoid an error. */ 33418#ifdef __cplusplus 33419extern "C" 33420#endif 33421/* We use char because int might match the return type of a gcc2 33422 builtin and then its argument prototype would still apply. */ 33423char $ac_func (); 33424char (*f) (); 33425 33426#ifdef F77_DUMMY_MAIN 33427# ifdef __cplusplus 33428 extern "C" 33429# endif 33430 int F77_DUMMY_MAIN() { return 1; } 33431#endif 33432int 33433main () 33434{ 33435/* The GNU C library defines this for functions which it implements 33436 to always fail with ENOSYS. Some functions are actually named 33437 something starting with __ and the normal name is an alias. */ 33438#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33439choke me 33440#else 33441f = $ac_func; 33442#endif 33443 33444 ; 33445 return 0; 33446} 33447_ACEOF 33448rm -f conftest.$ac_objext conftest$ac_exeext 33449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33450 (eval $ac_link) 2>&5 33451 ac_status=$? 33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33453 (exit $ac_status); } && 33454 { ac_try='test -s conftest$ac_exeext' 33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33456 (eval $ac_try) 2>&5 33457 ac_status=$? 33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33459 (exit $ac_status); }; }; then 33460 eval "$as_ac_var=yes" 33461else 33462 echo "$as_me: failed program was:" >&5 33463cat conftest.$ac_ext >&5 33464eval "$as_ac_var=no" 33465fi 33466rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33467fi 33468echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33469echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33470if test `eval echo '${'$as_ac_var'}'` = yes; then 33471 cat >>confdefs.h <<_ACEOF 33472#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33473_ACEOF 33474 33475fi 33476done 33477 33478fi 33479# getpwnam_r 33480eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 33481eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 33482eval "LIB_getpwnam_r=$ac_res" 33483 33484case "$ac_res" in 33485 yes) 33486 eval "ac_cv_func_getpwnam_r=yes" 33487 eval "LIB_getpwnam_r=" 33488 cat >>confdefs.h <<_ACEOF 33489#define $ac_tr_func 1 33490_ACEOF 33491 33492 echo "$as_me:$LINENO: result: yes" >&5 33493echo "${ECHO_T}yes" >&6 33494 ;; 33495 no) 33496 eval "ac_cv_func_getpwnam_r=no" 33497 eval "LIB_getpwnam_r=" 33498 echo "$as_me:$LINENO: result: no" >&5 33499echo "${ECHO_T}no" >&6 33500 ;; 33501 *) 33502 eval "ac_cv_func_getpwnam_r=yes" 33503 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 33504 cat >>confdefs.h <<_ACEOF 33505#define $ac_tr_func 1 33506_ACEOF 33507 33508 cat >>confdefs.h <<_ACEOF 33509#define $ac_tr_lib 1 33510_ACEOF 33511 33512 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 33513echo "${ECHO_T}yes, in $ac_res" >&6 33514 ;; 33515esac 33516 33517 33518if test "$ac_cv_func_getpwnam_r" = yes; then 33519 echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5 33520echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6 33521if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then 33522 echo $ECHO_N "(cached) $ECHO_C" >&6 33523else 33524 ac_libs="$LIBS" 33525 LIBS="$LIBS $LIB_getpwnam_r" 33526 if test "$cross_compiling" = yes; then 33527 : 33528else 33529 cat >conftest.$ac_ext <<_ACEOF 33530#line $LINENO "configure" 33531#include "confdefs.h" 33532 33533#include <pwd.h> 33534int main() 33535{ 33536 struct passwd pw, *pwd; 33537 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; 33538} 33539 33540_ACEOF 33541rm -f conftest$ac_exeext 33542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33543 (eval $ac_link) 2>&5 33544 ac_status=$? 33545 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33546 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 33547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33548 (eval $ac_try) 2>&5 33549 ac_status=$? 33550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33551 (exit $ac_status); }; }; then 33552 ac_cv_func_getpwnam_r_posix=yes 33553else 33554 echo "$as_me: program exited with status $ac_status" >&5 33555echo "$as_me: failed program was:" >&5 33556cat conftest.$ac_ext >&5 33557( exit $ac_status ) 33558ac_cv_func_getpwnam_r_posix=no 33559fi 33560rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 33561fi 33562LIBS="$ac_libs" 33563fi 33564echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5 33565echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6 33566if test "$ac_cv_func_getpwnam_r_posix" = yes; then 33567 33568cat >>confdefs.h <<\_ACEOF 33569#define POSIX_GETPWNAM_R 1 33570_ACEOF 33571 33572fi 33573fi 33574 33575 33576 33577 33578for ac_func in getudbnam setlim 33579do 33580as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33581echo "$as_me:$LINENO: checking for $ac_func" >&5 33582echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33583if eval "test \"\${$as_ac_var+set}\" = set"; then 33584 echo $ECHO_N "(cached) $ECHO_C" >&6 33585else 33586 cat >conftest.$ac_ext <<_ACEOF 33587#line $LINENO "configure" 33588#include "confdefs.h" 33589/* System header to define __stub macros and hopefully few prototypes, 33590 which can conflict with char $ac_func (); below. */ 33591#include <assert.h> 33592/* Override any gcc2 internal prototype to avoid an error. */ 33593#ifdef __cplusplus 33594extern "C" 33595#endif 33596/* We use char because int might match the return type of a gcc2 33597 builtin and then its argument prototype would still apply. */ 33598char $ac_func (); 33599char (*f) (); 33600 33601#ifdef F77_DUMMY_MAIN 33602# ifdef __cplusplus 33603 extern "C" 33604# endif 33605 int F77_DUMMY_MAIN() { return 1; } 33606#endif 33607int 33608main () 33609{ 33610/* The GNU C library defines this for functions which it implements 33611 to always fail with ENOSYS. Some functions are actually named 33612 something starting with __ and the normal name is an alias. */ 33613#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33614choke me 33615#else 33616f = $ac_func; 33617#endif 33618 33619 ; 33620 return 0; 33621} 33622_ACEOF 33623rm -f conftest.$ac_objext conftest$ac_exeext 33624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33625 (eval $ac_link) 2>&5 33626 ac_status=$? 33627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33628 (exit $ac_status); } && 33629 { ac_try='test -s conftest$ac_exeext' 33630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33631 (eval $ac_try) 2>&5 33632 ac_status=$? 33633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33634 (exit $ac_status); }; }; then 33635 eval "$as_ac_var=yes" 33636else 33637 echo "$as_me: failed program was:" >&5 33638cat conftest.$ac_ext >&5 33639eval "$as_ac_var=no" 33640fi 33641rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33642fi 33643echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33644echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33645if test `eval echo '${'$as_ac_var'}'` = yes; then 33646 cat >>confdefs.h <<_ACEOF 33647#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33648_ACEOF 33649 33650fi 33651done 33652 33653 33654 33655 33656 33657 33658echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5 33659echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6 33660if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then 33661 echo $ECHO_N "(cached) $ECHO_C" >&6 33662else 33663 33664cat >conftest.$ac_ext <<_ACEOF 33665#line $LINENO "configure" 33666#include "confdefs.h" 33667#include <utmp.h> 33668#ifdef F77_DUMMY_MAIN 33669# ifdef __cplusplus 33670 extern "C" 33671# endif 33672 int F77_DUMMY_MAIN() { return 1; } 33673#endif 33674int 33675main () 33676{ 33677struct utmp x; x.ut_addr; 33678 ; 33679 return 0; 33680} 33681_ACEOF 33682rm -f conftest.$ac_objext 33683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33684 (eval $ac_compile) 2>&5 33685 ac_status=$? 33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33687 (exit $ac_status); } && 33688 { ac_try='test -s conftest.$ac_objext' 33689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33690 (eval $ac_try) 2>&5 33691 ac_status=$? 33692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33693 (exit $ac_status); }; }; then 33694 ac_cv_type_struct_utmp_ut_addr=yes 33695else 33696 echo "$as_me: failed program was:" >&5 33697cat conftest.$ac_ext >&5 33698ac_cv_type_struct_utmp_ut_addr=no 33699fi 33700rm -f conftest.$ac_objext conftest.$ac_ext 33701fi 33702echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5 33703echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6 33704if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 33705 33706 33707cat >>confdefs.h <<\_ACEOF 33708#define HAVE_STRUCT_UTMP_UT_ADDR 1 33709_ACEOF 33710 33711 33712fi 33713 33714 33715 33716 33717echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5 33718echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6 33719if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then 33720 echo $ECHO_N "(cached) $ECHO_C" >&6 33721else 33722 33723cat >conftest.$ac_ext <<_ACEOF 33724#line $LINENO "configure" 33725#include "confdefs.h" 33726#include <utmp.h> 33727#ifdef F77_DUMMY_MAIN 33728# ifdef __cplusplus 33729 extern "C" 33730# endif 33731 int F77_DUMMY_MAIN() { return 1; } 33732#endif 33733int 33734main () 33735{ 33736struct utmp x; x.ut_host; 33737 ; 33738 return 0; 33739} 33740_ACEOF 33741rm -f conftest.$ac_objext 33742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33743 (eval $ac_compile) 2>&5 33744 ac_status=$? 33745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33746 (exit $ac_status); } && 33747 { ac_try='test -s conftest.$ac_objext' 33748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33749 (eval $ac_try) 2>&5 33750 ac_status=$? 33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33752 (exit $ac_status); }; }; then 33753 ac_cv_type_struct_utmp_ut_host=yes 33754else 33755 echo "$as_me: failed program was:" >&5 33756cat conftest.$ac_ext >&5 33757ac_cv_type_struct_utmp_ut_host=no 33758fi 33759rm -f conftest.$ac_objext conftest.$ac_ext 33760fi 33761echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5 33762echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6 33763if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 33764 33765 33766cat >>confdefs.h <<\_ACEOF 33767#define HAVE_STRUCT_UTMP_UT_HOST 1 33768_ACEOF 33769 33770 33771fi 33772 33773 33774 33775 33776echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5 33777echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6 33778if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then 33779 echo $ECHO_N "(cached) $ECHO_C" >&6 33780else 33781 33782cat >conftest.$ac_ext <<_ACEOF 33783#line $LINENO "configure" 33784#include "confdefs.h" 33785#include <utmp.h> 33786#ifdef F77_DUMMY_MAIN 33787# ifdef __cplusplus 33788 extern "C" 33789# endif 33790 int F77_DUMMY_MAIN() { return 1; } 33791#endif 33792int 33793main () 33794{ 33795struct utmp x; x.ut_id; 33796 ; 33797 return 0; 33798} 33799_ACEOF 33800rm -f conftest.$ac_objext 33801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33802 (eval $ac_compile) 2>&5 33803 ac_status=$? 33804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33805 (exit $ac_status); } && 33806 { ac_try='test -s conftest.$ac_objext' 33807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33808 (eval $ac_try) 2>&5 33809 ac_status=$? 33810 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33811 (exit $ac_status); }; }; then 33812 ac_cv_type_struct_utmp_ut_id=yes 33813else 33814 echo "$as_me: failed program was:" >&5 33815cat conftest.$ac_ext >&5 33816ac_cv_type_struct_utmp_ut_id=no 33817fi 33818rm -f conftest.$ac_objext conftest.$ac_ext 33819fi 33820echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5 33821echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6 33822if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 33823 33824 33825cat >>confdefs.h <<\_ACEOF 33826#define HAVE_STRUCT_UTMP_UT_ID 1 33827_ACEOF 33828 33829 33830fi 33831 33832 33833 33834 33835echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5 33836echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6 33837if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then 33838 echo $ECHO_N "(cached) $ECHO_C" >&6 33839else 33840 33841cat >conftest.$ac_ext <<_ACEOF 33842#line $LINENO "configure" 33843#include "confdefs.h" 33844#include <utmp.h> 33845#ifdef F77_DUMMY_MAIN 33846# ifdef __cplusplus 33847 extern "C" 33848# endif 33849 int F77_DUMMY_MAIN() { return 1; } 33850#endif 33851int 33852main () 33853{ 33854struct utmp x; x.ut_pid; 33855 ; 33856 return 0; 33857} 33858_ACEOF 33859rm -f conftest.$ac_objext 33860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33861 (eval $ac_compile) 2>&5 33862 ac_status=$? 33863 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33864 (exit $ac_status); } && 33865 { ac_try='test -s conftest.$ac_objext' 33866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33867 (eval $ac_try) 2>&5 33868 ac_status=$? 33869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33870 (exit $ac_status); }; }; then 33871 ac_cv_type_struct_utmp_ut_pid=yes 33872else 33873 echo "$as_me: failed program was:" >&5 33874cat conftest.$ac_ext >&5 33875ac_cv_type_struct_utmp_ut_pid=no 33876fi 33877rm -f conftest.$ac_objext conftest.$ac_ext 33878fi 33879echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5 33880echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6 33881if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 33882 33883 33884cat >>confdefs.h <<\_ACEOF 33885#define HAVE_STRUCT_UTMP_UT_PID 1 33886_ACEOF 33887 33888 33889fi 33890 33891 33892 33893 33894echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5 33895echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6 33896if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then 33897 echo $ECHO_N "(cached) $ECHO_C" >&6 33898else 33899 33900cat >conftest.$ac_ext <<_ACEOF 33901#line $LINENO "configure" 33902#include "confdefs.h" 33903#include <utmp.h> 33904#ifdef F77_DUMMY_MAIN 33905# ifdef __cplusplus 33906 extern "C" 33907# endif 33908 int F77_DUMMY_MAIN() { return 1; } 33909#endif 33910int 33911main () 33912{ 33913struct utmp x; x.ut_type; 33914 ; 33915 return 0; 33916} 33917_ACEOF 33918rm -f conftest.$ac_objext 33919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33920 (eval $ac_compile) 2>&5 33921 ac_status=$? 33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33923 (exit $ac_status); } && 33924 { ac_try='test -s conftest.$ac_objext' 33925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33926 (eval $ac_try) 2>&5 33927 ac_status=$? 33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33929 (exit $ac_status); }; }; then 33930 ac_cv_type_struct_utmp_ut_type=yes 33931else 33932 echo "$as_me: failed program was:" >&5 33933cat conftest.$ac_ext >&5 33934ac_cv_type_struct_utmp_ut_type=no 33935fi 33936rm -f conftest.$ac_objext conftest.$ac_ext 33937fi 33938echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5 33939echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6 33940if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 33941 33942 33943cat >>confdefs.h <<\_ACEOF 33944#define HAVE_STRUCT_UTMP_UT_TYPE 1 33945_ACEOF 33946 33947 33948fi 33949 33950 33951 33952 33953echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5 33954echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6 33955if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then 33956 echo $ECHO_N "(cached) $ECHO_C" >&6 33957else 33958 33959cat >conftest.$ac_ext <<_ACEOF 33960#line $LINENO "configure" 33961#include "confdefs.h" 33962#include <utmp.h> 33963#ifdef F77_DUMMY_MAIN 33964# ifdef __cplusplus 33965 extern "C" 33966# endif 33967 int F77_DUMMY_MAIN() { return 1; } 33968#endif 33969int 33970main () 33971{ 33972struct utmp x; x.ut_user; 33973 ; 33974 return 0; 33975} 33976_ACEOF 33977rm -f conftest.$ac_objext 33978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33979 (eval $ac_compile) 2>&5 33980 ac_status=$? 33981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33982 (exit $ac_status); } && 33983 { ac_try='test -s conftest.$ac_objext' 33984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33985 (eval $ac_try) 2>&5 33986 ac_status=$? 33987 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33988 (exit $ac_status); }; }; then 33989 ac_cv_type_struct_utmp_ut_user=yes 33990else 33991 echo "$as_me: failed program was:" >&5 33992cat conftest.$ac_ext >&5 33993ac_cv_type_struct_utmp_ut_user=no 33994fi 33995rm -f conftest.$ac_objext conftest.$ac_ext 33996fi 33997echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5 33998echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6 33999if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 34000 34001 34002cat >>confdefs.h <<\_ACEOF 34003#define HAVE_STRUCT_UTMP_UT_USER 1 34004_ACEOF 34005 34006 34007fi 34008 34009 34010 34011 34012echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5 34013echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6 34014if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then 34015 echo $ECHO_N "(cached) $ECHO_C" >&6 34016else 34017 34018cat >conftest.$ac_ext <<_ACEOF 34019#line $LINENO "configure" 34020#include "confdefs.h" 34021#include <utmpx.h> 34022#ifdef F77_DUMMY_MAIN 34023# ifdef __cplusplus 34024 extern "C" 34025# endif 34026 int F77_DUMMY_MAIN() { return 1; } 34027#endif 34028int 34029main () 34030{ 34031struct utmpx x; x.ut_exit; 34032 ; 34033 return 0; 34034} 34035_ACEOF 34036rm -f conftest.$ac_objext 34037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34038 (eval $ac_compile) 2>&5 34039 ac_status=$? 34040 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34041 (exit $ac_status); } && 34042 { ac_try='test -s conftest.$ac_objext' 34043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34044 (eval $ac_try) 2>&5 34045 ac_status=$? 34046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34047 (exit $ac_status); }; }; then 34048 ac_cv_type_struct_utmpx_ut_exit=yes 34049else 34050 echo "$as_me: failed program was:" >&5 34051cat conftest.$ac_ext >&5 34052ac_cv_type_struct_utmpx_ut_exit=no 34053fi 34054rm -f conftest.$ac_objext conftest.$ac_ext 34055fi 34056echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5 34057echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6 34058if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 34059 34060 34061cat >>confdefs.h <<\_ACEOF 34062#define HAVE_STRUCT_UTMPX_UT_EXIT 1 34063_ACEOF 34064 34065 34066fi 34067 34068 34069 34070 34071echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5 34072echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6 34073if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then 34074 echo $ECHO_N "(cached) $ECHO_C" >&6 34075else 34076 34077cat >conftest.$ac_ext <<_ACEOF 34078#line $LINENO "configure" 34079#include "confdefs.h" 34080#include <utmpx.h> 34081#ifdef F77_DUMMY_MAIN 34082# ifdef __cplusplus 34083 extern "C" 34084# endif 34085 int F77_DUMMY_MAIN() { return 1; } 34086#endif 34087int 34088main () 34089{ 34090struct utmpx x; x.ut_syslen; 34091 ; 34092 return 0; 34093} 34094_ACEOF 34095rm -f conftest.$ac_objext 34096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34097 (eval $ac_compile) 2>&5 34098 ac_status=$? 34099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34100 (exit $ac_status); } && 34101 { ac_try='test -s conftest.$ac_objext' 34102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34103 (eval $ac_try) 2>&5 34104 ac_status=$? 34105 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34106 (exit $ac_status); }; }; then 34107 ac_cv_type_struct_utmpx_ut_syslen=yes 34108else 34109 echo "$as_me: failed program was:" >&5 34110cat conftest.$ac_ext >&5 34111ac_cv_type_struct_utmpx_ut_syslen=no 34112fi 34113rm -f conftest.$ac_objext conftest.$ac_ext 34114fi 34115echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5 34116echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6 34117if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 34118 34119 34120cat >>confdefs.h <<\_ACEOF 34121#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 34122_ACEOF 34123 34124 34125fi 34126 34127 34128 34129echo "$as_me:$LINENO: checking for int8_t" >&5 34130echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 34131if test "${ac_cv_type_int8_t+set}" = set; then 34132 echo $ECHO_N "(cached) $ECHO_C" >&6 34133else 34134 cat >conftest.$ac_ext <<_ACEOF 34135#line $LINENO "configure" 34136#include "confdefs.h" 34137 34138#ifdef HAVE_INTTYPES_H 34139#include <inttypes.h> 34140#endif 34141#ifdef HAVE_SYS_TYPES_H 34142#include <sys/types.h> 34143#endif 34144#ifdef HAVE_SYS_BITYPES_H 34145#include <sys/bitypes.h> 34146#endif 34147#ifdef HAVE_BIND_BITYPES_H 34148#include <bind/bitypes.h> 34149#endif 34150#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34151#include <netinet/in6_machtypes.h> 34152#endif 34153 34154 34155#ifdef F77_DUMMY_MAIN 34156# ifdef __cplusplus 34157 extern "C" 34158# endif 34159 int F77_DUMMY_MAIN() { return 1; } 34160#endif 34161int 34162main () 34163{ 34164if ((int8_t *) 0) 34165 return 0; 34166if (sizeof (int8_t)) 34167 return 0; 34168 ; 34169 return 0; 34170} 34171_ACEOF 34172rm -f conftest.$ac_objext 34173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34174 (eval $ac_compile) 2>&5 34175 ac_status=$? 34176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34177 (exit $ac_status); } && 34178 { ac_try='test -s conftest.$ac_objext' 34179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34180 (eval $ac_try) 2>&5 34181 ac_status=$? 34182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34183 (exit $ac_status); }; }; then 34184 ac_cv_type_int8_t=yes 34185else 34186 echo "$as_me: failed program was:" >&5 34187cat conftest.$ac_ext >&5 34188ac_cv_type_int8_t=no 34189fi 34190rm -f conftest.$ac_objext conftest.$ac_ext 34191fi 34192echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 34193echo "${ECHO_T}$ac_cv_type_int8_t" >&6 34194if test $ac_cv_type_int8_t = yes; then 34195 34196cat >>confdefs.h <<_ACEOF 34197#define HAVE_INT8_T 1 34198_ACEOF 34199 34200 34201fi 34202echo "$as_me:$LINENO: checking for int16_t" >&5 34203echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 34204if test "${ac_cv_type_int16_t+set}" = set; then 34205 echo $ECHO_N "(cached) $ECHO_C" >&6 34206else 34207 cat >conftest.$ac_ext <<_ACEOF 34208#line $LINENO "configure" 34209#include "confdefs.h" 34210 34211#ifdef HAVE_INTTYPES_H 34212#include <inttypes.h> 34213#endif 34214#ifdef HAVE_SYS_TYPES_H 34215#include <sys/types.h> 34216#endif 34217#ifdef HAVE_SYS_BITYPES_H 34218#include <sys/bitypes.h> 34219#endif 34220#ifdef HAVE_BIND_BITYPES_H 34221#include <bind/bitypes.h> 34222#endif 34223#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34224#include <netinet/in6_machtypes.h> 34225#endif 34226 34227 34228#ifdef F77_DUMMY_MAIN 34229# ifdef __cplusplus 34230 extern "C" 34231# endif 34232 int F77_DUMMY_MAIN() { return 1; } 34233#endif 34234int 34235main () 34236{ 34237if ((int16_t *) 0) 34238 return 0; 34239if (sizeof (int16_t)) 34240 return 0; 34241 ; 34242 return 0; 34243} 34244_ACEOF 34245rm -f conftest.$ac_objext 34246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34247 (eval $ac_compile) 2>&5 34248 ac_status=$? 34249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34250 (exit $ac_status); } && 34251 { ac_try='test -s conftest.$ac_objext' 34252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34253 (eval $ac_try) 2>&5 34254 ac_status=$? 34255 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34256 (exit $ac_status); }; }; then 34257 ac_cv_type_int16_t=yes 34258else 34259 echo "$as_me: failed program was:" >&5 34260cat conftest.$ac_ext >&5 34261ac_cv_type_int16_t=no 34262fi 34263rm -f conftest.$ac_objext conftest.$ac_ext 34264fi 34265echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 34266echo "${ECHO_T}$ac_cv_type_int16_t" >&6 34267if test $ac_cv_type_int16_t = yes; then 34268 34269cat >>confdefs.h <<_ACEOF 34270#define HAVE_INT16_T 1 34271_ACEOF 34272 34273 34274fi 34275echo "$as_me:$LINENO: checking for int32_t" >&5 34276echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 34277if test "${ac_cv_type_int32_t+set}" = set; then 34278 echo $ECHO_N "(cached) $ECHO_C" >&6 34279else 34280 cat >conftest.$ac_ext <<_ACEOF 34281#line $LINENO "configure" 34282#include "confdefs.h" 34283 34284#ifdef HAVE_INTTYPES_H 34285#include <inttypes.h> 34286#endif 34287#ifdef HAVE_SYS_TYPES_H 34288#include <sys/types.h> 34289#endif 34290#ifdef HAVE_SYS_BITYPES_H 34291#include <sys/bitypes.h> 34292#endif 34293#ifdef HAVE_BIND_BITYPES_H 34294#include <bind/bitypes.h> 34295#endif 34296#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34297#include <netinet/in6_machtypes.h> 34298#endif 34299 34300 34301#ifdef F77_DUMMY_MAIN 34302# ifdef __cplusplus 34303 extern "C" 34304# endif 34305 int F77_DUMMY_MAIN() { return 1; } 34306#endif 34307int 34308main () 34309{ 34310if ((int32_t *) 0) 34311 return 0; 34312if (sizeof (int32_t)) 34313 return 0; 34314 ; 34315 return 0; 34316} 34317_ACEOF 34318rm -f conftest.$ac_objext 34319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34320 (eval $ac_compile) 2>&5 34321 ac_status=$? 34322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34323 (exit $ac_status); } && 34324 { ac_try='test -s conftest.$ac_objext' 34325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34326 (eval $ac_try) 2>&5 34327 ac_status=$? 34328 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34329 (exit $ac_status); }; }; then 34330 ac_cv_type_int32_t=yes 34331else 34332 echo "$as_me: failed program was:" >&5 34333cat conftest.$ac_ext >&5 34334ac_cv_type_int32_t=no 34335fi 34336rm -f conftest.$ac_objext conftest.$ac_ext 34337fi 34338echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 34339echo "${ECHO_T}$ac_cv_type_int32_t" >&6 34340if test $ac_cv_type_int32_t = yes; then 34341 34342cat >>confdefs.h <<_ACEOF 34343#define HAVE_INT32_T 1 34344_ACEOF 34345 34346 34347fi 34348echo "$as_me:$LINENO: checking for int64_t" >&5 34349echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 34350if test "${ac_cv_type_int64_t+set}" = set; then 34351 echo $ECHO_N "(cached) $ECHO_C" >&6 34352else 34353 cat >conftest.$ac_ext <<_ACEOF 34354#line $LINENO "configure" 34355#include "confdefs.h" 34356 34357#ifdef HAVE_INTTYPES_H 34358#include <inttypes.h> 34359#endif 34360#ifdef HAVE_SYS_TYPES_H 34361#include <sys/types.h> 34362#endif 34363#ifdef HAVE_SYS_BITYPES_H 34364#include <sys/bitypes.h> 34365#endif 34366#ifdef HAVE_BIND_BITYPES_H 34367#include <bind/bitypes.h> 34368#endif 34369#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34370#include <netinet/in6_machtypes.h> 34371#endif 34372 34373 34374#ifdef F77_DUMMY_MAIN 34375# ifdef __cplusplus 34376 extern "C" 34377# endif 34378 int F77_DUMMY_MAIN() { return 1; } 34379#endif 34380int 34381main () 34382{ 34383if ((int64_t *) 0) 34384 return 0; 34385if (sizeof (int64_t)) 34386 return 0; 34387 ; 34388 return 0; 34389} 34390_ACEOF 34391rm -f conftest.$ac_objext 34392if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34393 (eval $ac_compile) 2>&5 34394 ac_status=$? 34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34396 (exit $ac_status); } && 34397 { ac_try='test -s conftest.$ac_objext' 34398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34399 (eval $ac_try) 2>&5 34400 ac_status=$? 34401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34402 (exit $ac_status); }; }; then 34403 ac_cv_type_int64_t=yes 34404else 34405 echo "$as_me: failed program was:" >&5 34406cat conftest.$ac_ext >&5 34407ac_cv_type_int64_t=no 34408fi 34409rm -f conftest.$ac_objext conftest.$ac_ext 34410fi 34411echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 34412echo "${ECHO_T}$ac_cv_type_int64_t" >&6 34413if test $ac_cv_type_int64_t = yes; then 34414 34415cat >>confdefs.h <<_ACEOF 34416#define HAVE_INT64_T 1 34417_ACEOF 34418 34419 34420fi 34421echo "$as_me:$LINENO: checking for u_int8_t" >&5 34422echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 34423if test "${ac_cv_type_u_int8_t+set}" = set; then 34424 echo $ECHO_N "(cached) $ECHO_C" >&6 34425else 34426 cat >conftest.$ac_ext <<_ACEOF 34427#line $LINENO "configure" 34428#include "confdefs.h" 34429 34430#ifdef HAVE_INTTYPES_H 34431#include <inttypes.h> 34432#endif 34433#ifdef HAVE_SYS_TYPES_H 34434#include <sys/types.h> 34435#endif 34436#ifdef HAVE_SYS_BITYPES_H 34437#include <sys/bitypes.h> 34438#endif 34439#ifdef HAVE_BIND_BITYPES_H 34440#include <bind/bitypes.h> 34441#endif 34442#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34443#include <netinet/in6_machtypes.h> 34444#endif 34445 34446 34447#ifdef F77_DUMMY_MAIN 34448# ifdef __cplusplus 34449 extern "C" 34450# endif 34451 int F77_DUMMY_MAIN() { return 1; } 34452#endif 34453int 34454main () 34455{ 34456if ((u_int8_t *) 0) 34457 return 0; 34458if (sizeof (u_int8_t)) 34459 return 0; 34460 ; 34461 return 0; 34462} 34463_ACEOF 34464rm -f conftest.$ac_objext 34465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34466 (eval $ac_compile) 2>&5 34467 ac_status=$? 34468 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34469 (exit $ac_status); } && 34470 { ac_try='test -s conftest.$ac_objext' 34471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34472 (eval $ac_try) 2>&5 34473 ac_status=$? 34474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34475 (exit $ac_status); }; }; then 34476 ac_cv_type_u_int8_t=yes 34477else 34478 echo "$as_me: failed program was:" >&5 34479cat conftest.$ac_ext >&5 34480ac_cv_type_u_int8_t=no 34481fi 34482rm -f conftest.$ac_objext conftest.$ac_ext 34483fi 34484echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 34485echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 34486if test $ac_cv_type_u_int8_t = yes; then 34487 34488cat >>confdefs.h <<_ACEOF 34489#define HAVE_U_INT8_T 1 34490_ACEOF 34491 34492 34493fi 34494echo "$as_me:$LINENO: checking for u_int16_t" >&5 34495echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 34496if test "${ac_cv_type_u_int16_t+set}" = set; then 34497 echo $ECHO_N "(cached) $ECHO_C" >&6 34498else 34499 cat >conftest.$ac_ext <<_ACEOF 34500#line $LINENO "configure" 34501#include "confdefs.h" 34502 34503#ifdef HAVE_INTTYPES_H 34504#include <inttypes.h> 34505#endif 34506#ifdef HAVE_SYS_TYPES_H 34507#include <sys/types.h> 34508#endif 34509#ifdef HAVE_SYS_BITYPES_H 34510#include <sys/bitypes.h> 34511#endif 34512#ifdef HAVE_BIND_BITYPES_H 34513#include <bind/bitypes.h> 34514#endif 34515#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34516#include <netinet/in6_machtypes.h> 34517#endif 34518 34519 34520#ifdef F77_DUMMY_MAIN 34521# ifdef __cplusplus 34522 extern "C" 34523# endif 34524 int F77_DUMMY_MAIN() { return 1; } 34525#endif 34526int 34527main () 34528{ 34529if ((u_int16_t *) 0) 34530 return 0; 34531if (sizeof (u_int16_t)) 34532 return 0; 34533 ; 34534 return 0; 34535} 34536_ACEOF 34537rm -f conftest.$ac_objext 34538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34539 (eval $ac_compile) 2>&5 34540 ac_status=$? 34541 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34542 (exit $ac_status); } && 34543 { ac_try='test -s conftest.$ac_objext' 34544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34545 (eval $ac_try) 2>&5 34546 ac_status=$? 34547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34548 (exit $ac_status); }; }; then 34549 ac_cv_type_u_int16_t=yes 34550else 34551 echo "$as_me: failed program was:" >&5 34552cat conftest.$ac_ext >&5 34553ac_cv_type_u_int16_t=no 34554fi 34555rm -f conftest.$ac_objext conftest.$ac_ext 34556fi 34557echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 34558echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 34559if test $ac_cv_type_u_int16_t = yes; then 34560 34561cat >>confdefs.h <<_ACEOF 34562#define HAVE_U_INT16_T 1 34563_ACEOF 34564 34565 34566fi 34567echo "$as_me:$LINENO: checking for u_int32_t" >&5 34568echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 34569if test "${ac_cv_type_u_int32_t+set}" = set; then 34570 echo $ECHO_N "(cached) $ECHO_C" >&6 34571else 34572 cat >conftest.$ac_ext <<_ACEOF 34573#line $LINENO "configure" 34574#include "confdefs.h" 34575 34576#ifdef HAVE_INTTYPES_H 34577#include <inttypes.h> 34578#endif 34579#ifdef HAVE_SYS_TYPES_H 34580#include <sys/types.h> 34581#endif 34582#ifdef HAVE_SYS_BITYPES_H 34583#include <sys/bitypes.h> 34584#endif 34585#ifdef HAVE_BIND_BITYPES_H 34586#include <bind/bitypes.h> 34587#endif 34588#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34589#include <netinet/in6_machtypes.h> 34590#endif 34591 34592 34593#ifdef F77_DUMMY_MAIN 34594# ifdef __cplusplus 34595 extern "C" 34596# endif 34597 int F77_DUMMY_MAIN() { return 1; } 34598#endif 34599int 34600main () 34601{ 34602if ((u_int32_t *) 0) 34603 return 0; 34604if (sizeof (u_int32_t)) 34605 return 0; 34606 ; 34607 return 0; 34608} 34609_ACEOF 34610rm -f conftest.$ac_objext 34611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34612 (eval $ac_compile) 2>&5 34613 ac_status=$? 34614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34615 (exit $ac_status); } && 34616 { ac_try='test -s conftest.$ac_objext' 34617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34618 (eval $ac_try) 2>&5 34619 ac_status=$? 34620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34621 (exit $ac_status); }; }; then 34622 ac_cv_type_u_int32_t=yes 34623else 34624 echo "$as_me: failed program was:" >&5 34625cat conftest.$ac_ext >&5 34626ac_cv_type_u_int32_t=no 34627fi 34628rm -f conftest.$ac_objext conftest.$ac_ext 34629fi 34630echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 34631echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 34632if test $ac_cv_type_u_int32_t = yes; then 34633 34634cat >>confdefs.h <<_ACEOF 34635#define HAVE_U_INT32_T 1 34636_ACEOF 34637 34638 34639fi 34640echo "$as_me:$LINENO: checking for u_int64_t" >&5 34641echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 34642if test "${ac_cv_type_u_int64_t+set}" = set; then 34643 echo $ECHO_N "(cached) $ECHO_C" >&6 34644else 34645 cat >conftest.$ac_ext <<_ACEOF 34646#line $LINENO "configure" 34647#include "confdefs.h" 34648 34649#ifdef HAVE_INTTYPES_H 34650#include <inttypes.h> 34651#endif 34652#ifdef HAVE_SYS_TYPES_H 34653#include <sys/types.h> 34654#endif 34655#ifdef HAVE_SYS_BITYPES_H 34656#include <sys/bitypes.h> 34657#endif 34658#ifdef HAVE_BIND_BITYPES_H 34659#include <bind/bitypes.h> 34660#endif 34661#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34662#include <netinet/in6_machtypes.h> 34663#endif 34664 34665 34666#ifdef F77_DUMMY_MAIN 34667# ifdef __cplusplus 34668 extern "C" 34669# endif 34670 int F77_DUMMY_MAIN() { return 1; } 34671#endif 34672int 34673main () 34674{ 34675if ((u_int64_t *) 0) 34676 return 0; 34677if (sizeof (u_int64_t)) 34678 return 0; 34679 ; 34680 return 0; 34681} 34682_ACEOF 34683rm -f conftest.$ac_objext 34684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34685 (eval $ac_compile) 2>&5 34686 ac_status=$? 34687 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34688 (exit $ac_status); } && 34689 { ac_try='test -s conftest.$ac_objext' 34690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34691 (eval $ac_try) 2>&5 34692 ac_status=$? 34693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34694 (exit $ac_status); }; }; then 34695 ac_cv_type_u_int64_t=yes 34696else 34697 echo "$as_me: failed program was:" >&5 34698cat conftest.$ac_ext >&5 34699ac_cv_type_u_int64_t=no 34700fi 34701rm -f conftest.$ac_objext conftest.$ac_ext 34702fi 34703echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 34704echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 34705if test $ac_cv_type_u_int64_t = yes; then 34706 34707cat >>confdefs.h <<_ACEOF 34708#define HAVE_U_INT64_T 1 34709_ACEOF 34710 34711 34712fi 34713echo "$as_me:$LINENO: checking for uint8_t" >&5 34714echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 34715if test "${ac_cv_type_uint8_t+set}" = set; then 34716 echo $ECHO_N "(cached) $ECHO_C" >&6 34717else 34718 cat >conftest.$ac_ext <<_ACEOF 34719#line $LINENO "configure" 34720#include "confdefs.h" 34721 34722#ifdef HAVE_INTTYPES_H 34723#include <inttypes.h> 34724#endif 34725#ifdef HAVE_SYS_TYPES_H 34726#include <sys/types.h> 34727#endif 34728#ifdef HAVE_SYS_BITYPES_H 34729#include <sys/bitypes.h> 34730#endif 34731#ifdef HAVE_BIND_BITYPES_H 34732#include <bind/bitypes.h> 34733#endif 34734#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34735#include <netinet/in6_machtypes.h> 34736#endif 34737 34738 34739#ifdef F77_DUMMY_MAIN 34740# ifdef __cplusplus 34741 extern "C" 34742# endif 34743 int F77_DUMMY_MAIN() { return 1; } 34744#endif 34745int 34746main () 34747{ 34748if ((uint8_t *) 0) 34749 return 0; 34750if (sizeof (uint8_t)) 34751 return 0; 34752 ; 34753 return 0; 34754} 34755_ACEOF 34756rm -f conftest.$ac_objext 34757if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34758 (eval $ac_compile) 2>&5 34759 ac_status=$? 34760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34761 (exit $ac_status); } && 34762 { ac_try='test -s conftest.$ac_objext' 34763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34764 (eval $ac_try) 2>&5 34765 ac_status=$? 34766 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34767 (exit $ac_status); }; }; then 34768 ac_cv_type_uint8_t=yes 34769else 34770 echo "$as_me: failed program was:" >&5 34771cat conftest.$ac_ext >&5 34772ac_cv_type_uint8_t=no 34773fi 34774rm -f conftest.$ac_objext conftest.$ac_ext 34775fi 34776echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 34777echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 34778if test $ac_cv_type_uint8_t = yes; then 34779 34780cat >>confdefs.h <<_ACEOF 34781#define HAVE_UINT8_T 1 34782_ACEOF 34783 34784 34785fi 34786echo "$as_me:$LINENO: checking for uint16_t" >&5 34787echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 34788if test "${ac_cv_type_uint16_t+set}" = set; then 34789 echo $ECHO_N "(cached) $ECHO_C" >&6 34790else 34791 cat >conftest.$ac_ext <<_ACEOF 34792#line $LINENO "configure" 34793#include "confdefs.h" 34794 34795#ifdef HAVE_INTTYPES_H 34796#include <inttypes.h> 34797#endif 34798#ifdef HAVE_SYS_TYPES_H 34799#include <sys/types.h> 34800#endif 34801#ifdef HAVE_SYS_BITYPES_H 34802#include <sys/bitypes.h> 34803#endif 34804#ifdef HAVE_BIND_BITYPES_H 34805#include <bind/bitypes.h> 34806#endif 34807#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34808#include <netinet/in6_machtypes.h> 34809#endif 34810 34811 34812#ifdef F77_DUMMY_MAIN 34813# ifdef __cplusplus 34814 extern "C" 34815# endif 34816 int F77_DUMMY_MAIN() { return 1; } 34817#endif 34818int 34819main () 34820{ 34821if ((uint16_t *) 0) 34822 return 0; 34823if (sizeof (uint16_t)) 34824 return 0; 34825 ; 34826 return 0; 34827} 34828_ACEOF 34829rm -f conftest.$ac_objext 34830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34831 (eval $ac_compile) 2>&5 34832 ac_status=$? 34833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34834 (exit $ac_status); } && 34835 { ac_try='test -s conftest.$ac_objext' 34836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34837 (eval $ac_try) 2>&5 34838 ac_status=$? 34839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34840 (exit $ac_status); }; }; then 34841 ac_cv_type_uint16_t=yes 34842else 34843 echo "$as_me: failed program was:" >&5 34844cat conftest.$ac_ext >&5 34845ac_cv_type_uint16_t=no 34846fi 34847rm -f conftest.$ac_objext conftest.$ac_ext 34848fi 34849echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 34850echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 34851if test $ac_cv_type_uint16_t = yes; then 34852 34853cat >>confdefs.h <<_ACEOF 34854#define HAVE_UINT16_T 1 34855_ACEOF 34856 34857 34858fi 34859echo "$as_me:$LINENO: checking for uint32_t" >&5 34860echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 34861if test "${ac_cv_type_uint32_t+set}" = set; then 34862 echo $ECHO_N "(cached) $ECHO_C" >&6 34863else 34864 cat >conftest.$ac_ext <<_ACEOF 34865#line $LINENO "configure" 34866#include "confdefs.h" 34867 34868#ifdef HAVE_INTTYPES_H 34869#include <inttypes.h> 34870#endif 34871#ifdef HAVE_SYS_TYPES_H 34872#include <sys/types.h> 34873#endif 34874#ifdef HAVE_SYS_BITYPES_H 34875#include <sys/bitypes.h> 34876#endif 34877#ifdef HAVE_BIND_BITYPES_H 34878#include <bind/bitypes.h> 34879#endif 34880#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34881#include <netinet/in6_machtypes.h> 34882#endif 34883 34884 34885#ifdef F77_DUMMY_MAIN 34886# ifdef __cplusplus 34887 extern "C" 34888# endif 34889 int F77_DUMMY_MAIN() { return 1; } 34890#endif 34891int 34892main () 34893{ 34894if ((uint32_t *) 0) 34895 return 0; 34896if (sizeof (uint32_t)) 34897 return 0; 34898 ; 34899 return 0; 34900} 34901_ACEOF 34902rm -f conftest.$ac_objext 34903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34904 (eval $ac_compile) 2>&5 34905 ac_status=$? 34906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34907 (exit $ac_status); } && 34908 { ac_try='test -s conftest.$ac_objext' 34909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34910 (eval $ac_try) 2>&5 34911 ac_status=$? 34912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34913 (exit $ac_status); }; }; then 34914 ac_cv_type_uint32_t=yes 34915else 34916 echo "$as_me: failed program was:" >&5 34917cat conftest.$ac_ext >&5 34918ac_cv_type_uint32_t=no 34919fi 34920rm -f conftest.$ac_objext conftest.$ac_ext 34921fi 34922echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 34923echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 34924if test $ac_cv_type_uint32_t = yes; then 34925 34926cat >>confdefs.h <<_ACEOF 34927#define HAVE_UINT32_T 1 34928_ACEOF 34929 34930 34931fi 34932echo "$as_me:$LINENO: checking for uint64_t" >&5 34933echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 34934if test "${ac_cv_type_uint64_t+set}" = set; then 34935 echo $ECHO_N "(cached) $ECHO_C" >&6 34936else 34937 cat >conftest.$ac_ext <<_ACEOF 34938#line $LINENO "configure" 34939#include "confdefs.h" 34940 34941#ifdef HAVE_INTTYPES_H 34942#include <inttypes.h> 34943#endif 34944#ifdef HAVE_SYS_TYPES_H 34945#include <sys/types.h> 34946#endif 34947#ifdef HAVE_SYS_BITYPES_H 34948#include <sys/bitypes.h> 34949#endif 34950#ifdef HAVE_BIND_BITYPES_H 34951#include <bind/bitypes.h> 34952#endif 34953#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34954#include <netinet/in6_machtypes.h> 34955#endif 34956 34957 34958#ifdef F77_DUMMY_MAIN 34959# ifdef __cplusplus 34960 extern "C" 34961# endif 34962 int F77_DUMMY_MAIN() { return 1; } 34963#endif 34964int 34965main () 34966{ 34967if ((uint64_t *) 0) 34968 return 0; 34969if (sizeof (uint64_t)) 34970 return 0; 34971 ; 34972 return 0; 34973} 34974_ACEOF 34975rm -f conftest.$ac_objext 34976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34977 (eval $ac_compile) 2>&5 34978 ac_status=$? 34979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34980 (exit $ac_status); } && 34981 { ac_try='test -s conftest.$ac_objext' 34982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34983 (eval $ac_try) 2>&5 34984 ac_status=$? 34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34986 (exit $ac_status); }; }; then 34987 ac_cv_type_uint64_t=yes 34988else 34989 echo "$as_me: failed program was:" >&5 34990cat conftest.$ac_ext >&5 34991ac_cv_type_uint64_t=no 34992fi 34993rm -f conftest.$ac_objext conftest.$ac_ext 34994fi 34995echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 34996echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 34997if test $ac_cv_type_uint64_t = yes; then 34998 34999cat >>confdefs.h <<_ACEOF 35000#define HAVE_UINT64_T 1 35001_ACEOF 35002 35003 35004fi 35005 35006 35007 35008 35009 35010 35011echo "$as_me:$LINENO: checking for el_init" >&5 35012echo $ECHO_N "checking for el_init... $ECHO_C" >&6 35013if test "${ac_cv_funclib_el_init+set}" = set; then 35014 echo $ECHO_N "(cached) $ECHO_C" >&6 35015else 35016 35017if eval "test \"\$ac_cv_func_el_init\" != yes" ; then 35018 ac_save_LIBS="$LIBS" 35019 for ac_lib in "" edit; do 35020 case "$ac_lib" in 35021 "") ;; 35022 yes) ac_lib="" ;; 35023 no) continue ;; 35024 -l*) ;; 35025 *) ac_lib="-l$ac_lib" ;; 35026 esac 35027 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS" 35028 cat >conftest.$ac_ext <<_ACEOF 35029#line $LINENO "configure" 35030#include "confdefs.h" 35031 35032#ifdef F77_DUMMY_MAIN 35033# ifdef __cplusplus 35034 extern "C" 35035# endif 35036 int F77_DUMMY_MAIN() { return 1; } 35037#endif 35038int 35039main () 35040{ 35041el_init() 35042 ; 35043 return 0; 35044} 35045_ACEOF 35046rm -f conftest.$ac_objext conftest$ac_exeext 35047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35048 (eval $ac_link) 2>&5 35049 ac_status=$? 35050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35051 (exit $ac_status); } && 35052 { ac_try='test -s conftest$ac_exeext' 35053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35054 (eval $ac_try) 2>&5 35055 ac_status=$? 35056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35057 (exit $ac_status); }; }; then 35058 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break 35059else 35060 echo "$as_me: failed program was:" >&5 35061cat conftest.$ac_ext >&5 35062fi 35063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35064 done 35065 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}" 35066 LIBS="$ac_save_LIBS" 35067fi 35068 35069fi 35070 35071 35072eval "ac_res=\$ac_cv_funclib_el_init" 35073 35074if false; then 35075 35076for ac_func in el_init 35077do 35078as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 35079echo "$as_me:$LINENO: checking for $ac_func" >&5 35080echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 35081if eval "test \"\${$as_ac_var+set}\" = set"; then 35082 echo $ECHO_N "(cached) $ECHO_C" >&6 35083else 35084 cat >conftest.$ac_ext <<_ACEOF 35085#line $LINENO "configure" 35086#include "confdefs.h" 35087/* System header to define __stub macros and hopefully few prototypes, 35088 which can conflict with char $ac_func (); below. */ 35089#include <assert.h> 35090/* Override any gcc2 internal prototype to avoid an error. */ 35091#ifdef __cplusplus 35092extern "C" 35093#endif 35094/* We use char because int might match the return type of a gcc2 35095 builtin and then its argument prototype would still apply. */ 35096char $ac_func (); 35097char (*f) (); 35098 35099#ifdef F77_DUMMY_MAIN 35100# ifdef __cplusplus 35101 extern "C" 35102# endif 35103 int F77_DUMMY_MAIN() { return 1; } 35104#endif 35105int 35106main () 35107{ 35108/* The GNU C library defines this for functions which it implements 35109 to always fail with ENOSYS. Some functions are actually named 35110 something starting with __ and the normal name is an alias. */ 35111#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 35112choke me 35113#else 35114f = $ac_func; 35115#endif 35116 35117 ; 35118 return 0; 35119} 35120_ACEOF 35121rm -f conftest.$ac_objext conftest$ac_exeext 35122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35123 (eval $ac_link) 2>&5 35124 ac_status=$? 35125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35126 (exit $ac_status); } && 35127 { ac_try='test -s conftest$ac_exeext' 35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35129 (eval $ac_try) 2>&5 35130 ac_status=$? 35131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35132 (exit $ac_status); }; }; then 35133 eval "$as_ac_var=yes" 35134else 35135 echo "$as_me: failed program was:" >&5 35136cat conftest.$ac_ext >&5 35137eval "$as_ac_var=no" 35138fi 35139rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35140fi 35141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 35142echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 35143if test `eval echo '${'$as_ac_var'}'` = yes; then 35144 cat >>confdefs.h <<_ACEOF 35145#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 35146_ACEOF 35147 35148fi 35149done 35150 35151fi 35152# el_init 35153eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 35154eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 35155eval "LIB_el_init=$ac_res" 35156 35157case "$ac_res" in 35158 yes) 35159 eval "ac_cv_func_el_init=yes" 35160 eval "LIB_el_init=" 35161 cat >>confdefs.h <<_ACEOF 35162#define $ac_tr_func 1 35163_ACEOF 35164 35165 echo "$as_me:$LINENO: result: yes" >&5 35166echo "${ECHO_T}yes" >&6 35167 ;; 35168 no) 35169 eval "ac_cv_func_el_init=no" 35170 eval "LIB_el_init=" 35171 echo "$as_me:$LINENO: result: no" >&5 35172echo "${ECHO_T}no" >&6 35173 ;; 35174 *) 35175 eval "ac_cv_func_el_init=yes" 35176 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 35177 cat >>confdefs.h <<_ACEOF 35178#define $ac_tr_func 1 35179_ACEOF 35180 35181 cat >>confdefs.h <<_ACEOF 35182#define $ac_tr_lib 1 35183_ACEOF 35184 35185 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 35186echo "${ECHO_T}yes, in $ac_res" >&6 35187 ;; 35188esac 35189 35190 35191if test "$ac_cv_func_el_init" = yes ; then 35192 echo "$as_me:$LINENO: checking for four argument el_init" >&5 35193echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6 35194if test "${ac_cv_func_el_init_four+set}" = set; then 35195 echo $ECHO_N "(cached) $ECHO_C" >&6 35196else 35197 35198 cat >conftest.$ac_ext <<_ACEOF 35199#line $LINENO "configure" 35200#include "confdefs.h" 35201#include <stdio.h> 35202 #include <histedit.h> 35203#ifdef F77_DUMMY_MAIN 35204# ifdef __cplusplus 35205 extern "C" 35206# endif 35207 int F77_DUMMY_MAIN() { return 1; } 35208#endif 35209int 35210main () 35211{ 35212el_init("", NULL, NULL, NULL); 35213 ; 35214 return 0; 35215} 35216_ACEOF 35217rm -f conftest.$ac_objext 35218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35219 (eval $ac_compile) 2>&5 35220 ac_status=$? 35221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35222 (exit $ac_status); } && 35223 { ac_try='test -s conftest.$ac_objext' 35224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35225 (eval $ac_try) 2>&5 35226 ac_status=$? 35227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35228 (exit $ac_status); }; }; then 35229 ac_cv_func_el_init_four=yes 35230else 35231 echo "$as_me: failed program was:" >&5 35232cat conftest.$ac_ext >&5 35233ac_cv_func_el_init_four=no 35234fi 35235rm -f conftest.$ac_objext conftest.$ac_ext 35236fi 35237echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5 35238echo "${ECHO_T}$ac_cv_func_el_init_four" >&6 35239 if test "$ac_cv_func_el_init_four" = yes; then 35240 35241cat >>confdefs.h <<\_ACEOF 35242#define HAVE_FOUR_VALUED_EL_INIT 1 35243_ACEOF 35244 35245 fi 35246fi 35247 35248 35249ac_foo=no 35250if test "$with_readline" = yes; then 35251 : 35252elif test "$ac_cv_func_readline" = yes; then 35253 : 35254elif test "$ac_cv_func_el_init" = yes; then 35255 ac_foo=yes 35256 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)" 35257else 35258 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)" 35259fi 35260 35261 35262if test "$ac_foo" = yes; then 35263 el_compat_TRUE= 35264 el_compat_FALSE='#' 35265else 35266 el_compat_TRUE='#' 35267 el_compat_FALSE= 35268fi 35269 35270 35271cat >>confdefs.h <<\_ACEOF 35272#define HAVE_READLINE 1 35273_ACEOF 35274 35275 35276 35277 35278 35279cat >>confdefs.h <<\_ACEOF 35280#define AUTHENTICATION 1 35281_ACEOF 35282 35283cat >>confdefs.h <<\_ACEOF 35284#define ENCRYPTION 1 35285_ACEOF 35286 35287cat >>confdefs.h <<\_ACEOF 35288#define DES_ENCRYPTION 1 35289_ACEOF 35290 35291cat >>confdefs.h <<\_ACEOF 35292#define DIAGNOSTICS 1 35293_ACEOF 35294 35295cat >>confdefs.h <<\_ACEOF 35296#define OLD_ENVIRON 1 35297_ACEOF 35298if false; then 35299 35300cat >>confdefs.h <<\_ACEOF 35301#define ENV_HACK 1 35302_ACEOF 35303 35304fi 35305 35306# Simple test for streamspty, based on the existance of getmsg(), alas 35307# this breaks on SunOS4 which have streams but BSD-like ptys 35308# 35309# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 35310 35311case "$host" in 35312*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 35313 ;; 35314*) 35315 echo "$as_me:$LINENO: checking for getmsg" >&5 35316echo $ECHO_N "checking for getmsg... $ECHO_C" >&6 35317if test "${ac_cv_func_getmsg+set}" = set; then 35318 echo $ECHO_N "(cached) $ECHO_C" >&6 35319else 35320 cat >conftest.$ac_ext <<_ACEOF 35321#line $LINENO "configure" 35322#include "confdefs.h" 35323/* System header to define __stub macros and hopefully few prototypes, 35324 which can conflict with char getmsg (); below. */ 35325#include <assert.h> 35326/* Override any gcc2 internal prototype to avoid an error. */ 35327#ifdef __cplusplus 35328extern "C" 35329#endif 35330/* We use char because int might match the return type of a gcc2 35331 builtin and then its argument prototype would still apply. */ 35332char getmsg (); 35333char (*f) (); 35334 35335#ifdef F77_DUMMY_MAIN 35336# ifdef __cplusplus 35337 extern "C" 35338# endif 35339 int F77_DUMMY_MAIN() { return 1; } 35340#endif 35341int 35342main () 35343{ 35344/* The GNU C library defines this for functions which it implements 35345 to always fail with ENOSYS. Some functions are actually named 35346 something starting with __ and the normal name is an alias. */ 35347#if defined (__stub_getmsg) || defined (__stub___getmsg) 35348choke me 35349#else 35350f = getmsg; 35351#endif 35352 35353 ; 35354 return 0; 35355} 35356_ACEOF 35357rm -f conftest.$ac_objext conftest$ac_exeext 35358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35359 (eval $ac_link) 2>&5 35360 ac_status=$? 35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35362 (exit $ac_status); } && 35363 { ac_try='test -s conftest$ac_exeext' 35364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35365 (eval $ac_try) 2>&5 35366 ac_status=$? 35367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35368 (exit $ac_status); }; }; then 35369 ac_cv_func_getmsg=yes 35370else 35371 echo "$as_me: failed program was:" >&5 35372cat conftest.$ac_ext >&5 35373ac_cv_func_getmsg=no 35374fi 35375rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35376fi 35377echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5 35378echo "${ECHO_T}$ac_cv_func_getmsg" >&6 35379 35380 if test "$ac_cv_func_getmsg" = "yes"; then 35381 echo "$as_me:$LINENO: checking if getmsg works" >&5 35382echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6 35383if test "${ac_cv_func_getmsg_works+set}" = set; then 35384 echo $ECHO_N "(cached) $ECHO_C" >&6 35385else 35386 if test "$cross_compiling" = yes; then 35387 ac_cv_func_getmsg_works=no 35388else 35389 cat >conftest.$ac_ext <<_ACEOF 35390#line $LINENO "configure" 35391#include "confdefs.h" 35392 35393 #include <stdio.h> 35394 #include <errno.h> 35395 35396 int main() 35397 { 35398 int ret; 35399 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 35400 if(ret < 0 && errno == ENOSYS) 35401 return 1; 35402 return 0; 35403 } 35404 35405_ACEOF 35406rm -f conftest$ac_exeext 35407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35408 (eval $ac_link) 2>&5 35409 ac_status=$? 35410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35411 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 35412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35413 (eval $ac_try) 2>&5 35414 ac_status=$? 35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35416 (exit $ac_status); }; }; then 35417 ac_cv_func_getmsg_works=yes 35418else 35419 echo "$as_me: program exited with status $ac_status" >&5 35420echo "$as_me: failed program was:" >&5 35421cat conftest.$ac_ext >&5 35422( exit $ac_status ) 35423ac_cv_func_getmsg_works=no 35424fi 35425rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 35426fi 35427fi 35428echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5 35429echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6 35430 if test "$ac_cv_func_getmsg_works" = "yes"; then 35431 35432cat >>confdefs.h <<\_ACEOF 35433#define HAVE_GETMSG 1 35434_ACEOF 35435 35436 35437cat >>confdefs.h <<\_ACEOF 35438#define STREAMSPTY 1 35439_ACEOF 35440 35441 fi 35442 fi 35443 ;; 35444esac 35445 35446 35447 35448 35449 35450 35451 35452# Extract the first word of "compile_et", so it can be a program name with args. 35453set dummy compile_et; ac_word=$2 35454echo "$as_me:$LINENO: checking for $ac_word" >&5 35455echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 35456if test "${ac_cv_prog_COMPILE_ET+set}" = set; then 35457 echo $ECHO_N "(cached) $ECHO_C" >&6 35458else 35459 if test -n "$COMPILE_ET"; then 35460 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 35461else 35462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35463for as_dir in $PATH 35464do 35465 IFS=$as_save_IFS 35466 test -z "$as_dir" && as_dir=. 35467 for ac_exec_ext in '' $ac_executable_extensions; do 35468 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35469 ac_cv_prog_COMPILE_ET="compile_et" 35470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 35471 break 2 35472 fi 35473done 35474done 35475 35476fi 35477fi 35478COMPILE_ET=$ac_cv_prog_COMPILE_ET 35479if test -n "$COMPILE_ET"; then 35480 echo "$as_me:$LINENO: result: $COMPILE_ET" >&5 35481echo "${ECHO_T}$COMPILE_ET" >&6 35482else 35483 echo "$as_me:$LINENO: result: no" >&5 35484echo "${ECHO_T}no" >&6 35485fi 35486 35487 35488krb_cv_compile_et="no"
| 26845 26846fi 26847 26848ac_foo=`eval echo \\$ac_cv_var_altzone` 26849echo "$as_me:$LINENO: result: $ac_foo" >&5 26850echo "${ECHO_T}$ac_foo" >&6 26851if test "$ac_foo" = yes; then 26852 26853cat >>confdefs.h <<_ACEOF 26854#define HAVE_ALTZONE 1 26855_ACEOF 26856 26857 26858echo "$as_me:$LINENO: checking if altzone is properly declared" >&5 26859echo $ECHO_N "checking if altzone is properly declared... $ECHO_C" >&6 26860if test "${ac_cv_var_altzone_declaration+set}" = set; then 26861 echo $ECHO_N "(cached) $ECHO_C" >&6 26862else 26863 26864cat >conftest.$ac_ext <<_ACEOF 26865#line $LINENO "configure" 26866#include "confdefs.h" 26867#include <time.h> 26868extern struct { int foo; } altzone; 26869#ifdef F77_DUMMY_MAIN 26870# ifdef __cplusplus 26871 extern "C" 26872# endif 26873 int F77_DUMMY_MAIN() { return 1; } 26874#endif 26875int 26876main () 26877{ 26878altzone.foo = 1; 26879 ; 26880 return 0; 26881} 26882_ACEOF 26883rm -f conftest.$ac_objext 26884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26885 (eval $ac_compile) 2>&5 26886 ac_status=$? 26887 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26888 (exit $ac_status); } && 26889 { ac_try='test -s conftest.$ac_objext' 26890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26891 (eval $ac_try) 2>&5 26892 ac_status=$? 26893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26894 (exit $ac_status); }; }; then 26895 eval "ac_cv_var_altzone_declaration=no" 26896else 26897 echo "$as_me: failed program was:" >&5 26898cat conftest.$ac_ext >&5 26899eval "ac_cv_var_altzone_declaration=yes" 26900fi 26901rm -f conftest.$ac_objext conftest.$ac_ext 26902 26903fi 26904 26905 26906 26907 26908echo "$as_me:$LINENO: result: $ac_cv_var_altzone_declaration" >&5 26909echo "${ECHO_T}$ac_cv_var_altzone_declaration" >&6 26910if eval "test \"\$ac_cv_var_altzone_declaration\" = yes"; then 26911 26912cat >>confdefs.h <<\_ACEOF 26913#define HAVE_ALTZONE_DECLARATION 1 26914_ACEOF 26915 26916fi 26917 26918 26919fi 26920 26921 26922 26923 26924cv=`echo "sa_family_t" | sed 'y%./+- %__p__%'` 26925echo "$as_me:$LINENO: checking for sa_family_t" >&5 26926echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 26927if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 26928 echo $ECHO_N "(cached) $ECHO_C" >&6 26929else 26930 cat >conftest.$ac_ext <<_ACEOF 26931#line $LINENO "configure" 26932#include "confdefs.h" 26933#include <sys/types.h> 26934#if STDC_HEADERS 26935#include <stdlib.h> 26936#include <stddef.h> 26937#endif 26938#include <sys/socket.h> 26939#ifdef F77_DUMMY_MAIN 26940# ifdef __cplusplus 26941 extern "C" 26942# endif 26943 int F77_DUMMY_MAIN() { return 1; } 26944#endif 26945int 26946main () 26947{ 26948sa_family_t foo; 26949 ; 26950 return 0; 26951} 26952_ACEOF 26953rm -f conftest.$ac_objext 26954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 26955 (eval $ac_compile) 2>&5 26956 ac_status=$? 26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26958 (exit $ac_status); } && 26959 { ac_try='test -s conftest.$ac_objext' 26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 26961 (eval $ac_try) 2>&5 26962 ac_status=$? 26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5 26964 (exit $ac_status); }; }; then 26965 eval "ac_cv_type_$cv=yes" 26966else 26967 echo "$as_me: failed program was:" >&5 26968cat conftest.$ac_ext >&5 26969eval "ac_cv_type_$cv=no" 26970fi 26971rm -f conftest.$ac_objext conftest.$ac_ext 26972fi 26973ac_foo=`eval echo \\$ac_cv_type_$cv` 26974echo "$as_me:$LINENO: result: $ac_foo" >&5 26975echo "${ECHO_T}$ac_foo" >&6 26976if test "$ac_foo" = yes; then 26977 ac_tr_hdr=HAVE_`echo sa_family_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 26978if false; then 26979 echo "$as_me:$LINENO: checking for sa_family_t" >&5 26980echo $ECHO_N "checking for sa_family_t... $ECHO_C" >&6 26981if test "${ac_cv_type_sa_family_t+set}" = set; then 26982 echo $ECHO_N "(cached) $ECHO_C" >&6 26983else 26984 cat >conftest.$ac_ext <<_ACEOF 26985#line $LINENO "configure" 26986#include "confdefs.h" 26987$ac_includes_default 26988#ifdef F77_DUMMY_MAIN 26989# ifdef __cplusplus 26990 extern "C" 26991# endif 26992 int F77_DUMMY_MAIN() { return 1; } 26993#endif 26994int 26995main () 26996{ 26997if ((sa_family_t *) 0) 26998 return 0; 26999if (sizeof (sa_family_t)) 27000 return 0; 27001 ; 27002 return 0; 27003} 27004_ACEOF 27005rm -f conftest.$ac_objext 27006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27007 (eval $ac_compile) 2>&5 27008 ac_status=$? 27009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27010 (exit $ac_status); } && 27011 { ac_try='test -s conftest.$ac_objext' 27012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27013 (eval $ac_try) 2>&5 27014 ac_status=$? 27015 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27016 (exit $ac_status); }; }; then 27017 ac_cv_type_sa_family_t=yes 27018else 27019 echo "$as_me: failed program was:" >&5 27020cat conftest.$ac_ext >&5 27021ac_cv_type_sa_family_t=no 27022fi 27023rm -f conftest.$ac_objext conftest.$ac_ext 27024fi 27025echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5 27026echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6 27027if test $ac_cv_type_sa_family_t = yes; then 27028 27029cat >>confdefs.h <<_ACEOF 27030#define HAVE_SA_FAMILY_T 1 27031_ACEOF 27032 27033 27034fi 27035 27036fi 27037 27038cat >>confdefs.h <<_ACEOF 27039#define $ac_tr_hdr 1 27040_ACEOF 27041 27042fi 27043 27044 27045 27046cv=`echo "socklen_t" | sed 'y%./+- %__p__%'` 27047echo "$as_me:$LINENO: checking for socklen_t" >&5 27048echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 27049if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27050 echo $ECHO_N "(cached) $ECHO_C" >&6 27051else 27052 cat >conftest.$ac_ext <<_ACEOF 27053#line $LINENO "configure" 27054#include "confdefs.h" 27055#include <sys/types.h> 27056#if STDC_HEADERS 27057#include <stdlib.h> 27058#include <stddef.h> 27059#endif 27060#include <sys/socket.h> 27061#ifdef F77_DUMMY_MAIN 27062# ifdef __cplusplus 27063 extern "C" 27064# endif 27065 int F77_DUMMY_MAIN() { return 1; } 27066#endif 27067int 27068main () 27069{ 27070socklen_t foo; 27071 ; 27072 return 0; 27073} 27074_ACEOF 27075rm -f conftest.$ac_objext 27076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27077 (eval $ac_compile) 2>&5 27078 ac_status=$? 27079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27080 (exit $ac_status); } && 27081 { ac_try='test -s conftest.$ac_objext' 27082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27083 (eval $ac_try) 2>&5 27084 ac_status=$? 27085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27086 (exit $ac_status); }; }; then 27087 eval "ac_cv_type_$cv=yes" 27088else 27089 echo "$as_me: failed program was:" >&5 27090cat conftest.$ac_ext >&5 27091eval "ac_cv_type_$cv=no" 27092fi 27093rm -f conftest.$ac_objext conftest.$ac_ext 27094fi 27095ac_foo=`eval echo \\$ac_cv_type_$cv` 27096echo "$as_me:$LINENO: result: $ac_foo" >&5 27097echo "${ECHO_T}$ac_foo" >&6 27098if test "$ac_foo" = yes; then 27099 ac_tr_hdr=HAVE_`echo socklen_t | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27100if false; then 27101 echo "$as_me:$LINENO: checking for socklen_t" >&5 27102echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6 27103if test "${ac_cv_type_socklen_t+set}" = set; then 27104 echo $ECHO_N "(cached) $ECHO_C" >&6 27105else 27106 cat >conftest.$ac_ext <<_ACEOF 27107#line $LINENO "configure" 27108#include "confdefs.h" 27109$ac_includes_default 27110#ifdef F77_DUMMY_MAIN 27111# ifdef __cplusplus 27112 extern "C" 27113# endif 27114 int F77_DUMMY_MAIN() { return 1; } 27115#endif 27116int 27117main () 27118{ 27119if ((socklen_t *) 0) 27120 return 0; 27121if (sizeof (socklen_t)) 27122 return 0; 27123 ; 27124 return 0; 27125} 27126_ACEOF 27127rm -f conftest.$ac_objext 27128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27129 (eval $ac_compile) 2>&5 27130 ac_status=$? 27131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27132 (exit $ac_status); } && 27133 { ac_try='test -s conftest.$ac_objext' 27134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27135 (eval $ac_try) 2>&5 27136 ac_status=$? 27137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27138 (exit $ac_status); }; }; then 27139 ac_cv_type_socklen_t=yes 27140else 27141 echo "$as_me: failed program was:" >&5 27142cat conftest.$ac_ext >&5 27143ac_cv_type_socklen_t=no 27144fi 27145rm -f conftest.$ac_objext conftest.$ac_ext 27146fi 27147echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5 27148echo "${ECHO_T}$ac_cv_type_socklen_t" >&6 27149if test $ac_cv_type_socklen_t = yes; then 27150 27151cat >>confdefs.h <<_ACEOF 27152#define HAVE_SOCKLEN_T 1 27153_ACEOF 27154 27155 27156fi 27157 27158fi 27159 27160cat >>confdefs.h <<_ACEOF 27161#define $ac_tr_hdr 1 27162_ACEOF 27163 27164fi 27165 27166 27167 27168cv=`echo "struct sockaddr" | sed 'y%./+- %__p__%'` 27169echo "$as_me:$LINENO: checking for struct sockaddr" >&5 27170echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 27171if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27172 echo $ECHO_N "(cached) $ECHO_C" >&6 27173else 27174 cat >conftest.$ac_ext <<_ACEOF 27175#line $LINENO "configure" 27176#include "confdefs.h" 27177#include <sys/types.h> 27178#if STDC_HEADERS 27179#include <stdlib.h> 27180#include <stddef.h> 27181#endif 27182#include <sys/socket.h> 27183#ifdef F77_DUMMY_MAIN 27184# ifdef __cplusplus 27185 extern "C" 27186# endif 27187 int F77_DUMMY_MAIN() { return 1; } 27188#endif 27189int 27190main () 27191{ 27192struct sockaddr foo; 27193 ; 27194 return 0; 27195} 27196_ACEOF 27197rm -f conftest.$ac_objext 27198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27199 (eval $ac_compile) 2>&5 27200 ac_status=$? 27201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27202 (exit $ac_status); } && 27203 { ac_try='test -s conftest.$ac_objext' 27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27205 (eval $ac_try) 2>&5 27206 ac_status=$? 27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27208 (exit $ac_status); }; }; then 27209 eval "ac_cv_type_$cv=yes" 27210else 27211 echo "$as_me: failed program was:" >&5 27212cat conftest.$ac_ext >&5 27213eval "ac_cv_type_$cv=no" 27214fi 27215rm -f conftest.$ac_objext conftest.$ac_ext 27216fi 27217ac_foo=`eval echo \\$ac_cv_type_$cv` 27218echo "$as_me:$LINENO: result: $ac_foo" >&5 27219echo "${ECHO_T}$ac_foo" >&6 27220if test "$ac_foo" = yes; then 27221 ac_tr_hdr=HAVE_`echo struct sockaddr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27222if false; then 27223 echo "$as_me:$LINENO: checking for struct sockaddr" >&5 27224echo $ECHO_N "checking for struct sockaddr... $ECHO_C" >&6 27225if test "${ac_cv_type_struct_sockaddr+set}" = set; then 27226 echo $ECHO_N "(cached) $ECHO_C" >&6 27227else 27228 cat >conftest.$ac_ext <<_ACEOF 27229#line $LINENO "configure" 27230#include "confdefs.h" 27231$ac_includes_default 27232#ifdef F77_DUMMY_MAIN 27233# ifdef __cplusplus 27234 extern "C" 27235# endif 27236 int F77_DUMMY_MAIN() { return 1; } 27237#endif 27238int 27239main () 27240{ 27241if ((struct sockaddr *) 0) 27242 return 0; 27243if (sizeof (struct sockaddr)) 27244 return 0; 27245 ; 27246 return 0; 27247} 27248_ACEOF 27249rm -f conftest.$ac_objext 27250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27251 (eval $ac_compile) 2>&5 27252 ac_status=$? 27253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27254 (exit $ac_status); } && 27255 { ac_try='test -s conftest.$ac_objext' 27256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27257 (eval $ac_try) 2>&5 27258 ac_status=$? 27259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27260 (exit $ac_status); }; }; then 27261 ac_cv_type_struct_sockaddr=yes 27262else 27263 echo "$as_me: failed program was:" >&5 27264cat conftest.$ac_ext >&5 27265ac_cv_type_struct_sockaddr=no 27266fi 27267rm -f conftest.$ac_objext conftest.$ac_ext 27268fi 27269echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr" >&5 27270echo "${ECHO_T}$ac_cv_type_struct_sockaddr" >&6 27271if test $ac_cv_type_struct_sockaddr = yes; then 27272 27273cat >>confdefs.h <<_ACEOF 27274#define HAVE_STRUCT_SOCKADDR 1 27275_ACEOF 27276 27277 27278fi 27279 27280fi 27281 27282cat >>confdefs.h <<_ACEOF 27283#define $ac_tr_hdr 1 27284_ACEOF 27285 27286fi 27287 27288 27289 27290cv=`echo "struct sockaddr_storage" | sed 'y%./+- %__p__%'` 27291echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 27292echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 27293if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27294 echo $ECHO_N "(cached) $ECHO_C" >&6 27295else 27296 cat >conftest.$ac_ext <<_ACEOF 27297#line $LINENO "configure" 27298#include "confdefs.h" 27299#include <sys/types.h> 27300#if STDC_HEADERS 27301#include <stdlib.h> 27302#include <stddef.h> 27303#endif 27304#include <sys/socket.h> 27305#ifdef F77_DUMMY_MAIN 27306# ifdef __cplusplus 27307 extern "C" 27308# endif 27309 int F77_DUMMY_MAIN() { return 1; } 27310#endif 27311int 27312main () 27313{ 27314struct sockaddr_storage foo; 27315 ; 27316 return 0; 27317} 27318_ACEOF 27319rm -f conftest.$ac_objext 27320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27321 (eval $ac_compile) 2>&5 27322 ac_status=$? 27323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27324 (exit $ac_status); } && 27325 { ac_try='test -s conftest.$ac_objext' 27326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27327 (eval $ac_try) 2>&5 27328 ac_status=$? 27329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27330 (exit $ac_status); }; }; then 27331 eval "ac_cv_type_$cv=yes" 27332else 27333 echo "$as_me: failed program was:" >&5 27334cat conftest.$ac_ext >&5 27335eval "ac_cv_type_$cv=no" 27336fi 27337rm -f conftest.$ac_objext conftest.$ac_ext 27338fi 27339ac_foo=`eval echo \\$ac_cv_type_$cv` 27340echo "$as_me:$LINENO: result: $ac_foo" >&5 27341echo "${ECHO_T}$ac_foo" >&6 27342if test "$ac_foo" = yes; then 27343 ac_tr_hdr=HAVE_`echo struct sockaddr_storage | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27344if false; then 27345 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5 27346echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6 27347if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then 27348 echo $ECHO_N "(cached) $ECHO_C" >&6 27349else 27350 cat >conftest.$ac_ext <<_ACEOF 27351#line $LINENO "configure" 27352#include "confdefs.h" 27353$ac_includes_default 27354#ifdef F77_DUMMY_MAIN 27355# ifdef __cplusplus 27356 extern "C" 27357# endif 27358 int F77_DUMMY_MAIN() { return 1; } 27359#endif 27360int 27361main () 27362{ 27363if ((struct sockaddr_storage *) 0) 27364 return 0; 27365if (sizeof (struct sockaddr_storage)) 27366 return 0; 27367 ; 27368 return 0; 27369} 27370_ACEOF 27371rm -f conftest.$ac_objext 27372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27373 (eval $ac_compile) 2>&5 27374 ac_status=$? 27375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27376 (exit $ac_status); } && 27377 { ac_try='test -s conftest.$ac_objext' 27378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27379 (eval $ac_try) 2>&5 27380 ac_status=$? 27381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27382 (exit $ac_status); }; }; then 27383 ac_cv_type_struct_sockaddr_storage=yes 27384else 27385 echo "$as_me: failed program was:" >&5 27386cat conftest.$ac_ext >&5 27387ac_cv_type_struct_sockaddr_storage=no 27388fi 27389rm -f conftest.$ac_objext conftest.$ac_ext 27390fi 27391echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5 27392echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6 27393if test $ac_cv_type_struct_sockaddr_storage = yes; then 27394 27395cat >>confdefs.h <<_ACEOF 27396#define HAVE_STRUCT_SOCKADDR_STORAGE 1 27397_ACEOF 27398 27399 27400fi 27401 27402fi 27403 27404cat >>confdefs.h <<_ACEOF 27405#define $ac_tr_hdr 1 27406_ACEOF 27407 27408fi 27409 27410 27411 27412cv=`echo "struct addrinfo" | sed 'y%./+- %__p__%'` 27413echo "$as_me:$LINENO: checking for struct addrinfo" >&5 27414echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 27415if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27416 echo $ECHO_N "(cached) $ECHO_C" >&6 27417else 27418 cat >conftest.$ac_ext <<_ACEOF 27419#line $LINENO "configure" 27420#include "confdefs.h" 27421#include <sys/types.h> 27422#if STDC_HEADERS 27423#include <stdlib.h> 27424#include <stddef.h> 27425#endif 27426#include <netdb.h> 27427#ifdef F77_DUMMY_MAIN 27428# ifdef __cplusplus 27429 extern "C" 27430# endif 27431 int F77_DUMMY_MAIN() { return 1; } 27432#endif 27433int 27434main () 27435{ 27436struct addrinfo foo; 27437 ; 27438 return 0; 27439} 27440_ACEOF 27441rm -f conftest.$ac_objext 27442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27443 (eval $ac_compile) 2>&5 27444 ac_status=$? 27445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27446 (exit $ac_status); } && 27447 { ac_try='test -s conftest.$ac_objext' 27448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27449 (eval $ac_try) 2>&5 27450 ac_status=$? 27451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27452 (exit $ac_status); }; }; then 27453 eval "ac_cv_type_$cv=yes" 27454else 27455 echo "$as_me: failed program was:" >&5 27456cat conftest.$ac_ext >&5 27457eval "ac_cv_type_$cv=no" 27458fi 27459rm -f conftest.$ac_objext conftest.$ac_ext 27460fi 27461ac_foo=`eval echo \\$ac_cv_type_$cv` 27462echo "$as_me:$LINENO: result: $ac_foo" >&5 27463echo "${ECHO_T}$ac_foo" >&6 27464if test "$ac_foo" = yes; then 27465 ac_tr_hdr=HAVE_`echo struct addrinfo | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27466if false; then 27467 echo "$as_me:$LINENO: checking for struct addrinfo" >&5 27468echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6 27469if test "${ac_cv_type_struct_addrinfo+set}" = set; then 27470 echo $ECHO_N "(cached) $ECHO_C" >&6 27471else 27472 cat >conftest.$ac_ext <<_ACEOF 27473#line $LINENO "configure" 27474#include "confdefs.h" 27475$ac_includes_default 27476#ifdef F77_DUMMY_MAIN 27477# ifdef __cplusplus 27478 extern "C" 27479# endif 27480 int F77_DUMMY_MAIN() { return 1; } 27481#endif 27482int 27483main () 27484{ 27485if ((struct addrinfo *) 0) 27486 return 0; 27487if (sizeof (struct addrinfo)) 27488 return 0; 27489 ; 27490 return 0; 27491} 27492_ACEOF 27493rm -f conftest.$ac_objext 27494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27495 (eval $ac_compile) 2>&5 27496 ac_status=$? 27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27498 (exit $ac_status); } && 27499 { ac_try='test -s conftest.$ac_objext' 27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27501 (eval $ac_try) 2>&5 27502 ac_status=$? 27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27504 (exit $ac_status); }; }; then 27505 ac_cv_type_struct_addrinfo=yes 27506else 27507 echo "$as_me: failed program was:" >&5 27508cat conftest.$ac_ext >&5 27509ac_cv_type_struct_addrinfo=no 27510fi 27511rm -f conftest.$ac_objext conftest.$ac_ext 27512fi 27513echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5 27514echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6 27515if test $ac_cv_type_struct_addrinfo = yes; then 27516 27517cat >>confdefs.h <<_ACEOF 27518#define HAVE_STRUCT_ADDRINFO 1 27519_ACEOF 27520 27521 27522fi 27523 27524fi 27525 27526cat >>confdefs.h <<_ACEOF 27527#define $ac_tr_hdr 1 27528_ACEOF 27529 27530fi 27531 27532 27533 27534cv=`echo "struct ifaddrs" | sed 'y%./+- %__p__%'` 27535echo "$as_me:$LINENO: checking for struct ifaddrs" >&5 27536echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 27537if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27538 echo $ECHO_N "(cached) $ECHO_C" >&6 27539else 27540 cat >conftest.$ac_ext <<_ACEOF 27541#line $LINENO "configure" 27542#include "confdefs.h" 27543#include <sys/types.h> 27544#if STDC_HEADERS 27545#include <stdlib.h> 27546#include <stddef.h> 27547#endif 27548#include <ifaddrs.h> 27549#ifdef F77_DUMMY_MAIN 27550# ifdef __cplusplus 27551 extern "C" 27552# endif 27553 int F77_DUMMY_MAIN() { return 1; } 27554#endif 27555int 27556main () 27557{ 27558struct ifaddrs foo; 27559 ; 27560 return 0; 27561} 27562_ACEOF 27563rm -f conftest.$ac_objext 27564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27565 (eval $ac_compile) 2>&5 27566 ac_status=$? 27567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27568 (exit $ac_status); } && 27569 { ac_try='test -s conftest.$ac_objext' 27570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27571 (eval $ac_try) 2>&5 27572 ac_status=$? 27573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27574 (exit $ac_status); }; }; then 27575 eval "ac_cv_type_$cv=yes" 27576else 27577 echo "$as_me: failed program was:" >&5 27578cat conftest.$ac_ext >&5 27579eval "ac_cv_type_$cv=no" 27580fi 27581rm -f conftest.$ac_objext conftest.$ac_ext 27582fi 27583ac_foo=`eval echo \\$ac_cv_type_$cv` 27584echo "$as_me:$LINENO: result: $ac_foo" >&5 27585echo "${ECHO_T}$ac_foo" >&6 27586if test "$ac_foo" = yes; then 27587 ac_tr_hdr=HAVE_`echo struct ifaddrs | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27588if false; then 27589 echo "$as_me:$LINENO: checking for struct ifaddrs" >&5 27590echo $ECHO_N "checking for struct ifaddrs... $ECHO_C" >&6 27591if test "${ac_cv_type_struct_ifaddrs+set}" = set; then 27592 echo $ECHO_N "(cached) $ECHO_C" >&6 27593else 27594 cat >conftest.$ac_ext <<_ACEOF 27595#line $LINENO "configure" 27596#include "confdefs.h" 27597$ac_includes_default 27598#ifdef F77_DUMMY_MAIN 27599# ifdef __cplusplus 27600 extern "C" 27601# endif 27602 int F77_DUMMY_MAIN() { return 1; } 27603#endif 27604int 27605main () 27606{ 27607if ((struct ifaddrs *) 0) 27608 return 0; 27609if (sizeof (struct ifaddrs)) 27610 return 0; 27611 ; 27612 return 0; 27613} 27614_ACEOF 27615rm -f conftest.$ac_objext 27616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27617 (eval $ac_compile) 2>&5 27618 ac_status=$? 27619 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27620 (exit $ac_status); } && 27621 { ac_try='test -s conftest.$ac_objext' 27622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27623 (eval $ac_try) 2>&5 27624 ac_status=$? 27625 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27626 (exit $ac_status); }; }; then 27627 ac_cv_type_struct_ifaddrs=yes 27628else 27629 echo "$as_me: failed program was:" >&5 27630cat conftest.$ac_ext >&5 27631ac_cv_type_struct_ifaddrs=no 27632fi 27633rm -f conftest.$ac_objext conftest.$ac_ext 27634fi 27635echo "$as_me:$LINENO: result: $ac_cv_type_struct_ifaddrs" >&5 27636echo "${ECHO_T}$ac_cv_type_struct_ifaddrs" >&6 27637if test $ac_cv_type_struct_ifaddrs = yes; then 27638 27639cat >>confdefs.h <<_ACEOF 27640#define HAVE_STRUCT_IFADDRS 1 27641_ACEOF 27642 27643 27644fi 27645 27646fi 27647 27648cat >>confdefs.h <<_ACEOF 27649#define $ac_tr_hdr 1 27650_ACEOF 27651 27652fi 27653 27654 27655 27656cv=`echo "struct iovec" | sed 'y%./+- %__p__%'` 27657echo "$as_me:$LINENO: checking for struct iovec" >&5 27658echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6 27659if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27660 echo $ECHO_N "(cached) $ECHO_C" >&6 27661else 27662 cat >conftest.$ac_ext <<_ACEOF 27663#line $LINENO "configure" 27664#include "confdefs.h" 27665#include <sys/types.h> 27666#if STDC_HEADERS 27667#include <stdlib.h> 27668#include <stddef.h> 27669#endif 27670 27671#include <sys/types.h> 27672#include <sys/uio.h> 27673 27674#ifdef F77_DUMMY_MAIN 27675# ifdef __cplusplus 27676 extern "C" 27677# endif 27678 int F77_DUMMY_MAIN() { return 1; } 27679#endif 27680int 27681main () 27682{ 27683struct iovec foo; 27684 ; 27685 return 0; 27686} 27687_ACEOF 27688rm -f conftest.$ac_objext 27689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27690 (eval $ac_compile) 2>&5 27691 ac_status=$? 27692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27693 (exit $ac_status); } && 27694 { ac_try='test -s conftest.$ac_objext' 27695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27696 (eval $ac_try) 2>&5 27697 ac_status=$? 27698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27699 (exit $ac_status); }; }; then 27700 eval "ac_cv_type_$cv=yes" 27701else 27702 echo "$as_me: failed program was:" >&5 27703cat conftest.$ac_ext >&5 27704eval "ac_cv_type_$cv=no" 27705fi 27706rm -f conftest.$ac_objext conftest.$ac_ext 27707fi 27708ac_foo=`eval echo \\$ac_cv_type_$cv` 27709echo "$as_me:$LINENO: result: $ac_foo" >&5 27710echo "${ECHO_T}$ac_foo" >&6 27711if test "$ac_foo" = yes; then 27712 ac_tr_hdr=HAVE_`echo struct iovec | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27713if false; then 27714 echo "$as_me:$LINENO: checking for struct iovec" >&5 27715echo $ECHO_N "checking for struct iovec... $ECHO_C" >&6 27716if test "${ac_cv_type_struct_iovec+set}" = set; then 27717 echo $ECHO_N "(cached) $ECHO_C" >&6 27718else 27719 cat >conftest.$ac_ext <<_ACEOF 27720#line $LINENO "configure" 27721#include "confdefs.h" 27722$ac_includes_default 27723#ifdef F77_DUMMY_MAIN 27724# ifdef __cplusplus 27725 extern "C" 27726# endif 27727 int F77_DUMMY_MAIN() { return 1; } 27728#endif 27729int 27730main () 27731{ 27732if ((struct iovec *) 0) 27733 return 0; 27734if (sizeof (struct iovec)) 27735 return 0; 27736 ; 27737 return 0; 27738} 27739_ACEOF 27740rm -f conftest.$ac_objext 27741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27742 (eval $ac_compile) 2>&5 27743 ac_status=$? 27744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27745 (exit $ac_status); } && 27746 { ac_try='test -s conftest.$ac_objext' 27747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27748 (eval $ac_try) 2>&5 27749 ac_status=$? 27750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27751 (exit $ac_status); }; }; then 27752 ac_cv_type_struct_iovec=yes 27753else 27754 echo "$as_me: failed program was:" >&5 27755cat conftest.$ac_ext >&5 27756ac_cv_type_struct_iovec=no 27757fi 27758rm -f conftest.$ac_objext conftest.$ac_ext 27759fi 27760echo "$as_me:$LINENO: result: $ac_cv_type_struct_iovec" >&5 27761echo "${ECHO_T}$ac_cv_type_struct_iovec" >&6 27762if test $ac_cv_type_struct_iovec = yes; then 27763 27764cat >>confdefs.h <<_ACEOF 27765#define HAVE_STRUCT_IOVEC 1 27766_ACEOF 27767 27768 27769fi 27770 27771fi 27772 27773cat >>confdefs.h <<_ACEOF 27774#define $ac_tr_hdr 1 27775_ACEOF 27776 27777fi 27778 27779 27780 27781cv=`echo "struct msghdr" | sed 'y%./+- %__p__%'` 27782echo "$as_me:$LINENO: checking for struct msghdr" >&5 27783echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6 27784if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 27785 echo $ECHO_N "(cached) $ECHO_C" >&6 27786else 27787 cat >conftest.$ac_ext <<_ACEOF 27788#line $LINENO "configure" 27789#include "confdefs.h" 27790#include <sys/types.h> 27791#if STDC_HEADERS 27792#include <stdlib.h> 27793#include <stddef.h> 27794#endif 27795 27796#include <sys/types.h> 27797#include <sys/socket.h> 27798 27799#ifdef F77_DUMMY_MAIN 27800# ifdef __cplusplus 27801 extern "C" 27802# endif 27803 int F77_DUMMY_MAIN() { return 1; } 27804#endif 27805int 27806main () 27807{ 27808struct msghdr foo; 27809 ; 27810 return 0; 27811} 27812_ACEOF 27813rm -f conftest.$ac_objext 27814if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27815 (eval $ac_compile) 2>&5 27816 ac_status=$? 27817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27818 (exit $ac_status); } && 27819 { ac_try='test -s conftest.$ac_objext' 27820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27821 (eval $ac_try) 2>&5 27822 ac_status=$? 27823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27824 (exit $ac_status); }; }; then 27825 eval "ac_cv_type_$cv=yes" 27826else 27827 echo "$as_me: failed program was:" >&5 27828cat conftest.$ac_ext >&5 27829eval "ac_cv_type_$cv=no" 27830fi 27831rm -f conftest.$ac_objext conftest.$ac_ext 27832fi 27833ac_foo=`eval echo \\$ac_cv_type_$cv` 27834echo "$as_me:$LINENO: result: $ac_foo" >&5 27835echo "${ECHO_T}$ac_foo" >&6 27836if test "$ac_foo" = yes; then 27837 ac_tr_hdr=HAVE_`echo struct msghdr | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 27838if false; then 27839 echo "$as_me:$LINENO: checking for struct msghdr" >&5 27840echo $ECHO_N "checking for struct msghdr... $ECHO_C" >&6 27841if test "${ac_cv_type_struct_msghdr+set}" = set; then 27842 echo $ECHO_N "(cached) $ECHO_C" >&6 27843else 27844 cat >conftest.$ac_ext <<_ACEOF 27845#line $LINENO "configure" 27846#include "confdefs.h" 27847$ac_includes_default 27848#ifdef F77_DUMMY_MAIN 27849# ifdef __cplusplus 27850 extern "C" 27851# endif 27852 int F77_DUMMY_MAIN() { return 1; } 27853#endif 27854int 27855main () 27856{ 27857if ((struct msghdr *) 0) 27858 return 0; 27859if (sizeof (struct msghdr)) 27860 return 0; 27861 ; 27862 return 0; 27863} 27864_ACEOF 27865rm -f conftest.$ac_objext 27866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 27867 (eval $ac_compile) 2>&5 27868 ac_status=$? 27869 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27870 (exit $ac_status); } && 27871 { ac_try='test -s conftest.$ac_objext' 27872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 27873 (eval $ac_try) 2>&5 27874 ac_status=$? 27875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 27876 (exit $ac_status); }; }; then 27877 ac_cv_type_struct_msghdr=yes 27878else 27879 echo "$as_me: failed program was:" >&5 27880cat conftest.$ac_ext >&5 27881ac_cv_type_struct_msghdr=no 27882fi 27883rm -f conftest.$ac_objext conftest.$ac_ext 27884fi 27885echo "$as_me:$LINENO: result: $ac_cv_type_struct_msghdr" >&5 27886echo "${ECHO_T}$ac_cv_type_struct_msghdr" >&6 27887if test $ac_cv_type_struct_msghdr = yes; then 27888 27889cat >>confdefs.h <<_ACEOF 27890#define HAVE_STRUCT_MSGHDR 1 27891_ACEOF 27892 27893 27894fi 27895 27896fi 27897 27898cat >>confdefs.h <<_ACEOF 27899#define $ac_tr_hdr 1 27900_ACEOF 27901 27902fi 27903 27904 27905 27906 27907echo "$as_me:$LINENO: checking for struct winsize" >&5 27908echo $ECHO_N "checking for struct winsize... $ECHO_C" >&6 27909if test "${ac_cv_struct_winsize+set}" = set; then 27910 echo $ECHO_N "(cached) $ECHO_C" >&6 27911else 27912 27913ac_cv_struct_winsize=no 27914for i in sys/termios.h sys/ioctl.h; do 27915cat >conftest.$ac_ext <<_ACEOF 27916#line $LINENO "configure" 27917#include "confdefs.h" 27918#include <$i> 27919 27920_ACEOF 27921if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27922 egrep "struct[ ]*winsize" >/dev/null 2>&1; then 27923 ac_cv_struct_winsize=yes; break 27924fi 27925rm -f conftest* 27926done 27927 27928fi 27929 27930if test "$ac_cv_struct_winsize" = "yes"; then 27931 27932cat >>confdefs.h <<\_ACEOF 27933#define HAVE_STRUCT_WINSIZE 1 27934_ACEOF 27935 27936fi 27937echo "$as_me:$LINENO: result: $ac_cv_struct_winsize" >&5 27938echo "${ECHO_T}$ac_cv_struct_winsize" >&6 27939cat >conftest.$ac_ext <<_ACEOF 27940#line $LINENO "configure" 27941#include "confdefs.h" 27942#include <termios.h> 27943 27944_ACEOF 27945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27946 egrep "ws_xpixel" >/dev/null 2>&1; then 27947 27948cat >>confdefs.h <<\_ACEOF 27949#define HAVE_WS_XPIXEL 1 27950_ACEOF 27951 27952fi 27953rm -f conftest* 27954 27955cat >conftest.$ac_ext <<_ACEOF 27956#line $LINENO "configure" 27957#include "confdefs.h" 27958#include <termios.h> 27959 27960_ACEOF 27961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 27962 egrep "ws_ypixel" >/dev/null 2>&1; then 27963 27964cat >>confdefs.h <<\_ACEOF 27965#define HAVE_WS_YPIXEL 1 27966_ACEOF 27967 27968fi 27969rm -f conftest* 27970 27971 27972 27973 27974 27975echo "$as_me:$LINENO: checking for struct spwd" >&5 27976echo $ECHO_N "checking for struct spwd... $ECHO_C" >&6 27977if test "${ac_cv_struct_spwd+set}" = set; then 27978 echo $ECHO_N "(cached) $ECHO_C" >&6 27979else 27980 27981cat >conftest.$ac_ext <<_ACEOF 27982#line $LINENO "configure" 27983#include "confdefs.h" 27984#include <pwd.h> 27985#ifdef HAVE_SHADOW_H 27986#include <shadow.h> 27987#endif 27988#ifdef F77_DUMMY_MAIN 27989# ifdef __cplusplus 27990 extern "C" 27991# endif 27992 int F77_DUMMY_MAIN() { return 1; } 27993#endif 27994int 27995main () 27996{ 27997struct spwd foo; 27998 ; 27999 return 0; 28000} 28001_ACEOF 28002rm -f conftest.$ac_objext 28003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28004 (eval $ac_compile) 2>&5 28005 ac_status=$? 28006 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28007 (exit $ac_status); } && 28008 { ac_try='test -s conftest.$ac_objext' 28009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28010 (eval $ac_try) 2>&5 28011 ac_status=$? 28012 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28013 (exit $ac_status); }; }; then 28014 ac_cv_struct_spwd=yes 28015else 28016 echo "$as_me: failed program was:" >&5 28017cat conftest.$ac_ext >&5 28018ac_cv_struct_spwd=no 28019fi 28020rm -f conftest.$ac_objext conftest.$ac_ext 28021 28022fi 28023 28024echo "$as_me:$LINENO: result: $ac_cv_struct_spwd" >&5 28025echo "${ECHO_T}$ac_cv_struct_spwd" >&6 28026 28027if test "$ac_cv_struct_spwd" = "yes"; then 28028 28029cat >>confdefs.h <<\_ACEOF 28030#define HAVE_STRUCT_SPWD 1 28031_ACEOF 28032 28033fi 28034 28035 28036 28037LIB_roken="${LIB_roken} \$(LIB_crypt) \$(LIB_dbopen)" 28038 28039 28040LIB_roken="\$(top_builddir)/lib/vers/libvers.la $LIB_roken" 28041 28042 28043# Check whether --enable-otp or --disable-otp was given. 28044if test "${enable_otp+set}" = set; then 28045 enableval="$enable_otp" 28046 28047fi; 28048if test "$enable_otp" = yes -a "$db_type" = unknown; then 28049 { { echo "$as_me:$LINENO: error: OTP requires a NDBM/DB compatible library" >&5 28050echo "$as_me: error: OTP requires a NDBM/DB compatible library" >&2;} 28051 { (exit 1); exit 1; }; } 28052fi 28053if test "$enable_otp" != no; then 28054 if test "$db_type" != unknown; then 28055 enable_otp=yes 28056 else 28057 enable_otp=no 28058 fi 28059fi 28060if test "$enable_otp" = yes; then 28061 28062cat >>confdefs.h <<\_ACEOF 28063#define OTP 1 28064_ACEOF 28065 28066 LIB_otp='$(top_builddir)/lib/otp/libotp.la' 28067 28068fi 28069echo "$as_me:$LINENO: checking whether to enable OTP library" >&5 28070echo $ECHO_N "checking whether to enable OTP library... $ECHO_C" >&6 28071echo "$as_me:$LINENO: result: $enable_otp" >&5 28072echo "${ECHO_T}$enable_otp" >&6 28073 28074 28075if test "$enable_otp" = yes; then 28076 OTP_TRUE= 28077 OTP_FALSE='#' 28078else 28079 OTP_TRUE='#' 28080 OTP_FALSE= 28081fi 28082 28083 28084 28085# Check whether --enable-osfc2 or --disable-osfc2 was given. 28086if test "${enable_osfc2+set}" = set; then 28087 enableval="$enable_osfc2" 28088 28089fi; 28090LIB_security= 28091if test "$enable_osfc2" = yes; then 28092 28093cat >>confdefs.h <<\_ACEOF 28094#define HAVE_OSFC2 1 28095_ACEOF 28096 28097 LIB_security=-lsecurity 28098fi 28099 28100 28101 28102# Check whether --enable-mmap or --disable-mmap was given. 28103if test "${enable_mmap+set}" = set; then 28104 enableval="$enable_mmap" 28105 28106fi; 28107if test "$enable_mmap" = "no"; then 28108 28109cat >>confdefs.h <<\_ACEOF 28110#define NO_MMAP 1 28111_ACEOF 28112 28113fi 28114 28115# Extract the first word of "nroff", so it can be a program name with args. 28116set dummy nroff; ac_word=$2 28117echo "$as_me:$LINENO: checking for $ac_word" >&5 28118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 28119if test "${ac_cv_path_NROFF+set}" = set; then 28120 echo $ECHO_N "(cached) $ECHO_C" >&6 28121else 28122 case $NROFF in 28123 [\\/]* | ?:[\\/]*) 28124 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path. 28125 ;; 28126 *) 28127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28128for as_dir in $PATH 28129do 28130 IFS=$as_save_IFS 28131 test -z "$as_dir" && as_dir=. 28132 for ac_exec_ext in '' $ac_executable_extensions; do 28133 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28134 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext" 28135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 28136 break 2 28137 fi 28138done 28139done 28140 28141 ;; 28142esac 28143fi 28144NROFF=$ac_cv_path_NROFF 28145 28146if test -n "$NROFF"; then 28147 echo "$as_me:$LINENO: result: $NROFF" >&5 28148echo "${ECHO_T}$NROFF" >&6 28149else 28150 echo "$as_me:$LINENO: result: no" >&5 28151echo "${ECHO_T}no" >&6 28152fi 28153 28154# Extract the first word of "groff", so it can be a program name with args. 28155set dummy groff; ac_word=$2 28156echo "$as_me:$LINENO: checking for $ac_word" >&5 28157echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 28158if test "${ac_cv_path_GROFF+set}" = set; then 28159 echo $ECHO_N "(cached) $ECHO_C" >&6 28160else 28161 case $GROFF in 28162 [\\/]* | ?:[\\/]*) 28163 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path. 28164 ;; 28165 *) 28166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28167for as_dir in $PATH 28168do 28169 IFS=$as_save_IFS 28170 test -z "$as_dir" && as_dir=. 28171 for ac_exec_ext in '' $ac_executable_extensions; do 28172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28173 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext" 28174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 28175 break 2 28176 fi 28177done 28178done 28179 28180 ;; 28181esac 28182fi 28183GROFF=$ac_cv_path_GROFF 28184 28185if test -n "$GROFF"; then 28186 echo "$as_me:$LINENO: result: $GROFF" >&5 28187echo "${ECHO_T}$GROFF" >&6 28188else 28189 echo "$as_me:$LINENO: result: no" >&5 28190echo "${ECHO_T}no" >&6 28191fi 28192 28193echo "$as_me:$LINENO: checking how to format man pages" >&5 28194echo $ECHO_N "checking how to format man pages... $ECHO_C" >&6 28195if test "${ac_cv_sys_man_format+set}" = set; then 28196 echo $ECHO_N "(cached) $ECHO_C" >&6 28197else 28198 cat > conftest.1 << END 28199.Dd January 1, 1970 28200.Dt CONFTEST 1 28201.Sh NAME 28202.Nm conftest 28203.Nd 28204foobar 28205END 28206 28207if test "$NROFF" ; then 28208 for i in "-mdoc" "-mandoc"; do 28209 if "$NROFF" $i conftest.1 2> /dev/null | \ 28210 grep Jan > /dev/null 2>&1 ; then 28211 ac_cv_sys_man_format="$NROFF $i" 28212 break 28213 fi 28214 done 28215fi 28216if test "$ac_cv_sys_man_format" = "" -a "$GROFF" ; then 28217 for i in "-mdoc" "-mandoc"; do 28218 if "$GROFF" -Tascii $i conftest.1 2> /dev/null | \ 28219 grep Jan > /dev/null 2>&1 ; then 28220 ac_cv_sys_man_format="$GROFF -Tascii $i" 28221 break 28222 fi 28223 done 28224fi 28225if test "$ac_cv_sys_man_format"; then 28226 ac_cv_sys_man_format="$ac_cv_sys_man_format \$< > \$@" 28227fi 28228 28229fi 28230echo "$as_me:$LINENO: result: $ac_cv_sys_man_format" >&5 28231echo "${ECHO_T}$ac_cv_sys_man_format" >&6 28232if test "$ac_cv_sys_man_format"; then 28233 CATMAN="$ac_cv_sys_man_format" 28234 28235fi 28236 28237 28238if test "$CATMAN"; then 28239 CATMAN_TRUE= 28240 CATMAN_FALSE='#' 28241else 28242 CATMAN_TRUE='#' 28243 CATMAN_FALSE= 28244fi 28245 28246echo "$as_me:$LINENO: checking extension of pre-formatted manual pages" >&5 28247echo $ECHO_N "checking extension of pre-formatted manual pages... $ECHO_C" >&6 28248if test "${ac_cv_sys_catman_ext+set}" = set; then 28249 echo $ECHO_N "(cached) $ECHO_C" >&6 28250else 28251 if grep _suffix /etc/man.conf > /dev/null 2>&1; then 28252 ac_cv_sys_catman_ext=0 28253else 28254 ac_cv_sys_catman_ext=number 28255fi 28256 28257fi 28258echo "$as_me:$LINENO: result: $ac_cv_sys_catman_ext" >&5 28259echo "${ECHO_T}$ac_cv_sys_catman_ext" >&6 28260if test "$ac_cv_sys_catman_ext" = number; then 28261 CATMANEXT='$$section' 28262else 28263 CATMANEXT=0 28264fi 28265 28266 28267 28268 28269 28270# Check whether --with-readline or --without-readline was given. 28271if test "${with_readline+set}" = set; then 28272 withval="$with_readline" 28273 28274fi; 28275 28276# Check whether --with-readline-lib or --without-readline-lib was given. 28277if test "${with_readline_lib+set}" = set; then 28278 withval="$with_readline_lib" 28279 if test "$withval" = "yes" -o "$withval" = "no"; then 28280 { { echo "$as_me:$LINENO: error: No argument for --with-readline-lib" >&5 28281echo "$as_me: error: No argument for --with-readline-lib" >&2;} 28282 { (exit 1); exit 1; }; } 28283elif test "X$with_readline" = "X"; then 28284 with_readline=yes 28285fi 28286fi; 28287 28288# Check whether --with-readline-include or --without-readline-include was given. 28289if test "${with_readline_include+set}" = set; then 28290 withval="$with_readline_include" 28291 if test "$withval" = "yes" -o "$withval" = "no"; then 28292 { { echo "$as_me:$LINENO: error: No argument for --with-readline-include" >&5 28293echo "$as_me: error: No argument for --with-readline-include" >&2;} 28294 { (exit 1); exit 1; }; } 28295elif test "X$with_readline" = "X"; then 28296 with_readline=yes 28297fi 28298fi; 28299 28300# Check whether --with-readline-config or --without-readline-config was given. 28301if test "${with_readline_config+set}" = set; then 28302 withval="$with_readline_config" 28303 28304fi; 28305 28306 28307 28308echo "$as_me:$LINENO: checking for readline" >&5 28309echo $ECHO_N "checking for readline... $ECHO_C" >&6 28310 28311case "$with_readline" in 28312yes|"") d='' ;; 28313no) d= ;; 28314*) d="$with_readline" ;; 28315esac 28316 28317header_dirs= 28318lib_dirs= 28319for i in $d; do 28320 if test "$with_readline_include" = ""; then 28321 if test -d "$i/include/readline"; then 28322 header_dirs="$header_dirs $i/include/readline" 28323 fi 28324 if test -d "$i/include"; then 28325 header_dirs="$header_dirs $i/include" 28326 fi 28327 fi 28328 if test "$with_readline_lib" = ""; then 28329 if test -d "$i/lib$abilibdirext"; then 28330 lib_dirs="$lib_dirs $i/lib$abilibdirext" 28331 fi 28332 fi 28333done 28334 28335if test "$with_readline_include"; then 28336 header_dirs="$with_readline_include $header_dirs" 28337fi 28338if test "$with_readline_lib"; then 28339 lib_dirs="$with_readline_lib $lib_dirs" 28340fi 28341 28342if test "$with_readline_config" = ""; then 28343 with_readline_config='' 28344fi 28345 28346readline_cflags= 28347readline_libs= 28348 28349case "$with_readline_config" in 28350yes|no|"") 28351 ;; 28352*) 28353 readline_cflags="`$with_readline_config --cflags 2>&1`" 28354 readline_libs="`$with_readline_config --libs 2>&1`" 28355 ;; 28356esac 28357 28358found=no 28359if test "$with_readline" != no; then 28360 save_CFLAGS="$CFLAGS" 28361 save_LIBS="$LIBS" 28362 if test "$readline_cflags" -a "$readline_libs"; then 28363 CFLAGS="$readline_cflags $save_CFLAGS" 28364 LIBS="$readline_libs $save_LIBS" 28365 cat >conftest.$ac_ext <<_ACEOF 28366#line $LINENO "configure" 28367#include "confdefs.h" 28368#include <stdio.h> 28369 #include <readline.h> 28370#ifdef F77_DUMMY_MAIN 28371# ifdef __cplusplus 28372 extern "C" 28373# endif 28374 int F77_DUMMY_MAIN() { return 1; } 28375#endif 28376int 28377main () 28378{ 28379 28380 ; 28381 return 0; 28382} 28383_ACEOF 28384rm -f conftest.$ac_objext conftest$ac_exeext 28385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28386 (eval $ac_link) 2>&5 28387 ac_status=$? 28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28389 (exit $ac_status); } && 28390 { ac_try='test -s conftest$ac_exeext' 28391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28392 (eval $ac_try) 2>&5 28393 ac_status=$? 28394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28395 (exit $ac_status); }; }; then 28396 28397 INCLUDE_readline="$readline_cflags" 28398 LIB_readline="$readline_libs" 28399 echo "$as_me:$LINENO: result: from $with_readline_config" >&5 28400echo "${ECHO_T}from $with_readline_config" >&6 28401 found=yes 28402else 28403 echo "$as_me: failed program was:" >&5 28404cat conftest.$ac_ext >&5 28405fi 28406rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28407 fi 28408 if test "$found" = no; then 28409 ires= lres= 28410 for i in $header_dirs; do 28411 CFLAGS="-I$i $save_CFLAGS" 28412 cat >conftest.$ac_ext <<_ACEOF 28413#line $LINENO "configure" 28414#include "confdefs.h" 28415#include <stdio.h> 28416 #include <readline.h> 28417#ifdef F77_DUMMY_MAIN 28418# ifdef __cplusplus 28419 extern "C" 28420# endif 28421 int F77_DUMMY_MAIN() { return 1; } 28422#endif 28423int 28424main () 28425{ 28426 28427 ; 28428 return 0; 28429} 28430_ACEOF 28431rm -f conftest.$ac_objext 28432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28433 (eval $ac_compile) 2>&5 28434 ac_status=$? 28435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28436 (exit $ac_status); } && 28437 { ac_try='test -s conftest.$ac_objext' 28438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28439 (eval $ac_try) 2>&5 28440 ac_status=$? 28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28442 (exit $ac_status); }; }; then 28443 ires=$i;break 28444else 28445 echo "$as_me: failed program was:" >&5 28446cat conftest.$ac_ext >&5 28447fi 28448rm -f conftest.$ac_objext conftest.$ac_ext 28449 done 28450 for i in $lib_dirs; do 28451 LIBS="-L$i -lreadline $save_LIBS" 28452 cat >conftest.$ac_ext <<_ACEOF 28453#line $LINENO "configure" 28454#include "confdefs.h" 28455#include <stdio.h> 28456 #include <readline.h> 28457#ifdef F77_DUMMY_MAIN 28458# ifdef __cplusplus 28459 extern "C" 28460# endif 28461 int F77_DUMMY_MAIN() { return 1; } 28462#endif 28463int 28464main () 28465{ 28466 28467 ; 28468 return 0; 28469} 28470_ACEOF 28471rm -f conftest.$ac_objext conftest$ac_exeext 28472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28473 (eval $ac_link) 2>&5 28474 ac_status=$? 28475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28476 (exit $ac_status); } && 28477 { ac_try='test -s conftest$ac_exeext' 28478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28479 (eval $ac_try) 2>&5 28480 ac_status=$? 28481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28482 (exit $ac_status); }; }; then 28483 lres=$i;break 28484else 28485 echo "$as_me: failed program was:" >&5 28486cat conftest.$ac_ext >&5 28487fi 28488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28489 done 28490 if test "$ires" -a "$lres" -a "$with_readline" != "no"; then 28491 INCLUDE_readline="-I$ires" 28492 LIB_readline="-L$lres -lreadline " 28493 found=yes 28494 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 28495echo "${ECHO_T}headers $ires, libraries $lres" >&6 28496 fi 28497 fi 28498 CFLAGS="$save_CFLAGS" 28499 LIBS="$save_LIBS" 28500fi 28501 28502if test "$found" = yes; then 28503 28504cat >>confdefs.h <<_ACEOF 28505#define READLINE 1 28506_ACEOF 28507 28508 with_readline=yes 28509else 28510 with_readline=no 28511 INCLUDE_readline= 28512 LIB_readline= 28513 echo "$as_me:$LINENO: result: no" >&5 28514echo "${ECHO_T}no" >&6 28515fi 28516 28517 28518 28519 28520 28521 28522 28523# Check whether --with-hesiod or --without-hesiod was given. 28524if test "${with_hesiod+set}" = set; then 28525 withval="$with_hesiod" 28526 28527fi; 28528 28529# Check whether --with-hesiod-lib or --without-hesiod-lib was given. 28530if test "${with_hesiod_lib+set}" = set; then 28531 withval="$with_hesiod_lib" 28532 if test "$withval" = "yes" -o "$withval" = "no"; then 28533 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-lib" >&5 28534echo "$as_me: error: No argument for --with-hesiod-lib" >&2;} 28535 { (exit 1); exit 1; }; } 28536elif test "X$with_hesiod" = "X"; then 28537 with_hesiod=yes 28538fi 28539fi; 28540 28541# Check whether --with-hesiod-include or --without-hesiod-include was given. 28542if test "${with_hesiod_include+set}" = set; then 28543 withval="$with_hesiod_include" 28544 if test "$withval" = "yes" -o "$withval" = "no"; then 28545 { { echo "$as_me:$LINENO: error: No argument for --with-hesiod-include" >&5 28546echo "$as_me: error: No argument for --with-hesiod-include" >&2;} 28547 { (exit 1); exit 1; }; } 28548elif test "X$with_hesiod" = "X"; then 28549 with_hesiod=yes 28550fi 28551fi; 28552 28553# Check whether --with-hesiod-config or --without-hesiod-config was given. 28554if test "${with_hesiod_config+set}" = set; then 28555 withval="$with_hesiod_config" 28556 28557fi; 28558 28559 28560 28561echo "$as_me:$LINENO: checking for hesiod" >&5 28562echo $ECHO_N "checking for hesiod... $ECHO_C" >&6 28563 28564case "$with_hesiod" in 28565yes|"") d='' ;; 28566no) d= ;; 28567*) d="$with_hesiod" ;; 28568esac 28569 28570header_dirs= 28571lib_dirs= 28572for i in $d; do 28573 if test "$with_hesiod_include" = ""; then 28574 if test -d "$i/include/hesiod"; then 28575 header_dirs="$header_dirs $i/include/hesiod" 28576 fi 28577 if test -d "$i/include"; then 28578 header_dirs="$header_dirs $i/include" 28579 fi 28580 fi 28581 if test "$with_hesiod_lib" = ""; then 28582 if test -d "$i/lib$abilibdirext"; then 28583 lib_dirs="$lib_dirs $i/lib$abilibdirext" 28584 fi 28585 fi 28586done 28587 28588if test "$with_hesiod_include"; then 28589 header_dirs="$with_hesiod_include $header_dirs" 28590fi 28591if test "$with_hesiod_lib"; then 28592 lib_dirs="$with_hesiod_lib $lib_dirs" 28593fi 28594 28595if test "$with_hesiod_config" = ""; then 28596 with_hesiod_config='' 28597fi 28598 28599hesiod_cflags= 28600hesiod_libs= 28601 28602case "$with_hesiod_config" in 28603yes|no|"") 28604 ;; 28605*) 28606 hesiod_cflags="`$with_hesiod_config --cflags 2>&1`" 28607 hesiod_libs="`$with_hesiod_config --libs 2>&1`" 28608 ;; 28609esac 28610 28611found=no 28612if test "$with_hesiod" != no; then 28613 save_CFLAGS="$CFLAGS" 28614 save_LIBS="$LIBS" 28615 if test "$hesiod_cflags" -a "$hesiod_libs"; then 28616 CFLAGS="$hesiod_cflags $save_CFLAGS" 28617 LIBS="$hesiod_libs $save_LIBS" 28618 cat >conftest.$ac_ext <<_ACEOF 28619#line $LINENO "configure" 28620#include "confdefs.h" 28621#include <hesiod.h> 28622#ifdef F77_DUMMY_MAIN 28623# ifdef __cplusplus 28624 extern "C" 28625# endif 28626 int F77_DUMMY_MAIN() { return 1; } 28627#endif 28628int 28629main () 28630{ 28631 28632 ; 28633 return 0; 28634} 28635_ACEOF 28636rm -f conftest.$ac_objext conftest$ac_exeext 28637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28638 (eval $ac_link) 2>&5 28639 ac_status=$? 28640 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28641 (exit $ac_status); } && 28642 { ac_try='test -s conftest$ac_exeext' 28643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28644 (eval $ac_try) 2>&5 28645 ac_status=$? 28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28647 (exit $ac_status); }; }; then 28648 28649 INCLUDE_hesiod="$hesiod_cflags" 28650 LIB_hesiod="$hesiod_libs" 28651 echo "$as_me:$LINENO: result: from $with_hesiod_config" >&5 28652echo "${ECHO_T}from $with_hesiod_config" >&6 28653 found=yes 28654else 28655 echo "$as_me: failed program was:" >&5 28656cat conftest.$ac_ext >&5 28657fi 28658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28659 fi 28660 if test "$found" = no; then 28661 ires= lres= 28662 for i in $header_dirs; do 28663 CFLAGS="-I$i $save_CFLAGS" 28664 cat >conftest.$ac_ext <<_ACEOF 28665#line $LINENO "configure" 28666#include "confdefs.h" 28667#include <hesiod.h> 28668#ifdef F77_DUMMY_MAIN 28669# ifdef __cplusplus 28670 extern "C" 28671# endif 28672 int F77_DUMMY_MAIN() { return 1; } 28673#endif 28674int 28675main () 28676{ 28677 28678 ; 28679 return 0; 28680} 28681_ACEOF 28682rm -f conftest.$ac_objext 28683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28684 (eval $ac_compile) 2>&5 28685 ac_status=$? 28686 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28687 (exit $ac_status); } && 28688 { ac_try='test -s conftest.$ac_objext' 28689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28690 (eval $ac_try) 2>&5 28691 ac_status=$? 28692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28693 (exit $ac_status); }; }; then 28694 ires=$i;break 28695else 28696 echo "$as_me: failed program was:" >&5 28697cat conftest.$ac_ext >&5 28698fi 28699rm -f conftest.$ac_objext conftest.$ac_ext 28700 done 28701 for i in $lib_dirs; do 28702 LIBS="-L$i -lhesiod $save_LIBS" 28703 cat >conftest.$ac_ext <<_ACEOF 28704#line $LINENO "configure" 28705#include "confdefs.h" 28706#include <hesiod.h> 28707#ifdef F77_DUMMY_MAIN 28708# ifdef __cplusplus 28709 extern "C" 28710# endif 28711 int F77_DUMMY_MAIN() { return 1; } 28712#endif 28713int 28714main () 28715{ 28716 28717 ; 28718 return 0; 28719} 28720_ACEOF 28721rm -f conftest.$ac_objext conftest$ac_exeext 28722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28723 (eval $ac_link) 2>&5 28724 ac_status=$? 28725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28726 (exit $ac_status); } && 28727 { ac_try='test -s conftest$ac_exeext' 28728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28729 (eval $ac_try) 2>&5 28730 ac_status=$? 28731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28732 (exit $ac_status); }; }; then 28733 lres=$i;break 28734else 28735 echo "$as_me: failed program was:" >&5 28736cat conftest.$ac_ext >&5 28737fi 28738rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 28739 done 28740 if test "$ires" -a "$lres" -a "$with_hesiod" != "no"; then 28741 INCLUDE_hesiod="-I$ires" 28742 LIB_hesiod="-L$lres -lhesiod " 28743 found=yes 28744 echo "$as_me:$LINENO: result: headers $ires, libraries $lres" >&5 28745echo "${ECHO_T}headers $ires, libraries $lres" >&6 28746 fi 28747 fi 28748 CFLAGS="$save_CFLAGS" 28749 LIBS="$save_LIBS" 28750fi 28751 28752if test "$found" = yes; then 28753 28754cat >>confdefs.h <<_ACEOF 28755#define HESIOD 1 28756_ACEOF 28757 28758 with_hesiod=yes 28759else 28760 with_hesiod=no 28761 INCLUDE_hesiod= 28762 LIB_hesiod= 28763 echo "$as_me:$LINENO: result: no" >&5 28764echo "${ECHO_T}no" >&6 28765fi 28766 28767 28768 28769 28770 28771 28772# Check whether --enable-bigendian or --disable-bigendian was given. 28773if test "${enable_bigendian+set}" = set; then 28774 enableval="$enable_bigendian" 28775 krb_cv_c_bigendian=yes 28776fi; 28777# Check whether --enable-littleendian or --disable-littleendian was given. 28778if test "${enable_littleendian+set}" = set; then 28779 enableval="$enable_littleendian" 28780 krb_cv_c_bigendian=no 28781fi; 28782echo "$as_me:$LINENO: checking whether byte order is known at compile time" >&5 28783echo $ECHO_N "checking whether byte order is known at compile time... $ECHO_C" >&6 28784if test "${krb_cv_c_bigendian_compile+set}" = set; then 28785 echo $ECHO_N "(cached) $ECHO_C" >&6 28786else 28787 cat >conftest.$ac_ext <<_ACEOF 28788#line $LINENO "configure" 28789#include "confdefs.h" 28790 28791#include <sys/types.h> 28792#include <sys/param.h> 28793#ifdef F77_DUMMY_MAIN 28794# ifdef __cplusplus 28795 extern "C" 28796# endif 28797 int F77_DUMMY_MAIN() { return 1; } 28798#endif 28799int 28800main () 28801{ 28802 28803#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN 28804 bogus endian macros 28805#endif 28806 ; 28807 return 0; 28808} 28809_ACEOF 28810rm -f conftest.$ac_objext 28811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28812 (eval $ac_compile) 2>&5 28813 ac_status=$? 28814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28815 (exit $ac_status); } && 28816 { ac_try='test -s conftest.$ac_objext' 28817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28818 (eval $ac_try) 2>&5 28819 ac_status=$? 28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28821 (exit $ac_status); }; }; then 28822 krb_cv_c_bigendian_compile=yes 28823else 28824 echo "$as_me: failed program was:" >&5 28825cat conftest.$ac_ext >&5 28826krb_cv_c_bigendian_compile=no 28827fi 28828rm -f conftest.$ac_objext conftest.$ac_ext 28829fi 28830echo "$as_me:$LINENO: result: $krb_cv_c_bigendian_compile" >&5 28831echo "${ECHO_T}$krb_cv_c_bigendian_compile" >&6 28832echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 28833echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 28834if test "${krb_cv_c_bigendian+set}" = set; then 28835 echo $ECHO_N "(cached) $ECHO_C" >&6 28836else 28837 28838 if test "$krb_cv_c_bigendian_compile" = "yes"; then 28839 cat >conftest.$ac_ext <<_ACEOF 28840#line $LINENO "configure" 28841#include "confdefs.h" 28842 28843#include <sys/types.h> 28844#include <sys/param.h> 28845#ifdef F77_DUMMY_MAIN 28846# ifdef __cplusplus 28847 extern "C" 28848# endif 28849 int F77_DUMMY_MAIN() { return 1; } 28850#endif 28851int 28852main () 28853{ 28854 28855#if BYTE_ORDER != BIG_ENDIAN 28856 not big endian 28857#endif 28858 ; 28859 return 0; 28860} 28861_ACEOF 28862rm -f conftest.$ac_objext 28863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28864 (eval $ac_compile) 2>&5 28865 ac_status=$? 28866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28867 (exit $ac_status); } && 28868 { ac_try='test -s conftest.$ac_objext' 28869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28870 (eval $ac_try) 2>&5 28871 ac_status=$? 28872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28873 (exit $ac_status); }; }; then 28874 krb_cv_c_bigendian=yes 28875else 28876 echo "$as_me: failed program was:" >&5 28877cat conftest.$ac_ext >&5 28878krb_cv_c_bigendian=no 28879fi 28880rm -f conftest.$ac_objext conftest.$ac_ext 28881 else 28882 if test "$cross_compiling" = yes; then 28883 { { echo "$as_me:$LINENO: error: specify either --enable-bigendian or --enable-littleendian" >&5 28884echo "$as_me: error: specify either --enable-bigendian or --enable-littleendian" >&2;} 28885 { (exit 1); exit 1; }; } 28886else 28887 cat >conftest.$ac_ext <<_ACEOF 28888#line $LINENO "configure" 28889#include "confdefs.h" 28890main () { 28891 /* Are we little or big endian? From Harbison&Steele. */ 28892 union 28893 { 28894 long l; 28895 char c[sizeof (long)]; 28896 } u; 28897 u.l = 1; 28898 exit (u.c[sizeof (long) - 1] == 1); 28899 } 28900_ACEOF 28901rm -f conftest$ac_exeext 28902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 28903 (eval $ac_link) 2>&5 28904 ac_status=$? 28905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 28907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28908 (eval $ac_try) 2>&5 28909 ac_status=$? 28910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28911 (exit $ac_status); }; }; then 28912 krb_cv_c_bigendian=no 28913else 28914 echo "$as_me: program exited with status $ac_status" >&5 28915echo "$as_me: failed program was:" >&5 28916cat conftest.$ac_ext >&5 28917( exit $ac_status ) 28918krb_cv_c_bigendian=yes 28919fi 28920rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 28921fi 28922 fi 28923 28924fi 28925echo "$as_me:$LINENO: result: $krb_cv_c_bigendian" >&5 28926echo "${ECHO_T}$krb_cv_c_bigendian" >&6 28927if test "$krb_cv_c_bigendian" = "yes"; then 28928 28929cat >>confdefs.h <<\_ACEOF 28930#define WORDS_BIGENDIAN 1 28931_ACEOF 28932fi 28933if test "$krb_cv_c_bigendian_compile" = "yes"; then 28934 28935cat >>confdefs.h <<\_ACEOF 28936#define ENDIANESS_IN_SYS_PARAM_H 1 28937_ACEOF 28938fi 28939 28940 28941 28942echo "$as_me:$LINENO: checking for inline" >&5 28943echo $ECHO_N "checking for inline... $ECHO_C" >&6 28944if test "${ac_cv_c_inline+set}" = set; then 28945 echo $ECHO_N "(cached) $ECHO_C" >&6 28946else 28947 ac_cv_c_inline=no 28948for ac_kw in inline __inline__ __inline; do 28949 cat >conftest.$ac_ext <<_ACEOF 28950#line $LINENO "configure" 28951#include "confdefs.h" 28952#ifndef __cplusplus 28953static $ac_kw int static_foo () {return 0; } 28954$ac_kw int foo () {return 0; } 28955#endif 28956 28957_ACEOF 28958rm -f conftest.$ac_objext 28959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 28960 (eval $ac_compile) 2>&5 28961 ac_status=$? 28962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28963 (exit $ac_status); } && 28964 { ac_try='test -s conftest.$ac_objext' 28965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 28966 (eval $ac_try) 2>&5 28967 ac_status=$? 28968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 28969 (exit $ac_status); }; }; then 28970 ac_cv_c_inline=$ac_kw; break 28971else 28972 echo "$as_me: failed program was:" >&5 28973cat conftest.$ac_ext >&5 28974fi 28975rm -f conftest.$ac_objext conftest.$ac_ext 28976done 28977 28978fi 28979echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 28980echo "${ECHO_T}$ac_cv_c_inline" >&6 28981case $ac_cv_c_inline in 28982 inline | yes) ;; 28983 no) 28984cat >>confdefs.h <<\_ACEOF 28985#define inline 28986_ACEOF 28987 ;; 28988 *) cat >>confdefs.h <<_ACEOF 28989#define inline $ac_cv_c_inline 28990_ACEOF 28991 ;; 28992esac 28993 28994 28995 28996 28997 28998 28999echo "$as_me:$LINENO: checking for dlopen" >&5 29000echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 29001if test "${ac_cv_funclib_dlopen+set}" = set; then 29002 echo $ECHO_N "(cached) $ECHO_C" >&6 29003else 29004 29005if eval "test \"\$ac_cv_func_dlopen\" != yes" ; then 29006 ac_save_LIBS="$LIBS" 29007 for ac_lib in "" dl; do 29008 case "$ac_lib" in 29009 "") ;; 29010 yes) ac_lib="" ;; 29011 no) continue ;; 29012 -l*) ;; 29013 *) ac_lib="-l$ac_lib" ;; 29014 esac 29015 LIBS=" $ac_lib $ac_save_LIBS" 29016 cat >conftest.$ac_ext <<_ACEOF 29017#line $LINENO "configure" 29018#include "confdefs.h" 29019 29020#ifdef F77_DUMMY_MAIN 29021# ifdef __cplusplus 29022 extern "C" 29023# endif 29024 int F77_DUMMY_MAIN() { return 1; } 29025#endif 29026int 29027main () 29028{ 29029dlopen() 29030 ; 29031 return 0; 29032} 29033_ACEOF 29034rm -f conftest.$ac_objext conftest$ac_exeext 29035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29036 (eval $ac_link) 2>&5 29037 ac_status=$? 29038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29039 (exit $ac_status); } && 29040 { ac_try='test -s conftest$ac_exeext' 29041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29042 (eval $ac_try) 2>&5 29043 ac_status=$? 29044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29045 (exit $ac_status); }; }; then 29046 eval "if test -n \"$ac_lib\";then ac_cv_funclib_dlopen=$ac_lib; else ac_cv_funclib_dlopen=yes; fi";break 29047else 29048 echo "$as_me: failed program was:" >&5 29049cat conftest.$ac_ext >&5 29050fi 29051rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29052 done 29053 eval "ac_cv_funclib_dlopen=\${ac_cv_funclib_dlopen-no}" 29054 LIBS="$ac_save_LIBS" 29055fi 29056 29057fi 29058 29059 29060eval "ac_res=\$ac_cv_funclib_dlopen" 29061 29062if false; then 29063 29064for ac_func in dlopen 29065do 29066as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29067echo "$as_me:$LINENO: checking for $ac_func" >&5 29068echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 29069if eval "test \"\${$as_ac_var+set}\" = set"; then 29070 echo $ECHO_N "(cached) $ECHO_C" >&6 29071else 29072 cat >conftest.$ac_ext <<_ACEOF 29073#line $LINENO "configure" 29074#include "confdefs.h" 29075/* System header to define __stub macros and hopefully few prototypes, 29076 which can conflict with char $ac_func (); below. */ 29077#include <assert.h> 29078/* Override any gcc2 internal prototype to avoid an error. */ 29079#ifdef __cplusplus 29080extern "C" 29081#endif 29082/* We use char because int might match the return type of a gcc2 29083 builtin and then its argument prototype would still apply. */ 29084char $ac_func (); 29085char (*f) (); 29086 29087#ifdef F77_DUMMY_MAIN 29088# ifdef __cplusplus 29089 extern "C" 29090# endif 29091 int F77_DUMMY_MAIN() { return 1; } 29092#endif 29093int 29094main () 29095{ 29096/* The GNU C library defines this for functions which it implements 29097 to always fail with ENOSYS. Some functions are actually named 29098 something starting with __ and the normal name is an alias. */ 29099#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 29100choke me 29101#else 29102f = $ac_func; 29103#endif 29104 29105 ; 29106 return 0; 29107} 29108_ACEOF 29109rm -f conftest.$ac_objext conftest$ac_exeext 29110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29111 (eval $ac_link) 2>&5 29112 ac_status=$? 29113 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29114 (exit $ac_status); } && 29115 { ac_try='test -s conftest$ac_exeext' 29116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29117 (eval $ac_try) 2>&5 29118 ac_status=$? 29119 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29120 (exit $ac_status); }; }; then 29121 eval "$as_ac_var=yes" 29122else 29123 echo "$as_me: failed program was:" >&5 29124cat conftest.$ac_ext >&5 29125eval "$as_ac_var=no" 29126fi 29127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29128fi 29129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 29130echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 29131if test `eval echo '${'$as_ac_var'}'` = yes; then 29132 cat >>confdefs.h <<_ACEOF 29133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29134_ACEOF 29135 29136fi 29137done 29138 29139fi 29140# dlopen 29141eval "ac_tr_func=HAVE_`echo dlopen | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29142eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29143eval "LIB_dlopen=$ac_res" 29144 29145case "$ac_res" in 29146 yes) 29147 eval "ac_cv_func_dlopen=yes" 29148 eval "LIB_dlopen=" 29149 cat >>confdefs.h <<_ACEOF 29150#define $ac_tr_func 1 29151_ACEOF 29152 29153 echo "$as_me:$LINENO: result: yes" >&5 29154echo "${ECHO_T}yes" >&6 29155 ;; 29156 no) 29157 eval "ac_cv_func_dlopen=no" 29158 eval "LIB_dlopen=" 29159 echo "$as_me:$LINENO: result: no" >&5 29160echo "${ECHO_T}no" >&6 29161 ;; 29162 *) 29163 eval "ac_cv_func_dlopen=yes" 29164 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 29165 cat >>confdefs.h <<_ACEOF 29166#define $ac_tr_func 1 29167_ACEOF 29168 29169 cat >>confdefs.h <<_ACEOF 29170#define $ac_tr_lib 1 29171_ACEOF 29172 29173 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 29174echo "${ECHO_T}yes, in $ac_res" >&6 29175 ;; 29176esac 29177 29178 29179 29180 29181if test "$ac_cv_funclib_dlopen" != no; then 29182 HAVE_DLOPEN_TRUE= 29183 HAVE_DLOPEN_FALSE='#' 29184else 29185 HAVE_DLOPEN_TRUE='#' 29186 HAVE_DLOPEN_FALSE= 29187fi 29188 29189 29190 29191 29192aix=no 29193case "$host" in 29194*-*-aix3*) 29195 aix=3 29196 ;; 29197*-*-aix4*|*-*-aix5*) 29198 aix=4 29199 ;; 29200esac 29201 29202 29203 29204if test "$aix" != no; then 29205 AIX_TRUE= 29206 AIX_FALSE='#' 29207else 29208 AIX_TRUE='#' 29209 AIX_FALSE= 29210fi 29211 29212 29213if test "$aix" = 4; then 29214 AIX4_TRUE= 29215 AIX4_FALSE='#' 29216else 29217 AIX4_TRUE='#' 29218 AIX4_FALSE= 29219fi 29220 29221 29222 29223# Check whether --enable-dynamic-afs or --disable-dynamic-afs was given. 29224if test "${enable_dynamic_afs+set}" = set; then 29225 enableval="$enable_dynamic_afs" 29226 29227fi; 29228 29229if test "$aix" != no; then 29230 if test "$enable_dynamic_afs" != no; then 29231 29232 if test "$ac_cv_func_dlopen" = no; then 29233 29234 29235 29236echo "$as_me:$LINENO: checking for loadquery" >&5 29237echo $ECHO_N "checking for loadquery... $ECHO_C" >&6 29238if test "${ac_cv_funclib_loadquery+set}" = set; then 29239 echo $ECHO_N "(cached) $ECHO_C" >&6 29240else 29241 29242if eval "test \"\$ac_cv_func_loadquery\" != yes" ; then 29243 ac_save_LIBS="$LIBS" 29244 for ac_lib in "" ld; do 29245 case "$ac_lib" in 29246 "") ;; 29247 yes) ac_lib="" ;; 29248 no) continue ;; 29249 -l*) ;; 29250 *) ac_lib="-l$ac_lib" ;; 29251 esac 29252 LIBS=" $ac_lib $ac_save_LIBS" 29253 cat >conftest.$ac_ext <<_ACEOF 29254#line $LINENO "configure" 29255#include "confdefs.h" 29256 29257#ifdef F77_DUMMY_MAIN 29258# ifdef __cplusplus 29259 extern "C" 29260# endif 29261 int F77_DUMMY_MAIN() { return 1; } 29262#endif 29263int 29264main () 29265{ 29266loadquery() 29267 ; 29268 return 0; 29269} 29270_ACEOF 29271rm -f conftest.$ac_objext conftest$ac_exeext 29272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29273 (eval $ac_link) 2>&5 29274 ac_status=$? 29275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29276 (exit $ac_status); } && 29277 { ac_try='test -s conftest$ac_exeext' 29278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29279 (eval $ac_try) 2>&5 29280 ac_status=$? 29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29282 (exit $ac_status); }; }; then 29283 eval "if test -n \"$ac_lib\";then ac_cv_funclib_loadquery=$ac_lib; else ac_cv_funclib_loadquery=yes; fi";break 29284else 29285 echo "$as_me: failed program was:" >&5 29286cat conftest.$ac_ext >&5 29287fi 29288rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29289 done 29290 eval "ac_cv_funclib_loadquery=\${ac_cv_funclib_loadquery-no}" 29291 LIBS="$ac_save_LIBS" 29292fi 29293 29294fi 29295 29296 29297eval "ac_res=\$ac_cv_funclib_loadquery" 29298 29299if false; then 29300 29301for ac_func in loadquery 29302do 29303as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 29304echo "$as_me:$LINENO: checking for $ac_func" >&5 29305echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 29306if eval "test \"\${$as_ac_var+set}\" = set"; then 29307 echo $ECHO_N "(cached) $ECHO_C" >&6 29308else 29309 cat >conftest.$ac_ext <<_ACEOF 29310#line $LINENO "configure" 29311#include "confdefs.h" 29312/* System header to define __stub macros and hopefully few prototypes, 29313 which can conflict with char $ac_func (); below. */ 29314#include <assert.h> 29315/* Override any gcc2 internal prototype to avoid an error. */ 29316#ifdef __cplusplus 29317extern "C" 29318#endif 29319/* We use char because int might match the return type of a gcc2 29320 builtin and then its argument prototype would still apply. */ 29321char $ac_func (); 29322char (*f) (); 29323 29324#ifdef F77_DUMMY_MAIN 29325# ifdef __cplusplus 29326 extern "C" 29327# endif 29328 int F77_DUMMY_MAIN() { return 1; } 29329#endif 29330int 29331main () 29332{ 29333/* The GNU C library defines this for functions which it implements 29334 to always fail with ENOSYS. Some functions are actually named 29335 something starting with __ and the normal name is an alias. */ 29336#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 29337choke me 29338#else 29339f = $ac_func; 29340#endif 29341 29342 ; 29343 return 0; 29344} 29345_ACEOF 29346rm -f conftest.$ac_objext conftest$ac_exeext 29347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29348 (eval $ac_link) 2>&5 29349 ac_status=$? 29350 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29351 (exit $ac_status); } && 29352 { ac_try='test -s conftest$ac_exeext' 29353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29354 (eval $ac_try) 2>&5 29355 ac_status=$? 29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29357 (exit $ac_status); }; }; then 29358 eval "$as_ac_var=yes" 29359else 29360 echo "$as_me: failed program was:" >&5 29361cat conftest.$ac_ext >&5 29362eval "$as_ac_var=no" 29363fi 29364rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29365fi 29366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 29367echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 29368if test `eval echo '${'$as_ac_var'}'` = yes; then 29369 cat >>confdefs.h <<_ACEOF 29370#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 29371_ACEOF 29372 29373fi 29374done 29375 29376fi 29377# loadquery 29378eval "ac_tr_func=HAVE_`echo loadquery | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29379eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 29380eval "LIB_loadquery=$ac_res" 29381 29382case "$ac_res" in 29383 yes) 29384 eval "ac_cv_func_loadquery=yes" 29385 eval "LIB_loadquery=" 29386 cat >>confdefs.h <<_ACEOF 29387#define $ac_tr_func 1 29388_ACEOF 29389 29390 echo "$as_me:$LINENO: result: yes" >&5 29391echo "${ECHO_T}yes" >&6 29392 ;; 29393 no) 29394 eval "ac_cv_func_loadquery=no" 29395 eval "LIB_loadquery=" 29396 echo "$as_me:$LINENO: result: no" >&5 29397echo "${ECHO_T}no" >&6 29398 ;; 29399 *) 29400 eval "ac_cv_func_loadquery=yes" 29401 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 29402 cat >>confdefs.h <<_ACEOF 29403#define $ac_tr_func 1 29404_ACEOF 29405 29406 cat >>confdefs.h <<_ACEOF 29407#define $ac_tr_lib 1 29408_ACEOF 29409 29410 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 29411echo "${ECHO_T}yes, in $ac_res" >&6 29412 ;; 29413esac 29414 29415 29416 fi 29417 if test "$ac_cv_func_dlopen" != no; then 29418 AIX_EXTRA_KAFS='$(LIB_dlopen)' 29419 elif test "$ac_cv_func_loadquery" != no; then 29420 AIX_EXTRA_KAFS='$(LIB_loadquery)' 29421 else 29422 { echo "$as_me:$LINENO: not using dynloaded AFS library" >&5 29423echo "$as_me: not using dynloaded AFS library" >&6;} 29424 AIX_EXTRA_KAFS= 29425 enable_dynamic_afs=no 29426 fi 29427 else 29428 AIX_EXTRA_KAFS= 29429 fi 29430fi 29431 29432 29433 29434if test "$enable_dynamic_afs" != no; then 29435 AIX_DYNAMIC_AFS_TRUE= 29436 AIX_DYNAMIC_AFS_FALSE='#' 29437else 29438 AIX_DYNAMIC_AFS_TRUE='#' 29439 AIX_DYNAMIC_AFS_FALSE= 29440fi 29441 29442 29443 29444 29445 29446 29447irix=no 29448case "$host" in 29449*-*-irix4*) 29450 29451cat >>confdefs.h <<\_ACEOF 29452#define IRIX4 1 29453_ACEOF 29454 29455 irix=yes 29456 ;; 29457*-*-irix*) 29458 irix=yes 29459 ;; 29460esac 29461 29462 29463if test "$irix" != no; then 29464 IRIX_TRUE= 29465 IRIX_FALSE='#' 29466else 29467 IRIX_TRUE='#' 29468 IRIX_FALSE= 29469fi 29470 29471 29472 29473 29474 29475sunos=no 29476case "$host" in 29477*-*-sunos4*) 29478 sunos=40 29479 ;; 29480*-*-solaris2.7) 29481 sunos=57 29482 ;; 29483*-*-solaris2.[89]) 29484 sunos=58 29485 ;; 29486*-*-solaris2*) 29487 sunos=50 29488 ;; 29489esac 29490if test "$sunos" != no; then 29491 29492cat >>confdefs.h <<_ACEOF 29493#define SunOS $sunos 29494_ACEOF 29495 29496fi 29497 29498 29499echo "$as_me:$LINENO: checking for X" >&5 29500echo $ECHO_N "checking for X... $ECHO_C" >&6 29501 29502 29503# Check whether --with-x or --without-x was given. 29504if test "${with_x+set}" = set; then 29505 withval="$with_x" 29506 29507fi; 29508# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 29509if test "x$with_x" = xno; then 29510 # The user explicitly disabled X. 29511 have_x=disabled 29512else 29513 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 29514 # Both variables are already set. 29515 have_x=yes 29516 else 29517 if test "${ac_cv_have_x+set}" = set; then 29518 echo $ECHO_N "(cached) $ECHO_C" >&6 29519else 29520 # One or both of the vars are not set, and there is no cached value. 29521ac_x_includes=no ac_x_libraries=no 29522rm -fr conftest.dir 29523if mkdir conftest.dir; then 29524 cd conftest.dir 29525 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 29526 cat >Imakefile <<'_ACEOF' 29527acfindx: 29528 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 29529_ACEOF 29530 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 29531 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 29532 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 29533 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 29534 for ac_extension in a so sl; do 29535 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 29536 test -f $ac_im_libdir/libX11.$ac_extension; then 29537 ac_im_usrlibdir=$ac_im_libdir; break 29538 fi 29539 done 29540 # Screen out bogus values from the imake configuration. They are 29541 # bogus both because they are the default anyway, and because 29542 # using them would break gcc on systems where it needs fixed includes. 29543 case $ac_im_incroot in 29544 /usr/include) ;; 29545 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 29546 esac 29547 case $ac_im_usrlibdir in 29548 /usr/lib | /lib) ;; 29549 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 29550 esac 29551 fi 29552 cd .. 29553 rm -fr conftest.dir 29554fi 29555 29556# Standard set of common directories for X headers. 29557# Check X11 before X11Rn because it is often a symlink to the current release. 29558ac_x_header_dirs=' 29559/usr/X11/include 29560/usr/X11R6/include 29561/usr/X11R5/include 29562/usr/X11R4/include 29563 29564/usr/include/X11 29565/usr/include/X11R6 29566/usr/include/X11R5 29567/usr/include/X11R4 29568 29569/usr/local/X11/include 29570/usr/local/X11R6/include 29571/usr/local/X11R5/include 29572/usr/local/X11R4/include 29573 29574/usr/local/include/X11 29575/usr/local/include/X11R6 29576/usr/local/include/X11R5 29577/usr/local/include/X11R4 29578 29579/usr/X386/include 29580/usr/x386/include 29581/usr/XFree86/include/X11 29582 29583/usr/include 29584/usr/local/include 29585/usr/unsupported/include 29586/usr/athena/include 29587/usr/local/x11r5/include 29588/usr/lpp/Xamples/include 29589 29590/usr/openwin/include 29591/usr/openwin/share/include' 29592 29593if test "$ac_x_includes" = no; then 29594 # Guess where to find include files, by looking for Intrinsic.h. 29595 # First, try using that file with no special directory specified. 29596 cat >conftest.$ac_ext <<_ACEOF 29597#line $LINENO "configure" 29598#include "confdefs.h" 29599#include <X11/Intrinsic.h> 29600_ACEOF 29601if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 29602 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 29603 ac_status=$? 29604 egrep -v '^ *\+' conftest.er1 >conftest.err 29605 rm -f conftest.er1 29606 cat conftest.err >&5 29607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29608 (exit $ac_status); } >/dev/null; then 29609 if test -s conftest.err; then 29610 ac_cpp_err=$ac_c_preproc_warn_flag 29611 else 29612 ac_cpp_err= 29613 fi 29614else 29615 ac_cpp_err=yes 29616fi 29617if test -z "$ac_cpp_err"; then 29618 # We can compile using X headers with no special include directory. 29619ac_x_includes= 29620else 29621 echo "$as_me: failed program was:" >&5 29622 cat conftest.$ac_ext >&5 29623 for ac_dir in $ac_x_header_dirs; do 29624 if test -r "$ac_dir/X11/Intrinsic.h"; then 29625 ac_x_includes=$ac_dir 29626 break 29627 fi 29628done 29629fi 29630rm -f conftest.err conftest.$ac_ext 29631fi # $ac_x_includes = no 29632 29633if test "$ac_x_libraries" = no; then 29634 # Check for the libraries. 29635 # See if we find them without any special options. 29636 # Don't add to $LIBS permanently. 29637 ac_save_LIBS=$LIBS 29638 LIBS="-lXt $LIBS" 29639 cat >conftest.$ac_ext <<_ACEOF 29640#line $LINENO "configure" 29641#include "confdefs.h" 29642#include <X11/Intrinsic.h> 29643#ifdef F77_DUMMY_MAIN 29644# ifdef __cplusplus 29645 extern "C" 29646# endif 29647 int F77_DUMMY_MAIN() { return 1; } 29648#endif 29649int 29650main () 29651{ 29652XtMalloc (0) 29653 ; 29654 return 0; 29655} 29656_ACEOF 29657rm -f conftest.$ac_objext conftest$ac_exeext 29658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29659 (eval $ac_link) 2>&5 29660 ac_status=$? 29661 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29662 (exit $ac_status); } && 29663 { ac_try='test -s conftest$ac_exeext' 29664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29665 (eval $ac_try) 2>&5 29666 ac_status=$? 29667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29668 (exit $ac_status); }; }; then 29669 LIBS=$ac_save_LIBS 29670# We can link X programs with no special library path. 29671ac_x_libraries= 29672else 29673 echo "$as_me: failed program was:" >&5 29674cat conftest.$ac_ext >&5 29675LIBS=$ac_save_LIBS 29676for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 29677do 29678 # Don't even attempt the hair of trying to link an X program! 29679 for ac_extension in a so sl; do 29680 if test -r $ac_dir/libXt.$ac_extension; then 29681 ac_x_libraries=$ac_dir 29682 break 2 29683 fi 29684 done 29685done 29686fi 29687rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29688fi # $ac_x_libraries = no 29689 29690if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 29691 # Didn't find X anywhere. Cache the known absence of X. 29692 ac_cv_have_x="have_x=no" 29693else 29694 # Record where we found X for the cache. 29695 ac_cv_have_x="have_x=yes \ 29696 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 29697fi 29698fi 29699 29700 fi 29701 eval "$ac_cv_have_x" 29702fi # $with_x != no 29703 29704if test "$have_x" != yes; then 29705 echo "$as_me:$LINENO: result: $have_x" >&5 29706echo "${ECHO_T}$have_x" >&6 29707 no_x=yes 29708else 29709 # If each of the values was on the command line, it overrides each guess. 29710 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 29711 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 29712 # Update the cache value to reflect the command line values. 29713 ac_cv_have_x="have_x=yes \ 29714 ac_x_includes=$x_includes ac_x_libraries=$x_libraries" 29715 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 29716echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 29717fi 29718 29719 29720if test "$no_x" = yes; then 29721 # Not all programs may use this symbol, but it does not hurt to define it. 29722 29723cat >>confdefs.h <<\_ACEOF 29724#define X_DISPLAY_MISSING 1 29725_ACEOF 29726 29727 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 29728else 29729 if test -n "$x_includes"; then 29730 X_CFLAGS="$X_CFLAGS -I$x_includes" 29731 fi 29732 29733 # It would also be nice to do this for all -L options, not just this one. 29734 if test -n "$x_libraries"; then 29735 X_LIBS="$X_LIBS -L$x_libraries" 29736 # For Solaris; some versions of Sun CC require a space after -R and 29737 # others require no space. Words are not sufficient . . . . 29738 case `(uname -sr) 2>/dev/null` in 29739 "SunOS 5"*) 29740 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 29741echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 29742 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 29743 cat >conftest.$ac_ext <<_ACEOF 29744#line $LINENO "configure" 29745#include "confdefs.h" 29746 29747#ifdef F77_DUMMY_MAIN 29748# ifdef __cplusplus 29749 extern "C" 29750# endif 29751 int F77_DUMMY_MAIN() { return 1; } 29752#endif 29753int 29754main () 29755{ 29756 29757 ; 29758 return 0; 29759} 29760_ACEOF 29761rm -f conftest.$ac_objext conftest$ac_exeext 29762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29763 (eval $ac_link) 2>&5 29764 ac_status=$? 29765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29766 (exit $ac_status); } && 29767 { ac_try='test -s conftest$ac_exeext' 29768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29769 (eval $ac_try) 2>&5 29770 ac_status=$? 29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29772 (exit $ac_status); }; }; then 29773 ac_R_nospace=yes 29774else 29775 echo "$as_me: failed program was:" >&5 29776cat conftest.$ac_ext >&5 29777ac_R_nospace=no 29778fi 29779rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29780 if test $ac_R_nospace = yes; then 29781 echo "$as_me:$LINENO: result: no" >&5 29782echo "${ECHO_T}no" >&6 29783 X_LIBS="$X_LIBS -R$x_libraries" 29784 else 29785 LIBS="$ac_xsave_LIBS -R $x_libraries" 29786 cat >conftest.$ac_ext <<_ACEOF 29787#line $LINENO "configure" 29788#include "confdefs.h" 29789 29790#ifdef F77_DUMMY_MAIN 29791# ifdef __cplusplus 29792 extern "C" 29793# endif 29794 int F77_DUMMY_MAIN() { return 1; } 29795#endif 29796int 29797main () 29798{ 29799 29800 ; 29801 return 0; 29802} 29803_ACEOF 29804rm -f conftest.$ac_objext conftest$ac_exeext 29805if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29806 (eval $ac_link) 2>&5 29807 ac_status=$? 29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29809 (exit $ac_status); } && 29810 { ac_try='test -s conftest$ac_exeext' 29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29812 (eval $ac_try) 2>&5 29813 ac_status=$? 29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29815 (exit $ac_status); }; }; then 29816 ac_R_space=yes 29817else 29818 echo "$as_me: failed program was:" >&5 29819cat conftest.$ac_ext >&5 29820ac_R_space=no 29821fi 29822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29823 if test $ac_R_space = yes; then 29824 echo "$as_me:$LINENO: result: yes" >&5 29825echo "${ECHO_T}yes" >&6 29826 X_LIBS="$X_LIBS -R $x_libraries" 29827 else 29828 echo "$as_me:$LINENO: result: neither works" >&5 29829echo "${ECHO_T}neither works" >&6 29830 fi 29831 fi 29832 LIBS=$ac_xsave_LIBS 29833 esac 29834 fi 29835 29836 # Check for system-dependent libraries X programs must link with. 29837 # Do this before checking for the system-independent R6 libraries 29838 # (-lICE), since we may need -lsocket or whatever for X linking. 29839 29840 if test "$ISC" = yes; then 29841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 29842 else 29843 # Martyn Johnson says this is needed for Ultrix, if the X 29844 # libraries were built with DECnet support. And Karl Berry says 29845 # the Alpha needs dnet_stub (dnet does not exist). 29846 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 29847 cat >conftest.$ac_ext <<_ACEOF 29848#line $LINENO "configure" 29849#include "confdefs.h" 29850 29851/* Override any gcc2 internal prototype to avoid an error. */ 29852#ifdef __cplusplus 29853extern "C" 29854#endif 29855/* We use char because int might match the return type of a gcc2 29856 builtin and then its argument prototype would still apply. */ 29857char XOpenDisplay (); 29858#ifdef F77_DUMMY_MAIN 29859# ifdef __cplusplus 29860 extern "C" 29861# endif 29862 int F77_DUMMY_MAIN() { return 1; } 29863#endif 29864int 29865main () 29866{ 29867XOpenDisplay (); 29868 ; 29869 return 0; 29870} 29871_ACEOF 29872rm -f conftest.$ac_objext conftest$ac_exeext 29873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29874 (eval $ac_link) 2>&5 29875 ac_status=$? 29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29877 (exit $ac_status); } && 29878 { ac_try='test -s conftest$ac_exeext' 29879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29880 (eval $ac_try) 2>&5 29881 ac_status=$? 29882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29883 (exit $ac_status); }; }; then 29884 : 29885else 29886 echo "$as_me: failed program was:" >&5 29887cat conftest.$ac_ext >&5 29888echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 29889echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 29890if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 29891 echo $ECHO_N "(cached) $ECHO_C" >&6 29892else 29893 ac_check_lib_save_LIBS=$LIBS 29894LIBS="-ldnet $LIBS" 29895cat >conftest.$ac_ext <<_ACEOF 29896#line $LINENO "configure" 29897#include "confdefs.h" 29898 29899/* Override any gcc2 internal prototype to avoid an error. */ 29900#ifdef __cplusplus 29901extern "C" 29902#endif 29903/* We use char because int might match the return type of a gcc2 29904 builtin and then its argument prototype would still apply. */ 29905char dnet_ntoa (); 29906#ifdef F77_DUMMY_MAIN 29907# ifdef __cplusplus 29908 extern "C" 29909# endif 29910 int F77_DUMMY_MAIN() { return 1; } 29911#endif 29912int 29913main () 29914{ 29915dnet_ntoa (); 29916 ; 29917 return 0; 29918} 29919_ACEOF 29920rm -f conftest.$ac_objext conftest$ac_exeext 29921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29922 (eval $ac_link) 2>&5 29923 ac_status=$? 29924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29925 (exit $ac_status); } && 29926 { ac_try='test -s conftest$ac_exeext' 29927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29928 (eval $ac_try) 2>&5 29929 ac_status=$? 29930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29931 (exit $ac_status); }; }; then 29932 ac_cv_lib_dnet_dnet_ntoa=yes 29933else 29934 echo "$as_me: failed program was:" >&5 29935cat conftest.$ac_ext >&5 29936ac_cv_lib_dnet_dnet_ntoa=no 29937fi 29938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29939LIBS=$ac_check_lib_save_LIBS 29940fi 29941echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 29942echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 29943if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 29944 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 29945fi 29946 29947 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 29948 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 29949echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 29950if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 29951 echo $ECHO_N "(cached) $ECHO_C" >&6 29952else 29953 ac_check_lib_save_LIBS=$LIBS 29954LIBS="-ldnet_stub $LIBS" 29955cat >conftest.$ac_ext <<_ACEOF 29956#line $LINENO "configure" 29957#include "confdefs.h" 29958 29959/* Override any gcc2 internal prototype to avoid an error. */ 29960#ifdef __cplusplus 29961extern "C" 29962#endif 29963/* We use char because int might match the return type of a gcc2 29964 builtin and then its argument prototype would still apply. */ 29965char dnet_ntoa (); 29966#ifdef F77_DUMMY_MAIN 29967# ifdef __cplusplus 29968 extern "C" 29969# endif 29970 int F77_DUMMY_MAIN() { return 1; } 29971#endif 29972int 29973main () 29974{ 29975dnet_ntoa (); 29976 ; 29977 return 0; 29978} 29979_ACEOF 29980rm -f conftest.$ac_objext conftest$ac_exeext 29981if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 29982 (eval $ac_link) 2>&5 29983 ac_status=$? 29984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29985 (exit $ac_status); } && 29986 { ac_try='test -s conftest$ac_exeext' 29987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 29988 (eval $ac_try) 2>&5 29989 ac_status=$? 29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 29991 (exit $ac_status); }; }; then 29992 ac_cv_lib_dnet_stub_dnet_ntoa=yes 29993else 29994 echo "$as_me: failed program was:" >&5 29995cat conftest.$ac_ext >&5 29996ac_cv_lib_dnet_stub_dnet_ntoa=no 29997fi 29998rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 29999LIBS=$ac_check_lib_save_LIBS 30000fi 30001echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 30002echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 30003if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 30004 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 30005fi 30006 30007 fi 30008fi 30009rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30010 LIBS="$ac_xsave_LIBS" 30011 30012 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 30013 # to get the SysV transport functions. 30014 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 30015 # needs -lnsl. 30016 # The nsl library prevents programs from opening the X display 30017 # on Irix 5.2, according to T.E. Dickey. 30018 # The functions gethostbyname, getservbyname, and inet_addr are 30019 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 30020 echo "$as_me:$LINENO: checking for gethostbyname" >&5 30021echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 30022if test "${ac_cv_func_gethostbyname+set}" = set; then 30023 echo $ECHO_N "(cached) $ECHO_C" >&6 30024else 30025 cat >conftest.$ac_ext <<_ACEOF 30026#line $LINENO "configure" 30027#include "confdefs.h" 30028/* System header to define __stub macros and hopefully few prototypes, 30029 which can conflict with char gethostbyname (); below. */ 30030#include <assert.h> 30031/* Override any gcc2 internal prototype to avoid an error. */ 30032#ifdef __cplusplus 30033extern "C" 30034#endif 30035/* We use char because int might match the return type of a gcc2 30036 builtin and then its argument prototype would still apply. */ 30037char gethostbyname (); 30038char (*f) (); 30039 30040#ifdef F77_DUMMY_MAIN 30041# ifdef __cplusplus 30042 extern "C" 30043# endif 30044 int F77_DUMMY_MAIN() { return 1; } 30045#endif 30046int 30047main () 30048{ 30049/* The GNU C library defines this for functions which it implements 30050 to always fail with ENOSYS. Some functions are actually named 30051 something starting with __ and the normal name is an alias. */ 30052#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) 30053choke me 30054#else 30055f = gethostbyname; 30056#endif 30057 30058 ; 30059 return 0; 30060} 30061_ACEOF 30062rm -f conftest.$ac_objext conftest$ac_exeext 30063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30064 (eval $ac_link) 2>&5 30065 ac_status=$? 30066 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30067 (exit $ac_status); } && 30068 { ac_try='test -s conftest$ac_exeext' 30069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30070 (eval $ac_try) 2>&5 30071 ac_status=$? 30072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30073 (exit $ac_status); }; }; then 30074 ac_cv_func_gethostbyname=yes 30075else 30076 echo "$as_me: failed program was:" >&5 30077cat conftest.$ac_ext >&5 30078ac_cv_func_gethostbyname=no 30079fi 30080rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30081fi 30082echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 30083echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 30084 30085 if test $ac_cv_func_gethostbyname = no; then 30086 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 30087echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 30088if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 30089 echo $ECHO_N "(cached) $ECHO_C" >&6 30090else 30091 ac_check_lib_save_LIBS=$LIBS 30092LIBS="-lnsl $LIBS" 30093cat >conftest.$ac_ext <<_ACEOF 30094#line $LINENO "configure" 30095#include "confdefs.h" 30096 30097/* Override any gcc2 internal prototype to avoid an error. */ 30098#ifdef __cplusplus 30099extern "C" 30100#endif 30101/* We use char because int might match the return type of a gcc2 30102 builtin and then its argument prototype would still apply. */ 30103char gethostbyname (); 30104#ifdef F77_DUMMY_MAIN 30105# ifdef __cplusplus 30106 extern "C" 30107# endif 30108 int F77_DUMMY_MAIN() { return 1; } 30109#endif 30110int 30111main () 30112{ 30113gethostbyname (); 30114 ; 30115 return 0; 30116} 30117_ACEOF 30118rm -f conftest.$ac_objext conftest$ac_exeext 30119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30120 (eval $ac_link) 2>&5 30121 ac_status=$? 30122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30123 (exit $ac_status); } && 30124 { ac_try='test -s conftest$ac_exeext' 30125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30126 (eval $ac_try) 2>&5 30127 ac_status=$? 30128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30129 (exit $ac_status); }; }; then 30130 ac_cv_lib_nsl_gethostbyname=yes 30131else 30132 echo "$as_me: failed program was:" >&5 30133cat conftest.$ac_ext >&5 30134ac_cv_lib_nsl_gethostbyname=no 30135fi 30136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30137LIBS=$ac_check_lib_save_LIBS 30138fi 30139echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 30140echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 30141if test $ac_cv_lib_nsl_gethostbyname = yes; then 30142 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 30143fi 30144 30145 if test $ac_cv_lib_nsl_gethostbyname = no; then 30146 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 30147echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 30148if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 30149 echo $ECHO_N "(cached) $ECHO_C" >&6 30150else 30151 ac_check_lib_save_LIBS=$LIBS 30152LIBS="-lbsd $LIBS" 30153cat >conftest.$ac_ext <<_ACEOF 30154#line $LINENO "configure" 30155#include "confdefs.h" 30156 30157/* Override any gcc2 internal prototype to avoid an error. */ 30158#ifdef __cplusplus 30159extern "C" 30160#endif 30161/* We use char because int might match the return type of a gcc2 30162 builtin and then its argument prototype would still apply. */ 30163char gethostbyname (); 30164#ifdef F77_DUMMY_MAIN 30165# ifdef __cplusplus 30166 extern "C" 30167# endif 30168 int F77_DUMMY_MAIN() { return 1; } 30169#endif 30170int 30171main () 30172{ 30173gethostbyname (); 30174 ; 30175 return 0; 30176} 30177_ACEOF 30178rm -f conftest.$ac_objext conftest$ac_exeext 30179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30180 (eval $ac_link) 2>&5 30181 ac_status=$? 30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30183 (exit $ac_status); } && 30184 { ac_try='test -s conftest$ac_exeext' 30185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30186 (eval $ac_try) 2>&5 30187 ac_status=$? 30188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30189 (exit $ac_status); }; }; then 30190 ac_cv_lib_bsd_gethostbyname=yes 30191else 30192 echo "$as_me: failed program was:" >&5 30193cat conftest.$ac_ext >&5 30194ac_cv_lib_bsd_gethostbyname=no 30195fi 30196rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30197LIBS=$ac_check_lib_save_LIBS 30198fi 30199echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 30200echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 30201if test $ac_cv_lib_bsd_gethostbyname = yes; then 30202 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 30203fi 30204 30205 fi 30206 fi 30207 30208 # lieder@skyler.mavd.honeywell.com says without -lsocket, 30209 # socket/setsockopt and other routines are undefined under SCO ODT 30210 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 30211 # on later versions), says Simon Leinen: it contains gethostby* 30212 # variants that don't use the nameserver (or something). -lsocket 30213 # must be given before -lnsl if both are needed. We assume that 30214 # if connect needs -lnsl, so does gethostbyname. 30215 echo "$as_me:$LINENO: checking for connect" >&5 30216echo $ECHO_N "checking for connect... $ECHO_C" >&6 30217if test "${ac_cv_func_connect+set}" = set; then 30218 echo $ECHO_N "(cached) $ECHO_C" >&6 30219else 30220 cat >conftest.$ac_ext <<_ACEOF 30221#line $LINENO "configure" 30222#include "confdefs.h" 30223/* System header to define __stub macros and hopefully few prototypes, 30224 which can conflict with char connect (); below. */ 30225#include <assert.h> 30226/* Override any gcc2 internal prototype to avoid an error. */ 30227#ifdef __cplusplus 30228extern "C" 30229#endif 30230/* We use char because int might match the return type of a gcc2 30231 builtin and then its argument prototype would still apply. */ 30232char connect (); 30233char (*f) (); 30234 30235#ifdef F77_DUMMY_MAIN 30236# ifdef __cplusplus 30237 extern "C" 30238# endif 30239 int F77_DUMMY_MAIN() { return 1; } 30240#endif 30241int 30242main () 30243{ 30244/* The GNU C library defines this for functions which it implements 30245 to always fail with ENOSYS. Some functions are actually named 30246 something starting with __ and the normal name is an alias. */ 30247#if defined (__stub_connect) || defined (__stub___connect) 30248choke me 30249#else 30250f = connect; 30251#endif 30252 30253 ; 30254 return 0; 30255} 30256_ACEOF 30257rm -f conftest.$ac_objext conftest$ac_exeext 30258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30259 (eval $ac_link) 2>&5 30260 ac_status=$? 30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30262 (exit $ac_status); } && 30263 { ac_try='test -s conftest$ac_exeext' 30264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30265 (eval $ac_try) 2>&5 30266 ac_status=$? 30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30268 (exit $ac_status); }; }; then 30269 ac_cv_func_connect=yes 30270else 30271 echo "$as_me: failed program was:" >&5 30272cat conftest.$ac_ext >&5 30273ac_cv_func_connect=no 30274fi 30275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30276fi 30277echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 30278echo "${ECHO_T}$ac_cv_func_connect" >&6 30279 30280 if test $ac_cv_func_connect = no; then 30281 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 30282echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 30283if test "${ac_cv_lib_socket_connect+set}" = set; then 30284 echo $ECHO_N "(cached) $ECHO_C" >&6 30285else 30286 ac_check_lib_save_LIBS=$LIBS 30287LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 30288cat >conftest.$ac_ext <<_ACEOF 30289#line $LINENO "configure" 30290#include "confdefs.h" 30291 30292/* Override any gcc2 internal prototype to avoid an error. */ 30293#ifdef __cplusplus 30294extern "C" 30295#endif 30296/* We use char because int might match the return type of a gcc2 30297 builtin and then its argument prototype would still apply. */ 30298char connect (); 30299#ifdef F77_DUMMY_MAIN 30300# ifdef __cplusplus 30301 extern "C" 30302# endif 30303 int F77_DUMMY_MAIN() { return 1; } 30304#endif 30305int 30306main () 30307{ 30308connect (); 30309 ; 30310 return 0; 30311} 30312_ACEOF 30313rm -f conftest.$ac_objext conftest$ac_exeext 30314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30315 (eval $ac_link) 2>&5 30316 ac_status=$? 30317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30318 (exit $ac_status); } && 30319 { ac_try='test -s conftest$ac_exeext' 30320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30321 (eval $ac_try) 2>&5 30322 ac_status=$? 30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30324 (exit $ac_status); }; }; then 30325 ac_cv_lib_socket_connect=yes 30326else 30327 echo "$as_me: failed program was:" >&5 30328cat conftest.$ac_ext >&5 30329ac_cv_lib_socket_connect=no 30330fi 30331rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30332LIBS=$ac_check_lib_save_LIBS 30333fi 30334echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 30335echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 30336if test $ac_cv_lib_socket_connect = yes; then 30337 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 30338fi 30339 30340 fi 30341 30342 # Guillermo Gomez says -lposix is necessary on A/UX. 30343 echo "$as_me:$LINENO: checking for remove" >&5 30344echo $ECHO_N "checking for remove... $ECHO_C" >&6 30345if test "${ac_cv_func_remove+set}" = set; then 30346 echo $ECHO_N "(cached) $ECHO_C" >&6 30347else 30348 cat >conftest.$ac_ext <<_ACEOF 30349#line $LINENO "configure" 30350#include "confdefs.h" 30351/* System header to define __stub macros and hopefully few prototypes, 30352 which can conflict with char remove (); below. */ 30353#include <assert.h> 30354/* Override any gcc2 internal prototype to avoid an error. */ 30355#ifdef __cplusplus 30356extern "C" 30357#endif 30358/* We use char because int might match the return type of a gcc2 30359 builtin and then its argument prototype would still apply. */ 30360char remove (); 30361char (*f) (); 30362 30363#ifdef F77_DUMMY_MAIN 30364# ifdef __cplusplus 30365 extern "C" 30366# endif 30367 int F77_DUMMY_MAIN() { return 1; } 30368#endif 30369int 30370main () 30371{ 30372/* The GNU C library defines this for functions which it implements 30373 to always fail with ENOSYS. Some functions are actually named 30374 something starting with __ and the normal name is an alias. */ 30375#if defined (__stub_remove) || defined (__stub___remove) 30376choke me 30377#else 30378f = remove; 30379#endif 30380 30381 ; 30382 return 0; 30383} 30384_ACEOF 30385rm -f conftest.$ac_objext conftest$ac_exeext 30386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30387 (eval $ac_link) 2>&5 30388 ac_status=$? 30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30390 (exit $ac_status); } && 30391 { ac_try='test -s conftest$ac_exeext' 30392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30393 (eval $ac_try) 2>&5 30394 ac_status=$? 30395 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30396 (exit $ac_status); }; }; then 30397 ac_cv_func_remove=yes 30398else 30399 echo "$as_me: failed program was:" >&5 30400cat conftest.$ac_ext >&5 30401ac_cv_func_remove=no 30402fi 30403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30404fi 30405echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 30406echo "${ECHO_T}$ac_cv_func_remove" >&6 30407 30408 if test $ac_cv_func_remove = no; then 30409 echo "$as_me:$LINENO: checking for remove in -lposix" >&5 30410echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 30411if test "${ac_cv_lib_posix_remove+set}" = set; then 30412 echo $ECHO_N "(cached) $ECHO_C" >&6 30413else 30414 ac_check_lib_save_LIBS=$LIBS 30415LIBS="-lposix $LIBS" 30416cat >conftest.$ac_ext <<_ACEOF 30417#line $LINENO "configure" 30418#include "confdefs.h" 30419 30420/* Override any gcc2 internal prototype to avoid an error. */ 30421#ifdef __cplusplus 30422extern "C" 30423#endif 30424/* We use char because int might match the return type of a gcc2 30425 builtin and then its argument prototype would still apply. */ 30426char remove (); 30427#ifdef F77_DUMMY_MAIN 30428# ifdef __cplusplus 30429 extern "C" 30430# endif 30431 int F77_DUMMY_MAIN() { return 1; } 30432#endif 30433int 30434main () 30435{ 30436remove (); 30437 ; 30438 return 0; 30439} 30440_ACEOF 30441rm -f conftest.$ac_objext conftest$ac_exeext 30442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30443 (eval $ac_link) 2>&5 30444 ac_status=$? 30445 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30446 (exit $ac_status); } && 30447 { ac_try='test -s conftest$ac_exeext' 30448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30449 (eval $ac_try) 2>&5 30450 ac_status=$? 30451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30452 (exit $ac_status); }; }; then 30453 ac_cv_lib_posix_remove=yes 30454else 30455 echo "$as_me: failed program was:" >&5 30456cat conftest.$ac_ext >&5 30457ac_cv_lib_posix_remove=no 30458fi 30459rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30460LIBS=$ac_check_lib_save_LIBS 30461fi 30462echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 30463echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 30464if test $ac_cv_lib_posix_remove = yes; then 30465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 30466fi 30467 30468 fi 30469 30470 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 30471 echo "$as_me:$LINENO: checking for shmat" >&5 30472echo $ECHO_N "checking for shmat... $ECHO_C" >&6 30473if test "${ac_cv_func_shmat+set}" = set; then 30474 echo $ECHO_N "(cached) $ECHO_C" >&6 30475else 30476 cat >conftest.$ac_ext <<_ACEOF 30477#line $LINENO "configure" 30478#include "confdefs.h" 30479/* System header to define __stub macros and hopefully few prototypes, 30480 which can conflict with char shmat (); below. */ 30481#include <assert.h> 30482/* Override any gcc2 internal prototype to avoid an error. */ 30483#ifdef __cplusplus 30484extern "C" 30485#endif 30486/* We use char because int might match the return type of a gcc2 30487 builtin and then its argument prototype would still apply. */ 30488char shmat (); 30489char (*f) (); 30490 30491#ifdef F77_DUMMY_MAIN 30492# ifdef __cplusplus 30493 extern "C" 30494# endif 30495 int F77_DUMMY_MAIN() { return 1; } 30496#endif 30497int 30498main () 30499{ 30500/* The GNU C library defines this for functions which it implements 30501 to always fail with ENOSYS. Some functions are actually named 30502 something starting with __ and the normal name is an alias. */ 30503#if defined (__stub_shmat) || defined (__stub___shmat) 30504choke me 30505#else 30506f = shmat; 30507#endif 30508 30509 ; 30510 return 0; 30511} 30512_ACEOF 30513rm -f conftest.$ac_objext conftest$ac_exeext 30514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30515 (eval $ac_link) 2>&5 30516 ac_status=$? 30517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30518 (exit $ac_status); } && 30519 { ac_try='test -s conftest$ac_exeext' 30520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30521 (eval $ac_try) 2>&5 30522 ac_status=$? 30523 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30524 (exit $ac_status); }; }; then 30525 ac_cv_func_shmat=yes 30526else 30527 echo "$as_me: failed program was:" >&5 30528cat conftest.$ac_ext >&5 30529ac_cv_func_shmat=no 30530fi 30531rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30532fi 30533echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 30534echo "${ECHO_T}$ac_cv_func_shmat" >&6 30535 30536 if test $ac_cv_func_shmat = no; then 30537 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 30538echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 30539if test "${ac_cv_lib_ipc_shmat+set}" = set; then 30540 echo $ECHO_N "(cached) $ECHO_C" >&6 30541else 30542 ac_check_lib_save_LIBS=$LIBS 30543LIBS="-lipc $LIBS" 30544cat >conftest.$ac_ext <<_ACEOF 30545#line $LINENO "configure" 30546#include "confdefs.h" 30547 30548/* Override any gcc2 internal prototype to avoid an error. */ 30549#ifdef __cplusplus 30550extern "C" 30551#endif 30552/* We use char because int might match the return type of a gcc2 30553 builtin and then its argument prototype would still apply. */ 30554char shmat (); 30555#ifdef F77_DUMMY_MAIN 30556# ifdef __cplusplus 30557 extern "C" 30558# endif 30559 int F77_DUMMY_MAIN() { return 1; } 30560#endif 30561int 30562main () 30563{ 30564shmat (); 30565 ; 30566 return 0; 30567} 30568_ACEOF 30569rm -f conftest.$ac_objext conftest$ac_exeext 30570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30571 (eval $ac_link) 2>&5 30572 ac_status=$? 30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30574 (exit $ac_status); } && 30575 { ac_try='test -s conftest$ac_exeext' 30576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30577 (eval $ac_try) 2>&5 30578 ac_status=$? 30579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30580 (exit $ac_status); }; }; then 30581 ac_cv_lib_ipc_shmat=yes 30582else 30583 echo "$as_me: failed program was:" >&5 30584cat conftest.$ac_ext >&5 30585ac_cv_lib_ipc_shmat=no 30586fi 30587rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30588LIBS=$ac_check_lib_save_LIBS 30589fi 30590echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 30591echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 30592if test $ac_cv_lib_ipc_shmat = yes; then 30593 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 30594fi 30595 30596 fi 30597 fi 30598 30599 # Check for libraries that X11R6 Xt/Xaw programs need. 30600 ac_save_LDFLAGS=$LDFLAGS 30601 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 30602 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 30603 # check for ICE first), but we must link in the order -lSM -lICE or 30604 # we get undefined symbols. So assume we have SM if we have ICE. 30605 # These have to be linked with before -lX11, unlike the other 30606 # libraries we check for below, so use a different variable. 30607 # John Interrante, Karl Berry 30608 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 30609echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 30610if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 30611 echo $ECHO_N "(cached) $ECHO_C" >&6 30612else 30613 ac_check_lib_save_LIBS=$LIBS 30614LIBS="-lICE $X_EXTRA_LIBS $LIBS" 30615cat >conftest.$ac_ext <<_ACEOF 30616#line $LINENO "configure" 30617#include "confdefs.h" 30618 30619/* Override any gcc2 internal prototype to avoid an error. */ 30620#ifdef __cplusplus 30621extern "C" 30622#endif 30623/* We use char because int might match the return type of a gcc2 30624 builtin and then its argument prototype would still apply. */ 30625char IceConnectionNumber (); 30626#ifdef F77_DUMMY_MAIN 30627# ifdef __cplusplus 30628 extern "C" 30629# endif 30630 int F77_DUMMY_MAIN() { return 1; } 30631#endif 30632int 30633main () 30634{ 30635IceConnectionNumber (); 30636 ; 30637 return 0; 30638} 30639_ACEOF 30640rm -f conftest.$ac_objext conftest$ac_exeext 30641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30642 (eval $ac_link) 2>&5 30643 ac_status=$? 30644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30645 (exit $ac_status); } && 30646 { ac_try='test -s conftest$ac_exeext' 30647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30648 (eval $ac_try) 2>&5 30649 ac_status=$? 30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30651 (exit $ac_status); }; }; then 30652 ac_cv_lib_ICE_IceConnectionNumber=yes 30653else 30654 echo "$as_me: failed program was:" >&5 30655cat conftest.$ac_ext >&5 30656ac_cv_lib_ICE_IceConnectionNumber=no 30657fi 30658rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30659LIBS=$ac_check_lib_save_LIBS 30660fi 30661echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 30662echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 30663if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 30664 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 30665fi 30666 30667 LDFLAGS=$ac_save_LDFLAGS 30668 30669fi 30670 30671 30672# try to figure out if we need any additional ld flags, like -R 30673# and yes, the autoconf X test is utterly broken 30674if test "$no_x" != yes; then 30675 echo "$as_me:$LINENO: checking for special X linker flags" >&5 30676echo $ECHO_N "checking for special X linker flags... $ECHO_C" >&6 30677if test "${krb_cv_sys_x_libs_rpath+set}" = set; then 30678 echo $ECHO_N "(cached) $ECHO_C" >&6 30679else 30680 30681 ac_save_libs="$LIBS" 30682 ac_save_cflags="$CFLAGS" 30683 CFLAGS="$CFLAGS $X_CFLAGS" 30684 krb_cv_sys_x_libs_rpath="" 30685 krb_cv_sys_x_libs="" 30686 for rflag in "" "-R" "-R " "-rpath "; do 30687 if test "$rflag" = ""; then 30688 foo="$X_LIBS" 30689 else 30690 foo="" 30691 for flag in $X_LIBS; do 30692 case $flag in 30693 -L*) 30694 foo="$foo $flag `echo $flag | sed \"s/-L/$rflag/\"`" 30695 ;; 30696 *) 30697 foo="$foo $flag" 30698 ;; 30699 esac 30700 done 30701 fi 30702 LIBS="$ac_save_libs $foo $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 30703 if test "$cross_compiling" = yes; then 30704 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 30705echo "$as_me: error: cannot run test program while cross compiling" >&2;} 30706 { (exit 1); exit 1; }; } 30707else 30708 cat >conftest.$ac_ext <<_ACEOF 30709#line $LINENO "configure" 30710#include "confdefs.h" 30711 30712 #include <X11/Xlib.h> 30713 foo() 30714 { 30715 XOpenDisplay(NULL); 30716 } 30717 main() 30718 { 30719 return 0; 30720 } 30721 30722_ACEOF 30723rm -f conftest$ac_exeext 30724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30725 (eval $ac_link) 2>&5 30726 ac_status=$? 30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 30729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30730 (eval $ac_try) 2>&5 30731 ac_status=$? 30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30733 (exit $ac_status); }; }; then 30734 krb_cv_sys_x_libs_rpath="$rflag"; krb_cv_sys_x_libs="$foo"; break 30735else 30736 echo "$as_me: program exited with status $ac_status" >&5 30737echo "$as_me: failed program was:" >&5 30738cat conftest.$ac_ext >&5 30739( exit $ac_status ) 30740: 30741fi 30742rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 30743fi 30744 done 30745 LIBS="$ac_save_libs" 30746 CFLAGS="$ac_save_cflags" 30747 30748fi 30749echo "$as_me:$LINENO: result: $krb_cv_sys_x_libs_rpath" >&5 30750echo "${ECHO_T}$krb_cv_sys_x_libs_rpath" >&6 30751 X_LIBS="$krb_cv_sys_x_libs" 30752fi 30753 30754 30755 30756 30757if test "$no_x" != yes; then 30758 HAVE_X_TRUE= 30759 HAVE_X_FALSE='#' 30760else 30761 HAVE_X_TRUE='#' 30762 HAVE_X_FALSE= 30763fi 30764 30765 30766 30767save_CFLAGS="$CFLAGS" 30768CFLAGS="$X_CFLAGS $CFLAGS" 30769save_LIBS="$LIBS" 30770LIBS="$X_PRE_LIBS $X_EXTRA_LIBS $LIBS" 30771save_LDFLAGS="$LDFLAGS" 30772LDFLAGS="$LDFLAGS $X_LIBS" 30773 30774 30775 30776 30777 30778echo "$as_me:$LINENO: checking for XauWriteAuth" >&5 30779echo $ECHO_N "checking for XauWriteAuth... $ECHO_C" >&6 30780if test "${ac_cv_funclib_XauWriteAuth+set}" = set; then 30781 echo $ECHO_N "(cached) $ECHO_C" >&6 30782else 30783 30784if eval "test \"\$ac_cv_func_XauWriteAuth\" != yes" ; then 30785 ac_save_LIBS="$LIBS" 30786 for ac_lib in "" X11 Xau; do 30787 case "$ac_lib" in 30788 "") ;; 30789 yes) ac_lib="" ;; 30790 no) continue ;; 30791 -l*) ;; 30792 *) ac_lib="-l$ac_lib" ;; 30793 esac 30794 LIBS=" $ac_lib $ac_save_LIBS" 30795 cat >conftest.$ac_ext <<_ACEOF 30796#line $LINENO "configure" 30797#include "confdefs.h" 30798 30799#ifdef F77_DUMMY_MAIN 30800# ifdef __cplusplus 30801 extern "C" 30802# endif 30803 int F77_DUMMY_MAIN() { return 1; } 30804#endif 30805int 30806main () 30807{ 30808XauWriteAuth() 30809 ; 30810 return 0; 30811} 30812_ACEOF 30813rm -f conftest.$ac_objext conftest$ac_exeext 30814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30815 (eval $ac_link) 2>&5 30816 ac_status=$? 30817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30818 (exit $ac_status); } && 30819 { ac_try='test -s conftest$ac_exeext' 30820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30821 (eval $ac_try) 2>&5 30822 ac_status=$? 30823 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30824 (exit $ac_status); }; }; then 30825 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauWriteAuth=$ac_lib; else ac_cv_funclib_XauWriteAuth=yes; fi";break 30826else 30827 echo "$as_me: failed program was:" >&5 30828cat conftest.$ac_ext >&5 30829fi 30830rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30831 done 30832 eval "ac_cv_funclib_XauWriteAuth=\${ac_cv_funclib_XauWriteAuth-no}" 30833 LIBS="$ac_save_LIBS" 30834fi 30835 30836fi 30837 30838 30839eval "ac_res=\$ac_cv_funclib_XauWriteAuth" 30840 30841if false; then 30842 30843for ac_func in XauWriteAuth 30844do 30845as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 30846echo "$as_me:$LINENO: checking for $ac_func" >&5 30847echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 30848if eval "test \"\${$as_ac_var+set}\" = set"; then 30849 echo $ECHO_N "(cached) $ECHO_C" >&6 30850else 30851 cat >conftest.$ac_ext <<_ACEOF 30852#line $LINENO "configure" 30853#include "confdefs.h" 30854/* System header to define __stub macros and hopefully few prototypes, 30855 which can conflict with char $ac_func (); below. */ 30856#include <assert.h> 30857/* Override any gcc2 internal prototype to avoid an error. */ 30858#ifdef __cplusplus 30859extern "C" 30860#endif 30861/* We use char because int might match the return type of a gcc2 30862 builtin and then its argument prototype would still apply. */ 30863char $ac_func (); 30864char (*f) (); 30865 30866#ifdef F77_DUMMY_MAIN 30867# ifdef __cplusplus 30868 extern "C" 30869# endif 30870 int F77_DUMMY_MAIN() { return 1; } 30871#endif 30872int 30873main () 30874{ 30875/* The GNU C library defines this for functions which it implements 30876 to always fail with ENOSYS. Some functions are actually named 30877 something starting with __ and the normal name is an alias. */ 30878#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 30879choke me 30880#else 30881f = $ac_func; 30882#endif 30883 30884 ; 30885 return 0; 30886} 30887_ACEOF 30888rm -f conftest.$ac_objext conftest$ac_exeext 30889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 30890 (eval $ac_link) 2>&5 30891 ac_status=$? 30892 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30893 (exit $ac_status); } && 30894 { ac_try='test -s conftest$ac_exeext' 30895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 30896 (eval $ac_try) 2>&5 30897 ac_status=$? 30898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 30899 (exit $ac_status); }; }; then 30900 eval "$as_ac_var=yes" 30901else 30902 echo "$as_me: failed program was:" >&5 30903cat conftest.$ac_ext >&5 30904eval "$as_ac_var=no" 30905fi 30906rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 30907fi 30908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 30909echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 30910if test `eval echo '${'$as_ac_var'}'` = yes; then 30911 cat >>confdefs.h <<_ACEOF 30912#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 30913_ACEOF 30914 30915fi 30916done 30917 30918fi 30919# XauWriteAuth 30920eval "ac_tr_func=HAVE_`echo XauWriteAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30921eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 30922eval "LIB_XauWriteAuth=$ac_res" 30923 30924case "$ac_res" in 30925 yes) 30926 eval "ac_cv_func_XauWriteAuth=yes" 30927 eval "LIB_XauWriteAuth=" 30928 cat >>confdefs.h <<_ACEOF 30929#define $ac_tr_func 1 30930_ACEOF 30931 30932 echo "$as_me:$LINENO: result: yes" >&5 30933echo "${ECHO_T}yes" >&6 30934 ;; 30935 no) 30936 eval "ac_cv_func_XauWriteAuth=no" 30937 eval "LIB_XauWriteAuth=" 30938 echo "$as_me:$LINENO: result: no" >&5 30939echo "${ECHO_T}no" >&6 30940 ;; 30941 *) 30942 eval "ac_cv_func_XauWriteAuth=yes" 30943 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 30944 cat >>confdefs.h <<_ACEOF 30945#define $ac_tr_func 1 30946_ACEOF 30947 30948 cat >>confdefs.h <<_ACEOF 30949#define $ac_tr_lib 1 30950_ACEOF 30951 30952 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 30953echo "${ECHO_T}yes, in $ac_res" >&6 30954 ;; 30955esac 30956 30957 30958ac_xxx="$LIBS" 30959LIBS="$LIB_XauWriteAuth $LIBS" 30960 30961 30962 30963echo "$as_me:$LINENO: checking for XauReadAuth" >&5 30964echo $ECHO_N "checking for XauReadAuth... $ECHO_C" >&6 30965if test "${ac_cv_funclib_XauReadAuth+set}" = set; then 30966 echo $ECHO_N "(cached) $ECHO_C" >&6 30967else 30968 30969if eval "test \"\$ac_cv_func_XauReadAuth\" != yes" ; then 30970 ac_save_LIBS="$LIBS" 30971 for ac_lib in "" X11 Xau; do 30972 case "$ac_lib" in 30973 "") ;; 30974 yes) ac_lib="" ;; 30975 no) continue ;; 30976 -l*) ;; 30977 *) ac_lib="-l$ac_lib" ;; 30978 esac 30979 LIBS=" $ac_lib $ac_save_LIBS" 30980 cat >conftest.$ac_ext <<_ACEOF 30981#line $LINENO "configure" 30982#include "confdefs.h" 30983 30984#ifdef F77_DUMMY_MAIN 30985# ifdef __cplusplus 30986 extern "C" 30987# endif 30988 int F77_DUMMY_MAIN() { return 1; } 30989#endif 30990int 30991main () 30992{ 30993XauReadAuth() 30994 ; 30995 return 0; 30996} 30997_ACEOF 30998rm -f conftest.$ac_objext conftest$ac_exeext 30999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31000 (eval $ac_link) 2>&5 31001 ac_status=$? 31002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31003 (exit $ac_status); } && 31004 { ac_try='test -s conftest$ac_exeext' 31005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31006 (eval $ac_try) 2>&5 31007 ac_status=$? 31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31009 (exit $ac_status); }; }; then 31010 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauReadAuth=$ac_lib; else ac_cv_funclib_XauReadAuth=yes; fi";break 31011else 31012 echo "$as_me: failed program was:" >&5 31013cat conftest.$ac_ext >&5 31014fi 31015rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 31016 done 31017 eval "ac_cv_funclib_XauReadAuth=\${ac_cv_funclib_XauReadAuth-no}" 31018 LIBS="$ac_save_LIBS" 31019fi 31020 31021fi 31022 31023 31024eval "ac_res=\$ac_cv_funclib_XauReadAuth" 31025 31026if false; then 31027 31028for ac_func in XauReadAuth 31029do 31030as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31031echo "$as_me:$LINENO: checking for $ac_func" >&5 31032echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 31033if eval "test \"\${$as_ac_var+set}\" = set"; then 31034 echo $ECHO_N "(cached) $ECHO_C" >&6 31035else 31036 cat >conftest.$ac_ext <<_ACEOF 31037#line $LINENO "configure" 31038#include "confdefs.h" 31039/* System header to define __stub macros and hopefully few prototypes, 31040 which can conflict with char $ac_func (); below. */ 31041#include <assert.h> 31042/* Override any gcc2 internal prototype to avoid an error. */ 31043#ifdef __cplusplus 31044extern "C" 31045#endif 31046/* We use char because int might match the return type of a gcc2 31047 builtin and then its argument prototype would still apply. */ 31048char $ac_func (); 31049char (*f) (); 31050 31051#ifdef F77_DUMMY_MAIN 31052# ifdef __cplusplus 31053 extern "C" 31054# endif 31055 int F77_DUMMY_MAIN() { return 1; } 31056#endif 31057int 31058main () 31059{ 31060/* The GNU C library defines this for functions which it implements 31061 to always fail with ENOSYS. Some functions are actually named 31062 something starting with __ and the normal name is an alias. */ 31063#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 31064choke me 31065#else 31066f = $ac_func; 31067#endif 31068 31069 ; 31070 return 0; 31071} 31072_ACEOF 31073rm -f conftest.$ac_objext conftest$ac_exeext 31074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31075 (eval $ac_link) 2>&5 31076 ac_status=$? 31077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31078 (exit $ac_status); } && 31079 { ac_try='test -s conftest$ac_exeext' 31080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31081 (eval $ac_try) 2>&5 31082 ac_status=$? 31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31084 (exit $ac_status); }; }; then 31085 eval "$as_ac_var=yes" 31086else 31087 echo "$as_me: failed program was:" >&5 31088cat conftest.$ac_ext >&5 31089eval "$as_ac_var=no" 31090fi 31091rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 31092fi 31093echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 31094echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 31095if test `eval echo '${'$as_ac_var'}'` = yes; then 31096 cat >>confdefs.h <<_ACEOF 31097#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 31098_ACEOF 31099 31100fi 31101done 31102 31103fi 31104# XauReadAuth 31105eval "ac_tr_func=HAVE_`echo XauReadAuth | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 31106eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 31107eval "LIB_XauReadAuth=$ac_res" 31108 31109case "$ac_res" in 31110 yes) 31111 eval "ac_cv_func_XauReadAuth=yes" 31112 eval "LIB_XauReadAuth=" 31113 cat >>confdefs.h <<_ACEOF 31114#define $ac_tr_func 1 31115_ACEOF 31116 31117 echo "$as_me:$LINENO: result: yes" >&5 31118echo "${ECHO_T}yes" >&6 31119 ;; 31120 no) 31121 eval "ac_cv_func_XauReadAuth=no" 31122 eval "LIB_XauReadAuth=" 31123 echo "$as_me:$LINENO: result: no" >&5 31124echo "${ECHO_T}no" >&6 31125 ;; 31126 *) 31127 eval "ac_cv_func_XauReadAuth=yes" 31128 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 31129 cat >>confdefs.h <<_ACEOF 31130#define $ac_tr_func 1 31131_ACEOF 31132 31133 cat >>confdefs.h <<_ACEOF 31134#define $ac_tr_lib 1 31135_ACEOF 31136 31137 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 31138echo "${ECHO_T}yes, in $ac_res" >&6 31139 ;; 31140esac 31141 31142 31143LIBS="$LIB_XauReadAauth $LIBS" 31144 31145 31146 31147echo "$as_me:$LINENO: checking for XauFileName" >&5 31148echo $ECHO_N "checking for XauFileName... $ECHO_C" >&6 31149if test "${ac_cv_funclib_XauFileName+set}" = set; then 31150 echo $ECHO_N "(cached) $ECHO_C" >&6 31151else 31152 31153if eval "test \"\$ac_cv_func_XauFileName\" != yes" ; then 31154 ac_save_LIBS="$LIBS" 31155 for ac_lib in "" X11 Xau; do 31156 case "$ac_lib" in 31157 "") ;; 31158 yes) ac_lib="" ;; 31159 no) continue ;; 31160 -l*) ;; 31161 *) ac_lib="-l$ac_lib" ;; 31162 esac 31163 LIBS=" $ac_lib $ac_save_LIBS" 31164 cat >conftest.$ac_ext <<_ACEOF 31165#line $LINENO "configure" 31166#include "confdefs.h" 31167 31168#ifdef F77_DUMMY_MAIN 31169# ifdef __cplusplus 31170 extern "C" 31171# endif 31172 int F77_DUMMY_MAIN() { return 1; } 31173#endif 31174int 31175main () 31176{ 31177XauFileName() 31178 ; 31179 return 0; 31180} 31181_ACEOF 31182rm -f conftest.$ac_objext conftest$ac_exeext 31183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31184 (eval $ac_link) 2>&5 31185 ac_status=$? 31186 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31187 (exit $ac_status); } && 31188 { ac_try='test -s conftest$ac_exeext' 31189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31190 (eval $ac_try) 2>&5 31191 ac_status=$? 31192 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31193 (exit $ac_status); }; }; then 31194 eval "if test -n \"$ac_lib\";then ac_cv_funclib_XauFileName=$ac_lib; else ac_cv_funclib_XauFileName=yes; fi";break 31195else 31196 echo "$as_me: failed program was:" >&5 31197cat conftest.$ac_ext >&5 31198fi 31199rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 31200 done 31201 eval "ac_cv_funclib_XauFileName=\${ac_cv_funclib_XauFileName-no}" 31202 LIBS="$ac_save_LIBS" 31203fi 31204 31205fi 31206 31207 31208eval "ac_res=\$ac_cv_funclib_XauFileName" 31209 31210if false; then 31211 31212for ac_func in XauFileName 31213do 31214as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 31215echo "$as_me:$LINENO: checking for $ac_func" >&5 31216echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 31217if eval "test \"\${$as_ac_var+set}\" = set"; then 31218 echo $ECHO_N "(cached) $ECHO_C" >&6 31219else 31220 cat >conftest.$ac_ext <<_ACEOF 31221#line $LINENO "configure" 31222#include "confdefs.h" 31223/* System header to define __stub macros and hopefully few prototypes, 31224 which can conflict with char $ac_func (); below. */ 31225#include <assert.h> 31226/* Override any gcc2 internal prototype to avoid an error. */ 31227#ifdef __cplusplus 31228extern "C" 31229#endif 31230/* We use char because int might match the return type of a gcc2 31231 builtin and then its argument prototype would still apply. */ 31232char $ac_func (); 31233char (*f) (); 31234 31235#ifdef F77_DUMMY_MAIN 31236# ifdef __cplusplus 31237 extern "C" 31238# endif 31239 int F77_DUMMY_MAIN() { return 1; } 31240#endif 31241int 31242main () 31243{ 31244/* The GNU C library defines this for functions which it implements 31245 to always fail with ENOSYS. Some functions are actually named 31246 something starting with __ and the normal name is an alias. */ 31247#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 31248choke me 31249#else 31250f = $ac_func; 31251#endif 31252 31253 ; 31254 return 0; 31255} 31256_ACEOF 31257rm -f conftest.$ac_objext conftest$ac_exeext 31258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31259 (eval $ac_link) 2>&5 31260 ac_status=$? 31261 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31262 (exit $ac_status); } && 31263 { ac_try='test -s conftest$ac_exeext' 31264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31265 (eval $ac_try) 2>&5 31266 ac_status=$? 31267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31268 (exit $ac_status); }; }; then 31269 eval "$as_ac_var=yes" 31270else 31271 echo "$as_me: failed program was:" >&5 31272cat conftest.$ac_ext >&5 31273eval "$as_ac_var=no" 31274fi 31275rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 31276fi 31277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 31278echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 31279if test `eval echo '${'$as_ac_var'}'` = yes; then 31280 cat >>confdefs.h <<_ACEOF 31281#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 31282_ACEOF 31283 31284fi 31285done 31286 31287fi 31288# XauFileName 31289eval "ac_tr_func=HAVE_`echo XauFileName | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 31290eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 31291eval "LIB_XauFileName=$ac_res" 31292 31293case "$ac_res" in 31294 yes) 31295 eval "ac_cv_func_XauFileName=yes" 31296 eval "LIB_XauFileName=" 31297 cat >>confdefs.h <<_ACEOF 31298#define $ac_tr_func 1 31299_ACEOF 31300 31301 echo "$as_me:$LINENO: result: yes" >&5 31302echo "${ECHO_T}yes" >&6 31303 ;; 31304 no) 31305 eval "ac_cv_func_XauFileName=no" 31306 eval "LIB_XauFileName=" 31307 echo "$as_me:$LINENO: result: no" >&5 31308echo "${ECHO_T}no" >&6 31309 ;; 31310 *) 31311 eval "ac_cv_func_XauFileName=yes" 31312 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 31313 cat >>confdefs.h <<_ACEOF 31314#define $ac_tr_func 1 31315_ACEOF 31316 31317 cat >>confdefs.h <<_ACEOF 31318#define $ac_tr_lib 1 31319_ACEOF 31320 31321 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 31322echo "${ECHO_T}yes, in $ac_res" >&6 31323 ;; 31324esac 31325 31326 31327LIBS="$ac_xxx" 31328 31329case "$ac_cv_funclib_XauWriteAuth" in 31330yes) ;; 31331no) ;; 31332*) if test "$ac_cv_funclib_XauReadAuth" = yes; then 31333 if test "$ac_cv_funclib_XauFileName" = yes; then 31334 LIB_XauReadAuth="$LIB_XauWriteAuth" 31335 else 31336 LIB_XauReadAuth="$LIB_XauWriteAuth $LIB_XauFileName" 31337 fi 31338 else 31339 if test "$ac_cv_funclib_XauFileName" = yes; then 31340 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth" 31341 else 31342 LIB_XauReadAuth="$LIB_XauReadAuth $LIB_XauWriteAuth $LIB_XauFileName" 31343 fi 31344 fi 31345 ;; 31346esac 31347 31348if test "$AUTOMAKE" != ""; then 31349 31350 31351if test "$ac_cv_func_XauWriteAuth" != "yes"; then 31352 NEED_WRITEAUTH_TRUE= 31353 NEED_WRITEAUTH_FALSE='#' 31354else 31355 NEED_WRITEAUTH_TRUE='#' 31356 NEED_WRITEAUTH_FALSE= 31357fi 31358 31359else 31360 31361 31362 if test "$ac_cv_func_XauWriteAuth" != "yes"; then 31363 NEED_WRITEAUTH_TRUE= 31364 NEED_WRITEAUTH_FALSE='#' 31365 else 31366 NEED_WRITEAUTH_TRUE='#' 31367 NEED_WRITEAUTH_FALSE= 31368 fi 31369fi 31370CFLAGS=$save_CFLAGS 31371LIBS=$save_LIBS 31372LDFLAGS=$save_LDFLAGS 31373 31374 31375 31376echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 31377echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 31378if test "${ac_cv_c_const+set}" = set; then 31379 echo $ECHO_N "(cached) $ECHO_C" >&6 31380else 31381 cat >conftest.$ac_ext <<_ACEOF 31382#line $LINENO "configure" 31383#include "confdefs.h" 31384 31385#ifdef F77_DUMMY_MAIN 31386# ifdef __cplusplus 31387 extern "C" 31388# endif 31389 int F77_DUMMY_MAIN() { return 1; } 31390#endif 31391int 31392main () 31393{ 31394/* FIXME: Include the comments suggested by Paul. */ 31395#ifndef __cplusplus 31396 /* Ultrix mips cc rejects this. */ 31397 typedef int charset[2]; 31398 const charset x; 31399 /* SunOS 4.1.1 cc rejects this. */ 31400 char const *const *ccp; 31401 char **p; 31402 /* NEC SVR4.0.2 mips cc rejects this. */ 31403 struct point {int x, y;}; 31404 static struct point const zero = {0,0}; 31405 /* AIX XL C 1.02.0.0 rejects this. 31406 It does not let you subtract one const X* pointer from another in 31407 an arm of an if-expression whose if-part is not a constant 31408 expression */ 31409 const char *g = "string"; 31410 ccp = &g + (g ? g-g : 0); 31411 /* HPUX 7.0 cc rejects these. */ 31412 ++ccp; 31413 p = (char**) ccp; 31414 ccp = (char const *const *) p; 31415 { /* SCO 3.2v4 cc rejects this. */ 31416 char *t; 31417 char const *s = 0 ? (char *) 0 : (char const *) 0; 31418 31419 *t++ = 0; 31420 } 31421 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 31422 int x[] = {25, 17}; 31423 const int *foo = &x[0]; 31424 ++foo; 31425 } 31426 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 31427 typedef const int *iptr; 31428 iptr p = 0; 31429 ++p; 31430 } 31431 { /* AIX XL C 1.02.0.0 rejects this saying 31432 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 31433 struct s { int j; const int *ap[3]; }; 31434 struct s *b; b->j = 5; 31435 } 31436 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 31437 const int foo = 10; 31438 } 31439#endif 31440 31441 ; 31442 return 0; 31443} 31444_ACEOF 31445rm -f conftest.$ac_objext 31446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31447 (eval $ac_compile) 2>&5 31448 ac_status=$? 31449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31450 (exit $ac_status); } && 31451 { ac_try='test -s conftest.$ac_objext' 31452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31453 (eval $ac_try) 2>&5 31454 ac_status=$? 31455 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31456 (exit $ac_status); }; }; then 31457 ac_cv_c_const=yes 31458else 31459 echo "$as_me: failed program was:" >&5 31460cat conftest.$ac_ext >&5 31461ac_cv_c_const=no 31462fi 31463rm -f conftest.$ac_objext conftest.$ac_ext 31464fi 31465echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 31466echo "${ECHO_T}$ac_cv_c_const" >&6 31467if test $ac_cv_c_const = no; then 31468 31469cat >>confdefs.h <<\_ACEOF 31470#define const 31471_ACEOF 31472 31473fi 31474 31475echo "$as_me:$LINENO: checking for off_t" >&5 31476echo $ECHO_N "checking for off_t... $ECHO_C" >&6 31477if test "${ac_cv_type_off_t+set}" = set; then 31478 echo $ECHO_N "(cached) $ECHO_C" >&6 31479else 31480 cat >conftest.$ac_ext <<_ACEOF 31481#line $LINENO "configure" 31482#include "confdefs.h" 31483$ac_includes_default 31484#ifdef F77_DUMMY_MAIN 31485# ifdef __cplusplus 31486 extern "C" 31487# endif 31488 int F77_DUMMY_MAIN() { return 1; } 31489#endif 31490int 31491main () 31492{ 31493if ((off_t *) 0) 31494 return 0; 31495if (sizeof (off_t)) 31496 return 0; 31497 ; 31498 return 0; 31499} 31500_ACEOF 31501rm -f conftest.$ac_objext 31502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31503 (eval $ac_compile) 2>&5 31504 ac_status=$? 31505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31506 (exit $ac_status); } && 31507 { ac_try='test -s conftest.$ac_objext' 31508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31509 (eval $ac_try) 2>&5 31510 ac_status=$? 31511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31512 (exit $ac_status); }; }; then 31513 ac_cv_type_off_t=yes 31514else 31515 echo "$as_me: failed program was:" >&5 31516cat conftest.$ac_ext >&5 31517ac_cv_type_off_t=no 31518fi 31519rm -f conftest.$ac_objext conftest.$ac_ext 31520fi 31521echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 31522echo "${ECHO_T}$ac_cv_type_off_t" >&6 31523if test $ac_cv_type_off_t = yes; then 31524 : 31525else 31526 31527cat >>confdefs.h <<_ACEOF 31528#define off_t long 31529_ACEOF 31530 31531fi 31532 31533echo "$as_me:$LINENO: checking for mode_t" >&5 31534echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 31535if test "${ac_cv_type_mode_t+set}" = set; then 31536 echo $ECHO_N "(cached) $ECHO_C" >&6 31537else 31538 cat >conftest.$ac_ext <<_ACEOF 31539#line $LINENO "configure" 31540#include "confdefs.h" 31541#include <sys/types.h> 31542#if STDC_HEADERS 31543#include <stdlib.h> 31544#include <stddef.h> 31545#endif 31546 31547_ACEOF 31548if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31549 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 31550 ac_cv_type_mode_t=yes 31551else 31552 ac_cv_type_mode_t=no 31553fi 31554rm -f conftest* 31555 31556fi 31557echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 31558echo "${ECHO_T}$ac_cv_type_mode_t" >&6 31559if test $ac_cv_type_mode_t = no; then 31560 31561cat >>confdefs.h <<\_ACEOF 31562#define mode_t unsigned short 31563_ACEOF 31564 31565fi 31566 31567echo "$as_me:$LINENO: checking for sig_atomic_t" >&5 31568echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6 31569if test "${ac_cv_type_sig_atomic_t+set}" = set; then 31570 echo $ECHO_N "(cached) $ECHO_C" >&6 31571else 31572 cat >conftest.$ac_ext <<_ACEOF 31573#line $LINENO "configure" 31574#include "confdefs.h" 31575#include <sys/types.h> 31576#if STDC_HEADERS 31577#include <stdlib.h> 31578#include <stddef.h> 31579#endif 31580#include <signal.h> 31581_ACEOF 31582if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31583 egrep "sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 31584 ac_cv_type_sig_atomic_t=yes 31585else 31586 ac_cv_type_sig_atomic_t=no 31587fi 31588rm -f conftest* 31589 31590fi 31591echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5 31592echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6 31593if test $ac_cv_type_sig_atomic_t = no; then 31594 31595cat >>confdefs.h <<\_ACEOF 31596#define sig_atomic_t int 31597_ACEOF 31598 31599fi 31600 31601 31602 31603cv=`echo "long long" | sed 'y%./+- %__p__%'` 31604echo "$as_me:$LINENO: checking for long long" >&5 31605echo $ECHO_N "checking for long long... $ECHO_C" >&6 31606if eval "test \"\${ac_cv_type_$cv+set}\" = set"; then 31607 echo $ECHO_N "(cached) $ECHO_C" >&6 31608else 31609 cat >conftest.$ac_ext <<_ACEOF 31610#line $LINENO "configure" 31611#include "confdefs.h" 31612#include <sys/types.h> 31613#if STDC_HEADERS 31614#include <stdlib.h> 31615#include <stddef.h> 31616#endif 31617 31618#ifdef F77_DUMMY_MAIN 31619# ifdef __cplusplus 31620 extern "C" 31621# endif 31622 int F77_DUMMY_MAIN() { return 1; } 31623#endif 31624int 31625main () 31626{ 31627long long foo; 31628 ; 31629 return 0; 31630} 31631_ACEOF 31632rm -f conftest.$ac_objext 31633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31634 (eval $ac_compile) 2>&5 31635 ac_status=$? 31636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31637 (exit $ac_status); } && 31638 { ac_try='test -s conftest.$ac_objext' 31639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31640 (eval $ac_try) 2>&5 31641 ac_status=$? 31642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31643 (exit $ac_status); }; }; then 31644 eval "ac_cv_type_$cv=yes" 31645else 31646 echo "$as_me: failed program was:" >&5 31647cat conftest.$ac_ext >&5 31648eval "ac_cv_type_$cv=no" 31649fi 31650rm -f conftest.$ac_objext conftest.$ac_ext 31651fi 31652ac_foo=`eval echo \\$ac_cv_type_$cv` 31653echo "$as_me:$LINENO: result: $ac_foo" >&5 31654echo "${ECHO_T}$ac_foo" >&6 31655if test "$ac_foo" = yes; then 31656 ac_tr_hdr=HAVE_`echo long long | sed 'y%abcdefghijklmnopqrstuvwxyz./- %ABCDEFGHIJKLMNOPQRSTUVWXYZ____%'` 31657if false; then 31658 echo "$as_me:$LINENO: checking for long long" >&5 31659echo $ECHO_N "checking for long long... $ECHO_C" >&6 31660if test "${ac_cv_type_long_long+set}" = set; then 31661 echo $ECHO_N "(cached) $ECHO_C" >&6 31662else 31663 cat >conftest.$ac_ext <<_ACEOF 31664#line $LINENO "configure" 31665#include "confdefs.h" 31666$ac_includes_default 31667#ifdef F77_DUMMY_MAIN 31668# ifdef __cplusplus 31669 extern "C" 31670# endif 31671 int F77_DUMMY_MAIN() { return 1; } 31672#endif 31673int 31674main () 31675{ 31676if ((long long *) 0) 31677 return 0; 31678if (sizeof (long long)) 31679 return 0; 31680 ; 31681 return 0; 31682} 31683_ACEOF 31684rm -f conftest.$ac_objext 31685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31686 (eval $ac_compile) 2>&5 31687 ac_status=$? 31688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31689 (exit $ac_status); } && 31690 { ac_try='test -s conftest.$ac_objext' 31691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31692 (eval $ac_try) 2>&5 31693 ac_status=$? 31694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31695 (exit $ac_status); }; }; then 31696 ac_cv_type_long_long=yes 31697else 31698 echo "$as_me: failed program was:" >&5 31699cat conftest.$ac_ext >&5 31700ac_cv_type_long_long=no 31701fi 31702rm -f conftest.$ac_objext conftest.$ac_ext 31703fi 31704echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 31705echo "${ECHO_T}$ac_cv_type_long_long" >&6 31706if test $ac_cv_type_long_long = yes; then 31707 31708cat >>confdefs.h <<_ACEOF 31709#define HAVE_LONG_LONG 1 31710_ACEOF 31711 31712 31713fi 31714 31715fi 31716 31717cat >>confdefs.h <<_ACEOF 31718#define $ac_tr_hdr 1 31719_ACEOF 31720 31721fi 31722 31723echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 31724echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 31725if test "${ac_cv_header_time+set}" = set; then 31726 echo $ECHO_N "(cached) $ECHO_C" >&6 31727else 31728 cat >conftest.$ac_ext <<_ACEOF 31729#line $LINENO "configure" 31730#include "confdefs.h" 31731#include <sys/types.h> 31732#include <sys/time.h> 31733#include <time.h> 31734 31735#ifdef F77_DUMMY_MAIN 31736# ifdef __cplusplus 31737 extern "C" 31738# endif 31739 int F77_DUMMY_MAIN() { return 1; } 31740#endif 31741int 31742main () 31743{ 31744if ((struct tm *) 0) 31745return 0; 31746 ; 31747 return 0; 31748} 31749_ACEOF 31750rm -f conftest.$ac_objext 31751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31752 (eval $ac_compile) 2>&5 31753 ac_status=$? 31754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31755 (exit $ac_status); } && 31756 { ac_try='test -s conftest.$ac_objext' 31757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31758 (eval $ac_try) 2>&5 31759 ac_status=$? 31760 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31761 (exit $ac_status); }; }; then 31762 ac_cv_header_time=yes 31763else 31764 echo "$as_me: failed program was:" >&5 31765cat conftest.$ac_ext >&5 31766ac_cv_header_time=no 31767fi 31768rm -f conftest.$ac_objext conftest.$ac_ext 31769fi 31770echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 31771echo "${ECHO_T}$ac_cv_header_time" >&6 31772if test $ac_cv_header_time = yes; then 31773 31774cat >>confdefs.h <<\_ACEOF 31775#define TIME_WITH_SYS_TIME 1 31776_ACEOF 31777 31778fi 31779 31780echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 31781echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 31782if test "${ac_cv_struct_tm+set}" = set; then 31783 echo $ECHO_N "(cached) $ECHO_C" >&6 31784else 31785 cat >conftest.$ac_ext <<_ACEOF 31786#line $LINENO "configure" 31787#include "confdefs.h" 31788#include <sys/types.h> 31789#include <time.h> 31790 31791#ifdef F77_DUMMY_MAIN 31792# ifdef __cplusplus 31793 extern "C" 31794# endif 31795 int F77_DUMMY_MAIN() { return 1; } 31796#endif 31797int 31798main () 31799{ 31800struct tm *tp; tp->tm_sec; 31801 ; 31802 return 0; 31803} 31804_ACEOF 31805rm -f conftest.$ac_objext 31806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 31807 (eval $ac_compile) 2>&5 31808 ac_status=$? 31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31810 (exit $ac_status); } && 31811 { ac_try='test -s conftest.$ac_objext' 31812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31813 (eval $ac_try) 2>&5 31814 ac_status=$? 31815 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31816 (exit $ac_status); }; }; then 31817 ac_cv_struct_tm=time.h 31818else 31819 echo "$as_me: failed program was:" >&5 31820cat conftest.$ac_ext >&5 31821ac_cv_struct_tm=sys/time.h 31822fi 31823rm -f conftest.$ac_objext conftest.$ac_ext 31824fi 31825echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 31826echo "${ECHO_T}$ac_cv_struct_tm" >&6 31827if test $ac_cv_struct_tm = sys/time.h; then 31828 31829cat >>confdefs.h <<\_ACEOF 31830#define TM_IN_SYS_TIME 1 31831_ACEOF 31832 31833fi 31834 31835 31836echo "$as_me:$LINENO: checking for ANSI C header files" >&5 31837echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 31838if test "${ac_cv_header_stdc+set}" = set; then 31839 echo $ECHO_N "(cached) $ECHO_C" >&6 31840else 31841 cat >conftest.$ac_ext <<_ACEOF 31842#line $LINENO "configure" 31843#include "confdefs.h" 31844#include <stdlib.h> 31845#include <stdarg.h> 31846#include <string.h> 31847#include <float.h> 31848 31849_ACEOF 31850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 31851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 31852 ac_status=$? 31853 egrep -v '^ *\+' conftest.er1 >conftest.err 31854 rm -f conftest.er1 31855 cat conftest.err >&5 31856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31857 (exit $ac_status); } >/dev/null; then 31858 if test -s conftest.err; then 31859 ac_cpp_err=$ac_c_preproc_warn_flag 31860 else 31861 ac_cpp_err= 31862 fi 31863else 31864 ac_cpp_err=yes 31865fi 31866if test -z "$ac_cpp_err"; then 31867 ac_cv_header_stdc=yes 31868else 31869 echo "$as_me: failed program was:" >&5 31870 cat conftest.$ac_ext >&5 31871 ac_cv_header_stdc=no 31872fi 31873rm -f conftest.err conftest.$ac_ext 31874 31875if test $ac_cv_header_stdc = yes; then 31876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 31877 cat >conftest.$ac_ext <<_ACEOF 31878#line $LINENO "configure" 31879#include "confdefs.h" 31880#include <string.h> 31881 31882_ACEOF 31883if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31884 egrep "memchr" >/dev/null 2>&1; then 31885 : 31886else 31887 ac_cv_header_stdc=no 31888fi 31889rm -f conftest* 31890 31891fi 31892 31893if test $ac_cv_header_stdc = yes; then 31894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 31895 cat >conftest.$ac_ext <<_ACEOF 31896#line $LINENO "configure" 31897#include "confdefs.h" 31898#include <stdlib.h> 31899 31900_ACEOF 31901if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 31902 egrep "free" >/dev/null 2>&1; then 31903 : 31904else 31905 ac_cv_header_stdc=no 31906fi 31907rm -f conftest* 31908 31909fi 31910 31911if test $ac_cv_header_stdc = yes; then 31912 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 31913 if test "$cross_compiling" = yes; then 31914 : 31915else 31916 cat >conftest.$ac_ext <<_ACEOF 31917#line $LINENO "configure" 31918#include "confdefs.h" 31919#include <ctype.h> 31920#if ((' ' & 0x0FF) == 0x020) 31921# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 31922# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 31923#else 31924# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ 31925 || ('j' <= (c) && (c) <= 'r') \ 31926 || ('s' <= (c) && (c) <= 'z')) 31927# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 31928#endif 31929 31930#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 31931int 31932main () 31933{ 31934 int i; 31935 for (i = 0; i < 256; i++) 31936 if (XOR (islower (i), ISLOWER (i)) 31937 || toupper (i) != TOUPPER (i)) 31938 exit(2); 31939 exit (0); 31940} 31941_ACEOF 31942rm -f conftest$ac_exeext 31943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 31944 (eval $ac_link) 2>&5 31945 ac_status=$? 31946 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 31948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 31949 (eval $ac_try) 2>&5 31950 ac_status=$? 31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 31952 (exit $ac_status); }; }; then 31953 : 31954else 31955 echo "$as_me: program exited with status $ac_status" >&5 31956echo "$as_me: failed program was:" >&5 31957cat conftest.$ac_ext >&5 31958( exit $ac_status ) 31959ac_cv_header_stdc=no 31960fi 31961rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 31962fi 31963fi 31964fi 31965echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 31966echo "${ECHO_T}$ac_cv_header_stdc" >&6 31967if test $ac_cv_header_stdc = yes; then 31968 31969cat >>confdefs.h <<\_ACEOF 31970#define STDC_HEADERS 1 31971_ACEOF 31972 31973fi 31974 31975 31976 31977 31978 31979 31980 31981 31982 31983 31984 31985 31986 31987 31988 31989 31990 31991 31992 31993 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 32005 32006 32007 32008 32009 32010 32011 32012 32013 32014 32015 32016 32017 32018 32019 32020 32021 32022 32023 32024 32025 32026for ac_header in \ 32027 arpa/ftp.h \ 32028 arpa/telnet.h \ 32029 bind/bitypes.h \ 32030 bsdsetjmp.h \ 32031 curses.h \ 32032 dlfcn.h \ 32033 fnmatch.h \ 32034 inttypes.h \ 32035 io.h \ 32036 libutil.h \ 32037 limits.h \ 32038 maillock.h \ 32039 netgroup.h \ 32040 netinet/in6_machtypes.h \ 32041 netinfo/ni.h \ 32042 pthread.h \ 32043 pty.h \ 32044 sac.h \ 32045 security/pam_modules.h \ 32046 sgtty.h \ 32047 siad.h \ 32048 signal.h \ 32049 stropts.h \ 32050 sys/bitypes.h \ 32051 sys/category.h \ 32052 sys/file.h \ 32053 sys/filio.h \ 32054 sys/ioccom.h \ 32055 sys/mman.h \ 32056 sys/pty.h \ 32057 sys/ptyio.h \ 32058 sys/ptyvar.h \ 32059 sys/select.h \ 32060 sys/str_tty.h \ 32061 sys/stream.h \ 32062 sys/stropts.h \ 32063 sys/strtty.h \ 32064 sys/syscall.h \ 32065 sys/termio.h \ 32066 sys/timeb.h \ 32067 sys/times.h \ 32068 sys/un.h \ 32069 term.h \ 32070 termcap.h \ 32071 termio.h \ 32072 time.h \ 32073 tmpdir.h \ 32074 udb.h \ 32075 utmp.h \ 32076 utmpx.h \ 32077 32078do 32079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 32080if eval "test \"\${$as_ac_Header+set}\" = set"; then 32081 echo "$as_me:$LINENO: checking for $ac_header" >&5 32082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 32083if eval "test \"\${$as_ac_Header+set}\" = set"; then 32084 echo $ECHO_N "(cached) $ECHO_C" >&6 32085fi 32086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 32087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 32088else 32089 # Is the header compilable? 32090echo "$as_me:$LINENO: checking $ac_header usability" >&5 32091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 32092cat >conftest.$ac_ext <<_ACEOF 32093#line $LINENO "configure" 32094#include "confdefs.h" 32095$ac_includes_default 32096#include <$ac_header> 32097_ACEOF 32098rm -f conftest.$ac_objext 32099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 32100 (eval $ac_compile) 2>&5 32101 ac_status=$? 32102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32103 (exit $ac_status); } && 32104 { ac_try='test -s conftest.$ac_objext' 32105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32106 (eval $ac_try) 2>&5 32107 ac_status=$? 32108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32109 (exit $ac_status); }; }; then 32110 ac_header_compiler=yes 32111else 32112 echo "$as_me: failed program was:" >&5 32113cat conftest.$ac_ext >&5 32114ac_header_compiler=no 32115fi 32116rm -f conftest.$ac_objext conftest.$ac_ext 32117echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 32118echo "${ECHO_T}$ac_header_compiler" >&6 32119 32120# Is the header present? 32121echo "$as_me:$LINENO: checking $ac_header presence" >&5 32122echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 32123cat >conftest.$ac_ext <<_ACEOF 32124#line $LINENO "configure" 32125#include "confdefs.h" 32126#include <$ac_header> 32127_ACEOF 32128if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 32129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 32130 ac_status=$? 32131 egrep -v '^ *\+' conftest.er1 >conftest.err 32132 rm -f conftest.er1 32133 cat conftest.err >&5 32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32135 (exit $ac_status); } >/dev/null; then 32136 if test -s conftest.err; then 32137 ac_cpp_err=$ac_c_preproc_warn_flag 32138 else 32139 ac_cpp_err= 32140 fi 32141else 32142 ac_cpp_err=yes 32143fi 32144if test -z "$ac_cpp_err"; then 32145 ac_header_preproc=yes 32146else 32147 echo "$as_me: failed program was:" >&5 32148 cat conftest.$ac_ext >&5 32149 ac_header_preproc=no 32150fi 32151rm -f conftest.err conftest.$ac_ext 32152echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 32153echo "${ECHO_T}$ac_header_preproc" >&6 32154 32155# So? What about this header? 32156case $ac_header_compiler:$ac_header_preproc in 32157 yes:no ) 32158 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 32159echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 32160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 32161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 32162 no:yes ) 32163 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 32164echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 32165 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 32166echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 32167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 32168echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 32169esac 32170echo "$as_me:$LINENO: checking for $ac_header" >&5 32171echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 32172if eval "test \"\${$as_ac_Header+set}\" = set"; then 32173 echo $ECHO_N "(cached) $ECHO_C" >&6 32174else 32175 eval "$as_ac_Header=$ac_header_preproc" 32176fi 32177echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 32178echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 32179 32180fi 32181if test `eval echo '${'$as_ac_Header'}'` = yes; then 32182 cat >>confdefs.h <<_ACEOF 32183#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 32184_ACEOF 32185 32186fi 32187 32188done 32189 32190 32191# Check whether --enable-netinfo or --disable-netinfo was given. 32192if test "${enable_netinfo+set}" = set; then 32193 enableval="$enable_netinfo" 32194 32195fi; 32196 32197if test "$ac_cv_header_netinfo_ni_h" = yes -a "$enable_netinfo" = yes; then 32198 32199cat >>confdefs.h <<\_ACEOF 32200#define HAVE_NETINFO 1 32201_ACEOF 32202 32203fi 32204 32205 32206 32207 32208 32209echo "$as_me:$LINENO: checking for logwtmp" >&5 32210echo $ECHO_N "checking for logwtmp... $ECHO_C" >&6 32211if test "${ac_cv_funclib_logwtmp+set}" = set; then 32212 echo $ECHO_N "(cached) $ECHO_C" >&6 32213else 32214 32215if eval "test \"\$ac_cv_func_logwtmp\" != yes" ; then 32216 ac_save_LIBS="$LIBS" 32217 for ac_lib in "" util; do 32218 case "$ac_lib" in 32219 "") ;; 32220 yes) ac_lib="" ;; 32221 no) continue ;; 32222 -l*) ;; 32223 *) ac_lib="-l$ac_lib" ;; 32224 esac 32225 LIBS=" $ac_lib $ac_save_LIBS" 32226 cat >conftest.$ac_ext <<_ACEOF 32227#line $LINENO "configure" 32228#include "confdefs.h" 32229 32230#ifdef F77_DUMMY_MAIN 32231# ifdef __cplusplus 32232 extern "C" 32233# endif 32234 int F77_DUMMY_MAIN() { return 1; } 32235#endif 32236int 32237main () 32238{ 32239logwtmp() 32240 ; 32241 return 0; 32242} 32243_ACEOF 32244rm -f conftest.$ac_objext conftest$ac_exeext 32245if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32246 (eval $ac_link) 2>&5 32247 ac_status=$? 32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32249 (exit $ac_status); } && 32250 { ac_try='test -s conftest$ac_exeext' 32251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32252 (eval $ac_try) 2>&5 32253 ac_status=$? 32254 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32255 (exit $ac_status); }; }; then 32256 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logwtmp=$ac_lib; else ac_cv_funclib_logwtmp=yes; fi";break 32257else 32258 echo "$as_me: failed program was:" >&5 32259cat conftest.$ac_ext >&5 32260fi 32261rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32262 done 32263 eval "ac_cv_funclib_logwtmp=\${ac_cv_funclib_logwtmp-no}" 32264 LIBS="$ac_save_LIBS" 32265fi 32266 32267fi 32268 32269 32270eval "ac_res=\$ac_cv_funclib_logwtmp" 32271 32272if false; then 32273 32274for ac_func in logwtmp 32275do 32276as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32277echo "$as_me:$LINENO: checking for $ac_func" >&5 32278echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32279if eval "test \"\${$as_ac_var+set}\" = set"; then 32280 echo $ECHO_N "(cached) $ECHO_C" >&6 32281else 32282 cat >conftest.$ac_ext <<_ACEOF 32283#line $LINENO "configure" 32284#include "confdefs.h" 32285/* System header to define __stub macros and hopefully few prototypes, 32286 which can conflict with char $ac_func (); below. */ 32287#include <assert.h> 32288/* Override any gcc2 internal prototype to avoid an error. */ 32289#ifdef __cplusplus 32290extern "C" 32291#endif 32292/* We use char because int might match the return type of a gcc2 32293 builtin and then its argument prototype would still apply. */ 32294char $ac_func (); 32295char (*f) (); 32296 32297#ifdef F77_DUMMY_MAIN 32298# ifdef __cplusplus 32299 extern "C" 32300# endif 32301 int F77_DUMMY_MAIN() { return 1; } 32302#endif 32303int 32304main () 32305{ 32306/* The GNU C library defines this for functions which it implements 32307 to always fail with ENOSYS. Some functions are actually named 32308 something starting with __ and the normal name is an alias. */ 32309#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32310choke me 32311#else 32312f = $ac_func; 32313#endif 32314 32315 ; 32316 return 0; 32317} 32318_ACEOF 32319rm -f conftest.$ac_objext conftest$ac_exeext 32320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32321 (eval $ac_link) 2>&5 32322 ac_status=$? 32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32324 (exit $ac_status); } && 32325 { ac_try='test -s conftest$ac_exeext' 32326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32327 (eval $ac_try) 2>&5 32328 ac_status=$? 32329 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32330 (exit $ac_status); }; }; then 32331 eval "$as_ac_var=yes" 32332else 32333 echo "$as_me: failed program was:" >&5 32334cat conftest.$ac_ext >&5 32335eval "$as_ac_var=no" 32336fi 32337rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32338fi 32339echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32340echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32341if test `eval echo '${'$as_ac_var'}'` = yes; then 32342 cat >>confdefs.h <<_ACEOF 32343#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32344_ACEOF 32345 32346fi 32347done 32348 32349fi 32350# logwtmp 32351eval "ac_tr_func=HAVE_`echo logwtmp | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32352eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32353eval "LIB_logwtmp=$ac_res" 32354 32355case "$ac_res" in 32356 yes) 32357 eval "ac_cv_func_logwtmp=yes" 32358 eval "LIB_logwtmp=" 32359 cat >>confdefs.h <<_ACEOF 32360#define $ac_tr_func 1 32361_ACEOF 32362 32363 echo "$as_me:$LINENO: result: yes" >&5 32364echo "${ECHO_T}yes" >&6 32365 ;; 32366 no) 32367 eval "ac_cv_func_logwtmp=no" 32368 eval "LIB_logwtmp=" 32369 echo "$as_me:$LINENO: result: no" >&5 32370echo "${ECHO_T}no" >&6 32371 ;; 32372 *) 32373 eval "ac_cv_func_logwtmp=yes" 32374 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32375 cat >>confdefs.h <<_ACEOF 32376#define $ac_tr_func 1 32377_ACEOF 32378 32379 cat >>confdefs.h <<_ACEOF 32380#define $ac_tr_lib 1 32381_ACEOF 32382 32383 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32384echo "${ECHO_T}yes, in $ac_res" >&6 32385 ;; 32386esac 32387 32388 32389 32390 32391 32392echo "$as_me:$LINENO: checking for logout" >&5 32393echo $ECHO_N "checking for logout... $ECHO_C" >&6 32394if test "${ac_cv_funclib_logout+set}" = set; then 32395 echo $ECHO_N "(cached) $ECHO_C" >&6 32396else 32397 32398if eval "test \"\$ac_cv_func_logout\" != yes" ; then 32399 ac_save_LIBS="$LIBS" 32400 for ac_lib in "" util; do 32401 case "$ac_lib" in 32402 "") ;; 32403 yes) ac_lib="" ;; 32404 no) continue ;; 32405 -l*) ;; 32406 *) ac_lib="-l$ac_lib" ;; 32407 esac 32408 LIBS=" $ac_lib $ac_save_LIBS" 32409 cat >conftest.$ac_ext <<_ACEOF 32410#line $LINENO "configure" 32411#include "confdefs.h" 32412 32413#ifdef F77_DUMMY_MAIN 32414# ifdef __cplusplus 32415 extern "C" 32416# endif 32417 int F77_DUMMY_MAIN() { return 1; } 32418#endif 32419int 32420main () 32421{ 32422logout() 32423 ; 32424 return 0; 32425} 32426_ACEOF 32427rm -f conftest.$ac_objext conftest$ac_exeext 32428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32429 (eval $ac_link) 2>&5 32430 ac_status=$? 32431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32432 (exit $ac_status); } && 32433 { ac_try='test -s conftest$ac_exeext' 32434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32435 (eval $ac_try) 2>&5 32436 ac_status=$? 32437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32438 (exit $ac_status); }; }; then 32439 eval "if test -n \"$ac_lib\";then ac_cv_funclib_logout=$ac_lib; else ac_cv_funclib_logout=yes; fi";break 32440else 32441 echo "$as_me: failed program was:" >&5 32442cat conftest.$ac_ext >&5 32443fi 32444rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32445 done 32446 eval "ac_cv_funclib_logout=\${ac_cv_funclib_logout-no}" 32447 LIBS="$ac_save_LIBS" 32448fi 32449 32450fi 32451 32452 32453eval "ac_res=\$ac_cv_funclib_logout" 32454 32455if false; then 32456 32457for ac_func in logout 32458do 32459as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32460echo "$as_me:$LINENO: checking for $ac_func" >&5 32461echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32462if eval "test \"\${$as_ac_var+set}\" = set"; then 32463 echo $ECHO_N "(cached) $ECHO_C" >&6 32464else 32465 cat >conftest.$ac_ext <<_ACEOF 32466#line $LINENO "configure" 32467#include "confdefs.h" 32468/* System header to define __stub macros and hopefully few prototypes, 32469 which can conflict with char $ac_func (); below. */ 32470#include <assert.h> 32471/* Override any gcc2 internal prototype to avoid an error. */ 32472#ifdef __cplusplus 32473extern "C" 32474#endif 32475/* We use char because int might match the return type of a gcc2 32476 builtin and then its argument prototype would still apply. */ 32477char $ac_func (); 32478char (*f) (); 32479 32480#ifdef F77_DUMMY_MAIN 32481# ifdef __cplusplus 32482 extern "C" 32483# endif 32484 int F77_DUMMY_MAIN() { return 1; } 32485#endif 32486int 32487main () 32488{ 32489/* The GNU C library defines this for functions which it implements 32490 to always fail with ENOSYS. Some functions are actually named 32491 something starting with __ and the normal name is an alias. */ 32492#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32493choke me 32494#else 32495f = $ac_func; 32496#endif 32497 32498 ; 32499 return 0; 32500} 32501_ACEOF 32502rm -f conftest.$ac_objext conftest$ac_exeext 32503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32504 (eval $ac_link) 2>&5 32505 ac_status=$? 32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32507 (exit $ac_status); } && 32508 { ac_try='test -s conftest$ac_exeext' 32509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32510 (eval $ac_try) 2>&5 32511 ac_status=$? 32512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32513 (exit $ac_status); }; }; then 32514 eval "$as_ac_var=yes" 32515else 32516 echo "$as_me: failed program was:" >&5 32517cat conftest.$ac_ext >&5 32518eval "$as_ac_var=no" 32519fi 32520rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32521fi 32522echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32523echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32524if test `eval echo '${'$as_ac_var'}'` = yes; then 32525 cat >>confdefs.h <<_ACEOF 32526#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32527_ACEOF 32528 32529fi 32530done 32531 32532fi 32533# logout 32534eval "ac_tr_func=HAVE_`echo logout | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32535eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32536eval "LIB_logout=$ac_res" 32537 32538case "$ac_res" in 32539 yes) 32540 eval "ac_cv_func_logout=yes" 32541 eval "LIB_logout=" 32542 cat >>confdefs.h <<_ACEOF 32543#define $ac_tr_func 1 32544_ACEOF 32545 32546 echo "$as_me:$LINENO: result: yes" >&5 32547echo "${ECHO_T}yes" >&6 32548 ;; 32549 no) 32550 eval "ac_cv_func_logout=no" 32551 eval "LIB_logout=" 32552 echo "$as_me:$LINENO: result: no" >&5 32553echo "${ECHO_T}no" >&6 32554 ;; 32555 *) 32556 eval "ac_cv_func_logout=yes" 32557 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32558 cat >>confdefs.h <<_ACEOF 32559#define $ac_tr_func 1 32560_ACEOF 32561 32562 cat >>confdefs.h <<_ACEOF 32563#define $ac_tr_lib 1 32564_ACEOF 32565 32566 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32567echo "${ECHO_T}yes, in $ac_res" >&6 32568 ;; 32569esac 32570 32571 32572 32573 32574 32575echo "$as_me:$LINENO: checking for openpty" >&5 32576echo $ECHO_N "checking for openpty... $ECHO_C" >&6 32577if test "${ac_cv_funclib_openpty+set}" = set; then 32578 echo $ECHO_N "(cached) $ECHO_C" >&6 32579else 32580 32581if eval "test \"\$ac_cv_func_openpty\" != yes" ; then 32582 ac_save_LIBS="$LIBS" 32583 for ac_lib in "" util; do 32584 case "$ac_lib" in 32585 "") ;; 32586 yes) ac_lib="" ;; 32587 no) continue ;; 32588 -l*) ;; 32589 *) ac_lib="-l$ac_lib" ;; 32590 esac 32591 LIBS=" $ac_lib $ac_save_LIBS" 32592 cat >conftest.$ac_ext <<_ACEOF 32593#line $LINENO "configure" 32594#include "confdefs.h" 32595 32596#ifdef F77_DUMMY_MAIN 32597# ifdef __cplusplus 32598 extern "C" 32599# endif 32600 int F77_DUMMY_MAIN() { return 1; } 32601#endif 32602int 32603main () 32604{ 32605openpty() 32606 ; 32607 return 0; 32608} 32609_ACEOF 32610rm -f conftest.$ac_objext conftest$ac_exeext 32611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32612 (eval $ac_link) 2>&5 32613 ac_status=$? 32614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32615 (exit $ac_status); } && 32616 { ac_try='test -s conftest$ac_exeext' 32617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32618 (eval $ac_try) 2>&5 32619 ac_status=$? 32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32621 (exit $ac_status); }; }; then 32622 eval "if test -n \"$ac_lib\";then ac_cv_funclib_openpty=$ac_lib; else ac_cv_funclib_openpty=yes; fi";break 32623else 32624 echo "$as_me: failed program was:" >&5 32625cat conftest.$ac_ext >&5 32626fi 32627rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32628 done 32629 eval "ac_cv_funclib_openpty=\${ac_cv_funclib_openpty-no}" 32630 LIBS="$ac_save_LIBS" 32631fi 32632 32633fi 32634 32635 32636eval "ac_res=\$ac_cv_funclib_openpty" 32637 32638if false; then 32639 32640for ac_func in openpty 32641do 32642as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32643echo "$as_me:$LINENO: checking for $ac_func" >&5 32644echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32645if eval "test \"\${$as_ac_var+set}\" = set"; then 32646 echo $ECHO_N "(cached) $ECHO_C" >&6 32647else 32648 cat >conftest.$ac_ext <<_ACEOF 32649#line $LINENO "configure" 32650#include "confdefs.h" 32651/* System header to define __stub macros and hopefully few prototypes, 32652 which can conflict with char $ac_func (); below. */ 32653#include <assert.h> 32654/* Override any gcc2 internal prototype to avoid an error. */ 32655#ifdef __cplusplus 32656extern "C" 32657#endif 32658/* We use char because int might match the return type of a gcc2 32659 builtin and then its argument prototype would still apply. */ 32660char $ac_func (); 32661char (*f) (); 32662 32663#ifdef F77_DUMMY_MAIN 32664# ifdef __cplusplus 32665 extern "C" 32666# endif 32667 int F77_DUMMY_MAIN() { return 1; } 32668#endif 32669int 32670main () 32671{ 32672/* The GNU C library defines this for functions which it implements 32673 to always fail with ENOSYS. Some functions are actually named 32674 something starting with __ and the normal name is an alias. */ 32675#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32676choke me 32677#else 32678f = $ac_func; 32679#endif 32680 32681 ; 32682 return 0; 32683} 32684_ACEOF 32685rm -f conftest.$ac_objext conftest$ac_exeext 32686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32687 (eval $ac_link) 2>&5 32688 ac_status=$? 32689 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32690 (exit $ac_status); } && 32691 { ac_try='test -s conftest$ac_exeext' 32692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32693 (eval $ac_try) 2>&5 32694 ac_status=$? 32695 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32696 (exit $ac_status); }; }; then 32697 eval "$as_ac_var=yes" 32698else 32699 echo "$as_me: failed program was:" >&5 32700cat conftest.$ac_ext >&5 32701eval "$as_ac_var=no" 32702fi 32703rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32704fi 32705echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32706echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32707if test `eval echo '${'$as_ac_var'}'` = yes; then 32708 cat >>confdefs.h <<_ACEOF 32709#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32710_ACEOF 32711 32712fi 32713done 32714 32715fi 32716# openpty 32717eval "ac_tr_func=HAVE_`echo openpty | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32718eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32719eval "LIB_openpty=$ac_res" 32720 32721case "$ac_res" in 32722 yes) 32723 eval "ac_cv_func_openpty=yes" 32724 eval "LIB_openpty=" 32725 cat >>confdefs.h <<_ACEOF 32726#define $ac_tr_func 1 32727_ACEOF 32728 32729 echo "$as_me:$LINENO: result: yes" >&5 32730echo "${ECHO_T}yes" >&6 32731 ;; 32732 no) 32733 eval "ac_cv_func_openpty=no" 32734 eval "LIB_openpty=" 32735 echo "$as_me:$LINENO: result: no" >&5 32736echo "${ECHO_T}no" >&6 32737 ;; 32738 *) 32739 eval "ac_cv_func_openpty=yes" 32740 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32741 cat >>confdefs.h <<_ACEOF 32742#define $ac_tr_func 1 32743_ACEOF 32744 32745 cat >>confdefs.h <<_ACEOF 32746#define $ac_tr_lib 1 32747_ACEOF 32748 32749 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32750echo "${ECHO_T}yes, in $ac_res" >&6 32751 ;; 32752esac 32753 32754 32755 32756 32757 32758echo "$as_me:$LINENO: checking for tgetent" >&5 32759echo $ECHO_N "checking for tgetent... $ECHO_C" >&6 32760if test "${ac_cv_funclib_tgetent+set}" = set; then 32761 echo $ECHO_N "(cached) $ECHO_C" >&6 32762else 32763 32764if eval "test \"\$ac_cv_func_tgetent\" != yes" ; then 32765 ac_save_LIBS="$LIBS" 32766 for ac_lib in "" termcap ncurses curses; do 32767 case "$ac_lib" in 32768 "") ;; 32769 yes) ac_lib="" ;; 32770 no) continue ;; 32771 -l*) ;; 32772 *) ac_lib="-l$ac_lib" ;; 32773 esac 32774 LIBS=" $ac_lib $ac_save_LIBS" 32775 cat >conftest.$ac_ext <<_ACEOF 32776#line $LINENO "configure" 32777#include "confdefs.h" 32778 32779#ifdef F77_DUMMY_MAIN 32780# ifdef __cplusplus 32781 extern "C" 32782# endif 32783 int F77_DUMMY_MAIN() { return 1; } 32784#endif 32785int 32786main () 32787{ 32788tgetent() 32789 ; 32790 return 0; 32791} 32792_ACEOF 32793rm -f conftest.$ac_objext conftest$ac_exeext 32794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32795 (eval $ac_link) 2>&5 32796 ac_status=$? 32797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32798 (exit $ac_status); } && 32799 { ac_try='test -s conftest$ac_exeext' 32800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32801 (eval $ac_try) 2>&5 32802 ac_status=$? 32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32804 (exit $ac_status); }; }; then 32805 eval "if test -n \"$ac_lib\";then ac_cv_funclib_tgetent=$ac_lib; else ac_cv_funclib_tgetent=yes; fi";break 32806else 32807 echo "$as_me: failed program was:" >&5 32808cat conftest.$ac_ext >&5 32809fi 32810rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32811 done 32812 eval "ac_cv_funclib_tgetent=\${ac_cv_funclib_tgetent-no}" 32813 LIBS="$ac_save_LIBS" 32814fi 32815 32816fi 32817 32818 32819eval "ac_res=\$ac_cv_funclib_tgetent" 32820 32821if false; then 32822 32823for ac_func in tgetent 32824do 32825as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 32826echo "$as_me:$LINENO: checking for $ac_func" >&5 32827echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 32828if eval "test \"\${$as_ac_var+set}\" = set"; then 32829 echo $ECHO_N "(cached) $ECHO_C" >&6 32830else 32831 cat >conftest.$ac_ext <<_ACEOF 32832#line $LINENO "configure" 32833#include "confdefs.h" 32834/* System header to define __stub macros and hopefully few prototypes, 32835 which can conflict with char $ac_func (); below. */ 32836#include <assert.h> 32837/* Override any gcc2 internal prototype to avoid an error. */ 32838#ifdef __cplusplus 32839extern "C" 32840#endif 32841/* We use char because int might match the return type of a gcc2 32842 builtin and then its argument prototype would still apply. */ 32843char $ac_func (); 32844char (*f) (); 32845 32846#ifdef F77_DUMMY_MAIN 32847# ifdef __cplusplus 32848 extern "C" 32849# endif 32850 int F77_DUMMY_MAIN() { return 1; } 32851#endif 32852int 32853main () 32854{ 32855/* The GNU C library defines this for functions which it implements 32856 to always fail with ENOSYS. Some functions are actually named 32857 something starting with __ and the normal name is an alias. */ 32858#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 32859choke me 32860#else 32861f = $ac_func; 32862#endif 32863 32864 ; 32865 return 0; 32866} 32867_ACEOF 32868rm -f conftest.$ac_objext conftest$ac_exeext 32869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 32870 (eval $ac_link) 2>&5 32871 ac_status=$? 32872 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32873 (exit $ac_status); } && 32874 { ac_try='test -s conftest$ac_exeext' 32875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 32876 (eval $ac_try) 2>&5 32877 ac_status=$? 32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5 32879 (exit $ac_status); }; }; then 32880 eval "$as_ac_var=yes" 32881else 32882 echo "$as_me: failed program was:" >&5 32883cat conftest.$ac_ext >&5 32884eval "$as_ac_var=no" 32885fi 32886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 32887fi 32888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 32889echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 32890if test `eval echo '${'$as_ac_var'}'` = yes; then 32891 cat >>confdefs.h <<_ACEOF 32892#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 32893_ACEOF 32894 32895fi 32896done 32897 32898fi 32899# tgetent 32900eval "ac_tr_func=HAVE_`echo tgetent | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32901eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 32902eval "LIB_tgetent=$ac_res" 32903 32904case "$ac_res" in 32905 yes) 32906 eval "ac_cv_func_tgetent=yes" 32907 eval "LIB_tgetent=" 32908 cat >>confdefs.h <<_ACEOF 32909#define $ac_tr_func 1 32910_ACEOF 32911 32912 echo "$as_me:$LINENO: result: yes" >&5 32913echo "${ECHO_T}yes" >&6 32914 ;; 32915 no) 32916 eval "ac_cv_func_tgetent=no" 32917 eval "LIB_tgetent=" 32918 echo "$as_me:$LINENO: result: no" >&5 32919echo "${ECHO_T}no" >&6 32920 ;; 32921 *) 32922 eval "ac_cv_func_tgetent=yes" 32923 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 32924 cat >>confdefs.h <<_ACEOF 32925#define $ac_tr_func 1 32926_ACEOF 32927 32928 cat >>confdefs.h <<_ACEOF 32929#define $ac_tr_lib 1 32930_ACEOF 32931 32932 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 32933echo "${ECHO_T}yes, in $ac_res" >&6 32934 ;; 32935esac 32936 32937 32938 32939 32940 32941 32942 32943 32944 32945 32946 32947 32948 32949 32950 32951 32952 32953 32954 32955 32956 32957 32958 32959 32960 32961 32962 32963 32964 32965 32966 32967 32968for ac_func in \ 32969 _getpty \ 32970 _scrsize \ 32971 fcntl \ 32972 grantpt \ 32973 mktime \ 32974 ptsname \ 32975 rand \ 32976 revoke \ 32977 select \ 32978 setitimer \ 32979 setpcred \ 32980 setpgid \ 32981 setproctitle \ 32982 setregid \ 32983 setresgid \ 32984 setresuid \ 32985 setreuid \ 32986 setsid \ 32987 setutent \ 32988 sigaction \ 32989 strstr \ 32990 timegm \ 32991 ttyname \ 32992 ttyslot \ 32993 umask \ 32994 unlockpt \ 32995 vhangup \ 32996 yp_get_default_domain \ 32997 32998do 32999as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33000echo "$as_me:$LINENO: checking for $ac_func" >&5 33001echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33002if eval "test \"\${$as_ac_var+set}\" = set"; then 33003 echo $ECHO_N "(cached) $ECHO_C" >&6 33004else 33005 cat >conftest.$ac_ext <<_ACEOF 33006#line $LINENO "configure" 33007#include "confdefs.h" 33008/* System header to define __stub macros and hopefully few prototypes, 33009 which can conflict with char $ac_func (); below. */ 33010#include <assert.h> 33011/* Override any gcc2 internal prototype to avoid an error. */ 33012#ifdef __cplusplus 33013extern "C" 33014#endif 33015/* We use char because int might match the return type of a gcc2 33016 builtin and then its argument prototype would still apply. */ 33017char $ac_func (); 33018char (*f) (); 33019 33020#ifdef F77_DUMMY_MAIN 33021# ifdef __cplusplus 33022 extern "C" 33023# endif 33024 int F77_DUMMY_MAIN() { return 1; } 33025#endif 33026int 33027main () 33028{ 33029/* The GNU C library defines this for functions which it implements 33030 to always fail with ENOSYS. Some functions are actually named 33031 something starting with __ and the normal name is an alias. */ 33032#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33033choke me 33034#else 33035f = $ac_func; 33036#endif 33037 33038 ; 33039 return 0; 33040} 33041_ACEOF 33042rm -f conftest.$ac_objext conftest$ac_exeext 33043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33044 (eval $ac_link) 2>&5 33045 ac_status=$? 33046 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33047 (exit $ac_status); } && 33048 { ac_try='test -s conftest$ac_exeext' 33049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33050 (eval $ac_try) 2>&5 33051 ac_status=$? 33052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33053 (exit $ac_status); }; }; then 33054 eval "$as_ac_var=yes" 33055else 33056 echo "$as_me: failed program was:" >&5 33057cat conftest.$ac_ext >&5 33058eval "$as_ac_var=no" 33059fi 33060rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33061fi 33062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33064if test `eval echo '${'$as_ac_var'}'` = yes; then 33065 cat >>confdefs.h <<_ACEOF 33066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33067_ACEOF 33068 33069fi 33070done 33071 33072 33073 33074 33075for ac_header in stdlib.h unistd.h 33076do 33077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33078if eval "test \"\${$as_ac_Header+set}\" = set"; then 33079 echo "$as_me:$LINENO: checking for $ac_header" >&5 33080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33081if eval "test \"\${$as_ac_Header+set}\" = set"; then 33082 echo $ECHO_N "(cached) $ECHO_C" >&6 33083fi 33084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33086else 33087 # Is the header compilable? 33088echo "$as_me:$LINENO: checking $ac_header usability" >&5 33089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33090cat >conftest.$ac_ext <<_ACEOF 33091#line $LINENO "configure" 33092#include "confdefs.h" 33093$ac_includes_default 33094#include <$ac_header> 33095_ACEOF 33096rm -f conftest.$ac_objext 33097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33098 (eval $ac_compile) 2>&5 33099 ac_status=$? 33100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33101 (exit $ac_status); } && 33102 { ac_try='test -s conftest.$ac_objext' 33103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33104 (eval $ac_try) 2>&5 33105 ac_status=$? 33106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33107 (exit $ac_status); }; }; then 33108 ac_header_compiler=yes 33109else 33110 echo "$as_me: failed program was:" >&5 33111cat conftest.$ac_ext >&5 33112ac_header_compiler=no 33113fi 33114rm -f conftest.$ac_objext conftest.$ac_ext 33115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33116echo "${ECHO_T}$ac_header_compiler" >&6 33117 33118# Is the header present? 33119echo "$as_me:$LINENO: checking $ac_header presence" >&5 33120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33121cat >conftest.$ac_ext <<_ACEOF 33122#line $LINENO "configure" 33123#include "confdefs.h" 33124#include <$ac_header> 33125_ACEOF 33126if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33127 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33128 ac_status=$? 33129 egrep -v '^ *\+' conftest.er1 >conftest.err 33130 rm -f conftest.er1 33131 cat conftest.err >&5 33132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33133 (exit $ac_status); } >/dev/null; then 33134 if test -s conftest.err; then 33135 ac_cpp_err=$ac_c_preproc_warn_flag 33136 else 33137 ac_cpp_err= 33138 fi 33139else 33140 ac_cpp_err=yes 33141fi 33142if test -z "$ac_cpp_err"; then 33143 ac_header_preproc=yes 33144else 33145 echo "$as_me: failed program was:" >&5 33146 cat conftest.$ac_ext >&5 33147 ac_header_preproc=no 33148fi 33149rm -f conftest.err conftest.$ac_ext 33150echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33151echo "${ECHO_T}$ac_header_preproc" >&6 33152 33153# So? What about this header? 33154case $ac_header_compiler:$ac_header_preproc in 33155 yes:no ) 33156 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33157echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33159echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 33160 no:yes ) 33161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33162echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33164echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33166echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 33167esac 33168echo "$as_me:$LINENO: checking for $ac_header" >&5 33169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33170if eval "test \"\${$as_ac_Header+set}\" = set"; then 33171 echo $ECHO_N "(cached) $ECHO_C" >&6 33172else 33173 eval "$as_ac_Header=$ac_header_preproc" 33174fi 33175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33177 33178fi 33179if test `eval echo '${'$as_ac_Header'}'` = yes; then 33180 cat >>confdefs.h <<_ACEOF 33181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33182_ACEOF 33183 33184fi 33185 33186done 33187 33188 33189for ac_func in getpagesize 33190do 33191as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33192echo "$as_me:$LINENO: checking for $ac_func" >&5 33193echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33194if eval "test \"\${$as_ac_var+set}\" = set"; then 33195 echo $ECHO_N "(cached) $ECHO_C" >&6 33196else 33197 cat >conftest.$ac_ext <<_ACEOF 33198#line $LINENO "configure" 33199#include "confdefs.h" 33200/* System header to define __stub macros and hopefully few prototypes, 33201 which can conflict with char $ac_func (); below. */ 33202#include <assert.h> 33203/* Override any gcc2 internal prototype to avoid an error. */ 33204#ifdef __cplusplus 33205extern "C" 33206#endif 33207/* We use char because int might match the return type of a gcc2 33208 builtin and then its argument prototype would still apply. */ 33209char $ac_func (); 33210char (*f) (); 33211 33212#ifdef F77_DUMMY_MAIN 33213# ifdef __cplusplus 33214 extern "C" 33215# endif 33216 int F77_DUMMY_MAIN() { return 1; } 33217#endif 33218int 33219main () 33220{ 33221/* The GNU C library defines this for functions which it implements 33222 to always fail with ENOSYS. Some functions are actually named 33223 something starting with __ and the normal name is an alias. */ 33224#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33225choke me 33226#else 33227f = $ac_func; 33228#endif 33229 33230 ; 33231 return 0; 33232} 33233_ACEOF 33234rm -f conftest.$ac_objext conftest$ac_exeext 33235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33236 (eval $ac_link) 2>&5 33237 ac_status=$? 33238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33239 (exit $ac_status); } && 33240 { ac_try='test -s conftest$ac_exeext' 33241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33242 (eval $ac_try) 2>&5 33243 ac_status=$? 33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33245 (exit $ac_status); }; }; then 33246 eval "$as_ac_var=yes" 33247else 33248 echo "$as_me: failed program was:" >&5 33249cat conftest.$ac_ext >&5 33250eval "$as_ac_var=no" 33251fi 33252rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33253fi 33254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33256if test `eval echo '${'$as_ac_var'}'` = yes; then 33257 cat >>confdefs.h <<_ACEOF 33258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33259_ACEOF 33260 33261fi 33262done 33263 33264echo "$as_me:$LINENO: checking for working mmap" >&5 33265echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 33266if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then 33267 echo $ECHO_N "(cached) $ECHO_C" >&6 33268else 33269 if test "$cross_compiling" = yes; then 33270 ac_cv_func_mmap_fixed_mapped=no 33271else 33272 cat >conftest.$ac_ext <<_ACEOF 33273#line $LINENO "configure" 33274#include "confdefs.h" 33275$ac_includes_default 33276/* malloc might have been renamed as rpl_malloc. */ 33277#undef malloc 33278 33279/* Thanks to Mike Haertel and Jim Avera for this test. 33280 Here is a matrix of mmap possibilities: 33281 mmap private not fixed 33282 mmap private fixed at somewhere currently unmapped 33283 mmap private fixed at somewhere already mapped 33284 mmap shared not fixed 33285 mmap shared fixed at somewhere currently unmapped 33286 mmap shared fixed at somewhere already mapped 33287 For private mappings, we should verify that changes cannot be read() 33288 back from the file, nor mmap's back from the file at a different 33289 address. (There have been systems where private was not correctly 33290 implemented like the infamous i386 svr4.0, and systems where the 33291 VM page cache was not coherent with the file system buffer cache 33292 like early versions of FreeBSD and possibly contemporary NetBSD.) 33293 For shared mappings, we should conversely verify that changes get 33294 propagated back to all the places they're supposed to be. 33295 33296 Grep wants private fixed already mapped. 33297 The main things grep needs to know about mmap are: 33298 * does it exist and is it safe to write into the mmap'd area 33299 * how to use it (BSD variants) */ 33300 33301#include <fcntl.h> 33302#include <sys/mman.h> 33303 33304#if !STDC_HEADERS && !HAVE_STDLIB_H 33305char *malloc (); 33306#endif 33307 33308/* This mess was copied from the GNU getpagesize.h. */ 33309#if !HAVE_GETPAGESIZE 33310/* Assume that all systems that can run configure have sys/param.h. */ 33311# if !HAVE_SYS_PARAM_H 33312# define HAVE_SYS_PARAM_H 1 33313# endif 33314 33315# ifdef _SC_PAGESIZE 33316# define getpagesize() sysconf(_SC_PAGESIZE) 33317# else /* no _SC_PAGESIZE */ 33318# if HAVE_SYS_PARAM_H 33319# include <sys/param.h> 33320# ifdef EXEC_PAGESIZE 33321# define getpagesize() EXEC_PAGESIZE 33322# else /* no EXEC_PAGESIZE */ 33323# ifdef NBPG 33324# define getpagesize() NBPG * CLSIZE 33325# ifndef CLSIZE 33326# define CLSIZE 1 33327# endif /* no CLSIZE */ 33328# else /* no NBPG */ 33329# ifdef NBPC 33330# define getpagesize() NBPC 33331# else /* no NBPC */ 33332# ifdef PAGESIZE 33333# define getpagesize() PAGESIZE 33334# endif /* PAGESIZE */ 33335# endif /* no NBPC */ 33336# endif /* no NBPG */ 33337# endif /* no EXEC_PAGESIZE */ 33338# else /* no HAVE_SYS_PARAM_H */ 33339# define getpagesize() 8192 /* punt totally */ 33340# endif /* no HAVE_SYS_PARAM_H */ 33341# endif /* no _SC_PAGESIZE */ 33342 33343#endif /* no HAVE_GETPAGESIZE */ 33344 33345int 33346main () 33347{ 33348 char *data, *data2, *data3; 33349 int i, pagesize; 33350 int fd; 33351 33352 pagesize = getpagesize (); 33353 33354 /* First, make a file with some known garbage in it. */ 33355 data = (char *) malloc (pagesize); 33356 if (!data) 33357 exit (1); 33358 for (i = 0; i < pagesize; ++i) 33359 *(data + i) = rand (); 33360 umask (0); 33361 fd = creat ("conftest.mmap", 0600); 33362 if (fd < 0) 33363 exit (1); 33364 if (write (fd, data, pagesize) != pagesize) 33365 exit (1); 33366 close (fd); 33367 33368 /* Next, try to mmap the file at a fixed address which already has 33369 something else allocated at it. If we can, also make sure that 33370 we see the same garbage. */ 33371 fd = open ("conftest.mmap", O_RDWR); 33372 if (fd < 0) 33373 exit (1); 33374 data2 = (char *) malloc (2 * pagesize); 33375 if (!data2) 33376 exit (1); 33377 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); 33378 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 33379 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 33380 exit (1); 33381 for (i = 0; i < pagesize; ++i) 33382 if (*(data + i) != *(data2 + i)) 33383 exit (1); 33384 33385 /* Finally, make sure that changes to the mapped area do not 33386 percolate back to the file as seen by read(). (This is a bug on 33387 some variants of i386 svr4.0.) */ 33388 for (i = 0; i < pagesize; ++i) 33389 *(data2 + i) = *(data2 + i) + 1; 33390 data3 = (char *) malloc (pagesize); 33391 if (!data3) 33392 exit (1); 33393 if (read (fd, data3, pagesize) != pagesize) 33394 exit (1); 33395 for (i = 0; i < pagesize; ++i) 33396 if (*(data + i) != *(data3 + i)) 33397 exit (1); 33398 close (fd); 33399 exit (0); 33400} 33401_ACEOF 33402rm -f conftest$ac_exeext 33403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33404 (eval $ac_link) 2>&5 33405 ac_status=$? 33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 33408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33409 (eval $ac_try) 2>&5 33410 ac_status=$? 33411 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33412 (exit $ac_status); }; }; then 33413 ac_cv_func_mmap_fixed_mapped=yes 33414else 33415 echo "$as_me: program exited with status $ac_status" >&5 33416echo "$as_me: failed program was:" >&5 33417cat conftest.$ac_ext >&5 33418( exit $ac_status ) 33419ac_cv_func_mmap_fixed_mapped=no 33420fi 33421rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 33422fi 33423fi 33424echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 33425echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 33426if test $ac_cv_func_mmap_fixed_mapped = yes; then 33427 33428cat >>confdefs.h <<\_ACEOF 33429#define HAVE_MMAP 1 33430_ACEOF 33431 33432fi 33433rm -f conftest.mmap 33434 33435 33436 33437 33438 33439 33440for ac_header in capability.h sys/capability.h 33441do 33442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 33443if eval "test \"\${$as_ac_Header+set}\" = set"; then 33444 echo "$as_me:$LINENO: checking for $ac_header" >&5 33445echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33446if eval "test \"\${$as_ac_Header+set}\" = set"; then 33447 echo $ECHO_N "(cached) $ECHO_C" >&6 33448fi 33449echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33450echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33451else 33452 # Is the header compilable? 33453echo "$as_me:$LINENO: checking $ac_header usability" >&5 33454echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 33455cat >conftest.$ac_ext <<_ACEOF 33456#line $LINENO "configure" 33457#include "confdefs.h" 33458$ac_includes_default 33459#include <$ac_header> 33460_ACEOF 33461rm -f conftest.$ac_objext 33462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33463 (eval $ac_compile) 2>&5 33464 ac_status=$? 33465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33466 (exit $ac_status); } && 33467 { ac_try='test -s conftest.$ac_objext' 33468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33469 (eval $ac_try) 2>&5 33470 ac_status=$? 33471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33472 (exit $ac_status); }; }; then 33473 ac_header_compiler=yes 33474else 33475 echo "$as_me: failed program was:" >&5 33476cat conftest.$ac_ext >&5 33477ac_header_compiler=no 33478fi 33479rm -f conftest.$ac_objext conftest.$ac_ext 33480echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 33481echo "${ECHO_T}$ac_header_compiler" >&6 33482 33483# Is the header present? 33484echo "$as_me:$LINENO: checking $ac_header presence" >&5 33485echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 33486cat >conftest.$ac_ext <<_ACEOF 33487#line $LINENO "configure" 33488#include "confdefs.h" 33489#include <$ac_header> 33490_ACEOF 33491if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 33492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 33493 ac_status=$? 33494 egrep -v '^ *\+' conftest.er1 >conftest.err 33495 rm -f conftest.er1 33496 cat conftest.err >&5 33497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33498 (exit $ac_status); } >/dev/null; then 33499 if test -s conftest.err; then 33500 ac_cpp_err=$ac_c_preproc_warn_flag 33501 else 33502 ac_cpp_err= 33503 fi 33504else 33505 ac_cpp_err=yes 33506fi 33507if test -z "$ac_cpp_err"; then 33508 ac_header_preproc=yes 33509else 33510 echo "$as_me: failed program was:" >&5 33511 cat conftest.$ac_ext >&5 33512 ac_header_preproc=no 33513fi 33514rm -f conftest.err conftest.$ac_ext 33515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 33516echo "${ECHO_T}$ac_header_preproc" >&6 33517 33518# So? What about this header? 33519case $ac_header_compiler:$ac_header_preproc in 33520 yes:no ) 33521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 33522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 33523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33524echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 33525 no:yes ) 33526 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 33527echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 33528 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 33529echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 33530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 33531echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};; 33532esac 33533echo "$as_me:$LINENO: checking for $ac_header" >&5 33534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 33535if eval "test \"\${$as_ac_Header+set}\" = set"; then 33536 echo $ECHO_N "(cached) $ECHO_C" >&6 33537else 33538 eval "$as_ac_Header=$ac_header_preproc" 33539fi 33540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 33541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 33542 33543fi 33544if test `eval echo '${'$as_ac_Header'}'` = yes; then 33545 cat >>confdefs.h <<_ACEOF 33546#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 33547_ACEOF 33548 33549fi 33550 33551done 33552 33553 33554 33555 33556for ac_func in sgi_getcapabilitybyname cap_set_proc 33557do 33558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33559echo "$as_me:$LINENO: checking for $ac_func" >&5 33560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33561if eval "test \"\${$as_ac_var+set}\" = set"; then 33562 echo $ECHO_N "(cached) $ECHO_C" >&6 33563else 33564 cat >conftest.$ac_ext <<_ACEOF 33565#line $LINENO "configure" 33566#include "confdefs.h" 33567/* System header to define __stub macros and hopefully few prototypes, 33568 which can conflict with char $ac_func (); below. */ 33569#include <assert.h> 33570/* Override any gcc2 internal prototype to avoid an error. */ 33571#ifdef __cplusplus 33572extern "C" 33573#endif 33574/* We use char because int might match the return type of a gcc2 33575 builtin and then its argument prototype would still apply. */ 33576char $ac_func (); 33577char (*f) (); 33578 33579#ifdef F77_DUMMY_MAIN 33580# ifdef __cplusplus 33581 extern "C" 33582# endif 33583 int F77_DUMMY_MAIN() { return 1; } 33584#endif 33585int 33586main () 33587{ 33588/* The GNU C library defines this for functions which it implements 33589 to always fail with ENOSYS. Some functions are actually named 33590 something starting with __ and the normal name is an alias. */ 33591#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33592choke me 33593#else 33594f = $ac_func; 33595#endif 33596 33597 ; 33598 return 0; 33599} 33600_ACEOF 33601rm -f conftest.$ac_objext conftest$ac_exeext 33602if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33603 (eval $ac_link) 2>&5 33604 ac_status=$? 33605 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33606 (exit $ac_status); } && 33607 { ac_try='test -s conftest$ac_exeext' 33608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33609 (eval $ac_try) 2>&5 33610 ac_status=$? 33611 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33612 (exit $ac_status); }; }; then 33613 eval "$as_ac_var=yes" 33614else 33615 echo "$as_me: failed program was:" >&5 33616cat conftest.$ac_ext >&5 33617eval "$as_ac_var=no" 33618fi 33619rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33620fi 33621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33622echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33623if test `eval echo '${'$as_ac_var'}'` = yes; then 33624 cat >>confdefs.h <<_ACEOF 33625#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33626_ACEOF 33627 33628fi 33629done 33630 33631 33632 33633 33634 33635 33636 33637echo "$as_me:$LINENO: checking for getpwnam_r" >&5 33638echo $ECHO_N "checking for getpwnam_r... $ECHO_C" >&6 33639if test "${ac_cv_funclib_getpwnam_r+set}" = set; then 33640 echo $ECHO_N "(cached) $ECHO_C" >&6 33641else 33642 33643if eval "test \"\$ac_cv_func_getpwnam_r\" != yes" ; then 33644 ac_save_LIBS="$LIBS" 33645 for ac_lib in "" c_r; do 33646 case "$ac_lib" in 33647 "") ;; 33648 yes) ac_lib="" ;; 33649 no) continue ;; 33650 -l*) ;; 33651 *) ac_lib="-l$ac_lib" ;; 33652 esac 33653 LIBS=" $ac_lib $ac_save_LIBS" 33654 cat >conftest.$ac_ext <<_ACEOF 33655#line $LINENO "configure" 33656#include "confdefs.h" 33657 33658#ifdef F77_DUMMY_MAIN 33659# ifdef __cplusplus 33660 extern "C" 33661# endif 33662 int F77_DUMMY_MAIN() { return 1; } 33663#endif 33664int 33665main () 33666{ 33667getpwnam_r() 33668 ; 33669 return 0; 33670} 33671_ACEOF 33672rm -f conftest.$ac_objext conftest$ac_exeext 33673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33674 (eval $ac_link) 2>&5 33675 ac_status=$? 33676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33677 (exit $ac_status); } && 33678 { ac_try='test -s conftest$ac_exeext' 33679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33680 (eval $ac_try) 2>&5 33681 ac_status=$? 33682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33683 (exit $ac_status); }; }; then 33684 eval "if test -n \"$ac_lib\";then ac_cv_funclib_getpwnam_r=$ac_lib; else ac_cv_funclib_getpwnam_r=yes; fi";break 33685else 33686 echo "$as_me: failed program was:" >&5 33687cat conftest.$ac_ext >&5 33688fi 33689rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33690 done 33691 eval "ac_cv_funclib_getpwnam_r=\${ac_cv_funclib_getpwnam_r-no}" 33692 LIBS="$ac_save_LIBS" 33693fi 33694 33695fi 33696 33697 33698eval "ac_res=\$ac_cv_funclib_getpwnam_r" 33699 33700if false; then 33701 33702for ac_func in getpwnam_r 33703do 33704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33705echo "$as_me:$LINENO: checking for $ac_func" >&5 33706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33707if eval "test \"\${$as_ac_var+set}\" = set"; then 33708 echo $ECHO_N "(cached) $ECHO_C" >&6 33709else 33710 cat >conftest.$ac_ext <<_ACEOF 33711#line $LINENO "configure" 33712#include "confdefs.h" 33713/* System header to define __stub macros and hopefully few prototypes, 33714 which can conflict with char $ac_func (); below. */ 33715#include <assert.h> 33716/* Override any gcc2 internal prototype to avoid an error. */ 33717#ifdef __cplusplus 33718extern "C" 33719#endif 33720/* We use char because int might match the return type of a gcc2 33721 builtin and then its argument prototype would still apply. */ 33722char $ac_func (); 33723char (*f) (); 33724 33725#ifdef F77_DUMMY_MAIN 33726# ifdef __cplusplus 33727 extern "C" 33728# endif 33729 int F77_DUMMY_MAIN() { return 1; } 33730#endif 33731int 33732main () 33733{ 33734/* The GNU C library defines this for functions which it implements 33735 to always fail with ENOSYS. Some functions are actually named 33736 something starting with __ and the normal name is an alias. */ 33737#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33738choke me 33739#else 33740f = $ac_func; 33741#endif 33742 33743 ; 33744 return 0; 33745} 33746_ACEOF 33747rm -f conftest.$ac_objext conftest$ac_exeext 33748if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33749 (eval $ac_link) 2>&5 33750 ac_status=$? 33751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33752 (exit $ac_status); } && 33753 { ac_try='test -s conftest$ac_exeext' 33754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33755 (eval $ac_try) 2>&5 33756 ac_status=$? 33757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33758 (exit $ac_status); }; }; then 33759 eval "$as_ac_var=yes" 33760else 33761 echo "$as_me: failed program was:" >&5 33762cat conftest.$ac_ext >&5 33763eval "$as_ac_var=no" 33764fi 33765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33766fi 33767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33768echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33769if test `eval echo '${'$as_ac_var'}'` = yes; then 33770 cat >>confdefs.h <<_ACEOF 33771#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33772_ACEOF 33773 33774fi 33775done 33776 33777fi 33778# getpwnam_r 33779eval "ac_tr_func=HAVE_`echo getpwnam_r | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 33780eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 33781eval "LIB_getpwnam_r=$ac_res" 33782 33783case "$ac_res" in 33784 yes) 33785 eval "ac_cv_func_getpwnam_r=yes" 33786 eval "LIB_getpwnam_r=" 33787 cat >>confdefs.h <<_ACEOF 33788#define $ac_tr_func 1 33789_ACEOF 33790 33791 echo "$as_me:$LINENO: result: yes" >&5 33792echo "${ECHO_T}yes" >&6 33793 ;; 33794 no) 33795 eval "ac_cv_func_getpwnam_r=no" 33796 eval "LIB_getpwnam_r=" 33797 echo "$as_me:$LINENO: result: no" >&5 33798echo "${ECHO_T}no" >&6 33799 ;; 33800 *) 33801 eval "ac_cv_func_getpwnam_r=yes" 33802 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 33803 cat >>confdefs.h <<_ACEOF 33804#define $ac_tr_func 1 33805_ACEOF 33806 33807 cat >>confdefs.h <<_ACEOF 33808#define $ac_tr_lib 1 33809_ACEOF 33810 33811 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 33812echo "${ECHO_T}yes, in $ac_res" >&6 33813 ;; 33814esac 33815 33816 33817if test "$ac_cv_func_getpwnam_r" = yes; then 33818 echo "$as_me:$LINENO: checking if getpwnam_r is posix" >&5 33819echo $ECHO_N "checking if getpwnam_r is posix... $ECHO_C" >&6 33820if test "${ac_cv_func_getpwnam_r_posix+set}" = set; then 33821 echo $ECHO_N "(cached) $ECHO_C" >&6 33822else 33823 ac_libs="$LIBS" 33824 LIBS="$LIBS $LIB_getpwnam_r" 33825 if test "$cross_compiling" = yes; then 33826 : 33827else 33828 cat >conftest.$ac_ext <<_ACEOF 33829#line $LINENO "configure" 33830#include "confdefs.h" 33831 33832#include <pwd.h> 33833int main() 33834{ 33835 struct passwd pw, *pwd; 33836 return getpwnam_r("", &pw, NULL, 0, &pwd) < 0; 33837} 33838 33839_ACEOF 33840rm -f conftest$ac_exeext 33841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33842 (eval $ac_link) 2>&5 33843 ac_status=$? 33844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 33846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33847 (eval $ac_try) 2>&5 33848 ac_status=$? 33849 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33850 (exit $ac_status); }; }; then 33851 ac_cv_func_getpwnam_r_posix=yes 33852else 33853 echo "$as_me: program exited with status $ac_status" >&5 33854echo "$as_me: failed program was:" >&5 33855cat conftest.$ac_ext >&5 33856( exit $ac_status ) 33857ac_cv_func_getpwnam_r_posix=no 33858fi 33859rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 33860fi 33861LIBS="$ac_libs" 33862fi 33863echo "$as_me:$LINENO: result: $ac_cv_func_getpwnam_r_posix" >&5 33864echo "${ECHO_T}$ac_cv_func_getpwnam_r_posix" >&6 33865if test "$ac_cv_func_getpwnam_r_posix" = yes; then 33866 33867cat >>confdefs.h <<\_ACEOF 33868#define POSIX_GETPWNAM_R 1 33869_ACEOF 33870 33871fi 33872fi 33873 33874 33875 33876 33877for ac_func in getudbnam setlim 33878do 33879as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 33880echo "$as_me:$LINENO: checking for $ac_func" >&5 33881echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 33882if eval "test \"\${$as_ac_var+set}\" = set"; then 33883 echo $ECHO_N "(cached) $ECHO_C" >&6 33884else 33885 cat >conftest.$ac_ext <<_ACEOF 33886#line $LINENO "configure" 33887#include "confdefs.h" 33888/* System header to define __stub macros and hopefully few prototypes, 33889 which can conflict with char $ac_func (); below. */ 33890#include <assert.h> 33891/* Override any gcc2 internal prototype to avoid an error. */ 33892#ifdef __cplusplus 33893extern "C" 33894#endif 33895/* We use char because int might match the return type of a gcc2 33896 builtin and then its argument prototype would still apply. */ 33897char $ac_func (); 33898char (*f) (); 33899 33900#ifdef F77_DUMMY_MAIN 33901# ifdef __cplusplus 33902 extern "C" 33903# endif 33904 int F77_DUMMY_MAIN() { return 1; } 33905#endif 33906int 33907main () 33908{ 33909/* The GNU C library defines this for functions which it implements 33910 to always fail with ENOSYS. Some functions are actually named 33911 something starting with __ and the normal name is an alias. */ 33912#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 33913choke me 33914#else 33915f = $ac_func; 33916#endif 33917 33918 ; 33919 return 0; 33920} 33921_ACEOF 33922rm -f conftest.$ac_objext conftest$ac_exeext 33923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 33924 (eval $ac_link) 2>&5 33925 ac_status=$? 33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33927 (exit $ac_status); } && 33928 { ac_try='test -s conftest$ac_exeext' 33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33930 (eval $ac_try) 2>&5 33931 ac_status=$? 33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33933 (exit $ac_status); }; }; then 33934 eval "$as_ac_var=yes" 33935else 33936 echo "$as_me: failed program was:" >&5 33937cat conftest.$ac_ext >&5 33938eval "$as_ac_var=no" 33939fi 33940rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 33941fi 33942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 33943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 33944if test `eval echo '${'$as_ac_var'}'` = yes; then 33945 cat >>confdefs.h <<_ACEOF 33946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 33947_ACEOF 33948 33949fi 33950done 33951 33952 33953 33954 33955 33956 33957echo "$as_me:$LINENO: checking for ut_addr in struct utmp" >&5 33958echo $ECHO_N "checking for ut_addr in struct utmp... $ECHO_C" >&6 33959if test "${ac_cv_type_struct_utmp_ut_addr+set}" = set; then 33960 echo $ECHO_N "(cached) $ECHO_C" >&6 33961else 33962 33963cat >conftest.$ac_ext <<_ACEOF 33964#line $LINENO "configure" 33965#include "confdefs.h" 33966#include <utmp.h> 33967#ifdef F77_DUMMY_MAIN 33968# ifdef __cplusplus 33969 extern "C" 33970# endif 33971 int F77_DUMMY_MAIN() { return 1; } 33972#endif 33973int 33974main () 33975{ 33976struct utmp x; x.ut_addr; 33977 ; 33978 return 0; 33979} 33980_ACEOF 33981rm -f conftest.$ac_objext 33982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 33983 (eval $ac_compile) 2>&5 33984 ac_status=$? 33985 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33986 (exit $ac_status); } && 33987 { ac_try='test -s conftest.$ac_objext' 33988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 33989 (eval $ac_try) 2>&5 33990 ac_status=$? 33991 echo "$as_me:$LINENO: \$? = $ac_status" >&5 33992 (exit $ac_status); }; }; then 33993 ac_cv_type_struct_utmp_ut_addr=yes 33994else 33995 echo "$as_me: failed program was:" >&5 33996cat conftest.$ac_ext >&5 33997ac_cv_type_struct_utmp_ut_addr=no 33998fi 33999rm -f conftest.$ac_objext conftest.$ac_ext 34000fi 34001echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_addr" >&5 34002echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_addr" >&6 34003if test "$ac_cv_type_struct_utmp_ut_addr" = yes; then 34004 34005 34006cat >>confdefs.h <<\_ACEOF 34007#define HAVE_STRUCT_UTMP_UT_ADDR 1 34008_ACEOF 34009 34010 34011fi 34012 34013 34014 34015 34016echo "$as_me:$LINENO: checking for ut_host in struct utmp" >&5 34017echo $ECHO_N "checking for ut_host in struct utmp... $ECHO_C" >&6 34018if test "${ac_cv_type_struct_utmp_ut_host+set}" = set; then 34019 echo $ECHO_N "(cached) $ECHO_C" >&6 34020else 34021 34022cat >conftest.$ac_ext <<_ACEOF 34023#line $LINENO "configure" 34024#include "confdefs.h" 34025#include <utmp.h> 34026#ifdef F77_DUMMY_MAIN 34027# ifdef __cplusplus 34028 extern "C" 34029# endif 34030 int F77_DUMMY_MAIN() { return 1; } 34031#endif 34032int 34033main () 34034{ 34035struct utmp x; x.ut_host; 34036 ; 34037 return 0; 34038} 34039_ACEOF 34040rm -f conftest.$ac_objext 34041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34042 (eval $ac_compile) 2>&5 34043 ac_status=$? 34044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34045 (exit $ac_status); } && 34046 { ac_try='test -s conftest.$ac_objext' 34047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34048 (eval $ac_try) 2>&5 34049 ac_status=$? 34050 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34051 (exit $ac_status); }; }; then 34052 ac_cv_type_struct_utmp_ut_host=yes 34053else 34054 echo "$as_me: failed program was:" >&5 34055cat conftest.$ac_ext >&5 34056ac_cv_type_struct_utmp_ut_host=no 34057fi 34058rm -f conftest.$ac_objext conftest.$ac_ext 34059fi 34060echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_host" >&5 34061echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_host" >&6 34062if test "$ac_cv_type_struct_utmp_ut_host" = yes; then 34063 34064 34065cat >>confdefs.h <<\_ACEOF 34066#define HAVE_STRUCT_UTMP_UT_HOST 1 34067_ACEOF 34068 34069 34070fi 34071 34072 34073 34074 34075echo "$as_me:$LINENO: checking for ut_id in struct utmp" >&5 34076echo $ECHO_N "checking for ut_id in struct utmp... $ECHO_C" >&6 34077if test "${ac_cv_type_struct_utmp_ut_id+set}" = set; then 34078 echo $ECHO_N "(cached) $ECHO_C" >&6 34079else 34080 34081cat >conftest.$ac_ext <<_ACEOF 34082#line $LINENO "configure" 34083#include "confdefs.h" 34084#include <utmp.h> 34085#ifdef F77_DUMMY_MAIN 34086# ifdef __cplusplus 34087 extern "C" 34088# endif 34089 int F77_DUMMY_MAIN() { return 1; } 34090#endif 34091int 34092main () 34093{ 34094struct utmp x; x.ut_id; 34095 ; 34096 return 0; 34097} 34098_ACEOF 34099rm -f conftest.$ac_objext 34100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34101 (eval $ac_compile) 2>&5 34102 ac_status=$? 34103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34104 (exit $ac_status); } && 34105 { ac_try='test -s conftest.$ac_objext' 34106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34107 (eval $ac_try) 2>&5 34108 ac_status=$? 34109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34110 (exit $ac_status); }; }; then 34111 ac_cv_type_struct_utmp_ut_id=yes 34112else 34113 echo "$as_me: failed program was:" >&5 34114cat conftest.$ac_ext >&5 34115ac_cv_type_struct_utmp_ut_id=no 34116fi 34117rm -f conftest.$ac_objext conftest.$ac_ext 34118fi 34119echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_id" >&5 34120echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_id" >&6 34121if test "$ac_cv_type_struct_utmp_ut_id" = yes; then 34122 34123 34124cat >>confdefs.h <<\_ACEOF 34125#define HAVE_STRUCT_UTMP_UT_ID 1 34126_ACEOF 34127 34128 34129fi 34130 34131 34132 34133 34134echo "$as_me:$LINENO: checking for ut_pid in struct utmp" >&5 34135echo $ECHO_N "checking for ut_pid in struct utmp... $ECHO_C" >&6 34136if test "${ac_cv_type_struct_utmp_ut_pid+set}" = set; then 34137 echo $ECHO_N "(cached) $ECHO_C" >&6 34138else 34139 34140cat >conftest.$ac_ext <<_ACEOF 34141#line $LINENO "configure" 34142#include "confdefs.h" 34143#include <utmp.h> 34144#ifdef F77_DUMMY_MAIN 34145# ifdef __cplusplus 34146 extern "C" 34147# endif 34148 int F77_DUMMY_MAIN() { return 1; } 34149#endif 34150int 34151main () 34152{ 34153struct utmp x; x.ut_pid; 34154 ; 34155 return 0; 34156} 34157_ACEOF 34158rm -f conftest.$ac_objext 34159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34160 (eval $ac_compile) 2>&5 34161 ac_status=$? 34162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34163 (exit $ac_status); } && 34164 { ac_try='test -s conftest.$ac_objext' 34165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34166 (eval $ac_try) 2>&5 34167 ac_status=$? 34168 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34169 (exit $ac_status); }; }; then 34170 ac_cv_type_struct_utmp_ut_pid=yes 34171else 34172 echo "$as_me: failed program was:" >&5 34173cat conftest.$ac_ext >&5 34174ac_cv_type_struct_utmp_ut_pid=no 34175fi 34176rm -f conftest.$ac_objext conftest.$ac_ext 34177fi 34178echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_pid" >&5 34179echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_pid" >&6 34180if test "$ac_cv_type_struct_utmp_ut_pid" = yes; then 34181 34182 34183cat >>confdefs.h <<\_ACEOF 34184#define HAVE_STRUCT_UTMP_UT_PID 1 34185_ACEOF 34186 34187 34188fi 34189 34190 34191 34192 34193echo "$as_me:$LINENO: checking for ut_type in struct utmp" >&5 34194echo $ECHO_N "checking for ut_type in struct utmp... $ECHO_C" >&6 34195if test "${ac_cv_type_struct_utmp_ut_type+set}" = set; then 34196 echo $ECHO_N "(cached) $ECHO_C" >&6 34197else 34198 34199cat >conftest.$ac_ext <<_ACEOF 34200#line $LINENO "configure" 34201#include "confdefs.h" 34202#include <utmp.h> 34203#ifdef F77_DUMMY_MAIN 34204# ifdef __cplusplus 34205 extern "C" 34206# endif 34207 int F77_DUMMY_MAIN() { return 1; } 34208#endif 34209int 34210main () 34211{ 34212struct utmp x; x.ut_type; 34213 ; 34214 return 0; 34215} 34216_ACEOF 34217rm -f conftest.$ac_objext 34218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34219 (eval $ac_compile) 2>&5 34220 ac_status=$? 34221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34222 (exit $ac_status); } && 34223 { ac_try='test -s conftest.$ac_objext' 34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34225 (eval $ac_try) 2>&5 34226 ac_status=$? 34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34228 (exit $ac_status); }; }; then 34229 ac_cv_type_struct_utmp_ut_type=yes 34230else 34231 echo "$as_me: failed program was:" >&5 34232cat conftest.$ac_ext >&5 34233ac_cv_type_struct_utmp_ut_type=no 34234fi 34235rm -f conftest.$ac_objext conftest.$ac_ext 34236fi 34237echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_type" >&5 34238echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_type" >&6 34239if test "$ac_cv_type_struct_utmp_ut_type" = yes; then 34240 34241 34242cat >>confdefs.h <<\_ACEOF 34243#define HAVE_STRUCT_UTMP_UT_TYPE 1 34244_ACEOF 34245 34246 34247fi 34248 34249 34250 34251 34252echo "$as_me:$LINENO: checking for ut_user in struct utmp" >&5 34253echo $ECHO_N "checking for ut_user in struct utmp... $ECHO_C" >&6 34254if test "${ac_cv_type_struct_utmp_ut_user+set}" = set; then 34255 echo $ECHO_N "(cached) $ECHO_C" >&6 34256else 34257 34258cat >conftest.$ac_ext <<_ACEOF 34259#line $LINENO "configure" 34260#include "confdefs.h" 34261#include <utmp.h> 34262#ifdef F77_DUMMY_MAIN 34263# ifdef __cplusplus 34264 extern "C" 34265# endif 34266 int F77_DUMMY_MAIN() { return 1; } 34267#endif 34268int 34269main () 34270{ 34271struct utmp x; x.ut_user; 34272 ; 34273 return 0; 34274} 34275_ACEOF 34276rm -f conftest.$ac_objext 34277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34278 (eval $ac_compile) 2>&5 34279 ac_status=$? 34280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34281 (exit $ac_status); } && 34282 { ac_try='test -s conftest.$ac_objext' 34283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34284 (eval $ac_try) 2>&5 34285 ac_status=$? 34286 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34287 (exit $ac_status); }; }; then 34288 ac_cv_type_struct_utmp_ut_user=yes 34289else 34290 echo "$as_me: failed program was:" >&5 34291cat conftest.$ac_ext >&5 34292ac_cv_type_struct_utmp_ut_user=no 34293fi 34294rm -f conftest.$ac_objext conftest.$ac_ext 34295fi 34296echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmp_ut_user" >&5 34297echo "${ECHO_T}$ac_cv_type_struct_utmp_ut_user" >&6 34298if test "$ac_cv_type_struct_utmp_ut_user" = yes; then 34299 34300 34301cat >>confdefs.h <<\_ACEOF 34302#define HAVE_STRUCT_UTMP_UT_USER 1 34303_ACEOF 34304 34305 34306fi 34307 34308 34309 34310 34311echo "$as_me:$LINENO: checking for ut_exit in struct utmpx" >&5 34312echo $ECHO_N "checking for ut_exit in struct utmpx... $ECHO_C" >&6 34313if test "${ac_cv_type_struct_utmpx_ut_exit+set}" = set; then 34314 echo $ECHO_N "(cached) $ECHO_C" >&6 34315else 34316 34317cat >conftest.$ac_ext <<_ACEOF 34318#line $LINENO "configure" 34319#include "confdefs.h" 34320#include <utmpx.h> 34321#ifdef F77_DUMMY_MAIN 34322# ifdef __cplusplus 34323 extern "C" 34324# endif 34325 int F77_DUMMY_MAIN() { return 1; } 34326#endif 34327int 34328main () 34329{ 34330struct utmpx x; x.ut_exit; 34331 ; 34332 return 0; 34333} 34334_ACEOF 34335rm -f conftest.$ac_objext 34336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34337 (eval $ac_compile) 2>&5 34338 ac_status=$? 34339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34340 (exit $ac_status); } && 34341 { ac_try='test -s conftest.$ac_objext' 34342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34343 (eval $ac_try) 2>&5 34344 ac_status=$? 34345 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34346 (exit $ac_status); }; }; then 34347 ac_cv_type_struct_utmpx_ut_exit=yes 34348else 34349 echo "$as_me: failed program was:" >&5 34350cat conftest.$ac_ext >&5 34351ac_cv_type_struct_utmpx_ut_exit=no 34352fi 34353rm -f conftest.$ac_objext conftest.$ac_ext 34354fi 34355echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_exit" >&5 34356echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_exit" >&6 34357if test "$ac_cv_type_struct_utmpx_ut_exit" = yes; then 34358 34359 34360cat >>confdefs.h <<\_ACEOF 34361#define HAVE_STRUCT_UTMPX_UT_EXIT 1 34362_ACEOF 34363 34364 34365fi 34366 34367 34368 34369 34370echo "$as_me:$LINENO: checking for ut_syslen in struct utmpx" >&5 34371echo $ECHO_N "checking for ut_syslen in struct utmpx... $ECHO_C" >&6 34372if test "${ac_cv_type_struct_utmpx_ut_syslen+set}" = set; then 34373 echo $ECHO_N "(cached) $ECHO_C" >&6 34374else 34375 34376cat >conftest.$ac_ext <<_ACEOF 34377#line $LINENO "configure" 34378#include "confdefs.h" 34379#include <utmpx.h> 34380#ifdef F77_DUMMY_MAIN 34381# ifdef __cplusplus 34382 extern "C" 34383# endif 34384 int F77_DUMMY_MAIN() { return 1; } 34385#endif 34386int 34387main () 34388{ 34389struct utmpx x; x.ut_syslen; 34390 ; 34391 return 0; 34392} 34393_ACEOF 34394rm -f conftest.$ac_objext 34395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34396 (eval $ac_compile) 2>&5 34397 ac_status=$? 34398 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34399 (exit $ac_status); } && 34400 { ac_try='test -s conftest.$ac_objext' 34401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34402 (eval $ac_try) 2>&5 34403 ac_status=$? 34404 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34405 (exit $ac_status); }; }; then 34406 ac_cv_type_struct_utmpx_ut_syslen=yes 34407else 34408 echo "$as_me: failed program was:" >&5 34409cat conftest.$ac_ext >&5 34410ac_cv_type_struct_utmpx_ut_syslen=no 34411fi 34412rm -f conftest.$ac_objext conftest.$ac_ext 34413fi 34414echo "$as_me:$LINENO: result: $ac_cv_type_struct_utmpx_ut_syslen" >&5 34415echo "${ECHO_T}$ac_cv_type_struct_utmpx_ut_syslen" >&6 34416if test "$ac_cv_type_struct_utmpx_ut_syslen" = yes; then 34417 34418 34419cat >>confdefs.h <<\_ACEOF 34420#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1 34421_ACEOF 34422 34423 34424fi 34425 34426 34427 34428echo "$as_me:$LINENO: checking for int8_t" >&5 34429echo $ECHO_N "checking for int8_t... $ECHO_C" >&6 34430if test "${ac_cv_type_int8_t+set}" = set; then 34431 echo $ECHO_N "(cached) $ECHO_C" >&6 34432else 34433 cat >conftest.$ac_ext <<_ACEOF 34434#line $LINENO "configure" 34435#include "confdefs.h" 34436 34437#ifdef HAVE_INTTYPES_H 34438#include <inttypes.h> 34439#endif 34440#ifdef HAVE_SYS_TYPES_H 34441#include <sys/types.h> 34442#endif 34443#ifdef HAVE_SYS_BITYPES_H 34444#include <sys/bitypes.h> 34445#endif 34446#ifdef HAVE_BIND_BITYPES_H 34447#include <bind/bitypes.h> 34448#endif 34449#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34450#include <netinet/in6_machtypes.h> 34451#endif 34452 34453 34454#ifdef F77_DUMMY_MAIN 34455# ifdef __cplusplus 34456 extern "C" 34457# endif 34458 int F77_DUMMY_MAIN() { return 1; } 34459#endif 34460int 34461main () 34462{ 34463if ((int8_t *) 0) 34464 return 0; 34465if (sizeof (int8_t)) 34466 return 0; 34467 ; 34468 return 0; 34469} 34470_ACEOF 34471rm -f conftest.$ac_objext 34472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34473 (eval $ac_compile) 2>&5 34474 ac_status=$? 34475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34476 (exit $ac_status); } && 34477 { ac_try='test -s conftest.$ac_objext' 34478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34479 (eval $ac_try) 2>&5 34480 ac_status=$? 34481 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34482 (exit $ac_status); }; }; then 34483 ac_cv_type_int8_t=yes 34484else 34485 echo "$as_me: failed program was:" >&5 34486cat conftest.$ac_ext >&5 34487ac_cv_type_int8_t=no 34488fi 34489rm -f conftest.$ac_objext conftest.$ac_ext 34490fi 34491echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5 34492echo "${ECHO_T}$ac_cv_type_int8_t" >&6 34493if test $ac_cv_type_int8_t = yes; then 34494 34495cat >>confdefs.h <<_ACEOF 34496#define HAVE_INT8_T 1 34497_ACEOF 34498 34499 34500fi 34501echo "$as_me:$LINENO: checking for int16_t" >&5 34502echo $ECHO_N "checking for int16_t... $ECHO_C" >&6 34503if test "${ac_cv_type_int16_t+set}" = set; then 34504 echo $ECHO_N "(cached) $ECHO_C" >&6 34505else 34506 cat >conftest.$ac_ext <<_ACEOF 34507#line $LINENO "configure" 34508#include "confdefs.h" 34509 34510#ifdef HAVE_INTTYPES_H 34511#include <inttypes.h> 34512#endif 34513#ifdef HAVE_SYS_TYPES_H 34514#include <sys/types.h> 34515#endif 34516#ifdef HAVE_SYS_BITYPES_H 34517#include <sys/bitypes.h> 34518#endif 34519#ifdef HAVE_BIND_BITYPES_H 34520#include <bind/bitypes.h> 34521#endif 34522#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34523#include <netinet/in6_machtypes.h> 34524#endif 34525 34526 34527#ifdef F77_DUMMY_MAIN 34528# ifdef __cplusplus 34529 extern "C" 34530# endif 34531 int F77_DUMMY_MAIN() { return 1; } 34532#endif 34533int 34534main () 34535{ 34536if ((int16_t *) 0) 34537 return 0; 34538if (sizeof (int16_t)) 34539 return 0; 34540 ; 34541 return 0; 34542} 34543_ACEOF 34544rm -f conftest.$ac_objext 34545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34546 (eval $ac_compile) 2>&5 34547 ac_status=$? 34548 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34549 (exit $ac_status); } && 34550 { ac_try='test -s conftest.$ac_objext' 34551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34552 (eval $ac_try) 2>&5 34553 ac_status=$? 34554 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34555 (exit $ac_status); }; }; then 34556 ac_cv_type_int16_t=yes 34557else 34558 echo "$as_me: failed program was:" >&5 34559cat conftest.$ac_ext >&5 34560ac_cv_type_int16_t=no 34561fi 34562rm -f conftest.$ac_objext conftest.$ac_ext 34563fi 34564echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5 34565echo "${ECHO_T}$ac_cv_type_int16_t" >&6 34566if test $ac_cv_type_int16_t = yes; then 34567 34568cat >>confdefs.h <<_ACEOF 34569#define HAVE_INT16_T 1 34570_ACEOF 34571 34572 34573fi 34574echo "$as_me:$LINENO: checking for int32_t" >&5 34575echo $ECHO_N "checking for int32_t... $ECHO_C" >&6 34576if test "${ac_cv_type_int32_t+set}" = set; then 34577 echo $ECHO_N "(cached) $ECHO_C" >&6 34578else 34579 cat >conftest.$ac_ext <<_ACEOF 34580#line $LINENO "configure" 34581#include "confdefs.h" 34582 34583#ifdef HAVE_INTTYPES_H 34584#include <inttypes.h> 34585#endif 34586#ifdef HAVE_SYS_TYPES_H 34587#include <sys/types.h> 34588#endif 34589#ifdef HAVE_SYS_BITYPES_H 34590#include <sys/bitypes.h> 34591#endif 34592#ifdef HAVE_BIND_BITYPES_H 34593#include <bind/bitypes.h> 34594#endif 34595#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34596#include <netinet/in6_machtypes.h> 34597#endif 34598 34599 34600#ifdef F77_DUMMY_MAIN 34601# ifdef __cplusplus 34602 extern "C" 34603# endif 34604 int F77_DUMMY_MAIN() { return 1; } 34605#endif 34606int 34607main () 34608{ 34609if ((int32_t *) 0) 34610 return 0; 34611if (sizeof (int32_t)) 34612 return 0; 34613 ; 34614 return 0; 34615} 34616_ACEOF 34617rm -f conftest.$ac_objext 34618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34619 (eval $ac_compile) 2>&5 34620 ac_status=$? 34621 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34622 (exit $ac_status); } && 34623 { ac_try='test -s conftest.$ac_objext' 34624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34625 (eval $ac_try) 2>&5 34626 ac_status=$? 34627 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34628 (exit $ac_status); }; }; then 34629 ac_cv_type_int32_t=yes 34630else 34631 echo "$as_me: failed program was:" >&5 34632cat conftest.$ac_ext >&5 34633ac_cv_type_int32_t=no 34634fi 34635rm -f conftest.$ac_objext conftest.$ac_ext 34636fi 34637echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5 34638echo "${ECHO_T}$ac_cv_type_int32_t" >&6 34639if test $ac_cv_type_int32_t = yes; then 34640 34641cat >>confdefs.h <<_ACEOF 34642#define HAVE_INT32_T 1 34643_ACEOF 34644 34645 34646fi 34647echo "$as_me:$LINENO: checking for int64_t" >&5 34648echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 34649if test "${ac_cv_type_int64_t+set}" = set; then 34650 echo $ECHO_N "(cached) $ECHO_C" >&6 34651else 34652 cat >conftest.$ac_ext <<_ACEOF 34653#line $LINENO "configure" 34654#include "confdefs.h" 34655 34656#ifdef HAVE_INTTYPES_H 34657#include <inttypes.h> 34658#endif 34659#ifdef HAVE_SYS_TYPES_H 34660#include <sys/types.h> 34661#endif 34662#ifdef HAVE_SYS_BITYPES_H 34663#include <sys/bitypes.h> 34664#endif 34665#ifdef HAVE_BIND_BITYPES_H 34666#include <bind/bitypes.h> 34667#endif 34668#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34669#include <netinet/in6_machtypes.h> 34670#endif 34671 34672 34673#ifdef F77_DUMMY_MAIN 34674# ifdef __cplusplus 34675 extern "C" 34676# endif 34677 int F77_DUMMY_MAIN() { return 1; } 34678#endif 34679int 34680main () 34681{ 34682if ((int64_t *) 0) 34683 return 0; 34684if (sizeof (int64_t)) 34685 return 0; 34686 ; 34687 return 0; 34688} 34689_ACEOF 34690rm -f conftest.$ac_objext 34691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34692 (eval $ac_compile) 2>&5 34693 ac_status=$? 34694 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34695 (exit $ac_status); } && 34696 { ac_try='test -s conftest.$ac_objext' 34697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34698 (eval $ac_try) 2>&5 34699 ac_status=$? 34700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34701 (exit $ac_status); }; }; then 34702 ac_cv_type_int64_t=yes 34703else 34704 echo "$as_me: failed program was:" >&5 34705cat conftest.$ac_ext >&5 34706ac_cv_type_int64_t=no 34707fi 34708rm -f conftest.$ac_objext conftest.$ac_ext 34709fi 34710echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 34711echo "${ECHO_T}$ac_cv_type_int64_t" >&6 34712if test $ac_cv_type_int64_t = yes; then 34713 34714cat >>confdefs.h <<_ACEOF 34715#define HAVE_INT64_T 1 34716_ACEOF 34717 34718 34719fi 34720echo "$as_me:$LINENO: checking for u_int8_t" >&5 34721echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6 34722if test "${ac_cv_type_u_int8_t+set}" = set; then 34723 echo $ECHO_N "(cached) $ECHO_C" >&6 34724else 34725 cat >conftest.$ac_ext <<_ACEOF 34726#line $LINENO "configure" 34727#include "confdefs.h" 34728 34729#ifdef HAVE_INTTYPES_H 34730#include <inttypes.h> 34731#endif 34732#ifdef HAVE_SYS_TYPES_H 34733#include <sys/types.h> 34734#endif 34735#ifdef HAVE_SYS_BITYPES_H 34736#include <sys/bitypes.h> 34737#endif 34738#ifdef HAVE_BIND_BITYPES_H 34739#include <bind/bitypes.h> 34740#endif 34741#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34742#include <netinet/in6_machtypes.h> 34743#endif 34744 34745 34746#ifdef F77_DUMMY_MAIN 34747# ifdef __cplusplus 34748 extern "C" 34749# endif 34750 int F77_DUMMY_MAIN() { return 1; } 34751#endif 34752int 34753main () 34754{ 34755if ((u_int8_t *) 0) 34756 return 0; 34757if (sizeof (u_int8_t)) 34758 return 0; 34759 ; 34760 return 0; 34761} 34762_ACEOF 34763rm -f conftest.$ac_objext 34764if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34765 (eval $ac_compile) 2>&5 34766 ac_status=$? 34767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34768 (exit $ac_status); } && 34769 { ac_try='test -s conftest.$ac_objext' 34770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34771 (eval $ac_try) 2>&5 34772 ac_status=$? 34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34774 (exit $ac_status); }; }; then 34775 ac_cv_type_u_int8_t=yes 34776else 34777 echo "$as_me: failed program was:" >&5 34778cat conftest.$ac_ext >&5 34779ac_cv_type_u_int8_t=no 34780fi 34781rm -f conftest.$ac_objext conftest.$ac_ext 34782fi 34783echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5 34784echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6 34785if test $ac_cv_type_u_int8_t = yes; then 34786 34787cat >>confdefs.h <<_ACEOF 34788#define HAVE_U_INT8_T 1 34789_ACEOF 34790 34791 34792fi 34793echo "$as_me:$LINENO: checking for u_int16_t" >&5 34794echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6 34795if test "${ac_cv_type_u_int16_t+set}" = set; then 34796 echo $ECHO_N "(cached) $ECHO_C" >&6 34797else 34798 cat >conftest.$ac_ext <<_ACEOF 34799#line $LINENO "configure" 34800#include "confdefs.h" 34801 34802#ifdef HAVE_INTTYPES_H 34803#include <inttypes.h> 34804#endif 34805#ifdef HAVE_SYS_TYPES_H 34806#include <sys/types.h> 34807#endif 34808#ifdef HAVE_SYS_BITYPES_H 34809#include <sys/bitypes.h> 34810#endif 34811#ifdef HAVE_BIND_BITYPES_H 34812#include <bind/bitypes.h> 34813#endif 34814#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34815#include <netinet/in6_machtypes.h> 34816#endif 34817 34818 34819#ifdef F77_DUMMY_MAIN 34820# ifdef __cplusplus 34821 extern "C" 34822# endif 34823 int F77_DUMMY_MAIN() { return 1; } 34824#endif 34825int 34826main () 34827{ 34828if ((u_int16_t *) 0) 34829 return 0; 34830if (sizeof (u_int16_t)) 34831 return 0; 34832 ; 34833 return 0; 34834} 34835_ACEOF 34836rm -f conftest.$ac_objext 34837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34838 (eval $ac_compile) 2>&5 34839 ac_status=$? 34840 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34841 (exit $ac_status); } && 34842 { ac_try='test -s conftest.$ac_objext' 34843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34844 (eval $ac_try) 2>&5 34845 ac_status=$? 34846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34847 (exit $ac_status); }; }; then 34848 ac_cv_type_u_int16_t=yes 34849else 34850 echo "$as_me: failed program was:" >&5 34851cat conftest.$ac_ext >&5 34852ac_cv_type_u_int16_t=no 34853fi 34854rm -f conftest.$ac_objext conftest.$ac_ext 34855fi 34856echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5 34857echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6 34858if test $ac_cv_type_u_int16_t = yes; then 34859 34860cat >>confdefs.h <<_ACEOF 34861#define HAVE_U_INT16_T 1 34862_ACEOF 34863 34864 34865fi 34866echo "$as_me:$LINENO: checking for u_int32_t" >&5 34867echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 34868if test "${ac_cv_type_u_int32_t+set}" = set; then 34869 echo $ECHO_N "(cached) $ECHO_C" >&6 34870else 34871 cat >conftest.$ac_ext <<_ACEOF 34872#line $LINENO "configure" 34873#include "confdefs.h" 34874 34875#ifdef HAVE_INTTYPES_H 34876#include <inttypes.h> 34877#endif 34878#ifdef HAVE_SYS_TYPES_H 34879#include <sys/types.h> 34880#endif 34881#ifdef HAVE_SYS_BITYPES_H 34882#include <sys/bitypes.h> 34883#endif 34884#ifdef HAVE_BIND_BITYPES_H 34885#include <bind/bitypes.h> 34886#endif 34887#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34888#include <netinet/in6_machtypes.h> 34889#endif 34890 34891 34892#ifdef F77_DUMMY_MAIN 34893# ifdef __cplusplus 34894 extern "C" 34895# endif 34896 int F77_DUMMY_MAIN() { return 1; } 34897#endif 34898int 34899main () 34900{ 34901if ((u_int32_t *) 0) 34902 return 0; 34903if (sizeof (u_int32_t)) 34904 return 0; 34905 ; 34906 return 0; 34907} 34908_ACEOF 34909rm -f conftest.$ac_objext 34910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34911 (eval $ac_compile) 2>&5 34912 ac_status=$? 34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34914 (exit $ac_status); } && 34915 { ac_try='test -s conftest.$ac_objext' 34916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34917 (eval $ac_try) 2>&5 34918 ac_status=$? 34919 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34920 (exit $ac_status); }; }; then 34921 ac_cv_type_u_int32_t=yes 34922else 34923 echo "$as_me: failed program was:" >&5 34924cat conftest.$ac_ext >&5 34925ac_cv_type_u_int32_t=no 34926fi 34927rm -f conftest.$ac_objext conftest.$ac_ext 34928fi 34929echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 34930echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 34931if test $ac_cv_type_u_int32_t = yes; then 34932 34933cat >>confdefs.h <<_ACEOF 34934#define HAVE_U_INT32_T 1 34935_ACEOF 34936 34937 34938fi 34939echo "$as_me:$LINENO: checking for u_int64_t" >&5 34940echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 34941if test "${ac_cv_type_u_int64_t+set}" = set; then 34942 echo $ECHO_N "(cached) $ECHO_C" >&6 34943else 34944 cat >conftest.$ac_ext <<_ACEOF 34945#line $LINENO "configure" 34946#include "confdefs.h" 34947 34948#ifdef HAVE_INTTYPES_H 34949#include <inttypes.h> 34950#endif 34951#ifdef HAVE_SYS_TYPES_H 34952#include <sys/types.h> 34953#endif 34954#ifdef HAVE_SYS_BITYPES_H 34955#include <sys/bitypes.h> 34956#endif 34957#ifdef HAVE_BIND_BITYPES_H 34958#include <bind/bitypes.h> 34959#endif 34960#ifdef HAVE_NETINET_IN6_MACHTYPES_H 34961#include <netinet/in6_machtypes.h> 34962#endif 34963 34964 34965#ifdef F77_DUMMY_MAIN 34966# ifdef __cplusplus 34967 extern "C" 34968# endif 34969 int F77_DUMMY_MAIN() { return 1; } 34970#endif 34971int 34972main () 34973{ 34974if ((u_int64_t *) 0) 34975 return 0; 34976if (sizeof (u_int64_t)) 34977 return 0; 34978 ; 34979 return 0; 34980} 34981_ACEOF 34982rm -f conftest.$ac_objext 34983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 34984 (eval $ac_compile) 2>&5 34985 ac_status=$? 34986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34987 (exit $ac_status); } && 34988 { ac_try='test -s conftest.$ac_objext' 34989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 34990 (eval $ac_try) 2>&5 34991 ac_status=$? 34992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 34993 (exit $ac_status); }; }; then 34994 ac_cv_type_u_int64_t=yes 34995else 34996 echo "$as_me: failed program was:" >&5 34997cat conftest.$ac_ext >&5 34998ac_cv_type_u_int64_t=no 34999fi 35000rm -f conftest.$ac_objext conftest.$ac_ext 35001fi 35002echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 35003echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 35004if test $ac_cv_type_u_int64_t = yes; then 35005 35006cat >>confdefs.h <<_ACEOF 35007#define HAVE_U_INT64_T 1 35008_ACEOF 35009 35010 35011fi 35012echo "$as_me:$LINENO: checking for uint8_t" >&5 35013echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6 35014if test "${ac_cv_type_uint8_t+set}" = set; then 35015 echo $ECHO_N "(cached) $ECHO_C" >&6 35016else 35017 cat >conftest.$ac_ext <<_ACEOF 35018#line $LINENO "configure" 35019#include "confdefs.h" 35020 35021#ifdef HAVE_INTTYPES_H 35022#include <inttypes.h> 35023#endif 35024#ifdef HAVE_SYS_TYPES_H 35025#include <sys/types.h> 35026#endif 35027#ifdef HAVE_SYS_BITYPES_H 35028#include <sys/bitypes.h> 35029#endif 35030#ifdef HAVE_BIND_BITYPES_H 35031#include <bind/bitypes.h> 35032#endif 35033#ifdef HAVE_NETINET_IN6_MACHTYPES_H 35034#include <netinet/in6_machtypes.h> 35035#endif 35036 35037 35038#ifdef F77_DUMMY_MAIN 35039# ifdef __cplusplus 35040 extern "C" 35041# endif 35042 int F77_DUMMY_MAIN() { return 1; } 35043#endif 35044int 35045main () 35046{ 35047if ((uint8_t *) 0) 35048 return 0; 35049if (sizeof (uint8_t)) 35050 return 0; 35051 ; 35052 return 0; 35053} 35054_ACEOF 35055rm -f conftest.$ac_objext 35056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35057 (eval $ac_compile) 2>&5 35058 ac_status=$? 35059 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35060 (exit $ac_status); } && 35061 { ac_try='test -s conftest.$ac_objext' 35062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35063 (eval $ac_try) 2>&5 35064 ac_status=$? 35065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35066 (exit $ac_status); }; }; then 35067 ac_cv_type_uint8_t=yes 35068else 35069 echo "$as_me: failed program was:" >&5 35070cat conftest.$ac_ext >&5 35071ac_cv_type_uint8_t=no 35072fi 35073rm -f conftest.$ac_objext conftest.$ac_ext 35074fi 35075echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5 35076echo "${ECHO_T}$ac_cv_type_uint8_t" >&6 35077if test $ac_cv_type_uint8_t = yes; then 35078 35079cat >>confdefs.h <<_ACEOF 35080#define HAVE_UINT8_T 1 35081_ACEOF 35082 35083 35084fi 35085echo "$as_me:$LINENO: checking for uint16_t" >&5 35086echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6 35087if test "${ac_cv_type_uint16_t+set}" = set; then 35088 echo $ECHO_N "(cached) $ECHO_C" >&6 35089else 35090 cat >conftest.$ac_ext <<_ACEOF 35091#line $LINENO "configure" 35092#include "confdefs.h" 35093 35094#ifdef HAVE_INTTYPES_H 35095#include <inttypes.h> 35096#endif 35097#ifdef HAVE_SYS_TYPES_H 35098#include <sys/types.h> 35099#endif 35100#ifdef HAVE_SYS_BITYPES_H 35101#include <sys/bitypes.h> 35102#endif 35103#ifdef HAVE_BIND_BITYPES_H 35104#include <bind/bitypes.h> 35105#endif 35106#ifdef HAVE_NETINET_IN6_MACHTYPES_H 35107#include <netinet/in6_machtypes.h> 35108#endif 35109 35110 35111#ifdef F77_DUMMY_MAIN 35112# ifdef __cplusplus 35113 extern "C" 35114# endif 35115 int F77_DUMMY_MAIN() { return 1; } 35116#endif 35117int 35118main () 35119{ 35120if ((uint16_t *) 0) 35121 return 0; 35122if (sizeof (uint16_t)) 35123 return 0; 35124 ; 35125 return 0; 35126} 35127_ACEOF 35128rm -f conftest.$ac_objext 35129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35130 (eval $ac_compile) 2>&5 35131 ac_status=$? 35132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35133 (exit $ac_status); } && 35134 { ac_try='test -s conftest.$ac_objext' 35135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35136 (eval $ac_try) 2>&5 35137 ac_status=$? 35138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35139 (exit $ac_status); }; }; then 35140 ac_cv_type_uint16_t=yes 35141else 35142 echo "$as_me: failed program was:" >&5 35143cat conftest.$ac_ext >&5 35144ac_cv_type_uint16_t=no 35145fi 35146rm -f conftest.$ac_objext conftest.$ac_ext 35147fi 35148echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5 35149echo "${ECHO_T}$ac_cv_type_uint16_t" >&6 35150if test $ac_cv_type_uint16_t = yes; then 35151 35152cat >>confdefs.h <<_ACEOF 35153#define HAVE_UINT16_T 1 35154_ACEOF 35155 35156 35157fi 35158echo "$as_me:$LINENO: checking for uint32_t" >&5 35159echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 35160if test "${ac_cv_type_uint32_t+set}" = set; then 35161 echo $ECHO_N "(cached) $ECHO_C" >&6 35162else 35163 cat >conftest.$ac_ext <<_ACEOF 35164#line $LINENO "configure" 35165#include "confdefs.h" 35166 35167#ifdef HAVE_INTTYPES_H 35168#include <inttypes.h> 35169#endif 35170#ifdef HAVE_SYS_TYPES_H 35171#include <sys/types.h> 35172#endif 35173#ifdef HAVE_SYS_BITYPES_H 35174#include <sys/bitypes.h> 35175#endif 35176#ifdef HAVE_BIND_BITYPES_H 35177#include <bind/bitypes.h> 35178#endif 35179#ifdef HAVE_NETINET_IN6_MACHTYPES_H 35180#include <netinet/in6_machtypes.h> 35181#endif 35182 35183 35184#ifdef F77_DUMMY_MAIN 35185# ifdef __cplusplus 35186 extern "C" 35187# endif 35188 int F77_DUMMY_MAIN() { return 1; } 35189#endif 35190int 35191main () 35192{ 35193if ((uint32_t *) 0) 35194 return 0; 35195if (sizeof (uint32_t)) 35196 return 0; 35197 ; 35198 return 0; 35199} 35200_ACEOF 35201rm -f conftest.$ac_objext 35202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35203 (eval $ac_compile) 2>&5 35204 ac_status=$? 35205 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35206 (exit $ac_status); } && 35207 { ac_try='test -s conftest.$ac_objext' 35208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35209 (eval $ac_try) 2>&5 35210 ac_status=$? 35211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35212 (exit $ac_status); }; }; then 35213 ac_cv_type_uint32_t=yes 35214else 35215 echo "$as_me: failed program was:" >&5 35216cat conftest.$ac_ext >&5 35217ac_cv_type_uint32_t=no 35218fi 35219rm -f conftest.$ac_objext conftest.$ac_ext 35220fi 35221echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 35222echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 35223if test $ac_cv_type_uint32_t = yes; then 35224 35225cat >>confdefs.h <<_ACEOF 35226#define HAVE_UINT32_T 1 35227_ACEOF 35228 35229 35230fi 35231echo "$as_me:$LINENO: checking for uint64_t" >&5 35232echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 35233if test "${ac_cv_type_uint64_t+set}" = set; then 35234 echo $ECHO_N "(cached) $ECHO_C" >&6 35235else 35236 cat >conftest.$ac_ext <<_ACEOF 35237#line $LINENO "configure" 35238#include "confdefs.h" 35239 35240#ifdef HAVE_INTTYPES_H 35241#include <inttypes.h> 35242#endif 35243#ifdef HAVE_SYS_TYPES_H 35244#include <sys/types.h> 35245#endif 35246#ifdef HAVE_SYS_BITYPES_H 35247#include <sys/bitypes.h> 35248#endif 35249#ifdef HAVE_BIND_BITYPES_H 35250#include <bind/bitypes.h> 35251#endif 35252#ifdef HAVE_NETINET_IN6_MACHTYPES_H 35253#include <netinet/in6_machtypes.h> 35254#endif 35255 35256 35257#ifdef F77_DUMMY_MAIN 35258# ifdef __cplusplus 35259 extern "C" 35260# endif 35261 int F77_DUMMY_MAIN() { return 1; } 35262#endif 35263int 35264main () 35265{ 35266if ((uint64_t *) 0) 35267 return 0; 35268if (sizeof (uint64_t)) 35269 return 0; 35270 ; 35271 return 0; 35272} 35273_ACEOF 35274rm -f conftest.$ac_objext 35275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35276 (eval $ac_compile) 2>&5 35277 ac_status=$? 35278 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35279 (exit $ac_status); } && 35280 { ac_try='test -s conftest.$ac_objext' 35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35282 (eval $ac_try) 2>&5 35283 ac_status=$? 35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35285 (exit $ac_status); }; }; then 35286 ac_cv_type_uint64_t=yes 35287else 35288 echo "$as_me: failed program was:" >&5 35289cat conftest.$ac_ext >&5 35290ac_cv_type_uint64_t=no 35291fi 35292rm -f conftest.$ac_objext conftest.$ac_ext 35293fi 35294echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 35295echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 35296if test $ac_cv_type_uint64_t = yes; then 35297 35298cat >>confdefs.h <<_ACEOF 35299#define HAVE_UINT64_T 1 35300_ACEOF 35301 35302 35303fi 35304 35305 35306 35307 35308 35309 35310echo "$as_me:$LINENO: checking for el_init" >&5 35311echo $ECHO_N "checking for el_init... $ECHO_C" >&6 35312if test "${ac_cv_funclib_el_init+set}" = set; then 35313 echo $ECHO_N "(cached) $ECHO_C" >&6 35314else 35315 35316if eval "test \"\$ac_cv_func_el_init\" != yes" ; then 35317 ac_save_LIBS="$LIBS" 35318 for ac_lib in "" edit; do 35319 case "$ac_lib" in 35320 "") ;; 35321 yes) ac_lib="" ;; 35322 no) continue ;; 35323 -l*) ;; 35324 *) ac_lib="-l$ac_lib" ;; 35325 esac 35326 LIBS=" $ac_lib $LIB_tgetent $ac_save_LIBS" 35327 cat >conftest.$ac_ext <<_ACEOF 35328#line $LINENO "configure" 35329#include "confdefs.h" 35330 35331#ifdef F77_DUMMY_MAIN 35332# ifdef __cplusplus 35333 extern "C" 35334# endif 35335 int F77_DUMMY_MAIN() { return 1; } 35336#endif 35337int 35338main () 35339{ 35340el_init() 35341 ; 35342 return 0; 35343} 35344_ACEOF 35345rm -f conftest.$ac_objext conftest$ac_exeext 35346if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35347 (eval $ac_link) 2>&5 35348 ac_status=$? 35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35350 (exit $ac_status); } && 35351 { ac_try='test -s conftest$ac_exeext' 35352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35353 (eval $ac_try) 2>&5 35354 ac_status=$? 35355 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35356 (exit $ac_status); }; }; then 35357 eval "if test -n \"$ac_lib\";then ac_cv_funclib_el_init=$ac_lib; else ac_cv_funclib_el_init=yes; fi";break 35358else 35359 echo "$as_me: failed program was:" >&5 35360cat conftest.$ac_ext >&5 35361fi 35362rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35363 done 35364 eval "ac_cv_funclib_el_init=\${ac_cv_funclib_el_init-no}" 35365 LIBS="$ac_save_LIBS" 35366fi 35367 35368fi 35369 35370 35371eval "ac_res=\$ac_cv_funclib_el_init" 35372 35373if false; then 35374 35375for ac_func in el_init 35376do 35377as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 35378echo "$as_me:$LINENO: checking for $ac_func" >&5 35379echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 35380if eval "test \"\${$as_ac_var+set}\" = set"; then 35381 echo $ECHO_N "(cached) $ECHO_C" >&6 35382else 35383 cat >conftest.$ac_ext <<_ACEOF 35384#line $LINENO "configure" 35385#include "confdefs.h" 35386/* System header to define __stub macros and hopefully few prototypes, 35387 which can conflict with char $ac_func (); below. */ 35388#include <assert.h> 35389/* Override any gcc2 internal prototype to avoid an error. */ 35390#ifdef __cplusplus 35391extern "C" 35392#endif 35393/* We use char because int might match the return type of a gcc2 35394 builtin and then its argument prototype would still apply. */ 35395char $ac_func (); 35396char (*f) (); 35397 35398#ifdef F77_DUMMY_MAIN 35399# ifdef __cplusplus 35400 extern "C" 35401# endif 35402 int F77_DUMMY_MAIN() { return 1; } 35403#endif 35404int 35405main () 35406{ 35407/* The GNU C library defines this for functions which it implements 35408 to always fail with ENOSYS. Some functions are actually named 35409 something starting with __ and the normal name is an alias. */ 35410#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 35411choke me 35412#else 35413f = $ac_func; 35414#endif 35415 35416 ; 35417 return 0; 35418} 35419_ACEOF 35420rm -f conftest.$ac_objext conftest$ac_exeext 35421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35422 (eval $ac_link) 2>&5 35423 ac_status=$? 35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35425 (exit $ac_status); } && 35426 { ac_try='test -s conftest$ac_exeext' 35427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35428 (eval $ac_try) 2>&5 35429 ac_status=$? 35430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35431 (exit $ac_status); }; }; then 35432 eval "$as_ac_var=yes" 35433else 35434 echo "$as_me: failed program was:" >&5 35435cat conftest.$ac_ext >&5 35436eval "$as_ac_var=no" 35437fi 35438rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35439fi 35440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 35441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 35442if test `eval echo '${'$as_ac_var'}'` = yes; then 35443 cat >>confdefs.h <<_ACEOF 35444#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 35445_ACEOF 35446 35447fi 35448done 35449 35450fi 35451# el_init 35452eval "ac_tr_func=HAVE_`echo el_init | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 35453eval "ac_tr_lib=HAVE_LIB`echo $ac_res | sed -e 's/-l//' | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`" 35454eval "LIB_el_init=$ac_res" 35455 35456case "$ac_res" in 35457 yes) 35458 eval "ac_cv_func_el_init=yes" 35459 eval "LIB_el_init=" 35460 cat >>confdefs.h <<_ACEOF 35461#define $ac_tr_func 1 35462_ACEOF 35463 35464 echo "$as_me:$LINENO: result: yes" >&5 35465echo "${ECHO_T}yes" >&6 35466 ;; 35467 no) 35468 eval "ac_cv_func_el_init=no" 35469 eval "LIB_el_init=" 35470 echo "$as_me:$LINENO: result: no" >&5 35471echo "${ECHO_T}no" >&6 35472 ;; 35473 *) 35474 eval "ac_cv_func_el_init=yes" 35475 eval "ac_cv_lib_`echo "$ac_res" | sed 's/-l//'`=yes" 35476 cat >>confdefs.h <<_ACEOF 35477#define $ac_tr_func 1 35478_ACEOF 35479 35480 cat >>confdefs.h <<_ACEOF 35481#define $ac_tr_lib 1 35482_ACEOF 35483 35484 echo "$as_me:$LINENO: result: yes, in $ac_res" >&5 35485echo "${ECHO_T}yes, in $ac_res" >&6 35486 ;; 35487esac 35488 35489 35490if test "$ac_cv_func_el_init" = yes ; then 35491 echo "$as_me:$LINENO: checking for four argument el_init" >&5 35492echo $ECHO_N "checking for four argument el_init... $ECHO_C" >&6 35493if test "${ac_cv_func_el_init_four+set}" = set; then 35494 echo $ECHO_N "(cached) $ECHO_C" >&6 35495else 35496 35497 cat >conftest.$ac_ext <<_ACEOF 35498#line $LINENO "configure" 35499#include "confdefs.h" 35500#include <stdio.h> 35501 #include <histedit.h> 35502#ifdef F77_DUMMY_MAIN 35503# ifdef __cplusplus 35504 extern "C" 35505# endif 35506 int F77_DUMMY_MAIN() { return 1; } 35507#endif 35508int 35509main () 35510{ 35511el_init("", NULL, NULL, NULL); 35512 ; 35513 return 0; 35514} 35515_ACEOF 35516rm -f conftest.$ac_objext 35517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 35518 (eval $ac_compile) 2>&5 35519 ac_status=$? 35520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35521 (exit $ac_status); } && 35522 { ac_try='test -s conftest.$ac_objext' 35523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35524 (eval $ac_try) 2>&5 35525 ac_status=$? 35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35527 (exit $ac_status); }; }; then 35528 ac_cv_func_el_init_four=yes 35529else 35530 echo "$as_me: failed program was:" >&5 35531cat conftest.$ac_ext >&5 35532ac_cv_func_el_init_four=no 35533fi 35534rm -f conftest.$ac_objext conftest.$ac_ext 35535fi 35536echo "$as_me:$LINENO: result: $ac_cv_func_el_init_four" >&5 35537echo "${ECHO_T}$ac_cv_func_el_init_four" >&6 35538 if test "$ac_cv_func_el_init_four" = yes; then 35539 35540cat >>confdefs.h <<\_ACEOF 35541#define HAVE_FOUR_VALUED_EL_INIT 1 35542_ACEOF 35543 35544 fi 35545fi 35546 35547 35548ac_foo=no 35549if test "$with_readline" = yes; then 35550 : 35551elif test "$ac_cv_func_readline" = yes; then 35552 : 35553elif test "$ac_cv_func_el_init" = yes; then 35554 ac_foo=yes 35555 LIB_readline="\$(top_builddir)/lib/editline/libel_compat.la \$(LIB_el_init) \$(LIB_tgetent)" 35556else 35557 LIB_readline="\$(top_builddir)/lib/editline/libeditline.la \$(LIB_tgetent)" 35558fi 35559 35560 35561if test "$ac_foo" = yes; then 35562 el_compat_TRUE= 35563 el_compat_FALSE='#' 35564else 35565 el_compat_TRUE='#' 35566 el_compat_FALSE= 35567fi 35568 35569 35570cat >>confdefs.h <<\_ACEOF 35571#define HAVE_READLINE 1 35572_ACEOF 35573 35574 35575 35576 35577 35578cat >>confdefs.h <<\_ACEOF 35579#define AUTHENTICATION 1 35580_ACEOF 35581 35582cat >>confdefs.h <<\_ACEOF 35583#define ENCRYPTION 1 35584_ACEOF 35585 35586cat >>confdefs.h <<\_ACEOF 35587#define DES_ENCRYPTION 1 35588_ACEOF 35589 35590cat >>confdefs.h <<\_ACEOF 35591#define DIAGNOSTICS 1 35592_ACEOF 35593 35594cat >>confdefs.h <<\_ACEOF 35595#define OLD_ENVIRON 1 35596_ACEOF 35597if false; then 35598 35599cat >>confdefs.h <<\_ACEOF 35600#define ENV_HACK 1 35601_ACEOF 35602 35603fi 35604 35605# Simple test for streamspty, based on the existance of getmsg(), alas 35606# this breaks on SunOS4 which have streams but BSD-like ptys 35607# 35608# And also something wierd has happend with dec-osf1, fallback to bsd-ptys 35609 35610case "$host" in 35611*-*-aix3*|*-*-sunos4*|*-*-osf*|*-*-hpux1[01]*) 35612 ;; 35613*) 35614 echo "$as_me:$LINENO: checking for getmsg" >&5 35615echo $ECHO_N "checking for getmsg... $ECHO_C" >&6 35616if test "${ac_cv_func_getmsg+set}" = set; then 35617 echo $ECHO_N "(cached) $ECHO_C" >&6 35618else 35619 cat >conftest.$ac_ext <<_ACEOF 35620#line $LINENO "configure" 35621#include "confdefs.h" 35622/* System header to define __stub macros and hopefully few prototypes, 35623 which can conflict with char getmsg (); below. */ 35624#include <assert.h> 35625/* Override any gcc2 internal prototype to avoid an error. */ 35626#ifdef __cplusplus 35627extern "C" 35628#endif 35629/* We use char because int might match the return type of a gcc2 35630 builtin and then its argument prototype would still apply. */ 35631char getmsg (); 35632char (*f) (); 35633 35634#ifdef F77_DUMMY_MAIN 35635# ifdef __cplusplus 35636 extern "C" 35637# endif 35638 int F77_DUMMY_MAIN() { return 1; } 35639#endif 35640int 35641main () 35642{ 35643/* The GNU C library defines this for functions which it implements 35644 to always fail with ENOSYS. Some functions are actually named 35645 something starting with __ and the normal name is an alias. */ 35646#if defined (__stub_getmsg) || defined (__stub___getmsg) 35647choke me 35648#else 35649f = getmsg; 35650#endif 35651 35652 ; 35653 return 0; 35654} 35655_ACEOF 35656rm -f conftest.$ac_objext conftest$ac_exeext 35657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35658 (eval $ac_link) 2>&5 35659 ac_status=$? 35660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35661 (exit $ac_status); } && 35662 { ac_try='test -s conftest$ac_exeext' 35663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35664 (eval $ac_try) 2>&5 35665 ac_status=$? 35666 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35667 (exit $ac_status); }; }; then 35668 ac_cv_func_getmsg=yes 35669else 35670 echo "$as_me: failed program was:" >&5 35671cat conftest.$ac_ext >&5 35672ac_cv_func_getmsg=no 35673fi 35674rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35675fi 35676echo "$as_me:$LINENO: result: $ac_cv_func_getmsg" >&5 35677echo "${ECHO_T}$ac_cv_func_getmsg" >&6 35678 35679 if test "$ac_cv_func_getmsg" = "yes"; then 35680 echo "$as_me:$LINENO: checking if getmsg works" >&5 35681echo $ECHO_N "checking if getmsg works... $ECHO_C" >&6 35682if test "${ac_cv_func_getmsg_works+set}" = set; then 35683 echo $ECHO_N "(cached) $ECHO_C" >&6 35684else 35685 if test "$cross_compiling" = yes; then 35686 ac_cv_func_getmsg_works=no 35687else 35688 cat >conftest.$ac_ext <<_ACEOF 35689#line $LINENO "configure" 35690#include "confdefs.h" 35691 35692 #include <stdio.h> 35693 #include <errno.h> 35694 35695 int main() 35696 { 35697 int ret; 35698 ret = getmsg(open("/dev/null", 0), NULL, NULL, NULL); 35699 if(ret < 0 && errno == ENOSYS) 35700 return 1; 35701 return 0; 35702 } 35703 35704_ACEOF 35705rm -f conftest$ac_exeext 35706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35707 (eval $ac_link) 2>&5 35708 ac_status=$? 35709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35710 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 35711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35712 (eval $ac_try) 2>&5 35713 ac_status=$? 35714 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35715 (exit $ac_status); }; }; then 35716 ac_cv_func_getmsg_works=yes 35717else 35718 echo "$as_me: program exited with status $ac_status" >&5 35719echo "$as_me: failed program was:" >&5 35720cat conftest.$ac_ext >&5 35721( exit $ac_status ) 35722ac_cv_func_getmsg_works=no 35723fi 35724rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 35725fi 35726fi 35727echo "$as_me:$LINENO: result: $ac_cv_func_getmsg_works" >&5 35728echo "${ECHO_T}$ac_cv_func_getmsg_works" >&6 35729 if test "$ac_cv_func_getmsg_works" = "yes"; then 35730 35731cat >>confdefs.h <<\_ACEOF 35732#define HAVE_GETMSG 1 35733_ACEOF 35734 35735 35736cat >>confdefs.h <<\_ACEOF 35737#define STREAMSPTY 1 35738_ACEOF 35739 35740 fi 35741 fi 35742 ;; 35743esac 35744 35745 35746 35747 35748 35749 35750 35751# Extract the first word of "compile_et", so it can be a program name with args. 35752set dummy compile_et; ac_word=$2 35753echo "$as_me:$LINENO: checking for $ac_word" >&5 35754echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 35755if test "${ac_cv_prog_COMPILE_ET+set}" = set; then 35756 echo $ECHO_N "(cached) $ECHO_C" >&6 35757else 35758 if test -n "$COMPILE_ET"; then 35759 ac_cv_prog_COMPILE_ET="$COMPILE_ET" # Let the user override the test. 35760else 35761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35762for as_dir in $PATH 35763do 35764 IFS=$as_save_IFS 35765 test -z "$as_dir" && as_dir=. 35766 for ac_exec_ext in '' $ac_executable_extensions; do 35767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35768 ac_cv_prog_COMPILE_ET="compile_et" 35769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 35770 break 2 35771 fi 35772done 35773done 35774 35775fi 35776fi 35777COMPILE_ET=$ac_cv_prog_COMPILE_ET 35778if test -n "$COMPILE_ET"; then 35779 echo "$as_me:$LINENO: result: $COMPILE_ET" >&5 35780echo "${ECHO_T}$COMPILE_ET" >&6 35781else 35782 echo "$as_me:$LINENO: result: no" >&5 35783echo "${ECHO_T}no" >&6 35784fi 35785 35786 35787krb_cv_compile_et="no"
|
| 35788krb_cv_com_err_need_r=""
|
35489if test "${COMPILE_ET}" = "compile_et"; then 35490 35491echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5 35492echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6 35493cat > conftest_et.et <<'EOF' 35494error_table conf 35495prefix CONFTEST 35496index 1 35497error_code CODE1, "CODE1" 35498index 128 35499error_code CODE2, "CODE2" 35500end 35501EOF 35502if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 35503 save_CPPFLAGS="${save_CPPFLAGS}" 35504 if test -d "/usr/include/et"; then 35505 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 35506 fi 35507 if test "$cross_compiling" = yes; then 35508 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 35509echo "$as_me: error: cannot run test program while cross compiling" >&2;} 35510 { (exit 1); exit 1; }; } 35511else 35512 cat >conftest.$ac_ext <<_ACEOF 35513#line $LINENO "configure" 35514#include "confdefs.h" 35515 35516#include <com_err.h> 35517#include <string.h> 35518#include "conftest_et.h" 35519int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 35520 35521_ACEOF 35522rm -f conftest$ac_exeext 35523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35524 (eval $ac_link) 2>&5 35525 ac_status=$? 35526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 35528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35529 (eval $ac_try) 2>&5 35530 ac_status=$? 35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35532 (exit $ac_status); }; }; then 35533 krb_cv_compile_et="yes" 35534else 35535 echo "$as_me: program exited with status $ac_status" >&5 35536echo "$as_me: failed program was:" >&5 35537cat conftest.$ac_ext >&5 35538( exit $ac_status ) 35539CPPFLAGS="${save_CPPFLAGS}" 35540fi 35541rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 35542fi 35543fi 35544echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5 35545echo "${ECHO_T}${krb_cv_compile_et}" >&6
| 35789if test "${COMPILE_ET}" = "compile_et"; then 35790 35791echo "$as_me:$LINENO: checking whether compile_et has the features we need" >&5 35792echo $ECHO_N "checking whether compile_et has the features we need... $ECHO_C" >&6 35793cat > conftest_et.et <<'EOF' 35794error_table conf 35795prefix CONFTEST 35796index 1 35797error_code CODE1, "CODE1" 35798index 128 35799error_code CODE2, "CODE2" 35800end 35801EOF 35802if ${COMPILE_ET} conftest_et.et >/dev/null 2>&1; then 35803 save_CPPFLAGS="${save_CPPFLAGS}" 35804 if test -d "/usr/include/et"; then 35805 CPPFLAGS="-I/usr/include/et ${CPPFLAGS}" 35806 fi 35807 if test "$cross_compiling" = yes; then 35808 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5 35809echo "$as_me: error: cannot run test program while cross compiling" >&2;} 35810 { (exit 1); exit 1; }; } 35811else 35812 cat >conftest.$ac_ext <<_ACEOF 35813#line $LINENO "configure" 35814#include "confdefs.h" 35815 35816#include <com_err.h> 35817#include <string.h> 35818#include "conftest_et.h" 35819int main(){return (CONFTEST_CODE2 - CONFTEST_CODE1) != 127;} 35820 35821_ACEOF 35822rm -f conftest$ac_exeext 35823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35824 (eval $ac_link) 2>&5 35825 ac_status=$? 35826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 35828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35829 (eval $ac_try) 2>&5 35830 ac_status=$? 35831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35832 (exit $ac_status); }; }; then 35833 krb_cv_compile_et="yes" 35834else 35835 echo "$as_me: program exited with status $ac_status" >&5 35836echo "$as_me: failed program was:" >&5 35837cat conftest.$ac_ext >&5 35838( exit $ac_status ) 35839CPPFLAGS="${save_CPPFLAGS}" 35840fi 35841rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 35842fi 35843fi 35844echo "$as_me:$LINENO: result: ${krb_cv_compile_et}" >&5 35845echo "${ECHO_T}${krb_cv_compile_et}" >&6
|
| 35846if test "${krb_cv_compile_et}" = "yes"; then 35847 echo "$as_me:$LINENO: checking for if com_err needs to have a initialize_error_table_r" >&5 35848echo $ECHO_N "checking for if com_err needs to have a initialize_error_table_r... $ECHO_C" >&6 35849 save2_CPPFLAGS="$CPPFLAGS" 35850 CPPFLAGS="$CPPFLAGS" 35851 cat >conftest.$ac_ext <<_ACEOF 35852#line $LINENO "configure" 35853#include "confdefs.h" 35854#include "conftest_et.c" 35855_ACEOF 35856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 35857 egrep "initialize_error_table_r" >/dev/null 2>&1; then 35858 krb_cv_com_err_need_r="initialize_error_table_r(0,0,0,0);" 35859 CPPFLAGS="$save2_CPPFLAGS" 35860else 35861 CPPFLAGS="${save_CPPFLAGS}" 35862fi 35863rm -f conftest* 35864 35865 if test X"$krb_cv_com_err_need_r" = X ; then 35866 echo "$as_me:$LINENO: result: no" >&5 35867echo "${ECHO_T}no" >&6 35868 else 35869 echo "$as_me:$LINENO: result: yes" >&5 35870echo "${ECHO_T}yes" >&6 35871 fi 35872fi
|
35546rm -fr conftest* 35547fi 35548 35549if test "${krb_cv_compile_et}" = "yes"; then 35550 krb_cv_save_LIBS="${LIBS}" 35551 LIBS="${LIBS} -lcom_err" 35552 echo "$as_me:$LINENO: checking for com_err" >&5 35553echo $ECHO_N "checking for com_err... $ECHO_C" >&6 35554 cat >conftest.$ac_ext <<_ACEOF 35555#line $LINENO "configure" 35556#include "confdefs.h" 35557#include <com_err.h> 35558#ifdef F77_DUMMY_MAIN 35559# ifdef __cplusplus 35560 extern "C" 35561# endif 35562 int F77_DUMMY_MAIN() { return 1; } 35563#endif 35564int 35565main () 35566{ 35567 35568 const char *p; 35569 p = error_message(0);
| 35873rm -fr conftest* 35874fi 35875 35876if test "${krb_cv_compile_et}" = "yes"; then 35877 krb_cv_save_LIBS="${LIBS}" 35878 LIBS="${LIBS} -lcom_err" 35879 echo "$as_me:$LINENO: checking for com_err" >&5 35880echo $ECHO_N "checking for com_err... $ECHO_C" >&6 35881 cat >conftest.$ac_ext <<_ACEOF 35882#line $LINENO "configure" 35883#include "confdefs.h" 35884#include <com_err.h> 35885#ifdef F77_DUMMY_MAIN 35886# ifdef __cplusplus 35887 extern "C" 35888# endif 35889 int F77_DUMMY_MAIN() { return 1; } 35890#endif 35891int 35892main () 35893{ 35894 35895 const char *p; 35896 p = error_message(0);
|
| 35897 $krb_cv_com_err_need_r
|
35570 35571 ; 35572 return 0; 35573} 35574_ACEOF 35575rm -f conftest.$ac_objext conftest$ac_exeext 35576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35577 (eval $ac_link) 2>&5 35578 ac_status=$? 35579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35580 (exit $ac_status); } && 35581 { ac_try='test -s conftest$ac_exeext' 35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35583 (eval $ac_try) 2>&5 35584 ac_status=$? 35585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35586 (exit $ac_status); }; }; then 35587 krb_cv_com_err="yes" 35588else 35589 echo "$as_me: failed program was:" >&5 35590cat conftest.$ac_ext >&5 35591krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 35592fi 35593rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35594 echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5 35595echo "${ECHO_T}${krb_cv_com_err}" >&6 35596 LIBS="${krb_cv_save_LIBS}" 35597else 35598 krb_cv_com_err="no" 35599fi 35600 35601if test "${krb_cv_com_err}" = "yes"; then 35602 DIR_com_err="" 35603 LIB_com_err="-lcom_err" 35604 LIB_com_err_a="" 35605 LIB_com_err_so="" 35606 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5 35607echo "$as_me: Using the already-installed com_err" >&6;} 35608else 35609 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 35610 DIR_com_err="com_err" 35611 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 35612 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 35613 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 35614 { echo "$as_me:$LINENO: Using our own com_err" >&5 35615echo "$as_me: Using our own com_err" >&6;} 35616fi 35617 35618 35619 35620 35621 35622 35623 35624 35625echo "$as_me:$LINENO: checking which authentication modules should be built" >&5 35626echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6 35627 35628z='sia afskauthlib' 35629LIB_AUTH_SUBDIRS= 35630for i in $z; do 35631case $i in 35632sia) 35633if test "$ac_cv_header_siad_h" = yes; then 35634 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 35635fi 35636;; 35637pam) 35638case "${host}" in 35639*-*-freebsd*) ac_cv_want_pam_krb4=no ;; 35640*) ac_cv_want_pam_krb4=yes ;; 35641esac 35642 35643if test "$ac_cv_want_pam_krb4" = yes -a \ 35644 "$ac_cv_header_security_pam_modules_h" = yes -a \ 35645 "$enable_shared" = yes; then 35646 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 35647fi 35648;; 35649afskauthlib) 35650case "${host}" in 35651*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 35652esac 35653;; 35654esac 35655done 35656if test "$LIB_AUTH_SUBDIRS"; then 35657 echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5 35658echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6 35659else 35660 echo "$as_me:$LINENO: result: none" >&5 35661echo "${ECHO_T}none" >&6 35662fi 35663 35664 35665 35666 35667# This is done by AC_OUTPUT but we need the result here. 35668test "x$prefix" = xNONE && prefix=$ac_default_prefix 35669test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 35670 35671 35672 x="${bindir}" 35673 eval y="$x" 35674 while test "x$y" != "x$x"; do 35675 x="$y" 35676 eval y="$x" 35677 done 35678 35679cat >>confdefs.h <<_ACEOF 35680#define BINDIR "$x" 35681_ACEOF 35682 35683 x="${libdir}" 35684 eval y="$x" 35685 while test "x$y" != "x$x"; do 35686 x="$y" 35687 eval y="$x" 35688 done 35689 35690cat >>confdefs.h <<_ACEOF 35691#define LIBDIR "$x" 35692_ACEOF 35693 35694 x="${libexecdir}" 35695 eval y="$x" 35696 while test "x$y" != "x$x"; do 35697 x="$y" 35698 eval y="$x" 35699 done 35700 35701cat >>confdefs.h <<_ACEOF 35702#define LIBEXECDIR "$x" 35703_ACEOF 35704 35705 x="${localstatedir}" 35706 eval y="$x" 35707 while test "x$y" != "x$x"; do 35708 x="$y" 35709 eval y="$x" 35710 done 35711 35712cat >>confdefs.h <<_ACEOF 35713#define LOCALSTATEDIR "$x" 35714_ACEOF 35715 35716 x="${sbindir}" 35717 eval y="$x" 35718 while test "x$y" != "x$x"; do 35719 x="$y" 35720 eval y="$x" 35721 done 35722 35723cat >>confdefs.h <<_ACEOF 35724#define SBINDIR "$x" 35725_ACEOF 35726 35727 x="${sysconfdir}" 35728 eval y="$x" 35729 while test "x$y" != "x$x"; do 35730 x="$y" 35731 eval y="$x" 35732 done 35733 35734cat >>confdefs.h <<_ACEOF 35735#define SYSCONFDIR "$x" 35736_ACEOF 35737 35738 35739 35740LTLIBOBJS=`echo "$LIBOBJS" | 35741 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'` 35742 35743 35744 35745 35746 35747ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile" 35748 35749 35750cat >confcache <<\_ACEOF 35751# This file is a shell script that caches the results of configure 35752# tests run on this system so they can be shared between configure 35753# scripts and configure runs, see configure's option --config-cache. 35754# It is not useful on other systems. If it contains results you don't 35755# want to keep, you may remove or edit it. 35756# 35757# config.status only pays attention to the cache file if you give it 35758# the --recheck option to rerun configure. 35759# 35760# `ac_cv_env_foo' variables (set or unset) will be overriden when 35761# loading this file, other *unset* `ac_cv_foo' will be assigned the 35762# following values. 35763 35764_ACEOF 35765 35766# The following way of writing the cache mishandles newlines in values, 35767# but we know of no workaround that is simple, portable, and efficient. 35768# So, don't put newlines in cache variables' values. 35769# Ultrix sh set writes to stderr and can't be redirected directly, 35770# and sets the high bit in the cache file unless we assign to the vars. 35771{ 35772 (set) 2>&1 | 35773 case `(ac_space=' '; set | grep ac_space) 2>&1` in 35774 *ac_space=\ *) 35775 # `set' does not quote correctly, so add quotes (double-quote 35776 # substitution turns \\\\ into \\, and sed turns \\ into \). 35777 sed -n \ 35778 "s/'/'\\\\''/g; 35779 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 35780 ;; 35781 *) 35782 # `set' quotes correctly as required by POSIX, so do not add quotes. 35783 sed -n \ 35784 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 35785 ;; 35786 esac; 35787} | 35788 sed ' 35789 t clear 35790 : clear 35791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 35792 t end 35793 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 35794 : end' >>confcache 35795if cmp -s $cache_file confcache; then :; else 35796 if test -w $cache_file; then 35797 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 35798 cat confcache >$cache_file 35799 else 35800 echo "not updating unwritable cache $cache_file" 35801 fi 35802fi 35803rm -f confcache 35804 35805test "x$prefix" = xNONE && prefix=$ac_default_prefix 35806# Let make expand exec_prefix. 35807test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 35808 35809# VPATH may cause trouble with some makes, so we remove $(srcdir), 35810# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 35811# trailing colons and then remove the whole line if VPATH becomes empty 35812# (actually we leave an empty line to preserve line numbers). 35813if test "x$srcdir" = x.; then 35814 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 35815s/:*\$(srcdir):*/:/; 35816s/:*\${srcdir}:*/:/; 35817s/:*@srcdir@:*/:/; 35818s/^\([^=]*=[ ]*\):*/\1/; 35819s/:*$//; 35820s/^[^=]*=[ ]*$//; 35821}' 35822fi 35823 35824DEFS=-DHAVE_CONFIG_H 35825 35826if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 35827 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 35828Usually this means the macro was only invoked conditionally." >&5 35829echo "$as_me: error: conditional \"AMDEP\" was never defined. 35830Usually this means the macro was only invoked conditionally." >&2;} 35831 { (exit 1); exit 1; }; } 35832fi
| 35898 35899 ; 35900 return 0; 35901} 35902_ACEOF 35903rm -f conftest.$ac_objext conftest$ac_exeext 35904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 35905 (eval $ac_link) 2>&5 35906 ac_status=$? 35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35908 (exit $ac_status); } && 35909 { ac_try='test -s conftest$ac_exeext' 35910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 35911 (eval $ac_try) 2>&5 35912 ac_status=$? 35913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 35914 (exit $ac_status); }; }; then 35915 krb_cv_com_err="yes" 35916else 35917 echo "$as_me: failed program was:" >&5 35918cat conftest.$ac_ext >&5 35919krb_cv_com_err="no"; CPPFLAGS="${save_CPPFLAGS}" 35920fi 35921rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext 35922 echo "$as_me:$LINENO: result: ${krb_cv_com_err}" >&5 35923echo "${ECHO_T}${krb_cv_com_err}" >&6 35924 LIBS="${krb_cv_save_LIBS}" 35925else 35926 krb_cv_com_err="no" 35927fi 35928 35929if test "${krb_cv_com_err}" = "yes"; then 35930 DIR_com_err="" 35931 LIB_com_err="-lcom_err" 35932 LIB_com_err_a="" 35933 LIB_com_err_so="" 35934 { echo "$as_me:$LINENO: Using the already-installed com_err" >&5 35935echo "$as_me: Using the already-installed com_err" >&6;} 35936else 35937 COMPILE_ET="\$(top_builddir)/lib/com_err/compile_et" 35938 DIR_com_err="com_err" 35939 LIB_com_err="\$(top_builddir)/lib/com_err/libcom_err.la" 35940 LIB_com_err_a="\$(top_builddir)/lib/com_err/.libs/libcom_err.a" 35941 LIB_com_err_so="\$(top_builddir)/lib/com_err/.libs/libcom_err.so" 35942 { echo "$as_me:$LINENO: Using our own com_err" >&5 35943echo "$as_me: Using our own com_err" >&6;} 35944fi 35945 35946 35947 35948 35949 35950 35951 35952 35953echo "$as_me:$LINENO: checking which authentication modules should be built" >&5 35954echo $ECHO_N "checking which authentication modules should be built... $ECHO_C" >&6 35955 35956z='sia afskauthlib' 35957LIB_AUTH_SUBDIRS= 35958for i in $z; do 35959case $i in 35960sia) 35961if test "$ac_cv_header_siad_h" = yes; then 35962 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS sia" 35963fi 35964;; 35965pam) 35966case "${host}" in 35967*-*-freebsd*) ac_cv_want_pam_krb4=no ;; 35968*) ac_cv_want_pam_krb4=yes ;; 35969esac 35970 35971if test "$ac_cv_want_pam_krb4" = yes -a \ 35972 "$ac_cv_header_security_pam_modules_h" = yes -a \ 35973 "$enable_shared" = yes; then 35974 LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS pam" 35975fi 35976;; 35977afskauthlib) 35978case "${host}" in 35979*-*-irix[56]*) LIB_AUTH_SUBDIRS="$LIB_AUTH_SUBDIRS afskauthlib" ;; 35980esac 35981;; 35982esac 35983done 35984if test "$LIB_AUTH_SUBDIRS"; then 35985 echo "$as_me:$LINENO: result: $LIB_AUTH_SUBDIRS" >&5 35986echo "${ECHO_T}$LIB_AUTH_SUBDIRS" >&6 35987else 35988 echo "$as_me:$LINENO: result: none" >&5 35989echo "${ECHO_T}none" >&6 35990fi 35991 35992 35993 35994 35995# This is done by AC_OUTPUT but we need the result here. 35996test "x$prefix" = xNONE && prefix=$ac_default_prefix 35997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 35998 35999 36000 x="${bindir}" 36001 eval y="$x" 36002 while test "x$y" != "x$x"; do 36003 x="$y" 36004 eval y="$x" 36005 done 36006 36007cat >>confdefs.h <<_ACEOF 36008#define BINDIR "$x" 36009_ACEOF 36010 36011 x="${libdir}" 36012 eval y="$x" 36013 while test "x$y" != "x$x"; do 36014 x="$y" 36015 eval y="$x" 36016 done 36017 36018cat >>confdefs.h <<_ACEOF 36019#define LIBDIR "$x" 36020_ACEOF 36021 36022 x="${libexecdir}" 36023 eval y="$x" 36024 while test "x$y" != "x$x"; do 36025 x="$y" 36026 eval y="$x" 36027 done 36028 36029cat >>confdefs.h <<_ACEOF 36030#define LIBEXECDIR "$x" 36031_ACEOF 36032 36033 x="${localstatedir}" 36034 eval y="$x" 36035 while test "x$y" != "x$x"; do 36036 x="$y" 36037 eval y="$x" 36038 done 36039 36040cat >>confdefs.h <<_ACEOF 36041#define LOCALSTATEDIR "$x" 36042_ACEOF 36043 36044 x="${sbindir}" 36045 eval y="$x" 36046 while test "x$y" != "x$x"; do 36047 x="$y" 36048 eval y="$x" 36049 done 36050 36051cat >>confdefs.h <<_ACEOF 36052#define SBINDIR "$x" 36053_ACEOF 36054 36055 x="${sysconfdir}" 36056 eval y="$x" 36057 while test "x$y" != "x$x"; do 36058 x="$y" 36059 eval y="$x" 36060 done 36061 36062cat >>confdefs.h <<_ACEOF 36063#define SYSCONFDIR "$x" 36064_ACEOF 36065 36066 36067 36068LTLIBOBJS=`echo "$LIBOBJS" | 36069 sed 's,\.[^.]* ,.lo ,g;s,\.[^.]*$,.lo,'` 36070 36071 36072 36073 36074 36075ac_config_files="$ac_config_files Makefile include/Makefile include/kadm5/Makefile lib/Makefile lib/45/Makefile lib/auth/Makefile lib/auth/afskauthlib/Makefile lib/auth/pam/Makefile lib/auth/sia/Makefile lib/asn1/Makefile lib/com_err/Makefile lib/des/Makefile lib/editline/Makefile lib/gssapi/Makefile lib/hdb/Makefile lib/kadm5/Makefile lib/kafs/Makefile lib/kdfs/Makefile lib/krb5/Makefile lib/otp/Makefile lib/roken/Makefile lib/sl/Makefile lib/vers/Makefile kuser/Makefile kpasswd/Makefile kadmin/Makefile admin/Makefile kdc/Makefile appl/Makefile appl/afsutil/Makefile appl/ftp/Makefile appl/ftp/common/Makefile appl/ftp/ftp/Makefile appl/ftp/ftpd/Makefile appl/kx/Makefile appl/login/Makefile appl/otp/Makefile appl/popper/Makefile appl/push/Makefile appl/rsh/Makefile appl/rcp/Makefile appl/su/Makefile appl/xnlock/Makefile appl/telnet/Makefile appl/telnet/libtelnet/Makefile appl/telnet/telnet/Makefile appl/telnet/telnetd/Makefile appl/test/Makefile appl/kf/Makefile appl/dceutils/Makefile doc/Makefile tools/Makefile" 36076 36077 36078cat >confcache <<\_ACEOF 36079# This file is a shell script that caches the results of configure 36080# tests run on this system so they can be shared between configure 36081# scripts and configure runs, see configure's option --config-cache. 36082# It is not useful on other systems. If it contains results you don't 36083# want to keep, you may remove or edit it. 36084# 36085# config.status only pays attention to the cache file if you give it 36086# the --recheck option to rerun configure. 36087# 36088# `ac_cv_env_foo' variables (set or unset) will be overriden when 36089# loading this file, other *unset* `ac_cv_foo' will be assigned the 36090# following values. 36091 36092_ACEOF 36093 36094# The following way of writing the cache mishandles newlines in values, 36095# but we know of no workaround that is simple, portable, and efficient. 36096# So, don't put newlines in cache variables' values. 36097# Ultrix sh set writes to stderr and can't be redirected directly, 36098# and sets the high bit in the cache file unless we assign to the vars. 36099{ 36100 (set) 2>&1 | 36101 case `(ac_space=' '; set | grep ac_space) 2>&1` in 36102 *ac_space=\ *) 36103 # `set' does not quote correctly, so add quotes (double-quote 36104 # substitution turns \\\\ into \\, and sed turns \\ into \). 36105 sed -n \ 36106 "s/'/'\\\\''/g; 36107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 36108 ;; 36109 *) 36110 # `set' quotes correctly as required by POSIX, so do not add quotes. 36111 sed -n \ 36112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 36113 ;; 36114 esac; 36115} | 36116 sed ' 36117 t clear 36118 : clear 36119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 36120 t end 36121 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 36122 : end' >>confcache 36123if cmp -s $cache_file confcache; then :; else 36124 if test -w $cache_file; then 36125 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 36126 cat confcache >$cache_file 36127 else 36128 echo "not updating unwritable cache $cache_file" 36129 fi 36130fi 36131rm -f confcache 36132 36133test "x$prefix" = xNONE && prefix=$ac_default_prefix 36134# Let make expand exec_prefix. 36135test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 36136 36137# VPATH may cause trouble with some makes, so we remove $(srcdir), 36138# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 36139# trailing colons and then remove the whole line if VPATH becomes empty 36140# (actually we leave an empty line to preserve line numbers). 36141if test "x$srcdir" = x.; then 36142 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 36143s/:*\$(srcdir):*/:/; 36144s/:*\${srcdir}:*/:/; 36145s/:*@srcdir@:*/:/; 36146s/^\([^=]*=[ ]*\):*/\1/; 36147s/:*$//; 36148s/^[^=]*=[ ]*$//; 36149}' 36150fi 36151 36152DEFS=-DHAVE_CONFIG_H 36153 36154if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 36155 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 36156Usually this means the macro was only invoked conditionally." >&5 36157echo "$as_me: error: conditional \"AMDEP\" was never defined. 36158Usually this means the macro was only invoked conditionally." >&2;} 36159 { (exit 1); exit 1; }; } 36160fi
|
| 36161if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 36162 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 36163Usually this means the macro was only invoked conditionally." >&5 36164echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 36165Usually this means the macro was only invoked conditionally." >&2;} 36166 { (exit 1); exit 1; }; } 36167fi
|
35833if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then 35834 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined. 35835Usually this means the macro was only invoked conditionally." >&5 35836echo "$as_me: error: conditional \"KRB4\" was never defined. 35837Usually this means the macro was only invoked conditionally." >&2;} 35838 { (exit 1); exit 1; }; } 35839fi 35840if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then 35841 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined. 35842Usually this means the macro was only invoked conditionally." >&5 35843echo "$as_me: error: conditional \"KRB5\" was never defined. 35844Usually this means the macro was only invoked conditionally." >&2;} 35845 { (exit 1); exit 1; }; } 35846fi 35847if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then 35848 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined. 35849Usually this means the macro was only invoked conditionally." >&5 35850echo "$as_me: error: conditional \"do_roken_rename\" was never defined. 35851Usually this means the macro was only invoked conditionally." >&2;} 35852 { (exit 1); exit 1; }; } 35853fi 35854if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then 35855 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined. 35856Usually this means the macro was only invoked conditionally." >&5 35857echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined. 35858Usually this means the macro was only invoked conditionally." >&2;} 35859 { (exit 1); exit 1; }; } 35860fi 35861if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then 35862 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined. 35863Usually this means the macro was only invoked conditionally." >&5 35864echo "$as_me: error: conditional \"DCE\" was never defined. 35865Usually this means the macro was only invoked conditionally." >&2;} 35866 { (exit 1); exit 1; }; } 35867fi 35868if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then 35869 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined. 35870Usually this means the macro was only invoked conditionally." >&5 35871echo "$as_me: error: conditional \"HAVE_DB1\" was never defined. 35872Usually this means the macro was only invoked conditionally." >&2;} 35873 { (exit 1); exit 1; }; } 35874fi 35875if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then 35876 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined. 35877Usually this means the macro was only invoked conditionally." >&5 35878echo "$as_me: error: conditional \"HAVE_DB3\" was never defined. 35879Usually this means the macro was only invoked conditionally." >&2;} 35880 { (exit 1); exit 1; }; } 35881fi 35882if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then 35883 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined. 35884Usually this means the macro was only invoked conditionally." >&5 35885echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined. 35886Usually this means the macro was only invoked conditionally." >&2;} 35887 { (exit 1); exit 1; }; } 35888fi 35889if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then 35890 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined. 35891Usually this means the macro was only invoked conditionally." >&5 35892echo "$as_me: error: conditional \"have_err_h\" was never defined. 35893Usually this means the macro was only invoked conditionally." >&2;} 35894 { (exit 1); exit 1; }; } 35895fi 35896if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then 35897 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined. 35898Usually this means the macro was only invoked conditionally." >&5 35899echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined. 35900Usually this means the macro was only invoked conditionally." >&2;} 35901 { (exit 1); exit 1; }; } 35902fi 35903if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then 35904 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined. 35905Usually this means the macro was only invoked conditionally." >&5 35906echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined. 35907Usually this means the macro was only invoked conditionally." >&2;} 35908 { (exit 1); exit 1; }; } 35909fi 35910if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then 35911 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined. 35912Usually this means the macro was only invoked conditionally." >&5 35913echo "$as_me: error: conditional \"have_vis_h\" was never defined. 35914Usually this means the macro was only invoked conditionally." >&2;} 35915 { (exit 1); exit 1; }; } 35916fi 35917if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then 35918 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined. 35919Usually this means the macro was only invoked conditionally." >&5 35920echo "$as_me: error: conditional \"have_glob_h\" was never defined. 35921Usually this means the macro was only invoked conditionally." >&2;} 35922 { (exit 1); exit 1; }; } 35923fi 35924if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then 35925 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined. 35926Usually this means the macro was only invoked conditionally." >&5 35927echo "$as_me: error: conditional \"OTP\" was never defined. 35928Usually this means the macro was only invoked conditionally." >&2;} 35929 { (exit 1); exit 1; }; } 35930fi 35931if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then 35932 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined. 35933Usually this means the macro was only invoked conditionally." >&5 35934echo "$as_me: error: conditional \"CATMAN\" was never defined. 35935Usually this means the macro was only invoked conditionally." >&2;} 35936 { (exit 1); exit 1; }; } 35937fi 35938if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 35939 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined. 35940Usually this means the macro was only invoked conditionally." >&5 35941echo "$as_me: error: conditional \"AIX\" was never defined. 35942Usually this means the macro was only invoked conditionally." >&2;} 35943 { (exit 1); exit 1; }; } 35944fi 35945if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then 35946 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined. 35947Usually this means the macro was only invoked conditionally." >&5 35948echo "$as_me: error: conditional \"AIX4\" was never defined. 35949Usually this means the macro was only invoked conditionally." >&2;} 35950 { (exit 1); exit 1; }; } 35951fi 35952if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then 35953 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined. 35954Usually this means the macro was only invoked conditionally." >&5 35955echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined. 35956Usually this means the macro was only invoked conditionally." >&2;} 35957 { (exit 1); exit 1; }; } 35958fi 35959if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then 35960 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined. 35961Usually this means the macro was only invoked conditionally." >&5 35962echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined. 35963Usually this means the macro was only invoked conditionally." >&2;} 35964 { (exit 1); exit 1; }; } 35965fi 35966if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 35967 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined. 35968Usually this means the macro was only invoked conditionally." >&5 35969echo "$as_me: error: conditional \"IRIX\" was never defined. 35970Usually this means the macro was only invoked conditionally." >&2;} 35971 { (exit 1); exit 1; }; } 35972fi 35973if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then 35974 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. 35975Usually this means the macro was only invoked conditionally." >&5 35976echo "$as_me: error: conditional \"HAVE_X\" was never defined. 35977Usually this means the macro was only invoked conditionally." >&2;} 35978 { (exit 1); exit 1; }; } 35979fi 35980if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then 35981 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined. 35982Usually this means the macro was only invoked conditionally." >&5 35983echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined. 35984Usually this means the macro was only invoked conditionally." >&2;} 35985 { (exit 1); exit 1; }; } 35986fi 35987if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then 35988 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined. 35989Usually this means the macro was only invoked conditionally." >&5 35990echo "$as_me: error: conditional \"el_compat\" was never defined. 35991Usually this means the macro was only invoked conditionally." >&2;} 35992 { (exit 1); exit 1; }; } 35993fi 35994 35995: ${CONFIG_STATUS=./config.status} 35996ac_clean_files_save=$ac_clean_files 35997ac_clean_files="$ac_clean_files $CONFIG_STATUS" 35998{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 35999echo "$as_me: creating $CONFIG_STATUS" >&6;} 36000cat >$CONFIG_STATUS <<_ACEOF 36001#! $SHELL 36002# Generated by $as_me. 36003# Run this file to recreate the current configuration. 36004# Compiler output produced by configure, useful for debugging 36005# configure, is in config.log if it exists. 36006 36007debug=false 36008SHELL=\${CONFIG_SHELL-$SHELL} 36009_ACEOF 36010 36011cat >>$CONFIG_STATUS <<\_ACEOF 36012 36013## --------------------- ## 36014## M4sh Initialization. ## 36015## --------------------- ## 36016 36017# Be Bourne compatible 36018if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 36019 emulate sh 36020 NULLCMD=: 36021elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 36022 set -o posix 36023fi 36024 36025# NLS nuisances. 36026# Support unset when possible. 36027if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 36028 as_unset=unset 36029else 36030 as_unset=false 36031fi 36032 36033(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 36034 { $as_unset LANG || test "${LANG+set}" != set; } || 36035 { LANG=C; export LANG; } 36036(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 36037 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 36038 { LC_ALL=C; export LC_ALL; } 36039(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 36040 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 36041 { LC_TIME=C; export LC_TIME; } 36042(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 36043 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 36044 { LC_CTYPE=C; export LC_CTYPE; } 36045(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 36046 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 36047 { LANGUAGE=C; export LANGUAGE; } 36048(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 36049 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 36050 { LC_COLLATE=C; export LC_COLLATE; } 36051(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 36052 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 36053 { LC_NUMERIC=C; export LC_NUMERIC; } 36054(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 36055 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 36056 { LC_MESSAGES=C; export LC_MESSAGES; } 36057 36058 36059# Name of the executable. 36060as_me=`(basename "$0") 2>/dev/null || 36061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 36062 X"$0" : 'X\(//\)$' \| \ 36063 X"$0" : 'X\(/\)$' \| \ 36064 . : '\(.\)' 2>/dev/null || 36065echo X/"$0" | 36066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 36067 /^X\/\(\/\/\)$/{ s//\1/; q; } 36068 /^X\/\(\/\).*/{ s//\1/; q; } 36069 s/.*/./; q'` 36070 36071# PATH needs CR, and LINENO needs CR and PATH. 36072# Avoid depending upon Character Ranges. 36073as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36074as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36075as_cr_Letters=$as_cr_letters$as_cr_LETTERS 36076as_cr_digits='0123456789' 36077as_cr_alnum=$as_cr_Letters$as_cr_digits 36078 36079# The user is always right. 36080if test "${PATH_SEPARATOR+set}" != set; then 36081 echo "#! /bin/sh" >conftest.sh 36082 echo "exit 0" >>conftest.sh 36083 chmod +x conftest.sh 36084 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 36085 PATH_SEPARATOR=';' 36086 else 36087 PATH_SEPARATOR=: 36088 fi 36089 rm -f conftest.sh 36090fi 36091 36092 36093 as_lineno_1=$LINENO 36094 as_lineno_2=$LINENO 36095 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 36096 test "x$as_lineno_1" != "x$as_lineno_2" && 36097 test "x$as_lineno_3" = "x$as_lineno_2" || { 36098 # Find who we are. Look in the path if we contain no path at all 36099 # relative or not. 36100 case $0 in 36101 *[\\/]* ) as_myself=$0 ;; 36102 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36103for as_dir in $PATH 36104do 36105 IFS=$as_save_IFS 36106 test -z "$as_dir" && as_dir=. 36107 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 36108done 36109 36110 ;; 36111 esac 36112 # We did not find ourselves, most probably we were run as `sh COMMAND' 36113 # in which case we are not to be found in the path. 36114 if test "x$as_myself" = x; then 36115 as_myself=$0 36116 fi 36117 if test ! -f "$as_myself"; then 36118 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 36119echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 36120 { (exit 1); exit 1; }; } 36121 fi 36122 case $CONFIG_SHELL in 36123 '') 36124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36125for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 36126do 36127 IFS=$as_save_IFS 36128 test -z "$as_dir" && as_dir=. 36129 for as_base in sh bash ksh sh5; do 36130 case $as_dir in 36131 /*) 36132 if ("$as_dir/$as_base" -c ' 36133 as_lineno_1=$LINENO 36134 as_lineno_2=$LINENO 36135 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 36136 test "x$as_lineno_1" != "x$as_lineno_2" && 36137 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 36138 CONFIG_SHELL=$as_dir/$as_base 36139 export CONFIG_SHELL 36140 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 36141 fi;; 36142 esac 36143 done 36144done 36145;; 36146 esac 36147 36148 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 36149 # uniformly replaced by the line number. The first 'sed' inserts a 36150 # line-number line before each line; the second 'sed' does the real 36151 # work. The second script uses 'N' to pair each line-number line 36152 # with the numbered line, and appends trailing '-' during 36153 # substitution so that $LINENO is not a special case at line end. 36154 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 36155 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 36156 sed '=' <$as_myself | 36157 sed ' 36158 N 36159 s,$,-, 36160 : loop 36161 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 36162 t loop 36163 s,-$,, 36164 s,^['$as_cr_digits']*\n,, 36165 ' >$as_me.lineno && 36166 chmod +x $as_me.lineno || 36167 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 36168echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 36169 { (exit 1); exit 1; }; } 36170 36171 # Don't try to exec as it changes $[0], causing all sort of problems 36172 # (the dirname of $[0] is not the place where we might find the 36173 # original and so on. Autoconf is especially sensible to this). 36174 . ./$as_me.lineno 36175 # Exit status is that of the last command. 36176 exit 36177} 36178 36179 36180case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 36181 *c*,-n*) ECHO_N= ECHO_C=' 36182' ECHO_T=' ' ;; 36183 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 36184 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 36185esac 36186 36187if expr a : '\(a\)' >/dev/null 2>&1; then 36188 as_expr=expr 36189else 36190 as_expr=false 36191fi 36192 36193rm -f conf$$ conf$$.exe conf$$.file 36194echo >conf$$.file 36195if ln -s conf$$.file conf$$ 2>/dev/null; then 36196 # We could just check for DJGPP; but this test a) works b) is more generic 36197 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 36198 if test -f conf$$.exe; then 36199 # Don't use ln at all; we don't have any links 36200 as_ln_s='cp -p' 36201 else 36202 as_ln_s='ln -s' 36203 fi 36204elif ln conf$$.file conf$$ 2>/dev/null; then 36205 as_ln_s=ln 36206else 36207 as_ln_s='cp -p' 36208fi 36209rm -f conf$$ conf$$.exe conf$$.file 36210 36211as_executable_p="test -f" 36212 36213# Sed expression to map a string onto a valid CPP name. 36214as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 36215 36216# Sed expression to map a string onto a valid variable name. 36217as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 36218 36219 36220# IFS 36221# We need space, tab and new line, in precisely that order. 36222as_nl=' 36223' 36224IFS=" $as_nl" 36225 36226# CDPATH. 36227$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 36228 36229exec 6>&1 36230 36231# Open the log real soon, to keep \$[0] and so on meaningful, and to 36232# report actual input values of CONFIG_FILES etc. instead of their 36233# values after options handling. Logging --version etc. is OK. 36234exec 5>>config.log 36235{ 36236 echo 36237 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 36238## Running $as_me. ## 36239_ASBOX 36240} >&5 36241cat >&5 <<_CSEOF 36242
| 36168if test -z "${KRB4_TRUE}" && test -z "${KRB4_FALSE}"; then 36169 { { echo "$as_me:$LINENO: error: conditional \"KRB4\" was never defined. 36170Usually this means the macro was only invoked conditionally." >&5 36171echo "$as_me: error: conditional \"KRB4\" was never defined. 36172Usually this means the macro was only invoked conditionally." >&2;} 36173 { (exit 1); exit 1; }; } 36174fi 36175if test -z "${KRB5_TRUE}" && test -z "${KRB5_FALSE}"; then 36176 { { echo "$as_me:$LINENO: error: conditional \"KRB5\" was never defined. 36177Usually this means the macro was only invoked conditionally." >&5 36178echo "$as_me: error: conditional \"KRB5\" was never defined. 36179Usually this means the macro was only invoked conditionally." >&2;} 36180 { (exit 1); exit 1; }; } 36181fi 36182if test -z "${do_roken_rename_TRUE}" && test -z "${do_roken_rename_FALSE}"; then 36183 { { echo "$as_me:$LINENO: error: conditional \"do_roken_rename\" was never defined. 36184Usually this means the macro was only invoked conditionally." >&5 36185echo "$as_me: error: conditional \"do_roken_rename\" was never defined. 36186Usually this means the macro was only invoked conditionally." >&2;} 36187 { (exit 1); exit 1; }; } 36188fi 36189if test -z "${HAVE_OPENSSL_TRUE}" && test -z "${HAVE_OPENSSL_FALSE}"; then 36190 { { echo "$as_me:$LINENO: error: conditional \"HAVE_OPENSSL\" was never defined. 36191Usually this means the macro was only invoked conditionally." >&5 36192echo "$as_me: error: conditional \"HAVE_OPENSSL\" was never defined. 36193Usually this means the macro was only invoked conditionally." >&2;} 36194 { (exit 1); exit 1; }; } 36195fi 36196if test -z "${DCE_TRUE}" && test -z "${DCE_FALSE}"; then 36197 { { echo "$as_me:$LINENO: error: conditional \"DCE\" was never defined. 36198Usually this means the macro was only invoked conditionally." >&5 36199echo "$as_me: error: conditional \"DCE\" was never defined. 36200Usually this means the macro was only invoked conditionally." >&2;} 36201 { (exit 1); exit 1; }; } 36202fi 36203if test -z "${HAVE_DB1_TRUE}" && test -z "${HAVE_DB1_FALSE}"; then 36204 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB1\" was never defined. 36205Usually this means the macro was only invoked conditionally." >&5 36206echo "$as_me: error: conditional \"HAVE_DB1\" was never defined. 36207Usually this means the macro was only invoked conditionally." >&2;} 36208 { (exit 1); exit 1; }; } 36209fi 36210if test -z "${HAVE_DB3_TRUE}" && test -z "${HAVE_DB3_FALSE}"; then 36211 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DB3\" was never defined. 36212Usually this means the macro was only invoked conditionally." >&5 36213echo "$as_me: error: conditional \"HAVE_DB3\" was never defined. 36214Usually this means the macro was only invoked conditionally." >&2;} 36215 { (exit 1); exit 1; }; } 36216fi 36217if test -z "${HAVE_NDBM_TRUE}" && test -z "${HAVE_NDBM_FALSE}"; then 36218 { { echo "$as_me:$LINENO: error: conditional \"HAVE_NDBM\" was never defined. 36219Usually this means the macro was only invoked conditionally." >&5 36220echo "$as_me: error: conditional \"HAVE_NDBM\" was never defined. 36221Usually this means the macro was only invoked conditionally." >&2;} 36222 { (exit 1); exit 1; }; } 36223fi 36224if test -z "${have_err_h_TRUE}" && test -z "${have_err_h_FALSE}"; then 36225 { { echo "$as_me:$LINENO: error: conditional \"have_err_h\" was never defined. 36226Usually this means the macro was only invoked conditionally." >&5 36227echo "$as_me: error: conditional \"have_err_h\" was never defined. 36228Usually this means the macro was only invoked conditionally." >&2;} 36229 { (exit 1); exit 1; }; } 36230fi 36231if test -z "${have_fnmatch_h_TRUE}" && test -z "${have_fnmatch_h_FALSE}"; then 36232 { { echo "$as_me:$LINENO: error: conditional \"have_fnmatch_h\" was never defined. 36233Usually this means the macro was only invoked conditionally." >&5 36234echo "$as_me: error: conditional \"have_fnmatch_h\" was never defined. 36235Usually this means the macro was only invoked conditionally." >&2;} 36236 { (exit 1); exit 1; }; } 36237fi 36238if test -z "${have_ifaddrs_h_TRUE}" && test -z "${have_ifaddrs_h_FALSE}"; then 36239 { { echo "$as_me:$LINENO: error: conditional \"have_ifaddrs_h\" was never defined. 36240Usually this means the macro was only invoked conditionally." >&5 36241echo "$as_me: error: conditional \"have_ifaddrs_h\" was never defined. 36242Usually this means the macro was only invoked conditionally." >&2;} 36243 { (exit 1); exit 1; }; } 36244fi 36245if test -z "${have_vis_h_TRUE}" && test -z "${have_vis_h_FALSE}"; then 36246 { { echo "$as_me:$LINENO: error: conditional \"have_vis_h\" was never defined. 36247Usually this means the macro was only invoked conditionally." >&5 36248echo "$as_me: error: conditional \"have_vis_h\" was never defined. 36249Usually this means the macro was only invoked conditionally." >&2;} 36250 { (exit 1); exit 1; }; } 36251fi 36252if test -z "${have_glob_h_TRUE}" && test -z "${have_glob_h_FALSE}"; then 36253 { { echo "$as_me:$LINENO: error: conditional \"have_glob_h\" was never defined. 36254Usually this means the macro was only invoked conditionally." >&5 36255echo "$as_me: error: conditional \"have_glob_h\" was never defined. 36256Usually this means the macro was only invoked conditionally." >&2;} 36257 { (exit 1); exit 1; }; } 36258fi 36259if test -z "${OTP_TRUE}" && test -z "${OTP_FALSE}"; then 36260 { { echo "$as_me:$LINENO: error: conditional \"OTP\" was never defined. 36261Usually this means the macro was only invoked conditionally." >&5 36262echo "$as_me: error: conditional \"OTP\" was never defined. 36263Usually this means the macro was only invoked conditionally." >&2;} 36264 { (exit 1); exit 1; }; } 36265fi 36266if test -z "${CATMAN_TRUE}" && test -z "${CATMAN_FALSE}"; then 36267 { { echo "$as_me:$LINENO: error: conditional \"CATMAN\" was never defined. 36268Usually this means the macro was only invoked conditionally." >&5 36269echo "$as_me: error: conditional \"CATMAN\" was never defined. 36270Usually this means the macro was only invoked conditionally." >&2;} 36271 { (exit 1); exit 1; }; } 36272fi 36273if test -z "${AIX_TRUE}" && test -z "${AIX_FALSE}"; then 36274 { { echo "$as_me:$LINENO: error: conditional \"AIX\" was never defined. 36275Usually this means the macro was only invoked conditionally." >&5 36276echo "$as_me: error: conditional \"AIX\" was never defined. 36277Usually this means the macro was only invoked conditionally." >&2;} 36278 { (exit 1); exit 1; }; } 36279fi 36280if test -z "${AIX4_TRUE}" && test -z "${AIX4_FALSE}"; then 36281 { { echo "$as_me:$LINENO: error: conditional \"AIX4\" was never defined. 36282Usually this means the macro was only invoked conditionally." >&5 36283echo "$as_me: error: conditional \"AIX4\" was never defined. 36284Usually this means the macro was only invoked conditionally." >&2;} 36285 { (exit 1); exit 1; }; } 36286fi 36287if test -z "${HAVE_DLOPEN_TRUE}" && test -z "${HAVE_DLOPEN_FALSE}"; then 36288 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DLOPEN\" was never defined. 36289Usually this means the macro was only invoked conditionally." >&5 36290echo "$as_me: error: conditional \"HAVE_DLOPEN\" was never defined. 36291Usually this means the macro was only invoked conditionally." >&2;} 36292 { (exit 1); exit 1; }; } 36293fi 36294if test -z "${AIX_DYNAMIC_AFS_TRUE}" && test -z "${AIX_DYNAMIC_AFS_FALSE}"; then 36295 { { echo "$as_me:$LINENO: error: conditional \"AIX_DYNAMIC_AFS\" was never defined. 36296Usually this means the macro was only invoked conditionally." >&5 36297echo "$as_me: error: conditional \"AIX_DYNAMIC_AFS\" was never defined. 36298Usually this means the macro was only invoked conditionally." >&2;} 36299 { (exit 1); exit 1; }; } 36300fi 36301if test -z "${IRIX_TRUE}" && test -z "${IRIX_FALSE}"; then 36302 { { echo "$as_me:$LINENO: error: conditional \"IRIX\" was never defined. 36303Usually this means the macro was only invoked conditionally." >&5 36304echo "$as_me: error: conditional \"IRIX\" was never defined. 36305Usually this means the macro was only invoked conditionally." >&2;} 36306 { (exit 1); exit 1; }; } 36307fi 36308if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then 36309 { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. 36310Usually this means the macro was only invoked conditionally." >&5 36311echo "$as_me: error: conditional \"HAVE_X\" was never defined. 36312Usually this means the macro was only invoked conditionally." >&2;} 36313 { (exit 1); exit 1; }; } 36314fi 36315if test -z "${NEED_WRITEAUTH_TRUE}" && test -z "${NEED_WRITEAUTH_FALSE}"; then 36316 { { echo "$as_me:$LINENO: error: conditional \"NEED_WRITEAUTH\" was never defined. 36317Usually this means the macro was only invoked conditionally." >&5 36318echo "$as_me: error: conditional \"NEED_WRITEAUTH\" was never defined. 36319Usually this means the macro was only invoked conditionally." >&2;} 36320 { (exit 1); exit 1; }; } 36321fi 36322if test -z "${el_compat_TRUE}" && test -z "${el_compat_FALSE}"; then 36323 { { echo "$as_me:$LINENO: error: conditional \"el_compat\" was never defined. 36324Usually this means the macro was only invoked conditionally." >&5 36325echo "$as_me: error: conditional \"el_compat\" was never defined. 36326Usually this means the macro was only invoked conditionally." >&2;} 36327 { (exit 1); exit 1; }; } 36328fi 36329 36330: ${CONFIG_STATUS=./config.status} 36331ac_clean_files_save=$ac_clean_files 36332ac_clean_files="$ac_clean_files $CONFIG_STATUS" 36333{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 36334echo "$as_me: creating $CONFIG_STATUS" >&6;} 36335cat >$CONFIG_STATUS <<_ACEOF 36336#! $SHELL 36337# Generated by $as_me. 36338# Run this file to recreate the current configuration. 36339# Compiler output produced by configure, useful for debugging 36340# configure, is in config.log if it exists. 36341 36342debug=false 36343SHELL=\${CONFIG_SHELL-$SHELL} 36344_ACEOF 36345 36346cat >>$CONFIG_STATUS <<\_ACEOF 36347 36348## --------------------- ## 36349## M4sh Initialization. ## 36350## --------------------- ## 36351 36352# Be Bourne compatible 36353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 36354 emulate sh 36355 NULLCMD=: 36356elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 36357 set -o posix 36358fi 36359 36360# NLS nuisances. 36361# Support unset when possible. 36362if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 36363 as_unset=unset 36364else 36365 as_unset=false 36366fi 36367 36368(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 36369 { $as_unset LANG || test "${LANG+set}" != set; } || 36370 { LANG=C; export LANG; } 36371(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 36372 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 36373 { LC_ALL=C; export LC_ALL; } 36374(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 36375 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 36376 { LC_TIME=C; export LC_TIME; } 36377(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 36378 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 36379 { LC_CTYPE=C; export LC_CTYPE; } 36380(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 36381 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 36382 { LANGUAGE=C; export LANGUAGE; } 36383(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 36384 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 36385 { LC_COLLATE=C; export LC_COLLATE; } 36386(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 36387 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 36388 { LC_NUMERIC=C; export LC_NUMERIC; } 36389(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 36390 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 36391 { LC_MESSAGES=C; export LC_MESSAGES; } 36392 36393 36394# Name of the executable. 36395as_me=`(basename "$0") 2>/dev/null || 36396$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 36397 X"$0" : 'X\(//\)$' \| \ 36398 X"$0" : 'X\(/\)$' \| \ 36399 . : '\(.\)' 2>/dev/null || 36400echo X/"$0" | 36401 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 36402 /^X\/\(\/\/\)$/{ s//\1/; q; } 36403 /^X\/\(\/\).*/{ s//\1/; q; } 36404 s/.*/./; q'` 36405 36406# PATH needs CR, and LINENO needs CR and PATH. 36407# Avoid depending upon Character Ranges. 36408as_cr_letters='abcdefghijklmnopqrstuvwxyz' 36409as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36410as_cr_Letters=$as_cr_letters$as_cr_LETTERS 36411as_cr_digits='0123456789' 36412as_cr_alnum=$as_cr_Letters$as_cr_digits 36413 36414# The user is always right. 36415if test "${PATH_SEPARATOR+set}" != set; then 36416 echo "#! /bin/sh" >conftest.sh 36417 echo "exit 0" >>conftest.sh 36418 chmod +x conftest.sh 36419 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 36420 PATH_SEPARATOR=';' 36421 else 36422 PATH_SEPARATOR=: 36423 fi 36424 rm -f conftest.sh 36425fi 36426 36427 36428 as_lineno_1=$LINENO 36429 as_lineno_2=$LINENO 36430 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 36431 test "x$as_lineno_1" != "x$as_lineno_2" && 36432 test "x$as_lineno_3" = "x$as_lineno_2" || { 36433 # Find who we are. Look in the path if we contain no path at all 36434 # relative or not. 36435 case $0 in 36436 *[\\/]* ) as_myself=$0 ;; 36437 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36438for as_dir in $PATH 36439do 36440 IFS=$as_save_IFS 36441 test -z "$as_dir" && as_dir=. 36442 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 36443done 36444 36445 ;; 36446 esac 36447 # We did not find ourselves, most probably we were run as `sh COMMAND' 36448 # in which case we are not to be found in the path. 36449 if test "x$as_myself" = x; then 36450 as_myself=$0 36451 fi 36452 if test ! -f "$as_myself"; then 36453 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 36454echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 36455 { (exit 1); exit 1; }; } 36456 fi 36457 case $CONFIG_SHELL in 36458 '') 36459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36460for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 36461do 36462 IFS=$as_save_IFS 36463 test -z "$as_dir" && as_dir=. 36464 for as_base in sh bash ksh sh5; do 36465 case $as_dir in 36466 /*) 36467 if ("$as_dir/$as_base" -c ' 36468 as_lineno_1=$LINENO 36469 as_lineno_2=$LINENO 36470 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 36471 test "x$as_lineno_1" != "x$as_lineno_2" && 36472 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 36473 CONFIG_SHELL=$as_dir/$as_base 36474 export CONFIG_SHELL 36475 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 36476 fi;; 36477 esac 36478 done 36479done 36480;; 36481 esac 36482 36483 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 36484 # uniformly replaced by the line number. The first 'sed' inserts a 36485 # line-number line before each line; the second 'sed' does the real 36486 # work. The second script uses 'N' to pair each line-number line 36487 # with the numbered line, and appends trailing '-' during 36488 # substitution so that $LINENO is not a special case at line end. 36489 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 36490 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 36491 sed '=' <$as_myself | 36492 sed ' 36493 N 36494 s,$,-, 36495 : loop 36496 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 36497 t loop 36498 s,-$,, 36499 s,^['$as_cr_digits']*\n,, 36500 ' >$as_me.lineno && 36501 chmod +x $as_me.lineno || 36502 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 36503echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 36504 { (exit 1); exit 1; }; } 36505 36506 # Don't try to exec as it changes $[0], causing all sort of problems 36507 # (the dirname of $[0] is not the place where we might find the 36508 # original and so on. Autoconf is especially sensible to this). 36509 . ./$as_me.lineno 36510 # Exit status is that of the last command. 36511 exit 36512} 36513 36514 36515case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 36516 *c*,-n*) ECHO_N= ECHO_C=' 36517' ECHO_T=' ' ;; 36518 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 36519 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 36520esac 36521 36522if expr a : '\(a\)' >/dev/null 2>&1; then 36523 as_expr=expr 36524else 36525 as_expr=false 36526fi 36527 36528rm -f conf$$ conf$$.exe conf$$.file 36529echo >conf$$.file 36530if ln -s conf$$.file conf$$ 2>/dev/null; then 36531 # We could just check for DJGPP; but this test a) works b) is more generic 36532 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 36533 if test -f conf$$.exe; then 36534 # Don't use ln at all; we don't have any links 36535 as_ln_s='cp -p' 36536 else 36537 as_ln_s='ln -s' 36538 fi 36539elif ln conf$$.file conf$$ 2>/dev/null; then 36540 as_ln_s=ln 36541else 36542 as_ln_s='cp -p' 36543fi 36544rm -f conf$$ conf$$.exe conf$$.file 36545 36546as_executable_p="test -f" 36547 36548# Sed expression to map a string onto a valid CPP name. 36549as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 36550 36551# Sed expression to map a string onto a valid variable name. 36552as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 36553 36554 36555# IFS 36556# We need space, tab and new line, in precisely that order. 36557as_nl=' 36558' 36559IFS=" $as_nl" 36560 36561# CDPATH. 36562$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 36563 36564exec 6>&1 36565 36566# Open the log real soon, to keep \$[0] and so on meaningful, and to 36567# report actual input values of CONFIG_FILES etc. instead of their 36568# values after options handling. Logging --version etc. is OK. 36569exec 5>>config.log 36570{ 36571 echo 36572 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 36573## Running $as_me. ## 36574_ASBOX 36575} >&5 36576cat >&5 <<_CSEOF 36577
|
36243This file was extended by Heimdal $as_me 0.5.1, which was
| 36578This file was extended by Heimdal $as_me 0.6, which was
|
36244generated by GNU Autoconf 2.53. Invocation command line was 36245 36246 CONFIG_FILES = $CONFIG_FILES 36247 CONFIG_HEADERS = $CONFIG_HEADERS 36248 CONFIG_LINKS = $CONFIG_LINKS 36249 CONFIG_COMMANDS = $CONFIG_COMMANDS 36250 $ $0 $@ 36251 36252_CSEOF 36253echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 36254echo >&5 36255_ACEOF 36256 36257# Files that config.status was made for. 36258if test -n "$ac_config_files"; then 36259 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 36260fi 36261 36262if test -n "$ac_config_headers"; then 36263 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 36264fi 36265 36266if test -n "$ac_config_links"; then 36267 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 36268fi 36269 36270if test -n "$ac_config_commands"; then 36271 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 36272fi 36273 36274cat >>$CONFIG_STATUS <<\_ACEOF 36275 36276ac_cs_usage="\ 36277\`$as_me' instantiates files from templates according to the 36278current configuration. 36279 36280Usage: $0 [OPTIONS] [FILE]... 36281 36282 -h, --help print this help, then exit 36283 -V, --version print version number, then exit 36284 -d, --debug don't remove temporary files 36285 --recheck update $as_me by reconfiguring in the same conditions 36286 --file=FILE[:TEMPLATE] 36287 instantiate the configuration file FILE 36288 --header=FILE[:TEMPLATE] 36289 instantiate the configuration header FILE 36290 36291Configuration files: 36292$config_files 36293 36294Configuration headers: 36295$config_headers 36296 36297Configuration commands: 36298$config_commands 36299 36300Report bugs to <bug-autoconf@gnu.org>." 36301_ACEOF 36302 36303cat >>$CONFIG_STATUS <<_ACEOF 36304ac_cs_version="\\
| 36579generated by GNU Autoconf 2.53. Invocation command line was 36580 36581 CONFIG_FILES = $CONFIG_FILES 36582 CONFIG_HEADERS = $CONFIG_HEADERS 36583 CONFIG_LINKS = $CONFIG_LINKS 36584 CONFIG_COMMANDS = $CONFIG_COMMANDS 36585 $ $0 $@ 36586 36587_CSEOF 36588echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 36589echo >&5 36590_ACEOF 36591 36592# Files that config.status was made for. 36593if test -n "$ac_config_files"; then 36594 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 36595fi 36596 36597if test -n "$ac_config_headers"; then 36598 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 36599fi 36600 36601if test -n "$ac_config_links"; then 36602 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 36603fi 36604 36605if test -n "$ac_config_commands"; then 36606 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 36607fi 36608 36609cat >>$CONFIG_STATUS <<\_ACEOF 36610 36611ac_cs_usage="\ 36612\`$as_me' instantiates files from templates according to the 36613current configuration. 36614 36615Usage: $0 [OPTIONS] [FILE]... 36616 36617 -h, --help print this help, then exit 36618 -V, --version print version number, then exit 36619 -d, --debug don't remove temporary files 36620 --recheck update $as_me by reconfiguring in the same conditions 36621 --file=FILE[:TEMPLATE] 36622 instantiate the configuration file FILE 36623 --header=FILE[:TEMPLATE] 36624 instantiate the configuration header FILE 36625 36626Configuration files: 36627$config_files 36628 36629Configuration headers: 36630$config_headers 36631 36632Configuration commands: 36633$config_commands 36634 36635Report bugs to <bug-autoconf@gnu.org>." 36636_ACEOF 36637 36638cat >>$CONFIG_STATUS <<_ACEOF 36639ac_cs_version="\\
|
36305Heimdal config.status 0.5.1
| 36640Heimdal config.status 0.6
|
36306configured by $0, generated by GNU Autoconf 2.53, 36307 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 36308 36309Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 36310Free Software Foundation, Inc. 36311This config.status script is free software; the Free Software Foundation 36312gives unlimited permission to copy, distribute and modify it." 36313srcdir=$srcdir 36314INSTALL="$INSTALL" 36315_ACEOF 36316 36317cat >>$CONFIG_STATUS <<\_ACEOF 36318# If no file are specified by the user, then we need to provide default 36319# value. By we need to know if files were specified by the user. 36320ac_need_defaults=: 36321while test $# != 0 36322do 36323 case $1 in 36324 --*=*) 36325 ac_option=`expr "x$1" : 'x\([^=]*\)='` 36326 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 36327 shift 36328 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 36329 shift 36330 ;; 36331 -*);; 36332 *) # This is not an option, so the user has probably given explicit 36333 # arguments. 36334 ac_need_defaults=false;; 36335 esac 36336 36337 case $1 in 36338 # Handling of the options. 36339_ACEOF 36340cat >>$CONFIG_STATUS <<_ACEOF 36341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 36342 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 36343 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 36344_ACEOF 36345cat >>$CONFIG_STATUS <<\_ACEOF 36346 --version | --vers* | -V ) 36347 echo "$ac_cs_version"; exit 0 ;; 36348 --he | --h) 36349 # Conflict between --help and --header 36350 { { echo "$as_me:$LINENO: error: ambiguous option: $1 36351Try \`$0 --help' for more information." >&5 36352echo "$as_me: error: ambiguous option: $1 36353Try \`$0 --help' for more information." >&2;} 36354 { (exit 1); exit 1; }; };; 36355 --help | --hel | -h ) 36356 echo "$ac_cs_usage"; exit 0 ;; 36357 --debug | --d* | -d ) 36358 debug=: ;; 36359 --file | --fil | --fi | --f ) 36360 shift 36361 CONFIG_FILES="$CONFIG_FILES $1" 36362 ac_need_defaults=false;; 36363 --header | --heade | --head | --hea ) 36364 shift 36365 CONFIG_HEADERS="$CONFIG_HEADERS $1" 36366 ac_need_defaults=false;; 36367 36368 # This is an error. 36369 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 36370Try \`$0 --help' for more information." >&5 36371echo "$as_me: error: unrecognized option: $1 36372Try \`$0 --help' for more information." >&2;} 36373 { (exit 1); exit 1; }; } ;; 36374 36375 *) ac_config_targets="$ac_config_targets $1" ;; 36376 36377 esac 36378 shift 36379done 36380 36381_ACEOF 36382 36383cat >>$CONFIG_STATUS <<_ACEOF 36384# 36385# INIT-COMMANDS section. 36386# 36387 36388AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 36389 36390_ACEOF 36391 36392 36393 36394cat >>$CONFIG_STATUS <<\_ACEOF 36395for ac_config_target in $ac_config_targets 36396do 36397 case "$ac_config_target" in 36398 # Handling of arguments. 36399 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 36400 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 36401 "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 36402 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 36403 "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;; 36404 "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;; 36405 "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;; 36406 "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;; 36407 "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;; 36408 "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 36409 "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 36410 "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;; 36411 "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;; 36412 "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 36413 "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 36414 "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 36415 "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 36416 "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 36417 "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 36418 "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 36419 "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 36420 "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 36421 "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 36422 "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 36423 "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 36424 "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 36425 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 36426 "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 36427 "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 36428 "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 36429 "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;; 36430 "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;; 36431 "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;; 36432 "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;; 36433 "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;; 36434 "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;; 36435 "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 36436 "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;; 36437 "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;; 36438 "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;; 36439 "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;; 36440 "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 36441 "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;; 36442 "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;; 36443 "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;; 36444 "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;; 36445 "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;; 36446 "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 36447 "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 36448 "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 36449 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 36450 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 36451 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 36452 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 36453 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 36454echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 36455 { (exit 1); exit 1; }; };; 36456 esac 36457done 36458 36459# If the user did not use the arguments to specify the items to instantiate, 36460# then the envvar interface is used. Set only those that are not. 36461# We use the long form for the default assignment because of an extremely 36462# bizarre bug on SunOS 4.1.3. 36463if $ac_need_defaults; then 36464 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 36465 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 36466 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 36467fi 36468 36469# Create a temporary directory, and hook for its removal unless debugging. 36470$debug || 36471{ 36472 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 36473 trap '{ (exit 1); exit 1; }' 1 2 13 15 36474} 36475 36476# Create a (secure) tmp directory for tmp files. 36477: ${TMPDIR=/tmp} 36478{ 36479 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 36480 test -n "$tmp" && test -d "$tmp" 36481} || 36482{ 36483 tmp=$TMPDIR/cs$$-$RANDOM 36484 (umask 077 && mkdir $tmp) 36485} || 36486{ 36487 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 36488 { (exit 1); exit 1; } 36489} 36490 36491_ACEOF 36492 36493cat >>$CONFIG_STATUS <<_ACEOF 36494 36495# 36496# CONFIG_FILES section. 36497# 36498 36499# No need to generate the scripts if there are no CONFIG_FILES. 36500# This happens for instance when ./config.status config.h 36501if test -n "\$CONFIG_FILES"; then 36502 # Protect against being on the right side of a sed subst in config.status. 36503 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 36504 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 36505s,@SHELL@,$SHELL,;t t 36506s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 36507s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 36508s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 36509s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 36510s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 36511s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 36512s,@exec_prefix@,$exec_prefix,;t t 36513s,@prefix@,$prefix,;t t 36514s,@program_transform_name@,$program_transform_name,;t t 36515s,@bindir@,$bindir,;t t 36516s,@sbindir@,$sbindir,;t t 36517s,@libexecdir@,$libexecdir,;t t 36518s,@datadir@,$datadir,;t t 36519s,@sysconfdir@,$sysconfdir,;t t 36520s,@sharedstatedir@,$sharedstatedir,;t t 36521s,@localstatedir@,$localstatedir,;t t 36522s,@libdir@,$libdir,;t t 36523s,@includedir@,$includedir,;t t 36524s,@oldincludedir@,$oldincludedir,;t t 36525s,@infodir@,$infodir,;t t 36526s,@mandir@,$mandir,;t t 36527s,@build_alias@,$build_alias,;t t 36528s,@host_alias@,$host_alias,;t t 36529s,@target_alias@,$target_alias,;t t 36530s,@DEFS@,$DEFS,;t t 36531s,@ECHO_C@,$ECHO_C,;t t 36532s,@ECHO_N@,$ECHO_N,;t t 36533s,@ECHO_T@,$ECHO_T,;t t 36534s,@LIBS@,$LIBS,;t t 36535s,@CC@,$CC,;t t 36536s,@CFLAGS@,$CFLAGS,;t t 36537s,@LDFLAGS@,$LDFLAGS,;t t 36538s,@CPPFLAGS@,$CPPFLAGS,;t t 36539s,@ac_ct_CC@,$ac_ct_CC,;t t 36540s,@EXEEXT@,$EXEEXT,;t t 36541s,@OBJEXT@,$OBJEXT,;t t 36542s,@CPP@,$CPP,;t t 36543s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 36544s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 36545s,@INSTALL_DATA@,$INSTALL_DATA,;t t 36546s,@PACKAGE@,$PACKAGE,;t t 36547s,@VERSION@,$VERSION,;t t 36548s,@ACLOCAL@,$ACLOCAL,;t t 36549s,@AUTOCONF@,$AUTOCONF,;t t 36550s,@AUTOMAKE@,$AUTOMAKE,;t t 36551s,@AUTOHEADER@,$AUTOHEADER,;t t 36552s,@MAKEINFO@,$MAKEINFO,;t t 36553s,@AMTAR@,$AMTAR,;t t 36554s,@install_sh@,$install_sh,;t t 36555s,@STRIP@,$STRIP,;t t 36556s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 36557s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 36558s,@AWK@,$AWK,;t t 36559s,@SET_MAKE@,$SET_MAKE,;t t 36560s,@DEPDIR@,$DEPDIR,;t t 36561s,@am__include@,$am__include,;t t 36562s,@am__quote@,$am__quote,;t t 36563s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 36564s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 36565s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 36566s,@CCDEPMODE@,$CCDEPMODE,;t t
| 36641configured by $0, generated by GNU Autoconf 2.53, 36642 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 36643 36644Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 36645Free Software Foundation, Inc. 36646This config.status script is free software; the Free Software Foundation 36647gives unlimited permission to copy, distribute and modify it." 36648srcdir=$srcdir 36649INSTALL="$INSTALL" 36650_ACEOF 36651 36652cat >>$CONFIG_STATUS <<\_ACEOF 36653# If no file are specified by the user, then we need to provide default 36654# value. By we need to know if files were specified by the user. 36655ac_need_defaults=: 36656while test $# != 0 36657do 36658 case $1 in 36659 --*=*) 36660 ac_option=`expr "x$1" : 'x\([^=]*\)='` 36661 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 36662 shift 36663 set dummy "$ac_option" "$ac_optarg" ${1+"$@"} 36664 shift 36665 ;; 36666 -*);; 36667 *) # This is not an option, so the user has probably given explicit 36668 # arguments. 36669 ac_need_defaults=false;; 36670 esac 36671 36672 case $1 in 36673 # Handling of the options. 36674_ACEOF 36675cat >>$CONFIG_STATUS <<_ACEOF 36676 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 36677 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" 36678 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; 36679_ACEOF 36680cat >>$CONFIG_STATUS <<\_ACEOF 36681 --version | --vers* | -V ) 36682 echo "$ac_cs_version"; exit 0 ;; 36683 --he | --h) 36684 # Conflict between --help and --header 36685 { { echo "$as_me:$LINENO: error: ambiguous option: $1 36686Try \`$0 --help' for more information." >&5 36687echo "$as_me: error: ambiguous option: $1 36688Try \`$0 --help' for more information." >&2;} 36689 { (exit 1); exit 1; }; };; 36690 --help | --hel | -h ) 36691 echo "$ac_cs_usage"; exit 0 ;; 36692 --debug | --d* | -d ) 36693 debug=: ;; 36694 --file | --fil | --fi | --f ) 36695 shift 36696 CONFIG_FILES="$CONFIG_FILES $1" 36697 ac_need_defaults=false;; 36698 --header | --heade | --head | --hea ) 36699 shift 36700 CONFIG_HEADERS="$CONFIG_HEADERS $1" 36701 ac_need_defaults=false;; 36702 36703 # This is an error. 36704 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 36705Try \`$0 --help' for more information." >&5 36706echo "$as_me: error: unrecognized option: $1 36707Try \`$0 --help' for more information." >&2;} 36708 { (exit 1); exit 1; }; } ;; 36709 36710 *) ac_config_targets="$ac_config_targets $1" ;; 36711 36712 esac 36713 shift 36714done 36715 36716_ACEOF 36717 36718cat >>$CONFIG_STATUS <<_ACEOF 36719# 36720# INIT-COMMANDS section. 36721# 36722 36723AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 36724 36725_ACEOF 36726 36727 36728 36729cat >>$CONFIG_STATUS <<\_ACEOF 36730for ac_config_target in $ac_config_targets 36731do 36732 case "$ac_config_target" in 36733 # Handling of arguments. 36734 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 36735 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 36736 "include/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/kadm5/Makefile" ;; 36737 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 36738 "lib/45/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/45/Makefile" ;; 36739 "lib/auth/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;; 36740 "lib/auth/afskauthlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/afskauthlib/Makefile" ;; 36741 "lib/auth/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/pam/Makefile" ;; 36742 "lib/auth/sia/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/auth/sia/Makefile" ;; 36743 "lib/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/asn1/Makefile" ;; 36744 "lib/com_err/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/com_err/Makefile" ;; 36745 "lib/des/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/des/Makefile" ;; 36746 "lib/editline/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/editline/Makefile" ;; 36747 "lib/gssapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/gssapi/Makefile" ;; 36748 "lib/hdb/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/hdb/Makefile" ;; 36749 "lib/kadm5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kadm5/Makefile" ;; 36750 "lib/kafs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kafs/Makefile" ;; 36751 "lib/kdfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/kdfs/Makefile" ;; 36752 "lib/krb5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/krb5/Makefile" ;; 36753 "lib/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/otp/Makefile" ;; 36754 "lib/roken/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/roken/Makefile" ;; 36755 "lib/sl/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/sl/Makefile" ;; 36756 "lib/vers/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/vers/Makefile" ;; 36757 "kuser/Makefile" ) CONFIG_FILES="$CONFIG_FILES kuser/Makefile" ;; 36758 "kpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES kpasswd/Makefile" ;; 36759 "kadmin/Makefile" ) CONFIG_FILES="$CONFIG_FILES kadmin/Makefile" ;; 36760 "admin/Makefile" ) CONFIG_FILES="$CONFIG_FILES admin/Makefile" ;; 36761 "kdc/Makefile" ) CONFIG_FILES="$CONFIG_FILES kdc/Makefile" ;; 36762 "appl/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/Makefile" ;; 36763 "appl/afsutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/afsutil/Makefile" ;; 36764 "appl/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/Makefile" ;; 36765 "appl/ftp/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/common/Makefile" ;; 36766 "appl/ftp/ftp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftp/Makefile" ;; 36767 "appl/ftp/ftpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/ftp/ftpd/Makefile" ;; 36768 "appl/kx/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kx/Makefile" ;; 36769 "appl/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/login/Makefile" ;; 36770 "appl/otp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/otp/Makefile" ;; 36771 "appl/popper/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/popper/Makefile" ;; 36772 "appl/push/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/push/Makefile" ;; 36773 "appl/rsh/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rsh/Makefile" ;; 36774 "appl/rcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/rcp/Makefile" ;; 36775 "appl/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/su/Makefile" ;; 36776 "appl/xnlock/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/xnlock/Makefile" ;; 36777 "appl/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/Makefile" ;; 36778 "appl/telnet/libtelnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/libtelnet/Makefile" ;; 36779 "appl/telnet/telnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnet/Makefile" ;; 36780 "appl/telnet/telnetd/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/telnet/telnetd/Makefile" ;; 36781 "appl/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/test/Makefile" ;; 36782 "appl/kf/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/kf/Makefile" ;; 36783 "appl/dceutils/Makefile" ) CONFIG_FILES="$CONFIG_FILES appl/dceutils/Makefile" ;; 36784 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 36785 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 36786 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 36787 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;; 36788 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 36789echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 36790 { (exit 1); exit 1; }; };; 36791 esac 36792done 36793 36794# If the user did not use the arguments to specify the items to instantiate, 36795# then the envvar interface is used. Set only those that are not. 36796# We use the long form for the default assignment because of an extremely 36797# bizarre bug on SunOS 4.1.3. 36798if $ac_need_defaults; then 36799 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 36800 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 36801 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 36802fi 36803 36804# Create a temporary directory, and hook for its removal unless debugging. 36805$debug || 36806{ 36807 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 36808 trap '{ (exit 1); exit 1; }' 1 2 13 15 36809} 36810 36811# Create a (secure) tmp directory for tmp files. 36812: ${TMPDIR=/tmp} 36813{ 36814 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && 36815 test -n "$tmp" && test -d "$tmp" 36816} || 36817{ 36818 tmp=$TMPDIR/cs$$-$RANDOM 36819 (umask 077 && mkdir $tmp) 36820} || 36821{ 36822 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 36823 { (exit 1); exit 1; } 36824} 36825 36826_ACEOF 36827 36828cat >>$CONFIG_STATUS <<_ACEOF 36829 36830# 36831# CONFIG_FILES section. 36832# 36833 36834# No need to generate the scripts if there are no CONFIG_FILES. 36835# This happens for instance when ./config.status config.h 36836if test -n "\$CONFIG_FILES"; then 36837 # Protect against being on the right side of a sed subst in config.status. 36838 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 36839 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 36840s,@SHELL@,$SHELL,;t t 36841s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 36842s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 36843s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 36844s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 36845s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 36846s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 36847s,@exec_prefix@,$exec_prefix,;t t 36848s,@prefix@,$prefix,;t t 36849s,@program_transform_name@,$program_transform_name,;t t 36850s,@bindir@,$bindir,;t t 36851s,@sbindir@,$sbindir,;t t 36852s,@libexecdir@,$libexecdir,;t t 36853s,@datadir@,$datadir,;t t 36854s,@sysconfdir@,$sysconfdir,;t t 36855s,@sharedstatedir@,$sharedstatedir,;t t 36856s,@localstatedir@,$localstatedir,;t t 36857s,@libdir@,$libdir,;t t 36858s,@includedir@,$includedir,;t t 36859s,@oldincludedir@,$oldincludedir,;t t 36860s,@infodir@,$infodir,;t t 36861s,@mandir@,$mandir,;t t 36862s,@build_alias@,$build_alias,;t t 36863s,@host_alias@,$host_alias,;t t 36864s,@target_alias@,$target_alias,;t t 36865s,@DEFS@,$DEFS,;t t 36866s,@ECHO_C@,$ECHO_C,;t t 36867s,@ECHO_N@,$ECHO_N,;t t 36868s,@ECHO_T@,$ECHO_T,;t t 36869s,@LIBS@,$LIBS,;t t 36870s,@CC@,$CC,;t t 36871s,@CFLAGS@,$CFLAGS,;t t 36872s,@LDFLAGS@,$LDFLAGS,;t t 36873s,@CPPFLAGS@,$CPPFLAGS,;t t 36874s,@ac_ct_CC@,$ac_ct_CC,;t t 36875s,@EXEEXT@,$EXEEXT,;t t 36876s,@OBJEXT@,$OBJEXT,;t t 36877s,@CPP@,$CPP,;t t 36878s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 36879s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 36880s,@INSTALL_DATA@,$INSTALL_DATA,;t t 36881s,@PACKAGE@,$PACKAGE,;t t 36882s,@VERSION@,$VERSION,;t t 36883s,@ACLOCAL@,$ACLOCAL,;t t 36884s,@AUTOCONF@,$AUTOCONF,;t t 36885s,@AUTOMAKE@,$AUTOMAKE,;t t 36886s,@AUTOHEADER@,$AUTOHEADER,;t t 36887s,@MAKEINFO@,$MAKEINFO,;t t 36888s,@AMTAR@,$AMTAR,;t t 36889s,@install_sh@,$install_sh,;t t 36890s,@STRIP@,$STRIP,;t t 36891s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 36892s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 36893s,@AWK@,$AWK,;t t 36894s,@SET_MAKE@,$SET_MAKE,;t t 36895s,@DEPDIR@,$DEPDIR,;t t 36896s,@am__include@,$am__include,;t t 36897s,@am__quote@,$am__quote,;t t 36898s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 36899s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 36900s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 36901s,@CCDEPMODE@,$CCDEPMODE,;t t
|
| 36902s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 36903s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 36904s,@MAINT@,$MAINT,;t t
|
36567s,@build@,$build,;t t 36568s,@build_cpu@,$build_cpu,;t t 36569s,@build_vendor@,$build_vendor,;t t 36570s,@build_os@,$build_os,;t t 36571s,@host@,$host,;t t 36572s,@host_cpu@,$host_cpu,;t t 36573s,@host_vendor@,$host_vendor,;t t 36574s,@host_os@,$host_os,;t t 36575s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t 36576s,@YACC@,$YACC,;t t 36577s,@LEX@,$LEX,;t t 36578s,@LEXLIB@,$LEXLIB,;t t 36579s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 36580s,@LN_S@,$LN_S,;t t 36581s,@ECHO@,$ECHO,;t t 36582s,@RANLIB@,$RANLIB,;t t 36583s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 36584s,@LIBTOOL@,$LIBTOOL,;t t 36585s,@WFLAGS@,$WFLAGS,;t t 36586s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t 36587s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t 36588s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t 36589s,@LIB_openldap@,$LIB_openldap,;t t 36590s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t 36591s,@LIB_krb4@,$LIB_krb4,;t t 36592s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t 36593s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t 36594s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t 36595s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t 36596s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t 36597s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t 36598s,@KRB4_TRUE@,$KRB4_TRUE,;t t 36599s,@KRB4_FALSE@,$KRB4_FALSE,;t t 36600s,@KRB5_TRUE@,$KRB5_TRUE,;t t 36601s,@KRB5_FALSE@,$KRB5_FALSE,;t t 36602s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t 36603s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t 36604s,@LIB_kdb@,$LIB_kdb,;t t 36605s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t 36606s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t 36607s,@DIR_des@,$DIR_des,;t t 36608s,@INCLUDE_des@,$INCLUDE_des,;t t 36609s,@LIB_des@,$LIB_des,;t t 36610s,@LIB_des_a@,$LIB_des_a,;t t 36611s,@LIB_des_so@,$LIB_des_so,;t t 36612s,@LIB_des_appl@,$LIB_des_appl,;t t 36613s,@DCE_TRUE@,$DCE_TRUE,;t t 36614s,@DCE_FALSE@,$DCE_FALSE,;t t 36615s,@dpagaix_cflags@,$dpagaix_cflags,;t t 36616s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t 36617s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t 36618s,@LIB_db_create@,$LIB_db_create,;t t 36619s,@LIB_dbopen@,$LIB_dbopen,;t t 36620s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t 36621s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t 36622s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t 36623s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t 36624s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t 36625s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t 36626s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t 36627s,@DBLIB@,$DBLIB,;t t 36628s,@LIB_NDBM@,$LIB_NDBM,;t t 36629s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t 36630s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t 36631s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t 36632s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t 36633s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t 36634s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t 36635s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t 36636s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t 36637s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t 36638s,@LIB_socket@,$LIB_socket,;t t 36639s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t 36640s,@LIB_syslog@,$LIB_syslog,;t t 36641s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t 36642s,@LIB_res_search@,$LIB_res_search,;t t 36643s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t 36644s,@LIB_dn_expand@,$LIB_dn_expand,;t t 36645s,@LIBOBJS@,$LIBOBJS,;t t 36646s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t 36647s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t 36648s,@LIB_getsockopt@,$LIB_getsockopt,;t t 36649s,@LIB_setsockopt@,$LIB_setsockopt,;t t 36650s,@LIB_hstrerror@,$LIB_hstrerror,;t t 36651s,@LIB_bswap16@,$LIB_bswap16,;t t 36652s,@LIB_bswap32@,$LIB_bswap32,;t t 36653s,@LIB_pidfile@,$LIB_pidfile,;t t 36654s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t 36655s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t 36656s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t 36657s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t 36658s,@LIB_crypt@,$LIB_crypt,;t t 36659s,@DIR_roken@,$DIR_roken,;t t 36660s,@LIB_roken@,$LIB_roken,;t t 36661s,@INCLUDES_roken@,$INCLUDES_roken,;t t 36662s,@LIB_otp@,$LIB_otp,;t t 36663s,@OTP_TRUE@,$OTP_TRUE,;t t 36664s,@OTP_FALSE@,$OTP_FALSE,;t t 36665s,@LIB_security@,$LIB_security,;t t 36666s,@NROFF@,$NROFF,;t t 36667s,@GROFF@,$GROFF,;t t 36668s,@CATMAN@,$CATMAN,;t t 36669s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t 36670s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t 36671s,@CATMANEXT@,$CATMANEXT,;t t 36672s,@INCLUDE_readline@,$INCLUDE_readline,;t t 36673s,@LIB_readline@,$LIB_readline,;t t 36674s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t 36675s,@LIB_hesiod@,$LIB_hesiod,;t t 36676s,@AIX_TRUE@,$AIX_TRUE,;t t 36677s,@AIX_FALSE@,$AIX_FALSE,;t t 36678s,@AIX4_TRUE@,$AIX4_TRUE,;t t 36679s,@AIX4_FALSE@,$AIX4_FALSE,;t t 36680s,@LIB_dlopen@,$LIB_dlopen,;t t 36681s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t 36682s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t 36683s,@LIB_loadquery@,$LIB_loadquery,;t t 36684s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t 36685s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t 36686s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t 36687s,@IRIX_TRUE@,$IRIX_TRUE,;t t 36688s,@IRIX_FALSE@,$IRIX_FALSE,;t t 36689s,@X_CFLAGS@,$X_CFLAGS,;t t 36690s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 36691s,@X_LIBS@,$X_LIBS,;t t 36692s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 36693s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 36694s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 36695s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t 36696s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t 36697s,@LIB_XauFileName@,$LIB_XauFileName,;t t 36698s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t 36699s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t 36700s,@LIB_logwtmp@,$LIB_logwtmp,;t t 36701s,@LIB_logout@,$LIB_logout,;t t 36702s,@LIB_openpty@,$LIB_openpty,;t t 36703s,@LIB_tgetent@,$LIB_tgetent,;t t 36704s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t 36705s,@LIB_el_init@,$LIB_el_init,;t t 36706s,@el_compat_TRUE@,$el_compat_TRUE,;t t 36707s,@el_compat_FALSE@,$el_compat_FALSE,;t t 36708s,@COMPILE_ET@,$COMPILE_ET,;t t 36709s,@DIR_com_err@,$DIR_com_err,;t t 36710s,@LIB_com_err@,$LIB_com_err,;t t 36711s,@LIB_com_err_a@,$LIB_com_err_a,;t t 36712s,@LIB_com_err_so@,$LIB_com_err_so,;t t 36713s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t 36714s,@LTLIBOBJS@,$LTLIBOBJS,;t t 36715CEOF 36716 36717_ACEOF 36718 36719 cat >>$CONFIG_STATUS <<\_ACEOF 36720 # Split the substitutions into bite-sized pieces for seds with 36721 # small command number limits, like on Digital OSF/1 and HP-UX. 36722 ac_max_sed_lines=48 36723 ac_sed_frag=1 # Number of current file. 36724 ac_beg=1 # First line for current file. 36725 ac_end=$ac_max_sed_lines # Line after last line for current file. 36726 ac_more_lines=: 36727 ac_sed_cmds= 36728 while $ac_more_lines; do 36729 if test $ac_beg -gt 1; then 36730 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 36731 else 36732 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 36733 fi 36734 if test ! -s $tmp/subs.frag; then 36735 ac_more_lines=false 36736 else 36737 # The purpose of the label and of the branching condition is to 36738 # speed up the sed processing (if there are no `@' at all, there 36739 # is no need to browse any of the substitutions). 36740 # These are the two extra sed commands mentioned above. 36741 (echo ':t 36742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 36743 if test -z "$ac_sed_cmds"; then 36744 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 36745 else 36746 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 36747 fi 36748 ac_sed_frag=`expr $ac_sed_frag + 1` 36749 ac_beg=$ac_end 36750 ac_end=`expr $ac_end + $ac_max_sed_lines` 36751 fi 36752 done 36753 if test -z "$ac_sed_cmds"; then 36754 ac_sed_cmds=cat 36755 fi 36756fi # test -n "$CONFIG_FILES" 36757 36758_ACEOF 36759cat >>$CONFIG_STATUS <<\_ACEOF 36760for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 36761 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 36762 case $ac_file in 36763 - | *:- | *:-:* ) # input from stdin 36764 cat >$tmp/stdin 36765 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 36766 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 36767 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 36768 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 36769 * ) ac_file_in=$ac_file.in ;; 36770 esac 36771 36772 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 36773 ac_dir=`(dirname "$ac_file") 2>/dev/null || 36774$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 36775 X"$ac_file" : 'X\(//\)[^/]' \| \ 36776 X"$ac_file" : 'X\(//\)$' \| \ 36777 X"$ac_file" : 'X\(/\)' \| \ 36778 . : '\(.\)' 2>/dev/null || 36779echo X"$ac_file" | 36780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 36781 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 36782 /^X\(\/\/\)$/{ s//\1/; q; } 36783 /^X\(\/\).*/{ s//\1/; q; } 36784 s/.*/./; q'` 36785 { case "$ac_dir" in 36786 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 36787 *) as_incr_dir=.;; 36788esac 36789as_dummy="$ac_dir" 36790for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 36791 case $as_mkdir_dir in 36792 # Skip DOS drivespec 36793 ?:) as_incr_dir=$as_mkdir_dir ;; 36794 *) 36795 as_incr_dir=$as_incr_dir/$as_mkdir_dir 36796 test -d "$as_incr_dir" || 36797 mkdir "$as_incr_dir" || 36798 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 36799echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 36800 { (exit 1); exit 1; }; } 36801 ;; 36802 esac 36803done; } 36804 36805 ac_builddir=. 36806 36807if test "$ac_dir" != .; then 36808 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 36809 # A "../" for each directory in $ac_dir_suffix. 36810 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 36811else 36812 ac_dir_suffix= ac_top_builddir= 36813fi 36814 36815case $srcdir in 36816 .) # No --srcdir option. We are building in place. 36817 ac_srcdir=. 36818 if test -z "$ac_top_builddir"; then 36819 ac_top_srcdir=. 36820 else 36821 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 36822 fi ;; 36823 [\\/]* | ?:[\\/]* ) # Absolute path. 36824 ac_srcdir=$srcdir$ac_dir_suffix; 36825 ac_top_srcdir=$srcdir ;; 36826 *) # Relative path. 36827 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 36828 ac_top_srcdir=$ac_top_builddir$srcdir ;; 36829esac 36830# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 36831# absolute. 36832ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 36833ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 36834ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 36835ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 36836 36837 36838 case $INSTALL in 36839 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 36840 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 36841 esac 36842 36843 if test x"$ac_file" != x-; then 36844 { echo "$as_me:$LINENO: creating $ac_file" >&5 36845echo "$as_me: creating $ac_file" >&6;} 36846 rm -f "$ac_file" 36847 fi 36848 # Let's still pretend it is `configure' which instantiates (i.e., don't 36849 # use $as_me), people would be surprised to read: 36850 # /* config.h. Generated by config.status. */ 36851 if test x"$ac_file" = x-; then 36852 configure_input= 36853 else 36854 configure_input="$ac_file. " 36855 fi 36856 configure_input=$configure_input"Generated from `echo $ac_file_in | 36857 sed 's,.*/,,'` by configure." 36858 36859 # First look for the input files in the build tree, otherwise in the 36860 # src tree. 36861 ac_file_inputs=`IFS=: 36862 for f in $ac_file_in; do 36863 case $f in 36864 -) echo $tmp/stdin ;; 36865 [\\/$]*) 36866 # Absolute (can't be DOS-style, as IFS=:) 36867 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 36868echo "$as_me: error: cannot find input file: $f" >&2;} 36869 { (exit 1); exit 1; }; } 36870 echo $f;; 36871 *) # Relative 36872 if test -f "$f"; then 36873 # Build tree 36874 echo $f 36875 elif test -f "$srcdir/$f"; then 36876 # Source tree 36877 echo $srcdir/$f 36878 else 36879 # /dev/null tree 36880 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 36881echo "$as_me: error: cannot find input file: $f" >&2;} 36882 { (exit 1); exit 1; }; } 36883 fi;; 36884 esac 36885 done` || { (exit 1); exit 1; } 36886_ACEOF 36887cat >>$CONFIG_STATUS <<_ACEOF 36888 sed "$ac_vpsub 36889$extrasub 36890_ACEOF 36891cat >>$CONFIG_STATUS <<\_ACEOF 36892:t 36893/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 36894s,@configure_input@,$configure_input,;t t 36895s,@srcdir@,$ac_srcdir,;t t 36896s,@abs_srcdir@,$ac_abs_srcdir,;t t 36897s,@top_srcdir@,$ac_top_srcdir,;t t 36898s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 36899s,@builddir@,$ac_builddir,;t t 36900s,@abs_builddir@,$ac_abs_builddir,;t t 36901s,@top_builddir@,$ac_top_builddir,;t t 36902s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 36903s,@INSTALL@,$ac_INSTALL,;t t 36904" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 36905 rm -f $tmp/stdin 36906 if test x"$ac_file" != x-; then 36907 mv $tmp/out $ac_file 36908 else 36909 cat $tmp/out 36910 rm -f $tmp/out 36911 fi 36912 36913done 36914_ACEOF 36915cat >>$CONFIG_STATUS <<\_ACEOF 36916 36917# 36918# CONFIG_HEADER section. 36919# 36920 36921# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 36922# NAME is the cpp macro being defined and VALUE is the value it is being given. 36923# 36924# ac_d sets the value in "#define NAME VALUE" lines. 36925ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 36926ac_dB='[ ].*$,\1#\2' 36927ac_dC=' ' 36928ac_dD=',;t' 36929# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 36930ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 36931ac_uB='$,\1#\2define\3' 36932ac_uC=' ' 36933ac_uD=',;t' 36934 36935for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 36936 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 36937 case $ac_file in 36938 - | *:- | *:-:* ) # input from stdin 36939 cat >$tmp/stdin 36940 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 36941 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 36942 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 36943 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 36944 * ) ac_file_in=$ac_file.in ;; 36945 esac 36946 36947 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 36948echo "$as_me: creating $ac_file" >&6;} 36949 36950 # First look for the input files in the build tree, otherwise in the 36951 # src tree. 36952 ac_file_inputs=`IFS=: 36953 for f in $ac_file_in; do 36954 case $f in 36955 -) echo $tmp/stdin ;; 36956 [\\/$]*) 36957 # Absolute (can't be DOS-style, as IFS=:) 36958 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 36959echo "$as_me: error: cannot find input file: $f" >&2;} 36960 { (exit 1); exit 1; }; } 36961 echo $f;; 36962 *) # Relative 36963 if test -f "$f"; then 36964 # Build tree 36965 echo $f 36966 elif test -f "$srcdir/$f"; then 36967 # Source tree 36968 echo $srcdir/$f 36969 else 36970 # /dev/null tree 36971 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 36972echo "$as_me: error: cannot find input file: $f" >&2;} 36973 { (exit 1); exit 1; }; } 36974 fi;; 36975 esac 36976 done` || { (exit 1); exit 1; } 36977 # Remove the trailing spaces. 36978 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 36979 36980_ACEOF 36981 36982# Transform confdefs.h into two sed scripts, `conftest.defines' and 36983# `conftest.undefs', that substitutes the proper values into 36984# config.h.in to produce config.h. The first handles `#define' 36985# templates, and the second `#undef' templates. 36986# And first: Protect against being on the right side of a sed subst in 36987# config.status. Protect against being in an unquoted here document 36988# in config.status. 36989rm -f conftest.defines conftest.undefs 36990# Using a here document instead of a string reduces the quoting nightmare. 36991# Putting comments in sed scripts is not portable. 36992# 36993# `end' is used to avoid that the second main sed command (meant for 36994# 0-ary CPP macros) applies to n-ary macro definitions. 36995# See the Autoconf documentation for `clear'. 36996cat >confdef2sed.sed <<\_ACEOF 36997s/[\\&,]/\\&/g 36998s,[\\$`],\\&,g 36999t clear 37000: clear 37001s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 37002t end 37003s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 37004: end 37005_ACEOF 37006# If some macros were called several times there might be several times 37007# the same #defines, which is useless. Nevertheless, we may not want to 37008# sort them, since we want the *last* AC-DEFINE to be honored. 37009uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 37010sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 37011rm -f confdef2sed.sed 37012 37013# This sed command replaces #undef with comments. This is necessary, for 37014# example, in the case of _POSIX_SOURCE, which is predefined and required 37015# on some systems where configure will not decide to define it. 37016cat >>conftest.undefs <<\_ACEOF 37017s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 37018_ACEOF 37019 37020# Break up conftest.defines because some shells have a limit on the size 37021# of here documents, and old seds have small limits too (100 cmds). 37022echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 37023echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 37024echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 37025echo ' :' >>$CONFIG_STATUS 37026rm -f conftest.tail 37027while grep . conftest.defines >/dev/null 37028do 37029 # Write a limited-size here document to $tmp/defines.sed. 37030 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 37031 # Speed up: don't consider the non `#define' lines. 37032 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 37033 # Work around the forget-to-reset-the-flag bug. 37034 echo 't clr' >>$CONFIG_STATUS 37035 echo ': clr' >>$CONFIG_STATUS 37036 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 37037 echo 'CEOF 37038 sed -f $tmp/defines.sed $tmp/in >$tmp/out 37039 rm -f $tmp/in 37040 mv $tmp/out $tmp/in 37041' >>$CONFIG_STATUS 37042 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 37043 rm -f conftest.defines 37044 mv conftest.tail conftest.defines 37045done 37046rm -f conftest.defines 37047echo ' fi # egrep' >>$CONFIG_STATUS 37048echo >>$CONFIG_STATUS 37049 37050# Break up conftest.undefs because some shells have a limit on the size 37051# of here documents, and old seds have small limits too (100 cmds). 37052echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 37053rm -f conftest.tail 37054while grep . conftest.undefs >/dev/null 37055do 37056 # Write a limited-size here document to $tmp/undefs.sed. 37057 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 37058 # Speed up: don't consider the non `#undef' 37059 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 37060 # Work around the forget-to-reset-the-flag bug. 37061 echo 't clr' >>$CONFIG_STATUS 37062 echo ': clr' >>$CONFIG_STATUS 37063 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 37064 echo 'CEOF 37065 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 37066 rm -f $tmp/in 37067 mv $tmp/out $tmp/in 37068' >>$CONFIG_STATUS 37069 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 37070 rm -f conftest.undefs 37071 mv conftest.tail conftest.undefs 37072done 37073rm -f conftest.undefs 37074 37075cat >>$CONFIG_STATUS <<\_ACEOF 37076 # Let's still pretend it is `configure' which instantiates (i.e., don't 37077 # use $as_me), people would be surprised to read: 37078 # /* config.h. Generated by config.status. */ 37079 if test x"$ac_file" = x-; then 37080 echo "/* Generated by configure. */" >$tmp/config.h 37081 else 37082 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 37083 fi 37084 cat $tmp/in >>$tmp/config.h 37085 rm -f $tmp/in 37086 if test x"$ac_file" != x-; then 37087 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 37088 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 37089echo "$as_me: $ac_file is unchanged" >&6;} 37090 else 37091 ac_dir=`(dirname "$ac_file") 2>/dev/null || 37092$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37093 X"$ac_file" : 'X\(//\)[^/]' \| \ 37094 X"$ac_file" : 'X\(//\)$' \| \ 37095 X"$ac_file" : 'X\(/\)' \| \ 37096 . : '\(.\)' 2>/dev/null || 37097echo X"$ac_file" | 37098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37099 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37100 /^X\(\/\/\)$/{ s//\1/; q; } 37101 /^X\(\/\).*/{ s//\1/; q; } 37102 s/.*/./; q'` 37103 { case "$ac_dir" in 37104 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 37105 *) as_incr_dir=.;; 37106esac 37107as_dummy="$ac_dir" 37108for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 37109 case $as_mkdir_dir in 37110 # Skip DOS drivespec 37111 ?:) as_incr_dir=$as_mkdir_dir ;; 37112 *) 37113 as_incr_dir=$as_incr_dir/$as_mkdir_dir 37114 test -d "$as_incr_dir" || 37115 mkdir "$as_incr_dir" || 37116 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 37117echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 37118 { (exit 1); exit 1; }; } 37119 ;; 37120 esac 37121done; } 37122 37123 rm -f $ac_file 37124 mv $tmp/config.h $ac_file 37125 fi 37126 else 37127 cat $tmp/config.h 37128 rm -f $tmp/config.h 37129 fi 37130 # Run the commands associated with the file. 37131 case $ac_file in 37132 include/config.h ) # update the timestamp 37133echo 'timestamp for include/config.h' >"include/stamp-h1" 37134 ;; 37135 esac 37136done 37137_ACEOF 37138cat >>$CONFIG_STATUS <<\_ACEOF 37139 37140# 37141# CONFIG_COMMANDS section. 37142# 37143for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 37144 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 37145 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 37146 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 37147$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37148 X"$ac_dest" : 'X\(//\)[^/]' \| \ 37149 X"$ac_dest" : 'X\(//\)$' \| \ 37150 X"$ac_dest" : 'X\(/\)' \| \ 37151 . : '\(.\)' 2>/dev/null || 37152echo X"$ac_dest" | 37153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37154 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37155 /^X\(\/\/\)$/{ s//\1/; q; } 37156 /^X\(\/\).*/{ s//\1/; q; } 37157 s/.*/./; q'` 37158 ac_builddir=. 37159 37160if test "$ac_dir" != .; then 37161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 37162 # A "../" for each directory in $ac_dir_suffix. 37163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 37164else 37165 ac_dir_suffix= ac_top_builddir= 37166fi 37167 37168case $srcdir in 37169 .) # No --srcdir option. We are building in place. 37170 ac_srcdir=. 37171 if test -z "$ac_top_builddir"; then 37172 ac_top_srcdir=. 37173 else 37174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 37175 fi ;; 37176 [\\/]* | ?:[\\/]* ) # Absolute path. 37177 ac_srcdir=$srcdir$ac_dir_suffix; 37178 ac_top_srcdir=$srcdir ;; 37179 *) # Relative path. 37180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 37181 ac_top_srcdir=$ac_top_builddir$srcdir ;; 37182esac 37183# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 37184# absolute. 37185ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 37186ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 37187ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 37188ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 37189 37190 37191 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 37192echo "$as_me: executing $ac_dest commands" >&6;} 37193 case $ac_dest in 37194 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 37195 # Strip MF so we end up with the name of the file. 37196 mf=`echo "$mf" | sed -e 's/:.*$//'` 37197 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then 37198 dirpart=`(dirname "$mf") 2>/dev/null || 37199$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37200 X"$mf" : 'X\(//\)[^/]' \| \ 37201 X"$mf" : 'X\(//\)$' \| \ 37202 X"$mf" : 'X\(/\)' \| \ 37203 . : '\(.\)' 2>/dev/null || 37204echo X"$mf" | 37205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37206 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37207 /^X\(\/\/\)$/{ s//\1/; q; } 37208 /^X\(\/\).*/{ s//\1/; q; } 37209 s/.*/./; q'` 37210 else 37211 continue 37212 fi 37213 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 37214 # Extract the definition of DEP_FILES from the Makefile without 37215 # running `make'. 37216 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 37217 test -z "$DEPDIR" && continue 37218 # When using ansi2knr, U may be empty or an underscore; expand it 37219 U=`sed -n -e '/^U = / s///p' < "$mf"` 37220 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 37221 # We invoke sed twice because it is the simplest approach to 37222 # changing $(DEPDIR) to its actual value in the expansion. 37223 for file in `sed -n -e ' 37224 /^DEP_FILES = .*\\\\$/ { 37225 s/^DEP_FILES = // 37226 :loop 37227 s/\\\\$// 37228 p 37229 n 37230 /\\\\$/ b loop 37231 p 37232 } 37233 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 37234 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 37235 # Make sure the directory exists. 37236 test -f "$dirpart/$file" && continue 37237 fdir=`(dirname "$file") 2>/dev/null || 37238$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37239 X"$file" : 'X\(//\)[^/]' \| \ 37240 X"$file" : 'X\(//\)$' \| \ 37241 X"$file" : 'X\(/\)' \| \ 37242 . : '\(.\)' 2>/dev/null || 37243echo X"$file" | 37244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37245 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37246 /^X\(\/\/\)$/{ s//\1/; q; } 37247 /^X\(\/\).*/{ s//\1/; q; } 37248 s/.*/./; q'` 37249 { case $dirpart/$fdir in 37250 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 37251 *) as_incr_dir=.;; 37252esac 37253as_dummy=$dirpart/$fdir 37254for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 37255 case $as_mkdir_dir in 37256 # Skip DOS drivespec 37257 ?:) as_incr_dir=$as_mkdir_dir ;; 37258 *) 37259 as_incr_dir=$as_incr_dir/$as_mkdir_dir 37260 test -d "$as_incr_dir" || 37261 mkdir "$as_incr_dir" || 37262 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 37263echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} 37264 { (exit 1); exit 1; }; } 37265 ;; 37266 esac 37267done; } 37268 37269 # echo "creating $dirpart/$file" 37270 echo '# dummy' > "$dirpart/$file" 37271 done 37272done 37273 ;; 37274 esac 37275done 37276_ACEOF 37277 37278cat >>$CONFIG_STATUS <<\_ACEOF 37279 37280{ (exit 0); exit 0; } 37281_ACEOF 37282chmod +x $CONFIG_STATUS 37283ac_clean_files=$ac_clean_files_save 37284 37285 37286# configure is writing to config.log, and then calls config.status. 37287# config.status does its own redirection, appending to config.log. 37288# Unfortunately, on DOS this fails, as config.log is still kept open 37289# by configure, so config.status won't be able to write to it; its 37290# output is simply discarded. So we exec the FD to /dev/null, 37291# effectively closing config.log, so it can be properly (re)opened and 37292# appended to by config.status. When coming back to configure, we 37293# need to make the FD available again. 37294if test "$no_create" != yes; then 37295 ac_cs_success=: 37296 exec 5>/dev/null 37297 $SHELL $CONFIG_STATUS || ac_cs_success=false 37298 exec 5>>config.log 37299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 37300 # would make configure fail if this is the last instruction. 37301 $ac_cs_success || { (exit 1); exit 1; } 37302fi 37303 37304 37305 37306cat > include/newversion.h.in <<EOF 37307const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
| 36905s,@build@,$build,;t t 36906s,@build_cpu@,$build_cpu,;t t 36907s,@build_vendor@,$build_vendor,;t t 36908s,@build_os@,$build_os,;t t 36909s,@host@,$host,;t t 36910s,@host_cpu@,$host_cpu,;t t 36911s,@host_vendor@,$host_vendor,;t t 36912s,@host_os@,$host_os,;t t 36913s,@CANONICAL_HOST@,$CANONICAL_HOST,;t t 36914s,@YACC@,$YACC,;t t 36915s,@LEX@,$LEX,;t t 36916s,@LEXLIB@,$LEXLIB,;t t 36917s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t 36918s,@LN_S@,$LN_S,;t t 36919s,@ECHO@,$ECHO,;t t 36920s,@RANLIB@,$RANLIB,;t t 36921s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 36922s,@LIBTOOL@,$LIBTOOL,;t t 36923s,@WFLAGS@,$WFLAGS,;t t 36924s,@WFLAGS_NOUNUSED@,$WFLAGS_NOUNUSED,;t t 36925s,@WFLAGS_NOIMPLICITINT@,$WFLAGS_NOIMPLICITINT,;t t 36926s,@INCLUDE_openldap@,$INCLUDE_openldap,;t t 36927s,@LIB_openldap@,$LIB_openldap,;t t 36928s,@INCLUDE_krb4@,$INCLUDE_krb4,;t t 36929s,@LIB_krb4@,$LIB_krb4,;t t 36930s,@EXTRA_LIB45@,$EXTRA_LIB45,;t t 36931s,@LIB_krb_enable_debug@,$LIB_krb_enable_debug,;t t 36932s,@LIB_krb_disable_debug@,$LIB_krb_disable_debug,;t t 36933s,@LIB_krb_get_our_ip_for_realm@,$LIB_krb_get_our_ip_for_realm,;t t 36934s,@LIB_krb_kdctimeofday@,$LIB_krb_kdctimeofday,;t t 36935s,@LIB_krb_get_kdc_time_diff@,$LIB_krb_get_kdc_time_diff,;t t 36936s,@KRB4_TRUE@,$KRB4_TRUE,;t t 36937s,@KRB4_FALSE@,$KRB4_FALSE,;t t 36938s,@KRB5_TRUE@,$KRB5_TRUE,;t t 36939s,@KRB5_FALSE@,$KRB5_FALSE,;t t 36940s,@do_roken_rename_TRUE@,$do_roken_rename_TRUE,;t t 36941s,@do_roken_rename_FALSE@,$do_roken_rename_FALSE,;t t 36942s,@LIB_kdb@,$LIB_kdb,;t t 36943s,@HAVE_OPENSSL_TRUE@,$HAVE_OPENSSL_TRUE,;t t 36944s,@HAVE_OPENSSL_FALSE@,$HAVE_OPENSSL_FALSE,;t t 36945s,@DIR_des@,$DIR_des,;t t 36946s,@INCLUDE_des@,$INCLUDE_des,;t t 36947s,@LIB_des@,$LIB_des,;t t 36948s,@LIB_des_a@,$LIB_des_a,;t t 36949s,@LIB_des_so@,$LIB_des_so,;t t 36950s,@LIB_des_appl@,$LIB_des_appl,;t t 36951s,@DCE_TRUE@,$DCE_TRUE,;t t 36952s,@DCE_FALSE@,$DCE_FALSE,;t t 36953s,@dpagaix_cflags@,$dpagaix_cflags,;t t 36954s,@dpagaix_ldadd@,$dpagaix_ldadd,;t t 36955s,@dpagaix_ldflags@,$dpagaix_ldflags,;t t 36956s,@LIB_db_create@,$LIB_db_create,;t t 36957s,@LIB_dbopen@,$LIB_dbopen,;t t 36958s,@LIB_dbm_firstkey@,$LIB_dbm_firstkey,;t t 36959s,@HAVE_DB1_TRUE@,$HAVE_DB1_TRUE,;t t 36960s,@HAVE_DB1_FALSE@,$HAVE_DB1_FALSE,;t t 36961s,@HAVE_DB3_TRUE@,$HAVE_DB3_TRUE,;t t 36962s,@HAVE_DB3_FALSE@,$HAVE_DB3_FALSE,;t t 36963s,@HAVE_NDBM_TRUE@,$HAVE_NDBM_TRUE,;t t 36964s,@HAVE_NDBM_FALSE@,$HAVE_NDBM_FALSE,;t t 36965s,@DBLIB@,$DBLIB,;t t 36966s,@LIB_NDBM@,$LIB_NDBM,;t t 36967s,@VOID_RETSIGTYPE@,$VOID_RETSIGTYPE,;t t 36968s,@have_err_h_TRUE@,$have_err_h_TRUE,;t t 36969s,@have_err_h_FALSE@,$have_err_h_FALSE,;t t 36970s,@have_fnmatch_h_TRUE@,$have_fnmatch_h_TRUE,;t t 36971s,@have_fnmatch_h_FALSE@,$have_fnmatch_h_FALSE,;t t 36972s,@have_ifaddrs_h_TRUE@,$have_ifaddrs_h_TRUE,;t t 36973s,@have_ifaddrs_h_FALSE@,$have_ifaddrs_h_FALSE,;t t 36974s,@have_vis_h_TRUE@,$have_vis_h_TRUE,;t t 36975s,@have_vis_h_FALSE@,$have_vis_h_FALSE,;t t 36976s,@LIB_socket@,$LIB_socket,;t t 36977s,@LIB_gethostbyname@,$LIB_gethostbyname,;t t 36978s,@LIB_syslog@,$LIB_syslog,;t t 36979s,@LIB_gethostbyname2@,$LIB_gethostbyname2,;t t 36980s,@LIB_res_search@,$LIB_res_search,;t t 36981s,@LIB_res_nsearch@,$LIB_res_nsearch,;t t 36982s,@LIB_dn_expand@,$LIB_dn_expand,;t t 36983s,@LIBOBJS@,$LIBOBJS,;t t 36984s,@have_glob_h_TRUE@,$have_glob_h_TRUE,;t t 36985s,@have_glob_h_FALSE@,$have_glob_h_FALSE,;t t 36986s,@LIB_getsockopt@,$LIB_getsockopt,;t t 36987s,@LIB_setsockopt@,$LIB_setsockopt,;t t 36988s,@LIB_hstrerror@,$LIB_hstrerror,;t t 36989s,@LIB_bswap16@,$LIB_bswap16,;t t 36990s,@LIB_bswap32@,$LIB_bswap32,;t t 36991s,@LIB_pidfile@,$LIB_pidfile,;t t 36992s,@LIB_getaddrinfo@,$LIB_getaddrinfo,;t t 36993s,@LIB_getnameinfo@,$LIB_getnameinfo,;t t 36994s,@LIB_freeaddrinfo@,$LIB_freeaddrinfo,;t t 36995s,@LIB_gai_strerror@,$LIB_gai_strerror,;t t 36996s,@LIB_crypt@,$LIB_crypt,;t t 36997s,@DIR_roken@,$DIR_roken,;t t 36998s,@LIB_roken@,$LIB_roken,;t t 36999s,@INCLUDES_roken@,$INCLUDES_roken,;t t 37000s,@LIB_otp@,$LIB_otp,;t t 37001s,@OTP_TRUE@,$OTP_TRUE,;t t 37002s,@OTP_FALSE@,$OTP_FALSE,;t t 37003s,@LIB_security@,$LIB_security,;t t 37004s,@NROFF@,$NROFF,;t t 37005s,@GROFF@,$GROFF,;t t 37006s,@CATMAN@,$CATMAN,;t t 37007s,@CATMAN_TRUE@,$CATMAN_TRUE,;t t 37008s,@CATMAN_FALSE@,$CATMAN_FALSE,;t t 37009s,@CATMANEXT@,$CATMANEXT,;t t 37010s,@INCLUDE_readline@,$INCLUDE_readline,;t t 37011s,@LIB_readline@,$LIB_readline,;t t 37012s,@INCLUDE_hesiod@,$INCLUDE_hesiod,;t t 37013s,@LIB_hesiod@,$LIB_hesiod,;t t 37014s,@AIX_TRUE@,$AIX_TRUE,;t t 37015s,@AIX_FALSE@,$AIX_FALSE,;t t 37016s,@AIX4_TRUE@,$AIX4_TRUE,;t t 37017s,@AIX4_FALSE@,$AIX4_FALSE,;t t 37018s,@LIB_dlopen@,$LIB_dlopen,;t t 37019s,@HAVE_DLOPEN_TRUE@,$HAVE_DLOPEN_TRUE,;t t 37020s,@HAVE_DLOPEN_FALSE@,$HAVE_DLOPEN_FALSE,;t t 37021s,@LIB_loadquery@,$LIB_loadquery,;t t 37022s,@AIX_DYNAMIC_AFS_TRUE@,$AIX_DYNAMIC_AFS_TRUE,;t t 37023s,@AIX_DYNAMIC_AFS_FALSE@,$AIX_DYNAMIC_AFS_FALSE,;t t 37024s,@AIX_EXTRA_KAFS@,$AIX_EXTRA_KAFS,;t t 37025s,@IRIX_TRUE@,$IRIX_TRUE,;t t 37026s,@IRIX_FALSE@,$IRIX_FALSE,;t t 37027s,@X_CFLAGS@,$X_CFLAGS,;t t 37028s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t 37029s,@X_LIBS@,$X_LIBS,;t t 37030s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t 37031s,@HAVE_X_TRUE@,$HAVE_X_TRUE,;t t 37032s,@HAVE_X_FALSE@,$HAVE_X_FALSE,;t t 37033s,@LIB_XauWriteAuth@,$LIB_XauWriteAuth,;t t 37034s,@LIB_XauReadAuth@,$LIB_XauReadAuth,;t t 37035s,@LIB_XauFileName@,$LIB_XauFileName,;t t 37036s,@NEED_WRITEAUTH_TRUE@,$NEED_WRITEAUTH_TRUE,;t t 37037s,@NEED_WRITEAUTH_FALSE@,$NEED_WRITEAUTH_FALSE,;t t 37038s,@LIB_logwtmp@,$LIB_logwtmp,;t t 37039s,@LIB_logout@,$LIB_logout,;t t 37040s,@LIB_openpty@,$LIB_openpty,;t t 37041s,@LIB_tgetent@,$LIB_tgetent,;t t 37042s,@LIB_getpwnam_r@,$LIB_getpwnam_r,;t t 37043s,@LIB_el_init@,$LIB_el_init,;t t 37044s,@el_compat_TRUE@,$el_compat_TRUE,;t t 37045s,@el_compat_FALSE@,$el_compat_FALSE,;t t 37046s,@COMPILE_ET@,$COMPILE_ET,;t t 37047s,@DIR_com_err@,$DIR_com_err,;t t 37048s,@LIB_com_err@,$LIB_com_err,;t t 37049s,@LIB_com_err_a@,$LIB_com_err_a,;t t 37050s,@LIB_com_err_so@,$LIB_com_err_so,;t t 37051s,@LIB_AUTH_SUBDIRS@,$LIB_AUTH_SUBDIRS,;t t 37052s,@LTLIBOBJS@,$LTLIBOBJS,;t t 37053CEOF 37054 37055_ACEOF 37056 37057 cat >>$CONFIG_STATUS <<\_ACEOF 37058 # Split the substitutions into bite-sized pieces for seds with 37059 # small command number limits, like on Digital OSF/1 and HP-UX. 37060 ac_max_sed_lines=48 37061 ac_sed_frag=1 # Number of current file. 37062 ac_beg=1 # First line for current file. 37063 ac_end=$ac_max_sed_lines # Line after last line for current file. 37064 ac_more_lines=: 37065 ac_sed_cmds= 37066 while $ac_more_lines; do 37067 if test $ac_beg -gt 1; then 37068 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 37069 else 37070 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 37071 fi 37072 if test ! -s $tmp/subs.frag; then 37073 ac_more_lines=false 37074 else 37075 # The purpose of the label and of the branching condition is to 37076 # speed up the sed processing (if there are no `@' at all, there 37077 # is no need to browse any of the substitutions). 37078 # These are the two extra sed commands mentioned above. 37079 (echo ':t 37080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 37081 if test -z "$ac_sed_cmds"; then 37082 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 37083 else 37084 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 37085 fi 37086 ac_sed_frag=`expr $ac_sed_frag + 1` 37087 ac_beg=$ac_end 37088 ac_end=`expr $ac_end + $ac_max_sed_lines` 37089 fi 37090 done 37091 if test -z "$ac_sed_cmds"; then 37092 ac_sed_cmds=cat 37093 fi 37094fi # test -n "$CONFIG_FILES" 37095 37096_ACEOF 37097cat >>$CONFIG_STATUS <<\_ACEOF 37098for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 37099 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 37100 case $ac_file in 37101 - | *:- | *:-:* ) # input from stdin 37102 cat >$tmp/stdin 37103 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 37104 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 37105 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 37106 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 37107 * ) ac_file_in=$ac_file.in ;; 37108 esac 37109 37110 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 37111 ac_dir=`(dirname "$ac_file") 2>/dev/null || 37112$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37113 X"$ac_file" : 'X\(//\)[^/]' \| \ 37114 X"$ac_file" : 'X\(//\)$' \| \ 37115 X"$ac_file" : 'X\(/\)' \| \ 37116 . : '\(.\)' 2>/dev/null || 37117echo X"$ac_file" | 37118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37119 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37120 /^X\(\/\/\)$/{ s//\1/; q; } 37121 /^X\(\/\).*/{ s//\1/; q; } 37122 s/.*/./; q'` 37123 { case "$ac_dir" in 37124 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 37125 *) as_incr_dir=.;; 37126esac 37127as_dummy="$ac_dir" 37128for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 37129 case $as_mkdir_dir in 37130 # Skip DOS drivespec 37131 ?:) as_incr_dir=$as_mkdir_dir ;; 37132 *) 37133 as_incr_dir=$as_incr_dir/$as_mkdir_dir 37134 test -d "$as_incr_dir" || 37135 mkdir "$as_incr_dir" || 37136 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 37137echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 37138 { (exit 1); exit 1; }; } 37139 ;; 37140 esac 37141done; } 37142 37143 ac_builddir=. 37144 37145if test "$ac_dir" != .; then 37146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 37147 # A "../" for each directory in $ac_dir_suffix. 37148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 37149else 37150 ac_dir_suffix= ac_top_builddir= 37151fi 37152 37153case $srcdir in 37154 .) # No --srcdir option. We are building in place. 37155 ac_srcdir=. 37156 if test -z "$ac_top_builddir"; then 37157 ac_top_srcdir=. 37158 else 37159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 37160 fi ;; 37161 [\\/]* | ?:[\\/]* ) # Absolute path. 37162 ac_srcdir=$srcdir$ac_dir_suffix; 37163 ac_top_srcdir=$srcdir ;; 37164 *) # Relative path. 37165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 37166 ac_top_srcdir=$ac_top_builddir$srcdir ;; 37167esac 37168# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 37169# absolute. 37170ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 37171ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 37172ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 37173ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 37174 37175 37176 case $INSTALL in 37177 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 37178 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 37179 esac 37180 37181 if test x"$ac_file" != x-; then 37182 { echo "$as_me:$LINENO: creating $ac_file" >&5 37183echo "$as_me: creating $ac_file" >&6;} 37184 rm -f "$ac_file" 37185 fi 37186 # Let's still pretend it is `configure' which instantiates (i.e., don't 37187 # use $as_me), people would be surprised to read: 37188 # /* config.h. Generated by config.status. */ 37189 if test x"$ac_file" = x-; then 37190 configure_input= 37191 else 37192 configure_input="$ac_file. " 37193 fi 37194 configure_input=$configure_input"Generated from `echo $ac_file_in | 37195 sed 's,.*/,,'` by configure." 37196 37197 # First look for the input files in the build tree, otherwise in the 37198 # src tree. 37199 ac_file_inputs=`IFS=: 37200 for f in $ac_file_in; do 37201 case $f in 37202 -) echo $tmp/stdin ;; 37203 [\\/$]*) 37204 # Absolute (can't be DOS-style, as IFS=:) 37205 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 37206echo "$as_me: error: cannot find input file: $f" >&2;} 37207 { (exit 1); exit 1; }; } 37208 echo $f;; 37209 *) # Relative 37210 if test -f "$f"; then 37211 # Build tree 37212 echo $f 37213 elif test -f "$srcdir/$f"; then 37214 # Source tree 37215 echo $srcdir/$f 37216 else 37217 # /dev/null tree 37218 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 37219echo "$as_me: error: cannot find input file: $f" >&2;} 37220 { (exit 1); exit 1; }; } 37221 fi;; 37222 esac 37223 done` || { (exit 1); exit 1; } 37224_ACEOF 37225cat >>$CONFIG_STATUS <<_ACEOF 37226 sed "$ac_vpsub 37227$extrasub 37228_ACEOF 37229cat >>$CONFIG_STATUS <<\_ACEOF 37230:t 37231/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 37232s,@configure_input@,$configure_input,;t t 37233s,@srcdir@,$ac_srcdir,;t t 37234s,@abs_srcdir@,$ac_abs_srcdir,;t t 37235s,@top_srcdir@,$ac_top_srcdir,;t t 37236s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 37237s,@builddir@,$ac_builddir,;t t 37238s,@abs_builddir@,$ac_abs_builddir,;t t 37239s,@top_builddir@,$ac_top_builddir,;t t 37240s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 37241s,@INSTALL@,$ac_INSTALL,;t t 37242" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 37243 rm -f $tmp/stdin 37244 if test x"$ac_file" != x-; then 37245 mv $tmp/out $ac_file 37246 else 37247 cat $tmp/out 37248 rm -f $tmp/out 37249 fi 37250 37251done 37252_ACEOF 37253cat >>$CONFIG_STATUS <<\_ACEOF 37254 37255# 37256# CONFIG_HEADER section. 37257# 37258 37259# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 37260# NAME is the cpp macro being defined and VALUE is the value it is being given. 37261# 37262# ac_d sets the value in "#define NAME VALUE" lines. 37263ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 37264ac_dB='[ ].*$,\1#\2' 37265ac_dC=' ' 37266ac_dD=',;t' 37267# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 37268ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 37269ac_uB='$,\1#\2define\3' 37270ac_uC=' ' 37271ac_uD=',;t' 37272 37273for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 37274 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 37275 case $ac_file in 37276 - | *:- | *:-:* ) # input from stdin 37277 cat >$tmp/stdin 37278 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 37279 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 37280 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 37281 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 37282 * ) ac_file_in=$ac_file.in ;; 37283 esac 37284 37285 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 37286echo "$as_me: creating $ac_file" >&6;} 37287 37288 # First look for the input files in the build tree, otherwise in the 37289 # src tree. 37290 ac_file_inputs=`IFS=: 37291 for f in $ac_file_in; do 37292 case $f in 37293 -) echo $tmp/stdin ;; 37294 [\\/$]*) 37295 # Absolute (can't be DOS-style, as IFS=:) 37296 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 37297echo "$as_me: error: cannot find input file: $f" >&2;} 37298 { (exit 1); exit 1; }; } 37299 echo $f;; 37300 *) # Relative 37301 if test -f "$f"; then 37302 # Build tree 37303 echo $f 37304 elif test -f "$srcdir/$f"; then 37305 # Source tree 37306 echo $srcdir/$f 37307 else 37308 # /dev/null tree 37309 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 37310echo "$as_me: error: cannot find input file: $f" >&2;} 37311 { (exit 1); exit 1; }; } 37312 fi;; 37313 esac 37314 done` || { (exit 1); exit 1; } 37315 # Remove the trailing spaces. 37316 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 37317 37318_ACEOF 37319 37320# Transform confdefs.h into two sed scripts, `conftest.defines' and 37321# `conftest.undefs', that substitutes the proper values into 37322# config.h.in to produce config.h. The first handles `#define' 37323# templates, and the second `#undef' templates. 37324# And first: Protect against being on the right side of a sed subst in 37325# config.status. Protect against being in an unquoted here document 37326# in config.status. 37327rm -f conftest.defines conftest.undefs 37328# Using a here document instead of a string reduces the quoting nightmare. 37329# Putting comments in sed scripts is not portable. 37330# 37331# `end' is used to avoid that the second main sed command (meant for 37332# 0-ary CPP macros) applies to n-ary macro definitions. 37333# See the Autoconf documentation for `clear'. 37334cat >confdef2sed.sed <<\_ACEOF 37335s/[\\&,]/\\&/g 37336s,[\\$`],\\&,g 37337t clear 37338: clear 37339s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 37340t end 37341s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 37342: end 37343_ACEOF 37344# If some macros were called several times there might be several times 37345# the same #defines, which is useless. Nevertheless, we may not want to 37346# sort them, since we want the *last* AC-DEFINE to be honored. 37347uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 37348sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 37349rm -f confdef2sed.sed 37350 37351# This sed command replaces #undef with comments. This is necessary, for 37352# example, in the case of _POSIX_SOURCE, which is predefined and required 37353# on some systems where configure will not decide to define it. 37354cat >>conftest.undefs <<\_ACEOF 37355s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 37356_ACEOF 37357 37358# Break up conftest.defines because some shells have a limit on the size 37359# of here documents, and old seds have small limits too (100 cmds). 37360echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 37361echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 37362echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 37363echo ' :' >>$CONFIG_STATUS 37364rm -f conftest.tail 37365while grep . conftest.defines >/dev/null 37366do 37367 # Write a limited-size here document to $tmp/defines.sed. 37368 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 37369 # Speed up: don't consider the non `#define' lines. 37370 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 37371 # Work around the forget-to-reset-the-flag bug. 37372 echo 't clr' >>$CONFIG_STATUS 37373 echo ': clr' >>$CONFIG_STATUS 37374 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 37375 echo 'CEOF 37376 sed -f $tmp/defines.sed $tmp/in >$tmp/out 37377 rm -f $tmp/in 37378 mv $tmp/out $tmp/in 37379' >>$CONFIG_STATUS 37380 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 37381 rm -f conftest.defines 37382 mv conftest.tail conftest.defines 37383done 37384rm -f conftest.defines 37385echo ' fi # egrep' >>$CONFIG_STATUS 37386echo >>$CONFIG_STATUS 37387 37388# Break up conftest.undefs because some shells have a limit on the size 37389# of here documents, and old seds have small limits too (100 cmds). 37390echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 37391rm -f conftest.tail 37392while grep . conftest.undefs >/dev/null 37393do 37394 # Write a limited-size here document to $tmp/undefs.sed. 37395 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 37396 # Speed up: don't consider the non `#undef' 37397 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 37398 # Work around the forget-to-reset-the-flag bug. 37399 echo 't clr' >>$CONFIG_STATUS 37400 echo ': clr' >>$CONFIG_STATUS 37401 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 37402 echo 'CEOF 37403 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 37404 rm -f $tmp/in 37405 mv $tmp/out $tmp/in 37406' >>$CONFIG_STATUS 37407 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 37408 rm -f conftest.undefs 37409 mv conftest.tail conftest.undefs 37410done 37411rm -f conftest.undefs 37412 37413cat >>$CONFIG_STATUS <<\_ACEOF 37414 # Let's still pretend it is `configure' which instantiates (i.e., don't 37415 # use $as_me), people would be surprised to read: 37416 # /* config.h. Generated by config.status. */ 37417 if test x"$ac_file" = x-; then 37418 echo "/* Generated by configure. */" >$tmp/config.h 37419 else 37420 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 37421 fi 37422 cat $tmp/in >>$tmp/config.h 37423 rm -f $tmp/in 37424 if test x"$ac_file" != x-; then 37425 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then 37426 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 37427echo "$as_me: $ac_file is unchanged" >&6;} 37428 else 37429 ac_dir=`(dirname "$ac_file") 2>/dev/null || 37430$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37431 X"$ac_file" : 'X\(//\)[^/]' \| \ 37432 X"$ac_file" : 'X\(//\)$' \| \ 37433 X"$ac_file" : 'X\(/\)' \| \ 37434 . : '\(.\)' 2>/dev/null || 37435echo X"$ac_file" | 37436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37437 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37438 /^X\(\/\/\)$/{ s//\1/; q; } 37439 /^X\(\/\).*/{ s//\1/; q; } 37440 s/.*/./; q'` 37441 { case "$ac_dir" in 37442 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 37443 *) as_incr_dir=.;; 37444esac 37445as_dummy="$ac_dir" 37446for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 37447 case $as_mkdir_dir in 37448 # Skip DOS drivespec 37449 ?:) as_incr_dir=$as_mkdir_dir ;; 37450 *) 37451 as_incr_dir=$as_incr_dir/$as_mkdir_dir 37452 test -d "$as_incr_dir" || 37453 mkdir "$as_incr_dir" || 37454 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5 37455echo "$as_me: error: cannot create \"$ac_dir\"" >&2;} 37456 { (exit 1); exit 1; }; } 37457 ;; 37458 esac 37459done; } 37460 37461 rm -f $ac_file 37462 mv $tmp/config.h $ac_file 37463 fi 37464 else 37465 cat $tmp/config.h 37466 rm -f $tmp/config.h 37467 fi 37468 # Run the commands associated with the file. 37469 case $ac_file in 37470 include/config.h ) # update the timestamp 37471echo 'timestamp for include/config.h' >"include/stamp-h1" 37472 ;; 37473 esac 37474done 37475_ACEOF 37476cat >>$CONFIG_STATUS <<\_ACEOF 37477 37478# 37479# CONFIG_COMMANDS section. 37480# 37481for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 37482 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 37483 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 37484 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 37485$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37486 X"$ac_dest" : 'X\(//\)[^/]' \| \ 37487 X"$ac_dest" : 'X\(//\)$' \| \ 37488 X"$ac_dest" : 'X\(/\)' \| \ 37489 . : '\(.\)' 2>/dev/null || 37490echo X"$ac_dest" | 37491 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37492 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37493 /^X\(\/\/\)$/{ s//\1/; q; } 37494 /^X\(\/\).*/{ s//\1/; q; } 37495 s/.*/./; q'` 37496 ac_builddir=. 37497 37498if test "$ac_dir" != .; then 37499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 37500 # A "../" for each directory in $ac_dir_suffix. 37501 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 37502else 37503 ac_dir_suffix= ac_top_builddir= 37504fi 37505 37506case $srcdir in 37507 .) # No --srcdir option. We are building in place. 37508 ac_srcdir=. 37509 if test -z "$ac_top_builddir"; then 37510 ac_top_srcdir=. 37511 else 37512 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 37513 fi ;; 37514 [\\/]* | ?:[\\/]* ) # Absolute path. 37515 ac_srcdir=$srcdir$ac_dir_suffix; 37516 ac_top_srcdir=$srcdir ;; 37517 *) # Relative path. 37518 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 37519 ac_top_srcdir=$ac_top_builddir$srcdir ;; 37520esac 37521# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be 37522# absolute. 37523ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` 37524ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd` 37525ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` 37526ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` 37527 37528 37529 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 37530echo "$as_me: executing $ac_dest commands" >&6;} 37531 case $ac_dest in 37532 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 37533 # Strip MF so we end up with the name of the file. 37534 mf=`echo "$mf" | sed -e 's/:.*$//'` 37535 if (sed 1q $mf | fgrep 'generated by automake') > /dev/null 2>&1; then 37536 dirpart=`(dirname "$mf") 2>/dev/null || 37537$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37538 X"$mf" : 'X\(//\)[^/]' \| \ 37539 X"$mf" : 'X\(//\)$' \| \ 37540 X"$mf" : 'X\(/\)' \| \ 37541 . : '\(.\)' 2>/dev/null || 37542echo X"$mf" | 37543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37544 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37545 /^X\(\/\/\)$/{ s//\1/; q; } 37546 /^X\(\/\).*/{ s//\1/; q; } 37547 s/.*/./; q'` 37548 else 37549 continue 37550 fi 37551 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 37552 # Extract the definition of DEP_FILES from the Makefile without 37553 # running `make'. 37554 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 37555 test -z "$DEPDIR" && continue 37556 # When using ansi2knr, U may be empty or an underscore; expand it 37557 U=`sed -n -e '/^U = / s///p' < "$mf"` 37558 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 37559 # We invoke sed twice because it is the simplest approach to 37560 # changing $(DEPDIR) to its actual value in the expansion. 37561 for file in `sed -n -e ' 37562 /^DEP_FILES = .*\\\\$/ { 37563 s/^DEP_FILES = // 37564 :loop 37565 s/\\\\$// 37566 p 37567 n 37568 /\\\\$/ b loop 37569 p 37570 } 37571 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 37572 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 37573 # Make sure the directory exists. 37574 test -f "$dirpart/$file" && continue 37575 fdir=`(dirname "$file") 2>/dev/null || 37576$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 37577 X"$file" : 'X\(//\)[^/]' \| \ 37578 X"$file" : 'X\(//\)$' \| \ 37579 X"$file" : 'X\(/\)' \| \ 37580 . : '\(.\)' 2>/dev/null || 37581echo X"$file" | 37582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 37583 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 37584 /^X\(\/\/\)$/{ s//\1/; q; } 37585 /^X\(\/\).*/{ s//\1/; q; } 37586 s/.*/./; q'` 37587 { case $dirpart/$fdir in 37588 [\\/]* | ?:[\\/]* ) as_incr_dir=;; 37589 *) as_incr_dir=.;; 37590esac 37591as_dummy=$dirpart/$fdir 37592for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do 37593 case $as_mkdir_dir in 37594 # Skip DOS drivespec 37595 ?:) as_incr_dir=$as_mkdir_dir ;; 37596 *) 37597 as_incr_dir=$as_incr_dir/$as_mkdir_dir 37598 test -d "$as_incr_dir" || 37599 mkdir "$as_incr_dir" || 37600 { { echo "$as_me:$LINENO: error: cannot create $dirpart/$fdir" >&5 37601echo "$as_me: error: cannot create $dirpart/$fdir" >&2;} 37602 { (exit 1); exit 1; }; } 37603 ;; 37604 esac 37605done; } 37606 37607 # echo "creating $dirpart/$file" 37608 echo '# dummy' > "$dirpart/$file" 37609 done 37610done 37611 ;; 37612 esac 37613done 37614_ACEOF 37615 37616cat >>$CONFIG_STATUS <<\_ACEOF 37617 37618{ (exit 0); exit 0; } 37619_ACEOF 37620chmod +x $CONFIG_STATUS 37621ac_clean_files=$ac_clean_files_save 37622 37623 37624# configure is writing to config.log, and then calls config.status. 37625# config.status does its own redirection, appending to config.log. 37626# Unfortunately, on DOS this fails, as config.log is still kept open 37627# by configure, so config.status won't be able to write to it; its 37628# output is simply discarded. So we exec the FD to /dev/null, 37629# effectively closing config.log, so it can be properly (re)opened and 37630# appended to by config.status. When coming back to configure, we 37631# need to make the FD available again. 37632if test "$no_create" != yes; then 37633 ac_cs_success=: 37634 exec 5>/dev/null 37635 $SHELL $CONFIG_STATUS || ac_cs_success=false 37636 exec 5>>config.log 37637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 37638 # would make configure fail if this is the last instruction. 37639 $ac_cs_success || { (exit 1); exit 1; } 37640fi 37641 37642 37643 37644cat > include/newversion.h.in <<EOF 37645const char *heimdal_long_version = "@(#)\$Version: $PACKAGE_STRING by @USER@ on @HOST@ ($host) @DATE@ \$";
|
37308const char *heimdal_version = "Heimdal 0.5.1";
| 37646const char *heimdal_version = "Heimdal 0.6";
|
37309EOF 37310 37311if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 37312 echo "include/version.h is unchanged" 37313 rm -f include/newversion.h.in 37314else 37315 echo "creating include/version.h" 37316 User=${USER-${LOGNAME}} 37317 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 37318 Date=`date` 37319 mv -f include/newversion.h.in include/version.h.in 37320 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 37321fi
| 37647EOF 37648 37649if test -f include/version.h && cmp -s include/newversion.h.in include/version.h.in; then 37650 echo "include/version.h is unchanged" 37651 rm -f include/newversion.h.in 37652else 37653 echo "creating include/version.h" 37654 User=${USER-${LOGNAME}} 37655 Host=`(hostname || uname -n || echo unknown) 2>/dev/null | sed 1q` 37656 Date=`date` 37657 mv -f include/newversion.h.in include/version.h.in 37658 sed -e "s/@USER@/$User/" -e "s/@HOST@/$Host/" -e "s/@DATE@/$Date/" include/version.h.in > include/version.h 37659fi
|