| 1 | #! /bin/sh |
| 2 | # Guess values for system-dependent variables and create Makefiles. |
| 3 | # Generated by GNU Autoconf 2.65 for emacs 24.3.50. |
| 4 | # |
| 5 | # |
| 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
| 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
| 10 | # |
| 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
| 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
| 16 | |
| 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
| 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 20 | emulate sh |
| 21 | NULLCMD=: |
| 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
| 25 | setopt NO_GLOB_SUBST |
| 26 | else |
| 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
| 32 | esac |
| 33 | fi |
| 34 | |
| 35 | |
| 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
| 60 | case $arg in #( |
| 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
| 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
| 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
| 81 | fi |
| 82 | |
| 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
| 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
| 92 | case $0 in #(( |
| 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
| 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
| 101 | IFS=$as_save_IFS |
| 102 | |
| 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
| 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 112 | exit 1 |
| 113 | fi |
| 114 | |
| 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
| 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
| 132 | |
| 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
| 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
| 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 | as_dirname=dirname |
| 390 | else |
| 391 | as_dirname=false |
| 392 | fi |
| 393 | |
| 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 398 | $as_echo X/"$0" | |
| 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
| 413 | # Avoid depending upon Character Ranges. |
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 | as_cr_digits='0123456789' |
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 419 | |
| 420 | |
| 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
| 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
| 430 | sed ' |
| 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
| 435 | N |
| 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
| 438 | t loop |
| 439 | s/-\n.*// |
| 440 | ' >$as_me.lineno && |
| 441 | chmod +x "$as_me.lineno" || |
| 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
| 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (the dirname of $[0] is not the place where we might find the |
| 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
| 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
| 452 | ECHO_C= ECHO_N= ECHO_T= |
| 453 | case `echo -n x` in #((((( |
| 454 | -n*) |
| 455 | case `echo 'xy\c'` in |
| 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
| 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
| 463 | esac |
| 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
| 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
| 470 | mkdir conf$$.dir 2>/dev/null |
| 471 | fi |
| 472 | if (echo >conf$$.file) 2>/dev/null; then |
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 | as_ln_s='ln -s' |
| 475 | # ... but there are two gotchas: |
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 | # In both cases, we have to default to `cp -p'. |
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 | as_ln_s='cp -p' |
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 | as_ln_s=ln |
| 483 | else |
| 484 | as_ln_s='cp -p' |
| 485 | fi |
| 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
| 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
| 491 | |
| 492 | if mkdir -p . 2>/dev/null; then |
| 493 | as_mkdir_p='mkdir -p "$as_dir"' |
| 494 | else |
| 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
| 497 | fi |
| 498 | |
| 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
| 501 | else |
| 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
| 510 | test -d "$1/."; |
| 511 | else |
| 512 | case $1 in #( |
| 513 | -*)set "./$1";; |
| 514 | esac; |
| 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
| 519 | fi |
| 520 | as_executable_p=$as_test_x |
| 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | |
| 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
| 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
| 537 | # |
| 538 | # Initializations. |
| 539 | # |
| 540 | ac_default_prefix=/usr/local |
| 541 | ac_clean_files= |
| 542 | ac_config_libobj_dir=. |
| 543 | LIBOBJS= |
| 544 | cross_compiling=no |
| 545 | subdirs= |
| 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
| 548 | |
| 549 | # Identity of this package. |
| 550 | PACKAGE_NAME='emacs' |
| 551 | PACKAGE_TARNAME='emacs' |
| 552 | PACKAGE_VERSION='24.3.50' |
| 553 | PACKAGE_STRING='emacs 24.3.50' |
| 554 | PACKAGE_BUGREPORT='' |
| 555 | PACKAGE_URL='' |
| 556 | |
| 557 | ac_unique_file="src/lisp.h" |
| 558 | # Factoring default headers for most tests. |
| 559 | ac_includes_default="\ |
| 560 | #include <stdio.h> |
| 561 | #ifdef HAVE_SYS_TYPES_H |
| 562 | # include <sys/types.h> |
| 563 | #endif |
| 564 | #ifdef HAVE_SYS_STAT_H |
| 565 | # include <sys/stat.h> |
| 566 | #endif |
| 567 | #ifdef STDC_HEADERS |
| 568 | # include <stdlib.h> |
| 569 | # include <stddef.h> |
| 570 | #else |
| 571 | # ifdef HAVE_STDLIB_H |
| 572 | # include <stdlib.h> |
| 573 | # endif |
| 574 | #endif |
| 575 | #ifdef HAVE_STRING_H |
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
| 577 | # include <memory.h> |
| 578 | # endif |
| 579 | # include <string.h> |
| 580 | #endif |
| 581 | #ifdef HAVE_STRINGS_H |
| 582 | # include <strings.h> |
| 583 | #endif |
| 584 | #ifdef HAVE_INTTYPES_H |
| 585 | # include <inttypes.h> |
| 586 | #endif |
| 587 | #ifdef HAVE_STDINT_H |
| 588 | # include <stdint.h> |
| 589 | #endif |
| 590 | #ifdef HAVE_UNISTD_H |
| 591 | # include <unistd.h> |
| 592 | #endif" |
| 593 | |
| 594 | ac_header_list= |
| 595 | ac_func_list= |
| 596 | gl_getopt_required=POSIX |
| 597 | gl_getopt_required=POSIX |
| 598 | ac_subst_vars='gltests_LTLIBOBJS |
| 599 | gltests_LIBOBJS |
| 600 | gl_LTLIBOBJS |
| 601 | gl_LIBOBJS |
| 602 | am__EXEEXT_FALSE |
| 603 | am__EXEEXT_TRUE |
| 604 | LTLIBOBJS |
| 605 | LIBOBJS |
| 606 | SUBDIR_MAKEFILES_IN |
| 607 | WINDOW_SYSTEM_OBJ |
| 608 | LIB_GCC |
| 609 | LD_FIRSTFLAG |
| 610 | LD_SWITCH_SYSTEM_TEMACS |
| 611 | LIBGNU_LTLIBDEPS |
| 612 | LIBGNU_LIBDEPS |
| 613 | gltests_WITNESS |
| 614 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE |
| 615 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE |
| 616 | gl_GNULIB_ENABLED_verify_FALSE |
| 617 | gl_GNULIB_ENABLED_verify_TRUE |
| 618 | gl_GNULIB_ENABLED_strtoull_FALSE |
| 619 | gl_GNULIB_ENABLED_strtoull_TRUE |
| 620 | gl_GNULIB_ENABLED_strtoll_FALSE |
| 621 | gl_GNULIB_ENABLED_strtoll_TRUE |
| 622 | gl_GNULIB_ENABLED_stat_FALSE |
| 623 | gl_GNULIB_ENABLED_stat_TRUE |
| 624 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE |
| 625 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE |
| 626 | gl_GNULIB_ENABLED_pathmax_FALSE |
| 627 | gl_GNULIB_ENABLED_pathmax_TRUE |
| 628 | gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE |
| 629 | gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE |
| 630 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE |
| 631 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE |
| 632 | gl_GNULIB_ENABLED_getgroups_FALSE |
| 633 | gl_GNULIB_ENABLED_getgroups_TRUE |
| 634 | gl_GNULIB_ENABLED_euidaccess_FALSE |
| 635 | gl_GNULIB_ENABLED_euidaccess_TRUE |
| 636 | gl_GNULIB_ENABLED_dosname_FALSE |
| 637 | gl_GNULIB_ENABLED_dosname_TRUE |
| 638 | LTLIBINTL |
| 639 | LIBINTL |
| 640 | LIB_EACCESS |
| 641 | WINDOWS_64_BIT_OFF_T |
| 642 | HAVE_UNISTD_H |
| 643 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H |
| 644 | NEXT_UNISTD_H |
| 645 | LIB_TIMER_TIME |
| 646 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC |
| 647 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC |
| 648 | TIME_H_DEFINES_STRUCT_TIMESPEC |
| 649 | NEXT_AS_FIRST_DIRECTIVE_TIME_H |
| 650 | NEXT_TIME_H |
| 651 | WINDOWS_64_BIT_ST_SIZE |
| 652 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H |
| 653 | NEXT_SYS_STAT_H |
| 654 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H |
| 655 | NEXT_STDLIB_H |
| 656 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H |
| 657 | NEXT_STDIO_H |
| 658 | REPLACE_VSPRINTF |
| 659 | REPLACE_VSNPRINTF |
| 660 | REPLACE_VPRINTF |
| 661 | REPLACE_VFPRINTF |
| 662 | REPLACE_VDPRINTF |
| 663 | REPLACE_VASPRINTF |
| 664 | REPLACE_TMPFILE |
| 665 | REPLACE_STDIO_WRITE_FUNCS |
| 666 | REPLACE_STDIO_READ_FUNCS |
| 667 | REPLACE_SPRINTF |
| 668 | REPLACE_SNPRINTF |
| 669 | REPLACE_RENAMEAT |
| 670 | REPLACE_RENAME |
| 671 | REPLACE_REMOVE |
| 672 | REPLACE_PRINTF |
| 673 | REPLACE_POPEN |
| 674 | REPLACE_PERROR |
| 675 | REPLACE_OBSTACK_PRINTF |
| 676 | REPLACE_GETLINE |
| 677 | REPLACE_GETDELIM |
| 678 | REPLACE_FTELLO |
| 679 | REPLACE_FTELL |
| 680 | REPLACE_FSEEKO |
| 681 | REPLACE_FSEEK |
| 682 | REPLACE_FREOPEN |
| 683 | REPLACE_FPURGE |
| 684 | REPLACE_FPRINTF |
| 685 | REPLACE_FOPEN |
| 686 | REPLACE_FFLUSH |
| 687 | REPLACE_FDOPEN |
| 688 | REPLACE_FCLOSE |
| 689 | REPLACE_DPRINTF |
| 690 | HAVE_VDPRINTF |
| 691 | HAVE_VASPRINTF |
| 692 | HAVE_RENAMEAT |
| 693 | HAVE_POPEN |
| 694 | HAVE_PCLOSE |
| 695 | HAVE_FTELLO |
| 696 | HAVE_FSEEKO |
| 697 | HAVE_DPRINTF |
| 698 | HAVE_DECL_VSNPRINTF |
| 699 | HAVE_DECL_SNPRINTF |
| 700 | HAVE_DECL_OBSTACK_PRINTF |
| 701 | HAVE_DECL_GETLINE |
| 702 | HAVE_DECL_GETDELIM |
| 703 | HAVE_DECL_FTELLO |
| 704 | HAVE_DECL_FSEEKO |
| 705 | HAVE_DECL_FPURGE |
| 706 | GNULIB_VSPRINTF_POSIX |
| 707 | GNULIB_VSNPRINTF |
| 708 | GNULIB_VPRINTF_POSIX |
| 709 | GNULIB_VPRINTF |
| 710 | GNULIB_VFPRINTF_POSIX |
| 711 | GNULIB_VFPRINTF |
| 712 | GNULIB_VDPRINTF |
| 713 | GNULIB_VSCANF |
| 714 | GNULIB_VFSCANF |
| 715 | GNULIB_VASPRINTF |
| 716 | GNULIB_TMPFILE |
| 717 | GNULIB_STDIO_H_SIGPIPE |
| 718 | GNULIB_STDIO_H_NONBLOCKING |
| 719 | GNULIB_SPRINTF_POSIX |
| 720 | GNULIB_SNPRINTF |
| 721 | GNULIB_SCANF |
| 722 | GNULIB_RENAMEAT |
| 723 | GNULIB_RENAME |
| 724 | GNULIB_REMOVE |
| 725 | GNULIB_PUTS |
| 726 | GNULIB_PUTCHAR |
| 727 | GNULIB_PUTC |
| 728 | GNULIB_PRINTF_POSIX |
| 729 | GNULIB_PRINTF |
| 730 | GNULIB_POPEN |
| 731 | GNULIB_PERROR |
| 732 | GNULIB_PCLOSE |
| 733 | GNULIB_OBSTACK_PRINTF_POSIX |
| 734 | GNULIB_OBSTACK_PRINTF |
| 735 | GNULIB_GETLINE |
| 736 | GNULIB_GETDELIM |
| 737 | GNULIB_GETCHAR |
| 738 | GNULIB_GETC |
| 739 | GNULIB_FWRITE |
| 740 | GNULIB_FTELLO |
| 741 | GNULIB_FTELL |
| 742 | GNULIB_FSEEKO |
| 743 | GNULIB_FSEEK |
| 744 | GNULIB_FSCANF |
| 745 | GNULIB_FREOPEN |
| 746 | GNULIB_FREAD |
| 747 | GNULIB_FPUTS |
| 748 | GNULIB_FPUTC |
| 749 | GNULIB_FPURGE |
| 750 | GNULIB_FPRINTF_POSIX |
| 751 | GNULIB_FPRINTF |
| 752 | GNULIB_FOPEN |
| 753 | GNULIB_FGETS |
| 754 | GNULIB_FGETC |
| 755 | GNULIB_FFLUSH |
| 756 | GNULIB_FDOPEN |
| 757 | GNULIB_FCLOSE |
| 758 | GNULIB_DPRINTF |
| 759 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H |
| 760 | NEXT_STDDEF_H |
| 761 | GL_GENERATE_STDDEF_H_FALSE |
| 762 | GL_GENERATE_STDDEF_H_TRUE |
| 763 | STDDEF_H |
| 764 | HAVE_WCHAR_T |
| 765 | REPLACE_NULL |
| 766 | HAVE__BOOL |
| 767 | GL_GENERATE_STDBOOL_H_FALSE |
| 768 | GL_GENERATE_STDBOOL_H_TRUE |
| 769 | STDBOOL_H |
| 770 | GL_GENERATE_STDARG_H_FALSE |
| 771 | GL_GENERATE_STDARG_H_TRUE |
| 772 | STDARG_H |
| 773 | NEXT_AS_FIRST_DIRECTIVE_STDARG_H |
| 774 | NEXT_STDARG_H |
| 775 | GL_GENERATE_STDALIGN_H_FALSE |
| 776 | GL_GENERATE_STDALIGN_H_TRUE |
| 777 | STDALIGN_H |
| 778 | NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H |
| 779 | NEXT_SIGNAL_H |
| 780 | LIB_PTHREAD_SIGMASK |
| 781 | REPLACE_RAISE |
| 782 | REPLACE_PTHREAD_SIGMASK |
| 783 | HAVE_SIGHANDLER_T |
| 784 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T |
| 785 | HAVE_STRUCT_SIGACTION_SA_SIGACTION |
| 786 | HAVE_SIGACTION |
| 787 | HAVE_SIGINFO_T |
| 788 | HAVE_SIGSET_T |
| 789 | HAVE_RAISE |
| 790 | HAVE_PTHREAD_SIGMASK |
| 791 | HAVE_POSIX_SIGNALBLOCKING |
| 792 | GNULIB_SIGACTION |
| 793 | GNULIB_SIGPROCMASK |
| 794 | GNULIB_SIGNAL_H_SIGPIPE |
| 795 | GNULIB_RAISE |
| 796 | GNULIB_PTHREAD_SIGMASK |
| 797 | HAVE_SYS_SELECT_H |
| 798 | NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H |
| 799 | NEXT_SYS_SELECT_H |
| 800 | REPLACE_SELECT |
| 801 | REPLACE_PSELECT |
| 802 | HAVE_PSELECT |
| 803 | GNULIB_SELECT |
| 804 | GNULIB_PSELECT |
| 805 | REPLACE_TIMEGM |
| 806 | REPLACE_NANOSLEEP |
| 807 | REPLACE_MKTIME |
| 808 | REPLACE_LOCALTIME_R |
| 809 | HAVE_TIMEGM |
| 810 | HAVE_STRPTIME |
| 811 | HAVE_NANOSLEEP |
| 812 | HAVE_DECL_LOCALTIME_R |
| 813 | GNULIB_TIME_R |
| 814 | GNULIB_TIMEGM |
| 815 | GNULIB_STRPTIME |
| 816 | GNULIB_NANOSLEEP |
| 817 | GNULIB_MKTIME |
| 818 | REPLACE_UTIMENSAT |
| 819 | REPLACE_STAT |
| 820 | REPLACE_MKNOD |
| 821 | REPLACE_MKFIFO |
| 822 | REPLACE_MKDIR |
| 823 | REPLACE_LSTAT |
| 824 | REPLACE_FUTIMENS |
| 825 | REPLACE_FSTATAT |
| 826 | REPLACE_FSTAT |
| 827 | HAVE_UTIMENSAT |
| 828 | HAVE_MKNODAT |
| 829 | HAVE_MKNOD |
| 830 | HAVE_MKFIFOAT |
| 831 | HAVE_MKFIFO |
| 832 | HAVE_MKDIRAT |
| 833 | HAVE_LSTAT |
| 834 | HAVE_LCHMOD |
| 835 | HAVE_FUTIMENS |
| 836 | HAVE_FSTATAT |
| 837 | HAVE_FCHMODAT |
| 838 | GNULIB_UTIMENSAT |
| 839 | GNULIB_STAT |
| 840 | GNULIB_MKNODAT |
| 841 | GNULIB_MKNOD |
| 842 | GNULIB_MKFIFOAT |
| 843 | GNULIB_MKFIFO |
| 844 | GNULIB_MKDIRAT |
| 845 | GNULIB_LSTAT |
| 846 | GNULIB_LCHMOD |
| 847 | GNULIB_FUTIMENS |
| 848 | GNULIB_FSTATAT |
| 849 | GNULIB_FSTAT |
| 850 | GNULIB_FCHMODAT |
| 851 | NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H |
| 852 | NEXT_INTTYPES_H |
| 853 | UINT64_MAX_EQ_ULONG_MAX |
| 854 | UINT32_MAX_LT_UINTMAX_MAX |
| 855 | PRIPTR_PREFIX |
| 856 | PRI_MACROS_BROKEN |
| 857 | INT64_MAX_EQ_LONG_MAX |
| 858 | INT32_MAX_LT_INTMAX_MAX |
| 859 | REPLACE_STRTOIMAX |
| 860 | HAVE_DECL_STRTOUMAX |
| 861 | HAVE_DECL_STRTOIMAX |
| 862 | HAVE_DECL_IMAXDIV |
| 863 | HAVE_DECL_IMAXABS |
| 864 | GNULIB_STRTOUMAX |
| 865 | GNULIB_STRTOIMAX |
| 866 | GNULIB_IMAXDIV |
| 867 | GNULIB_IMAXABS |
| 868 | GL_GENERATE_STDINT_H_FALSE |
| 869 | GL_GENERATE_STDINT_H_TRUE |
| 870 | STDINT_H |
| 871 | WINT_T_SUFFIX |
| 872 | WCHAR_T_SUFFIX |
| 873 | SIG_ATOMIC_T_SUFFIX |
| 874 | SIZE_T_SUFFIX |
| 875 | PTRDIFF_T_SUFFIX |
| 876 | HAVE_SIGNED_WINT_T |
| 877 | HAVE_SIGNED_WCHAR_T |
| 878 | HAVE_SIGNED_SIG_ATOMIC_T |
| 879 | BITSIZEOF_WINT_T |
| 880 | BITSIZEOF_WCHAR_T |
| 881 | BITSIZEOF_SIG_ATOMIC_T |
| 882 | BITSIZEOF_SIZE_T |
| 883 | BITSIZEOF_PTRDIFF_T |
| 884 | APPLE_UNIVERSAL_BUILD |
| 885 | HAVE_SYS_BITYPES_H |
| 886 | HAVE_SYS_INTTYPES_H |
| 887 | HAVE_STDINT_H |
| 888 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H |
| 889 | NEXT_STDINT_H |
| 890 | HAVE_SYS_TYPES_H |
| 891 | HAVE_INTTYPES_H |
| 892 | HAVE_WCHAR_H |
| 893 | HAVE_UNSIGNED_LONG_LONG_INT |
| 894 | HAVE_LONG_LONG_INT |
| 895 | HAVE_WINSOCK2_H |
| 896 | NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H |
| 897 | NEXT_SYS_TIME_H |
| 898 | REPLACE_STRUCT_TIMEVAL |
| 899 | REPLACE_GETTIMEOFDAY |
| 900 | HAVE_SYS_TIME_H |
| 901 | HAVE_STRUCT_TIMEVAL |
| 902 | HAVE_GETTIMEOFDAY |
| 903 | GNULIB_GETTIMEOFDAY |
| 904 | GNULIB_GL_UNISTD_H_GETOPT |
| 905 | GETOPT_H |
| 906 | HAVE_GETOPT_H |
| 907 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H |
| 908 | NEXT_GETOPT_H |
| 909 | GETLOADAVG_LIBS |
| 910 | REPLACE_WCTOMB |
| 911 | REPLACE_UNSETENV |
| 912 | REPLACE_STRTOD |
| 913 | REPLACE_SETENV |
| 914 | REPLACE_REALPATH |
| 915 | REPLACE_REALLOC |
| 916 | REPLACE_RANDOM_R |
| 917 | REPLACE_PUTENV |
| 918 | REPLACE_PTSNAME_R |
| 919 | REPLACE_PTSNAME |
| 920 | REPLACE_MKSTEMP |
| 921 | REPLACE_MBTOWC |
| 922 | REPLACE_MALLOC |
| 923 | REPLACE_CANONICALIZE_FILE_NAME |
| 924 | REPLACE_CALLOC |
| 925 | HAVE_DECL_UNSETENV |
| 926 | HAVE_UNLOCKPT |
| 927 | HAVE_SYS_LOADAVG_H |
| 928 | HAVE_STRUCT_RANDOM_DATA |
| 929 | HAVE_STRTOULL |
| 930 | HAVE_STRTOLL |
| 931 | HAVE_STRTOD |
| 932 | HAVE_DECL_SETENV |
| 933 | HAVE_SETENV |
| 934 | HAVE_RPMATCH |
| 935 | HAVE_REALPATH |
| 936 | HAVE_RANDOM_R |
| 937 | HAVE_RANDOM_H |
| 938 | HAVE_RANDOM |
| 939 | HAVE_PTSNAME_R |
| 940 | HAVE_PTSNAME |
| 941 | HAVE_POSIX_OPENPT |
| 942 | HAVE_MKSTEMPS |
| 943 | HAVE_MKSTEMP |
| 944 | HAVE_MKOSTEMPS |
| 945 | HAVE_MKOSTEMP |
| 946 | HAVE_MKDTEMP |
| 947 | HAVE_GRANTPT |
| 948 | HAVE_GETSUBOPT |
| 949 | HAVE_DECL_GETLOADAVG |
| 950 | HAVE_CANONICALIZE_FILE_NAME |
| 951 | HAVE_ATOLL |
| 952 | HAVE__EXIT |
| 953 | GNULIB_WCTOMB |
| 954 | GNULIB_UNSETENV |
| 955 | GNULIB_UNLOCKPT |
| 956 | GNULIB_SYSTEM_POSIX |
| 957 | GNULIB_STRTOULL |
| 958 | GNULIB_STRTOLL |
| 959 | GNULIB_STRTOD |
| 960 | GNULIB_SETENV |
| 961 | GNULIB_RPMATCH |
| 962 | GNULIB_REALPATH |
| 963 | GNULIB_REALLOC_POSIX |
| 964 | GNULIB_RANDOM_R |
| 965 | GNULIB_RANDOM |
| 966 | GNULIB_PUTENV |
| 967 | GNULIB_PTSNAME_R |
| 968 | GNULIB_PTSNAME |
| 969 | GNULIB_POSIX_OPENPT |
| 970 | GNULIB_MKSTEMPS |
| 971 | GNULIB_MKSTEMP |
| 972 | GNULIB_MKOSTEMPS |
| 973 | GNULIB_MKOSTEMP |
| 974 | GNULIB_MKDTEMP |
| 975 | GNULIB_MBTOWC |
| 976 | GNULIB_MALLOC_POSIX |
| 977 | GNULIB_GRANTPT |
| 978 | GNULIB_GETSUBOPT |
| 979 | GNULIB_GETLOADAVG |
| 980 | GNULIB_CANONICALIZE_FILE_NAME |
| 981 | GNULIB_CALLOC_POSIX |
| 982 | GNULIB_ATOLL |
| 983 | GNULIB__EXIT |
| 984 | NEXT_AS_FIRST_DIRECTIVE_FCNTL_H |
| 985 | NEXT_FCNTL_H |
| 986 | PRAGMA_COLUMNS |
| 987 | PRAGMA_SYSTEM_HEADER |
| 988 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE |
| 989 | INCLUDE_NEXT |
| 990 | REPLACE_OPENAT |
| 991 | REPLACE_OPEN |
| 992 | REPLACE_FCNTL |
| 993 | HAVE_OPENAT |
| 994 | HAVE_FCNTL |
| 995 | GNULIB_OPENAT |
| 996 | GNULIB_OPEN |
| 997 | GNULIB_NONBLOCKING |
| 998 | GNULIB_FCNTL |
| 999 | GL_GENERATE_EXECINFO_H_FALSE |
| 1000 | GL_GENERATE_EXECINFO_H_TRUE |
| 1001 | LIB_EXECINFO |
| 1002 | EXECINFO_H |
| 1003 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS |
| 1004 | UNISTD_H_HAVE_WINSOCK2_H |
| 1005 | REPLACE_WRITE |
| 1006 | REPLACE_USLEEP |
| 1007 | REPLACE_UNLINKAT |
| 1008 | REPLACE_UNLINK |
| 1009 | REPLACE_TTYNAME_R |
| 1010 | REPLACE_SYMLINK |
| 1011 | REPLACE_SLEEP |
| 1012 | REPLACE_RMDIR |
| 1013 | REPLACE_READLINK |
| 1014 | REPLACE_READ |
| 1015 | REPLACE_PWRITE |
| 1016 | REPLACE_PREAD |
| 1017 | REPLACE_LSEEK |
| 1018 | REPLACE_LINKAT |
| 1019 | REPLACE_LINK |
| 1020 | REPLACE_LCHOWN |
| 1021 | REPLACE_ISATTY |
| 1022 | REPLACE_GETPAGESIZE |
| 1023 | REPLACE_GETGROUPS |
| 1024 | REPLACE_GETLOGIN_R |
| 1025 | REPLACE_GETDOMAINNAME |
| 1026 | REPLACE_GETCWD |
| 1027 | REPLACE_FTRUNCATE |
| 1028 | REPLACE_FCHOWNAT |
| 1029 | REPLACE_DUP2 |
| 1030 | REPLACE_DUP |
| 1031 | REPLACE_CLOSE |
| 1032 | REPLACE_CHOWN |
| 1033 | HAVE_SYS_PARAM_H |
| 1034 | HAVE_OS_H |
| 1035 | HAVE_DECL_TTYNAME_R |
| 1036 | HAVE_DECL_SETHOSTNAME |
| 1037 | HAVE_DECL_GETUSERSHELL |
| 1038 | HAVE_DECL_GETPAGESIZE |
| 1039 | HAVE_DECL_GETLOGIN_R |
| 1040 | HAVE_DECL_GETDOMAINNAME |
| 1041 | HAVE_DECL_FDATASYNC |
| 1042 | HAVE_DECL_FCHDIR |
| 1043 | HAVE_DECL_ENVIRON |
| 1044 | HAVE_USLEEP |
| 1045 | HAVE_UNLINKAT |
| 1046 | HAVE_SYMLINKAT |
| 1047 | HAVE_SYMLINK |
| 1048 | HAVE_SLEEP |
| 1049 | HAVE_SETHOSTNAME |
| 1050 | HAVE_READLINKAT |
| 1051 | HAVE_READLINK |
| 1052 | HAVE_PWRITE |
| 1053 | HAVE_PREAD |
| 1054 | HAVE_PIPE2 |
| 1055 | HAVE_PIPE |
| 1056 | HAVE_LINKAT |
| 1057 | HAVE_LINK |
| 1058 | HAVE_LCHOWN |
| 1059 | HAVE_GROUP_MEMBER |
| 1060 | HAVE_GETPAGESIZE |
| 1061 | HAVE_GETLOGIN |
| 1062 | HAVE_GETHOSTNAME |
| 1063 | HAVE_GETGROUPS |
| 1064 | HAVE_GETDTABLESIZE |
| 1065 | HAVE_FTRUNCATE |
| 1066 | HAVE_FSYNC |
| 1067 | HAVE_FDATASYNC |
| 1068 | HAVE_FCHOWNAT |
| 1069 | HAVE_FCHDIR |
| 1070 | HAVE_FACCESSAT |
| 1071 | HAVE_EUIDACCESS |
| 1072 | HAVE_DUP3 |
| 1073 | HAVE_DUP2 |
| 1074 | HAVE_CHOWN |
| 1075 | GNULIB_WRITE |
| 1076 | GNULIB_USLEEP |
| 1077 | GNULIB_UNLINKAT |
| 1078 | GNULIB_UNLINK |
| 1079 | GNULIB_UNISTD_H_SIGPIPE |
| 1080 | GNULIB_UNISTD_H_NONBLOCKING |
| 1081 | GNULIB_TTYNAME_R |
| 1082 | GNULIB_SYMLINKAT |
| 1083 | GNULIB_SYMLINK |
| 1084 | GNULIB_SLEEP |
| 1085 | GNULIB_SETHOSTNAME |
| 1086 | GNULIB_RMDIR |
| 1087 | GNULIB_READLINKAT |
| 1088 | GNULIB_READLINK |
| 1089 | GNULIB_READ |
| 1090 | GNULIB_PWRITE |
| 1091 | GNULIB_PREAD |
| 1092 | GNULIB_PIPE2 |
| 1093 | GNULIB_PIPE |
| 1094 | GNULIB_LSEEK |
| 1095 | GNULIB_LINKAT |
| 1096 | GNULIB_LINK |
| 1097 | GNULIB_LCHOWN |
| 1098 | GNULIB_ISATTY |
| 1099 | GNULIB_GROUP_MEMBER |
| 1100 | GNULIB_GETUSERSHELL |
| 1101 | GNULIB_GETPAGESIZE |
| 1102 | GNULIB_GETLOGIN_R |
| 1103 | GNULIB_GETLOGIN |
| 1104 | GNULIB_GETHOSTNAME |
| 1105 | GNULIB_GETGROUPS |
| 1106 | GNULIB_GETDTABLESIZE |
| 1107 | GNULIB_GETDOMAINNAME |
| 1108 | GNULIB_GETCWD |
| 1109 | GNULIB_FTRUNCATE |
| 1110 | GNULIB_FSYNC |
| 1111 | GNULIB_FDATASYNC |
| 1112 | GNULIB_FCHOWNAT |
| 1113 | GNULIB_FCHDIR |
| 1114 | GNULIB_FACCESSAT |
| 1115 | GNULIB_EUIDACCESS |
| 1116 | GNULIB_ENVIRON |
| 1117 | GNULIB_DUP3 |
| 1118 | GNULIB_DUP2 |
| 1119 | GNULIB_DUP |
| 1120 | GNULIB_CLOSE |
| 1121 | GNULIB_CHOWN |
| 1122 | GNULIB_CHDIR |
| 1123 | LIB_CLOCK_GETTIME |
| 1124 | GL_GENERATE_ALLOCA_H_FALSE |
| 1125 | GL_GENERATE_ALLOCA_H_TRUE |
| 1126 | ALLOCA_H |
| 1127 | ALLOCA |
| 1128 | GL_COND_LIBTOOL_FALSE |
| 1129 | GL_COND_LIBTOOL_TRUE |
| 1130 | POST_ALLOC_OBJ |
| 1131 | PRE_ALLOC_OBJ |
| 1132 | CYGWIN_OBJ |
| 1133 | RALLOC_OBJ |
| 1134 | OLDXMENU_DEPS |
| 1135 | LIBX_OTHER |
| 1136 | LIBXMENU |
| 1137 | OLDXMENU |
| 1138 | OLDXMENU_TARGET |
| 1139 | LIBXT_OTHER |
| 1140 | TOOLKIT_LIBW |
| 1141 | WIDGET_OBJ |
| 1142 | XOBJ |
| 1143 | XMENU_OBJ |
| 1144 | FONT_OBJ |
| 1145 | OTHER_FILES |
| 1146 | GNU_OBJC_CFLAGS |
| 1147 | ns_appsrc |
| 1148 | ns_appresdir |
| 1149 | ns_appbindir |
| 1150 | ns_appdir |
| 1151 | X_TOOLKIT_TYPE |
| 1152 | GNUSTEP_CFLAGS |
| 1153 | C_SWITCH_X_SITE |
| 1154 | LD_SWITCH_X_SITE |
| 1155 | gameuser |
| 1156 | gamedir |
| 1157 | bitmapdir |
| 1158 | archlibdir |
| 1159 | etcdir |
| 1160 | x_default_search_path |
| 1161 | lisppath |
| 1162 | locallisppath |
| 1163 | standardlisppath |
| 1164 | leimdir |
| 1165 | lispdir |
| 1166 | srcdir |
| 1167 | canonical |
| 1168 | configuration |
| 1169 | version |
| 1170 | copyright |
| 1171 | KRB4LIB |
| 1172 | DESLIB |
| 1173 | KRB5LIB |
| 1174 | CRYPTOLIB |
| 1175 | COM_ERRLIB |
| 1176 | LIBRESOLV |
| 1177 | LIBHESIOD |
| 1178 | TERMCAP_OBJ |
| 1179 | LIBS_TERMCAP |
| 1180 | BLESSMAIL_TARGET |
| 1181 | LIBS_MAIL |
| 1182 | liblockfile |
| 1183 | LIBXML2_LIBS |
| 1184 | LIBXML2_CFLAGS |
| 1185 | LIBXSM |
| 1186 | LIBGPM |
| 1187 | LIBGIF |
| 1188 | LIBTIFF |
| 1189 | LIBPNG |
| 1190 | LIBJPEG |
| 1191 | LIBXPM |
| 1192 | M17N_FLT_LIBS |
| 1193 | M17N_FLT_CFLAGS |
| 1194 | LIBOTF_LIBS |
| 1195 | LIBOTF_CFLAGS |
| 1196 | FREETYPE_LIBS |
| 1197 | FREETYPE_CFLAGS |
| 1198 | XFT_LIBS |
| 1199 | XFT_CFLAGS |
| 1200 | FONTCONFIG_LIBS |
| 1201 | FONTCONFIG_CFLAGS |
| 1202 | LIBXMU |
| 1203 | LIBXTR6 |
| 1204 | LIBGNUTLS_LIBS |
| 1205 | LIBGNUTLS_CFLAGS |
| 1206 | LIBSELINUX_LIBS |
| 1207 | SETTINGS_LIBS |
| 1208 | SETTINGS_CFLAGS |
| 1209 | GOBJECT_LIBS |
| 1210 | GOBJECT_CFLAGS |
| 1211 | GCONF_LIBS |
| 1212 | GCONF_CFLAGS |
| 1213 | GSETTINGS_LIBS |
| 1214 | GSETTINGS_CFLAGS |
| 1215 | DBUS_OBJ |
| 1216 | DBUS_LIBS |
| 1217 | DBUS_CFLAGS |
| 1218 | GTK_OBJ |
| 1219 | GTK_LIBS |
| 1220 | GTK_CFLAGS |
| 1221 | IMAGEMAGICK_LIBS |
| 1222 | IMAGEMAGICK_CFLAGS |
| 1223 | RSVG_LIBS |
| 1224 | RSVG_CFLAGS |
| 1225 | LIB_PTHREAD |
| 1226 | VMLIMIT_OBJ |
| 1227 | GMALLOC_OBJ |
| 1228 | HAVE_XSERVER |
| 1229 | W32_LIBS |
| 1230 | W32_OBJ |
| 1231 | LIB_STANDARD |
| 1232 | NS_OBJC_OBJ |
| 1233 | NS_OBJ |
| 1234 | ns_self_contained |
| 1235 | INSTALL_ARCH_INDEP_EXTRA |
| 1236 | TEMACS_LDFLAGS2 |
| 1237 | LD_SWITCH_X_SITE_RPATH |
| 1238 | XMKMF |
| 1239 | DEPFLAGS |
| 1240 | MKDEPDIR |
| 1241 | CFLAGS_SOUND |
| 1242 | ALSA_LIBS |
| 1243 | ALSA_CFLAGS |
| 1244 | LIBSOUND |
| 1245 | PKG_CONFIG |
| 1246 | CRT_DIR |
| 1247 | START_FILES |
| 1248 | LIB_MATH |
| 1249 | LIBS_SYSTEM |
| 1250 | C_SWITCH_SYSTEM |
| 1251 | UNEXEC_OBJ |
| 1252 | C_SWITCH_MACHINE |
| 1253 | LD_SWITCH_SYSTEM |
| 1254 | CANNOT_DUMP |
| 1255 | INFO_OPTS |
| 1256 | INFO_EXT |
| 1257 | HAVE_MAKEINFO |
| 1258 | PAXCTL |
| 1259 | GZIP_PROG |
| 1260 | INSTALL_INFO |
| 1261 | LN_S |
| 1262 | GNULIB_WARN_CFLAGS |
| 1263 | WARN_CFLAGS |
| 1264 | WERROR_CFLAGS |
| 1265 | RANLIB |
| 1266 | ARFLAGS |
| 1267 | AR |
| 1268 | EGREP |
| 1269 | GREP |
| 1270 | CPP |
| 1271 | am__fastdepCC_FALSE |
| 1272 | am__fastdepCC_TRUE |
| 1273 | CCDEPMODE |
| 1274 | AMDEPBACKSLASH |
| 1275 | AMDEP_FALSE |
| 1276 | AMDEP_TRUE |
| 1277 | am__quote |
| 1278 | am__include |
| 1279 | DEPDIR |
| 1280 | OBJEXT |
| 1281 | EXEEXT |
| 1282 | ac_ct_CC |
| 1283 | CPPFLAGS |
| 1284 | LDFLAGS |
| 1285 | CFLAGS |
| 1286 | CC |
| 1287 | host_os |
| 1288 | host_vendor |
| 1289 | host_cpu |
| 1290 | host |
| 1291 | build_os |
| 1292 | build_vendor |
| 1293 | build_cpu |
| 1294 | build |
| 1295 | PROFILING_CFLAGS |
| 1296 | GZIP_INFO |
| 1297 | cache_file |
| 1298 | am__untar |
| 1299 | am__tar |
| 1300 | AMTAR |
| 1301 | am__leading_dot |
| 1302 | SET_MAKE |
| 1303 | AWK |
| 1304 | mkdir_p |
| 1305 | MKDIR_P |
| 1306 | INSTALL_STRIP_PROGRAM |
| 1307 | STRIP |
| 1308 | install_sh |
| 1309 | MAKEINFO |
| 1310 | AUTOHEADER |
| 1311 | AUTOMAKE |
| 1312 | AUTOCONF |
| 1313 | ACLOCAL |
| 1314 | VERSION |
| 1315 | PACKAGE |
| 1316 | CYGPATH_W |
| 1317 | am__isrc |
| 1318 | INSTALL_DATA |
| 1319 | INSTALL_SCRIPT |
| 1320 | INSTALL_PROGRAM |
| 1321 | target_alias |
| 1322 | host_alias |
| 1323 | build_alias |
| 1324 | LIBS |
| 1325 | ECHO_T |
| 1326 | ECHO_N |
| 1327 | ECHO_C |
| 1328 | DEFS |
| 1329 | mandir |
| 1330 | localedir |
| 1331 | libdir |
| 1332 | psdir |
| 1333 | pdfdir |
| 1334 | dvidir |
| 1335 | htmldir |
| 1336 | infodir |
| 1337 | docdir |
| 1338 | oldincludedir |
| 1339 | includedir |
| 1340 | localstatedir |
| 1341 | sharedstatedir |
| 1342 | sysconfdir |
| 1343 | datadir |
| 1344 | datarootdir |
| 1345 | libexecdir |
| 1346 | sbindir |
| 1347 | bindir |
| 1348 | program_transform_name |
| 1349 | prefix |
| 1350 | exec_prefix |
| 1351 | PACKAGE_URL |
| 1352 | PACKAGE_BUGREPORT |
| 1353 | PACKAGE_STRING |
| 1354 | PACKAGE_VERSION |
| 1355 | PACKAGE_TARNAME |
| 1356 | PACKAGE_NAME |
| 1357 | PATH_SEPARATOR |
| 1358 | SHELL' |
| 1359 | ac_subst_files='deps_frag |
| 1360 | lisp_frag' |
| 1361 | ac_user_opts=' |
| 1362 | enable_option_checking |
| 1363 | with_all |
| 1364 | with_pop |
| 1365 | with_kerberos |
| 1366 | with_kerberos5 |
| 1367 | with_hesiod |
| 1368 | with_mmdf |
| 1369 | with_mail_unlink |
| 1370 | with_mailhost |
| 1371 | with_sound |
| 1372 | with_x_toolkit |
| 1373 | with_wide_int |
| 1374 | with_xpm |
| 1375 | with_jpeg |
| 1376 | with_tiff |
| 1377 | with_gif |
| 1378 | with_png |
| 1379 | with_rsvg |
| 1380 | with_xml2 |
| 1381 | with_imagemagick |
| 1382 | with_xft |
| 1383 | with_libotf |
| 1384 | with_m17n_flt |
| 1385 | with_toolkit_scroll_bars |
| 1386 | with_xaw3d |
| 1387 | with_xim |
| 1388 | with_ns |
| 1389 | with_w32 |
| 1390 | with_gpm |
| 1391 | with_dbus |
| 1392 | with_gconf |
| 1393 | with_gsettings |
| 1394 | with_selinux |
| 1395 | with_gnutls |
| 1396 | with_makeinfo |
| 1397 | with_compress_info |
| 1398 | with_pkg_config_prog |
| 1399 | with_crt_dir |
| 1400 | with_gameuser |
| 1401 | with_gnustep_conf |
| 1402 | enable_ns_self_contained |
| 1403 | enable_locallisppath |
| 1404 | enable_checking |
| 1405 | enable_check_lisp_object_type |
| 1406 | enable_profiling |
| 1407 | enable_autodepend |
| 1408 | enable_dependency_tracking |
| 1409 | enable_largefile |
| 1410 | enable_gcc_warnings |
| 1411 | enable_link_time_optimization |
| 1412 | with_x |
| 1413 | ' |
| 1414 | ac_precious_vars='build_alias |
| 1415 | host_alias |
| 1416 | target_alias |
| 1417 | CC |
| 1418 | CFLAGS |
| 1419 | LDFLAGS |
| 1420 | LIBS |
| 1421 | CPPFLAGS |
| 1422 | CPP |
| 1423 | XMKMF' |
| 1424 | |
| 1425 | |
| 1426 | # Initialize some variables set by options. |
| 1427 | ac_init_help= |
| 1428 | ac_init_version=false |
| 1429 | ac_unrecognized_opts= |
| 1430 | ac_unrecognized_sep= |
| 1431 | # The variables have the same names as the options, with |
| 1432 | # dashes changed to underlines. |
| 1433 | cache_file=/dev/null |
| 1434 | exec_prefix=NONE |
| 1435 | no_create= |
| 1436 | no_recursion= |
| 1437 | prefix=NONE |
| 1438 | program_prefix=NONE |
| 1439 | program_suffix=NONE |
| 1440 | program_transform_name=s,x,x, |
| 1441 | silent= |
| 1442 | site= |
| 1443 | srcdir= |
| 1444 | verbose= |
| 1445 | x_includes=NONE |
| 1446 | x_libraries=NONE |
| 1447 | |
| 1448 | # Installation directory options. |
| 1449 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 1450 | # and all the variables that are supposed to be based on exec_prefix |
| 1451 | # by default will actually change. |
| 1452 | # Use braces instead of parens because sh, perl, etc. also accept them. |
| 1453 | # (The list follows the same order as the GNU Coding Standards.) |
| 1454 | bindir='${exec_prefix}/bin' |
| 1455 | sbindir='${exec_prefix}/sbin' |
| 1456 | libexecdir='${exec_prefix}/libexec' |
| 1457 | datarootdir='${prefix}/share' |
| 1458 | datadir='${datarootdir}' |
| 1459 | sysconfdir='${prefix}/etc' |
| 1460 | sharedstatedir='${prefix}/com' |
| 1461 | localstatedir='${prefix}/var' |
| 1462 | includedir='${prefix}/include' |
| 1463 | oldincludedir='/usr/include' |
| 1464 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
| 1465 | infodir='${datarootdir}/info' |
| 1466 | htmldir='${docdir}' |
| 1467 | dvidir='${docdir}' |
| 1468 | pdfdir='${docdir}' |
| 1469 | psdir='${docdir}' |
| 1470 | libdir='${exec_prefix}/lib' |
| 1471 | localedir='${datarootdir}/locale' |
| 1472 | mandir='${datarootdir}/man' |
| 1473 | |
| 1474 | ac_prev= |
| 1475 | ac_dashdash= |
| 1476 | for ac_option |
| 1477 | do |
| 1478 | # If the previous option needs an argument, assign it. |
| 1479 | if test -n "$ac_prev"; then |
| 1480 | eval $ac_prev=\$ac_option |
| 1481 | ac_prev= |
| 1482 | continue |
| 1483 | fi |
| 1484 | |
| 1485 | case $ac_option in |
| 1486 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 1487 | *) ac_optarg=yes ;; |
| 1488 | esac |
| 1489 | |
| 1490 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 1491 | |
| 1492 | case $ac_dashdash$ac_option in |
| 1493 | --) |
| 1494 | ac_dashdash=yes ;; |
| 1495 | |
| 1496 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 1497 | ac_prev=bindir ;; |
| 1498 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 1499 | bindir=$ac_optarg ;; |
| 1500 | |
| 1501 | -build | --build | --buil | --bui | --bu) |
| 1502 | ac_prev=build_alias ;; |
| 1503 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 1504 | build_alias=$ac_optarg ;; |
| 1505 | |
| 1506 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 1507 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 1508 | ac_prev=cache_file ;; |
| 1509 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 1510 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 1511 | cache_file=$ac_optarg ;; |
| 1512 | |
| 1513 | --config-cache | -C) |
| 1514 | cache_file=config.cache ;; |
| 1515 | |
| 1516 | -datadir | --datadir | --datadi | --datad) |
| 1517 | ac_prev=datadir ;; |
| 1518 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
| 1519 | datadir=$ac_optarg ;; |
| 1520 | |
| 1521 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 1522 | | --dataroo | --dataro | --datar) |
| 1523 | ac_prev=datarootdir ;; |
| 1524 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 1525 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 1526 | datarootdir=$ac_optarg ;; |
| 1527 | |
| 1528 | -disable-* | --disable-*) |
| 1529 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 1530 | # Reject names that are not valid shell variable names. |
| 1531 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1532 | as_fn_error "invalid feature name: $ac_useropt" |
| 1533 | ac_useropt_orig=$ac_useropt |
| 1534 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1535 | case $ac_user_opts in |
| 1536 | *" |
| 1537 | "enable_$ac_useropt" |
| 1538 | "*) ;; |
| 1539 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 1540 | ac_unrecognized_sep=', ';; |
| 1541 | esac |
| 1542 | eval enable_$ac_useropt=no ;; |
| 1543 | |
| 1544 | -docdir | --docdir | --docdi | --doc | --do) |
| 1545 | ac_prev=docdir ;; |
| 1546 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 1547 | docdir=$ac_optarg ;; |
| 1548 | |
| 1549 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 1550 | ac_prev=dvidir ;; |
| 1551 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 1552 | dvidir=$ac_optarg ;; |
| 1553 | |
| 1554 | -enable-* | --enable-*) |
| 1555 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 1556 | # Reject names that are not valid shell variable names. |
| 1557 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1558 | as_fn_error "invalid feature name: $ac_useropt" |
| 1559 | ac_useropt_orig=$ac_useropt |
| 1560 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1561 | case $ac_user_opts in |
| 1562 | *" |
| 1563 | "enable_$ac_useropt" |
| 1564 | "*) ;; |
| 1565 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 1566 | ac_unrecognized_sep=', ';; |
| 1567 | esac |
| 1568 | eval enable_$ac_useropt=\$ac_optarg ;; |
| 1569 | |
| 1570 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 1571 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 1572 | | --exec | --exe | --ex) |
| 1573 | ac_prev=exec_prefix ;; |
| 1574 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 1575 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 1576 | | --exec=* | --exe=* | --ex=*) |
| 1577 | exec_prefix=$ac_optarg ;; |
| 1578 | |
| 1579 | -gas | --gas | --ga | --g) |
| 1580 | # Obsolete; use --with-gas. |
| 1581 | with_gas=yes ;; |
| 1582 | |
| 1583 | -help | --help | --hel | --he | -h) |
| 1584 | ac_init_help=long ;; |
| 1585 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1586 | ac_init_help=recursive ;; |
| 1587 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1588 | ac_init_help=short ;; |
| 1589 | |
| 1590 | -host | --host | --hos | --ho) |
| 1591 | ac_prev=host_alias ;; |
| 1592 | -host=* | --host=* | --hos=* | --ho=*) |
| 1593 | host_alias=$ac_optarg ;; |
| 1594 | |
| 1595 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1596 | ac_prev=htmldir ;; |
| 1597 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1598 | | --ht=*) |
| 1599 | htmldir=$ac_optarg ;; |
| 1600 | |
| 1601 | -includedir | --includedir | --includedi | --included | --include \ |
| 1602 | | --includ | --inclu | --incl | --inc) |
| 1603 | ac_prev=includedir ;; |
| 1604 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1605 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
| 1606 | includedir=$ac_optarg ;; |
| 1607 | |
| 1608 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1609 | ac_prev=infodir ;; |
| 1610 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 1611 | infodir=$ac_optarg ;; |
| 1612 | |
| 1613 | -libdir | --libdir | --libdi | --libd) |
| 1614 | ac_prev=libdir ;; |
| 1615 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 1616 | libdir=$ac_optarg ;; |
| 1617 | |
| 1618 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1619 | | --libexe | --libex | --libe) |
| 1620 | ac_prev=libexecdir ;; |
| 1621 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1622 | | --libexe=* | --libex=* | --libe=*) |
| 1623 | libexecdir=$ac_optarg ;; |
| 1624 | |
| 1625 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1626 | ac_prev=localedir ;; |
| 1627 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1628 | localedir=$ac_optarg ;; |
| 1629 | |
| 1630 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 1631 | | --localstate | --localstat | --localsta | --localst | --locals) |
| 1632 | ac_prev=localstatedir ;; |
| 1633 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 1634 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
| 1635 | localstatedir=$ac_optarg ;; |
| 1636 | |
| 1637 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1638 | ac_prev=mandir ;; |
| 1639 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 1640 | mandir=$ac_optarg ;; |
| 1641 | |
| 1642 | -nfp | --nfp | --nf) |
| 1643 | # Obsolete; use --without-fp. |
| 1644 | with_fp=no ;; |
| 1645 | |
| 1646 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 1647 | | --no-cr | --no-c | -n) |
| 1648 | no_create=yes ;; |
| 1649 | |
| 1650 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1651 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1652 | no_recursion=yes ;; |
| 1653 | |
| 1654 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1655 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1656 | | --oldin | --oldi | --old | --ol | --o) |
| 1657 | ac_prev=oldincludedir ;; |
| 1658 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1659 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1660 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 1661 | oldincludedir=$ac_optarg ;; |
| 1662 | |
| 1663 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1664 | ac_prev=prefix ;; |
| 1665 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 1666 | prefix=$ac_optarg ;; |
| 1667 | |
| 1668 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1669 | | --program-pre | --program-pr | --program-p) |
| 1670 | ac_prev=program_prefix ;; |
| 1671 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1672 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 1673 | program_prefix=$ac_optarg ;; |
| 1674 | |
| 1675 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1676 | | --program-suf | --program-su | --program-s) |
| 1677 | ac_prev=program_suffix ;; |
| 1678 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1679 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 1680 | program_suffix=$ac_optarg ;; |
| 1681 | |
| 1682 | -program-transform-name | --program-transform-name \ |
| 1683 | | --program-transform-nam | --program-transform-na \ |
| 1684 | | --program-transform-n | --program-transform- \ |
| 1685 | | --program-transform | --program-transfor \ |
| 1686 | | --program-transfo | --program-transf \ |
| 1687 | | --program-trans | --program-tran \ |
| 1688 | | --progr-tra | --program-tr | --program-t) |
| 1689 | ac_prev=program_transform_name ;; |
| 1690 | -program-transform-name=* | --program-transform-name=* \ |
| 1691 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1692 | | --program-transform-n=* | --program-transform-=* \ |
| 1693 | | --program-transform=* | --program-transfor=* \ |
| 1694 | | --program-transfo=* | --program-transf=* \ |
| 1695 | | --program-trans=* | --program-tran=* \ |
| 1696 | | --progr-tra=* | --program-tr=* | --program-t=*) |
| 1697 | program_transform_name=$ac_optarg ;; |
| 1698 | |
| 1699 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1700 | ac_prev=pdfdir ;; |
| 1701 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1702 | pdfdir=$ac_optarg ;; |
| 1703 | |
| 1704 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1705 | ac_prev=psdir ;; |
| 1706 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1707 | psdir=$ac_optarg ;; |
| 1708 | |
| 1709 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1710 | | -silent | --silent | --silen | --sile | --sil) |
| 1711 | silent=yes ;; |
| 1712 | |
| 1713 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1714 | ac_prev=sbindir ;; |
| 1715 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1716 | | --sbi=* | --sb=*) |
| 1717 | sbindir=$ac_optarg ;; |
| 1718 | |
| 1719 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1720 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1721 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1722 | | --sha | --sh) |
| 1723 | ac_prev=sharedstatedir ;; |
| 1724 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1725 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1726 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1727 | | --sha=* | --sh=*) |
| 1728 | sharedstatedir=$ac_optarg ;; |
| 1729 | |
| 1730 | -site | --site | --sit) |
| 1731 | ac_prev=site ;; |
| 1732 | -site=* | --site=* | --sit=*) |
| 1733 | site=$ac_optarg ;; |
| 1734 | |
| 1735 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1736 | ac_prev=srcdir ;; |
| 1737 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 1738 | srcdir=$ac_optarg ;; |
| 1739 | |
| 1740 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1741 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1742 | ac_prev=sysconfdir ;; |
| 1743 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1744 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 1745 | sysconfdir=$ac_optarg ;; |
| 1746 | |
| 1747 | -target | --target | --targe | --targ | --tar | --ta | --t) |
| 1748 | ac_prev=target_alias ;; |
| 1749 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 1750 | target_alias=$ac_optarg ;; |
| 1751 | |
| 1752 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1753 | verbose=yes ;; |
| 1754 | |
| 1755 | -version | --version | --versio | --versi | --vers | -V) |
| 1756 | ac_init_version=: ;; |
| 1757 | |
| 1758 | -with-* | --with-*) |
| 1759 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 1760 | # Reject names that are not valid shell variable names. |
| 1761 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1762 | as_fn_error "invalid package name: $ac_useropt" |
| 1763 | ac_useropt_orig=$ac_useropt |
| 1764 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1765 | case $ac_user_opts in |
| 1766 | *" |
| 1767 | "with_$ac_useropt" |
| 1768 | "*) ;; |
| 1769 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1770 | ac_unrecognized_sep=', ';; |
| 1771 | esac |
| 1772 | eval with_$ac_useropt=\$ac_optarg ;; |
| 1773 | |
| 1774 | -without-* | --without-*) |
| 1775 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 1776 | # Reject names that are not valid shell variable names. |
| 1777 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
| 1778 | as_fn_error "invalid package name: $ac_useropt" |
| 1779 | ac_useropt_orig=$ac_useropt |
| 1780 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1781 | case $ac_user_opts in |
| 1782 | *" |
| 1783 | "with_$ac_useropt" |
| 1784 | "*) ;; |
| 1785 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1786 | ac_unrecognized_sep=', ';; |
| 1787 | esac |
| 1788 | eval with_$ac_useropt=no ;; |
| 1789 | |
| 1790 | --x) |
| 1791 | # Obsolete; use --with-x. |
| 1792 | with_x=yes ;; |
| 1793 | |
| 1794 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1795 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1796 | ac_prev=x_includes ;; |
| 1797 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1798 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 1799 | x_includes=$ac_optarg ;; |
| 1800 | |
| 1801 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1802 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1803 | ac_prev=x_libraries ;; |
| 1804 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1805 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 1806 | x_libraries=$ac_optarg ;; |
| 1807 | |
| 1808 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1809 | Try \`$0 --help' for more information." |
| 1810 | ;; |
| 1811 | |
| 1812 | *=*) |
| 1813 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1814 | # Reject names that are not valid shell variable names. |
| 1815 | case $ac_envvar in #( |
| 1816 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1817 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1818 | esac |
| 1819 | eval $ac_envvar=\$ac_optarg |
| 1820 | export $ac_envvar ;; |
| 1821 | |
| 1822 | *) |
| 1823 | # FIXME: should be removed in autoconf 3.0. |
| 1824 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 1825 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 1826 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 1827 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 1828 | ;; |
| 1829 | |
| 1830 | esac |
| 1831 | done |
| 1832 | |
| 1833 | if test -n "$ac_prev"; then |
| 1834 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 1835 | as_fn_error "missing argument to $ac_option" |
| 1836 | fi |
| 1837 | |
| 1838 | if test -n "$ac_unrecognized_opts"; then |
| 1839 | case $enable_option_checking in |
| 1840 | no) ;; |
| 1841 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
| 1842 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1843 | esac |
| 1844 | fi |
| 1845 | |
| 1846 | # Check all directory arguments for consistency. |
| 1847 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1848 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1849 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1850 | libdir localedir mandir |
| 1851 | do |
| 1852 | eval ac_val=\$$ac_var |
| 1853 | # Remove trailing slashes. |
| 1854 | case $ac_val in |
| 1855 | */ ) |
| 1856 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1857 | eval $ac_var=\$ac_val;; |
| 1858 | esac |
| 1859 | # Be sure to have absolute directory names. |
| 1860 | case $ac_val in |
| 1861 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1862 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
| 1863 | esac |
| 1864 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
| 1865 | done |
| 1866 | |
| 1867 | # There might be people who depend on the old broken behavior: `$host' |
| 1868 | # used to hold the argument of --host etc. |
| 1869 | # FIXME: To remove some day. |
| 1870 | build=$build_alias |
| 1871 | host=$host_alias |
| 1872 | target=$target_alias |
| 1873 | |
| 1874 | # FIXME: To remove some day. |
| 1875 | if test "x$host_alias" != x; then |
| 1876 | if test "x$build_alias" = x; then |
| 1877 | cross_compiling=maybe |
| 1878 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 1879 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1880 | elif test "x$build_alias" != "x$host_alias"; then |
| 1881 | cross_compiling=yes |
| 1882 | fi |
| 1883 | fi |
| 1884 | |
| 1885 | ac_tool_prefix= |
| 1886 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1887 | |
| 1888 | test "$silent" = yes && exec 6>/dev/null |
| 1889 | |
| 1890 | |
| 1891 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1892 | ac_ls_di=`ls -di .` && |
| 1893 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
| 1894 | as_fn_error "working directory cannot be determined" |
| 1895 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
| 1896 | as_fn_error "pwd does not report name of working directory" |
| 1897 | |
| 1898 | |
| 1899 | # Find the source files, if location was not specified. |
| 1900 | if test -z "$srcdir"; then |
| 1901 | ac_srcdir_defaulted=yes |
| 1902 | # Try the directory containing this script, then the parent directory. |
| 1903 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1904 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1905 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1906 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1907 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1908 | $as_echo X"$as_myself" | |
| 1909 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1910 | s//\1/ |
| 1911 | q |
| 1912 | } |
| 1913 | /^X\(\/\/\)[^/].*/{ |
| 1914 | s//\1/ |
| 1915 | q |
| 1916 | } |
| 1917 | /^X\(\/\/\)$/{ |
| 1918 | s//\1/ |
| 1919 | q |
| 1920 | } |
| 1921 | /^X\(\/\).*/{ |
| 1922 | s//\1/ |
| 1923 | q |
| 1924 | } |
| 1925 | s/.*/./; q'` |
| 1926 | srcdir=$ac_confdir |
| 1927 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1928 | srcdir=.. |
| 1929 | fi |
| 1930 | else |
| 1931 | ac_srcdir_defaulted=no |
| 1932 | fi |
| 1933 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1934 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
| 1935 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
| 1936 | fi |
| 1937 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1938 | ac_abs_confdir=`( |
| 1939 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
| 1940 | pwd)` |
| 1941 | # When building in place, set srcdir=. |
| 1942 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1943 | srcdir=. |
| 1944 | fi |
| 1945 | # Remove unnecessary trailing slashes from srcdir. |
| 1946 | # Double slashes in file names in object file debugging info |
| 1947 | # mess up M-x gdb in Emacs. |
| 1948 | case $srcdir in |
| 1949 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1950 | esac |
| 1951 | for ac_var in $ac_precious_vars; do |
| 1952 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1953 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1954 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1955 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1956 | done |
| 1957 | |
| 1958 | # |
| 1959 | # Report the --help message. |
| 1960 | # |
| 1961 | if test "$ac_init_help" = "long"; then |
| 1962 | # Omit some internal or obsolete options to make the list less imposing. |
| 1963 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1964 | cat <<_ACEOF |
| 1965 | \`configure' configures emacs 24.3.50 to adapt to many kinds of systems. |
| 1966 | |
| 1967 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1968 | |
| 1969 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1970 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1971 | |
| 1972 | Defaults for the options are specified in brackets. |
| 1973 | |
| 1974 | Configuration: |
| 1975 | -h, --help display this help and exit |
| 1976 | --help=short display options specific to this package |
| 1977 | --help=recursive display the short help of all the included packages |
| 1978 | -V, --version display version information and exit |
| 1979 | -q, --quiet, --silent do not print \`checking...' messages |
| 1980 | --cache-file=FILE cache test results in FILE [disabled] |
| 1981 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1982 | -n, --no-create do not create output files |
| 1983 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1984 | |
| 1985 | Installation directories: |
| 1986 | --prefix=PREFIX install architecture-independent files in PREFIX |
| 1987 | [$ac_default_prefix] |
| 1988 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 1989 | [PREFIX] |
| 1990 | |
| 1991 | By default, \`make install' will install all the files in |
| 1992 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1993 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1994 | for instance \`--prefix=\$HOME'. |
| 1995 | |
| 1996 | For better control, use the options below. |
| 1997 | |
| 1998 | Fine tuning of the installation directories: |
| 1999 | --bindir=DIR user executables [EPREFIX/bin] |
| 2000 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 2001 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 2002 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 2003 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 2004 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 2005 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 2006 | --includedir=DIR C header files [PREFIX/include] |
| 2007 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 2008 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 2009 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 2010 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 2011 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 2012 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 2013 | --docdir=DIR documentation root [DATAROOTDIR/doc/emacs] |
| 2014 | --htmldir=DIR html documentation [DOCDIR] |
| 2015 | --dvidir=DIR dvi documentation [DOCDIR] |
| 2016 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 2017 | --psdir=DIR ps documentation [DOCDIR] |
| 2018 | _ACEOF |
| 2019 | |
| 2020 | cat <<\_ACEOF |
| 2021 | |
| 2022 | Program names: |
| 2023 | --program-prefix=PREFIX prepend PREFIX to installed program names |
| 2024 | --program-suffix=SUFFIX append SUFFIX to installed program names |
| 2025 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
| 2026 | |
| 2027 | X features: |
| 2028 | --x-includes=DIR X include files are in DIR |
| 2029 | --x-libraries=DIR X library files are in DIR |
| 2030 | |
| 2031 | System types: |
| 2032 | --build=BUILD configure for building on BUILD [guessed] |
| 2033 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 2034 | _ACEOF |
| 2035 | fi |
| 2036 | |
| 2037 | if test -n "$ac_init_help"; then |
| 2038 | case $ac_init_help in |
| 2039 | short | recursive ) echo "Configuration of emacs 24.3.50:";; |
| 2040 | esac |
| 2041 | cat <<\_ACEOF |
| 2042 | |
| 2043 | Optional Features: |
| 2044 | --disable-option-checking ignore unrecognized --enable/--with options |
| 2045 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 2046 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
| 2047 | --disable-ns-self-contained |
| 2048 | disable self contained build under NeXTstep |
| 2049 | --enable-locallisppath=PATH |
| 2050 | directories Emacs should search for lisp files |
| 2051 | specific to this site |
| 2052 | --enable-checking[=LIST] |
| 2053 | enable expensive run-time checks. With LIST, enable |
| 2054 | only specific categories of checks. Categories are: |
| 2055 | all,yes,no. Flags are: stringbytes, stringoverrun, |
| 2056 | stringfreelist, xmallocoverrun, conslist, glyphs |
| 2057 | --enable-check-lisp-object-type |
| 2058 | enable compile time checks for the Lisp_Object data |
| 2059 | type. This is useful for development for catching |
| 2060 | certain types of bugs. |
| 2061 | --enable-profiling build emacs with low-level, gprof profiling support. |
| 2062 | Mainly useful for debugging Emacs itself. May not |
| 2063 | work on all platforms. Stops profiler.el working. |
| 2064 | --enable-autodepend automatically generate dependencies to .h-files. |
| 2065 | Requires GNU Make and Gcc. Enabled if GNU Make and |
| 2066 | Gcc is found |
| 2067 | --disable-dependency-tracking speeds up one-time build |
| 2068 | --enable-dependency-tracking do not reject slow dependency extractors |
| 2069 | --disable-largefile omit support for large files |
| 2070 | --enable-gcc-warnings turn on lots of GCC warnings. This is intended for |
| 2071 | developers, and may generate false alarms when used |
| 2072 | with older or non-GNU development tools. |
| 2073 | --enable-link-time-optimization |
| 2074 | build emacs with link-time optimization. This is |
| 2075 | supported only for GCC since 4.5.0. |
| 2076 | |
| 2077 | Optional Packages: |
| 2078 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 2079 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
| 2080 | --without-all omit almost all features and build small executable |
| 2081 | with minimal dependencies |
| 2082 | --without-pop don't support POP mail retrieval with movemail |
| 2083 | --with-kerberos support Kerberos-authenticated POP |
| 2084 | --with-kerberos5 support Kerberos version 5 authenticated POP |
| 2085 | --with-hesiod support Hesiod to get the POP server host |
| 2086 | --with-mmdf support MMDF mailboxes |
| 2087 | --with-mail-unlink unlink, rather than empty, mail spool after reading |
| 2088 | --with-mailhost=HOSTNAME |
| 2089 | string giving default POP mail host |
| 2090 | --without-sound don't compile with sound support |
| 2091 | --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, gtk2, |
| 2092 | gtk3, lucid or athena, motif, no) |
| 2093 | --with-wide-int prefer wide Emacs integers (typically 62-bit) |
| 2094 | --without-xpm don't compile with XPM image support |
| 2095 | --without-jpeg don't compile with JPEG image support |
| 2096 | --without-tiff don't compile with TIFF image support |
| 2097 | --without-gif don't compile with GIF image support |
| 2098 | --without-png don't compile with PNG image support |
| 2099 | --without-rsvg don't compile with SVG image support |
| 2100 | --without-xml2 don't compile with XML parsing support |
| 2101 | --without-imagemagick don't compile with ImageMagick image support |
| 2102 | --without-xft don't use XFT for anti aliased fonts |
| 2103 | --without-libotf don't use libotf for OpenType font support |
| 2104 | --without-m17n-flt don't use m17n-flt for text shaping |
| 2105 | --without-toolkit-scroll-bars |
| 2106 | don't use Motif or Xaw3d scroll bars |
| 2107 | --without-xaw3d don't use Xaw3d |
| 2108 | --without-xim don't use X11 XIM |
| 2109 | --with-ns use NeXTstep (Cocoa or GNUstep) windowing system |
| 2110 | --with-w32 use native MS Windows GUI |
| 2111 | --without-gpm don't use -lgpm for mouse support on a GNU/Linux |
| 2112 | console |
| 2113 | --without-dbus don't compile with D-Bus support |
| 2114 | --without-gconf don't compile with GConf support |
| 2115 | --without-gsettings don't compile with GSettings support |
| 2116 | --without-selinux don't compile with SELinux support |
| 2117 | --without-gnutls don't use -lgnutls for SSL/TLS support |
| 2118 | --without-makeinfo don't require makeinfo for building manuals |
| 2119 | --without-compress-info don't compress the installed Info pages |
| 2120 | --with-pkg-config-prog=PATH |
| 2121 | path to pkg-config for finding GTK and librsvg |
| 2122 | --with-crt-dir=DIR directory containing crtn.o etc. The default is |
| 2123 | /usr/lib, or /usr/lib64 on some platforms. |
| 2124 | --with-gameuser=USER user for shared game score files |
| 2125 | --with-gnustep-conf=PATH |
| 2126 | path to GNUstep.conf; default $GNUSTEP_CONFIG_FILE, |
| 2127 | or /etc/GNUstep/GNUstep.conf |
| 2128 | --with-x use the X Window System |
| 2129 | |
| 2130 | Some influential environment variables: |
| 2131 | CC C compiler command |
| 2132 | CFLAGS C compiler flags |
| 2133 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 2134 | nonstandard directory <lib dir> |
| 2135 | LIBS libraries to pass to the linker, e.g. -l<library> |
| 2136 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
| 2137 | you have headers in a nonstandard directory <include dir> |
| 2138 | CPP C preprocessor |
| 2139 | XMKMF Path to xmkmf, Makefile generator for X Window System |
| 2140 | |
| 2141 | Use these variables to override the choices made by `configure' or to help |
| 2142 | it to find libraries and programs with nonstandard names/locations. |
| 2143 | |
| 2144 | Report bugs to the package provider. |
| 2145 | _ACEOF |
| 2146 | ac_status=$? |
| 2147 | fi |
| 2148 | |
| 2149 | if test "$ac_init_help" = "recursive"; then |
| 2150 | # If there are subdirs, report their specific --help. |
| 2151 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 2152 | test -d "$ac_dir" || |
| 2153 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 2154 | continue |
| 2155 | ac_builddir=. |
| 2156 | |
| 2157 | case "$ac_dir" in |
| 2158 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2159 | *) |
| 2160 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 2161 | # A ".." for each directory in $ac_dir_suffix. |
| 2162 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 2163 | case $ac_top_builddir_sub in |
| 2164 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 2165 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 2166 | esac ;; |
| 2167 | esac |
| 2168 | ac_abs_top_builddir=$ac_pwd |
| 2169 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 2170 | # for backward compatibility: |
| 2171 | ac_top_builddir=$ac_top_build_prefix |
| 2172 | |
| 2173 | case $srcdir in |
| 2174 | .) # We are building in place. |
| 2175 | ac_srcdir=. |
| 2176 | ac_top_srcdir=$ac_top_builddir_sub |
| 2177 | ac_abs_top_srcdir=$ac_pwd ;; |
| 2178 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 2179 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 2180 | ac_top_srcdir=$srcdir |
| 2181 | ac_abs_top_srcdir=$srcdir ;; |
| 2182 | *) # Relative name. |
| 2183 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 2184 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 2185 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 2186 | esac |
| 2187 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 2188 | |
| 2189 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 2190 | # Check for guested configure. |
| 2191 | if test -f "$ac_srcdir/configure.gnu"; then |
| 2192 | echo && |
| 2193 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 2194 | elif test -f "$ac_srcdir/configure"; then |
| 2195 | echo && |
| 2196 | $SHELL "$ac_srcdir/configure" --help=recursive |
| 2197 | else |
| 2198 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 2199 | fi || ac_status=$? |
| 2200 | cd "$ac_pwd" || { ac_status=$?; break; } |
| 2201 | done |
| 2202 | fi |
| 2203 | |
| 2204 | test -n "$ac_init_help" && exit $ac_status |
| 2205 | if $ac_init_version; then |
| 2206 | cat <<\_ACEOF |
| 2207 | emacs configure 24.3.50 |
| 2208 | generated by GNU Autoconf 2.65 |
| 2209 | |
| 2210 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 2211 | This configure script is free software; the Free Software Foundation |
| 2212 | gives unlimited permission to copy, distribute and modify it. |
| 2213 | _ACEOF |
| 2214 | exit |
| 2215 | fi |
| 2216 | |
| 2217 | ## ------------------------ ## |
| 2218 | ## Autoconf initialization. ## |
| 2219 | ## ------------------------ ## |
| 2220 | |
| 2221 | # ac_fn_c_try_compile LINENO |
| 2222 | # -------------------------- |
| 2223 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 2224 | ac_fn_c_try_compile () |
| 2225 | { |
| 2226 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2227 | rm -f conftest.$ac_objext |
| 2228 | if { { ac_try="$ac_compile" |
| 2229 | case "(($ac_try" in |
| 2230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2231 | *) ac_try_echo=$ac_try;; |
| 2232 | esac |
| 2233 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2234 | $as_echo "$ac_try_echo"; } >&5 |
| 2235 | (eval "$ac_compile") 2>conftest.err |
| 2236 | ac_status=$? |
| 2237 | if test -s conftest.err; then |
| 2238 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2239 | cat conftest.er1 >&5 |
| 2240 | mv -f conftest.er1 conftest.err |
| 2241 | fi |
| 2242 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2243 | test $ac_status = 0; } && { |
| 2244 | test -z "$ac_c_werror_flag" || |
| 2245 | test ! -s conftest.err |
| 2246 | } && test -s conftest.$ac_objext; then : |
| 2247 | ac_retval=0 |
| 2248 | else |
| 2249 | $as_echo "$as_me: failed program was:" >&5 |
| 2250 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2251 | |
| 2252 | ac_retval=1 |
| 2253 | fi |
| 2254 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2255 | as_fn_set_status $ac_retval |
| 2256 | |
| 2257 | } # ac_fn_c_try_compile |
| 2258 | |
| 2259 | # ac_fn_c_try_cpp LINENO |
| 2260 | # ---------------------- |
| 2261 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 2262 | ac_fn_c_try_cpp () |
| 2263 | { |
| 2264 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2265 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 2266 | case "(($ac_try" in |
| 2267 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2268 | *) ac_try_echo=$ac_try;; |
| 2269 | esac |
| 2270 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2271 | $as_echo "$ac_try_echo"; } >&5 |
| 2272 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 2273 | ac_status=$? |
| 2274 | if test -s conftest.err; then |
| 2275 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2276 | cat conftest.er1 >&5 |
| 2277 | mv -f conftest.er1 conftest.err |
| 2278 | fi |
| 2279 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2280 | test $ac_status = 0; } >/dev/null && { |
| 2281 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 2282 | test ! -s conftest.err |
| 2283 | }; then : |
| 2284 | ac_retval=0 |
| 2285 | else |
| 2286 | $as_echo "$as_me: failed program was:" >&5 |
| 2287 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2288 | |
| 2289 | ac_retval=1 |
| 2290 | fi |
| 2291 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2292 | as_fn_set_status $ac_retval |
| 2293 | |
| 2294 | } # ac_fn_c_try_cpp |
| 2295 | |
| 2296 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 2297 | # ------------------------------------------------------- |
| 2298 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 2299 | # the include files in INCLUDES and setting the cache variable VAR |
| 2300 | # accordingly. |
| 2301 | ac_fn_c_check_header_mongrel () |
| 2302 | { |
| 2303 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2304 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2306 | $as_echo_n "checking for $2... " >&6; } |
| 2307 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2308 | $as_echo_n "(cached) " >&6 |
| 2309 | fi |
| 2310 | eval ac_res=\$$3 |
| 2311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2312 | $as_echo "$ac_res" >&6; } |
| 2313 | else |
| 2314 | # Is the header compilable? |
| 2315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 2316 | $as_echo_n "checking $2 usability... " >&6; } |
| 2317 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2318 | /* end confdefs.h. */ |
| 2319 | $4 |
| 2320 | #include <$2> |
| 2321 | _ACEOF |
| 2322 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2323 | ac_header_compiler=yes |
| 2324 | else |
| 2325 | ac_header_compiler=no |
| 2326 | fi |
| 2327 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 2329 | $as_echo "$ac_header_compiler" >&6; } |
| 2330 | |
| 2331 | # Is the header present? |
| 2332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 2333 | $as_echo_n "checking $2 presence... " >&6; } |
| 2334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2335 | /* end confdefs.h. */ |
| 2336 | #include <$2> |
| 2337 | _ACEOF |
| 2338 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2339 | ac_header_preproc=yes |
| 2340 | else |
| 2341 | ac_header_preproc=no |
| 2342 | fi |
| 2343 | rm -f conftest.err conftest.$ac_ext |
| 2344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 2345 | $as_echo "$ac_header_preproc" >&6; } |
| 2346 | |
| 2347 | # So? What about this header? |
| 2348 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 2349 | yes:no: ) |
| 2350 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 2351 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 2352 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2353 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2354 | ;; |
| 2355 | no:yes:* ) |
| 2356 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 2357 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 2358 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 2359 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 2360 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 2361 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 2362 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 2363 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 2365 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 2366 | ;; |
| 2367 | esac |
| 2368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2369 | $as_echo_n "checking for $2... " >&6; } |
| 2370 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2371 | $as_echo_n "(cached) " >&6 |
| 2372 | else |
| 2373 | eval "$3=\$ac_header_compiler" |
| 2374 | fi |
| 2375 | eval ac_res=\$$3 |
| 2376 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2377 | $as_echo "$ac_res" >&6; } |
| 2378 | fi |
| 2379 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2380 | |
| 2381 | } # ac_fn_c_check_header_mongrel |
| 2382 | |
| 2383 | # ac_fn_c_try_run LINENO |
| 2384 | # ---------------------- |
| 2385 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 2386 | # that executables *can* be run. |
| 2387 | ac_fn_c_try_run () |
| 2388 | { |
| 2389 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2390 | if { { ac_try="$ac_link" |
| 2391 | case "(($ac_try" in |
| 2392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2393 | *) ac_try_echo=$ac_try;; |
| 2394 | esac |
| 2395 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2396 | $as_echo "$ac_try_echo"; } >&5 |
| 2397 | (eval "$ac_link") 2>&5 |
| 2398 | ac_status=$? |
| 2399 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2400 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 2401 | { { case "(($ac_try" in |
| 2402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2403 | *) ac_try_echo=$ac_try;; |
| 2404 | esac |
| 2405 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2406 | $as_echo "$ac_try_echo"; } >&5 |
| 2407 | (eval "$ac_try") 2>&5 |
| 2408 | ac_status=$? |
| 2409 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2410 | test $ac_status = 0; }; }; then : |
| 2411 | ac_retval=0 |
| 2412 | else |
| 2413 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 2414 | $as_echo "$as_me: failed program was:" >&5 |
| 2415 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2416 | |
| 2417 | ac_retval=$ac_status |
| 2418 | fi |
| 2419 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2420 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2421 | as_fn_set_status $ac_retval |
| 2422 | |
| 2423 | } # ac_fn_c_try_run |
| 2424 | |
| 2425 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 2426 | # ------------------------------------------------------- |
| 2427 | # Tests whether HEADER exists and can be compiled using the include files in |
| 2428 | # INCLUDES, setting the cache variable VAR accordingly. |
| 2429 | ac_fn_c_check_header_compile () |
| 2430 | { |
| 2431 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2433 | $as_echo_n "checking for $2... " >&6; } |
| 2434 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2435 | $as_echo_n "(cached) " >&6 |
| 2436 | else |
| 2437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2438 | /* end confdefs.h. */ |
| 2439 | $4 |
| 2440 | #include <$2> |
| 2441 | _ACEOF |
| 2442 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2443 | eval "$3=yes" |
| 2444 | else |
| 2445 | eval "$3=no" |
| 2446 | fi |
| 2447 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2448 | fi |
| 2449 | eval ac_res=\$$3 |
| 2450 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2451 | $as_echo "$ac_res" >&6; } |
| 2452 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2453 | |
| 2454 | } # ac_fn_c_check_header_compile |
| 2455 | |
| 2456 | # ac_fn_c_try_link LINENO |
| 2457 | # ----------------------- |
| 2458 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 2459 | ac_fn_c_try_link () |
| 2460 | { |
| 2461 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2462 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 2463 | if { { ac_try="$ac_link" |
| 2464 | case "(($ac_try" in |
| 2465 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 2466 | *) ac_try_echo=$ac_try;; |
| 2467 | esac |
| 2468 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 2469 | $as_echo "$ac_try_echo"; } >&5 |
| 2470 | (eval "$ac_link") 2>conftest.err |
| 2471 | ac_status=$? |
| 2472 | if test -s conftest.err; then |
| 2473 | grep -v '^ *+' conftest.err >conftest.er1 |
| 2474 | cat conftest.er1 >&5 |
| 2475 | mv -f conftest.er1 conftest.err |
| 2476 | fi |
| 2477 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 2478 | test $ac_status = 0; } && { |
| 2479 | test -z "$ac_c_werror_flag" || |
| 2480 | test ! -s conftest.err |
| 2481 | } && test -s conftest$ac_exeext && { |
| 2482 | test "$cross_compiling" = yes || |
| 2483 | $as_test_x conftest$ac_exeext |
| 2484 | }; then : |
| 2485 | ac_retval=0 |
| 2486 | else |
| 2487 | $as_echo "$as_me: failed program was:" >&5 |
| 2488 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 2489 | |
| 2490 | ac_retval=1 |
| 2491 | fi |
| 2492 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 2493 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 2494 | # interfere with the next link command; also delete a directory that is |
| 2495 | # left behind by Apple's compiler. We do this before executing the actions. |
| 2496 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 2497 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2498 | as_fn_set_status $ac_retval |
| 2499 | |
| 2500 | } # ac_fn_c_try_link |
| 2501 | |
| 2502 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2503 | # ------------------------------------ |
| 2504 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2505 | ac_fn_c_check_decl () |
| 2506 | { |
| 2507 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2509 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2510 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2511 | $as_echo_n "(cached) " >&6 |
| 2512 | else |
| 2513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2514 | /* end confdefs.h. */ |
| 2515 | $4 |
| 2516 | int |
| 2517 | main () |
| 2518 | { |
| 2519 | #ifndef $2 |
| 2520 | (void) $2; |
| 2521 | #endif |
| 2522 | |
| 2523 | ; |
| 2524 | return 0; |
| 2525 | } |
| 2526 | _ACEOF |
| 2527 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2528 | eval "$3=yes" |
| 2529 | else |
| 2530 | eval "$3=no" |
| 2531 | fi |
| 2532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2533 | fi |
| 2534 | eval ac_res=\$$3 |
| 2535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2536 | $as_echo "$ac_res" >&6; } |
| 2537 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2538 | |
| 2539 | } # ac_fn_c_check_decl |
| 2540 | |
| 2541 | # ac_fn_c_check_header_preproc LINENO HEADER VAR |
| 2542 | # ---------------------------------------------- |
| 2543 | # Tests whether HEADER is present, setting the cache variable VAR accordingly. |
| 2544 | ac_fn_c_check_header_preproc () |
| 2545 | { |
| 2546 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2548 | $as_echo_n "checking for $2... " >&6; } |
| 2549 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2550 | $as_echo_n "(cached) " >&6 |
| 2551 | else |
| 2552 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2553 | /* end confdefs.h. */ |
| 2554 | #include <$2> |
| 2555 | _ACEOF |
| 2556 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 2557 | eval "$3=yes" |
| 2558 | else |
| 2559 | eval "$3=no" |
| 2560 | fi |
| 2561 | rm -f conftest.err conftest.$ac_ext |
| 2562 | fi |
| 2563 | eval ac_res=\$$3 |
| 2564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2565 | $as_echo "$ac_res" >&6; } |
| 2566 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2567 | |
| 2568 | } # ac_fn_c_check_header_preproc |
| 2569 | |
| 2570 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2571 | # ---------------------------------------------------- |
| 2572 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2573 | # INCLUDES, setting cache variable VAR accordingly. |
| 2574 | ac_fn_c_check_member () |
| 2575 | { |
| 2576 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2578 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2579 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2580 | $as_echo_n "(cached) " >&6 |
| 2581 | else |
| 2582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2583 | /* end confdefs.h. */ |
| 2584 | $5 |
| 2585 | int |
| 2586 | main () |
| 2587 | { |
| 2588 | static $2 ac_aggr; |
| 2589 | if (ac_aggr.$3) |
| 2590 | return 0; |
| 2591 | ; |
| 2592 | return 0; |
| 2593 | } |
| 2594 | _ACEOF |
| 2595 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2596 | eval "$4=yes" |
| 2597 | else |
| 2598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2599 | /* end confdefs.h. */ |
| 2600 | $5 |
| 2601 | int |
| 2602 | main () |
| 2603 | { |
| 2604 | static $2 ac_aggr; |
| 2605 | if (sizeof ac_aggr.$3) |
| 2606 | return 0; |
| 2607 | ; |
| 2608 | return 0; |
| 2609 | } |
| 2610 | _ACEOF |
| 2611 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2612 | eval "$4=yes" |
| 2613 | else |
| 2614 | eval "$4=no" |
| 2615 | fi |
| 2616 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2617 | fi |
| 2618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2619 | fi |
| 2620 | eval ac_res=\$$4 |
| 2621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2622 | $as_echo "$ac_res" >&6; } |
| 2623 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2624 | |
| 2625 | } # ac_fn_c_check_member |
| 2626 | |
| 2627 | # ac_fn_c_check_func LINENO FUNC VAR |
| 2628 | # ---------------------------------- |
| 2629 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 2630 | ac_fn_c_check_func () |
| 2631 | { |
| 2632 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2634 | $as_echo_n "checking for $2... " >&6; } |
| 2635 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2636 | $as_echo_n "(cached) " >&6 |
| 2637 | else |
| 2638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2639 | /* end confdefs.h. */ |
| 2640 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 2641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 2642 | #define $2 innocuous_$2 |
| 2643 | |
| 2644 | /* System header to define __stub macros and hopefully few prototypes, |
| 2645 | which can conflict with char $2 (); below. |
| 2646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 2647 | <limits.h> exists even on freestanding compilers. */ |
| 2648 | |
| 2649 | #ifdef __STDC__ |
| 2650 | # include <limits.h> |
| 2651 | #else |
| 2652 | # include <assert.h> |
| 2653 | #endif |
| 2654 | |
| 2655 | #undef $2 |
| 2656 | |
| 2657 | /* Override any GCC internal prototype to avoid an error. |
| 2658 | Use char because int might match the return type of a GCC |
| 2659 | builtin and then its argument prototype would still apply. */ |
| 2660 | #ifdef __cplusplus |
| 2661 | extern "C" |
| 2662 | #endif |
| 2663 | char $2 (); |
| 2664 | /* The GNU C library defines this for functions which it implements |
| 2665 | to always fail with ENOSYS. Some functions are actually named |
| 2666 | something starting with __ and the normal name is an alias. */ |
| 2667 | #if defined __stub_$2 || defined __stub___$2 |
| 2668 | choke me |
| 2669 | #endif |
| 2670 | |
| 2671 | int |
| 2672 | main () |
| 2673 | { |
| 2674 | return $2 (); |
| 2675 | ; |
| 2676 | return 0; |
| 2677 | } |
| 2678 | _ACEOF |
| 2679 | if ac_fn_c_try_link "$LINENO"; then : |
| 2680 | eval "$3=yes" |
| 2681 | else |
| 2682 | eval "$3=no" |
| 2683 | fi |
| 2684 | rm -f core conftest.err conftest.$ac_objext \ |
| 2685 | conftest$ac_exeext conftest.$ac_ext |
| 2686 | fi |
| 2687 | eval ac_res=\$$3 |
| 2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2689 | $as_echo "$ac_res" >&6; } |
| 2690 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2691 | |
| 2692 | } # ac_fn_c_check_func |
| 2693 | |
| 2694 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 2695 | # ------------------------------------------- |
| 2696 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 2697 | # variable VAR accordingly. |
| 2698 | ac_fn_c_check_type () |
| 2699 | { |
| 2700 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 2702 | $as_echo_n "checking for $2... " >&6; } |
| 2703 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2704 | $as_echo_n "(cached) " >&6 |
| 2705 | else |
| 2706 | eval "$3=no" |
| 2707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2708 | /* end confdefs.h. */ |
| 2709 | $4 |
| 2710 | int |
| 2711 | main () |
| 2712 | { |
| 2713 | if (sizeof ($2)) |
| 2714 | return 0; |
| 2715 | ; |
| 2716 | return 0; |
| 2717 | } |
| 2718 | _ACEOF |
| 2719 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2721 | /* end confdefs.h. */ |
| 2722 | $4 |
| 2723 | int |
| 2724 | main () |
| 2725 | { |
| 2726 | if (sizeof (($2))) |
| 2727 | return 0; |
| 2728 | ; |
| 2729 | return 0; |
| 2730 | } |
| 2731 | _ACEOF |
| 2732 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2733 | |
| 2734 | else |
| 2735 | eval "$3=yes" |
| 2736 | fi |
| 2737 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2738 | fi |
| 2739 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2740 | fi |
| 2741 | eval ac_res=\$$3 |
| 2742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2743 | $as_echo "$ac_res" >&6; } |
| 2744 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2745 | |
| 2746 | } # ac_fn_c_check_type |
| 2747 | |
| 2748 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 2749 | # -------------------------------------------- |
| 2750 | # Tries to find the compile-time value of EXPR in a program that includes |
| 2751 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 2752 | # computed |
| 2753 | ac_fn_c_compute_int () |
| 2754 | { |
| 2755 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2756 | if test "$cross_compiling" = yes; then |
| 2757 | # Depending upon the size, compute the lo and hi bounds. |
| 2758 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2759 | /* end confdefs.h. */ |
| 2760 | $4 |
| 2761 | int |
| 2762 | main () |
| 2763 | { |
| 2764 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2765 | test_array [0] = 0 |
| 2766 | |
| 2767 | ; |
| 2768 | return 0; |
| 2769 | } |
| 2770 | _ACEOF |
| 2771 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2772 | ac_lo=0 ac_mid=0 |
| 2773 | while :; do |
| 2774 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2775 | /* end confdefs.h. */ |
| 2776 | $4 |
| 2777 | int |
| 2778 | main () |
| 2779 | { |
| 2780 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2781 | test_array [0] = 0 |
| 2782 | |
| 2783 | ; |
| 2784 | return 0; |
| 2785 | } |
| 2786 | _ACEOF |
| 2787 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2788 | ac_hi=$ac_mid; break |
| 2789 | else |
| 2790 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2791 | if test $ac_lo -le $ac_mid; then |
| 2792 | ac_lo= ac_hi= |
| 2793 | break |
| 2794 | fi |
| 2795 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2796 | fi |
| 2797 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2798 | done |
| 2799 | else |
| 2800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2801 | /* end confdefs.h. */ |
| 2802 | $4 |
| 2803 | int |
| 2804 | main () |
| 2805 | { |
| 2806 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2807 | test_array [0] = 0 |
| 2808 | |
| 2809 | ; |
| 2810 | return 0; |
| 2811 | } |
| 2812 | _ACEOF |
| 2813 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2814 | ac_hi=-1 ac_mid=-1 |
| 2815 | while :; do |
| 2816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2817 | /* end confdefs.h. */ |
| 2818 | $4 |
| 2819 | int |
| 2820 | main () |
| 2821 | { |
| 2822 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2823 | test_array [0] = 0 |
| 2824 | |
| 2825 | ; |
| 2826 | return 0; |
| 2827 | } |
| 2828 | _ACEOF |
| 2829 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2830 | ac_lo=$ac_mid; break |
| 2831 | else |
| 2832 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2833 | if test $ac_mid -le $ac_hi; then |
| 2834 | ac_lo= ac_hi= |
| 2835 | break |
| 2836 | fi |
| 2837 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2838 | fi |
| 2839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2840 | done |
| 2841 | else |
| 2842 | ac_lo= ac_hi= |
| 2843 | fi |
| 2844 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2845 | fi |
| 2846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2847 | # Binary search between lo and hi bounds. |
| 2848 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2849 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2851 | /* end confdefs.h. */ |
| 2852 | $4 |
| 2853 | int |
| 2854 | main () |
| 2855 | { |
| 2856 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2857 | test_array [0] = 0 |
| 2858 | |
| 2859 | ; |
| 2860 | return 0; |
| 2861 | } |
| 2862 | _ACEOF |
| 2863 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2864 | ac_hi=$ac_mid |
| 2865 | else |
| 2866 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2867 | fi |
| 2868 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2869 | done |
| 2870 | case $ac_lo in #(( |
| 2871 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2872 | '') ac_retval=1 ;; |
| 2873 | esac |
| 2874 | else |
| 2875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2876 | /* end confdefs.h. */ |
| 2877 | $4 |
| 2878 | static long int longval () { return $2; } |
| 2879 | static unsigned long int ulongval () { return $2; } |
| 2880 | #include <stdio.h> |
| 2881 | #include <stdlib.h> |
| 2882 | int |
| 2883 | main () |
| 2884 | { |
| 2885 | |
| 2886 | FILE *f = fopen ("conftest.val", "w"); |
| 2887 | if (! f) |
| 2888 | return 1; |
| 2889 | if (($2) < 0) |
| 2890 | { |
| 2891 | long int i = longval (); |
| 2892 | if (i != ($2)) |
| 2893 | return 1; |
| 2894 | fprintf (f, "%ld", i); |
| 2895 | } |
| 2896 | else |
| 2897 | { |
| 2898 | unsigned long int i = ulongval (); |
| 2899 | if (i != ($2)) |
| 2900 | return 1; |
| 2901 | fprintf (f, "%lu", i); |
| 2902 | } |
| 2903 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2904 | on some platforms. */ |
| 2905 | return ferror (f) || fclose (f) != 0; |
| 2906 | |
| 2907 | ; |
| 2908 | return 0; |
| 2909 | } |
| 2910 | _ACEOF |
| 2911 | if ac_fn_c_try_run "$LINENO"; then : |
| 2912 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2913 | else |
| 2914 | ac_retval=1 |
| 2915 | fi |
| 2916 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2917 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2918 | rm -f conftest.val |
| 2919 | |
| 2920 | fi |
| 2921 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2922 | as_fn_set_status $ac_retval |
| 2923 | |
| 2924 | } # ac_fn_c_compute_int |
| 2925 | cat >config.log <<_ACEOF |
| 2926 | This file contains any messages produced by compilers while |
| 2927 | running configure, to aid debugging if configure makes a mistake. |
| 2928 | |
| 2929 | It was created by emacs $as_me 24.3.50, which was |
| 2930 | generated by GNU Autoconf 2.65. Invocation command line was |
| 2931 | |
| 2932 | $ $0 $@ |
| 2933 | |
| 2934 | _ACEOF |
| 2935 | exec 5>>config.log |
| 2936 | { |
| 2937 | cat <<_ASUNAME |
| 2938 | ## --------- ## |
| 2939 | ## Platform. ## |
| 2940 | ## --------- ## |
| 2941 | |
| 2942 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2943 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2944 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2945 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2946 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2947 | |
| 2948 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2949 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2950 | |
| 2951 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2952 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2953 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 2954 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
| 2955 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2956 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2957 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2958 | |
| 2959 | _ASUNAME |
| 2960 | |
| 2961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2962 | for as_dir in $PATH |
| 2963 | do |
| 2964 | IFS=$as_save_IFS |
| 2965 | test -z "$as_dir" && as_dir=. |
| 2966 | $as_echo "PATH: $as_dir" |
| 2967 | done |
| 2968 | IFS=$as_save_IFS |
| 2969 | |
| 2970 | } >&5 |
| 2971 | |
| 2972 | cat >&5 <<_ACEOF |
| 2973 | |
| 2974 | |
| 2975 | ## ----------- ## |
| 2976 | ## Core tests. ## |
| 2977 | ## ----------- ## |
| 2978 | |
| 2979 | _ACEOF |
| 2980 | |
| 2981 | |
| 2982 | # Keep a trace of the command line. |
| 2983 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2984 | # Strip out --silent because we don't want to record it for future runs. |
| 2985 | # Also quote any args containing shell meta-characters. |
| 2986 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2987 | ac_configure_args= |
| 2988 | ac_configure_args0= |
| 2989 | ac_configure_args1= |
| 2990 | ac_must_keep_next=false |
| 2991 | for ac_pass in 1 2 |
| 2992 | do |
| 2993 | for ac_arg |
| 2994 | do |
| 2995 | case $ac_arg in |
| 2996 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2997 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2998 | | -silent | --silent | --silen | --sile | --sil) |
| 2999 | continue ;; |
| 3000 | *\'*) |
| 3001 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3002 | esac |
| 3003 | case $ac_pass in |
| 3004 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
| 3005 | 2) |
| 3006 | as_fn_append ac_configure_args1 " '$ac_arg'" |
| 3007 | if test $ac_must_keep_next = true; then |
| 3008 | ac_must_keep_next=false # Got value, back to normal. |
| 3009 | else |
| 3010 | case $ac_arg in |
| 3011 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 3012 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 3013 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 3014 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 3015 | case "$ac_configure_args0 " in |
| 3016 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 3017 | esac |
| 3018 | ;; |
| 3019 | -* ) ac_must_keep_next=true ;; |
| 3020 | esac |
| 3021 | fi |
| 3022 | as_fn_append ac_configure_args " '$ac_arg'" |
| 3023 | ;; |
| 3024 | esac |
| 3025 | done |
| 3026 | done |
| 3027 | { ac_configure_args0=; unset ac_configure_args0;} |
| 3028 | { ac_configure_args1=; unset ac_configure_args1;} |
| 3029 | |
| 3030 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 3031 | # config.log. We remove comments because anyway the quotes in there |
| 3032 | # would cause problems or look ugly. |
| 3033 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 3034 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
| 3035 | trap 'exit_status=$? |
| 3036 | # Save into config.log some information that might help in debugging. |
| 3037 | { |
| 3038 | echo |
| 3039 | |
| 3040 | cat <<\_ASBOX |
| 3041 | ## ---------------- ## |
| 3042 | ## Cache variables. ## |
| 3043 | ## ---------------- ## |
| 3044 | _ASBOX |
| 3045 | echo |
| 3046 | # The following way of writing the cache mishandles newlines in values, |
| 3047 | ( |
| 3048 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 3049 | eval ac_val=\$$ac_var |
| 3050 | case $ac_val in #( |
| 3051 | *${as_nl}*) |
| 3052 | case $ac_var in #( |
| 3053 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 3054 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 3055 | esac |
| 3056 | case $ac_var in #( |
| 3057 | _ | IFS | as_nl) ;; #( |
| 3058 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 3059 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 3060 | esac ;; |
| 3061 | esac |
| 3062 | done |
| 3063 | (set) 2>&1 | |
| 3064 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 3065 | *${as_nl}ac_space=\ *) |
| 3066 | sed -n \ |
| 3067 | "s/'\''/'\''\\\\'\'''\''/g; |
| 3068 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 3069 | ;; #( |
| 3070 | *) |
| 3071 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 3072 | ;; |
| 3073 | esac | |
| 3074 | sort |
| 3075 | ) |
| 3076 | echo |
| 3077 | |
| 3078 | cat <<\_ASBOX |
| 3079 | ## ----------------- ## |
| 3080 | ## Output variables. ## |
| 3081 | ## ----------------- ## |
| 3082 | _ASBOX |
| 3083 | echo |
| 3084 | for ac_var in $ac_subst_vars |
| 3085 | do |
| 3086 | eval ac_val=\$$ac_var |
| 3087 | case $ac_val in |
| 3088 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3089 | esac |
| 3090 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3091 | done | sort |
| 3092 | echo |
| 3093 | |
| 3094 | if test -n "$ac_subst_files"; then |
| 3095 | cat <<\_ASBOX |
| 3096 | ## ------------------- ## |
| 3097 | ## File substitutions. ## |
| 3098 | ## ------------------- ## |
| 3099 | _ASBOX |
| 3100 | echo |
| 3101 | for ac_var in $ac_subst_files |
| 3102 | do |
| 3103 | eval ac_val=\$$ac_var |
| 3104 | case $ac_val in |
| 3105 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
| 3106 | esac |
| 3107 | $as_echo "$ac_var='\''$ac_val'\''" |
| 3108 | done | sort |
| 3109 | echo |
| 3110 | fi |
| 3111 | |
| 3112 | if test -s confdefs.h; then |
| 3113 | cat <<\_ASBOX |
| 3114 | ## ----------- ## |
| 3115 | ## confdefs.h. ## |
| 3116 | ## ----------- ## |
| 3117 | _ASBOX |
| 3118 | echo |
| 3119 | cat confdefs.h |
| 3120 | echo |
| 3121 | fi |
| 3122 | test "$ac_signal" != 0 && |
| 3123 | $as_echo "$as_me: caught signal $ac_signal" |
| 3124 | $as_echo "$as_me: exit $exit_status" |
| 3125 | } >&5 |
| 3126 | rm -f core *.core core.conftest.* && |
| 3127 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
| 3128 | exit $exit_status |
| 3129 | ' 0 |
| 3130 | for ac_signal in 1 2 13 15; do |
| 3131 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
| 3132 | done |
| 3133 | ac_signal=0 |
| 3134 | |
| 3135 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 3136 | rm -f -r conftest* confdefs.h |
| 3137 | |
| 3138 | $as_echo "/* confdefs.h */" > confdefs.h |
| 3139 | |
| 3140 | # Predefined preprocessor variables. |
| 3141 | |
| 3142 | cat >>confdefs.h <<_ACEOF |
| 3143 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 3144 | _ACEOF |
| 3145 | |
| 3146 | cat >>confdefs.h <<_ACEOF |
| 3147 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 3148 | _ACEOF |
| 3149 | |
| 3150 | cat >>confdefs.h <<_ACEOF |
| 3151 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 3152 | _ACEOF |
| 3153 | |
| 3154 | cat >>confdefs.h <<_ACEOF |
| 3155 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 3156 | _ACEOF |
| 3157 | |
| 3158 | cat >>confdefs.h <<_ACEOF |
| 3159 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 3160 | _ACEOF |
| 3161 | |
| 3162 | cat >>confdefs.h <<_ACEOF |
| 3163 | #define PACKAGE_URL "$PACKAGE_URL" |
| 3164 | _ACEOF |
| 3165 | |
| 3166 | |
| 3167 | # Let the site file select an alternate cache file if it wants to. |
| 3168 | # Prefer an explicitly selected file to automatically selected ones. |
| 3169 | ac_site_file1=NONE |
| 3170 | ac_site_file2=NONE |
| 3171 | if test -n "$CONFIG_SITE"; then |
| 3172 | ac_site_file1=$CONFIG_SITE |
| 3173 | elif test "x$prefix" != xNONE; then |
| 3174 | ac_site_file1=$prefix/share/config.site |
| 3175 | ac_site_file2=$prefix/etc/config.site |
| 3176 | else |
| 3177 | ac_site_file1=$ac_default_prefix/share/config.site |
| 3178 | ac_site_file2=$ac_default_prefix/etc/config.site |
| 3179 | fi |
| 3180 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
| 3181 | do |
| 3182 | test "x$ac_site_file" = xNONE && continue |
| 3183 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
| 3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
| 3185 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
| 3186 | sed 's/^/| /' "$ac_site_file" >&5 |
| 3187 | . "$ac_site_file" |
| 3188 | fi |
| 3189 | done |
| 3190 | |
| 3191 | if test -r "$cache_file"; then |
| 3192 | # Some versions of bash will fail to source /dev/null (special files |
| 3193 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 3194 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
| 3195 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
| 3196 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
| 3197 | case $cache_file in |
| 3198 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 3199 | *) . "./$cache_file";; |
| 3200 | esac |
| 3201 | fi |
| 3202 | else |
| 3203 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
| 3204 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
| 3205 | >$cache_file |
| 3206 | fi |
| 3207 | |
| 3208 | as_fn_append ac_header_list " linux/version.h" |
| 3209 | as_fn_append ac_header_list " sys/systeminfo.h" |
| 3210 | as_fn_append ac_header_list " coff.h" |
| 3211 | as_fn_append ac_header_list " pty.h" |
| 3212 | as_fn_append ac_header_list " sys/vlimit.h" |
| 3213 | as_fn_append ac_header_list " sys/resource.h" |
| 3214 | as_fn_append ac_header_list " sys/utsname.h" |
| 3215 | as_fn_append ac_header_list " pwd.h" |
| 3216 | as_fn_append ac_header_list " utmp.h" |
| 3217 | as_fn_append ac_header_list " util.h" |
| 3218 | as_fn_append ac_header_list " sys/socket.h" |
| 3219 | as_fn_append ac_header_list " stdlib.h" |
| 3220 | as_fn_append ac_header_list " unistd.h" |
| 3221 | as_fn_append ac_header_list " sys/param.h" |
| 3222 | as_fn_append ac_header_list " pthread.h" |
| 3223 | as_fn_append ac_header_list " malloc/malloc.h" |
| 3224 | as_fn_append ac_header_list " maillock.h" |
| 3225 | as_fn_append ac_header_list " sys/un.h" |
| 3226 | as_fn_append ac_func_list " tzset" |
| 3227 | as_fn_append ac_func_list " readlinkat" |
| 3228 | as_fn_append ac_header_list " execinfo.h" |
| 3229 | as_fn_append ac_func_list " faccessat" |
| 3230 | as_fn_append ac_header_list " stdio_ext.h" |
| 3231 | as_fn_append ac_func_list " __fpending" |
| 3232 | gl_getopt_required=GNU |
| 3233 | as_fn_append ac_header_list " getopt.h" |
| 3234 | as_fn_append ac_func_list " gettimeofday" |
| 3235 | as_fn_append ac_func_list " nanotime" |
| 3236 | as_fn_append ac_header_list " sys/time.h" |
| 3237 | as_fn_append ac_header_list " wchar.h" |
| 3238 | as_fn_append ac_header_list " stdint.h" |
| 3239 | as_fn_append ac_header_list " inttypes.h" |
| 3240 | as_fn_append ac_func_list " lstat" |
| 3241 | as_fn_append ac_func_list " alarm" |
| 3242 | as_fn_append ac_header_list " sys/select.h" |
| 3243 | as_fn_append ac_func_list " pselect" |
| 3244 | as_fn_append ac_func_list " pthread_sigmask" |
| 3245 | as_fn_append ac_func_list " readlink" |
| 3246 | as_fn_append ac_func_list " strtoimax" |
| 3247 | as_fn_append ac_func_list " strtoumax" |
| 3248 | as_fn_append ac_func_list " symlink" |
| 3249 | as_fn_append ac_header_list " sys/stat.h" |
| 3250 | as_fn_append ac_func_list " localtime_r" |
| 3251 | as_fn_append ac_header_list " utime.h" |
| 3252 | as_fn_append ac_func_list " futimes" |
| 3253 | as_fn_append ac_func_list " futimesat" |
| 3254 | as_fn_append ac_func_list " futimens" |
| 3255 | as_fn_append ac_func_list " utimensat" |
| 3256 | as_fn_append ac_func_list " lutimes" |
| 3257 | # Check that the precious variables saved in the cache have kept the same |
| 3258 | # value. |
| 3259 | ac_cache_corrupted=false |
| 3260 | for ac_var in $ac_precious_vars; do |
| 3261 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 3262 | eval ac_new_set=\$ac_env_${ac_var}_set |
| 3263 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 3264 | eval ac_new_val=\$ac_env_${ac_var}_value |
| 3265 | case $ac_old_set,$ac_new_set in |
| 3266 | set,) |
| 3267 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 3268 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 3269 | ac_cache_corrupted=: ;; |
| 3270 | ,set) |
| 3271 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
| 3272 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 3273 | ac_cache_corrupted=: ;; |
| 3274 | ,);; |
| 3275 | *) |
| 3276 | if test "x$ac_old_val" != "x$ac_new_val"; then |
| 3277 | # differences in whitespace do not lead to failure. |
| 3278 | ac_old_val_w=`echo x $ac_old_val` |
| 3279 | ac_new_val_w=`echo x $ac_new_val` |
| 3280 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
| 3281 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
| 3282 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 3283 | ac_cache_corrupted=: |
| 3284 | else |
| 3285 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
| 3286 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 3287 | eval $ac_var=\$ac_old_val |
| 3288 | fi |
| 3289 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
| 3290 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
| 3291 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
| 3292 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
| 3293 | fi;; |
| 3294 | esac |
| 3295 | # Pass precious variables to config.status. |
| 3296 | if test "$ac_new_set" = set; then |
| 3297 | case $ac_new_val in |
| 3298 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 3299 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 3300 | esac |
| 3301 | case " $ac_configure_args " in |
| 3302 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 3303 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
| 3304 | esac |
| 3305 | fi |
| 3306 | done |
| 3307 | if $ac_cache_corrupted; then |
| 3308 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3309 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3310 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
| 3311 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 3312 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
| 3313 | fi |
| 3314 | ## -------------------- ## |
| 3315 | ## Main body of script. ## |
| 3316 | ## -------------------- ## |
| 3317 | |
| 3318 | ac_ext=c |
| 3319 | ac_cpp='$CPP $CPPFLAGS' |
| 3320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3323 | |
| 3324 | |
| 3325 | ac_config_headers="$ac_config_headers src/config.h:src/config.in" |
| 3326 | |
| 3327 | |
| 3328 | ac_aux_dir= |
| 3329 | for ac_dir in build-aux "$srcdir"/build-aux; do |
| 3330 | for ac_t in install-sh install.sh shtool; do |
| 3331 | if test -f "$ac_dir/$ac_t"; then |
| 3332 | ac_aux_dir=$ac_dir |
| 3333 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 3334 | break 2 |
| 3335 | fi |
| 3336 | done |
| 3337 | done |
| 3338 | if test -z "$ac_aux_dir"; then |
| 3339 | as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 |
| 3340 | fi |
| 3341 | |
| 3342 | # These three variables are undocumented and unsupported, |
| 3343 | # and are intended to be withdrawn in a future Autoconf release. |
| 3344 | # They can cause serious problems if a builder's source tree is in a directory |
| 3345 | # whose full name contains unusual characters. |
| 3346 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 3347 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 3348 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 3349 | |
| 3350 | |
| 3351 | am__api_version='1.11' |
| 3352 | |
| 3353 | # Find a good install program. We prefer a C program (faster), |
| 3354 | # so one script is as good as another. But avoid the broken or |
| 3355 | # incompatible versions: |
| 3356 | # SysV /etc/install, /usr/sbin/install |
| 3357 | # SunOS /usr/etc/install |
| 3358 | # IRIX /sbin/install |
| 3359 | # AIX /bin/install |
| 3360 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
| 3361 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 3362 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 3363 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
| 3364 | # OS/2's system install, which has a completely different semantic |
| 3365 | # ./install, which can be erroneously created by make from ./install.sh. |
| 3366 | # Reject install programs that cannot install multiple files. |
| 3367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
| 3368 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
| 3369 | if test -z "$INSTALL"; then |
| 3370 | if test "${ac_cv_path_install+set}" = set; then : |
| 3371 | $as_echo_n "(cached) " >&6 |
| 3372 | else |
| 3373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3374 | for as_dir in $PATH |
| 3375 | do |
| 3376 | IFS=$as_save_IFS |
| 3377 | test -z "$as_dir" && as_dir=. |
| 3378 | # Account for people who put trailing slashes in PATH elements. |
| 3379 | case $as_dir/ in #(( |
| 3380 | ./ | .// | /[cC]/* | \ |
| 3381 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
| 3382 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
| 3383 | /usr/ucb/* ) ;; |
| 3384 | *) |
| 3385 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 3386 | # Don't use installbsd from OSF since it installs stuff as root |
| 3387 | # by default. |
| 3388 | for ac_prog in ginstall scoinst install; do |
| 3389 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3390 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
| 3391 | if test $ac_prog = install && |
| 3392 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3393 | # AIX install. It has an incompatible calling convention. |
| 3394 | : |
| 3395 | elif test $ac_prog = install && |
| 3396 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 3397 | # program-specific install script used by HP pwplus--don't use. |
| 3398 | : |
| 3399 | else |
| 3400 | rm -rf conftest.one conftest.two conftest.dir |
| 3401 | echo one > conftest.one |
| 3402 | echo two > conftest.two |
| 3403 | mkdir conftest.dir |
| 3404 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 3405 | test -s conftest.one && test -s conftest.two && |
| 3406 | test -s conftest.dir/conftest.one && |
| 3407 | test -s conftest.dir/conftest.two |
| 3408 | then |
| 3409 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 3410 | break 3 |
| 3411 | fi |
| 3412 | fi |
| 3413 | fi |
| 3414 | done |
| 3415 | done |
| 3416 | ;; |
| 3417 | esac |
| 3418 | |
| 3419 | done |
| 3420 | IFS=$as_save_IFS |
| 3421 | |
| 3422 | rm -rf conftest.one conftest.two conftest.dir |
| 3423 | |
| 3424 | fi |
| 3425 | if test "${ac_cv_path_install+set}" = set; then |
| 3426 | INSTALL=$ac_cv_path_install |
| 3427 | else |
| 3428 | # As a last resort, use the slow shell script. Don't cache a |
| 3429 | # value for INSTALL within a source directory, because that will |
| 3430 | # break other packages using the cache if that directory is |
| 3431 | # removed, or if the value is a relative name. |
| 3432 | INSTALL=$ac_install_sh |
| 3433 | fi |
| 3434 | fi |
| 3435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
| 3436 | $as_echo "$INSTALL" >&6; } |
| 3437 | |
| 3438 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 3439 | # It thinks the first close brace ends the variable substitution. |
| 3440 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 3441 | |
| 3442 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
| 3443 | |
| 3444 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 3445 | |
| 3446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
| 3447 | $as_echo_n "checking whether build environment is sane... " >&6; } |
| 3448 | # Just in case |
| 3449 | sleep 1 |
| 3450 | echo timestamp > conftest.file |
| 3451 | # Reject unsafe characters in $srcdir or the absolute working directory |
| 3452 | # name. Accept space and tab only in the latter. |
| 3453 | am_lf=' |
| 3454 | ' |
| 3455 | case `pwd` in |
| 3456 | *[\\\"\#\$\&\'\`$am_lf]*) |
| 3457 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; |
| 3458 | esac |
| 3459 | case $srcdir in |
| 3460 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) |
| 3461 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; |
| 3462 | esac |
| 3463 | |
| 3464 | # Do `set' in a subshell so we don't clobber the current shell's |
| 3465 | # arguments. Must try -L first in case configure is actually a |
| 3466 | # symlink; some systems play weird games with the mod time of symlinks |
| 3467 | # (eg FreeBSD returns the mod time of the symlink's containing |
| 3468 | # directory). |
| 3469 | if ( |
| 3470 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` |
| 3471 | if test "$*" = "X"; then |
| 3472 | # -L didn't work. |
| 3473 | set X `ls -t "$srcdir/configure" conftest.file` |
| 3474 | fi |
| 3475 | rm -f conftest.file |
| 3476 | if test "$*" != "X $srcdir/configure conftest.file" \ |
| 3477 | && test "$*" != "X conftest.file $srcdir/configure"; then |
| 3478 | |
| 3479 | # If neither matched, then we have a broken ls. This can happen |
| 3480 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
| 3481 | # broken ls alias from the environment. This has actually |
| 3482 | # happened. Such a system could not be considered "sane". |
| 3483 | as_fn_error "ls -t appears to fail. Make sure there is not a broken |
| 3484 | alias in your environment" "$LINENO" 5 |
| 3485 | fi |
| 3486 | |
| 3487 | test "$2" = conftest.file |
| 3488 | ) |
| 3489 | then |
| 3490 | # Ok. |
| 3491 | : |
| 3492 | else |
| 3493 | as_fn_error "newly created file is older than distributed files! |
| 3494 | Check your system clock" "$LINENO" 5 |
| 3495 | fi |
| 3496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3497 | $as_echo "yes" >&6; } |
| 3498 | test "$program_prefix" != NONE && |
| 3499 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
| 3500 | # Use a double $ so make ignores it. |
| 3501 | test "$program_suffix" != NONE && |
| 3502 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
| 3503 | # Double any \ or $. |
| 3504 | # By default was `s,x,x', remove it if useless. |
| 3505 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
| 3506 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` |
| 3507 | |
| 3508 | # expand $ac_aux_dir to an absolute path |
| 3509 | am_aux_dir=`cd $ac_aux_dir && pwd` |
| 3510 | |
| 3511 | if test x"${MISSING+set}" != xset; then |
| 3512 | case $am_aux_dir in |
| 3513 | *\ * | *\ *) |
| 3514 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; |
| 3515 | *) |
| 3516 | MISSING="\${SHELL} $am_aux_dir/missing" ;; |
| 3517 | esac |
| 3518 | fi |
| 3519 | # Use eval to expand $SHELL |
| 3520 | if eval "$MISSING --run true"; then |
| 3521 | am_missing_run="$MISSING --run " |
| 3522 | else |
| 3523 | am_missing_run= |
| 3524 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 |
| 3525 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
| 3526 | fi |
| 3527 | |
| 3528 | if test x"${install_sh}" != xset; then |
| 3529 | case $am_aux_dir in |
| 3530 | *\ * | *\ *) |
| 3531 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; |
| 3532 | *) |
| 3533 | install_sh="\${SHELL} $am_aux_dir/install-sh" |
| 3534 | esac |
| 3535 | fi |
| 3536 | |
| 3537 | # Installed binaries are usually stripped using `strip' when the user |
| 3538 | # run `make install-strip'. However `strip' might not be the right |
| 3539 | # tool to use in cross-compilation environments, therefore Automake |
| 3540 | # will honor the `STRIP' environment variable to overrule this program. |
| 3541 | if test "$cross_compiling" != no; then |
| 3542 | if test -n "$ac_tool_prefix"; then |
| 3543 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
| 3544 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
| 3545 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3546 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3547 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
| 3548 | $as_echo_n "(cached) " >&6 |
| 3549 | else |
| 3550 | if test -n "$STRIP"; then |
| 3551 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 3552 | else |
| 3553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3554 | for as_dir in $PATH |
| 3555 | do |
| 3556 | IFS=$as_save_IFS |
| 3557 | test -z "$as_dir" && as_dir=. |
| 3558 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3559 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3560 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
| 3561 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3562 | break 2 |
| 3563 | fi |
| 3564 | done |
| 3565 | done |
| 3566 | IFS=$as_save_IFS |
| 3567 | |
| 3568 | fi |
| 3569 | fi |
| 3570 | STRIP=$ac_cv_prog_STRIP |
| 3571 | if test -n "$STRIP"; then |
| 3572 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
| 3573 | $as_echo "$STRIP" >&6; } |
| 3574 | else |
| 3575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3576 | $as_echo "no" >&6; } |
| 3577 | fi |
| 3578 | |
| 3579 | |
| 3580 | fi |
| 3581 | if test -z "$ac_cv_prog_STRIP"; then |
| 3582 | ac_ct_STRIP=$STRIP |
| 3583 | # Extract the first word of "strip", so it can be a program name with args. |
| 3584 | set dummy strip; ac_word=$2 |
| 3585 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3586 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3587 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
| 3588 | $as_echo_n "(cached) " >&6 |
| 3589 | else |
| 3590 | if test -n "$ac_ct_STRIP"; then |
| 3591 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
| 3592 | else |
| 3593 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3594 | for as_dir in $PATH |
| 3595 | do |
| 3596 | IFS=$as_save_IFS |
| 3597 | test -z "$as_dir" && as_dir=. |
| 3598 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3599 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3600 | ac_cv_prog_ac_ct_STRIP="strip" |
| 3601 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3602 | break 2 |
| 3603 | fi |
| 3604 | done |
| 3605 | done |
| 3606 | IFS=$as_save_IFS |
| 3607 | |
| 3608 | fi |
| 3609 | fi |
| 3610 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 3611 | if test -n "$ac_ct_STRIP"; then |
| 3612 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
| 3613 | $as_echo "$ac_ct_STRIP" >&6; } |
| 3614 | else |
| 3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3616 | $as_echo "no" >&6; } |
| 3617 | fi |
| 3618 | |
| 3619 | if test "x$ac_ct_STRIP" = x; then |
| 3620 | STRIP=":" |
| 3621 | else |
| 3622 | case $cross_compiling:$ac_tool_warned in |
| 3623 | yes:) |
| 3624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3625 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3626 | ac_tool_warned=yes ;; |
| 3627 | esac |
| 3628 | STRIP=$ac_ct_STRIP |
| 3629 | fi |
| 3630 | else |
| 3631 | STRIP="$ac_cv_prog_STRIP" |
| 3632 | fi |
| 3633 | |
| 3634 | fi |
| 3635 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
| 3636 | |
| 3637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
| 3638 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
| 3639 | if test -z "$MKDIR_P"; then |
| 3640 | if test "${ac_cv_path_mkdir+set}" = set; then : |
| 3641 | $as_echo_n "(cached) " >&6 |
| 3642 | else |
| 3643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3644 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
| 3645 | do |
| 3646 | IFS=$as_save_IFS |
| 3647 | test -z "$as_dir" && as_dir=. |
| 3648 | for ac_prog in mkdir gmkdir; do |
| 3649 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3650 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
| 3651 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
| 3652 | 'mkdir (GNU coreutils) '* | \ |
| 3653 | 'mkdir (coreutils) '* | \ |
| 3654 | 'mkdir (fileutils) '4.1*) |
| 3655 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
| 3656 | break 3;; |
| 3657 | esac |
| 3658 | done |
| 3659 | done |
| 3660 | done |
| 3661 | IFS=$as_save_IFS |
| 3662 | |
| 3663 | fi |
| 3664 | |
| 3665 | test -d ./--version && rmdir ./--version |
| 3666 | if test "${ac_cv_path_mkdir+set}" = set; then |
| 3667 | MKDIR_P="$ac_cv_path_mkdir -p" |
| 3668 | else |
| 3669 | # As a last resort, use the slow shell script. Don't cache a |
| 3670 | # value for MKDIR_P within a source directory, because that will |
| 3671 | # break other packages using the cache if that directory is |
| 3672 | # removed, or if the value is a relative name. |
| 3673 | MKDIR_P="$ac_install_sh -d" |
| 3674 | fi |
| 3675 | fi |
| 3676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
| 3677 | $as_echo "$MKDIR_P" >&6; } |
| 3678 | |
| 3679 | |
| 3680 | mkdir_p="$MKDIR_P" |
| 3681 | case $mkdir_p in |
| 3682 | [\\/$]* | ?:[\\/]*) ;; |
| 3683 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
| 3684 | esac |
| 3685 | |
| 3686 | for ac_prog in gawk mawk nawk awk |
| 3687 | do |
| 3688 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3689 | set dummy $ac_prog; ac_word=$2 |
| 3690 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3691 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3692 | if test "${ac_cv_prog_AWK+set}" = set; then : |
| 3693 | $as_echo_n "(cached) " >&6 |
| 3694 | else |
| 3695 | if test -n "$AWK"; then |
| 3696 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 3697 | else |
| 3698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3699 | for as_dir in $PATH |
| 3700 | do |
| 3701 | IFS=$as_save_IFS |
| 3702 | test -z "$as_dir" && as_dir=. |
| 3703 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3704 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3705 | ac_cv_prog_AWK="$ac_prog" |
| 3706 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3707 | break 2 |
| 3708 | fi |
| 3709 | done |
| 3710 | done |
| 3711 | IFS=$as_save_IFS |
| 3712 | |
| 3713 | fi |
| 3714 | fi |
| 3715 | AWK=$ac_cv_prog_AWK |
| 3716 | if test -n "$AWK"; then |
| 3717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
| 3718 | $as_echo "$AWK" >&6; } |
| 3719 | else |
| 3720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3721 | $as_echo "no" >&6; } |
| 3722 | fi |
| 3723 | |
| 3724 | |
| 3725 | test -n "$AWK" && break |
| 3726 | done |
| 3727 | |
| 3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
| 3729 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 3730 | set x ${MAKE-make} |
| 3731 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
| 3732 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 3733 | $as_echo_n "(cached) " >&6 |
| 3734 | else |
| 3735 | cat >conftest.make <<\_ACEOF |
| 3736 | SHELL = /bin/sh |
| 3737 | all: |
| 3738 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
| 3739 | _ACEOF |
| 3740 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 3741 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 3742 | *@@@%%%=?*=@@@%%%*) |
| 3743 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 3744 | *) |
| 3745 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 3746 | esac |
| 3747 | rm -f conftest.make |
| 3748 | fi |
| 3749 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
| 3750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3751 | $as_echo "yes" >&6; } |
| 3752 | SET_MAKE= |
| 3753 | else |
| 3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3755 | $as_echo "no" >&6; } |
| 3756 | SET_MAKE="MAKE=${MAKE-make}" |
| 3757 | fi |
| 3758 | |
| 3759 | rm -rf .tst 2>/dev/null |
| 3760 | mkdir .tst 2>/dev/null |
| 3761 | if test -d .tst; then |
| 3762 | am__leading_dot=. |
| 3763 | else |
| 3764 | am__leading_dot=_ |
| 3765 | fi |
| 3766 | rmdir .tst 2>/dev/null |
| 3767 | |
| 3768 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
| 3769 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
| 3770 | # is not polluted with repeated "-I." |
| 3771 | am__isrc=' -I$(srcdir)' |
| 3772 | # test to see if srcdir already configured |
| 3773 | if test -f $srcdir/config.status; then |
| 3774 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
| 3775 | fi |
| 3776 | fi |
| 3777 | |
| 3778 | # test whether we have cygpath |
| 3779 | if test -z "$CYGPATH_W"; then |
| 3780 | if (cygpath --version) >/dev/null 2>/dev/null; then |
| 3781 | CYGPATH_W='cygpath -w' |
| 3782 | else |
| 3783 | CYGPATH_W=echo |
| 3784 | fi |
| 3785 | fi |
| 3786 | |
| 3787 | |
| 3788 | # Define the identity of the package. |
| 3789 | PACKAGE='emacs' |
| 3790 | VERSION='24.3.50' |
| 3791 | |
| 3792 | |
| 3793 | cat >>confdefs.h <<_ACEOF |
| 3794 | #define PACKAGE "$PACKAGE" |
| 3795 | _ACEOF |
| 3796 | |
| 3797 | |
| 3798 | cat >>confdefs.h <<_ACEOF |
| 3799 | #define VERSION "$VERSION" |
| 3800 | _ACEOF |
| 3801 | |
| 3802 | # Some tools Automake needs. |
| 3803 | |
| 3804 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
| 3805 | |
| 3806 | |
| 3807 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
| 3808 | |
| 3809 | |
| 3810 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
| 3811 | |
| 3812 | |
| 3813 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
| 3814 | |
| 3815 | |
| 3816 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
| 3817 | |
| 3818 | # We need awk for the "check" target. The system "awk" is bad on |
| 3819 | # some platforms. |
| 3820 | # Always define AMTAR for backward compatibility. |
| 3821 | |
| 3822 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
| 3823 | |
| 3824 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
| 3825 | |
| 3826 | |
| 3827 | |
| 3828 | |
| 3829 | |
| 3830 | |
| 3831 | |
| 3832 | |
| 3833 | lispdir='${datadir}/emacs/${version}/lisp' |
| 3834 | leimdir='${datadir}/emacs/${version}/leim' |
| 3835 | standardlisppath='${lispdir}:${leimdir}' |
| 3836 | locallisppath='${datadir}/emacs/${version}/site-lisp:'\ |
| 3837 | '${datadir}/emacs/site-lisp' |
| 3838 | lisppath='${locallisppath}:${standardlisppath}' |
| 3839 | etcdir='${datadir}/emacs/${version}/etc' |
| 3840 | archlibdir='${libexecdir}/emacs/${version}/${configuration}' |
| 3841 | docdir='${datadir}/emacs/${version}/etc' |
| 3842 | gamedir='${localstatedir}/games/emacs' |
| 3843 | |
| 3844 | |
| 3845 | # Check whether --with-all was given. |
| 3846 | if test "${with_all+set}" = set; then : |
| 3847 | withval=$with_all; with_features=$withval |
| 3848 | else |
| 3849 | with_features=yes |
| 3850 | fi |
| 3851 | |
| 3852 | |
| 3853 | |
| 3854 | |
| 3855 | |
| 3856 | # Check whether --with-pop was given. |
| 3857 | if test "${with_pop+set}" = set; then : |
| 3858 | withval=$with_pop; |
| 3859 | else |
| 3860 | with_pop=$with_features |
| 3861 | fi |
| 3862 | |
| 3863 | if test "$with_pop" = yes; then |
| 3864 | $as_echo "#define MAIL_USE_POP 1" >>confdefs.h |
| 3865 | |
| 3866 | fi |
| 3867 | |
| 3868 | |
| 3869 | # Check whether --with-kerberos was given. |
| 3870 | if test "${with_kerberos+set}" = set; then : |
| 3871 | withval=$with_kerberos; |
| 3872 | else |
| 3873 | with_kerberos=no |
| 3874 | fi |
| 3875 | |
| 3876 | if test "$with_kerberos" != no; then |
| 3877 | $as_echo "#define KERBEROS 1" >>confdefs.h |
| 3878 | |
| 3879 | fi |
| 3880 | |
| 3881 | |
| 3882 | # Check whether --with-kerberos5 was given. |
| 3883 | if test "${with_kerberos5+set}" = set; then : |
| 3884 | withval=$with_kerberos5; |
| 3885 | else |
| 3886 | with_kerberos5=no |
| 3887 | fi |
| 3888 | |
| 3889 | if test "${with_kerberos5}" != no; then |
| 3890 | if test "${with_kerberos}" = no; then |
| 3891 | with_kerberos=yes |
| 3892 | $as_echo "#define KERBEROS 1" >>confdefs.h |
| 3893 | |
| 3894 | fi |
| 3895 | |
| 3896 | $as_echo "#define KERBEROS5 1" >>confdefs.h |
| 3897 | |
| 3898 | fi |
| 3899 | |
| 3900 | |
| 3901 | # Check whether --with-hesiod was given. |
| 3902 | if test "${with_hesiod+set}" = set; then : |
| 3903 | withval=$with_hesiod; |
| 3904 | else |
| 3905 | with_hesiod=no |
| 3906 | fi |
| 3907 | |
| 3908 | if test "$with_hesiod" != no; then |
| 3909 | |
| 3910 | $as_echo "#define HESIOD 1" >>confdefs.h |
| 3911 | |
| 3912 | fi |
| 3913 | |
| 3914 | |
| 3915 | # Check whether --with-mmdf was given. |
| 3916 | if test "${with_mmdf+set}" = set; then : |
| 3917 | withval=$with_mmdf; |
| 3918 | else |
| 3919 | with_mmdf=no |
| 3920 | fi |
| 3921 | |
| 3922 | if test "$with_mmdf" != no; then |
| 3923 | |
| 3924 | $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h |
| 3925 | |
| 3926 | fi |
| 3927 | |
| 3928 | |
| 3929 | # Check whether --with-mail-unlink was given. |
| 3930 | if test "${with_mail_unlink+set}" = set; then : |
| 3931 | withval=$with_mail_unlink; |
| 3932 | else |
| 3933 | with_mail_unlink=no |
| 3934 | fi |
| 3935 | |
| 3936 | if test "$with_mail_unlink" != no; then |
| 3937 | |
| 3938 | $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h |
| 3939 | |
| 3940 | fi |
| 3941 | |
| 3942 | |
| 3943 | # Check whether --with-mailhost was given. |
| 3944 | if test "${with_mailhost+set}" = set; then : |
| 3945 | withval=$with_mailhost; |
| 3946 | cat >>confdefs.h <<_ACEOF |
| 3947 | #define MAILHOST "$withval" |
| 3948 | _ACEOF |
| 3949 | |
| 3950 | fi |
| 3951 | |
| 3952 | |
| 3953 | |
| 3954 | # Check whether --with-sound was given. |
| 3955 | if test "${with_sound+set}" = set; then : |
| 3956 | withval=$with_sound; |
| 3957 | else |
| 3958 | with_sound=$with_features |
| 3959 | fi |
| 3960 | |
| 3961 | |
| 3962 | |
| 3963 | # Check whether --with-x-toolkit was given. |
| 3964 | if test "${with_x_toolkit+set}" = set; then : |
| 3965 | withval=$with_x_toolkit; case "${withval}" in |
| 3966 | y | ye | yes ) val=gtk ;; |
| 3967 | n | no ) val=no ;; |
| 3968 | l | lu | luc | luci | lucid ) val=lucid ;; |
| 3969 | a | at | ath | athe | athen | athena ) val=athena ;; |
| 3970 | m | mo | mot | moti | motif ) val=motif ;; |
| 3971 | g | gt | gtk ) val=gtk ;; |
| 3972 | gtk2 ) val=gtk2 ;; |
| 3973 | gtk3 ) val=gtk3 ;; |
| 3974 | * ) |
| 3975 | as_fn_error "\`--with-x-toolkit=$withval' is invalid; |
| 3976 | this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif', \`gtk', |
| 3977 | \`gtk2' or \`gtk3'. \`yes' and \`gtk' are synonyms. |
| 3978 | \`athena' and \`lucid' are synonyms." "$LINENO" 5 |
| 3979 | ;; |
| 3980 | esac |
| 3981 | with_x_toolkit=$val |
| 3982 | |
| 3983 | fi |
| 3984 | |
| 3985 | |
| 3986 | |
| 3987 | # Check whether --with-wide-int was given. |
| 3988 | if test "${with_wide_int+set}" = set; then : |
| 3989 | withval=$with_wide_int; |
| 3990 | else |
| 3991 | with_wide_int=no |
| 3992 | fi |
| 3993 | |
| 3994 | if test "$with_wide_int" = yes; then |
| 3995 | |
| 3996 | $as_echo "#define WIDE_EMACS_INT 1" >>confdefs.h |
| 3997 | |
| 3998 | fi |
| 3999 | |
| 4000 | |
| 4001 | # Check whether --with-xpm was given. |
| 4002 | if test "${with_xpm+set}" = set; then : |
| 4003 | withval=$with_xpm; |
| 4004 | else |
| 4005 | with_xpm=$with_features |
| 4006 | fi |
| 4007 | |
| 4008 | |
| 4009 | # Check whether --with-jpeg was given. |
| 4010 | if test "${with_jpeg+set}" = set; then : |
| 4011 | withval=$with_jpeg; |
| 4012 | else |
| 4013 | with_jpeg=$with_features |
| 4014 | fi |
| 4015 | |
| 4016 | |
| 4017 | # Check whether --with-tiff was given. |
| 4018 | if test "${with_tiff+set}" = set; then : |
| 4019 | withval=$with_tiff; |
| 4020 | else |
| 4021 | with_tiff=$with_features |
| 4022 | fi |
| 4023 | |
| 4024 | |
| 4025 | # Check whether --with-gif was given. |
| 4026 | if test "${with_gif+set}" = set; then : |
| 4027 | withval=$with_gif; |
| 4028 | else |
| 4029 | with_gif=$with_features |
| 4030 | fi |
| 4031 | |
| 4032 | |
| 4033 | # Check whether --with-png was given. |
| 4034 | if test "${with_png+set}" = set; then : |
| 4035 | withval=$with_png; |
| 4036 | else |
| 4037 | with_png=$with_features |
| 4038 | fi |
| 4039 | |
| 4040 | |
| 4041 | # Check whether --with-rsvg was given. |
| 4042 | if test "${with_rsvg+set}" = set; then : |
| 4043 | withval=$with_rsvg; |
| 4044 | else |
| 4045 | with_rsvg=$with_features |
| 4046 | fi |
| 4047 | |
| 4048 | |
| 4049 | # Check whether --with-xml2 was given. |
| 4050 | if test "${with_xml2+set}" = set; then : |
| 4051 | withval=$with_xml2; |
| 4052 | else |
| 4053 | with_xml2=$with_features |
| 4054 | fi |
| 4055 | |
| 4056 | |
| 4057 | # Check whether --with-imagemagick was given. |
| 4058 | if test "${with_imagemagick+set}" = set; then : |
| 4059 | withval=$with_imagemagick; |
| 4060 | else |
| 4061 | with_imagemagick=$with_features |
| 4062 | fi |
| 4063 | |
| 4064 | |
| 4065 | |
| 4066 | # Check whether --with-xft was given. |
| 4067 | if test "${with_xft+set}" = set; then : |
| 4068 | withval=$with_xft; |
| 4069 | else |
| 4070 | with_xft=$with_features |
| 4071 | fi |
| 4072 | |
| 4073 | |
| 4074 | # Check whether --with-libotf was given. |
| 4075 | if test "${with_libotf+set}" = set; then : |
| 4076 | withval=$with_libotf; |
| 4077 | else |
| 4078 | with_libotf=$with_features |
| 4079 | fi |
| 4080 | |
| 4081 | |
| 4082 | # Check whether --with-m17n-flt was given. |
| 4083 | if test "${with_m17n_flt+set}" = set; then : |
| 4084 | withval=$with_m17n_flt; |
| 4085 | else |
| 4086 | with_m17n_flt=$with_features |
| 4087 | fi |
| 4088 | |
| 4089 | |
| 4090 | |
| 4091 | # Check whether --with-toolkit-scroll-bars was given. |
| 4092 | if test "${with_toolkit_scroll_bars+set}" = set; then : |
| 4093 | withval=$with_toolkit_scroll_bars; |
| 4094 | else |
| 4095 | with_toolkit_scroll_bars=$with_features |
| 4096 | fi |
| 4097 | |
| 4098 | |
| 4099 | # Check whether --with-xaw3d was given. |
| 4100 | if test "${with_xaw3d+set}" = set; then : |
| 4101 | withval=$with_xaw3d; |
| 4102 | else |
| 4103 | with_xaw3d=$with_features |
| 4104 | fi |
| 4105 | |
| 4106 | |
| 4107 | # Check whether --with-xim was given. |
| 4108 | if test "${with_xim+set}" = set; then : |
| 4109 | withval=$with_xim; |
| 4110 | else |
| 4111 | with_xim=$with_features |
| 4112 | fi |
| 4113 | |
| 4114 | |
| 4115 | # Check whether --with-ns was given. |
| 4116 | if test "${with_ns+set}" = set; then : |
| 4117 | withval=$with_ns; |
| 4118 | else |
| 4119 | with_ns=no |
| 4120 | fi |
| 4121 | |
| 4122 | |
| 4123 | # Check whether --with-w32 was given. |
| 4124 | if test "${with_w32+set}" = set; then : |
| 4125 | withval=$with_w32; |
| 4126 | else |
| 4127 | with_w32=no |
| 4128 | fi |
| 4129 | |
| 4130 | |
| 4131 | |
| 4132 | # Check whether --with-gpm was given. |
| 4133 | if test "${with_gpm+set}" = set; then : |
| 4134 | withval=$with_gpm; |
| 4135 | else |
| 4136 | with_gpm=$with_features |
| 4137 | fi |
| 4138 | |
| 4139 | |
| 4140 | # Check whether --with-dbus was given. |
| 4141 | if test "${with_dbus+set}" = set; then : |
| 4142 | withval=$with_dbus; |
| 4143 | else |
| 4144 | with_dbus=$with_features |
| 4145 | fi |
| 4146 | |
| 4147 | |
| 4148 | # Check whether --with-gconf was given. |
| 4149 | if test "${with_gconf+set}" = set; then : |
| 4150 | withval=$with_gconf; |
| 4151 | else |
| 4152 | with_gconf=$with_features |
| 4153 | fi |
| 4154 | |
| 4155 | |
| 4156 | # Check whether --with-gsettings was given. |
| 4157 | if test "${with_gsettings+set}" = set; then : |
| 4158 | withval=$with_gsettings; |
| 4159 | else |
| 4160 | with_gsettings=$with_features |
| 4161 | fi |
| 4162 | |
| 4163 | |
| 4164 | # Check whether --with-selinux was given. |
| 4165 | if test "${with_selinux+set}" = set; then : |
| 4166 | withval=$with_selinux; |
| 4167 | else |
| 4168 | with_selinux=$with_features |
| 4169 | fi |
| 4170 | |
| 4171 | |
| 4172 | # Check whether --with-gnutls was given. |
| 4173 | if test "${with_gnutls+set}" = set; then : |
| 4174 | withval=$with_gnutls; |
| 4175 | else |
| 4176 | with_gnutls=$with_features |
| 4177 | fi |
| 4178 | |
| 4179 | |
| 4180 | ## For the times when you want to build Emacs but don't have |
| 4181 | ## a suitable makeinfo, and can live without the manuals. |
| 4182 | |
| 4183 | # Check whether --with-makeinfo was given. |
| 4184 | if test "${with_makeinfo+set}" = set; then : |
| 4185 | withval=$with_makeinfo; |
| 4186 | else |
| 4187 | with_makeinfo=$with_features |
| 4188 | fi |
| 4189 | |
| 4190 | |
| 4191 | ## Makefile.in needs the cache file name. |
| 4192 | |
| 4193 | |
| 4194 | ## This is an option because I do not know if all info/man support |
| 4195 | ## compressed files, nor how to test if they do so. |
| 4196 | |
| 4197 | # Check whether --with-compress-info was given. |
| 4198 | if test "${with_compress_info+set}" = set; then : |
| 4199 | withval=$with_compress_info; |
| 4200 | else |
| 4201 | with_compress_info=$with_features |
| 4202 | fi |
| 4203 | |
| 4204 | if test $with_compress_info = yes; then |
| 4205 | GZIP_INFO=yes |
| 4206 | else |
| 4207 | GZIP_INFO= |
| 4208 | fi |
| 4209 | |
| 4210 | |
| 4211 | |
| 4212 | # Check whether --with-pkg-config-prog was given. |
| 4213 | if test "${with_pkg_config_prog+set}" = set; then : |
| 4214 | withval=$with_pkg_config_prog; |
| 4215 | fi |
| 4216 | |
| 4217 | if test "X${with_pkg_config_prog}" != X; then |
| 4218 | if test "${with_pkg_config_prog}" != yes; then |
| 4219 | PKG_CONFIG="${with_pkg_config_prog}" |
| 4220 | fi |
| 4221 | fi |
| 4222 | |
| 4223 | CRT_DIR= |
| 4224 | |
| 4225 | # Check whether --with-crt-dir was given. |
| 4226 | if test "${with_crt_dir+set}" = set; then : |
| 4227 | withval=$with_crt_dir; |
| 4228 | fi |
| 4229 | |
| 4230 | CRT_DIR="${with_crt_dir}" |
| 4231 | |
| 4232 | |
| 4233 | # Check whether --with-gameuser was given. |
| 4234 | if test "${with_gameuser+set}" = set; then : |
| 4235 | withval=$with_gameuser; |
| 4236 | fi |
| 4237 | |
| 4238 | test "X${with_gameuser}" != X && test "${with_gameuser}" != yes \ |
| 4239 | && gameuser="${with_gameuser}" |
| 4240 | test "X$gameuser" = X && gameuser=games |
| 4241 | |
| 4242 | |
| 4243 | # Check whether --with-gnustep-conf was given. |
| 4244 | if test "${with_gnustep_conf+set}" = set; then : |
| 4245 | withval=$with_gnustep_conf; |
| 4246 | fi |
| 4247 | |
| 4248 | test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ |
| 4249 | GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" |
| 4250 | test "X$GNUSTEP_CONFIG_FILE" = "X" && \ |
| 4251 | GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf |
| 4252 | |
| 4253 | # Check whether --enable-ns-self-contained was given. |
| 4254 | if test "${enable_ns_self_contained+set}" = set; then : |
| 4255 | enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval |
| 4256 | else |
| 4257 | EN_NS_SELF_CONTAINED=yes |
| 4258 | fi |
| 4259 | |
| 4260 | |
| 4261 | # Check whether --enable-locallisppath was given. |
| 4262 | if test "${enable_locallisppath+set}" = set; then : |
| 4263 | enableval=$enable_locallisppath; if test "${enableval}" = "no"; then |
| 4264 | locallisppath= |
| 4265 | elif test "${enableval}" != "yes"; then |
| 4266 | locallisppath=${enableval} |
| 4267 | fi |
| 4268 | fi |
| 4269 | |
| 4270 | |
| 4271 | # Check whether --enable-checking was given. |
| 4272 | if test "${enable_checking+set}" = set; then : |
| 4273 | enableval=$enable_checking; ac_checking_flags="${enableval}" |
| 4274 | fi |
| 4275 | |
| 4276 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," |
| 4277 | for check in $ac_checking_flags |
| 4278 | do |
| 4279 | case $check in |
| 4280 | # these set all the flags to specific states |
| 4281 | yes) ac_enable_checking=1 ;; |
| 4282 | no) ac_enable_checking= ; |
| 4283 | ac_gc_check_stringbytes= ; |
| 4284 | ac_gc_check_string_overrun= ; |
| 4285 | ac_gc_check_string_free_list= ; |
| 4286 | ac_xmalloc_overrun= ; |
| 4287 | ac_gc_check_cons_list= ; |
| 4288 | ac_glyphs_debug= ;; |
| 4289 | all) ac_enable_checking=1 ; |
| 4290 | ac_gc_check_stringbytes=1 ; |
| 4291 | ac_gc_check_string_overrun=1 ; |
| 4292 | ac_gc_check_string_free_list=1 ; |
| 4293 | ac_xmalloc_overrun=1 ; |
| 4294 | ac_gc_check_cons_list=1 ; |
| 4295 | ac_glyphs_debug=1 ;; |
| 4296 | # these enable particular checks |
| 4297 | stringbytes) ac_gc_check_stringbytes=1 ;; |
| 4298 | stringoverrun) ac_gc_check_string_overrun=1 ;; |
| 4299 | stringfreelist) ac_gc_check_string_free_list=1 ;; |
| 4300 | xmallocoverrun) ac_xmalloc_overrun=1 ;; |
| 4301 | conslist) ac_gc_check_cons_list=1 ;; |
| 4302 | glyphs) ac_glyphs_debug=1 ;; |
| 4303 | *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; |
| 4304 | esac |
| 4305 | done |
| 4306 | IFS="$ac_save_IFS" |
| 4307 | |
| 4308 | if test x$ac_enable_checking != x ; then |
| 4309 | |
| 4310 | $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h |
| 4311 | |
| 4312 | fi |
| 4313 | if test x$ac_gc_check_stringbytes != x ; then |
| 4314 | |
| 4315 | $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h |
| 4316 | |
| 4317 | fi |
| 4318 | if test x$ac_gc_check_string_overrun != x ; then |
| 4319 | |
| 4320 | $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h |
| 4321 | |
| 4322 | fi |
| 4323 | if test x$ac_gc_check_string_free_list != x ; then |
| 4324 | |
| 4325 | $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h |
| 4326 | |
| 4327 | fi |
| 4328 | if test x$ac_xmalloc_overrun != x ; then |
| 4329 | |
| 4330 | $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h |
| 4331 | |
| 4332 | fi |
| 4333 | if test x$ac_gc_check_cons_list != x ; then |
| 4334 | |
| 4335 | $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h |
| 4336 | |
| 4337 | fi |
| 4338 | if test x$ac_glyphs_debug != x ; then |
| 4339 | |
| 4340 | $as_echo "#define GLYPH_DEBUG 1" >>confdefs.h |
| 4341 | |
| 4342 | fi |
| 4343 | |
| 4344 | # Check whether --enable-check-lisp-object-type was given. |
| 4345 | if test "${enable_check_lisp_object_type+set}" = set; then : |
| 4346 | enableval=$enable_check_lisp_object_type; if test "${enableval}" != "no"; then |
| 4347 | |
| 4348 | $as_echo "#define CHECK_LISP_OBJECT_TYPE 1" >>confdefs.h |
| 4349 | |
| 4350 | fi |
| 4351 | fi |
| 4352 | |
| 4353 | |
| 4354 | |
| 4355 | # Check whether --enable-profiling was given. |
| 4356 | if test "${enable_profiling+set}" = set; then : |
| 4357 | enableval=$enable_profiling; ac_enable_profiling="${enableval}" |
| 4358 | fi |
| 4359 | |
| 4360 | if test x$ac_enable_profiling != x ; then |
| 4361 | PROFILING_CFLAGS="-DPROFILING=1 -pg" |
| 4362 | else |
| 4363 | PROFILING_CFLAGS= |
| 4364 | fi |
| 4365 | |
| 4366 | |
| 4367 | # Check whether --enable-autodepend was given. |
| 4368 | if test "${enable_autodepend+set}" = set; then : |
| 4369 | enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" |
| 4370 | else |
| 4371 | ac_enable_autodepend=yes |
| 4372 | fi |
| 4373 | |
| 4374 | |
| 4375 | #### Make srcdir absolute, if it isn't already. It's important to |
| 4376 | #### avoid running the path through pwd unnecessarily, since pwd can |
| 4377 | #### give you automounter prefixes, which can go away. We do all this |
| 4378 | #### so Emacs can find its files when run uninstalled. |
| 4379 | ## Make sure CDPATH doesn't affect cd (in case PWD is relative). |
| 4380 | unset CDPATH |
| 4381 | case "${srcdir}" in |
| 4382 | /* ) ;; |
| 4383 | . ) |
| 4384 | ## We may be able to use the $PWD environment variable to make this |
| 4385 | ## absolute. But sometimes PWD is inaccurate. |
| 4386 | ## Note: we used to use ${PWD} at the end instead of `pwd`, |
| 4387 | ## but that tested only for a well-formed and valid PWD, |
| 4388 | ## it did not object when PWD was well-formed and valid but just wrong. |
| 4389 | if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ; |
| 4390 | then |
| 4391 | srcdir="$PWD" |
| 4392 | else |
| 4393 | srcdir="`(cd ${srcdir}; pwd)`" |
| 4394 | fi |
| 4395 | ;; |
| 4396 | * ) srcdir="`(cd ${srcdir}; pwd)`" ;; |
| 4397 | esac |
| 4398 | |
| 4399 | ### Canonicalize the configuration name. |
| 4400 | |
| 4401 | # Make sure we can run config.sub. |
| 4402 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
| 4403 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
| 4404 | |
| 4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
| 4406 | $as_echo_n "checking build system type... " >&6; } |
| 4407 | if test "${ac_cv_build+set}" = set; then : |
| 4408 | $as_echo_n "(cached) " >&6 |
| 4409 | else |
| 4410 | ac_build_alias=$build_alias |
| 4411 | test "x$ac_build_alias" = x && |
| 4412 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 4413 | test "x$ac_build_alias" = x && |
| 4414 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
| 4415 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
| 4416 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
| 4417 | |
| 4418 | fi |
| 4419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
| 4420 | $as_echo "$ac_cv_build" >&6; } |
| 4421 | case $ac_cv_build in |
| 4422 | *-*-*) ;; |
| 4423 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
| 4424 | esac |
| 4425 | build=$ac_cv_build |
| 4426 | ac_save_IFS=$IFS; IFS='-' |
| 4427 | set x $ac_cv_build |
| 4428 | shift |
| 4429 | build_cpu=$1 |
| 4430 | build_vendor=$2 |
| 4431 | shift; shift |
| 4432 | # Remember, the first character of IFS is used to create $*, |
| 4433 | # except with old shells: |
| 4434 | build_os=$* |
| 4435 | IFS=$ac_save_IFS |
| 4436 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
| 4437 | |
| 4438 | |
| 4439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
| 4440 | $as_echo_n "checking host system type... " >&6; } |
| 4441 | if test "${ac_cv_host+set}" = set; then : |
| 4442 | $as_echo_n "(cached) " >&6 |
| 4443 | else |
| 4444 | if test "x$host_alias" = x; then |
| 4445 | ac_cv_host=$ac_cv_build |
| 4446 | else |
| 4447 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
| 4448 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
| 4449 | fi |
| 4450 | |
| 4451 | fi |
| 4452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
| 4453 | $as_echo "$ac_cv_host" >&6; } |
| 4454 | case $ac_cv_host in |
| 4455 | *-*-*) ;; |
| 4456 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
| 4457 | esac |
| 4458 | host=$ac_cv_host |
| 4459 | ac_save_IFS=$IFS; IFS='-' |
| 4460 | set x $ac_cv_host |
| 4461 | shift |
| 4462 | host_cpu=$1 |
| 4463 | host_vendor=$2 |
| 4464 | shift; shift |
| 4465 | # Remember, the first character of IFS is used to create $*, |
| 4466 | # except with old shells: |
| 4467 | host_os=$* |
| 4468 | IFS=$ac_save_IFS |
| 4469 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
| 4470 | |
| 4471 | |
| 4472 | canonical=$host |
| 4473 | configuration=${host_alias-${build_alias-$host}} |
| 4474 | |
| 4475 | |
| 4476 | |
| 4477 | ### If you add support for a new configuration, add code to this |
| 4478 | ### switch statement to recognize your configuration name and select |
| 4479 | ### the appropriate operating system file. |
| 4480 | |
| 4481 | ### You would hope that you could choose an s/*.h |
| 4482 | ### file based on the operating system portion. However, it turns out |
| 4483 | ### that each s/*.h file is pretty manufacturer-specific. |
| 4484 | ### So we basically have to have a special case for each |
| 4485 | ### configuration name. |
| 4486 | ### |
| 4487 | ### As far as handling version numbers on operating systems is |
| 4488 | ### concerned, make sure things will fail in a fixable way. If |
| 4489 | ### /etc/MACHINES doesn't say anything about version numbers, be |
| 4490 | ### prepared to handle anything reasonably. If version numbers |
| 4491 | ### matter, be sure /etc/MACHINES says something about it. |
| 4492 | |
| 4493 | opsys='' unported=no |
| 4494 | case "${canonical}" in |
| 4495 | |
| 4496 | ## GNU/Linux and similar ports |
| 4497 | *-*-linux* ) |
| 4498 | opsys=gnu-linux |
| 4499 | ;; |
| 4500 | |
| 4501 | ## FreeBSD ports |
| 4502 | *-*-freebsd* ) |
| 4503 | opsys=freebsd |
| 4504 | ;; |
| 4505 | |
| 4506 | ## FreeBSD kernel + glibc based userland |
| 4507 | *-*-kfreebsd*gnu* ) |
| 4508 | opsys=gnu-kfreebsd |
| 4509 | ;; |
| 4510 | |
| 4511 | ## NetBSD ports |
| 4512 | *-*-netbsd* ) |
| 4513 | opsys=netbsd |
| 4514 | ;; |
| 4515 | |
| 4516 | ## OpenBSD ports |
| 4517 | *-*-openbsd* ) |
| 4518 | opsys=openbsd |
| 4519 | ;; |
| 4520 | |
| 4521 | ## Apple Darwin / Mac OS X |
| 4522 | *-apple-darwin* ) |
| 4523 | case "${canonical}" in |
| 4524 | i[3456]86-* ) ;; |
| 4525 | powerpc-* ) ;; |
| 4526 | x86_64-* ) ;; |
| 4527 | * ) unported=yes ;; |
| 4528 | esac |
| 4529 | opsys=darwin |
| 4530 | ## Use fink packages if available. |
| 4531 | ## FIXME find a better way to do this: http://debbugs.gnu.org/11507 |
| 4532 | ## if test -d /sw/include && test -d /sw/lib; then |
| 4533 | ## GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib" |
| 4534 | ## NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS} |
| 4535 | ## fi |
| 4536 | ;; |
| 4537 | |
| 4538 | ## HP 9000 series 700 and 800, running HP/UX |
| 4539 | hppa*-hp-hpux10.2* ) |
| 4540 | opsys=hpux10-20 |
| 4541 | ;; |
| 4542 | hppa*-hp-hpux1[1-9]* ) |
| 4543 | opsys=hpux11 |
| 4544 | CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS" |
| 4545 | ;; |
| 4546 | |
| 4547 | ## IBM machines |
| 4548 | rs6000-ibm-aix4.[23]* ) |
| 4549 | opsys=aix4-2 |
| 4550 | ;; |
| 4551 | powerpc-ibm-aix4.[23]* ) |
| 4552 | opsys=aix4-2 |
| 4553 | ;; |
| 4554 | rs6000-ibm-aix[56]* ) |
| 4555 | opsys=aix4-2 |
| 4556 | ;; |
| 4557 | powerpc-ibm-aix[56]* ) |
| 4558 | opsys=aix4-2 |
| 4559 | ;; |
| 4560 | |
| 4561 | ## Silicon Graphics machines |
| 4562 | ## Iris 4D |
| 4563 | mips-sgi-irix6.5 ) |
| 4564 | opsys=irix6-5 |
| 4565 | # Without defining _LANGUAGE_C, things get masked out in the headers |
| 4566 | # so that, for instance, grepping for `free' in stdlib.h fails and |
| 4567 | # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m). |
| 4568 | NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C" |
| 4569 | ;; |
| 4570 | |
| 4571 | ## Suns |
| 4572 | *-sun-solaris* \ |
| 4573 | | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* \ |
| 4574 | | x86_64-*-solaris2* | x86_64-*-sunos5*) |
| 4575 | case "${canonical}" in |
| 4576 | i[3456]86-*-* ) ;; |
| 4577 | amd64-*-*|x86_64-*-*) ;; |
| 4578 | sparc* ) ;; |
| 4579 | * ) unported=yes ;; |
| 4580 | esac |
| 4581 | case "${canonical}" in |
| 4582 | *-sunos5.6* | *-solaris2.6* ) |
| 4583 | opsys=sol2-6 |
| 4584 | RANLIB="ar -ts" |
| 4585 | ;; |
| 4586 | *-sunos5.[7-9]* | *-solaris2.[7-9]* ) |
| 4587 | opsys=sol2-6 |
| 4588 | emacs_check_sunpro_c=yes |
| 4589 | ;; |
| 4590 | *-sunos5* | *-solaris* ) |
| 4591 | opsys=sol2-10 |
| 4592 | emacs_check_sunpro_c=yes |
| 4593 | ;; |
| 4594 | esac |
| 4595 | ## Watch out for a compiler that we know will not work. |
| 4596 | case "${canonical}" in |
| 4597 | *-solaris* | *-sunos5* ) |
| 4598 | if [ "x$CC" = x/usr/ucb/cc ]; then |
| 4599 | ## /usr/ucb/cc doesn't work; |
| 4600 | ## we should find some other compiler that does work. |
| 4601 | unset CC |
| 4602 | fi |
| 4603 | ;; |
| 4604 | *) ;; |
| 4605 | esac |
| 4606 | ;; |
| 4607 | |
| 4608 | ## Intel 386 machines where we don't care about the manufacturer. |
| 4609 | i[3456]86-*-* ) |
| 4610 | case "${canonical}" in |
| 4611 | *-cygwin ) opsys=cygwin ;; |
| 4612 | *-darwin* ) opsys=darwin ;; |
| 4613 | *-sysv4.2uw* ) opsys=unixware ;; |
| 4614 | *-sysv5uw* ) opsys=unixware ;; |
| 4615 | *-sysv5OpenUNIX* ) opsys=unixware ;; |
| 4616 | ## Otherwise, we'll fall through to the generic opsys code at the bottom. |
| 4617 | esac |
| 4618 | ;; |
| 4619 | |
| 4620 | * ) |
| 4621 | unported=yes |
| 4622 | ;; |
| 4623 | esac |
| 4624 | |
| 4625 | ### If the code above didn't choose an operating system, just choose |
| 4626 | ### an operating system based on the configuration name. You really |
| 4627 | ### only want to use this when you have no idea what the right |
| 4628 | ### operating system is; if you know what operating systems a machine |
| 4629 | ### runs, it's cleaner to make it explicit in the case statement |
| 4630 | ### above. |
| 4631 | if test x"${opsys}" = x; then |
| 4632 | case "${canonical}" in |
| 4633 | *-gnu* ) opsys=gnu ;; |
| 4634 | * ) |
| 4635 | unported=yes |
| 4636 | ;; |
| 4637 | esac |
| 4638 | fi |
| 4639 | |
| 4640 | |
| 4641 | |
| 4642 | if test $unported = yes; then |
| 4643 | as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. |
| 4644 | Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 |
| 4645 | fi |
| 4646 | |
| 4647 | |
| 4648 | #### Choose a compiler. |
| 4649 | |
| 4650 | ac_ext=c |
| 4651 | ac_cpp='$CPP $CPPFLAGS' |
| 4652 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4653 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4654 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4655 | if test -n "$ac_tool_prefix"; then |
| 4656 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 4657 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4659 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4660 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4661 | $as_echo_n "(cached) " >&6 |
| 4662 | else |
| 4663 | if test -n "$CC"; then |
| 4664 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4665 | else |
| 4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4667 | for as_dir in $PATH |
| 4668 | do |
| 4669 | IFS=$as_save_IFS |
| 4670 | test -z "$as_dir" && as_dir=. |
| 4671 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4672 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4673 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 4674 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4675 | break 2 |
| 4676 | fi |
| 4677 | done |
| 4678 | done |
| 4679 | IFS=$as_save_IFS |
| 4680 | |
| 4681 | fi |
| 4682 | fi |
| 4683 | CC=$ac_cv_prog_CC |
| 4684 | if test -n "$CC"; then |
| 4685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4686 | $as_echo "$CC" >&6; } |
| 4687 | else |
| 4688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4689 | $as_echo "no" >&6; } |
| 4690 | fi |
| 4691 | |
| 4692 | |
| 4693 | fi |
| 4694 | if test -z "$ac_cv_prog_CC"; then |
| 4695 | ac_ct_CC=$CC |
| 4696 | # Extract the first word of "gcc", so it can be a program name with args. |
| 4697 | set dummy gcc; ac_word=$2 |
| 4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4699 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4700 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4701 | $as_echo_n "(cached) " >&6 |
| 4702 | else |
| 4703 | if test -n "$ac_ct_CC"; then |
| 4704 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4705 | else |
| 4706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4707 | for as_dir in $PATH |
| 4708 | do |
| 4709 | IFS=$as_save_IFS |
| 4710 | test -z "$as_dir" && as_dir=. |
| 4711 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4712 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4713 | ac_cv_prog_ac_ct_CC="gcc" |
| 4714 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4715 | break 2 |
| 4716 | fi |
| 4717 | done |
| 4718 | done |
| 4719 | IFS=$as_save_IFS |
| 4720 | |
| 4721 | fi |
| 4722 | fi |
| 4723 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4724 | if test -n "$ac_ct_CC"; then |
| 4725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4726 | $as_echo "$ac_ct_CC" >&6; } |
| 4727 | else |
| 4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4729 | $as_echo "no" >&6; } |
| 4730 | fi |
| 4731 | |
| 4732 | if test "x$ac_ct_CC" = x; then |
| 4733 | CC="" |
| 4734 | else |
| 4735 | case $cross_compiling:$ac_tool_warned in |
| 4736 | yes:) |
| 4737 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4738 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4739 | ac_tool_warned=yes ;; |
| 4740 | esac |
| 4741 | CC=$ac_ct_CC |
| 4742 | fi |
| 4743 | else |
| 4744 | CC="$ac_cv_prog_CC" |
| 4745 | fi |
| 4746 | |
| 4747 | if test -z "$CC"; then |
| 4748 | if test -n "$ac_tool_prefix"; then |
| 4749 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 4750 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4752 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4753 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4754 | $as_echo_n "(cached) " >&6 |
| 4755 | else |
| 4756 | if test -n "$CC"; then |
| 4757 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4758 | else |
| 4759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4760 | for as_dir in $PATH |
| 4761 | do |
| 4762 | IFS=$as_save_IFS |
| 4763 | test -z "$as_dir" && as_dir=. |
| 4764 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4766 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 4767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4768 | break 2 |
| 4769 | fi |
| 4770 | done |
| 4771 | done |
| 4772 | IFS=$as_save_IFS |
| 4773 | |
| 4774 | fi |
| 4775 | fi |
| 4776 | CC=$ac_cv_prog_CC |
| 4777 | if test -n "$CC"; then |
| 4778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4779 | $as_echo "$CC" >&6; } |
| 4780 | else |
| 4781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4782 | $as_echo "no" >&6; } |
| 4783 | fi |
| 4784 | |
| 4785 | |
| 4786 | fi |
| 4787 | fi |
| 4788 | if test -z "$CC"; then |
| 4789 | # Extract the first word of "cc", so it can be a program name with args. |
| 4790 | set dummy cc; ac_word=$2 |
| 4791 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4792 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4793 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4794 | $as_echo_n "(cached) " >&6 |
| 4795 | else |
| 4796 | if test -n "$CC"; then |
| 4797 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4798 | else |
| 4799 | ac_prog_rejected=no |
| 4800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4801 | for as_dir in $PATH |
| 4802 | do |
| 4803 | IFS=$as_save_IFS |
| 4804 | test -z "$as_dir" && as_dir=. |
| 4805 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4807 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 4808 | ac_prog_rejected=yes |
| 4809 | continue |
| 4810 | fi |
| 4811 | ac_cv_prog_CC="cc" |
| 4812 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4813 | break 2 |
| 4814 | fi |
| 4815 | done |
| 4816 | done |
| 4817 | IFS=$as_save_IFS |
| 4818 | |
| 4819 | if test $ac_prog_rejected = yes; then |
| 4820 | # We found a bogon in the path, so make sure we never use it. |
| 4821 | set dummy $ac_cv_prog_CC |
| 4822 | shift |
| 4823 | if test $# != 0; then |
| 4824 | # We chose a different compiler from the bogus one. |
| 4825 | # However, it has the same basename, so the bogon will be chosen |
| 4826 | # first if we set CC to just the basename; use the full file name. |
| 4827 | shift |
| 4828 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 4829 | fi |
| 4830 | fi |
| 4831 | fi |
| 4832 | fi |
| 4833 | CC=$ac_cv_prog_CC |
| 4834 | if test -n "$CC"; then |
| 4835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4836 | $as_echo "$CC" >&6; } |
| 4837 | else |
| 4838 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4839 | $as_echo "no" >&6; } |
| 4840 | fi |
| 4841 | |
| 4842 | |
| 4843 | fi |
| 4844 | if test -z "$CC"; then |
| 4845 | if test -n "$ac_tool_prefix"; then |
| 4846 | for ac_prog in cl.exe |
| 4847 | do |
| 4848 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 4849 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 4850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4851 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4852 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 4853 | $as_echo_n "(cached) " >&6 |
| 4854 | else |
| 4855 | if test -n "$CC"; then |
| 4856 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 4857 | else |
| 4858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4859 | for as_dir in $PATH |
| 4860 | do |
| 4861 | IFS=$as_save_IFS |
| 4862 | test -z "$as_dir" && as_dir=. |
| 4863 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4864 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4865 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 4866 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4867 | break 2 |
| 4868 | fi |
| 4869 | done |
| 4870 | done |
| 4871 | IFS=$as_save_IFS |
| 4872 | |
| 4873 | fi |
| 4874 | fi |
| 4875 | CC=$ac_cv_prog_CC |
| 4876 | if test -n "$CC"; then |
| 4877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 4878 | $as_echo "$CC" >&6; } |
| 4879 | else |
| 4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4881 | $as_echo "no" >&6; } |
| 4882 | fi |
| 4883 | |
| 4884 | |
| 4885 | test -n "$CC" && break |
| 4886 | done |
| 4887 | fi |
| 4888 | if test -z "$CC"; then |
| 4889 | ac_ct_CC=$CC |
| 4890 | for ac_prog in cl.exe |
| 4891 | do |
| 4892 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 4893 | set dummy $ac_prog; ac_word=$2 |
| 4894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 4895 | $as_echo_n "checking for $ac_word... " >&6; } |
| 4896 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 4897 | $as_echo_n "(cached) " >&6 |
| 4898 | else |
| 4899 | if test -n "$ac_ct_CC"; then |
| 4900 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 4901 | else |
| 4902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4903 | for as_dir in $PATH |
| 4904 | do |
| 4905 | IFS=$as_save_IFS |
| 4906 | test -z "$as_dir" && as_dir=. |
| 4907 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 4908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4909 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 4910 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 4911 | break 2 |
| 4912 | fi |
| 4913 | done |
| 4914 | done |
| 4915 | IFS=$as_save_IFS |
| 4916 | |
| 4917 | fi |
| 4918 | fi |
| 4919 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 4920 | if test -n "$ac_ct_CC"; then |
| 4921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 4922 | $as_echo "$ac_ct_CC" >&6; } |
| 4923 | else |
| 4924 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 4925 | $as_echo "no" >&6; } |
| 4926 | fi |
| 4927 | |
| 4928 | |
| 4929 | test -n "$ac_ct_CC" && break |
| 4930 | done |
| 4931 | |
| 4932 | if test "x$ac_ct_CC" = x; then |
| 4933 | CC="" |
| 4934 | else |
| 4935 | case $cross_compiling:$ac_tool_warned in |
| 4936 | yes:) |
| 4937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 4938 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4939 | ac_tool_warned=yes ;; |
| 4940 | esac |
| 4941 | CC=$ac_ct_CC |
| 4942 | fi |
| 4943 | fi |
| 4944 | |
| 4945 | fi |
| 4946 | |
| 4947 | |
| 4948 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 4949 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 4950 | as_fn_error "no acceptable C compiler found in \$PATH |
| 4951 | See \`config.log' for more details." "$LINENO" 5; } |
| 4952 | |
| 4953 | # Provide some information about the compiler. |
| 4954 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 4955 | set X $ac_compile |
| 4956 | ac_compiler=$2 |
| 4957 | for ac_option in --version -v -V -qversion; do |
| 4958 | { { ac_try="$ac_compiler $ac_option >&5" |
| 4959 | case "(($ac_try" in |
| 4960 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 4961 | *) ac_try_echo=$ac_try;; |
| 4962 | esac |
| 4963 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 4964 | $as_echo "$ac_try_echo"; } >&5 |
| 4965 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 4966 | ac_status=$? |
| 4967 | if test -s conftest.err; then |
| 4968 | sed '10a\ |
| 4969 | ... rest of stderr output deleted ... |
| 4970 | 10q' conftest.err >conftest.er1 |
| 4971 | cat conftest.er1 >&5 |
| 4972 | fi |
| 4973 | rm -f conftest.er1 conftest.err |
| 4974 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 4975 | test $ac_status = 0; } |
| 4976 | done |
| 4977 | |
| 4978 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4979 | /* end confdefs.h. */ |
| 4980 | |
| 4981 | int |
| 4982 | main () |
| 4983 | { |
| 4984 | |
| 4985 | ; |
| 4986 | return 0; |
| 4987 | } |
| 4988 | _ACEOF |
| 4989 | ac_clean_files_save=$ac_clean_files |
| 4990 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
| 4991 | # Try to create an executable without -o first, disregard a.out. |
| 4992 | # It will help us diagnose broken compilers, and finding out an intuition |
| 4993 | # of exeext. |
| 4994 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 4995 | $as_echo_n "checking whether the C compiler works... " >&6; } |
| 4996 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 4997 | |
| 4998 | # The possible output files: |
| 4999 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 5000 | |
| 5001 | ac_rmfiles= |
| 5002 | for ac_file in $ac_files |
| 5003 | do |
| 5004 | case $ac_file in |
| 5005 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 5006 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 5007 | esac |
| 5008 | done |
| 5009 | rm -f $ac_rmfiles |
| 5010 | |
| 5011 | if { { ac_try="$ac_link_default" |
| 5012 | case "(($ac_try" in |
| 5013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5014 | *) ac_try_echo=$ac_try;; |
| 5015 | esac |
| 5016 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5017 | $as_echo "$ac_try_echo"; } >&5 |
| 5018 | (eval "$ac_link_default") 2>&5 |
| 5019 | ac_status=$? |
| 5020 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5021 | test $ac_status = 0; }; then : |
| 5022 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 5023 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 5024 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 5025 | # so that the user can short-circuit this test for compilers unknown to |
| 5026 | # Autoconf. |
| 5027 | for ac_file in $ac_files '' |
| 5028 | do |
| 5029 | test -f "$ac_file" || continue |
| 5030 | case $ac_file in |
| 5031 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
| 5032 | ;; |
| 5033 | [ab].out ) |
| 5034 | # We found the default executable, but exeext='' is most |
| 5035 | # certainly right. |
| 5036 | break;; |
| 5037 | *.* ) |
| 5038 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
| 5039 | then :; else |
| 5040 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 5041 | fi |
| 5042 | # We set ac_cv_exeext here because the later test for it is not |
| 5043 | # safe: cross compilers may not add the suffix if given an `-o' |
| 5044 | # argument, so we may need to know it at that point already. |
| 5045 | # Even if this section looks crufty: it has the advantage of |
| 5046 | # actually working. |
| 5047 | break;; |
| 5048 | * ) |
| 5049 | break;; |
| 5050 | esac |
| 5051 | done |
| 5052 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 5053 | |
| 5054 | else |
| 5055 | ac_file='' |
| 5056 | fi |
| 5057 | if test -z "$ac_file"; then : |
| 5058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5059 | $as_echo "no" >&6; } |
| 5060 | $as_echo "$as_me: failed program was:" >&5 |
| 5061 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5062 | |
| 5063 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5064 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5065 | { as_fn_set_status 77 |
| 5066 | as_fn_error "C compiler cannot create executables |
| 5067 | See \`config.log' for more details." "$LINENO" 5; }; } |
| 5068 | else |
| 5069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5070 | $as_echo "yes" >&6; } |
| 5071 | fi |
| 5072 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 5073 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 5074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 5075 | $as_echo "$ac_file" >&6; } |
| 5076 | ac_exeext=$ac_cv_exeext |
| 5077 | |
| 5078 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
| 5079 | ac_clean_files=$ac_clean_files_save |
| 5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
| 5081 | $as_echo_n "checking for suffix of executables... " >&6; } |
| 5082 | if { { ac_try="$ac_link" |
| 5083 | case "(($ac_try" in |
| 5084 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5085 | *) ac_try_echo=$ac_try;; |
| 5086 | esac |
| 5087 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5088 | $as_echo "$ac_try_echo"; } >&5 |
| 5089 | (eval "$ac_link") 2>&5 |
| 5090 | ac_status=$? |
| 5091 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5092 | test $ac_status = 0; }; then : |
| 5093 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 5094 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 5095 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 5096 | # `rm'. |
| 5097 | for ac_file in conftest.exe conftest conftest.*; do |
| 5098 | test -f "$ac_file" || continue |
| 5099 | case $ac_file in |
| 5100 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
| 5101 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 5102 | break;; |
| 5103 | * ) break;; |
| 5104 | esac |
| 5105 | done |
| 5106 | else |
| 5107 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5108 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5109 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 5110 | See \`config.log' for more details." "$LINENO" 5; } |
| 5111 | fi |
| 5112 | rm -f conftest conftest$ac_cv_exeext |
| 5113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
| 5114 | $as_echo "$ac_cv_exeext" >&6; } |
| 5115 | |
| 5116 | rm -f conftest.$ac_ext |
| 5117 | EXEEXT=$ac_cv_exeext |
| 5118 | ac_exeext=$EXEEXT |
| 5119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5120 | /* end confdefs.h. */ |
| 5121 | #include <stdio.h> |
| 5122 | int |
| 5123 | main () |
| 5124 | { |
| 5125 | FILE *f = fopen ("conftest.out", "w"); |
| 5126 | return ferror (f) || fclose (f) != 0; |
| 5127 | |
| 5128 | ; |
| 5129 | return 0; |
| 5130 | } |
| 5131 | _ACEOF |
| 5132 | ac_clean_files="$ac_clean_files conftest.out" |
| 5133 | # Check that the compiler produces executables we can run. If not, either |
| 5134 | # the compiler is broken, or we cross compile. |
| 5135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 5136 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 5137 | if test "$cross_compiling" != yes; then |
| 5138 | { { ac_try="$ac_link" |
| 5139 | case "(($ac_try" in |
| 5140 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5141 | *) ac_try_echo=$ac_try;; |
| 5142 | esac |
| 5143 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5144 | $as_echo "$ac_try_echo"; } >&5 |
| 5145 | (eval "$ac_link") 2>&5 |
| 5146 | ac_status=$? |
| 5147 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5148 | test $ac_status = 0; } |
| 5149 | if { ac_try='./conftest$ac_cv_exeext' |
| 5150 | { { case "(($ac_try" in |
| 5151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5152 | *) ac_try_echo=$ac_try;; |
| 5153 | esac |
| 5154 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5155 | $as_echo "$ac_try_echo"; } >&5 |
| 5156 | (eval "$ac_try") 2>&5 |
| 5157 | ac_status=$? |
| 5158 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5159 | test $ac_status = 0; }; }; then |
| 5160 | cross_compiling=no |
| 5161 | else |
| 5162 | if test "$cross_compiling" = maybe; then |
| 5163 | cross_compiling=yes |
| 5164 | else |
| 5165 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5166 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5167 | as_fn_error "cannot run C compiled programs. |
| 5168 | If you meant to cross compile, use \`--host'. |
| 5169 | See \`config.log' for more details." "$LINENO" 5; } |
| 5170 | fi |
| 5171 | fi |
| 5172 | fi |
| 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 5174 | $as_echo "$cross_compiling" >&6; } |
| 5175 | |
| 5176 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 5177 | ac_clean_files=$ac_clean_files_save |
| 5178 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
| 5179 | $as_echo_n "checking for suffix of object files... " >&6; } |
| 5180 | if test "${ac_cv_objext+set}" = set; then : |
| 5181 | $as_echo_n "(cached) " >&6 |
| 5182 | else |
| 5183 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5184 | /* end confdefs.h. */ |
| 5185 | |
| 5186 | int |
| 5187 | main () |
| 5188 | { |
| 5189 | |
| 5190 | ; |
| 5191 | return 0; |
| 5192 | } |
| 5193 | _ACEOF |
| 5194 | rm -f conftest.o conftest.obj |
| 5195 | if { { ac_try="$ac_compile" |
| 5196 | case "(($ac_try" in |
| 5197 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5198 | *) ac_try_echo=$ac_try;; |
| 5199 | esac |
| 5200 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5201 | $as_echo "$ac_try_echo"; } >&5 |
| 5202 | (eval "$ac_compile") 2>&5 |
| 5203 | ac_status=$? |
| 5204 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5205 | test $ac_status = 0; }; then : |
| 5206 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 5207 | test -f "$ac_file" || continue; |
| 5208 | case $ac_file in |
| 5209 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
| 5210 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 5211 | break;; |
| 5212 | esac |
| 5213 | done |
| 5214 | else |
| 5215 | $as_echo "$as_me: failed program was:" >&5 |
| 5216 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 5217 | |
| 5218 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5219 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5220 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 5221 | See \`config.log' for more details." "$LINENO" 5; } |
| 5222 | fi |
| 5223 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 5224 | fi |
| 5225 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
| 5226 | $as_echo "$ac_cv_objext" >&6; } |
| 5227 | OBJEXT=$ac_cv_objext |
| 5228 | ac_objext=$OBJEXT |
| 5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 5230 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 5231 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 5232 | $as_echo_n "(cached) " >&6 |
| 5233 | else |
| 5234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5235 | /* end confdefs.h. */ |
| 5236 | |
| 5237 | int |
| 5238 | main () |
| 5239 | { |
| 5240 | #ifndef __GNUC__ |
| 5241 | choke me |
| 5242 | #endif |
| 5243 | |
| 5244 | ; |
| 5245 | return 0; |
| 5246 | } |
| 5247 | _ACEOF |
| 5248 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5249 | ac_compiler_gnu=yes |
| 5250 | else |
| 5251 | ac_compiler_gnu=no |
| 5252 | fi |
| 5253 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5254 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 5255 | |
| 5256 | fi |
| 5257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 5258 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 5259 | if test $ac_compiler_gnu = yes; then |
| 5260 | GCC=yes |
| 5261 | else |
| 5262 | GCC= |
| 5263 | fi |
| 5264 | ac_test_CFLAGS=${CFLAGS+set} |
| 5265 | ac_save_CFLAGS=$CFLAGS |
| 5266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 5267 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 5268 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 5269 | $as_echo_n "(cached) " >&6 |
| 5270 | else |
| 5271 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 5272 | ac_c_werror_flag=yes |
| 5273 | ac_cv_prog_cc_g=no |
| 5274 | CFLAGS="-g" |
| 5275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5276 | /* end confdefs.h. */ |
| 5277 | |
| 5278 | int |
| 5279 | main () |
| 5280 | { |
| 5281 | |
| 5282 | ; |
| 5283 | return 0; |
| 5284 | } |
| 5285 | _ACEOF |
| 5286 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5287 | ac_cv_prog_cc_g=yes |
| 5288 | else |
| 5289 | CFLAGS="" |
| 5290 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5291 | /* end confdefs.h. */ |
| 5292 | |
| 5293 | int |
| 5294 | main () |
| 5295 | { |
| 5296 | |
| 5297 | ; |
| 5298 | return 0; |
| 5299 | } |
| 5300 | _ACEOF |
| 5301 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5302 | |
| 5303 | else |
| 5304 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5305 | CFLAGS="-g" |
| 5306 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5307 | /* end confdefs.h. */ |
| 5308 | |
| 5309 | int |
| 5310 | main () |
| 5311 | { |
| 5312 | |
| 5313 | ; |
| 5314 | return 0; |
| 5315 | } |
| 5316 | _ACEOF |
| 5317 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5318 | ac_cv_prog_cc_g=yes |
| 5319 | fi |
| 5320 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5321 | fi |
| 5322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5323 | fi |
| 5324 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5325 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 5326 | fi |
| 5327 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 5328 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 5329 | if test "$ac_test_CFLAGS" = set; then |
| 5330 | CFLAGS=$ac_save_CFLAGS |
| 5331 | elif test $ac_cv_prog_cc_g = yes; then |
| 5332 | if test "$GCC" = yes; then |
| 5333 | CFLAGS="-g -O2" |
| 5334 | else |
| 5335 | CFLAGS="-g" |
| 5336 | fi |
| 5337 | else |
| 5338 | if test "$GCC" = yes; then |
| 5339 | CFLAGS="-O2" |
| 5340 | else |
| 5341 | CFLAGS= |
| 5342 | fi |
| 5343 | fi |
| 5344 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 5345 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 5346 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 5347 | $as_echo_n "(cached) " >&6 |
| 5348 | else |
| 5349 | ac_cv_prog_cc_c89=no |
| 5350 | ac_save_CC=$CC |
| 5351 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5352 | /* end confdefs.h. */ |
| 5353 | #include <stdarg.h> |
| 5354 | #include <stdio.h> |
| 5355 | #include <sys/types.h> |
| 5356 | #include <sys/stat.h> |
| 5357 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 5358 | struct buf { int x; }; |
| 5359 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 5360 | static char *e (p, i) |
| 5361 | char **p; |
| 5362 | int i; |
| 5363 | { |
| 5364 | return p[i]; |
| 5365 | } |
| 5366 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 5367 | { |
| 5368 | char *s; |
| 5369 | va_list v; |
| 5370 | va_start (v,p); |
| 5371 | s = g (p, va_arg (v,int)); |
| 5372 | va_end (v); |
| 5373 | return s; |
| 5374 | } |
| 5375 | |
| 5376 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 5377 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 5378 | These don't provoke an error unfortunately, instead are silently treated |
| 5379 | as 'x'. The following induces an error, until -std is added to get |
| 5380 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 5381 | array size at least. It's necessary to write '\x00'==0 to get something |
| 5382 | that's true only with -std. */ |
| 5383 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 5384 | |
| 5385 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 5386 | inside strings and character constants. */ |
| 5387 | #define FOO(x) 'x' |
| 5388 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 5389 | |
| 5390 | int test (int i, double x); |
| 5391 | struct s1 {int (*f) (int a);}; |
| 5392 | struct s2 {int (*f) (double a);}; |
| 5393 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 5394 | int argc; |
| 5395 | char **argv; |
| 5396 | int |
| 5397 | main () |
| 5398 | { |
| 5399 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 5400 | ; |
| 5401 | return 0; |
| 5402 | } |
| 5403 | _ACEOF |
| 5404 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 5405 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 5406 | do |
| 5407 | CC="$ac_save_CC $ac_arg" |
| 5408 | if ac_fn_c_try_compile "$LINENO"; then : |
| 5409 | ac_cv_prog_cc_c89=$ac_arg |
| 5410 | fi |
| 5411 | rm -f core conftest.err conftest.$ac_objext |
| 5412 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 5413 | done |
| 5414 | rm -f conftest.$ac_ext |
| 5415 | CC=$ac_save_CC |
| 5416 | |
| 5417 | fi |
| 5418 | # AC_CACHE_VAL |
| 5419 | case "x$ac_cv_prog_cc_c89" in |
| 5420 | x) |
| 5421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 5422 | $as_echo "none needed" >&6; } ;; |
| 5423 | xno) |
| 5424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 5425 | $as_echo "unsupported" >&6; } ;; |
| 5426 | *) |
| 5427 | CC="$CC $ac_cv_prog_cc_c89" |
| 5428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 5429 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 5430 | esac |
| 5431 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 5432 | |
| 5433 | fi |
| 5434 | |
| 5435 | ac_ext=c |
| 5436 | ac_cpp='$CPP $CPPFLAGS' |
| 5437 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5438 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5439 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5440 | DEPDIR="${am__leading_dot}deps" |
| 5441 | |
| 5442 | ac_config_commands="$ac_config_commands depfiles" |
| 5443 | |
| 5444 | |
| 5445 | am_make=${MAKE-make} |
| 5446 | cat > confinc << 'END' |
| 5447 | am__doit: |
| 5448 | @echo this is the am__doit target |
| 5449 | .PHONY: am__doit |
| 5450 | END |
| 5451 | # If we don't find an include directive, just comment out the code. |
| 5452 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 |
| 5453 | $as_echo_n "checking for style of include used by $am_make... " >&6; } |
| 5454 | am__include="#" |
| 5455 | am__quote= |
| 5456 | _am_result=none |
| 5457 | # First try GNU make style include. |
| 5458 | echo "include confinc" > confmf |
| 5459 | # Ignore all kinds of additional output from `make'. |
| 5460 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 5461 | *the\ am__doit\ target*) |
| 5462 | am__include=include |
| 5463 | am__quote= |
| 5464 | _am_result=GNU |
| 5465 | ;; |
| 5466 | esac |
| 5467 | # Now try BSD make style include. |
| 5468 | if test "$am__include" = "#"; then |
| 5469 | echo '.include "confinc"' > confmf |
| 5470 | case `$am_make -s -f confmf 2> /dev/null` in #( |
| 5471 | *the\ am__doit\ target*) |
| 5472 | am__include=.include |
| 5473 | am__quote="\"" |
| 5474 | _am_result=BSD |
| 5475 | ;; |
| 5476 | esac |
| 5477 | fi |
| 5478 | |
| 5479 | |
| 5480 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 |
| 5481 | $as_echo "$_am_result" >&6; } |
| 5482 | rm -f confinc confmf |
| 5483 | |
| 5484 | # Check whether --enable-dependency-tracking was given. |
| 5485 | if test "${enable_dependency_tracking+set}" = set; then : |
| 5486 | enableval=$enable_dependency_tracking; |
| 5487 | fi |
| 5488 | |
| 5489 | if test "x$enable_dependency_tracking" != xno; then |
| 5490 | am_depcomp="$ac_aux_dir/depcomp" |
| 5491 | AMDEPBACKSLASH='\' |
| 5492 | fi |
| 5493 | if test "x$enable_dependency_tracking" != xno; then |
| 5494 | AMDEP_TRUE= |
| 5495 | AMDEP_FALSE='#' |
| 5496 | else |
| 5497 | AMDEP_TRUE='#' |
| 5498 | AMDEP_FALSE= |
| 5499 | fi |
| 5500 | |
| 5501 | |
| 5502 | |
| 5503 | depcc="$CC" am_compiler_list= |
| 5504 | |
| 5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
| 5506 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
| 5507 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : |
| 5508 | $as_echo_n "(cached) " >&6 |
| 5509 | else |
| 5510 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
| 5511 | # We make a subdir and do the tests there. Otherwise we can end up |
| 5512 | # making bogus files that we don't know about and never remove. For |
| 5513 | # instance it was reported that on HP-UX the gcc test will end up |
| 5514 | # making a dummy file named `D' -- because `-MD' means `put the output |
| 5515 | # in D'. |
| 5516 | mkdir conftest.dir |
| 5517 | # Copy depcomp to subdir because otherwise we won't find it if we're |
| 5518 | # using a relative directory. |
| 5519 | cp "$am_depcomp" conftest.dir |
| 5520 | cd conftest.dir |
| 5521 | # We will build objects and dependencies in a subdirectory because |
| 5522 | # it helps to detect inapplicable dependency modes. For instance |
| 5523 | # both Tru64's cc and ICC support -MD to output dependencies as a |
| 5524 | # side effect of compilation, but ICC will put the dependencies in |
| 5525 | # the current directory while Tru64 will put them in the object |
| 5526 | # directory. |
| 5527 | mkdir sub |
| 5528 | |
| 5529 | am_cv_CC_dependencies_compiler_type=none |
| 5530 | if test "$am_compiler_list" = ""; then |
| 5531 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
| 5532 | fi |
| 5533 | am__universal=false |
| 5534 | case " $depcc " in #( |
| 5535 | *\ -arch\ *\ -arch\ *) am__universal=true ;; |
| 5536 | esac |
| 5537 | |
| 5538 | for depmode in $am_compiler_list; do |
| 5539 | # Setup a source with many dependencies, because some compilers |
| 5540 | # like to wrap large dependency lists on column 80 (with \), and |
| 5541 | # we should not choose a depcomp mode which is confused by this. |
| 5542 | # |
| 5543 | # We need to recreate these files for each test, as the compiler may |
| 5544 | # overwrite some of them when testing with obscure command lines. |
| 5545 | # This happens at least with the AIX C compiler. |
| 5546 | : > sub/conftest.c |
| 5547 | for i in 1 2 3 4 5 6; do |
| 5548 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
| 5549 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
| 5550 | # Solaris 8's {/usr,}/bin/sh. |
| 5551 | touch sub/conftst$i.h |
| 5552 | done |
| 5553 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
| 5554 | |
| 5555 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
| 5556 | # mode. It turns out that the SunPro C++ compiler does not properly |
| 5557 | # handle `-M -o', and we need to detect this. Also, some Intel |
| 5558 | # versions had trouble with output in subdirs |
| 5559 | am__obj=sub/conftest.${OBJEXT-o} |
| 5560 | am__minus_obj="-o $am__obj" |
| 5561 | case $depmode in |
| 5562 | gcc) |
| 5563 | # This depmode causes a compiler race in universal mode. |
| 5564 | test "$am__universal" = false || continue |
| 5565 | ;; |
| 5566 | nosideeffect) |
| 5567 | # after this tag, mechanisms are not by side-effect, so they'll |
| 5568 | # only be used when explicitly requested |
| 5569 | if test "x$enable_dependency_tracking" = xyes; then |
| 5570 | continue |
| 5571 | else |
| 5572 | break |
| 5573 | fi |
| 5574 | ;; |
| 5575 | msvisualcpp | msvcmsys) |
| 5576 | # This compiler won't grok `-c -o', but also, the minuso test has |
| 5577 | # not run yet. These depmodes are late enough in the game, and |
| 5578 | # so weak that their functioning should not be impacted. |
| 5579 | am__obj=conftest.${OBJEXT-o} |
| 5580 | am__minus_obj= |
| 5581 | ;; |
| 5582 | none) break ;; |
| 5583 | esac |
| 5584 | if depmode=$depmode \ |
| 5585 | source=sub/conftest.c object=$am__obj \ |
| 5586 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
| 5587 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ |
| 5588 | >/dev/null 2>conftest.err && |
| 5589 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
| 5590 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
| 5591 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && |
| 5592 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
| 5593 | # icc doesn't choke on unknown options, it will just issue warnings |
| 5594 | # or remarks (even with -Werror). So we grep stderr for any message |
| 5595 | # that says an option was ignored or not supported. |
| 5596 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
| 5597 | # icc: Command line warning: ignoring option '-M'; no argument required |
| 5598 | # The diagnosis changed in icc 8.0: |
| 5599 | # icc: Command line remark: option '-MP' not supported |
| 5600 | if (grep 'ignoring option' conftest.err || |
| 5601 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
| 5602 | am_cv_CC_dependencies_compiler_type=$depmode |
| 5603 | break |
| 5604 | fi |
| 5605 | fi |
| 5606 | done |
| 5607 | |
| 5608 | cd .. |
| 5609 | rm -rf conftest.dir |
| 5610 | else |
| 5611 | am_cv_CC_dependencies_compiler_type=none |
| 5612 | fi |
| 5613 | |
| 5614 | fi |
| 5615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 |
| 5616 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } |
| 5617 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
| 5618 | |
| 5619 | if |
| 5620 | test "x$enable_dependency_tracking" != xno \ |
| 5621 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
| 5622 | am__fastdepCC_TRUE= |
| 5623 | am__fastdepCC_FALSE='#' |
| 5624 | else |
| 5625 | am__fastdepCC_TRUE='#' |
| 5626 | am__fastdepCC_FALSE= |
| 5627 | fi |
| 5628 | |
| 5629 | |
| 5630 | if test "x$CC" != xcc; then |
| 5631 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 |
| 5632 | $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } |
| 5633 | else |
| 5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 |
| 5635 | $as_echo_n "checking whether cc understands -c and -o together... " >&6; } |
| 5636 | fi |
| 5637 | set dummy $CC; ac_cc=`$as_echo "$2" | |
| 5638 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 5639 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 5640 | $as_echo_n "(cached) " >&6 |
| 5641 | else |
| 5642 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5643 | /* end confdefs.h. */ |
| 5644 | |
| 5645 | int |
| 5646 | main () |
| 5647 | { |
| 5648 | |
| 5649 | ; |
| 5650 | return 0; |
| 5651 | } |
| 5652 | _ACEOF |
| 5653 | # Make sure it works both with $CC and with simple cc. |
| 5654 | # We do the test twice because some compilers refuse to overwrite an |
| 5655 | # existing .o file with -o, though they will create one. |
| 5656 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 5657 | rm -f conftest2.* |
| 5658 | if { { case "(($ac_try" in |
| 5659 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5660 | *) ac_try_echo=$ac_try;; |
| 5661 | esac |
| 5662 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5663 | $as_echo "$ac_try_echo"; } >&5 |
| 5664 | (eval "$ac_try") 2>&5 |
| 5665 | ac_status=$? |
| 5666 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5667 | test $ac_status = 0; } && |
| 5668 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 5669 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5670 | *) ac_try_echo=$ac_try;; |
| 5671 | esac |
| 5672 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5673 | $as_echo "$ac_try_echo"; } >&5 |
| 5674 | (eval "$ac_try") 2>&5 |
| 5675 | ac_status=$? |
| 5676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5677 | test $ac_status = 0; }; |
| 5678 | then |
| 5679 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
| 5680 | if test "x$CC" != xcc; then |
| 5681 | # Test first that cc exists at all. |
| 5682 | if { ac_try='cc -c conftest.$ac_ext >&5' |
| 5683 | { { case "(($ac_try" in |
| 5684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5685 | *) ac_try_echo=$ac_try;; |
| 5686 | esac |
| 5687 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5688 | $as_echo "$ac_try_echo"; } >&5 |
| 5689 | (eval "$ac_try") 2>&5 |
| 5690 | ac_status=$? |
| 5691 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5692 | test $ac_status = 0; }; }; then |
| 5693 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
| 5694 | rm -f conftest2.* |
| 5695 | if { { case "(($ac_try" in |
| 5696 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5697 | *) ac_try_echo=$ac_try;; |
| 5698 | esac |
| 5699 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5700 | $as_echo "$ac_try_echo"; } >&5 |
| 5701 | (eval "$ac_try") 2>&5 |
| 5702 | ac_status=$? |
| 5703 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5704 | test $ac_status = 0; } && |
| 5705 | test -f conftest2.$ac_objext && { { case "(($ac_try" in |
| 5706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 5707 | *) ac_try_echo=$ac_try;; |
| 5708 | esac |
| 5709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 5710 | $as_echo "$ac_try_echo"; } >&5 |
| 5711 | (eval "$ac_try") 2>&5 |
| 5712 | ac_status=$? |
| 5713 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 5714 | test $ac_status = 0; }; |
| 5715 | then |
| 5716 | # cc works too. |
| 5717 | : |
| 5718 | else |
| 5719 | # cc exists but doesn't like -o. |
| 5720 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 5721 | fi |
| 5722 | fi |
| 5723 | fi |
| 5724 | else |
| 5725 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
| 5726 | fi |
| 5727 | rm -f core conftest* |
| 5728 | |
| 5729 | fi |
| 5730 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
| 5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5732 | $as_echo "yes" >&6; } |
| 5733 | else |
| 5734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5735 | $as_echo "no" >&6; } |
| 5736 | |
| 5737 | $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h |
| 5738 | |
| 5739 | fi |
| 5740 | |
| 5741 | # FIXME: we rely on the cache variable name because |
| 5742 | # there is no other way. |
| 5743 | set dummy $CC |
| 5744 | am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
| 5745 | eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o |
| 5746 | if test "$am_t" != yes; then |
| 5747 | # Losing compiler, so override with the script. |
| 5748 | # FIXME: It is wrong to rewrite CC. |
| 5749 | # But if we don't then we get into trouble of one sort or another. |
| 5750 | # A longer-term fix would be to have automake use am__CC in this case, |
| 5751 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
| 5752 | CC="$am_aux_dir/compile $CC" |
| 5753 | fi |
| 5754 | |
| 5755 | |
| 5756 | |
| 5757 | if test x$GCC = xyes; then |
| 5758 | test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS" |
| 5759 | else |
| 5760 | test "x$NON_GCC_TEST_OPTIONS" != x && CC="$CC $NON_GCC_TEST_OPTIONS" |
| 5761 | fi |
| 5762 | |
| 5763 | # Avoid gnulib's tests for O_NOATIME and O_NOFOLLOW, as we don't use them. |
| 5764 | |
| 5765 | # Avoid gnulib's threadlib module, as we do threads our own way. |
| 5766 | |
| 5767 | |
| 5768 | # Initialize gnulib right after choosing the compiler. |
| 5769 | |
| 5770 | ac_ext=c |
| 5771 | ac_cpp='$CPP $CPPFLAGS' |
| 5772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
| 5776 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
| 5777 | # On Suns, sometimes $CPP names a directory. |
| 5778 | if test -n "$CPP" && test -d "$CPP"; then |
| 5779 | CPP= |
| 5780 | fi |
| 5781 | if test -z "$CPP"; then |
| 5782 | if test "${ac_cv_prog_CPP+set}" = set; then : |
| 5783 | $as_echo_n "(cached) " >&6 |
| 5784 | else |
| 5785 | # Double quotes because CPP needs to be expanded |
| 5786 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 5787 | do |
| 5788 | ac_preproc_ok=false |
| 5789 | for ac_c_preproc_warn_flag in '' yes |
| 5790 | do |
| 5791 | # Use a header file that comes with gcc, so configuring glibc |
| 5792 | # with a fresh cross-compiler works. |
| 5793 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5794 | # <limits.h> exists even on freestanding compilers. |
| 5795 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5796 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5797 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5798 | /* end confdefs.h. */ |
| 5799 | #ifdef __STDC__ |
| 5800 | # include <limits.h> |
| 5801 | #else |
| 5802 | # include <assert.h> |
| 5803 | #endif |
| 5804 | Syntax error |
| 5805 | _ACEOF |
| 5806 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5807 | |
| 5808 | else |
| 5809 | # Broken: fails on valid input. |
| 5810 | continue |
| 5811 | fi |
| 5812 | rm -f conftest.err conftest.$ac_ext |
| 5813 | |
| 5814 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5815 | # can be detected and how. |
| 5816 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5817 | /* end confdefs.h. */ |
| 5818 | #include <ac_nonexistent.h> |
| 5819 | _ACEOF |
| 5820 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5821 | # Broken: success on invalid input. |
| 5822 | continue |
| 5823 | else |
| 5824 | # Passes both tests. |
| 5825 | ac_preproc_ok=: |
| 5826 | break |
| 5827 | fi |
| 5828 | rm -f conftest.err conftest.$ac_ext |
| 5829 | |
| 5830 | done |
| 5831 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5832 | rm -f conftest.err conftest.$ac_ext |
| 5833 | if $ac_preproc_ok; then : |
| 5834 | break |
| 5835 | fi |
| 5836 | |
| 5837 | done |
| 5838 | ac_cv_prog_CPP=$CPP |
| 5839 | |
| 5840 | fi |
| 5841 | CPP=$ac_cv_prog_CPP |
| 5842 | else |
| 5843 | ac_cv_prog_CPP=$CPP |
| 5844 | fi |
| 5845 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
| 5846 | $as_echo "$CPP" >&6; } |
| 5847 | ac_preproc_ok=false |
| 5848 | for ac_c_preproc_warn_flag in '' yes |
| 5849 | do |
| 5850 | # Use a header file that comes with gcc, so configuring glibc |
| 5851 | # with a fresh cross-compiler works. |
| 5852 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 5853 | # <limits.h> exists even on freestanding compilers. |
| 5854 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 5855 | # not just through cpp. "Syntax error" is here to catch this case. |
| 5856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5857 | /* end confdefs.h. */ |
| 5858 | #ifdef __STDC__ |
| 5859 | # include <limits.h> |
| 5860 | #else |
| 5861 | # include <assert.h> |
| 5862 | #endif |
| 5863 | Syntax error |
| 5864 | _ACEOF |
| 5865 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5866 | |
| 5867 | else |
| 5868 | # Broken: fails on valid input. |
| 5869 | continue |
| 5870 | fi |
| 5871 | rm -f conftest.err conftest.$ac_ext |
| 5872 | |
| 5873 | # OK, works on sane cases. Now check whether nonexistent headers |
| 5874 | # can be detected and how. |
| 5875 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 5876 | /* end confdefs.h. */ |
| 5877 | #include <ac_nonexistent.h> |
| 5878 | _ACEOF |
| 5879 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 5880 | # Broken: success on invalid input. |
| 5881 | continue |
| 5882 | else |
| 5883 | # Passes both tests. |
| 5884 | ac_preproc_ok=: |
| 5885 | break |
| 5886 | fi |
| 5887 | rm -f conftest.err conftest.$ac_ext |
| 5888 | |
| 5889 | done |
| 5890 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 5891 | rm -f conftest.err conftest.$ac_ext |
| 5892 | if $ac_preproc_ok; then : |
| 5893 | |
| 5894 | else |
| 5895 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 5896 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 5897 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 5898 | See \`config.log' for more details." "$LINENO" 5; } |
| 5899 | fi |
| 5900 | |
| 5901 | ac_ext=c |
| 5902 | ac_cpp='$CPP $CPPFLAGS' |
| 5903 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 5904 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 5905 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 5906 | |
| 5907 | |
| 5908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 5909 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 5910 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 5911 | $as_echo_n "(cached) " >&6 |
| 5912 | else |
| 5913 | if test -z "$GREP"; then |
| 5914 | ac_path_GREP_found=false |
| 5915 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5917 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5918 | do |
| 5919 | IFS=$as_save_IFS |
| 5920 | test -z "$as_dir" && as_dir=. |
| 5921 | for ac_prog in grep ggrep; do |
| 5922 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5923 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5924 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 5925 | # Check for GNU ac_path_GREP and select it if it is found. |
| 5926 | # Check for GNU $ac_path_GREP |
| 5927 | case `"$ac_path_GREP" --version 2>&1` in |
| 5928 | *GNU*) |
| 5929 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 5930 | *) |
| 5931 | ac_count=0 |
| 5932 | $as_echo_n 0123456789 >"conftest.in" |
| 5933 | while : |
| 5934 | do |
| 5935 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 5936 | mv "conftest.tmp" "conftest.in" |
| 5937 | cp "conftest.in" "conftest.nl" |
| 5938 | $as_echo 'GREP' >> "conftest.nl" |
| 5939 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 5940 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 5941 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 5942 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 5943 | # Best one so far, save it but keep looking for a better one |
| 5944 | ac_cv_path_GREP="$ac_path_GREP" |
| 5945 | ac_path_GREP_max=$ac_count |
| 5946 | fi |
| 5947 | # 10*(2^10) chars as input seems more than enough |
| 5948 | test $ac_count -gt 10 && break |
| 5949 | done |
| 5950 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 5951 | esac |
| 5952 | |
| 5953 | $ac_path_GREP_found && break 3 |
| 5954 | done |
| 5955 | done |
| 5956 | done |
| 5957 | IFS=$as_save_IFS |
| 5958 | if test -z "$ac_cv_path_GREP"; then |
| 5959 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 5960 | fi |
| 5961 | else |
| 5962 | ac_cv_path_GREP=$GREP |
| 5963 | fi |
| 5964 | |
| 5965 | fi |
| 5966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 5967 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 5968 | GREP="$ac_cv_path_GREP" |
| 5969 | |
| 5970 | |
| 5971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 5972 | $as_echo_n "checking for egrep... " >&6; } |
| 5973 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 5974 | $as_echo_n "(cached) " >&6 |
| 5975 | else |
| 5976 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 5977 | then ac_cv_path_EGREP="$GREP -E" |
| 5978 | else |
| 5979 | if test -z "$EGREP"; then |
| 5980 | ac_path_EGREP_found=false |
| 5981 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 5982 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5983 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 5984 | do |
| 5985 | IFS=$as_save_IFS |
| 5986 | test -z "$as_dir" && as_dir=. |
| 5987 | for ac_prog in egrep; do |
| 5988 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5989 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 5990 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 5991 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 5992 | # Check for GNU $ac_path_EGREP |
| 5993 | case `"$ac_path_EGREP" --version 2>&1` in |
| 5994 | *GNU*) |
| 5995 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 5996 | *) |
| 5997 | ac_count=0 |
| 5998 | $as_echo_n 0123456789 >"conftest.in" |
| 5999 | while : |
| 6000 | do |
| 6001 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6002 | mv "conftest.tmp" "conftest.in" |
| 6003 | cp "conftest.in" "conftest.nl" |
| 6004 | $as_echo 'EGREP' >> "conftest.nl" |
| 6005 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6006 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6007 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6008 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6009 | # Best one so far, save it but keep looking for a better one |
| 6010 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6011 | ac_path_EGREP_max=$ac_count |
| 6012 | fi |
| 6013 | # 10*(2^10) chars as input seems more than enough |
| 6014 | test $ac_count -gt 10 && break |
| 6015 | done |
| 6016 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6017 | esac |
| 6018 | |
| 6019 | $ac_path_EGREP_found && break 3 |
| 6020 | done |
| 6021 | done |
| 6022 | done |
| 6023 | IFS=$as_save_IFS |
| 6024 | if test -z "$ac_cv_path_EGREP"; then |
| 6025 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6026 | fi |
| 6027 | else |
| 6028 | ac_cv_path_EGREP=$EGREP |
| 6029 | fi |
| 6030 | |
| 6031 | fi |
| 6032 | fi |
| 6033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6034 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6035 | EGREP="$ac_cv_path_EGREP" |
| 6036 | |
| 6037 | |
| 6038 | |
| 6039 | |
| 6040 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5 |
| 6041 | $as_echo_n "checking for Minix Amsterdam compiler... " >&6; } |
| 6042 | if test "${gl_cv_c_amsterdam_compiler+set}" = set; then : |
| 6043 | $as_echo_n "(cached) " >&6 |
| 6044 | else |
| 6045 | |
| 6046 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6047 | /* end confdefs.h. */ |
| 6048 | |
| 6049 | #ifdef __ACK__ |
| 6050 | Amsterdam |
| 6051 | #endif |
| 6052 | |
| 6053 | _ACEOF |
| 6054 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6055 | $EGREP "Amsterdam" >/dev/null 2>&1; then : |
| 6056 | gl_cv_c_amsterdam_compiler=yes |
| 6057 | else |
| 6058 | gl_cv_c_amsterdam_compiler=no |
| 6059 | fi |
| 6060 | rm -f conftest* |
| 6061 | |
| 6062 | |
| 6063 | fi |
| 6064 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5 |
| 6065 | $as_echo "$gl_cv_c_amsterdam_compiler" >&6; } |
| 6066 | if test -z "$AR"; then |
| 6067 | if test $gl_cv_c_amsterdam_compiler = yes; then |
| 6068 | AR='cc -c.a' |
| 6069 | if test -z "$ARFLAGS"; then |
| 6070 | ARFLAGS='-o' |
| 6071 | fi |
| 6072 | else |
| 6073 | if test -n "$ac_tool_prefix"; then |
| 6074 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
| 6075 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
| 6076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6077 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6078 | if test "${ac_cv_prog_AR+set}" = set; then : |
| 6079 | $as_echo_n "(cached) " >&6 |
| 6080 | else |
| 6081 | if test -n "$AR"; then |
| 6082 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 6083 | else |
| 6084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6085 | for as_dir in $PATH |
| 6086 | do |
| 6087 | IFS=$as_save_IFS |
| 6088 | test -z "$as_dir" && as_dir=. |
| 6089 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6091 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
| 6092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6093 | break 2 |
| 6094 | fi |
| 6095 | done |
| 6096 | done |
| 6097 | IFS=$as_save_IFS |
| 6098 | |
| 6099 | fi |
| 6100 | fi |
| 6101 | AR=$ac_cv_prog_AR |
| 6102 | if test -n "$AR"; then |
| 6103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
| 6104 | $as_echo "$AR" >&6; } |
| 6105 | else |
| 6106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6107 | $as_echo "no" >&6; } |
| 6108 | fi |
| 6109 | |
| 6110 | |
| 6111 | fi |
| 6112 | if test -z "$ac_cv_prog_AR"; then |
| 6113 | ac_ct_AR=$AR |
| 6114 | # Extract the first word of "ar", so it can be a program name with args. |
| 6115 | set dummy ar; ac_word=$2 |
| 6116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6117 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6118 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
| 6119 | $as_echo_n "(cached) " >&6 |
| 6120 | else |
| 6121 | if test -n "$ac_ct_AR"; then |
| 6122 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
| 6123 | else |
| 6124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6125 | for as_dir in $PATH |
| 6126 | do |
| 6127 | IFS=$as_save_IFS |
| 6128 | test -z "$as_dir" && as_dir=. |
| 6129 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6131 | ac_cv_prog_ac_ct_AR="ar" |
| 6132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6133 | break 2 |
| 6134 | fi |
| 6135 | done |
| 6136 | done |
| 6137 | IFS=$as_save_IFS |
| 6138 | |
| 6139 | fi |
| 6140 | fi |
| 6141 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 6142 | if test -n "$ac_ct_AR"; then |
| 6143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
| 6144 | $as_echo "$ac_ct_AR" >&6; } |
| 6145 | else |
| 6146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6147 | $as_echo "no" >&6; } |
| 6148 | fi |
| 6149 | |
| 6150 | if test "x$ac_ct_AR" = x; then |
| 6151 | AR="ar" |
| 6152 | else |
| 6153 | case $cross_compiling:$ac_tool_warned in |
| 6154 | yes:) |
| 6155 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6156 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6157 | ac_tool_warned=yes ;; |
| 6158 | esac |
| 6159 | AR=$ac_ct_AR |
| 6160 | fi |
| 6161 | else |
| 6162 | AR="$ac_cv_prog_AR" |
| 6163 | fi |
| 6164 | |
| 6165 | if test -z "$ARFLAGS"; then |
| 6166 | ARFLAGS='cru' |
| 6167 | fi |
| 6168 | fi |
| 6169 | else |
| 6170 | if test -z "$ARFLAGS"; then |
| 6171 | ARFLAGS='cru' |
| 6172 | fi |
| 6173 | fi |
| 6174 | |
| 6175 | |
| 6176 | if test -z "$RANLIB"; then |
| 6177 | if test $gl_cv_c_amsterdam_compiler = yes; then |
| 6178 | RANLIB=':' |
| 6179 | else |
| 6180 | if test -n "$ac_tool_prefix"; then |
| 6181 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 6182 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
| 6183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6184 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6185 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
| 6186 | $as_echo_n "(cached) " >&6 |
| 6187 | else |
| 6188 | if test -n "$RANLIB"; then |
| 6189 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 6190 | else |
| 6191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6192 | for as_dir in $PATH |
| 6193 | do |
| 6194 | IFS=$as_save_IFS |
| 6195 | test -z "$as_dir" && as_dir=. |
| 6196 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6197 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6198 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
| 6199 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6200 | break 2 |
| 6201 | fi |
| 6202 | done |
| 6203 | done |
| 6204 | IFS=$as_save_IFS |
| 6205 | |
| 6206 | fi |
| 6207 | fi |
| 6208 | RANLIB=$ac_cv_prog_RANLIB |
| 6209 | if test -n "$RANLIB"; then |
| 6210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
| 6211 | $as_echo "$RANLIB" >&6; } |
| 6212 | else |
| 6213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6214 | $as_echo "no" >&6; } |
| 6215 | fi |
| 6216 | |
| 6217 | |
| 6218 | fi |
| 6219 | if test -z "$ac_cv_prog_RANLIB"; then |
| 6220 | ac_ct_RANLIB=$RANLIB |
| 6221 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 6222 | set dummy ranlib; ac_word=$2 |
| 6223 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 6224 | $as_echo_n "checking for $ac_word... " >&6; } |
| 6225 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
| 6226 | $as_echo_n "(cached) " >&6 |
| 6227 | else |
| 6228 | if test -n "$ac_ct_RANLIB"; then |
| 6229 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 6230 | else |
| 6231 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6232 | for as_dir in $PATH |
| 6233 | do |
| 6234 | IFS=$as_save_IFS |
| 6235 | test -z "$as_dir" && as_dir=. |
| 6236 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6237 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 6238 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
| 6239 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 6240 | break 2 |
| 6241 | fi |
| 6242 | done |
| 6243 | done |
| 6244 | IFS=$as_save_IFS |
| 6245 | |
| 6246 | fi |
| 6247 | fi |
| 6248 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6249 | if test -n "$ac_ct_RANLIB"; then |
| 6250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
| 6251 | $as_echo "$ac_ct_RANLIB" >&6; } |
| 6252 | else |
| 6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 6254 | $as_echo "no" >&6; } |
| 6255 | fi |
| 6256 | |
| 6257 | if test "x$ac_ct_RANLIB" = x; then |
| 6258 | RANLIB=":" |
| 6259 | else |
| 6260 | case $cross_compiling:$ac_tool_warned in |
| 6261 | yes:) |
| 6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 6263 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 6264 | ac_tool_warned=yes ;; |
| 6265 | esac |
| 6266 | RANLIB=$ac_ct_RANLIB |
| 6267 | fi |
| 6268 | else |
| 6269 | RANLIB="$ac_cv_prog_RANLIB" |
| 6270 | fi |
| 6271 | |
| 6272 | fi |
| 6273 | fi |
| 6274 | |
| 6275 | |
| 6276 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6277 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6278 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 6279 | $as_echo_n "(cached) " >&6 |
| 6280 | else |
| 6281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6282 | /* end confdefs.h. */ |
| 6283 | #include <stdlib.h> |
| 6284 | #include <stdarg.h> |
| 6285 | #include <string.h> |
| 6286 | #include <float.h> |
| 6287 | |
| 6288 | int |
| 6289 | main () |
| 6290 | { |
| 6291 | |
| 6292 | ; |
| 6293 | return 0; |
| 6294 | } |
| 6295 | _ACEOF |
| 6296 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6297 | ac_cv_header_stdc=yes |
| 6298 | else |
| 6299 | ac_cv_header_stdc=no |
| 6300 | fi |
| 6301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6302 | |
| 6303 | if test $ac_cv_header_stdc = yes; then |
| 6304 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6306 | /* end confdefs.h. */ |
| 6307 | #include <string.h> |
| 6308 | |
| 6309 | _ACEOF |
| 6310 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6311 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6312 | |
| 6313 | else |
| 6314 | ac_cv_header_stdc=no |
| 6315 | fi |
| 6316 | rm -f conftest* |
| 6317 | |
| 6318 | fi |
| 6319 | |
| 6320 | if test $ac_cv_header_stdc = yes; then |
| 6321 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6323 | /* end confdefs.h. */ |
| 6324 | #include <stdlib.h> |
| 6325 | |
| 6326 | _ACEOF |
| 6327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6328 | $EGREP "free" >/dev/null 2>&1; then : |
| 6329 | |
| 6330 | else |
| 6331 | ac_cv_header_stdc=no |
| 6332 | fi |
| 6333 | rm -f conftest* |
| 6334 | |
| 6335 | fi |
| 6336 | |
| 6337 | if test $ac_cv_header_stdc = yes; then |
| 6338 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6339 | if test "$cross_compiling" = yes; then : |
| 6340 | : |
| 6341 | else |
| 6342 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6343 | /* end confdefs.h. */ |
| 6344 | #include <ctype.h> |
| 6345 | #include <stdlib.h> |
| 6346 | #if ((' ' & 0x0FF) == 0x020) |
| 6347 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6348 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6349 | #else |
| 6350 | # define ISLOWER(c) \ |
| 6351 | (('a' <= (c) && (c) <= 'i') \ |
| 6352 | || ('j' <= (c) && (c) <= 'r') \ |
| 6353 | || ('s' <= (c) && (c) <= 'z')) |
| 6354 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6355 | #endif |
| 6356 | |
| 6357 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6358 | int |
| 6359 | main () |
| 6360 | { |
| 6361 | int i; |
| 6362 | for (i = 0; i < 256; i++) |
| 6363 | if (XOR (islower (i), ISLOWER (i)) |
| 6364 | || toupper (i) != TOUPPER (i)) |
| 6365 | return 2; |
| 6366 | return 0; |
| 6367 | } |
| 6368 | _ACEOF |
| 6369 | if ac_fn_c_try_run "$LINENO"; then : |
| 6370 | |
| 6371 | else |
| 6372 | ac_cv_header_stdc=no |
| 6373 | fi |
| 6374 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6375 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6376 | fi |
| 6377 | |
| 6378 | fi |
| 6379 | fi |
| 6380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6381 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6382 | if test $ac_cv_header_stdc = yes; then |
| 6383 | |
| 6384 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6385 | |
| 6386 | fi |
| 6387 | |
| 6388 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6389 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6390 | inttypes.h stdint.h unistd.h |
| 6391 | do : |
| 6392 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6393 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6394 | " |
| 6395 | eval as_val=\$$as_ac_Header |
| 6396 | if test "x$as_val" = x""yes; then : |
| 6397 | cat >>confdefs.h <<_ACEOF |
| 6398 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6399 | _ACEOF |
| 6400 | |
| 6401 | fi |
| 6402 | |
| 6403 | done |
| 6404 | |
| 6405 | |
| 6406 | |
| 6407 | |
| 6408 | |
| 6409 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
| 6410 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : |
| 6411 | MINIX=yes |
| 6412 | else |
| 6413 | MINIX= |
| 6414 | fi |
| 6415 | |
| 6416 | |
| 6417 | if test "$MINIX" = yes; then |
| 6418 | |
| 6419 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
| 6420 | |
| 6421 | |
| 6422 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
| 6423 | |
| 6424 | |
| 6425 | $as_echo "#define _MINIX 1" >>confdefs.h |
| 6426 | |
| 6427 | fi |
| 6428 | |
| 6429 | case "$host_os" in |
| 6430 | hpux*) |
| 6431 | |
| 6432 | $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h |
| 6433 | |
| 6434 | ;; |
| 6435 | esac |
| 6436 | |
| 6437 | |
| 6438 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
| 6439 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } |
| 6440 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : |
| 6441 | $as_echo_n "(cached) " >&6 |
| 6442 | else |
| 6443 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6444 | /* end confdefs.h. */ |
| 6445 | |
| 6446 | # define __EXTENSIONS__ 1 |
| 6447 | $ac_includes_default |
| 6448 | int |
| 6449 | main () |
| 6450 | { |
| 6451 | |
| 6452 | ; |
| 6453 | return 0; |
| 6454 | } |
| 6455 | _ACEOF |
| 6456 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6457 | ac_cv_safe_to_define___extensions__=yes |
| 6458 | else |
| 6459 | ac_cv_safe_to_define___extensions__=no |
| 6460 | fi |
| 6461 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6462 | fi |
| 6463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
| 6464 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } |
| 6465 | test $ac_cv_safe_to_define___extensions__ = yes && |
| 6466 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
| 6467 | |
| 6468 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
| 6469 | |
| 6470 | $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h |
| 6471 | |
| 6472 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
| 6473 | |
| 6474 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
| 6475 | |
| 6476 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h |
| 6477 | |
| 6478 | |
| 6479 | |
| 6480 | |
| 6481 | |
| 6482 | |
| 6483 | |
| 6484 | |
| 6485 | # Check whether --enable-largefile was given. |
| 6486 | if test "${enable_largefile+set}" = set; then : |
| 6487 | enableval=$enable_largefile; |
| 6488 | fi |
| 6489 | |
| 6490 | if test "$enable_largefile" != no; then |
| 6491 | |
| 6492 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
| 6493 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } |
| 6494 | if test "${ac_cv_sys_largefile_CC+set}" = set; then : |
| 6495 | $as_echo_n "(cached) " >&6 |
| 6496 | else |
| 6497 | ac_cv_sys_largefile_CC=no |
| 6498 | if test "$GCC" != yes; then |
| 6499 | ac_save_CC=$CC |
| 6500 | while :; do |
| 6501 | # IRIX 6.2 and later do not support large files by default, |
| 6502 | # so use the C compiler's -n32 option if that helps. |
| 6503 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6504 | /* end confdefs.h. */ |
| 6505 | #include <sys/types.h> |
| 6506 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6507 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6508 | since some C++ compilers masquerading as C compilers |
| 6509 | incorrectly reject 9223372036854775807. */ |
| 6510 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6511 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6512 | && LARGE_OFF_T % 2147483647 == 1) |
| 6513 | ? 1 : -1]; |
| 6514 | int |
| 6515 | main () |
| 6516 | { |
| 6517 | |
| 6518 | ; |
| 6519 | return 0; |
| 6520 | } |
| 6521 | _ACEOF |
| 6522 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6523 | break |
| 6524 | fi |
| 6525 | rm -f core conftest.err conftest.$ac_objext |
| 6526 | CC="$CC -n32" |
| 6527 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6528 | ac_cv_sys_largefile_CC=' -n32'; break |
| 6529 | fi |
| 6530 | rm -f core conftest.err conftest.$ac_objext |
| 6531 | break |
| 6532 | done |
| 6533 | CC=$ac_save_CC |
| 6534 | rm -f conftest.$ac_ext |
| 6535 | fi |
| 6536 | fi |
| 6537 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
| 6538 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } |
| 6539 | if test "$ac_cv_sys_largefile_CC" != no; then |
| 6540 | CC=$CC$ac_cv_sys_largefile_CC |
| 6541 | fi |
| 6542 | |
| 6543 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
| 6544 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } |
| 6545 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then : |
| 6546 | $as_echo_n "(cached) " >&6 |
| 6547 | else |
| 6548 | while :; do |
| 6549 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6550 | /* end confdefs.h. */ |
| 6551 | #include <sys/types.h> |
| 6552 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6553 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6554 | since some C++ compilers masquerading as C compilers |
| 6555 | incorrectly reject 9223372036854775807. */ |
| 6556 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6557 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6558 | && LARGE_OFF_T % 2147483647 == 1) |
| 6559 | ? 1 : -1]; |
| 6560 | int |
| 6561 | main () |
| 6562 | { |
| 6563 | |
| 6564 | ; |
| 6565 | return 0; |
| 6566 | } |
| 6567 | _ACEOF |
| 6568 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6569 | ac_cv_sys_file_offset_bits=no; break |
| 6570 | fi |
| 6571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6573 | /* end confdefs.h. */ |
| 6574 | #define _FILE_OFFSET_BITS 64 |
| 6575 | #include <sys/types.h> |
| 6576 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6577 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6578 | since some C++ compilers masquerading as C compilers |
| 6579 | incorrectly reject 9223372036854775807. */ |
| 6580 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6581 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6582 | && LARGE_OFF_T % 2147483647 == 1) |
| 6583 | ? 1 : -1]; |
| 6584 | int |
| 6585 | main () |
| 6586 | { |
| 6587 | |
| 6588 | ; |
| 6589 | return 0; |
| 6590 | } |
| 6591 | _ACEOF |
| 6592 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6593 | ac_cv_sys_file_offset_bits=64; break |
| 6594 | fi |
| 6595 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6596 | ac_cv_sys_file_offset_bits=unknown |
| 6597 | break |
| 6598 | done |
| 6599 | fi |
| 6600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
| 6601 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } |
| 6602 | case $ac_cv_sys_file_offset_bits in #( |
| 6603 | no | unknown) ;; |
| 6604 | *) |
| 6605 | cat >>confdefs.h <<_ACEOF |
| 6606 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
| 6607 | _ACEOF |
| 6608 | ;; |
| 6609 | esac |
| 6610 | rm -rf conftest* |
| 6611 | if test $ac_cv_sys_file_offset_bits = unknown; then |
| 6612 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 |
| 6613 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } |
| 6614 | if test "${ac_cv_sys_large_files+set}" = set; then : |
| 6615 | $as_echo_n "(cached) " >&6 |
| 6616 | else |
| 6617 | while :; do |
| 6618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6619 | /* end confdefs.h. */ |
| 6620 | #include <sys/types.h> |
| 6621 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6622 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6623 | since some C++ compilers masquerading as C compilers |
| 6624 | incorrectly reject 9223372036854775807. */ |
| 6625 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6626 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6627 | && LARGE_OFF_T % 2147483647 == 1) |
| 6628 | ? 1 : -1]; |
| 6629 | int |
| 6630 | main () |
| 6631 | { |
| 6632 | |
| 6633 | ; |
| 6634 | return 0; |
| 6635 | } |
| 6636 | _ACEOF |
| 6637 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6638 | ac_cv_sys_large_files=no; break |
| 6639 | fi |
| 6640 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6642 | /* end confdefs.h. */ |
| 6643 | #define _LARGE_FILES 1 |
| 6644 | #include <sys/types.h> |
| 6645 | /* Check that off_t can represent 2**63 - 1 correctly. |
| 6646 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
| 6647 | since some C++ compilers masquerading as C compilers |
| 6648 | incorrectly reject 9223372036854775807. */ |
| 6649 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
| 6650 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
| 6651 | && LARGE_OFF_T % 2147483647 == 1) |
| 6652 | ? 1 : -1]; |
| 6653 | int |
| 6654 | main () |
| 6655 | { |
| 6656 | |
| 6657 | ; |
| 6658 | return 0; |
| 6659 | } |
| 6660 | _ACEOF |
| 6661 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6662 | ac_cv_sys_large_files=1; break |
| 6663 | fi |
| 6664 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6665 | ac_cv_sys_large_files=unknown |
| 6666 | break |
| 6667 | done |
| 6668 | fi |
| 6669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
| 6670 | $as_echo "$ac_cv_sys_large_files" >&6; } |
| 6671 | case $ac_cv_sys_large_files in #( |
| 6672 | no | unknown) ;; |
| 6673 | *) |
| 6674 | cat >>confdefs.h <<_ACEOF |
| 6675 | #define _LARGE_FILES $ac_cv_sys_large_files |
| 6676 | _ACEOF |
| 6677 | ;; |
| 6678 | esac |
| 6679 | rm -rf conftest* |
| 6680 | fi |
| 6681 | |
| 6682 | |
| 6683 | fi |
| 6684 | |
| 6685 | case $ac_cv_prog_cc_stdc in #( |
| 6686 | no) : |
| 6687 | ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( |
| 6688 | *) : |
| 6689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 |
| 6690 | $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } |
| 6691 | if test "${ac_cv_prog_cc_c99+set}" = set; then : |
| 6692 | $as_echo_n "(cached) " >&6 |
| 6693 | else |
| 6694 | ac_cv_prog_cc_c99=no |
| 6695 | ac_save_CC=$CC |
| 6696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6697 | /* end confdefs.h. */ |
| 6698 | #include <stdarg.h> |
| 6699 | #include <stdbool.h> |
| 6700 | #include <stdlib.h> |
| 6701 | #include <wchar.h> |
| 6702 | #include <stdio.h> |
| 6703 | |
| 6704 | // Check varargs macros. These examples are taken from C99 6.10.3.5. |
| 6705 | #define debug(...) fprintf (stderr, __VA_ARGS__) |
| 6706 | #define showlist(...) puts (#__VA_ARGS__) |
| 6707 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) |
| 6708 | static void |
| 6709 | test_varargs_macros (void) |
| 6710 | { |
| 6711 | int x = 1234; |
| 6712 | int y = 5678; |
| 6713 | debug ("Flag"); |
| 6714 | debug ("X = %d\n", x); |
| 6715 | showlist (The first, second, and third items.); |
| 6716 | report (x>y, "x is %d but y is %d", x, y); |
| 6717 | } |
| 6718 | |
| 6719 | // Check long long types. |
| 6720 | #define BIG64 18446744073709551615ull |
| 6721 | #define BIG32 4294967295ul |
| 6722 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) |
| 6723 | #if !BIG_OK |
| 6724 | your preprocessor is broken; |
| 6725 | #endif |
| 6726 | #if BIG_OK |
| 6727 | #else |
| 6728 | your preprocessor is broken; |
| 6729 | #endif |
| 6730 | static long long int bignum = -9223372036854775807LL; |
| 6731 | static unsigned long long int ubignum = BIG64; |
| 6732 | |
| 6733 | struct incomplete_array |
| 6734 | { |
| 6735 | int datasize; |
| 6736 | double data[]; |
| 6737 | }; |
| 6738 | |
| 6739 | struct named_init { |
| 6740 | int number; |
| 6741 | const wchar_t *name; |
| 6742 | double average; |
| 6743 | }; |
| 6744 | |
| 6745 | typedef const char *ccp; |
| 6746 | |
| 6747 | static inline int |
| 6748 | test_restrict (ccp restrict text) |
| 6749 | { |
| 6750 | // See if C++-style comments work. |
| 6751 | // Iterate through items via the restricted pointer. |
| 6752 | // Also check for declarations in for loops. |
| 6753 | for (unsigned int i = 0; *(text+i) != '\0'; ++i) |
| 6754 | continue; |
| 6755 | return 0; |
| 6756 | } |
| 6757 | |
| 6758 | // Check varargs and va_copy. |
| 6759 | static void |
| 6760 | test_varargs (const char *format, ...) |
| 6761 | { |
| 6762 | va_list args; |
| 6763 | va_start (args, format); |
| 6764 | va_list args_copy; |
| 6765 | va_copy (args_copy, args); |
| 6766 | |
| 6767 | const char *str; |
| 6768 | int number; |
| 6769 | float fnumber; |
| 6770 | |
| 6771 | while (*format) |
| 6772 | { |
| 6773 | switch (*format++) |
| 6774 | { |
| 6775 | case 's': // string |
| 6776 | str = va_arg (args_copy, const char *); |
| 6777 | break; |
| 6778 | case 'd': // int |
| 6779 | number = va_arg (args_copy, int); |
| 6780 | break; |
| 6781 | case 'f': // float |
| 6782 | fnumber = va_arg (args_copy, double); |
| 6783 | break; |
| 6784 | default: |
| 6785 | break; |
| 6786 | } |
| 6787 | } |
| 6788 | va_end (args_copy); |
| 6789 | va_end (args); |
| 6790 | } |
| 6791 | |
| 6792 | int |
| 6793 | main () |
| 6794 | { |
| 6795 | |
| 6796 | // Check bool. |
| 6797 | _Bool success = false; |
| 6798 | |
| 6799 | // Check restrict. |
| 6800 | if (test_restrict ("String literal") == 0) |
| 6801 | success = true; |
| 6802 | char *restrict newvar = "Another string"; |
| 6803 | |
| 6804 | // Check varargs. |
| 6805 | test_varargs ("s, d' f .", "string", 65, 34.234); |
| 6806 | test_varargs_macros (); |
| 6807 | |
| 6808 | // Check flexible array members. |
| 6809 | struct incomplete_array *ia = |
| 6810 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); |
| 6811 | ia->datasize = 10; |
| 6812 | for (int i = 0; i < ia->datasize; ++i) |
| 6813 | ia->data[i] = i * 1.234; |
| 6814 | |
| 6815 | // Check named initializers. |
| 6816 | struct named_init ni = { |
| 6817 | .number = 34, |
| 6818 | .name = L"Test wide string", |
| 6819 | .average = 543.34343, |
| 6820 | }; |
| 6821 | |
| 6822 | ni.number = 58; |
| 6823 | |
| 6824 | int dynamic_array[ni.number]; |
| 6825 | dynamic_array[ni.number - 1] = 543; |
| 6826 | |
| 6827 | // work around unused variable warnings |
| 6828 | return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' |
| 6829 | || dynamic_array[ni.number - 1] != 543); |
| 6830 | |
| 6831 | ; |
| 6832 | return 0; |
| 6833 | } |
| 6834 | _ACEOF |
| 6835 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 |
| 6836 | do |
| 6837 | CC="$ac_save_CC $ac_arg" |
| 6838 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6839 | ac_cv_prog_cc_c99=$ac_arg |
| 6840 | fi |
| 6841 | rm -f core conftest.err conftest.$ac_objext |
| 6842 | test "x$ac_cv_prog_cc_c99" != "xno" && break |
| 6843 | done |
| 6844 | rm -f conftest.$ac_ext |
| 6845 | CC=$ac_save_CC |
| 6846 | |
| 6847 | fi |
| 6848 | # AC_CACHE_VAL |
| 6849 | case "x$ac_cv_prog_cc_c99" in |
| 6850 | x) |
| 6851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6852 | $as_echo "none needed" >&6; } ;; |
| 6853 | xno) |
| 6854 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6855 | $as_echo "unsupported" >&6; } ;; |
| 6856 | *) |
| 6857 | CC="$CC $ac_cv_prog_cc_c99" |
| 6858 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 |
| 6859 | $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; |
| 6860 | esac |
| 6861 | if test "x$ac_cv_prog_cc_c99" != xno; then : |
| 6862 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 |
| 6863 | else |
| 6864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 6865 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 6866 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 6867 | $as_echo_n "(cached) " >&6 |
| 6868 | else |
| 6869 | ac_cv_prog_cc_c89=no |
| 6870 | ac_save_CC=$CC |
| 6871 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6872 | /* end confdefs.h. */ |
| 6873 | #include <stdarg.h> |
| 6874 | #include <stdio.h> |
| 6875 | #include <sys/types.h> |
| 6876 | #include <sys/stat.h> |
| 6877 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 6878 | struct buf { int x; }; |
| 6879 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 6880 | static char *e (p, i) |
| 6881 | char **p; |
| 6882 | int i; |
| 6883 | { |
| 6884 | return p[i]; |
| 6885 | } |
| 6886 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 6887 | { |
| 6888 | char *s; |
| 6889 | va_list v; |
| 6890 | va_start (v,p); |
| 6891 | s = g (p, va_arg (v,int)); |
| 6892 | va_end (v); |
| 6893 | return s; |
| 6894 | } |
| 6895 | |
| 6896 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 6897 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 6898 | These don't provoke an error unfortunately, instead are silently treated |
| 6899 | as 'x'. The following induces an error, until -std is added to get |
| 6900 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 6901 | array size at least. It's necessary to write '\x00'==0 to get something |
| 6902 | that's true only with -std. */ |
| 6903 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 6904 | |
| 6905 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 6906 | inside strings and character constants. */ |
| 6907 | #define FOO(x) 'x' |
| 6908 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 6909 | |
| 6910 | int test (int i, double x); |
| 6911 | struct s1 {int (*f) (int a);}; |
| 6912 | struct s2 {int (*f) (double a);}; |
| 6913 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 6914 | int argc; |
| 6915 | char **argv; |
| 6916 | int |
| 6917 | main () |
| 6918 | { |
| 6919 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 6920 | ; |
| 6921 | return 0; |
| 6922 | } |
| 6923 | _ACEOF |
| 6924 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 6925 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 6926 | do |
| 6927 | CC="$ac_save_CC $ac_arg" |
| 6928 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6929 | ac_cv_prog_cc_c89=$ac_arg |
| 6930 | fi |
| 6931 | rm -f core conftest.err conftest.$ac_objext |
| 6932 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 6933 | done |
| 6934 | rm -f conftest.$ac_ext |
| 6935 | CC=$ac_save_CC |
| 6936 | |
| 6937 | fi |
| 6938 | # AC_CACHE_VAL |
| 6939 | case "x$ac_cv_prog_cc_c89" in |
| 6940 | x) |
| 6941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6942 | $as_echo "none needed" >&6; } ;; |
| 6943 | xno) |
| 6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6945 | $as_echo "unsupported" >&6; } ;; |
| 6946 | *) |
| 6947 | CC="$CC $ac_cv_prog_cc_c89" |
| 6948 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 6949 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 6950 | esac |
| 6951 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 6952 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 |
| 6953 | else |
| 6954 | ac_cv_prog_cc_stdc=no |
| 6955 | fi |
| 6956 | |
| 6957 | fi |
| 6958 | ;; |
| 6959 | esac |
| 6960 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 |
| 6961 | $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } |
| 6962 | if test "${ac_cv_prog_cc_stdc+set}" = set; then : |
| 6963 | $as_echo_n "(cached) " >&6 |
| 6964 | fi |
| 6965 | |
| 6966 | case $ac_cv_prog_cc_stdc in #( |
| 6967 | no) : |
| 6968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 6969 | $as_echo "unsupported" >&6; } ;; #( |
| 6970 | '') : |
| 6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 6972 | $as_echo "none needed" >&6; } ;; #( |
| 6973 | *) : |
| 6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 |
| 6975 | $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; |
| 6976 | esac |
| 6977 | |
| 6978 | |
| 6979 | |
| 6980 | # Code from module alloca-opt: |
| 6981 | # Code from module allocator: |
| 6982 | # Code from module c-ctype: |
| 6983 | # Code from module c-strcase: |
| 6984 | # Code from module careadlinkat: |
| 6985 | # Code from module clock-time: |
| 6986 | # Code from module close-stream: |
| 6987 | # Code from module crypto/md5: |
| 6988 | # Code from module crypto/sha1: |
| 6989 | # Code from module crypto/sha256: |
| 6990 | # Code from module crypto/sha512: |
| 6991 | # Code from module dosname: |
| 6992 | # Code from module dtoastr: |
| 6993 | # Code from module dtotimespec: |
| 6994 | # Code from module dup2: |
| 6995 | # Code from module environ: |
| 6996 | # Code from module euidaccess: |
| 6997 | # Code from module execinfo: |
| 6998 | # Code from module extensions: |
| 6999 | |
| 7000 | # Code from module extern-inline: |
| 7001 | # Code from module faccessat: |
| 7002 | # Code from module fcntl-h: |
| 7003 | # Code from module filemode: |
| 7004 | # Code from module fpending: |
| 7005 | # Code from module getgroups: |
| 7006 | # Code from module getloadavg: |
| 7007 | # Code from module getopt-gnu: |
| 7008 | # Code from module getopt-posix: |
| 7009 | # Code from module gettext-h: |
| 7010 | # Code from module gettime: |
| 7011 | # Code from module gettimeofday: |
| 7012 | # Code from module group-member: |
| 7013 | # Code from module ignore-value: |
| 7014 | # Code from module include_next: |
| 7015 | # Code from module intprops: |
| 7016 | # Code from module inttypes-incomplete: |
| 7017 | # Code from module largefile: |
| 7018 | |
| 7019 | # Code from module lstat: |
| 7020 | # Code from module manywarnings: |
| 7021 | # Code from module mktime: |
| 7022 | # Code from module multiarch: |
| 7023 | # Code from module nocrash: |
| 7024 | # Code from module pathmax: |
| 7025 | # Code from module pselect: |
| 7026 | # Code from module pthread_sigmask: |
| 7027 | # Code from module readlink: |
| 7028 | # Code from module root-uid: |
| 7029 | # Code from module sig2str: |
| 7030 | # Code from module signal-h: |
| 7031 | # Code from module snippet/_Noreturn: |
| 7032 | # Code from module snippet/arg-nonnull: |
| 7033 | # Code from module snippet/c++defs: |
| 7034 | # Code from module snippet/warn-on-use: |
| 7035 | # Code from module socklen: |
| 7036 | # Code from module ssize_t: |
| 7037 | # Code from module stat: |
| 7038 | # Code from module stat-time: |
| 7039 | # Code from module stdalign: |
| 7040 | # Code from module stdarg: |
| 7041 | |
| 7042 | |
| 7043 | |
| 7044 | # Code from module stdbool: |
| 7045 | # Code from module stddef: |
| 7046 | # Code from module stdint: |
| 7047 | # Code from module stdio: |
| 7048 | # Code from module stdlib: |
| 7049 | # Code from module strftime: |
| 7050 | # Code from module strtoimax: |
| 7051 | # Code from module strtoll: |
| 7052 | # Code from module strtoull: |
| 7053 | # Code from module strtoumax: |
| 7054 | # Code from module symlink: |
| 7055 | # Code from module sys_select: |
| 7056 | # Code from module sys_stat: |
| 7057 | # Code from module sys_time: |
| 7058 | # Code from module time: |
| 7059 | # Code from module time_r: |
| 7060 | # Code from module timer-time: |
| 7061 | # Code from module timespec: |
| 7062 | # Code from module timespec-add: |
| 7063 | # Code from module timespec-sub: |
| 7064 | # Code from module u64: |
| 7065 | # Code from module unistd: |
| 7066 | # Code from module utimens: |
| 7067 | # Code from module verify: |
| 7068 | # Code from module warnings: |
| 7069 | # Code from module xalloc-oversized: |
| 7070 | |
| 7071 | |
| 7072 | # It's helpful to have C macros available to GDB, so prefer -g3 to -g |
| 7073 | # if -g3 works and the user does not specify CFLAGS. |
| 7074 | # This test must follow gl_EARLY; otherwise AC_LINK_IFELSE complains. |
| 7075 | if test "$ac_test_CFLAGS" != set; then |
| 7076 | case $CFLAGS in |
| 7077 | '-g') |
| 7078 | emacs_g3_CFLAGS='-g3';; |
| 7079 | '-g -O2') |
| 7080 | emacs_g3_CFLAGS='-g3 -O2';; |
| 7081 | *) |
| 7082 | emacs_g3_CFLAGS='';; |
| 7083 | esac |
| 7084 | if test -n "$emacs_g3_CFLAGS"; then |
| 7085 | emacs_save_CFLAGS=$CFLAGS |
| 7086 | CFLAGS=$emacs_g3_CFLAGS |
| 7087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts $emacs_g3_CFLAGS" >&5 |
| 7088 | $as_echo_n "checking whether $CC accepts $emacs_g3_CFLAGS... " >&6; } |
| 7089 | if test "${emacs_cv_prog_cc_g3+set}" = set; then : |
| 7090 | $as_echo_n "(cached) " >&6 |
| 7091 | else |
| 7092 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7093 | /* end confdefs.h. */ |
| 7094 | |
| 7095 | int |
| 7096 | main () |
| 7097 | { |
| 7098 | |
| 7099 | ; |
| 7100 | return 0; |
| 7101 | } |
| 7102 | _ACEOF |
| 7103 | if ac_fn_c_try_link "$LINENO"; then : |
| 7104 | emacs_cv_prog_cc_g3=yes |
| 7105 | else |
| 7106 | emacs_cv_prog_cc_g3=no |
| 7107 | fi |
| 7108 | rm -f core conftest.err conftest.$ac_objext \ |
| 7109 | conftest$ac_exeext conftest.$ac_ext |
| 7110 | fi |
| 7111 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_prog_cc_g3" >&5 |
| 7112 | $as_echo "$emacs_cv_prog_cc_g3" >&6; } |
| 7113 | if test $emacs_cv_prog_cc_g3 = yes; then |
| 7114 | CFLAGS=$emacs_g3_CFLAGS |
| 7115 | else |
| 7116 | CFLAGS=$emacs_save_CFLAGS |
| 7117 | fi |
| 7118 | fi |
| 7119 | fi |
| 7120 | |
| 7121 | # Check whether --enable-gcc-warnings was given. |
| 7122 | if test "${enable_gcc_warnings+set}" = set; then : |
| 7123 | enableval=$enable_gcc_warnings; case $enableval in |
| 7124 | yes|no) ;; |
| 7125 | *) as_fn_error "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;; |
| 7126 | esac |
| 7127 | gl_gcc_warnings=$enableval |
| 7128 | else |
| 7129 | gl_gcc_warnings=no |
| 7130 | |
| 7131 | fi |
| 7132 | |
| 7133 | |
| 7134 | # Check whether --enable-link-time-optimization was given. |
| 7135 | if test "${enable_link_time_optimization+set}" = set; then : |
| 7136 | enableval=$enable_link_time_optimization; if test "${enableval}" != "no"; then |
| 7137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether link-time optimization is supported" >&5 |
| 7138 | $as_echo_n "checking whether link-time optimization is supported... " >&6; } |
| 7139 | ac_lto_supported=no |
| 7140 | if test x$GCC = xyes; then |
| 7141 | CPUS=`getconf _NPROCESSORS_ONLN 2>/dev/null` |
| 7142 | if test x$CPUS != x; then |
| 7143 | LTO="-flto=$CPUS" |
| 7144 | else |
| 7145 | LTO="-flto" |
| 7146 | fi |
| 7147 | old_CFLAGS=$CFLAGS |
| 7148 | CFLAGS="$CFLAGS $LTO" |
| 7149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7150 | /* end confdefs.h. */ |
| 7151 | |
| 7152 | int |
| 7153 | main () |
| 7154 | { |
| 7155 | |
| 7156 | ; |
| 7157 | return 0; |
| 7158 | } |
| 7159 | _ACEOF |
| 7160 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7161 | ac_lto_supported=yes |
| 7162 | else |
| 7163 | ac_lto_supported=no |
| 7164 | fi |
| 7165 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7166 | CFLAGS="$old_CFLAGS" |
| 7167 | fi |
| 7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_lto_supported" >&5 |
| 7169 | $as_echo "$ac_lto_supported" >&6; } |
| 7170 | if test "$ac_lto_supported" = "yes"; then |
| 7171 | CFLAGS="$CFLAGS $LTO" |
| 7172 | fi |
| 7173 | fi |
| 7174 | fi |
| 7175 | |
| 7176 | |
| 7177 | # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found]) |
| 7178 | # ------------------------------------------------ |
| 7179 | # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND. |
| 7180 | # Otherwise, run RUN-IF-NOT-FOUND. |
| 7181 | |
| 7182 | |
| 7183 | # When compiling with GCC, prefer -isystem to -I when including system |
| 7184 | # include files, to avoid generating useless diagnostics for the files. |
| 7185 | if test "$gl_gcc_warnings" != yes; then |
| 7186 | isystem='-I' |
| 7187 | else |
| 7188 | isystem='-isystem ' |
| 7189 | |
| 7190 | # This, $nw, is the list of warnings we disable. |
| 7191 | nw= |
| 7192 | |
| 7193 | case $with_x_toolkit in |
| 7194 | lucid | athena | motif) |
| 7195 | # Old toolkits mishandle 'const'. |
| 7196 | nw="$nw -Wwrite-strings" |
| 7197 | ;; |
| 7198 | *) |
| 7199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5 |
| 7200 | $as_echo_n "checking whether C compiler handles -Werror... " >&6; } |
| 7201 | if test "${gl_cv_warn_c__Werror+set}" = set; then : |
| 7202 | $as_echo_n "(cached) " >&6 |
| 7203 | else |
| 7204 | |
| 7205 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7206 | as_fn_append CFLAGS " -Werror" |
| 7207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7208 | /* end confdefs.h. */ |
| 7209 | |
| 7210 | int |
| 7211 | main () |
| 7212 | { |
| 7213 | |
| 7214 | ; |
| 7215 | return 0; |
| 7216 | } |
| 7217 | _ACEOF |
| 7218 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7219 | gl_cv_warn_c__Werror=yes |
| 7220 | else |
| 7221 | gl_cv_warn_c__Werror=no |
| 7222 | fi |
| 7223 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7224 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7225 | |
| 7226 | fi |
| 7227 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5 |
| 7228 | $as_echo "$gl_cv_warn_c__Werror" >&6; } |
| 7229 | if test "x$gl_cv_warn_c__Werror" = x""yes; then : |
| 7230 | as_fn_append WERROR_CFLAGS " -Werror" |
| 7231 | fi |
| 7232 | |
| 7233 | |
| 7234 | ;; |
| 7235 | esac |
| 7236 | |
| 7237 | |
| 7238 | nw="$nw -Waggregate-return" # anachronistic |
| 7239 | nw="$nw -Wlong-long" # C90 is anachronistic |
| 7240 | nw="$nw -Wc++-compat" # We don't care about C++ compilers |
| 7241 | nw="$nw -Wundef" # Warns on '#if GNULIB_FOO' etc in gnulib |
| 7242 | nw="$nw -Wtraditional" # Warns on #elif which we use often |
| 7243 | nw="$nw -Wcast-qual" # Too many warnings for now |
| 7244 | nw="$nw -Wconversion" # Too many warnings for now |
| 7245 | nw="$nw -Wsystem-headers" # Don't let system headers trigger warnings |
| 7246 | nw="$nw -Wsign-conversion" # Too many warnings for now |
| 7247 | nw="$nw -Woverlength-strings" # Not a problem these days |
| 7248 | nw="$nw -Wtraditional-conversion" # Too many warnings for now |
| 7249 | nw="$nw -Wunreachable-code" # so buggy that it's now silently ignored |
| 7250 | nw="$nw -Wpadded" # Our structs are not padded |
| 7251 | nw="$nw -Wredundant-decls" # we regularly (re)declare functions |
| 7252 | nw="$nw -Wlogical-op" # any use of fwrite provokes this |
| 7253 | nw="$nw -Wformat-nonliteral" # we do this a lot |
| 7254 | nw="$nw -Wvla" # warnings in gettext.h |
| 7255 | nw="$nw -Wnested-externs" # use of XARGMATCH/verify_function__ |
| 7256 | nw="$nw -Wswitch-enum" # Too many warnings for now |
| 7257 | nw="$nw -Wswitch-default" # Too many warnings for now |
| 7258 | nw="$nw -Wfloat-equal" # warns about high-quality code |
| 7259 | nw="$nw -Winline" # OK to ignore 'inline' |
| 7260 | nw="$nw -Wjump-misses-init" # We sometimes safely jump over init. |
| 7261 | nw="$nw -Wstrict-overflow" # OK to optimize assuming that |
| 7262 | # signed overflow has undefined behavior |
| 7263 | nw="$nw -Wsync-nand" # irrelevant here, and provokes ObjC warning |
| 7264 | nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations |
| 7265 | |
| 7266 | # Emacs doesn't care about shadowing; see |
| 7267 | # <http://lists.gnu.org/archive/html/emacs-diffs/2011-11/msg00265.html>. |
| 7268 | nw="$nw -Wshadow" |
| 7269 | |
| 7270 | # The following line should be removable at some point. |
| 7271 | nw="$nw -Wsuggest-attribute=pure" |
| 7272 | |
| 7273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use -Wstack-protector" >&5 |
| 7274 | $as_echo_n "checking whether to use -Wstack-protector... " >&6; } |
| 7275 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7276 | /* end confdefs.h. */ |
| 7277 | #if (1 <= __LONG_MAX__ >> 31 >> 31 \ |
| 7278 | && 4 < __GNUC__ + (7 < __GNUC_MINOR__ + (2 <= __GNUC_PATCHLEVEL__))) |
| 7279 | /* OK */ |
| 7280 | #else |
| 7281 | #error "Not GCC, or GCC before 4.7.2, or 'long int' has < 64 bits." |
| 7282 | #endif |
| 7283 | |
| 7284 | int |
| 7285 | main () |
| 7286 | { |
| 7287 | |
| 7288 | ; |
| 7289 | return 0; |
| 7290 | } |
| 7291 | _ACEOF |
| 7292 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 7293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7294 | $as_echo "yes" >&6; } |
| 7295 | else |
| 7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7297 | $as_echo "no" >&6; } |
| 7298 | nw="$nw -Wstack-protector" |
| 7299 | fi |
| 7300 | rm -f conftest.err conftest.$ac_ext |
| 7301 | |
| 7302 | |
| 7303 | |
| 7304 | if test -n "$GCC"; then |
| 7305 | |
| 7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5 |
| 7307 | $as_echo_n "checking whether -Wno-missing-field-initializers is supported... " >&6; } |
| 7308 | if test "${gl_cv_cc_nomfi_supported+set}" = set; then : |
| 7309 | $as_echo_n "(cached) " >&6 |
| 7310 | else |
| 7311 | |
| 7312 | gl_save_CFLAGS="$CFLAGS" |
| 7313 | CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers" |
| 7314 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7315 | /* end confdefs.h. */ |
| 7316 | |
| 7317 | int |
| 7318 | main () |
| 7319 | { |
| 7320 | |
| 7321 | ; |
| 7322 | return 0; |
| 7323 | } |
| 7324 | _ACEOF |
| 7325 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7326 | gl_cv_cc_nomfi_supported=yes |
| 7327 | else |
| 7328 | gl_cv_cc_nomfi_supported=no |
| 7329 | fi |
| 7330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7331 | CFLAGS="$gl_save_CFLAGS" |
| 7332 | fi |
| 7333 | |
| 7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5 |
| 7335 | $as_echo "$gl_cv_cc_nomfi_supported" >&6; } |
| 7336 | |
| 7337 | if test "$gl_cv_cc_nomfi_supported" = yes; then |
| 7338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5 |
| 7339 | $as_echo_n "checking whether -Wno-missing-field-initializers is needed... " >&6; } |
| 7340 | if test "${gl_cv_cc_nomfi_needed+set}" = set; then : |
| 7341 | $as_echo_n "(cached) " >&6 |
| 7342 | else |
| 7343 | |
| 7344 | gl_save_CFLAGS="$CFLAGS" |
| 7345 | CFLAGS="$CFLAGS -W -Werror" |
| 7346 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7347 | /* end confdefs.h. */ |
| 7348 | void f (void) |
| 7349 | { |
| 7350 | typedef struct { int a; int b; } s_t; |
| 7351 | s_t s1 = { 0, }; |
| 7352 | } |
| 7353 | |
| 7354 | int |
| 7355 | main () |
| 7356 | { |
| 7357 | |
| 7358 | ; |
| 7359 | return 0; |
| 7360 | } |
| 7361 | _ACEOF |
| 7362 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7363 | gl_cv_cc_nomfi_needed=no |
| 7364 | else |
| 7365 | gl_cv_cc_nomfi_needed=yes |
| 7366 | fi |
| 7367 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7368 | CFLAGS="$gl_save_CFLAGS" |
| 7369 | |
| 7370 | fi |
| 7371 | |
| 7372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5 |
| 7373 | $as_echo "$gl_cv_cc_nomfi_needed" >&6; } |
| 7374 | fi |
| 7375 | |
| 7376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5 |
| 7377 | $as_echo_n "checking whether -Wuninitialized is supported... " >&6; } |
| 7378 | if test "${gl_cv_cc_uninitialized_supported+set}" = set; then : |
| 7379 | $as_echo_n "(cached) " >&6 |
| 7380 | else |
| 7381 | |
| 7382 | gl_save_CFLAGS="$CFLAGS" |
| 7383 | CFLAGS="$CFLAGS -Werror -Wuninitialized" |
| 7384 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7385 | /* end confdefs.h. */ |
| 7386 | |
| 7387 | int |
| 7388 | main () |
| 7389 | { |
| 7390 | |
| 7391 | ; |
| 7392 | return 0; |
| 7393 | } |
| 7394 | _ACEOF |
| 7395 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7396 | gl_cv_cc_uninitialized_supported=yes |
| 7397 | else |
| 7398 | gl_cv_cc_uninitialized_supported=no |
| 7399 | fi |
| 7400 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7401 | CFLAGS="$gl_save_CFLAGS" |
| 7402 | fi |
| 7403 | |
| 7404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5 |
| 7405 | $as_echo "$gl_cv_cc_uninitialized_supported" >&6; } |
| 7406 | |
| 7407 | fi |
| 7408 | |
| 7409 | # List all gcc warning categories. |
| 7410 | gl_manywarn_set= |
| 7411 | for gl_manywarn_item in \ |
| 7412 | -W \ |
| 7413 | -Wabi \ |
| 7414 | -Waddress \ |
| 7415 | -Wall \ |
| 7416 | -Warray-bounds \ |
| 7417 | -Wattributes \ |
| 7418 | -Wbad-function-cast \ |
| 7419 | -Wbuiltin-macro-redefined \ |
| 7420 | -Wcast-align \ |
| 7421 | -Wchar-subscripts \ |
| 7422 | -Wclobbered \ |
| 7423 | -Wcomment \ |
| 7424 | -Wcomments \ |
| 7425 | -Wcoverage-mismatch \ |
| 7426 | -Wcpp \ |
| 7427 | -Wdeprecated \ |
| 7428 | -Wdeprecated-declarations \ |
| 7429 | -Wdisabled-optimization \ |
| 7430 | -Wdiv-by-zero \ |
| 7431 | -Wdouble-promotion \ |
| 7432 | -Wempty-body \ |
| 7433 | -Wendif-labels \ |
| 7434 | -Wenum-compare \ |
| 7435 | -Wextra \ |
| 7436 | -Wformat-contains-nul \ |
| 7437 | -Wformat-extra-args \ |
| 7438 | -Wformat-nonliteral \ |
| 7439 | -Wformat-security \ |
| 7440 | -Wformat-y2k \ |
| 7441 | -Wformat-zero-length \ |
| 7442 | -Wformat=2 \ |
| 7443 | -Wfree-nonheap-object \ |
| 7444 | -Wignored-qualifiers \ |
| 7445 | -Wimplicit \ |
| 7446 | -Wimplicit-function-declaration \ |
| 7447 | -Wimplicit-int \ |
| 7448 | -Winit-self \ |
| 7449 | -Winline \ |
| 7450 | -Wint-to-pointer-cast \ |
| 7451 | -Winvalid-memory-model \ |
| 7452 | -Winvalid-pch \ |
| 7453 | -Wjump-misses-init \ |
| 7454 | -Wlogical-op \ |
| 7455 | -Wmain \ |
| 7456 | -Wmaybe-uninitialized \ |
| 7457 | -Wmissing-braces \ |
| 7458 | -Wmissing-declarations \ |
| 7459 | -Wmissing-field-initializers \ |
| 7460 | -Wmissing-format-attribute \ |
| 7461 | -Wmissing-include-dirs \ |
| 7462 | -Wmissing-noreturn \ |
| 7463 | -Wmissing-parameter-type \ |
| 7464 | -Wmissing-prototypes \ |
| 7465 | -Wmudflap \ |
| 7466 | -Wmultichar \ |
| 7467 | -Wnarrowing \ |
| 7468 | -Wnested-externs \ |
| 7469 | -Wnonnull \ |
| 7470 | -Wnormalized=nfc \ |
| 7471 | -Wold-style-declaration \ |
| 7472 | -Wold-style-definition \ |
| 7473 | -Woverflow \ |
| 7474 | -Woverlength-strings \ |
| 7475 | -Woverride-init \ |
| 7476 | -Wpacked \ |
| 7477 | -Wpacked-bitfield-compat \ |
| 7478 | -Wparentheses \ |
| 7479 | -Wpointer-arith \ |
| 7480 | -Wpointer-sign \ |
| 7481 | -Wpointer-to-int-cast \ |
| 7482 | -Wpragmas \ |
| 7483 | -Wreturn-type \ |
| 7484 | -Wsequence-point \ |
| 7485 | -Wshadow \ |
| 7486 | -Wsizeof-pointer-memaccess \ |
| 7487 | -Wstack-protector \ |
| 7488 | -Wstrict-aliasing \ |
| 7489 | -Wstrict-overflow \ |
| 7490 | -Wstrict-prototypes \ |
| 7491 | -Wsuggest-attribute=const \ |
| 7492 | -Wsuggest-attribute=format \ |
| 7493 | -Wsuggest-attribute=noreturn \ |
| 7494 | -Wsuggest-attribute=pure \ |
| 7495 | -Wswitch \ |
| 7496 | -Wswitch-default \ |
| 7497 | -Wsync-nand \ |
| 7498 | -Wsystem-headers \ |
| 7499 | -Wtrampolines \ |
| 7500 | -Wtrigraphs \ |
| 7501 | -Wtype-limits \ |
| 7502 | -Wuninitialized \ |
| 7503 | -Wunknown-pragmas \ |
| 7504 | -Wunreachable-code \ |
| 7505 | -Wunsafe-loop-optimizations \ |
| 7506 | -Wunused \ |
| 7507 | -Wunused-but-set-parameter \ |
| 7508 | -Wunused-but-set-variable \ |
| 7509 | -Wunused-function \ |
| 7510 | -Wunused-label \ |
| 7511 | -Wunused-local-typedefs \ |
| 7512 | -Wunused-macros \ |
| 7513 | -Wunused-parameter \ |
| 7514 | -Wunused-result \ |
| 7515 | -Wunused-value \ |
| 7516 | -Wunused-variable \ |
| 7517 | -Wvarargs \ |
| 7518 | -Wvariadic-macros \ |
| 7519 | -Wvector-operation-performance \ |
| 7520 | -Wvla \ |
| 7521 | -Wvolatile-register-var \ |
| 7522 | -Wwrite-strings \ |
| 7523 | \ |
| 7524 | ; do |
| 7525 | gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item" |
| 7526 | done |
| 7527 | |
| 7528 | # Disable specific options as needed. |
| 7529 | if test "$gl_cv_cc_nomfi_needed" = yes; then |
| 7530 | gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers" |
| 7531 | fi |
| 7532 | |
| 7533 | if test "$gl_cv_cc_uninitialized_supported" = no; then |
| 7534 | gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized" |
| 7535 | fi |
| 7536 | |
| 7537 | ws=$gl_manywarn_set |
| 7538 | |
| 7539 | |
| 7540 | gl_warn_set= |
| 7541 | set x $ws; shift |
| 7542 | for gl_warn_item |
| 7543 | do |
| 7544 | case " $nw " in |
| 7545 | *" $gl_warn_item "*) |
| 7546 | ;; |
| 7547 | *) |
| 7548 | gl_warn_set="$gl_warn_set $gl_warn_item" |
| 7549 | ;; |
| 7550 | esac |
| 7551 | done |
| 7552 | ws=$gl_warn_set |
| 7553 | |
| 7554 | for w in $ws; do |
| 7555 | as_gl_Warn=`$as_echo "gl_cv_warn_c_$w" | $as_tr_sh` |
| 7556 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5 |
| 7557 | $as_echo_n "checking whether C compiler handles $w... " >&6; } |
| 7558 | if { as_var=$as_gl_Warn; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 7559 | $as_echo_n "(cached) " >&6 |
| 7560 | else |
| 7561 | |
| 7562 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7563 | as_fn_append CFLAGS " $w" |
| 7564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7565 | /* end confdefs.h. */ |
| 7566 | |
| 7567 | int |
| 7568 | main () |
| 7569 | { |
| 7570 | |
| 7571 | ; |
| 7572 | return 0; |
| 7573 | } |
| 7574 | _ACEOF |
| 7575 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7576 | eval "$as_gl_Warn=yes" |
| 7577 | else |
| 7578 | eval "$as_gl_Warn=no" |
| 7579 | fi |
| 7580 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7581 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7582 | |
| 7583 | fi |
| 7584 | eval ac_res=\$$as_gl_Warn |
| 7585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 7586 | $as_echo "$ac_res" >&6; } |
| 7587 | eval as_val=\$$as_gl_Warn |
| 7588 | if test "x$as_val" = x""yes; then : |
| 7589 | as_fn_append WARN_CFLAGS " $w" |
| 7590 | fi |
| 7591 | |
| 7592 | |
| 7593 | done |
| 7594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5 |
| 7595 | $as_echo_n "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; } |
| 7596 | if test "${gl_cv_warn_c__Wno_missing_field_initializers+set}" = set; then : |
| 7597 | $as_echo_n "(cached) " >&6 |
| 7598 | else |
| 7599 | |
| 7600 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7601 | as_fn_append CFLAGS " -Wno-missing-field-initializers" |
| 7602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7603 | /* end confdefs.h. */ |
| 7604 | |
| 7605 | int |
| 7606 | main () |
| 7607 | { |
| 7608 | |
| 7609 | ; |
| 7610 | return 0; |
| 7611 | } |
| 7612 | _ACEOF |
| 7613 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7614 | gl_cv_warn_c__Wno_missing_field_initializers=yes |
| 7615 | else |
| 7616 | gl_cv_warn_c__Wno_missing_field_initializers=no |
| 7617 | fi |
| 7618 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7619 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7620 | |
| 7621 | fi |
| 7622 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5 |
| 7623 | $as_echo "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; } |
| 7624 | if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = x""yes; then : |
| 7625 | as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers" |
| 7626 | fi |
| 7627 | |
| 7628 | # We need this one |
| 7629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5 |
| 7630 | $as_echo_n "checking whether C compiler handles -Wno-sign-compare... " >&6; } |
| 7631 | if test "${gl_cv_warn_c__Wno_sign_compare+set}" = set; then : |
| 7632 | $as_echo_n "(cached) " >&6 |
| 7633 | else |
| 7634 | |
| 7635 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7636 | as_fn_append CFLAGS " -Wno-sign-compare" |
| 7637 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7638 | /* end confdefs.h. */ |
| 7639 | |
| 7640 | int |
| 7641 | main () |
| 7642 | { |
| 7643 | |
| 7644 | ; |
| 7645 | return 0; |
| 7646 | } |
| 7647 | _ACEOF |
| 7648 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7649 | gl_cv_warn_c__Wno_sign_compare=yes |
| 7650 | else |
| 7651 | gl_cv_warn_c__Wno_sign_compare=no |
| 7652 | fi |
| 7653 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7654 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7655 | |
| 7656 | fi |
| 7657 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5 |
| 7658 | $as_echo "$gl_cv_warn_c__Wno_sign_compare" >&6; } |
| 7659 | if test "x$gl_cv_warn_c__Wno_sign_compare" = x""yes; then : |
| 7660 | as_fn_append WARN_CFLAGS " -Wno-sign-compare" |
| 7661 | fi |
| 7662 | |
| 7663 | # Too many warnings for now |
| 7664 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-type-limits" >&5 |
| 7665 | $as_echo_n "checking whether C compiler handles -Wno-type-limits... " >&6; } |
| 7666 | if test "${gl_cv_warn_c__Wno_type_limits+set}" = set; then : |
| 7667 | $as_echo_n "(cached) " >&6 |
| 7668 | else |
| 7669 | |
| 7670 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7671 | as_fn_append CFLAGS " -Wno-type-limits" |
| 7672 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7673 | /* end confdefs.h. */ |
| 7674 | |
| 7675 | int |
| 7676 | main () |
| 7677 | { |
| 7678 | |
| 7679 | ; |
| 7680 | return 0; |
| 7681 | } |
| 7682 | _ACEOF |
| 7683 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7684 | gl_cv_warn_c__Wno_type_limits=yes |
| 7685 | else |
| 7686 | gl_cv_warn_c__Wno_type_limits=no |
| 7687 | fi |
| 7688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7689 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7690 | |
| 7691 | fi |
| 7692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_type_limits" >&5 |
| 7693 | $as_echo "$gl_cv_warn_c__Wno_type_limits" >&6; } |
| 7694 | if test "x$gl_cv_warn_c__Wno_type_limits" = x""yes; then : |
| 7695 | as_fn_append WARN_CFLAGS " -Wno-type-limits" |
| 7696 | fi |
| 7697 | |
| 7698 | # Too many warnings for now |
| 7699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-switch" >&5 |
| 7700 | $as_echo_n "checking whether C compiler handles -Wno-switch... " >&6; } |
| 7701 | if test "${gl_cv_warn_c__Wno_switch+set}" = set; then : |
| 7702 | $as_echo_n "(cached) " >&6 |
| 7703 | else |
| 7704 | |
| 7705 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7706 | as_fn_append CFLAGS " -Wno-switch" |
| 7707 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7708 | /* end confdefs.h. */ |
| 7709 | |
| 7710 | int |
| 7711 | main () |
| 7712 | { |
| 7713 | |
| 7714 | ; |
| 7715 | return 0; |
| 7716 | } |
| 7717 | _ACEOF |
| 7718 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7719 | gl_cv_warn_c__Wno_switch=yes |
| 7720 | else |
| 7721 | gl_cv_warn_c__Wno_switch=no |
| 7722 | fi |
| 7723 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7724 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7725 | |
| 7726 | fi |
| 7727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_switch" >&5 |
| 7728 | $as_echo "$gl_cv_warn_c__Wno_switch" >&6; } |
| 7729 | if test "x$gl_cv_warn_c__Wno_switch" = x""yes; then : |
| 7730 | as_fn_append WARN_CFLAGS " -Wno-switch" |
| 7731 | fi |
| 7732 | |
| 7733 | # Too many warnings for now |
| 7734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5 |
| 7735 | $as_echo_n "checking whether C compiler handles -Wno-unused-parameter... " >&6; } |
| 7736 | if test "${gl_cv_warn_c__Wno_unused_parameter+set}" = set; then : |
| 7737 | $as_echo_n "(cached) " >&6 |
| 7738 | else |
| 7739 | |
| 7740 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7741 | as_fn_append CFLAGS " -Wno-unused-parameter" |
| 7742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7743 | /* end confdefs.h. */ |
| 7744 | |
| 7745 | int |
| 7746 | main () |
| 7747 | { |
| 7748 | |
| 7749 | ; |
| 7750 | return 0; |
| 7751 | } |
| 7752 | _ACEOF |
| 7753 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7754 | gl_cv_warn_c__Wno_unused_parameter=yes |
| 7755 | else |
| 7756 | gl_cv_warn_c__Wno_unused_parameter=no |
| 7757 | fi |
| 7758 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7759 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7760 | |
| 7761 | fi |
| 7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5 |
| 7763 | $as_echo "$gl_cv_warn_c__Wno_unused_parameter" >&6; } |
| 7764 | if test "x$gl_cv_warn_c__Wno_unused_parameter" = x""yes; then : |
| 7765 | as_fn_append WARN_CFLAGS " -Wno-unused-parameter" |
| 7766 | fi |
| 7767 | |
| 7768 | # Too many warnings for now |
| 7769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5 |
| 7770 | $as_echo_n "checking whether C compiler handles -Wno-format-nonliteral... " >&6; } |
| 7771 | if test "${gl_cv_warn_c__Wno_format_nonliteral+set}" = set; then : |
| 7772 | $as_echo_n "(cached) " >&6 |
| 7773 | else |
| 7774 | |
| 7775 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7776 | as_fn_append CFLAGS " -Wno-format-nonliteral" |
| 7777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7778 | /* end confdefs.h. */ |
| 7779 | |
| 7780 | int |
| 7781 | main () |
| 7782 | { |
| 7783 | |
| 7784 | ; |
| 7785 | return 0; |
| 7786 | } |
| 7787 | _ACEOF |
| 7788 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7789 | gl_cv_warn_c__Wno_format_nonliteral=yes |
| 7790 | else |
| 7791 | gl_cv_warn_c__Wno_format_nonliteral=no |
| 7792 | fi |
| 7793 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7794 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7795 | |
| 7796 | fi |
| 7797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5 |
| 7798 | $as_echo "$gl_cv_warn_c__Wno_format_nonliteral" >&6; } |
| 7799 | if test "x$gl_cv_warn_c__Wno_format_nonliteral" = x""yes; then : |
| 7800 | as_fn_append WARN_CFLAGS " -Wno-format-nonliteral" |
| 7801 | fi |
| 7802 | |
| 7803 | |
| 7804 | |
| 7805 | # In spite of excluding -Wlogical-op above, it is enabled, as of |
| 7806 | # gcc 4.5.0 20090517. |
| 7807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5 |
| 7808 | $as_echo_n "checking whether C compiler handles -Wno-logical-op... " >&6; } |
| 7809 | if test "${gl_cv_warn_c__Wno_logical_op+set}" = set; then : |
| 7810 | $as_echo_n "(cached) " >&6 |
| 7811 | else |
| 7812 | |
| 7813 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7814 | as_fn_append CFLAGS " -Wno-logical-op" |
| 7815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7816 | /* end confdefs.h. */ |
| 7817 | |
| 7818 | int |
| 7819 | main () |
| 7820 | { |
| 7821 | |
| 7822 | ; |
| 7823 | return 0; |
| 7824 | } |
| 7825 | _ACEOF |
| 7826 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7827 | gl_cv_warn_c__Wno_logical_op=yes |
| 7828 | else |
| 7829 | gl_cv_warn_c__Wno_logical_op=no |
| 7830 | fi |
| 7831 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7832 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7833 | |
| 7834 | fi |
| 7835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5 |
| 7836 | $as_echo "$gl_cv_warn_c__Wno_logical_op" >&6; } |
| 7837 | if test "x$gl_cv_warn_c__Wno_logical_op" = x""yes; then : |
| 7838 | as_fn_append WARN_CFLAGS " -Wno-logical-op" |
| 7839 | fi |
| 7840 | |
| 7841 | |
| 7842 | |
| 7843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5 |
| 7844 | $as_echo_n "checking whether C compiler handles -fdiagnostics-show-option... " >&6; } |
| 7845 | if test "${gl_cv_warn_c__fdiagnostics_show_option+set}" = set; then : |
| 7846 | $as_echo_n "(cached) " >&6 |
| 7847 | else |
| 7848 | |
| 7849 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7850 | as_fn_append CFLAGS " -fdiagnostics-show-option" |
| 7851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7852 | /* end confdefs.h. */ |
| 7853 | |
| 7854 | int |
| 7855 | main () |
| 7856 | { |
| 7857 | |
| 7858 | ; |
| 7859 | return 0; |
| 7860 | } |
| 7861 | _ACEOF |
| 7862 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7863 | gl_cv_warn_c__fdiagnostics_show_option=yes |
| 7864 | else |
| 7865 | gl_cv_warn_c__fdiagnostics_show_option=no |
| 7866 | fi |
| 7867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7868 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7869 | |
| 7870 | fi |
| 7871 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5 |
| 7872 | $as_echo "$gl_cv_warn_c__fdiagnostics_show_option" >&6; } |
| 7873 | if test "x$gl_cv_warn_c__fdiagnostics_show_option" = x""yes; then : |
| 7874 | as_fn_append WARN_CFLAGS " -fdiagnostics-show-option" |
| 7875 | fi |
| 7876 | |
| 7877 | |
| 7878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5 |
| 7879 | $as_echo_n "checking whether C compiler handles -funit-at-a-time... " >&6; } |
| 7880 | if test "${gl_cv_warn_c__funit_at_a_time+set}" = set; then : |
| 7881 | $as_echo_n "(cached) " >&6 |
| 7882 | else |
| 7883 | |
| 7884 | gl_save_compiler_FLAGS="$CFLAGS" |
| 7885 | as_fn_append CFLAGS " -funit-at-a-time" |
| 7886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 7887 | /* end confdefs.h. */ |
| 7888 | |
| 7889 | int |
| 7890 | main () |
| 7891 | { |
| 7892 | |
| 7893 | ; |
| 7894 | return 0; |
| 7895 | } |
| 7896 | _ACEOF |
| 7897 | if ac_fn_c_try_compile "$LINENO"; then : |
| 7898 | gl_cv_warn_c__funit_at_a_time=yes |
| 7899 | else |
| 7900 | gl_cv_warn_c__funit_at_a_time=no |
| 7901 | fi |
| 7902 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 7903 | CFLAGS="$gl_save_compiler_FLAGS" |
| 7904 | |
| 7905 | fi |
| 7906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5 |
| 7907 | $as_echo "$gl_cv_warn_c__funit_at_a_time" >&6; } |
| 7908 | if test "x$gl_cv_warn_c__funit_at_a_time" = x""yes; then : |
| 7909 | as_fn_append WARN_CFLAGS " -funit-at-a-time" |
| 7910 | fi |
| 7911 | |
| 7912 | |
| 7913 | |
| 7914 | |
| 7915 | $as_echo "#define lint 1" >>confdefs.h |
| 7916 | |
| 7917 | |
| 7918 | |
| 7919 | $as_echo "#define GNULIB_PORTCHECK 1" >>confdefs.h |
| 7920 | |
| 7921 | |
| 7922 | # We use a slightly smaller set of warning options for lib/. |
| 7923 | # Remove the following and save the result in GNULIB_WARN_CFLAGS. |
| 7924 | nw= |
| 7925 | nw="$nw -Wunused-macros" |
| 7926 | |
| 7927 | |
| 7928 | gl_warn_set= |
| 7929 | set x $WARN_CFLAGS; shift |
| 7930 | for gl_warn_item |
| 7931 | do |
| 7932 | case " $nw " in |
| 7933 | *" $gl_warn_item "*) |
| 7934 | ;; |
| 7935 | *) |
| 7936 | gl_warn_set="$gl_warn_set $gl_warn_item" |
| 7937 | ;; |
| 7938 | esac |
| 7939 | done |
| 7940 | GNULIB_WARN_CFLAGS=$gl_warn_set |
| 7941 | |
| 7942 | |
| 7943 | fi |
| 7944 | |
| 7945 | |
| 7946 | |
| 7947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
| 7948 | $as_echo_n "checking whether ln -s works... " >&6; } |
| 7949 | LN_S=$as_ln_s |
| 7950 | if test "$LN_S" = "ln -s"; then |
| 7951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 7952 | $as_echo "yes" >&6; } |
| 7953 | else |
| 7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
| 7955 | $as_echo "no, using $LN_S" >&6; } |
| 7956 | fi |
| 7957 | |
| 7958 | |
| 7959 | # Extract the first word of "install-info", so it can be a program name with args. |
| 7960 | set dummy install-info; ac_word=$2 |
| 7961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 7962 | $as_echo_n "checking for $ac_word... " >&6; } |
| 7963 | if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : |
| 7964 | $as_echo_n "(cached) " >&6 |
| 7965 | else |
| 7966 | case $INSTALL_INFO in |
| 7967 | [\\/]* | ?:[\\/]*) |
| 7968 | ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. |
| 7969 | ;; |
| 7970 | *) |
| 7971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 7972 | for as_dir in $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin |
| 7973 | do |
| 7974 | IFS=$as_save_IFS |
| 7975 | test -z "$as_dir" && as_dir=. |
| 7976 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 7977 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 7978 | ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" |
| 7979 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 7980 | break 2 |
| 7981 | fi |
| 7982 | done |
| 7983 | done |
| 7984 | IFS=$as_save_IFS |
| 7985 | |
| 7986 | test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" |
| 7987 | ;; |
| 7988 | esac |
| 7989 | fi |
| 7990 | INSTALL_INFO=$ac_cv_path_INSTALL_INFO |
| 7991 | if test -n "$INSTALL_INFO"; then |
| 7992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 |
| 7993 | $as_echo "$INSTALL_INFO" >&6; } |
| 7994 | else |
| 7995 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 7996 | $as_echo "no" >&6; } |
| 7997 | fi |
| 7998 | |
| 7999 | |
| 8000 | # Extract the first word of "gzip", so it can be a program name with args. |
| 8001 | set dummy gzip; ac_word=$2 |
| 8002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8003 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8004 | if test "${ac_cv_path_GZIP_PROG+set}" = set; then : |
| 8005 | $as_echo_n "(cached) " >&6 |
| 8006 | else |
| 8007 | case $GZIP_PROG in |
| 8008 | [\\/]* | ?:[\\/]*) |
| 8009 | ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. |
| 8010 | ;; |
| 8011 | *) |
| 8012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8013 | for as_dir in $PATH |
| 8014 | do |
| 8015 | IFS=$as_save_IFS |
| 8016 | test -z "$as_dir" && as_dir=. |
| 8017 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8019 | ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" |
| 8020 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8021 | break 2 |
| 8022 | fi |
| 8023 | done |
| 8024 | done |
| 8025 | IFS=$as_save_IFS |
| 8026 | |
| 8027 | ;; |
| 8028 | esac |
| 8029 | fi |
| 8030 | GZIP_PROG=$ac_cv_path_GZIP_PROG |
| 8031 | if test -n "$GZIP_PROG"; then |
| 8032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 |
| 8033 | $as_echo "$GZIP_PROG" >&6; } |
| 8034 | else |
| 8035 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8036 | $as_echo "no" >&6; } |
| 8037 | fi |
| 8038 | |
| 8039 | |
| 8040 | |
| 8041 | if test $opsys = gnu-linux; then |
| 8042 | # Extract the first word of "paxctl", so it can be a program name with args. |
| 8043 | set dummy paxctl; ac_word=$2 |
| 8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8045 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8046 | if test "${ac_cv_path_PAXCTL+set}" = set; then : |
| 8047 | $as_echo_n "(cached) " >&6 |
| 8048 | else |
| 8049 | case $PAXCTL in |
| 8050 | [\\/]* | ?:[\\/]*) |
| 8051 | ac_cv_path_PAXCTL="$PAXCTL" # Let the user override the test with a path. |
| 8052 | ;; |
| 8053 | *) |
| 8054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8055 | for as_dir in $PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin |
| 8056 | do |
| 8057 | IFS=$as_save_IFS |
| 8058 | test -z "$as_dir" && as_dir=. |
| 8059 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8061 | ac_cv_path_PAXCTL="$as_dir/$ac_word$ac_exec_ext" |
| 8062 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8063 | break 2 |
| 8064 | fi |
| 8065 | done |
| 8066 | done |
| 8067 | IFS=$as_save_IFS |
| 8068 | |
| 8069 | ;; |
| 8070 | esac |
| 8071 | fi |
| 8072 | PAXCTL=$ac_cv_path_PAXCTL |
| 8073 | if test -n "$PAXCTL"; then |
| 8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PAXCTL" >&5 |
| 8075 | $as_echo "$PAXCTL" >&6; } |
| 8076 | else |
| 8077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8078 | $as_echo "no" >&6; } |
| 8079 | fi |
| 8080 | |
| 8081 | |
| 8082 | if test "X$PAXCTL" != X; then |
| 8083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether binaries have a PT_PAX_FLAGS header" >&5 |
| 8084 | $as_echo_n "checking whether binaries have a PT_PAX_FLAGS header... " >&6; } |
| 8085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8086 | /* end confdefs.h. */ |
| 8087 | |
| 8088 | int |
| 8089 | main () |
| 8090 | { |
| 8091 | |
| 8092 | ; |
| 8093 | return 0; |
| 8094 | } |
| 8095 | _ACEOF |
| 8096 | if ac_fn_c_try_link "$LINENO"; then : |
| 8097 | if $PAXCTL -v conftest$EXEEXT >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8098 | $as_echo "yes" >&6; } |
| 8099 | else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8100 | $as_echo "no" >&6; }; PAXCTL=""; fi |
| 8101 | fi |
| 8102 | rm -f core conftest.err conftest.$ac_objext \ |
| 8103 | conftest$ac_exeext conftest.$ac_ext |
| 8104 | fi |
| 8105 | fi |
| 8106 | |
| 8107 | ## Need makeinfo >= 4.7 (?) to build the manuals. |
| 8108 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 8109 | set dummy makeinfo; ac_word=$2 |
| 8110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8111 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8112 | if test "${ac_cv_path_MAKEINFO+set}" = set; then : |
| 8113 | $as_echo_n "(cached) " >&6 |
| 8114 | else |
| 8115 | case $MAKEINFO in |
| 8116 | [\\/]* | ?:[\\/]*) |
| 8117 | ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. |
| 8118 | ;; |
| 8119 | *) |
| 8120 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8121 | for as_dir in $PATH |
| 8122 | do |
| 8123 | IFS=$as_save_IFS |
| 8124 | test -z "$as_dir" && as_dir=. |
| 8125 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8126 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8127 | ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" |
| 8128 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8129 | break 2 |
| 8130 | fi |
| 8131 | done |
| 8132 | done |
| 8133 | IFS=$as_save_IFS |
| 8134 | |
| 8135 | test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" |
| 8136 | ;; |
| 8137 | esac |
| 8138 | fi |
| 8139 | MAKEINFO=$ac_cv_path_MAKEINFO |
| 8140 | if test -n "$MAKEINFO"; then |
| 8141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
| 8142 | $as_echo "$MAKEINFO" >&6; } |
| 8143 | else |
| 8144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8145 | $as_echo "no" >&6; } |
| 8146 | fi |
| 8147 | |
| 8148 | |
| 8149 | if test "$MAKEINFO" != "no" && \ |
| 8150 | test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[7-9]|4\.[1-6][0-9]+)'`" = x; then |
| 8151 | MAKEINFO=no |
| 8152 | fi |
| 8153 | |
| 8154 | ## Makeinfo is unusual. For a released Emacs, the manuals are |
| 8155 | ## pre-built, and not deleted by the normal clean rules. makeinfo is |
| 8156 | ## therefore in the category of "special tools" not normally required, which |
| 8157 | ## configure does not have to check for (eg autoconf itself). |
| 8158 | ## In a Bazaar checkout on the other hand, the manuals are not included. |
| 8159 | ## So makeinfo is a requirement to build from Bazaar, and configure |
| 8160 | ## should test for it as it does for any other build requirement. |
| 8161 | ## We use the presence of $srcdir/info/emacs to distinguish a release, |
| 8162 | ## with pre-built manuals, from a Bazaar checkout. |
| 8163 | HAVE_MAKEINFO=yes |
| 8164 | |
| 8165 | if test "$MAKEINFO" = "no"; then |
| 8166 | MAKEINFO=makeinfo |
| 8167 | if test "x${with_makeinfo}" = "xno"; then |
| 8168 | HAVE_MAKEINFO=no |
| 8169 | elif test ! -e $srcdir/info/emacs && test ! -e $srcdir/info/emacs.info; then |
| 8170 | as_fn_error "You do not seem to have makeinfo >= 4.7, and your |
| 8171 | source tree does not seem to have pre-built manuals in the \`info' directory. |
| 8172 | Either install a suitable version of makeinfo, or re-run configure |
| 8173 | with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 |
| 8174 | fi |
| 8175 | fi |
| 8176 | |
| 8177 | |
| 8178 | INFO_EXT=.info |
| 8179 | INFO_OPTS=--no-split |
| 8180 | |
| 8181 | |
| 8182 | |
| 8183 | |
| 8184 | if test x$GCC = xyes; then |
| 8185 | test "x$GCC_LINK_TEST_OPTIONS" != x && \ |
| 8186 | ac_link="$ac_link $GCC_LINK_TEST_OPTIONS" |
| 8187 | else |
| 8188 | test "x$NON_GCC_LINK_TEST_OPTIONS" != x && \ |
| 8189 | ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS" |
| 8190 | fi |
| 8191 | |
| 8192 | |
| 8193 | late_LDFLAGS=$LDFLAGS |
| 8194 | if test x$GCC = xyes; then |
| 8195 | LDFLAGS="$LDFLAGS -Wl,-znocombreloc" |
| 8196 | else |
| 8197 | LDFLAGS="$LDFLAGS -znocombreloc" |
| 8198 | fi |
| 8199 | |
| 8200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 |
| 8201 | $as_echo_n "checking for -znocombreloc... " >&6; } |
| 8202 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8203 | /* end confdefs.h. */ |
| 8204 | |
| 8205 | int |
| 8206 | main () |
| 8207 | { |
| 8208 | |
| 8209 | ; |
| 8210 | return 0; |
| 8211 | } |
| 8212 | _ACEOF |
| 8213 | if ac_fn_c_try_link "$LINENO"; then : |
| 8214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 8215 | $as_echo "yes" >&6; } |
| 8216 | else |
| 8217 | LDFLAGS=$late_LDFLAGS |
| 8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8219 | $as_echo "no" >&6; } |
| 8220 | fi |
| 8221 | rm -f core conftest.err conftest.$ac_objext \ |
| 8222 | conftest$ac_exeext conftest.$ac_ext |
| 8223 | |
| 8224 | |
| 8225 | test "x$CANNOT_DUMP" = "x" && CANNOT_DUMP=no |
| 8226 | case "$opsys" in |
| 8227 | your-opsys-here) CANNOT_DUMP=yes ;; |
| 8228 | esac |
| 8229 | |
| 8230 | test "$CANNOT_DUMP" = "yes" && \ |
| 8231 | |
| 8232 | $as_echo "#define CANNOT_DUMP 1" >>confdefs.h |
| 8233 | |
| 8234 | |
| 8235 | |
| 8236 | |
| 8237 | |
| 8238 | UNEXEC_OBJ=unexelf.o |
| 8239 | case "$opsys" in |
| 8240 | # MSDOS uses unexcoff.o |
| 8241 | # MSWindows uses unexw32.o |
| 8242 | aix4-2) |
| 8243 | UNEXEC_OBJ=unexaix.o |
| 8244 | ;; |
| 8245 | cygwin) |
| 8246 | UNEXEC_OBJ=unexcw.o |
| 8247 | ;; |
| 8248 | darwin) |
| 8249 | UNEXEC_OBJ=unexmacosx.o |
| 8250 | ;; |
| 8251 | hpux10-20 | hpux11) |
| 8252 | UNEXEC_OBJ=unexhp9k800.o |
| 8253 | ;; |
| 8254 | sol2-10) |
| 8255 | # Use the Solaris dldump() function, called from unexsol.c, to dump |
| 8256 | # emacs, instead of the generic ELF dump code found in unexelf.c. |
| 8257 | # The resulting binary has a complete symbol table, and is better |
| 8258 | # for debugging and other observability tools (debuggers, pstack, etc). |
| 8259 | # |
| 8260 | # If you encounter a problem using dldump(), please consider sending |
| 8261 | # a message to the OpenSolaris tools-linking mailing list: |
| 8262 | # http://mail.opensolaris.org/mailman/listinfo/tools-linking |
| 8263 | # |
| 8264 | # It is likely that dldump() works with older Solaris too, but this has |
| 8265 | # not been tested, so for now this change is for Solaris 10 or newer. |
| 8266 | UNEXEC_OBJ=unexsol.o |
| 8267 | ;; |
| 8268 | esac |
| 8269 | |
| 8270 | LD_SWITCH_SYSTEM= |
| 8271 | case "$opsys" in |
| 8272 | freebsd) |
| 8273 | ## Let `ld' find image libs and similar things in /usr/local/lib. |
| 8274 | ## The system compiler, GCC, has apparently been modified to not |
| 8275 | ## look there, contrary to what a stock GCC would do. |
| 8276 | ### It's not our place to do this. See bug#10313#17. |
| 8277 | ### LD_SWITCH_SYSTEM=-L/usr/local/lib |
| 8278 | : |
| 8279 | ;; |
| 8280 | |
| 8281 | gnu-linux) |
| 8282 | ## cpp test was "ifdef __mips__", but presumably this is equivalent... |
| 8283 | case $host_cpu in mips*) LD_SWITCH_SYSTEM="-G 0";; esac |
| 8284 | ;; |
| 8285 | |
| 8286 | netbsd) |
| 8287 | ### It's not our place to do this. See bug#10313#17. |
| 8288 | ### LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib" |
| 8289 | : |
| 8290 | ;; |
| 8291 | |
| 8292 | openbsd) |
| 8293 | ## Han Boetes <han@mijncomputer.nl> says this is necessary, |
| 8294 | ## otherwise Emacs dumps core on elf systems. |
| 8295 | LD_SWITCH_SYSTEM="-Z" |
| 8296 | ;; |
| 8297 | esac |
| 8298 | |
| 8299 | |
| 8300 | ac_link="$ac_link $LD_SWITCH_SYSTEM" |
| 8301 | |
| 8302 | ## This setting of LD_SWITCH_SYSTEM references LD_SWITCH_X_SITE_RPATH, |
| 8303 | ## which has not been defined yet. When this was handled with cpp, |
| 8304 | ## it was expanded to null when configure sourced the s/*.h file. |
| 8305 | ## Thus LD_SWITCH_SYSTEM had different values in configure and the Makefiles. |
| 8306 | ## FIXME it would be cleaner to put this in LD_SWITCH_SYSTEM_TEMACS |
| 8307 | ## (or somesuch), but because it is supposed to go at the _front_ |
| 8308 | ## of LD_SWITCH_SYSTEM, we cannot do that in exactly the same way. |
| 8309 | ## Compare with the gnu-linux case below, which added to the end |
| 8310 | ## of LD_SWITCH_SYSTEM, and so can instead go at the front of |
| 8311 | ## LD_SWITCH_SYSTEM_TEMACS. |
| 8312 | case "$opsys" in |
| 8313 | netbsd|openbsd) |
| 8314 | LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_RPATH) $LD_SWITCH_SYSTEM" ;; |
| 8315 | esac |
| 8316 | |
| 8317 | |
| 8318 | C_SWITCH_MACHINE= |
| 8319 | case $canonical in |
| 8320 | alpha*) |
| 8321 | ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" |
| 8322 | if test "x$ac_cv_have_decl___ELF__" = x""yes; then : |
| 8323 | |
| 8324 | fi |
| 8325 | |
| 8326 | if test "$ac_cv_have_decl___ELF__" = "yes"; then |
| 8327 | ## With ELF, make sure that all common symbols get allocated to in the |
| 8328 | ## data section. Otherwise, the dump of temacs may miss variables in |
| 8329 | ## the shared library that have been initialized. For example, with |
| 8330 | ## GNU libc, __malloc_initialized would normally be resolved to the |
| 8331 | ## shared library's .bss section, which is fatal. |
| 8332 | if test "x$GCC" = "xyes"; then |
| 8333 | C_SWITCH_MACHINE="-fno-common" |
| 8334 | else |
| 8335 | as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 |
| 8336 | fi |
| 8337 | else |
| 8338 | UNEXEC_OBJ=unexalpha.o |
| 8339 | fi |
| 8340 | ;; |
| 8341 | esac |
| 8342 | |
| 8343 | |
| 8344 | |
| 8345 | |
| 8346 | C_SWITCH_SYSTEM= |
| 8347 | ## Some programs in src produce warnings saying certain subprograms |
| 8348 | ## are too complex and need a MAXMEM value greater than 2000 for |
| 8349 | ## additional optimization. --nils@exp-math.uni-essen.de |
| 8350 | test "$opsys" = "aix4.2" && test "x$GCC" != "xyes" && \ |
| 8351 | C_SWITCH_SYSTEM="-ma -qmaxmem=4000" |
| 8352 | ## gnu-linux might need -D_BSD_SOURCE on old libc5 systems. |
| 8353 | ## It is redundant in glibc2, since we define _GNU_SOURCE. |
| 8354 | |
| 8355 | |
| 8356 | |
| 8357 | LIBS_SYSTEM= |
| 8358 | case "$opsys" in |
| 8359 | ## IBM's X11R5 uses -lIM and -liconv in AIX 3.2.2. |
| 8360 | aix4-2) LIBS_SYSTEM="-lrts -lIM -liconv" ;; |
| 8361 | |
| 8362 | freebsd) LIBS_SYSTEM="-lutil" ;; |
| 8363 | |
| 8364 | hpux*) LIBS_SYSTEM="-l:libdld.sl" ;; |
| 8365 | |
| 8366 | sol2*) LIBS_SYSTEM="-lsocket -lnsl" ;; |
| 8367 | |
| 8368 | ## Motif needs -lgen. |
| 8369 | unixware) LIBS_SYSTEM="-lsocket -lnsl -lelf -lgen" ;; |
| 8370 | esac |
| 8371 | |
| 8372 | |
| 8373 | |
| 8374 | ### Make sure subsequent tests use flags consistent with the build flags. |
| 8375 | |
| 8376 | if test x"${OVERRIDE_CPPFLAGS}" != x; then |
| 8377 | CPPFLAGS="${OVERRIDE_CPPFLAGS}" |
| 8378 | else |
| 8379 | CPPFLAGS="$C_SWITCH_SYSTEM $C_SWITCH_MACHINE $CPPFLAGS" |
| 8380 | fi |
| 8381 | |
| 8382 | # Suppress obsolescent Autoconf test for size_t; Emacs assumes C89 or better. |
| 8383 | |
| 8384 | # Likewise for obsolescent test for uid_t, gid_t; Emacs assumes them. |
| 8385 | |
| 8386 | |
| 8387 | |
| 8388 | LIB_MATH=-lm |
| 8389 | LIB_STANDARD= |
| 8390 | START_FILES= |
| 8391 | SYSTEM_TYPE=`echo $opsys | sed -e 's/[0-9].*//' -e 's|-|/|'` |
| 8392 | |
| 8393 | case $opsys in |
| 8394 | cygwin ) |
| 8395 | LIB_MATH= |
| 8396 | START_FILES='pre-crt0.o' |
| 8397 | ;; |
| 8398 | darwin ) |
| 8399 | ## Adding -lm confuses the dynamic linker, so omit it. |
| 8400 | LIB_MATH= |
| 8401 | START_FILES='pre-crt0.o' |
| 8402 | ;; |
| 8403 | freebsd ) |
| 8404 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o' |
| 8405 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o' |
| 8406 | SYSTEM_TYPE=berkeley-unix |
| 8407 | ;; |
| 8408 | gnu-linux | gnu-kfreebsd ) |
| 8409 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o' |
| 8410 | START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o' |
| 8411 | ;; |
| 8412 | hpux10-20 | hpux11 ) |
| 8413 | LIB_STANDARD=-lc |
| 8414 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o' |
| 8415 | ;; |
| 8416 | netbsd | openbsd ) |
| 8417 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o' |
| 8418 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o' |
| 8419 | SYSTEM_TYPE=berkeley-unix |
| 8420 | ;; |
| 8421 | |
| 8422 | sol2* | unixware ) |
| 8423 | SYSTEM_TYPE=usg-unix-v |
| 8424 | ;; |
| 8425 | |
| 8426 | esac |
| 8427 | |
| 8428 | |
| 8429 | |
| 8430 | |
| 8431 | cat >>confdefs.h <<_ACEOF |
| 8432 | #define SYSTEM_TYPE "$SYSTEM_TYPE" |
| 8433 | _ACEOF |
| 8434 | |
| 8435 | |
| 8436 | crt_files= |
| 8437 | |
| 8438 | for file in x $LIB_STANDARD $START_FILES; do |
| 8439 | case "$file" in |
| 8440 | *CRT_DIR*) crt_files="$crt_files `echo $file | sed -e 's|.*/||'`" ;; |
| 8441 | esac |
| 8442 | done |
| 8443 | |
| 8444 | if test "x$crt_files" != x; then |
| 8445 | |
| 8446 | ## If user specified a crt-dir, use that unconditionally. |
| 8447 | crt_gcc=no |
| 8448 | |
| 8449 | if test "X$CRT_DIR" = "X"; then |
| 8450 | |
| 8451 | CRT_DIR=/usr/lib # default |
| 8452 | |
| 8453 | case "$canonical" in |
| 8454 | x86_64-*-linux-gnu* | s390x-*-linux-gnu*) |
| 8455 | ## On x86-64 and s390x GNU/Linux distributions, the standard library |
| 8456 | ## can be in a variety of places. We only try /usr/lib64 and /usr/lib. |
| 8457 | ## For anything else (eg /usr/lib32), it is up the user to specify |
| 8458 | ## the location (bug#5655). |
| 8459 | ## Test for crtn.o, not just the directory, because sometimes the |
| 8460 | ## directory exists but does not have the relevant files (bug#1287). |
| 8461 | ## FIXME better to test for binary compatibility somehow. |
| 8462 | test -e /usr/lib64/crtn.o && CRT_DIR=/usr/lib64 |
| 8463 | ;; |
| 8464 | |
| 8465 | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) CRT_DIR=/usr/lib64 ;; |
| 8466 | esac |
| 8467 | |
| 8468 | case "$opsys" in |
| 8469 | hpux10-20) CRT_DIR=/lib ;; |
| 8470 | esac |
| 8471 | |
| 8472 | test "x${GCC}" = xyes && crt_gcc=yes |
| 8473 | |
| 8474 | fi # CRT_DIR = "" |
| 8475 | |
| 8476 | crt_missing= |
| 8477 | |
| 8478 | for file in $crt_files; do |
| 8479 | |
| 8480 | ## If we're using gcc, try to determine it automatically by asking |
| 8481 | ## gcc. [If this doesn't work, CRT_DIR will remain at the |
| 8482 | ## system-dependent default from above.] |
| 8483 | if test $crt_gcc = yes && test ! -e $CRT_DIR/$file; then |
| 8484 | |
| 8485 | crt_file=`$CC --print-file-name=$file 2>/dev/null` |
| 8486 | case "$crt_file" in |
| 8487 | */*) |
| 8488 | CRT_DIR=`$as_dirname -- "$crt_file" || |
| 8489 | $as_expr X"$crt_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 8490 | X"$crt_file" : 'X\(//\)[^/]' \| \ |
| 8491 | X"$crt_file" : 'X\(//\)$' \| \ |
| 8492 | X"$crt_file" : 'X\(/\)' \| . 2>/dev/null || |
| 8493 | $as_echo X"$crt_file" | |
| 8494 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 8495 | s//\1/ |
| 8496 | q |
| 8497 | } |
| 8498 | /^X\(\/\/\)[^/].*/{ |
| 8499 | s//\1/ |
| 8500 | q |
| 8501 | } |
| 8502 | /^X\(\/\/\)$/{ |
| 8503 | s//\1/ |
| 8504 | q |
| 8505 | } |
| 8506 | /^X\(\/\).*/{ |
| 8507 | s//\1/ |
| 8508 | q |
| 8509 | } |
| 8510 | s/.*/./; q'` |
| 8511 | ;; |
| 8512 | esac |
| 8513 | fi |
| 8514 | |
| 8515 | crt_gcc=no |
| 8516 | |
| 8517 | test -e $CRT_DIR/$file || crt_missing="$crt_missing $file" |
| 8518 | done # $crt_files |
| 8519 | |
| 8520 | test "x$crt_missing" = x || \ |
| 8521 | as_fn_error "Required file(s) not found:$crt_missing |
| 8522 | Try using the --with-crt-dir option." "$LINENO" 5 |
| 8523 | |
| 8524 | fi # crt_files != "" |
| 8525 | |
| 8526 | |
| 8527 | |
| 8528 | case $opsys in |
| 8529 | netbsd | openbsd ) |
| 8530 | if test -f $CRT_DIR/crti.o; then |
| 8531 | |
| 8532 | test -f $CRT_DIR/crtn.o || \ |
| 8533 | as_fn_error "Required file not found: crtn.o" "$LINENO" 5 |
| 8534 | |
| 8535 | LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o $(CRT_DIR)/crtn.o' |
| 8536 | START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o $(CRT_DIR)/crtbegin.o' |
| 8537 | fi |
| 8538 | ;; |
| 8539 | esac |
| 8540 | |
| 8541 | |
| 8542 | pre_PKG_CONFIG_CFLAGS=$CFLAGS |
| 8543 | pre_PKG_CONFIG_LIBS=$LIBS |
| 8544 | |
| 8545 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 8546 | set dummy pkg-config; ac_word=$2 |
| 8547 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 8548 | $as_echo_n "checking for $ac_word... " >&6; } |
| 8549 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| 8550 | $as_echo_n "(cached) " >&6 |
| 8551 | else |
| 8552 | case $PKG_CONFIG in |
| 8553 | [\\/]* | ?:[\\/]*) |
| 8554 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 8555 | ;; |
| 8556 | *) |
| 8557 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8558 | for as_dir in $PATH |
| 8559 | do |
| 8560 | IFS=$as_save_IFS |
| 8561 | test -z "$as_dir" && as_dir=. |
| 8562 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 8563 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 8564 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 8565 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 8566 | break 2 |
| 8567 | fi |
| 8568 | done |
| 8569 | done |
| 8570 | IFS=$as_save_IFS |
| 8571 | |
| 8572 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
| 8573 | ;; |
| 8574 | esac |
| 8575 | fi |
| 8576 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 8577 | if test -n "$PKG_CONFIG"; then |
| 8578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 8579 | $as_echo "$PKG_CONFIG" >&6; } |
| 8580 | else |
| 8581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8582 | $as_echo "no" >&6; } |
| 8583 | fi |
| 8584 | |
| 8585 | |
| 8586 | |
| 8587 | |
| 8588 | |
| 8589 | |
| 8590 | if test "${with_sound}" != "no"; then |
| 8591 | # Sound support for GNU/Linux and the free BSDs. |
| 8592 | for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h |
| 8593 | do : |
| 8594 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8595 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8596 | eval as_val=\$$as_ac_Header |
| 8597 | if test "x$as_val" = x""yes; then : |
| 8598 | cat >>confdefs.h <<_ACEOF |
| 8599 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8600 | _ACEOF |
| 8601 | have_sound_header=yes |
| 8602 | fi |
| 8603 | |
| 8604 | done |
| 8605 | |
| 8606 | # Emulation library used on NetBSD. |
| 8607 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 |
| 8608 | $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } |
| 8609 | if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : |
| 8610 | $as_echo_n "(cached) " >&6 |
| 8611 | else |
| 8612 | ac_check_lib_save_LIBS=$LIBS |
| 8613 | LIBS="-lossaudio $LIBS" |
| 8614 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8615 | /* end confdefs.h. */ |
| 8616 | |
| 8617 | /* Override any GCC internal prototype to avoid an error. |
| 8618 | Use char because int might match the return type of a GCC |
| 8619 | builtin and then its argument prototype would still apply. */ |
| 8620 | #ifdef __cplusplus |
| 8621 | extern "C" |
| 8622 | #endif |
| 8623 | char _oss_ioctl (); |
| 8624 | int |
| 8625 | main () |
| 8626 | { |
| 8627 | return _oss_ioctl (); |
| 8628 | ; |
| 8629 | return 0; |
| 8630 | } |
| 8631 | _ACEOF |
| 8632 | if ac_fn_c_try_link "$LINENO"; then : |
| 8633 | ac_cv_lib_ossaudio__oss_ioctl=yes |
| 8634 | else |
| 8635 | ac_cv_lib_ossaudio__oss_ioctl=no |
| 8636 | fi |
| 8637 | rm -f core conftest.err conftest.$ac_objext \ |
| 8638 | conftest$ac_exeext conftest.$ac_ext |
| 8639 | LIBS=$ac_check_lib_save_LIBS |
| 8640 | fi |
| 8641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 |
| 8642 | $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } |
| 8643 | if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : |
| 8644 | LIBSOUND=-lossaudio |
| 8645 | else |
| 8646 | LIBSOUND= |
| 8647 | fi |
| 8648 | |
| 8649 | |
| 8650 | |
| 8651 | ALSA_REQUIRED=1.0.0 |
| 8652 | ALSA_MODULES="alsa >= $ALSA_REQUIRED" |
| 8653 | |
| 8654 | succeeded=no |
| 8655 | |
| 8656 | if test "$PKG_CONFIG" = "no" ; then |
| 8657 | HAVE_ALSA=no |
| 8658 | else |
| 8659 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 8660 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 8661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 |
| 8662 | $as_echo_n "checking for $ALSA_MODULES... " >&6; } |
| 8663 | |
| 8664 | if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5 && |
| 8665 | ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES" 2>&5` && |
| 8666 | ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES" 2>&5`; then |
| 8667 | edit_cflags=" |
| 8668 | s,///*,/,g |
| 8669 | s/^/ / |
| 8670 | s/ -I/ $isystem/g |
| 8671 | s/^ // |
| 8672 | " |
| 8673 | ALSA_CFLAGS=`$as_echo "$ALSA_CFLAGS" | sed -e "$edit_cflags"` |
| 8674 | ALSA_LIBS=`$as_echo "$ALSA_LIBS" | sed -e 's,///*,/,g'` |
| 8675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&5 |
| 8676 | $as_echo "yes CFLAGS='$ALSA_CFLAGS' LIBS='$ALSA_LIBS'" >&6; } |
| 8677 | succeeded=yes |
| 8678 | else |
| 8679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 8680 | $as_echo "no" >&6; } |
| 8681 | ALSA_CFLAGS="" |
| 8682 | ALSA_LIBS="" |
| 8683 | ## If we have a custom action on failure, don't print errors, but |
| 8684 | ## do set a variable so people can do so. Do it in a subshell |
| 8685 | ## to capture any diagnostics in invoking pkg-config. |
| 8686 | ALSA_PKG_ERRORS=`($PKG_CONFIG --print-errors "$ALSA_MODULES") 2>&1` |
| 8687 | |
| 8688 | fi |
| 8689 | |
| 8690 | |
| 8691 | |
| 8692 | else |
| 8693 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 8694 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 8695 | fi |
| 8696 | fi |
| 8697 | |
| 8698 | if test $succeeded = yes; then |
| 8699 | HAVE_ALSA=yes |
| 8700 | else |
| 8701 | HAVE_ALSA=no |
| 8702 | fi |
| 8703 | |
| 8704 | if test $HAVE_ALSA = yes; then |
| 8705 | SAVE_CFLAGS="$CFLAGS" |
| 8706 | SAVE_LIBS="$LIBS" |
| 8707 | CFLAGS="$ALSA_CFLAGS $CFLAGS" |
| 8708 | LIBS="$ALSA_LIBS $LIBS" |
| 8709 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8710 | /* end confdefs.h. */ |
| 8711 | #include <asoundlib.h> |
| 8712 | int |
| 8713 | main () |
| 8714 | { |
| 8715 | snd_lib_error_set_handler (0); |
| 8716 | ; |
| 8717 | return 0; |
| 8718 | } |
| 8719 | _ACEOF |
| 8720 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8721 | emacs_alsa_normal=yes |
| 8722 | else |
| 8723 | emacs_alsa_normal=no |
| 8724 | fi |
| 8725 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8726 | if test "$emacs_alsa_normal" != yes; then |
| 8727 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8728 | /* end confdefs.h. */ |
| 8729 | #include <alsa/asoundlib.h> |
| 8730 | int |
| 8731 | main () |
| 8732 | { |
| 8733 | snd_lib_error_set_handler (0); |
| 8734 | ; |
| 8735 | return 0; |
| 8736 | } |
| 8737 | _ACEOF |
| 8738 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8739 | emacs_alsa_subdir=yes |
| 8740 | else |
| 8741 | emacs_alsa_subdir=no |
| 8742 | fi |
| 8743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8744 | if test "$emacs_alsa_subdir" != yes; then |
| 8745 | as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 |
| 8746 | fi |
| 8747 | ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" |
| 8748 | fi |
| 8749 | |
| 8750 | CFLAGS="$SAVE_CFLAGS" |
| 8751 | LIBS="$SAVE_LIBS" |
| 8752 | LIBSOUND="$LIBSOUND $ALSA_LIBS" |
| 8753 | CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" |
| 8754 | |
| 8755 | $as_echo "#define HAVE_ALSA 1" >>confdefs.h |
| 8756 | |
| 8757 | fi |
| 8758 | |
| 8759 | if test x$have_sound_header = xyes || test $HAVE_ALSA = yes; then |
| 8760 | case "$opsys" in |
| 8761 | gnu-linux|freebsd|netbsd) |
| 8762 | |
| 8763 | $as_echo "#define HAVE_SOUND 1" >>confdefs.h |
| 8764 | |
| 8765 | ;; |
| 8766 | esac |
| 8767 | fi |
| 8768 | |
| 8769 | |
| 8770 | fi |
| 8771 | |
| 8772 | |
| 8773 | |
| 8774 | |
| 8775 | for ac_header in $ac_header_list |
| 8776 | do : |
| 8777 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8778 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 8779 | " |
| 8780 | eval as_val=\$$as_ac_Header |
| 8781 | if test "x$as_val" = x""yes; then : |
| 8782 | cat >>confdefs.h <<_ACEOF |
| 8783 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 8784 | _ACEOF |
| 8785 | |
| 8786 | fi |
| 8787 | |
| 8788 | done |
| 8789 | |
| 8790 | |
| 8791 | |
| 8792 | |
| 8793 | |
| 8794 | |
| 8795 | |
| 8796 | |
| 8797 | |
| 8798 | |
| 8799 | |
| 8800 | |
| 8801 | |
| 8802 | |
| 8803 | |
| 8804 | |
| 8805 | |
| 8806 | |
| 8807 | |
| 8808 | |
| 8809 | |
| 8810 | |
| 8811 | |
| 8812 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 |
| 8813 | $as_echo_n "checking if personality LINUX32 can be set... " >&6; } |
| 8814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8815 | /* end confdefs.h. */ |
| 8816 | #include <sys/personality.h> |
| 8817 | int |
| 8818 | main () |
| 8819 | { |
| 8820 | personality (PER_LINUX32) |
| 8821 | ; |
| 8822 | return 0; |
| 8823 | } |
| 8824 | _ACEOF |
| 8825 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8826 | emacs_cv_personality_linux32=yes |
| 8827 | else |
| 8828 | emacs_cv_personality_linux32=no |
| 8829 | fi |
| 8830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 |
| 8832 | $as_echo "$emacs_cv_personality_linux32" >&6; } |
| 8833 | |
| 8834 | if test $emacs_cv_personality_linux32 = yes; then |
| 8835 | |
| 8836 | $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h |
| 8837 | |
| 8838 | fi |
| 8839 | |
| 8840 | for ac_header in term.h |
| 8841 | do : |
| 8842 | ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" |
| 8843 | if test "x$ac_cv_header_term_h" = x""yes; then : |
| 8844 | cat >>confdefs.h <<_ACEOF |
| 8845 | #define HAVE_TERM_H 1 |
| 8846 | _ACEOF |
| 8847 | |
| 8848 | fi |
| 8849 | |
| 8850 | done |
| 8851 | |
| 8852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 |
| 8853 | $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } |
| 8854 | if test "${ac_cv_header_time+set}" = set; then : |
| 8855 | $as_echo_n "(cached) " >&6 |
| 8856 | else |
| 8857 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8858 | /* end confdefs.h. */ |
| 8859 | #include <sys/types.h> |
| 8860 | #include <sys/time.h> |
| 8861 | #include <time.h> |
| 8862 | |
| 8863 | int |
| 8864 | main () |
| 8865 | { |
| 8866 | if ((struct tm *) 0) |
| 8867 | return 0; |
| 8868 | ; |
| 8869 | return 0; |
| 8870 | } |
| 8871 | _ACEOF |
| 8872 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8873 | ac_cv_header_time=yes |
| 8874 | else |
| 8875 | ac_cv_header_time=no |
| 8876 | fi |
| 8877 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8878 | fi |
| 8879 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 |
| 8880 | $as_echo "$ac_cv_header_time" >&6; } |
| 8881 | if test $ac_cv_header_time = yes; then |
| 8882 | |
| 8883 | $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h |
| 8884 | |
| 8885 | fi |
| 8886 | |
| 8887 | ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "#include <signal.h> |
| 8888 | |
| 8889 | " |
| 8890 | if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : |
| 8891 | ac_have_decl=1 |
| 8892 | else |
| 8893 | ac_have_decl=0 |
| 8894 | fi |
| 8895 | |
| 8896 | cat >>confdefs.h <<_ACEOF |
| 8897 | #define HAVE_DECL_SYS_SIGLIST $ac_have_decl |
| 8898 | _ACEOF |
| 8899 | |
| 8900 | if test $ac_cv_have_decl_sys_siglist != yes; then |
| 8901 | # For Tru64, at least: |
| 8902 | ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "#include <signal.h> |
| 8903 | |
| 8904 | " |
| 8905 | if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : |
| 8906 | ac_have_decl=1 |
| 8907 | else |
| 8908 | ac_have_decl=0 |
| 8909 | fi |
| 8910 | |
| 8911 | cat >>confdefs.h <<_ACEOF |
| 8912 | #define HAVE_DECL___SYS_SIGLIST $ac_have_decl |
| 8913 | _ACEOF |
| 8914 | |
| 8915 | if test $ac_cv_have_decl___sys_siglist = yes; then |
| 8916 | |
| 8917 | $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h |
| 8918 | |
| 8919 | fi |
| 8920 | fi |
| 8921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 |
| 8922 | $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } |
| 8923 | if test "${ac_cv_header_sys_wait_h+set}" = set; then : |
| 8924 | $as_echo_n "(cached) " >&6 |
| 8925 | else |
| 8926 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8927 | /* end confdefs.h. */ |
| 8928 | #include <sys/types.h> |
| 8929 | #include <sys/wait.h> |
| 8930 | #ifndef WEXITSTATUS |
| 8931 | # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) |
| 8932 | #endif |
| 8933 | #ifndef WIFEXITED |
| 8934 | # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) |
| 8935 | #endif |
| 8936 | |
| 8937 | int |
| 8938 | main () |
| 8939 | { |
| 8940 | int s; |
| 8941 | wait (&s); |
| 8942 | s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; |
| 8943 | ; |
| 8944 | return 0; |
| 8945 | } |
| 8946 | _ACEOF |
| 8947 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8948 | ac_cv_header_sys_wait_h=yes |
| 8949 | else |
| 8950 | ac_cv_header_sys_wait_h=no |
| 8951 | fi |
| 8952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8953 | fi |
| 8954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 |
| 8955 | $as_echo "$ac_cv_header_sys_wait_h" >&6; } |
| 8956 | if test $ac_cv_header_sys_wait_h = yes; then |
| 8957 | |
| 8958 | $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h |
| 8959 | |
| 8960 | fi |
| 8961 | |
| 8962 | |
| 8963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 |
| 8964 | $as_echo_n "checking for speed_t... " >&6; } |
| 8965 | if test "${emacs_cv_speed_t+set}" = set; then : |
| 8966 | $as_echo_n "(cached) " >&6 |
| 8967 | else |
| 8968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 8969 | /* end confdefs.h. */ |
| 8970 | #include <termios.h> |
| 8971 | int |
| 8972 | main () |
| 8973 | { |
| 8974 | speed_t x = 1; |
| 8975 | ; |
| 8976 | return 0; |
| 8977 | } |
| 8978 | _ACEOF |
| 8979 | if ac_fn_c_try_compile "$LINENO"; then : |
| 8980 | emacs_cv_speed_t=yes |
| 8981 | else |
| 8982 | emacs_cv_speed_t=no |
| 8983 | fi |
| 8984 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 8985 | fi |
| 8986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 |
| 8987 | $as_echo "$emacs_cv_speed_t" >&6; } |
| 8988 | if test $emacs_cv_speed_t = yes; then |
| 8989 | |
| 8990 | $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h |
| 8991 | |
| 8992 | fi |
| 8993 | |
| 8994 | |
| 8995 | |
| 8996 | |
| 8997 | for ac_header in net/if.h |
| 8998 | do : |
| 8999 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default |
| 9000 | #if HAVE_SYS_SOCKET_H |
| 9001 | #include <sys/socket.h> |
| 9002 | #endif |
| 9003 | " |
| 9004 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
| 9005 | cat >>confdefs.h <<_ACEOF |
| 9006 | #define HAVE_NET_IF_H 1 |
| 9007 | _ACEOF |
| 9008 | |
| 9009 | fi |
| 9010 | |
| 9011 | done |
| 9012 | |
| 9013 | for ac_header in ifaddrs.h |
| 9014 | do : |
| 9015 | ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default |
| 9016 | #if HAVE_SYS_SOCKET_H |
| 9017 | #include <sys/socket.h> |
| 9018 | #endif |
| 9019 | " |
| 9020 | if test "x$ac_cv_header_ifaddrs_h" = x""yes; then : |
| 9021 | cat >>confdefs.h <<_ACEOF |
| 9022 | #define HAVE_IFADDRS_H 1 |
| 9023 | _ACEOF |
| 9024 | |
| 9025 | fi |
| 9026 | |
| 9027 | done |
| 9028 | |
| 9029 | for ac_header in net/if_dl.h |
| 9030 | do : |
| 9031 | ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default |
| 9032 | #if HAVE_SYS_SOCKET_H |
| 9033 | #include <sys/socket.h> |
| 9034 | #endif |
| 9035 | " |
| 9036 | if test "x$ac_cv_header_net_if_dl_h" = x""yes; then : |
| 9037 | cat >>confdefs.h <<_ACEOF |
| 9038 | #define HAVE_NET_IF_DL_H 1 |
| 9039 | _ACEOF |
| 9040 | |
| 9041 | fi |
| 9042 | |
| 9043 | done |
| 9044 | |
| 9045 | |
| 9046 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default |
| 9047 | #if HAVE_SYS_SOCKET_H |
| 9048 | #include <sys/socket.h> |
| 9049 | #endif |
| 9050 | #if HAVE_NET_IF_H |
| 9051 | #include <net/if.h> |
| 9052 | #endif |
| 9053 | " |
| 9054 | if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : |
| 9055 | |
| 9056 | cat >>confdefs.h <<_ACEOF |
| 9057 | #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 |
| 9058 | _ACEOF |
| 9059 | |
| 9060 | |
| 9061 | fi |
| 9062 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default |
| 9063 | #if HAVE_SYS_SOCKET_H |
| 9064 | #include <sys/socket.h> |
| 9065 | #endif |
| 9066 | #if HAVE_NET_IF_H |
| 9067 | #include <net/if.h> |
| 9068 | #endif |
| 9069 | " |
| 9070 | if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : |
| 9071 | |
| 9072 | cat >>confdefs.h <<_ACEOF |
| 9073 | #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 |
| 9074 | _ACEOF |
| 9075 | |
| 9076 | |
| 9077 | fi |
| 9078 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default |
| 9079 | #if HAVE_SYS_SOCKET_H |
| 9080 | #include <sys/socket.h> |
| 9081 | #endif |
| 9082 | #if HAVE_NET_IF_H |
| 9083 | #include <net/if.h> |
| 9084 | #endif |
| 9085 | " |
| 9086 | if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : |
| 9087 | |
| 9088 | cat >>confdefs.h <<_ACEOF |
| 9089 | #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 |
| 9090 | _ACEOF |
| 9091 | |
| 9092 | |
| 9093 | fi |
| 9094 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default |
| 9095 | #if HAVE_SYS_SOCKET_H |
| 9096 | #include <sys/socket.h> |
| 9097 | #endif |
| 9098 | #if HAVE_NET_IF_H |
| 9099 | #include <net/if.h> |
| 9100 | #endif |
| 9101 | " |
| 9102 | if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : |
| 9103 | |
| 9104 | cat >>confdefs.h <<_ACEOF |
| 9105 | #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 |
| 9106 | _ACEOF |
| 9107 | |
| 9108 | |
| 9109 | fi |
| 9110 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default |
| 9111 | #if HAVE_SYS_SOCKET_H |
| 9112 | #include <sys/socket.h> |
| 9113 | #endif |
| 9114 | #if HAVE_NET_IF_H |
| 9115 | #include <net/if.h> |
| 9116 | #endif |
| 9117 | " |
| 9118 | if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : |
| 9119 | |
| 9120 | cat >>confdefs.h <<_ACEOF |
| 9121 | #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 |
| 9122 | _ACEOF |
| 9123 | |
| 9124 | |
| 9125 | fi |
| 9126 | ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr.sa_len" "ac_cv_member_struct_ifreq_ifr_addr_sa_len" "$ac_includes_default |
| 9127 | #if HAVE_SYS_SOCKET_H |
| 9128 | #include <sys/socket.h> |
| 9129 | #endif |
| 9130 | #if HAVE_NET_IF_H |
| 9131 | #include <net/if.h> |
| 9132 | #endif |
| 9133 | " |
| 9134 | if test "x$ac_cv_member_struct_ifreq_ifr_addr_sa_len" = x""yes; then : |
| 9135 | |
| 9136 | cat >>confdefs.h <<_ACEOF |
| 9137 | #define HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN 1 |
| 9138 | _ACEOF |
| 9139 | |
| 9140 | |
| 9141 | fi |
| 9142 | |
| 9143 | |
| 9144 | |
| 9145 | |
| 9146 | DEPFLAGS= |
| 9147 | MKDEPDIR=":" |
| 9148 | deps_frag=deps.mk |
| 9149 | if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then |
| 9150 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 |
| 9151 | $as_echo_n "checking whether we are using GNU Make... " >&6; } |
| 9152 | HAVE_GNU_MAKE=no |
| 9153 | testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'` |
| 9154 | if test "x$testval" != x; then |
| 9155 | HAVE_GNU_MAKE=yes |
| 9156 | else |
| 9157 | ac_enable_autodepend=no |
| 9158 | fi |
| 9159 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 |
| 9160 | $as_echo "$HAVE_GNU_MAKE" >&6; } |
| 9161 | if test $HAVE_GNU_MAKE = yes; then |
| 9162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 |
| 9163 | $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } |
| 9164 | SAVE_CFLAGS="$CFLAGS" |
| 9165 | CFLAGS="$CFLAGS -MMD -MF deps.d -MP" |
| 9166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9167 | /* end confdefs.h. */ |
| 9168 | |
| 9169 | int |
| 9170 | main () |
| 9171 | { |
| 9172 | |
| 9173 | ; |
| 9174 | return 0; |
| 9175 | } |
| 9176 | _ACEOF |
| 9177 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9178 | |
| 9179 | else |
| 9180 | ac_enable_autodepend=no |
| 9181 | fi |
| 9182 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9183 | CFLAGS="$SAVE_CFLAGS" |
| 9184 | test -f deps.d || ac_enable_autodepend=no |
| 9185 | rm -rf deps.d |
| 9186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 |
| 9187 | $as_echo "$ac_enable_autodepend" >&6; } |
| 9188 | fi |
| 9189 | if test $ac_enable_autodepend = yes; then |
| 9190 | DEPFLAGS='-MMD -MF ${DEPDIR}/$*.d -MP' |
| 9191 | ## MKDIR_P is documented (see AC_PROG_MKDIR_P) to be parallel-safe. |
| 9192 | MKDEPDIR='${MKDIR_P} ${DEPDIR}' |
| 9193 | deps_frag=autodeps.mk |
| 9194 | fi |
| 9195 | fi |
| 9196 | deps_frag=$srcdir/src/$deps_frag |
| 9197 | |
| 9198 | |
| 9199 | |
| 9200 | |
| 9201 | |
| 9202 | lisp_frag=$srcdir/src/lisp.mk |
| 9203 | |
| 9204 | |
| 9205 | |
| 9206 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 |
| 9207 | $as_echo_n "checking for long file names... " >&6; } |
| 9208 | if test "${ac_cv_sys_long_file_names+set}" = set; then : |
| 9209 | $as_echo_n "(cached) " >&6 |
| 9210 | else |
| 9211 | ac_cv_sys_long_file_names=yes |
| 9212 | # Test for long file names in all the places we know might matter: |
| 9213 | # . the current directory, where building will happen |
| 9214 | # $prefix/lib where we will be installing things |
| 9215 | # $exec_prefix/lib likewise |
| 9216 | # $TMPDIR if set, where it might want to write temporary files |
| 9217 | # /tmp where it might want to write temporary files |
| 9218 | # /var/tmp likewise |
| 9219 | # /usr/tmp likewise |
| 9220 | for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do |
| 9221 | # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib |
| 9222 | # in the usual case where exec_prefix is '${prefix}'. |
| 9223 | case $ac_dir in #( |
| 9224 | . | /* | ?:[\\/]*) ;; #( |
| 9225 | *) continue;; |
| 9226 | esac |
| 9227 | test -w "$ac_dir/." || continue # It is less confusing to not echo anything here. |
| 9228 | ac_xdir=$ac_dir/cf$$ |
| 9229 | (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue |
| 9230 | ac_tf1=$ac_xdir/conftest9012345 |
| 9231 | ac_tf2=$ac_xdir/conftest9012346 |
| 9232 | touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" || |
| 9233 | ac_cv_sys_long_file_names=no |
| 9234 | rm -f -r "$ac_xdir" 2>/dev/null |
| 9235 | test $ac_cv_sys_long_file_names = no && break |
| 9236 | done |
| 9237 | fi |
| 9238 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 |
| 9239 | $as_echo "$ac_cv_sys_long_file_names" >&6; } |
| 9240 | if test $ac_cv_sys_long_file_names = yes; then |
| 9241 | |
| 9242 | $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h |
| 9243 | |
| 9244 | fi |
| 9245 | |
| 9246 | |
| 9247 | #### Choose a window system. |
| 9248 | |
| 9249 | ## We leave window_system equal to none if |
| 9250 | ## we end up building without one. Any new window system should |
| 9251 | ## set window_system to an appropriate value and add objects to |
| 9252 | ## window-system-specific substs. |
| 9253 | |
| 9254 | window_system=none |
| 9255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 |
| 9256 | $as_echo_n "checking for X... " >&6; } |
| 9257 | |
| 9258 | |
| 9259 | # Check whether --with-x was given. |
| 9260 | if test "${with_x+set}" = set; then : |
| 9261 | withval=$with_x; |
| 9262 | fi |
| 9263 | |
| 9264 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
| 9265 | if test "x$with_x" = xno; then |
| 9266 | # The user explicitly disabled X. |
| 9267 | have_x=disabled |
| 9268 | else |
| 9269 | case $x_includes,$x_libraries in #( |
| 9270 | *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( |
| 9271 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : |
| 9272 | $as_echo_n "(cached) " >&6 |
| 9273 | else |
| 9274 | # One or both of the vars are not set, and there is no cached value. |
| 9275 | ac_x_includes=no ac_x_libraries=no |
| 9276 | rm -f -r conftest.dir |
| 9277 | if mkdir conftest.dir; then |
| 9278 | cd conftest.dir |
| 9279 | cat >Imakefile <<'_ACEOF' |
| 9280 | incroot: |
| 9281 | @echo incroot='${INCROOT}' |
| 9282 | usrlibdir: |
| 9283 | @echo usrlibdir='${USRLIBDIR}' |
| 9284 | libdir: |
| 9285 | @echo libdir='${LIBDIR}' |
| 9286 | _ACEOF |
| 9287 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
| 9288 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
| 9289 | for ac_var in incroot usrlibdir libdir; do |
| 9290 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
| 9291 | done |
| 9292 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
| 9293 | for ac_extension in a so sl dylib la dll; do |
| 9294 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
| 9295 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
| 9296 | ac_im_usrlibdir=$ac_im_libdir; break |
| 9297 | fi |
| 9298 | done |
| 9299 | # Screen out bogus values from the imake configuration. They are |
| 9300 | # bogus both because they are the default anyway, and because |
| 9301 | # using them would break gcc on systems where it needs fixed includes. |
| 9302 | case $ac_im_incroot in |
| 9303 | /usr/include) ac_x_includes= ;; |
| 9304 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
| 9305 | esac |
| 9306 | case $ac_im_usrlibdir in |
| 9307 | /usr/lib | /usr/lib64 | /lib | /lib64) ;; |
| 9308 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
| 9309 | esac |
| 9310 | fi |
| 9311 | cd .. |
| 9312 | rm -f -r conftest.dir |
| 9313 | fi |
| 9314 | |
| 9315 | # Standard set of common directories for X headers. |
| 9316 | # Check X11 before X11Rn because it is often a symlink to the current release. |
| 9317 | ac_x_header_dirs=' |
| 9318 | /usr/X11/include |
| 9319 | /usr/X11R7/include |
| 9320 | /usr/X11R6/include |
| 9321 | /usr/X11R5/include |
| 9322 | /usr/X11R4/include |
| 9323 | |
| 9324 | /usr/include/X11 |
| 9325 | /usr/include/X11R7 |
| 9326 | /usr/include/X11R6 |
| 9327 | /usr/include/X11R5 |
| 9328 | /usr/include/X11R4 |
| 9329 | |
| 9330 | /usr/local/X11/include |
| 9331 | /usr/local/X11R7/include |
| 9332 | /usr/local/X11R6/include |
| 9333 | /usr/local/X11R5/include |
| 9334 | /usr/local/X11R4/include |
| 9335 | |
| 9336 | /usr/local/include/X11 |
| 9337 | /usr/local/include/X11R7 |
| 9338 | /usr/local/include/X11R6 |
| 9339 | /usr/local/include/X11R5 |
| 9340 | /usr/local/include/X11R4 |
| 9341 | |
| 9342 | /usr/X386/include |
| 9343 | /usr/x386/include |
| 9344 | /usr/XFree86/include/X11 |
| 9345 | |
| 9346 | /usr/include |
| 9347 | /usr/local/include |
| 9348 | /usr/unsupported/include |
| 9349 | /usr/athena/include |
| 9350 | /usr/local/x11r5/include |
| 9351 | /usr/lpp/Xamples/include |
| 9352 | |
| 9353 | /usr/openwin/include |
| 9354 | /usr/openwin/share/include' |
| 9355 | |
| 9356 | if test "$ac_x_includes" = no; then |
| 9357 | # Guess where to find include files, by looking for Xlib.h. |
| 9358 | # First, try using that file with no special directory specified. |
| 9359 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9360 | /* end confdefs.h. */ |
| 9361 | #include <X11/Xlib.h> |
| 9362 | _ACEOF |
| 9363 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 9364 | # We can compile using X headers with no special include directory. |
| 9365 | ac_x_includes= |
| 9366 | else |
| 9367 | for ac_dir in $ac_x_header_dirs; do |
| 9368 | if test -r "$ac_dir/X11/Xlib.h"; then |
| 9369 | ac_x_includes=$ac_dir |
| 9370 | break |
| 9371 | fi |
| 9372 | done |
| 9373 | fi |
| 9374 | rm -f conftest.err conftest.$ac_ext |
| 9375 | fi # $ac_x_includes = no |
| 9376 | |
| 9377 | if test "$ac_x_libraries" = no; then |
| 9378 | # Check for the libraries. |
| 9379 | # See if we find them without any special options. |
| 9380 | # Don't add to $LIBS permanently. |
| 9381 | ac_save_LIBS=$LIBS |
| 9382 | LIBS="-lX11 $LIBS" |
| 9383 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9384 | /* end confdefs.h. */ |
| 9385 | #include <X11/Xlib.h> |
| 9386 | int |
| 9387 | main () |
| 9388 | { |
| 9389 | XrmInitialize () |
| 9390 | ; |
| 9391 | return 0; |
| 9392 | } |
| 9393 | _ACEOF |
| 9394 | if ac_fn_c_try_link "$LINENO"; then : |
| 9395 | LIBS=$ac_save_LIBS |
| 9396 | # We can link X programs with no special library path. |
| 9397 | ac_x_libraries= |
| 9398 | else |
| 9399 | LIBS=$ac_save_LIBS |
| 9400 | for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
| 9401 | do |
| 9402 | # Don't even attempt the hair of trying to link an X program! |
| 9403 | for ac_extension in a so sl dylib la dll; do |
| 9404 | if test -r "$ac_dir/libX11.$ac_extension"; then |
| 9405 | ac_x_libraries=$ac_dir |
| 9406 | break 2 |
| 9407 | fi |
| 9408 | done |
| 9409 | done |
| 9410 | fi |
| 9411 | rm -f core conftest.err conftest.$ac_objext \ |
| 9412 | conftest$ac_exeext conftest.$ac_ext |
| 9413 | fi # $ac_x_libraries = no |
| 9414 | |
| 9415 | case $ac_x_includes,$ac_x_libraries in #( |
| 9416 | no,* | *,no | *\'*) |
| 9417 | # Didn't find X, or a directory has "'" in its name. |
| 9418 | ac_cv_have_x="have_x=no";; #( |
| 9419 | *) |
| 9420 | # Record where we found X for the cache. |
| 9421 | ac_cv_have_x="have_x=yes\ |
| 9422 | ac_x_includes='$ac_x_includes'\ |
| 9423 | ac_x_libraries='$ac_x_libraries'" |
| 9424 | esac |
| 9425 | fi |
| 9426 | ;; #( |
| 9427 | *) have_x=yes;; |
| 9428 | esac |
| 9429 | eval "$ac_cv_have_x" |
| 9430 | fi # $with_x != no |
| 9431 | |
| 9432 | if test "$have_x" != yes; then |
| 9433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 |
| 9434 | $as_echo "$have_x" >&6; } |
| 9435 | no_x=yes |
| 9436 | else |
| 9437 | # If each of the values was on the command line, it overrides each guess. |
| 9438 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
| 9439 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
| 9440 | # Update the cache value to reflect the command line values. |
| 9441 | ac_cv_have_x="have_x=yes\ |
| 9442 | ac_x_includes='$x_includes'\ |
| 9443 | ac_x_libraries='$x_libraries'" |
| 9444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 |
| 9445 | $as_echo "libraries $x_libraries, headers $x_includes" >&6; } |
| 9446 | fi |
| 9447 | |
| 9448 | if test "$no_x" != yes; then |
| 9449 | window_system=x11 |
| 9450 | fi |
| 9451 | |
| 9452 | LD_SWITCH_X_SITE_RPATH= |
| 9453 | if test "${x_libraries}" != NONE; then |
| 9454 | if test -n "${x_libraries}"; then |
| 9455 | LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"` |
| 9456 | LD_SWITCH_X_SITE_RPATH=-Wl,-rpath,`echo ${x_libraries} | sed -e "s/:/ -Wl,-rpath,/g"` |
| 9457 | fi |
| 9458 | x_default_search_path="" |
| 9459 | x_search_path=${x_libraries} |
| 9460 | if test -z "${x_search_path}"; then |
| 9461 | x_search_path=/usr/lib |
| 9462 | fi |
| 9463 | for x_library in `echo ${x_search_path}: | \ |
| 9464 | sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do |
| 9465 | x_search_path="\ |
| 9466 | ${x_library}/X11/%L/%T/%N%C%S:\ |
| 9467 | ${x_library}/X11/%l/%T/%N%C%S:\ |
| 9468 | ${x_library}/X11/%T/%N%C%S:\ |
| 9469 | ${x_library}/X11/%L/%T/%N%S:\ |
| 9470 | ${x_library}/X11/%l/%T/%N%S:\ |
| 9471 | ${x_library}/X11/%T/%N%S" |
| 9472 | if test x"${x_default_search_path}" = x; then |
| 9473 | x_default_search_path=${x_search_path} |
| 9474 | else |
| 9475 | x_default_search_path="${x_search_path}:${x_default_search_path}" |
| 9476 | fi |
| 9477 | done |
| 9478 | fi |
| 9479 | |
| 9480 | |
| 9481 | if test "${x_includes}" != NONE && test -n "${x_includes}"; then |
| 9482 | C_SWITCH_X_SITE="$isystem"`echo ${x_includes} | sed -e "s/:/ $isystem/g"` |
| 9483 | fi |
| 9484 | |
| 9485 | if test x"${x_includes}" = x; then |
| 9486 | bitmapdir=/usr/include/X11/bitmaps |
| 9487 | else |
| 9488 | # accumulate include directories that have X11 bitmap subdirectories |
| 9489 | bmd_acc="dummyval" |
| 9490 | for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do |
| 9491 | if test -d "${bmd}/X11/bitmaps"; then |
| 9492 | bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps" |
| 9493 | fi |
| 9494 | if test -d "${bmd}/bitmaps"; then |
| 9495 | bmd_acc="${bmd_acc}:${bmd}/bitmaps" |
| 9496 | fi |
| 9497 | done |
| 9498 | if test ${bmd_acc} != "dummyval"; then |
| 9499 | bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"` |
| 9500 | fi |
| 9501 | fi |
| 9502 | |
| 9503 | HAVE_NS=no |
| 9504 | NS_IMPL_COCOA=no |
| 9505 | NS_IMPL_GNUSTEP=no |
| 9506 | tmp_CPPFLAGS="$CPPFLAGS" |
| 9507 | tmp_CFLAGS="$CFLAGS" |
| 9508 | CPPFLAGS="$CPPFLAGS -x objective-c" |
| 9509 | CFLAGS="$CFLAGS -x objective-c" |
| 9510 | TEMACS_LDFLAGS2="\${LDFLAGS}" |
| 9511 | GNU_OBJC_CFLAGS= |
| 9512 | if test "${with_ns}" != no; then |
| 9513 | if test "${opsys}" = darwin; then |
| 9514 | NS_IMPL_COCOA=yes |
| 9515 | ns_appdir=`pwd`/nextstep/Emacs.app |
| 9516 | ns_appbindir=${ns_appdir}/Contents/MacOS |
| 9517 | ns_appresdir=${ns_appdir}/Contents/Resources |
| 9518 | ns_appsrc=Cocoa/Emacs.base |
| 9519 | elif test -f $GNUSTEP_CONFIG_FILE; then |
| 9520 | NS_IMPL_GNUSTEP=yes |
| 9521 | ns_appdir=`pwd`/nextstep/Emacs.app |
| 9522 | ns_appbindir=${ns_appdir} |
| 9523 | ns_appresdir=${ns_appdir}/Resources |
| 9524 | ns_appsrc=GNUstep/Emacs.base |
| 9525 | GNUSTEP_SYSTEM_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_HEADERS)" |
| 9526 | GNUSTEP_SYSTEM_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_SYSTEM_LIBRARIES)" |
| 9527 | GNUSTEP_LOCAL_HEADERS="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_HEADERS)" |
| 9528 | GNUSTEP_LOCAL_LIBRARIES="$(. $GNUSTEP_CONFIG_FILE; echo $GNUSTEP_LOCAL_LIBRARIES)" |
| 9529 | test "x${GNUSTEP_LOCAL_HEADERS}" != "x" && \ |
| 9530 | GNUSTEP_LOCAL_HEADERS="-I${GNUSTEP_LOCAL_HEADERS}" |
| 9531 | test "x${GNUSTEP_LOCAL_LIBRARIES}" != "x" && \ |
| 9532 | GNUSTEP_LOCAL_LIBRARIES="-L${GNUSTEP_LOCAL_LIBRARIES}" |
| 9533 | CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 9534 | CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 9535 | LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES}" |
| 9536 | LIB_STANDARD= |
| 9537 | START_FILES= |
| 9538 | TEMACS_LDFLAGS2= |
| 9539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS" >&5 |
| 9540 | $as_echo_n "checking if GNUstep defines BASE_NATIVE_OBJC_EXCEPTIONS... " >&6; } |
| 9541 | if test "${emacs_cv_objc_exceptions+set}" = set; then : |
| 9542 | $as_echo_n "(cached) " >&6 |
| 9543 | else |
| 9544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9545 | /* end confdefs.h. */ |
| 9546 | #include <GNUstepBase/GSConfig.h> |
| 9547 | int |
| 9548 | main () |
| 9549 | { |
| 9550 | #if defined BASE_NATIVE_OBJC_EXCEPTIONS && BASE_NATIVE_OBJC_EXCEPTIONS > 0 |
| 9551 | 1; |
| 9552 | #else |
| 9553 | fail; |
| 9554 | #endif |
| 9555 | ; |
| 9556 | return 0; |
| 9557 | } |
| 9558 | _ACEOF |
| 9559 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9560 | emacs_cv_objc_exceptions=yes |
| 9561 | else |
| 9562 | emacs_cv_objc_exceptions=no |
| 9563 | fi |
| 9564 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9565 | fi |
| 9566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_objc_exceptions" >&5 |
| 9567 | $as_echo "$emacs_cv_objc_exceptions" >&6; } |
| 9568 | if test $emacs_cv_objc_exceptions = yes; then |
| 9569 | |
| 9570 | $as_echo "#define _NATIVE_OBJC_EXCEPTIONS 1" >>confdefs.h |
| 9571 | |
| 9572 | GNU_OBJC_CFLAGS="-fobjc-exceptions" |
| 9573 | fi |
| 9574 | fi |
| 9575 | |
| 9576 | CFLAGS="$CFLAGS $GNU_OBJC_CFLAGS" |
| 9577 | |
| 9578 | ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" |
| 9579 | if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : |
| 9580 | HAVE_NS=yes |
| 9581 | else |
| 9582 | as_fn_error "\`--with-ns' was specified, but the include |
| 9583 | files are missing or cannot be compiled." "$LINENO" 5 |
| 9584 | fi |
| 9585 | |
| 9586 | |
| 9587 | |
| 9588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9589 | /* end confdefs.h. */ |
| 9590 | #include <AppKit/AppKit.h> |
| 9591 | int |
| 9592 | main () |
| 9593 | { |
| 9594 | |
| 9595 | #ifdef MAC_OS_X_VERSION_MAX_ALLOWED |
| 9596 | #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 |
| 9597 | ; /* OK */ |
| 9598 | #else |
| 9599 | #error "OSX 10.4 or newer required" |
| 9600 | #endif |
| 9601 | #endif |
| 9602 | |
| 9603 | ; |
| 9604 | return 0; |
| 9605 | } |
| 9606 | _ACEOF |
| 9607 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9608 | ns_osx_have_104=yes |
| 9609 | else |
| 9610 | ns_osx_have_104=no |
| 9611 | fi |
| 9612 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9614 | /* end confdefs.h. */ |
| 9615 | #include <Foundation/NSObjCRuntime.h> |
| 9616 | int |
| 9617 | main () |
| 9618 | { |
| 9619 | NSInteger i; |
| 9620 | ; |
| 9621 | return 0; |
| 9622 | } |
| 9623 | _ACEOF |
| 9624 | if ac_fn_c_try_compile "$LINENO"; then : |
| 9625 | ns_have_nsinteger=yes |
| 9626 | else |
| 9627 | ns_have_nsinteger=no |
| 9628 | fi |
| 9629 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 9630 | if test $ns_osx_have_104 = no; then |
| 9631 | as_fn_error "\`OSX 10.4 or newer is required'" "$LINENO" 5; |
| 9632 | fi |
| 9633 | if test $ns_have_nsinteger = yes; then |
| 9634 | |
| 9635 | $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h |
| 9636 | |
| 9637 | fi |
| 9638 | fi |
| 9639 | |
| 9640 | |
| 9641 | |
| 9642 | INSTALL_ARCH_INDEP_EXTRA=install-etc |
| 9643 | ns_self_contained=no |
| 9644 | NS_OBJ= |
| 9645 | NS_OBJC_OBJ= |
| 9646 | if test "${HAVE_NS}" = yes; then |
| 9647 | if test "$with_toolkit_scroll_bars" = "no"; then |
| 9648 | as_fn_error "Non-toolkit scroll bars are not implemented for Nextstep." "$LINENO" 5 |
| 9649 | fi |
| 9650 | |
| 9651 | window_system=nextstep |
| 9652 | # set up packaging dirs |
| 9653 | if test "${EN_NS_SELF_CONTAINED}" = yes; then |
| 9654 | ns_self_contained=yes |
| 9655 | prefix=${ns_appresdir} |
| 9656 | exec_prefix=${ns_appbindir} |
| 9657 | libexecdir="\${ns_appbindir}/libexec" |
| 9658 | archlibdir="\${ns_appbindir}/libexec" |
| 9659 | docdir="\${ns_appresdir}/etc" |
| 9660 | etcdir="\${ns_appresdir}/etc" |
| 9661 | infodir="\${ns_appresdir}/info" |
| 9662 | mandir="\${ns_appresdir}/man" |
| 9663 | lispdir="\${ns_appresdir}/lisp" |
| 9664 | leimdir="\${ns_appresdir}/leim" |
| 9665 | INSTALL_ARCH_INDEP_EXTRA= |
| 9666 | fi |
| 9667 | NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o" |
| 9668 | fi |
| 9669 | CFLAGS="$tmp_CFLAGS" |
| 9670 | CPPFLAGS="$tmp_CPPFLAGS" |
| 9671 | |
| 9672 | |
| 9673 | |
| 9674 | |
| 9675 | |
| 9676 | |
| 9677 | HAVE_W32=no |
| 9678 | W32_OBJ= |
| 9679 | W32_LIBS= |
| 9680 | if test "${with_w32}" != no; then |
| 9681 | if test "${opsys}" != "cygwin"; then |
| 9682 | as_fn_error "Using w32 with an autotools build is only supported for Cygwin." "$LINENO" 5 |
| 9683 | fi |
| 9684 | ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" |
| 9685 | if test "x$ac_cv_header_windows_h" = x""yes; then : |
| 9686 | HAVE_W32=yes |
| 9687 | else |
| 9688 | as_fn_error "\`--with-w32' was specified, but windows.h |
| 9689 | cannot be found." "$LINENO" 5 |
| 9690 | fi |
| 9691 | |
| 9692 | |
| 9693 | |
| 9694 | $as_echo "#define HAVE_NTGUI 1" >>confdefs.h |
| 9695 | |
| 9696 | W32_OBJ="w32fns.o w32menu.o w32reg.o w32font.o w32term.o" |
| 9697 | W32_OBJ="$W32_OBJ w32xfns.o w32select.o w32uniscribe.o" |
| 9698 | W32_LIBS="$W32_LIBS -lkernel32 -luser32 -lgdi32 -lole32 -lcomdlg32" |
| 9699 | W32_LIBS="$W32_LIBS -lusp10 -lcomctl32 -lwinspool" |
| 9700 | fi |
| 9701 | |
| 9702 | |
| 9703 | |
| 9704 | if test "${HAVE_W32}" = "yes"; then |
| 9705 | window_system=w32 |
| 9706 | with_xft=no |
| 9707 | fi |
| 9708 | |
| 9709 | ## $window_system is now set to the window system we will |
| 9710 | ## ultimately use. |
| 9711 | |
| 9712 | term_header= |
| 9713 | HAVE_X_WINDOWS=no |
| 9714 | HAVE_X11=no |
| 9715 | USE_X_TOOLKIT=none |
| 9716 | |
| 9717 | case "${window_system}" in |
| 9718 | x11 ) |
| 9719 | HAVE_X_WINDOWS=yes |
| 9720 | HAVE_X11=yes |
| 9721 | term_header=xterm.h |
| 9722 | case "${with_x_toolkit}" in |
| 9723 | athena | lucid ) USE_X_TOOLKIT=LUCID ;; |
| 9724 | motif ) USE_X_TOOLKIT=MOTIF ;; |
| 9725 | gtk ) with_gtk=yes |
| 9726 | term_header=gtkutil.h |
| 9727 | USE_X_TOOLKIT=none ;; |
| 9728 | gtk2 ) with_gtk2=yes |
| 9729 | term_header=gtkutil.h |
| 9730 | USE_X_TOOLKIT=none ;; |
| 9731 | gtk3 ) with_gtk3=yes |
| 9732 | term_header=gtkutil.h |
| 9733 | USE_X_TOOLKIT=none ;; |
| 9734 | no ) USE_X_TOOLKIT=none ;; |
| 9735 | * ) USE_X_TOOLKIT=maybe ;; |
| 9736 | esac |
| 9737 | ;; |
| 9738 | nextstep ) |
| 9739 | term_header=nsterm.h |
| 9740 | ;; |
| 9741 | w32 ) |
| 9742 | term_header=w32term.h |
| 9743 | ;; |
| 9744 | esac |
| 9745 | |
| 9746 | if test -n "${term_header}"; then |
| 9747 | |
| 9748 | cat >>confdefs.h <<_ACEOF |
| 9749 | #define TERM_HEADER "${term_header}" |
| 9750 | _ACEOF |
| 9751 | |
| 9752 | fi |
| 9753 | |
| 9754 | if test "$window_system" = none && test "X$with_x" != "Xno"; then |
| 9755 | # Extract the first word of "X", so it can be a program name with args. |
| 9756 | set dummy X; ac_word=$2 |
| 9757 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 9758 | $as_echo_n "checking for $ac_word... " >&6; } |
| 9759 | if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : |
| 9760 | $as_echo_n "(cached) " >&6 |
| 9761 | else |
| 9762 | if test -n "$HAVE_XSERVER"; then |
| 9763 | ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. |
| 9764 | else |
| 9765 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9766 | for as_dir in $PATH |
| 9767 | do |
| 9768 | IFS=$as_save_IFS |
| 9769 | test -z "$as_dir" && as_dir=. |
| 9770 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9771 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 9772 | ac_cv_prog_HAVE_XSERVER="true" |
| 9773 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 9774 | break 2 |
| 9775 | fi |
| 9776 | done |
| 9777 | done |
| 9778 | IFS=$as_save_IFS |
| 9779 | |
| 9780 | test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" |
| 9781 | fi |
| 9782 | fi |
| 9783 | HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER |
| 9784 | if test -n "$HAVE_XSERVER"; then |
| 9785 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 |
| 9786 | $as_echo "$HAVE_XSERVER" >&6; } |
| 9787 | else |
| 9788 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 9789 | $as_echo "no" >&6; } |
| 9790 | fi |
| 9791 | |
| 9792 | |
| 9793 | if test "$HAVE_XSERVER" = true || |
| 9794 | test -n "$DISPLAY" || |
| 9795 | test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then |
| 9796 | as_fn_error "You seem to be running X, but no X development libraries |
| 9797 | were found. You should install the relevant development files for X |
| 9798 | and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make |
| 9799 | sure you have development files for image handling, i.e. |
| 9800 | tiff, gif, jpeg, png and xpm. |
| 9801 | If you are sure you want Emacs compiled without X window support, pass |
| 9802 | --without-x |
| 9803 | to configure." "$LINENO" 5 |
| 9804 | fi |
| 9805 | fi |
| 9806 | |
| 9807 | ### If we're using X11, we should use the X menu package. |
| 9808 | HAVE_MENUS=no |
| 9809 | case ${HAVE_X11} in |
| 9810 | yes ) HAVE_MENUS=yes ;; |
| 9811 | esac |
| 9812 | |
| 9813 | # Does the opsystem file prohibit the use of the GNU malloc? |
| 9814 | # Assume not, until told otherwise. |
| 9815 | GNU_MALLOC=yes |
| 9816 | |
| 9817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc is Doug Lea style" >&5 |
| 9818 | $as_echo_n "checking whether malloc is Doug Lea style... " >&6; } |
| 9819 | if test "${emacs_cv_var_doug_lea_malloc+set}" = set; then : |
| 9820 | $as_echo_n "(cached) " >&6 |
| 9821 | else |
| 9822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9823 | /* end confdefs.h. */ |
| 9824 | #include <malloc.h> |
| 9825 | static void hook (void) {} |
| 9826 | int |
| 9827 | main () |
| 9828 | { |
| 9829 | malloc_set_state (malloc_get_state ()); |
| 9830 | __after_morecore_hook = hook; |
| 9831 | __malloc_initialize_hook = hook; |
| 9832 | ; |
| 9833 | return 0; |
| 9834 | } |
| 9835 | _ACEOF |
| 9836 | if ac_fn_c_try_link "$LINENO"; then : |
| 9837 | emacs_cv_var_doug_lea_malloc=yes |
| 9838 | else |
| 9839 | emacs_cv_var_doug_lea_malloc=no |
| 9840 | fi |
| 9841 | rm -f core conftest.err conftest.$ac_objext \ |
| 9842 | conftest$ac_exeext conftest.$ac_ext |
| 9843 | fi |
| 9844 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var_doug_lea_malloc" >&5 |
| 9845 | $as_echo "$emacs_cv_var_doug_lea_malloc" >&6; } |
| 9846 | doug_lea_malloc=$emacs_cv_var_doug_lea_malloc |
| 9847 | |
| 9848 | |
| 9849 | system_malloc=no |
| 9850 | case "$opsys" in |
| 9851 | ## darwin ld insists on the use of malloc routines in the System framework. |
| 9852 | darwin|sol2-10) system_malloc=yes ;; |
| 9853 | esac |
| 9854 | |
| 9855 | if test "${system_malloc}" = "yes"; then |
| 9856 | |
| 9857 | $as_echo "#define SYSTEM_MALLOC 1" >>confdefs.h |
| 9858 | |
| 9859 | GNU_MALLOC=no |
| 9860 | GNU_MALLOC_reason=" |
| 9861 | (The GNU allocators don't work with this system configuration.)" |
| 9862 | GMALLOC_OBJ= |
| 9863 | VMLIMIT_OBJ= |
| 9864 | else |
| 9865 | test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o |
| 9866 | VMLIMIT_OBJ=vm-limit.o |
| 9867 | fi |
| 9868 | |
| 9869 | |
| 9870 | |
| 9871 | if test "$doug_lea_malloc" = "yes" ; then |
| 9872 | if test "$GNU_MALLOC" = yes ; then |
| 9873 | GNU_MALLOC_reason=" |
| 9874 | (Using Doug Lea's new malloc from the GNU C Library.)" |
| 9875 | fi |
| 9876 | |
| 9877 | $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h |
| 9878 | |
| 9879 | |
| 9880 | ## Use mmap directly for allocating larger buffers. |
| 9881 | ## FIXME this comes from src/s/{gnu,gnu-linux}.h: |
| 9882 | ## #ifdef DOUG_LEA_MALLOC; #undef REL_ALLOC; #endif |
| 9883 | ## Does the AC_FUNC_MMAP test below make this check unnecessary? |
| 9884 | case "$opsys" in |
| 9885 | gnu*) REL_ALLOC=no ;; |
| 9886 | esac |
| 9887 | fi |
| 9888 | |
| 9889 | if test x"${REL_ALLOC}" = x; then |
| 9890 | REL_ALLOC=${GNU_MALLOC} |
| 9891 | fi |
| 9892 | |
| 9893 | use_mmap_for_buffers=no |
| 9894 | case "$opsys" in |
| 9895 | cygwin|freebsd|irix6-5) use_mmap_for_buffers=yes ;; |
| 9896 | esac |
| 9897 | |
| 9898 | |
| 9899 | |
| 9900 | |
| 9901 | |
| 9902 | |
| 9903 | |
| 9904 | |
| 9905 | for ac_func in getpagesize |
| 9906 | do : |
| 9907 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 9908 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
| 9909 | cat >>confdefs.h <<_ACEOF |
| 9910 | #define HAVE_GETPAGESIZE 1 |
| 9911 | _ACEOF |
| 9912 | |
| 9913 | fi |
| 9914 | done |
| 9915 | |
| 9916 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
| 9917 | $as_echo_n "checking for working mmap... " >&6; } |
| 9918 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
| 9919 | $as_echo_n "(cached) " >&6 |
| 9920 | else |
| 9921 | if test "$cross_compiling" = yes; then : |
| 9922 | ac_cv_func_mmap_fixed_mapped=no |
| 9923 | else |
| 9924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 9925 | /* end confdefs.h. */ |
| 9926 | $ac_includes_default |
| 9927 | /* malloc might have been renamed as rpl_malloc. */ |
| 9928 | #undef malloc |
| 9929 | |
| 9930 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 9931 | Here is a matrix of mmap possibilities: |
| 9932 | mmap private not fixed |
| 9933 | mmap private fixed at somewhere currently unmapped |
| 9934 | mmap private fixed at somewhere already mapped |
| 9935 | mmap shared not fixed |
| 9936 | mmap shared fixed at somewhere currently unmapped |
| 9937 | mmap shared fixed at somewhere already mapped |
| 9938 | For private mappings, we should verify that changes cannot be read() |
| 9939 | back from the file, nor mmap's back from the file at a different |
| 9940 | address. (There have been systems where private was not correctly |
| 9941 | implemented like the infamous i386 svr4.0, and systems where the |
| 9942 | VM page cache was not coherent with the file system buffer cache |
| 9943 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 9944 | For shared mappings, we should conversely verify that changes get |
| 9945 | propagated back to all the places they're supposed to be. |
| 9946 | |
| 9947 | Grep wants private fixed already mapped. |
| 9948 | The main things grep needs to know about mmap are: |
| 9949 | * does it exist and is it safe to write into the mmap'd area |
| 9950 | * how to use it (BSD variants) */ |
| 9951 | |
| 9952 | #include <fcntl.h> |
| 9953 | #include <sys/mman.h> |
| 9954 | |
| 9955 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
| 9956 | char *malloc (); |
| 9957 | #endif |
| 9958 | |
| 9959 | /* This mess was copied from the GNU getpagesize.h. */ |
| 9960 | #ifndef HAVE_GETPAGESIZE |
| 9961 | # ifdef _SC_PAGESIZE |
| 9962 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 9963 | # else /* no _SC_PAGESIZE */ |
| 9964 | # ifdef HAVE_SYS_PARAM_H |
| 9965 | # include <sys/param.h> |
| 9966 | # ifdef EXEC_PAGESIZE |
| 9967 | # define getpagesize() EXEC_PAGESIZE |
| 9968 | # else /* no EXEC_PAGESIZE */ |
| 9969 | # ifdef NBPG |
| 9970 | # define getpagesize() NBPG * CLSIZE |
| 9971 | # ifndef CLSIZE |
| 9972 | # define CLSIZE 1 |
| 9973 | # endif /* no CLSIZE */ |
| 9974 | # else /* no NBPG */ |
| 9975 | # ifdef NBPC |
| 9976 | # define getpagesize() NBPC |
| 9977 | # else /* no NBPC */ |
| 9978 | # ifdef PAGESIZE |
| 9979 | # define getpagesize() PAGESIZE |
| 9980 | # endif /* PAGESIZE */ |
| 9981 | # endif /* no NBPC */ |
| 9982 | # endif /* no NBPG */ |
| 9983 | # endif /* no EXEC_PAGESIZE */ |
| 9984 | # else /* no HAVE_SYS_PARAM_H */ |
| 9985 | # define getpagesize() 8192 /* punt totally */ |
| 9986 | # endif /* no HAVE_SYS_PARAM_H */ |
| 9987 | # endif /* no _SC_PAGESIZE */ |
| 9988 | |
| 9989 | #endif /* no HAVE_GETPAGESIZE */ |
| 9990 | |
| 9991 | int |
| 9992 | main () |
| 9993 | { |
| 9994 | char *data, *data2, *data3; |
| 9995 | const char *cdata2; |
| 9996 | int i, pagesize; |
| 9997 | int fd, fd2; |
| 9998 | |
| 9999 | pagesize = getpagesize (); |
| 10000 | |
| 10001 | /* First, make a file with some known garbage in it. */ |
| 10002 | data = (char *) malloc (pagesize); |
| 10003 | if (!data) |
| 10004 | return 1; |
| 10005 | for (i = 0; i < pagesize; ++i) |
| 10006 | *(data + i) = rand (); |
| 10007 | umask (0); |
| 10008 | fd = creat ("conftest.mmap", 0600); |
| 10009 | if (fd < 0) |
| 10010 | return 2; |
| 10011 | if (write (fd, data, pagesize) != pagesize) |
| 10012 | return 3; |
| 10013 | close (fd); |
| 10014 | |
| 10015 | /* Next, check that the tail of a page is zero-filled. File must have |
| 10016 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 10017 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 10018 | if (fd2 < 0) |
| 10019 | return 4; |
| 10020 | cdata2 = ""; |
| 10021 | if (write (fd2, cdata2, 1) != 1) |
| 10022 | return 5; |
| 10023 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 10024 | if (data2 == MAP_FAILED) |
| 10025 | return 6; |
| 10026 | for (i = 0; i < pagesize; ++i) |
| 10027 | if (*(data2 + i)) |
| 10028 | return 7; |
| 10029 | close (fd2); |
| 10030 | if (munmap (data2, pagesize)) |
| 10031 | return 8; |
| 10032 | |
| 10033 | /* Next, try to mmap the file at a fixed address which already has |
| 10034 | something else allocated at it. If we can, also make sure that |
| 10035 | we see the same garbage. */ |
| 10036 | fd = open ("conftest.mmap", O_RDWR); |
| 10037 | if (fd < 0) |
| 10038 | return 9; |
| 10039 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 10040 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
| 10041 | return 10; |
| 10042 | for (i = 0; i < pagesize; ++i) |
| 10043 | if (*(data + i) != *(data2 + i)) |
| 10044 | return 11; |
| 10045 | |
| 10046 | /* Finally, make sure that changes to the mapped area do not |
| 10047 | percolate back to the file as seen by read(). (This is a bug on |
| 10048 | some variants of i386 svr4.0.) */ |
| 10049 | for (i = 0; i < pagesize; ++i) |
| 10050 | *(data2 + i) = *(data2 + i) + 1; |
| 10051 | data3 = (char *) malloc (pagesize); |
| 10052 | if (!data3) |
| 10053 | return 12; |
| 10054 | if (read (fd, data3, pagesize) != pagesize) |
| 10055 | return 13; |
| 10056 | for (i = 0; i < pagesize; ++i) |
| 10057 | if (*(data + i) != *(data3 + i)) |
| 10058 | return 14; |
| 10059 | close (fd); |
| 10060 | return 0; |
| 10061 | } |
| 10062 | _ACEOF |
| 10063 | if ac_fn_c_try_run "$LINENO"; then : |
| 10064 | ac_cv_func_mmap_fixed_mapped=yes |
| 10065 | else |
| 10066 | ac_cv_func_mmap_fixed_mapped=no |
| 10067 | fi |
| 10068 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10069 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 10070 | fi |
| 10071 | |
| 10072 | fi |
| 10073 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
| 10074 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
| 10075 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
| 10076 | |
| 10077 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
| 10078 | |
| 10079 | fi |
| 10080 | rm -f conftest.mmap conftest.txt |
| 10081 | |
| 10082 | if test $use_mmap_for_buffers = yes; then |
| 10083 | |
| 10084 | $as_echo "#define USE_MMAP_FOR_BUFFERS 1" >>confdefs.h |
| 10085 | |
| 10086 | REL_ALLOC=no |
| 10087 | fi |
| 10088 | |
| 10089 | LIBS="$LIBS_SYSTEM $LIBS" |
| 10090 | |
| 10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 |
| 10092 | $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } |
| 10093 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : |
| 10094 | $as_echo_n "(cached) " >&6 |
| 10095 | else |
| 10096 | ac_check_lib_save_LIBS=$LIBS |
| 10097 | LIBS="-ldnet $LIBS" |
| 10098 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10099 | /* end confdefs.h. */ |
| 10100 | |
| 10101 | /* Override any GCC internal prototype to avoid an error. |
| 10102 | Use char because int might match the return type of a GCC |
| 10103 | builtin and then its argument prototype would still apply. */ |
| 10104 | #ifdef __cplusplus |
| 10105 | extern "C" |
| 10106 | #endif |
| 10107 | char dnet_ntoa (); |
| 10108 | int |
| 10109 | main () |
| 10110 | { |
| 10111 | return dnet_ntoa (); |
| 10112 | ; |
| 10113 | return 0; |
| 10114 | } |
| 10115 | _ACEOF |
| 10116 | if ac_fn_c_try_link "$LINENO"; then : |
| 10117 | ac_cv_lib_dnet_dnet_ntoa=yes |
| 10118 | else |
| 10119 | ac_cv_lib_dnet_dnet_ntoa=no |
| 10120 | fi |
| 10121 | rm -f core conftest.err conftest.$ac_objext \ |
| 10122 | conftest$ac_exeext conftest.$ac_ext |
| 10123 | LIBS=$ac_check_lib_save_LIBS |
| 10124 | fi |
| 10125 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
| 10126 | $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
| 10127 | if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : |
| 10128 | cat >>confdefs.h <<_ACEOF |
| 10129 | #define HAVE_LIBDNET 1 |
| 10130 | _ACEOF |
| 10131 | |
| 10132 | LIBS="-ldnet $LIBS" |
| 10133 | |
| 10134 | fi |
| 10135 | |
| 10136 | |
| 10137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 |
| 10138 | $as_echo_n "checking for main in -lXbsd... " >&6; } |
| 10139 | if test "${ac_cv_lib_Xbsd_main+set}" = set; then : |
| 10140 | $as_echo_n "(cached) " >&6 |
| 10141 | else |
| 10142 | ac_check_lib_save_LIBS=$LIBS |
| 10143 | LIBS="-lXbsd $LIBS" |
| 10144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10145 | /* end confdefs.h. */ |
| 10146 | |
| 10147 | |
| 10148 | int |
| 10149 | main () |
| 10150 | { |
| 10151 | return main (); |
| 10152 | ; |
| 10153 | return 0; |
| 10154 | } |
| 10155 | _ACEOF |
| 10156 | if ac_fn_c_try_link "$LINENO"; then : |
| 10157 | ac_cv_lib_Xbsd_main=yes |
| 10158 | else |
| 10159 | ac_cv_lib_Xbsd_main=no |
| 10160 | fi |
| 10161 | rm -f core conftest.err conftest.$ac_objext \ |
| 10162 | conftest$ac_exeext conftest.$ac_ext |
| 10163 | LIBS=$ac_check_lib_save_LIBS |
| 10164 | fi |
| 10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 |
| 10166 | $as_echo "$ac_cv_lib_Xbsd_main" >&6; } |
| 10167 | if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : |
| 10168 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" |
| 10169 | fi |
| 10170 | |
| 10171 | |
| 10172 | LIB_PTHREAD= |
| 10173 | |
| 10174 | |
| 10175 | |
| 10176 | if test "$ac_cv_header_pthread_h"; then |
| 10177 | if test "$GMALLOC_OBJ" = gmalloc.o; then |
| 10178 | emacs_pthread_function=pthread_atfork |
| 10179 | else |
| 10180 | emacs_pthread_function=pthread_self |
| 10181 | fi |
| 10182 | as_ac_Lib=`$as_echo "ac_cv_lib_pthread_$emacs_pthread_function" | $as_tr_sh` |
| 10183 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $emacs_pthread_function in -lpthread" >&5 |
| 10184 | $as_echo_n "checking for $emacs_pthread_function in -lpthread... " >&6; } |
| 10185 | if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 10186 | $as_echo_n "(cached) " >&6 |
| 10187 | else |
| 10188 | ac_check_lib_save_LIBS=$LIBS |
| 10189 | LIBS="-lpthread $LIBS" |
| 10190 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10191 | /* end confdefs.h. */ |
| 10192 | |
| 10193 | /* Override any GCC internal prototype to avoid an error. |
| 10194 | Use char because int might match the return type of a GCC |
| 10195 | builtin and then its argument prototype would still apply. */ |
| 10196 | #ifdef __cplusplus |
| 10197 | extern "C" |
| 10198 | #endif |
| 10199 | char $emacs_pthread_function (); |
| 10200 | int |
| 10201 | main () |
| 10202 | { |
| 10203 | return $emacs_pthread_function (); |
| 10204 | ; |
| 10205 | return 0; |
| 10206 | } |
| 10207 | _ACEOF |
| 10208 | if ac_fn_c_try_link "$LINENO"; then : |
| 10209 | eval "$as_ac_Lib=yes" |
| 10210 | else |
| 10211 | eval "$as_ac_Lib=no" |
| 10212 | fi |
| 10213 | rm -f core conftest.err conftest.$ac_objext \ |
| 10214 | conftest$ac_exeext conftest.$ac_ext |
| 10215 | LIBS=$ac_check_lib_save_LIBS |
| 10216 | fi |
| 10217 | eval ac_res=\$$as_ac_Lib |
| 10218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 10219 | $as_echo "$ac_res" >&6; } |
| 10220 | eval as_val=\$$as_ac_Lib |
| 10221 | if test "x$as_val" = x""yes; then : |
| 10222 | HAVE_PTHREAD=yes |
| 10223 | fi |
| 10224 | |
| 10225 | fi |
| 10226 | if test "$HAVE_PTHREAD" = yes; then |
| 10227 | case "${canonical}" in |
| 10228 | *-hpux*) ;; |
| 10229 | *) LIB_PTHREAD="-lpthread" |
| 10230 | LIBS="$LIB_PTHREAD $LIBS" ;; |
| 10231 | esac |
| 10232 | |
| 10233 | $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h |
| 10234 | |
| 10235 | fi |
| 10236 | |
| 10237 | |
| 10238 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 |
| 10239 | $as_echo_n "checking for cma_open in -lpthreads... " >&6; } |
| 10240 | if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : |
| 10241 | $as_echo_n "(cached) " >&6 |
| 10242 | else |
| 10243 | ac_check_lib_save_LIBS=$LIBS |
| 10244 | LIBS="-lpthreads $LIBS" |
| 10245 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10246 | /* end confdefs.h. */ |
| 10247 | |
| 10248 | /* Override any GCC internal prototype to avoid an error. |
| 10249 | Use char because int might match the return type of a GCC |
| 10250 | builtin and then its argument prototype would still apply. */ |
| 10251 | #ifdef __cplusplus |
| 10252 | extern "C" |
| 10253 | #endif |
| 10254 | char cma_open (); |
| 10255 | int |
| 10256 | main () |
| 10257 | { |
| 10258 | return cma_open (); |
| 10259 | ; |
| 10260 | return 0; |
| 10261 | } |
| 10262 | _ACEOF |
| 10263 | if ac_fn_c_try_link "$LINENO"; then : |
| 10264 | ac_cv_lib_pthreads_cma_open=yes |
| 10265 | else |
| 10266 | ac_cv_lib_pthreads_cma_open=no |
| 10267 | fi |
| 10268 | rm -f core conftest.err conftest.$ac_objext \ |
| 10269 | conftest$ac_exeext conftest.$ac_ext |
| 10270 | LIBS=$ac_check_lib_save_LIBS |
| 10271 | fi |
| 10272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 |
| 10273 | $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } |
| 10274 | if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : |
| 10275 | cat >>confdefs.h <<_ACEOF |
| 10276 | #define HAVE_LIBPTHREADS 1 |
| 10277 | _ACEOF |
| 10278 | |
| 10279 | LIBS="-lpthreads $LIBS" |
| 10280 | |
| 10281 | fi |
| 10282 | |
| 10283 | |
| 10284 | ## Note: when using cpp in s/aix4.2.h, this definition depended on |
| 10285 | ## HAVE_LIBPTHREADS. That was not defined earlier in configure when |
| 10286 | ## the system file was sourced. Hence the value of LIBS_SYSTEM |
| 10287 | ## added to LIBS in configure would never contain the pthreads part, |
| 10288 | ## but the value used in Makefiles might. FIXME? |
| 10289 | ## |
| 10290 | ## -lpthreads seems to be necessary for Xlib in X11R6, and should |
| 10291 | ## be harmless on older versions of X where it happens to exist. |
| 10292 | test "$opsys" = "aix4-2" && \ |
| 10293 | test $ac_cv_lib_pthreads_cma_open = yes && \ |
| 10294 | LIBS_SYSTEM="$LIBS_SYSTEM -lpthreads" |
| 10295 | |
| 10296 | |
| 10297 | case ${host_os} in |
| 10298 | aix*) |
| 10299 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 |
| 10300 | $as_echo_n "checking for -bbigtoc option... " >&6; } |
| 10301 | if test "${gdb_cv_bigtoc+set}" = set; then : |
| 10302 | $as_echo_n "(cached) " >&6 |
| 10303 | else |
| 10304 | |
| 10305 | case $GCC in |
| 10306 | yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; |
| 10307 | *) gdb_cv_bigtoc=-bbigtoc ;; |
| 10308 | esac |
| 10309 | |
| 10310 | LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc |
| 10311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10312 | /* end confdefs.h. */ |
| 10313 | |
| 10314 | int |
| 10315 | main () |
| 10316 | { |
| 10317 | int i; |
| 10318 | ; |
| 10319 | return 0; |
| 10320 | } |
| 10321 | _ACEOF |
| 10322 | if ac_fn_c_try_link "$LINENO"; then : |
| 10323 | |
| 10324 | else |
| 10325 | gdb_cv_bigtoc= |
| 10326 | fi |
| 10327 | rm -f core conftest.err conftest.$ac_objext \ |
| 10328 | conftest$ac_exeext conftest.$ac_ext |
| 10329 | |
| 10330 | fi |
| 10331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 |
| 10332 | $as_echo "$gdb_cv_bigtoc" >&6; } |
| 10333 | ;; |
| 10334 | esac |
| 10335 | |
| 10336 | # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets |
| 10337 | # used for the tests that follow. We set them back to REAL_CFLAGS and |
| 10338 | # REAL_CPPFLAGS later on. |
| 10339 | |
| 10340 | REAL_CFLAGS="$CFLAGS" |
| 10341 | REAL_CPPFLAGS="$CPPFLAGS" |
| 10342 | |
| 10343 | if test "${HAVE_X11}" = "yes"; then |
| 10344 | DEFS="$C_SWITCH_X_SITE $DEFS" |
| 10345 | LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE" |
| 10346 | LIBS="-lX11 $LIBS" |
| 10347 | CFLAGS="$C_SWITCH_X_SITE $CFLAGS" |
| 10348 | CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS" |
| 10349 | |
| 10350 | # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests. |
| 10351 | # This is handled by LD_SWITCH_X_SITE_RPATH during the real build, |
| 10352 | # but it's more convenient here to set LD_RUN_PATH since this |
| 10353 | # also works on hosts that don't understand LD_SWITCH_X_SITE_RPATH. |
| 10354 | if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then |
| 10355 | LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH |
| 10356 | export LD_RUN_PATH |
| 10357 | fi |
| 10358 | |
| 10359 | if test "${opsys}" = "gnu-linux"; then |
| 10360 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 |
| 10361 | $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } |
| 10362 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10363 | /* end confdefs.h. */ |
| 10364 | |
| 10365 | int |
| 10366 | main () |
| 10367 | { |
| 10368 | XOpenDisplay ("foo"); |
| 10369 | ; |
| 10370 | return 0; |
| 10371 | } |
| 10372 | _ACEOF |
| 10373 | if ac_fn_c_try_link "$LINENO"; then : |
| 10374 | xgnu_linux_first_failure=no |
| 10375 | else |
| 10376 | xgnu_linux_first_failure=yes |
| 10377 | fi |
| 10378 | rm -f core conftest.err conftest.$ac_objext \ |
| 10379 | conftest$ac_exeext conftest.$ac_ext |
| 10380 | if test "${xgnu_linux_first_failure}" = "yes"; then |
| 10381 | OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" |
| 10382 | OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" |
| 10383 | OLD_CPPFLAGS="$CPPFLAGS" |
| 10384 | OLD_LIBS="$LIBS" |
| 10385 | LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" |
| 10386 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" |
| 10387 | CPPFLAGS="$CPPFLAGS -b i486-linuxaout" |
| 10388 | LIBS="$LIBS -b i486-linuxaout" |
| 10389 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10390 | /* end confdefs.h. */ |
| 10391 | |
| 10392 | int |
| 10393 | main () |
| 10394 | { |
| 10395 | XOpenDisplay ("foo"); |
| 10396 | ; |
| 10397 | return 0; |
| 10398 | } |
| 10399 | _ACEOF |
| 10400 | if ac_fn_c_try_link "$LINENO"; then : |
| 10401 | xgnu_linux_second_failure=no |
| 10402 | else |
| 10403 | xgnu_linux_second_failure=yes |
| 10404 | fi |
| 10405 | rm -f core conftest.err conftest.$ac_objext \ |
| 10406 | conftest$ac_exeext conftest.$ac_ext |
| 10407 | if test "${xgnu_linux_second_failure}" = "yes"; then |
| 10408 | # If we get the same failure with -b, there is no use adding -b. |
| 10409 | # So take it out. This plays safe. |
| 10410 | LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" |
| 10411 | C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" |
| 10412 | CPPFLAGS="$OLD_CPPFLAGS" |
| 10413 | LIBS="$OLD_LIBS" |
| 10414 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10415 | $as_echo "no" >&6; } |
| 10416 | else |
| 10417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 10418 | $as_echo "yes" >&6; } |
| 10419 | fi |
| 10420 | else |
| 10421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10422 | $as_echo "no" >&6; } |
| 10423 | fi |
| 10424 | fi |
| 10425 | |
| 10426 | # Reportedly, some broken Solaris systems have XKBlib.h but are missing |
| 10427 | # header files included from there. |
| 10428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 |
| 10429 | $as_echo_n "checking for Xkb... " >&6; } |
| 10430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10431 | /* end confdefs.h. */ |
| 10432 | #include <X11/Xlib.h> |
| 10433 | #include <X11/XKBlib.h> |
| 10434 | int |
| 10435 | main () |
| 10436 | { |
| 10437 | XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); |
| 10438 | ; |
| 10439 | return 0; |
| 10440 | } |
| 10441 | _ACEOF |
| 10442 | if ac_fn_c_try_link "$LINENO"; then : |
| 10443 | emacs_xkb=yes |
| 10444 | else |
| 10445 | emacs_xkb=no |
| 10446 | fi |
| 10447 | rm -f core conftest.err conftest.$ac_objext \ |
| 10448 | conftest$ac_exeext conftest.$ac_ext |
| 10449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 |
| 10450 | $as_echo "$emacs_xkb" >&6; } |
| 10451 | if test $emacs_xkb = yes; then |
| 10452 | |
| 10453 | $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h |
| 10454 | |
| 10455 | fi |
| 10456 | |
| 10457 | for ac_func in XrmSetDatabase XScreenResourceString \ |
| 10458 | XScreenNumberOfScreen |
| 10459 | do : |
| 10460 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10461 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10462 | eval as_val=\$$as_ac_var |
| 10463 | if test "x$as_val" = x""yes; then : |
| 10464 | cat >>confdefs.h <<_ACEOF |
| 10465 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10466 | _ACEOF |
| 10467 | |
| 10468 | fi |
| 10469 | done |
| 10470 | |
| 10471 | fi |
| 10472 | |
| 10473 | if test "${window_system}" = "x11"; then |
| 10474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 |
| 10475 | $as_echo_n "checking X11 version 6... " >&6; } |
| 10476 | if test "${emacs_cv_x11_version_6+set}" = set; then : |
| 10477 | $as_echo_n "(cached) " >&6 |
| 10478 | else |
| 10479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 10480 | /* end confdefs.h. */ |
| 10481 | #include <X11/Xlib.h> |
| 10482 | int |
| 10483 | main () |
| 10484 | { |
| 10485 | #if XlibSpecificationRelease < 6 |
| 10486 | fail; |
| 10487 | #endif |
| 10488 | |
| 10489 | ; |
| 10490 | return 0; |
| 10491 | } |
| 10492 | _ACEOF |
| 10493 | if ac_fn_c_try_link "$LINENO"; then : |
| 10494 | emacs_cv_x11_version_6=yes |
| 10495 | else |
| 10496 | emacs_cv_x11_version_6=no |
| 10497 | fi |
| 10498 | rm -f core conftest.err conftest.$ac_objext \ |
| 10499 | conftest$ac_exeext conftest.$ac_ext |
| 10500 | fi |
| 10501 | |
| 10502 | if test $emacs_cv_x11_version_6 = yes; then |
| 10503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
| 10504 | $as_echo "6 or newer" >&6; } |
| 10505 | |
| 10506 | $as_echo "#define HAVE_X11R6 1" >>confdefs.h |
| 10507 | |
| 10508 | |
| 10509 | $as_echo "#define HAVE_X_I18N 1" >>confdefs.h |
| 10510 | |
| 10511 | ## inoue@ainet.or.jp says Solaris has a bug related to X11R6-style |
| 10512 | ## XIM support. |
| 10513 | case "$opsys" in |
| 10514 | sol2-*) : ;; |
| 10515 | *) |
| 10516 | $as_echo "#define HAVE_X11R6_XIM 1" >>confdefs.h |
| 10517 | |
| 10518 | ;; |
| 10519 | esac |
| 10520 | else |
| 10521 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
| 10522 | $as_echo "before 6" >&6; } |
| 10523 | fi |
| 10524 | fi |
| 10525 | |
| 10526 | |
| 10527 | ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified. |
| 10528 | HAVE_RSVG=no |
| 10529 | if test "${HAVE_X11}" = "yes" || test "${HAVE_NS}" = "yes"; then |
| 10530 | if test "${with_rsvg}" != "no"; then |
| 10531 | RSVG_REQUIRED=2.11.0 |
| 10532 | RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED" |
| 10533 | |
| 10534 | |
| 10535 | succeeded=no |
| 10536 | |
| 10537 | if test "$PKG_CONFIG" = "no" ; then |
| 10538 | : |
| 10539 | else |
| 10540 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10541 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 |
| 10543 | $as_echo_n "checking for $RSVG_MODULE... " >&6; } |
| 10544 | |
| 10545 | if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5 && |
| 10546 | RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE" 2>&5` && |
| 10547 | RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE" 2>&5`; then |
| 10548 | edit_cflags=" |
| 10549 | s,///*,/,g |
| 10550 | s/^/ / |
| 10551 | s/ -I/ $isystem/g |
| 10552 | s/^ // |
| 10553 | " |
| 10554 | RSVG_CFLAGS=`$as_echo "$RSVG_CFLAGS" | sed -e "$edit_cflags"` |
| 10555 | RSVG_LIBS=`$as_echo "$RSVG_LIBS" | sed -e 's,///*,/,g'` |
| 10556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&5 |
| 10557 | $as_echo "yes CFLAGS='$RSVG_CFLAGS' LIBS='$RSVG_LIBS'" >&6; } |
| 10558 | succeeded=yes |
| 10559 | else |
| 10560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10561 | $as_echo "no" >&6; } |
| 10562 | RSVG_CFLAGS="" |
| 10563 | RSVG_LIBS="" |
| 10564 | ## If we have a custom action on failure, don't print errors, but |
| 10565 | ## do set a variable so people can do so. Do it in a subshell |
| 10566 | ## to capture any diagnostics in invoking pkg-config. |
| 10567 | RSVG_PKG_ERRORS=`($PKG_CONFIG --print-errors "$RSVG_MODULE") 2>&1` |
| 10568 | |
| 10569 | fi |
| 10570 | |
| 10571 | |
| 10572 | |
| 10573 | else |
| 10574 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10575 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10576 | fi |
| 10577 | fi |
| 10578 | |
| 10579 | if test $succeeded = yes; then |
| 10580 | HAVE_RSVG=yes |
| 10581 | else |
| 10582 | : |
| 10583 | fi |
| 10584 | |
| 10585 | |
| 10586 | |
| 10587 | |
| 10588 | if test $HAVE_RSVG = yes; then |
| 10589 | |
| 10590 | $as_echo "#define HAVE_RSVG 1" >>confdefs.h |
| 10591 | |
| 10592 | CFLAGS="$CFLAGS $RSVG_CFLAGS" |
| 10593 | LIBS="$RSVG_LIBS $LIBS" |
| 10594 | fi |
| 10595 | fi |
| 10596 | fi |
| 10597 | |
| 10598 | HAVE_IMAGEMAGICK=no |
| 10599 | if test "${HAVE_X11}" = "yes"; then |
| 10600 | if test "${with_imagemagick}" != "no"; then |
| 10601 | ## 6.2.8 is the earliest version known to work, but earlier versions |
| 10602 | ## might work - let us know if you find one. |
| 10603 | ## 6.0.7 does not work. See bug#7955. |
| 10604 | IMAGEMAGICK_MODULE="Wand >= 6.2.8" |
| 10605 | |
| 10606 | succeeded=no |
| 10607 | |
| 10608 | if test "$PKG_CONFIG" = "no" ; then |
| 10609 | : |
| 10610 | else |
| 10611 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10612 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $IMAGEMAGICK_MODULE" >&5 |
| 10614 | $as_echo_n "checking for $IMAGEMAGICK_MODULE... " >&6; } |
| 10615 | |
| 10616 | if $PKG_CONFIG --exists "$IMAGEMAGICK_MODULE" 2>&5 && |
| 10617 | IMAGEMAGICK_CFLAGS=`$PKG_CONFIG --cflags "$IMAGEMAGICK_MODULE" 2>&5` && |
| 10618 | IMAGEMAGICK_LIBS=`$PKG_CONFIG --libs "$IMAGEMAGICK_MODULE" 2>&5`; then |
| 10619 | edit_cflags=" |
| 10620 | s,///*,/,g |
| 10621 | s/^/ / |
| 10622 | s/ -I/ $isystem/g |
| 10623 | s/^ // |
| 10624 | " |
| 10625 | IMAGEMAGICK_CFLAGS=`$as_echo "$IMAGEMAGICK_CFLAGS" | sed -e "$edit_cflags"` |
| 10626 | IMAGEMAGICK_LIBS=`$as_echo "$IMAGEMAGICK_LIBS" | sed -e 's,///*,/,g'` |
| 10627 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&5 |
| 10628 | $as_echo "yes CFLAGS='$IMAGEMAGICK_CFLAGS' LIBS='$IMAGEMAGICK_LIBS'" >&6; } |
| 10629 | succeeded=yes |
| 10630 | else |
| 10631 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10632 | $as_echo "no" >&6; } |
| 10633 | IMAGEMAGICK_CFLAGS="" |
| 10634 | IMAGEMAGICK_LIBS="" |
| 10635 | ## If we have a custom action on failure, don't print errors, but |
| 10636 | ## do set a variable so people can do so. Do it in a subshell |
| 10637 | ## to capture any diagnostics in invoking pkg-config. |
| 10638 | IMAGEMAGICK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$IMAGEMAGICK_MODULE") 2>&1` |
| 10639 | |
| 10640 | fi |
| 10641 | |
| 10642 | |
| 10643 | |
| 10644 | else |
| 10645 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10646 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10647 | fi |
| 10648 | fi |
| 10649 | |
| 10650 | if test $succeeded = yes; then |
| 10651 | HAVE_IMAGEMAGICK=yes |
| 10652 | else |
| 10653 | : |
| 10654 | fi |
| 10655 | |
| 10656 | |
| 10657 | |
| 10658 | |
| 10659 | if test $HAVE_IMAGEMAGICK = yes; then |
| 10660 | |
| 10661 | $as_echo "#define HAVE_IMAGEMAGICK 1" >>confdefs.h |
| 10662 | |
| 10663 | CFLAGS="$CFLAGS $IMAGEMAGICK_CFLAGS" |
| 10664 | LIBS="$IMAGEMAGICK_LIBS $LIBS" |
| 10665 | for ac_func in MagickExportImagePixels MagickMergeImageLayers |
| 10666 | do : |
| 10667 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10668 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10669 | eval as_val=\$$as_ac_var |
| 10670 | if test "x$as_val" = x""yes; then : |
| 10671 | cat >>confdefs.h <<_ACEOF |
| 10672 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10673 | _ACEOF |
| 10674 | |
| 10675 | fi |
| 10676 | done |
| 10677 | |
| 10678 | fi |
| 10679 | fi |
| 10680 | fi |
| 10681 | |
| 10682 | |
| 10683 | HAVE_GTK=no |
| 10684 | GTK_OBJ= |
| 10685 | check_gtk2=no |
| 10686 | gtk3_pkg_errors= |
| 10687 | if test "${with_gtk3}" = "yes" || test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then |
| 10688 | GLIB_REQUIRED=2.28 |
| 10689 | GTK_REQUIRED=3.0 |
| 10690 | GTK_MODULES="gtk+-3.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
| 10691 | |
| 10692 | |
| 10693 | succeeded=no |
| 10694 | |
| 10695 | if test "$PKG_CONFIG" = "no" ; then |
| 10696 | pkg_check_gtk=no |
| 10697 | else |
| 10698 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10699 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 |
| 10701 | $as_echo_n "checking for $GTK_MODULES... " >&6; } |
| 10702 | |
| 10703 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 && |
| 10704 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` && |
| 10705 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then |
| 10706 | edit_cflags=" |
| 10707 | s,///*,/,g |
| 10708 | s/^/ / |
| 10709 | s/ -I/ $isystem/g |
| 10710 | s/^ // |
| 10711 | " |
| 10712 | GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"` |
| 10713 | GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'` |
| 10714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5 |
| 10715 | $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; } |
| 10716 | succeeded=yes |
| 10717 | else |
| 10718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10719 | $as_echo "no" >&6; } |
| 10720 | GTK_CFLAGS="" |
| 10721 | GTK_LIBS="" |
| 10722 | ## If we have a custom action on failure, don't print errors, but |
| 10723 | ## do set a variable so people can do so. Do it in a subshell |
| 10724 | ## to capture any diagnostics in invoking pkg-config. |
| 10725 | GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1` |
| 10726 | |
| 10727 | fi |
| 10728 | |
| 10729 | |
| 10730 | |
| 10731 | else |
| 10732 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10733 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10734 | fi |
| 10735 | fi |
| 10736 | |
| 10737 | if test $succeeded = yes; then |
| 10738 | pkg_check_gtk=yes |
| 10739 | else |
| 10740 | pkg_check_gtk=no |
| 10741 | fi |
| 10742 | |
| 10743 | if test "$pkg_check_gtk" = "no" && test "$with_gtk3" = "yes"; then |
| 10744 | as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 |
| 10745 | fi |
| 10746 | if test "$pkg_check_gtk" = "yes"; then |
| 10747 | |
| 10748 | $as_echo "#define HAVE_GTK3 1" >>confdefs.h |
| 10749 | |
| 10750 | GTK_OBJ=emacsgtkfixed.o |
| 10751 | term_header=gtkutil.h |
| 10752 | USE_GTK_TOOLKIT="GTK3" |
| 10753 | else |
| 10754 | check_gtk2=yes |
| 10755 | gtk3_pkg_errors="$GTK_PKG_ERRORS " |
| 10756 | fi |
| 10757 | fi |
| 10758 | |
| 10759 | if test "${with_gtk2}" = "yes" || test "$check_gtk2" = "yes"; then |
| 10760 | GLIB_REQUIRED=2.10 |
| 10761 | GTK_REQUIRED=2.10 |
| 10762 | GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED" |
| 10763 | |
| 10764 | |
| 10765 | succeeded=no |
| 10766 | |
| 10767 | if test "$PKG_CONFIG" = "no" ; then |
| 10768 | pkg_check_gtk=no |
| 10769 | else |
| 10770 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10771 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10772 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 |
| 10773 | $as_echo_n "checking for $GTK_MODULES... " >&6; } |
| 10774 | |
| 10775 | if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5 && |
| 10776 | GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES" 2>&5` && |
| 10777 | GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES" 2>&5`; then |
| 10778 | edit_cflags=" |
| 10779 | s,///*,/,g |
| 10780 | s/^/ / |
| 10781 | s/ -I/ $isystem/g |
| 10782 | s/^ // |
| 10783 | " |
| 10784 | GTK_CFLAGS=`$as_echo "$GTK_CFLAGS" | sed -e "$edit_cflags"` |
| 10785 | GTK_LIBS=`$as_echo "$GTK_LIBS" | sed -e 's,///*,/,g'` |
| 10786 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&5 |
| 10787 | $as_echo "yes CFLAGS='$GTK_CFLAGS' LIBS='$GTK_LIBS'" >&6; } |
| 10788 | succeeded=yes |
| 10789 | else |
| 10790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10791 | $as_echo "no" >&6; } |
| 10792 | GTK_CFLAGS="" |
| 10793 | GTK_LIBS="" |
| 10794 | ## If we have a custom action on failure, don't print errors, but |
| 10795 | ## do set a variable so people can do so. Do it in a subshell |
| 10796 | ## to capture any diagnostics in invoking pkg-config. |
| 10797 | GTK_PKG_ERRORS=`($PKG_CONFIG --print-errors "$GTK_MODULES") 2>&1` |
| 10798 | |
| 10799 | fi |
| 10800 | |
| 10801 | |
| 10802 | |
| 10803 | else |
| 10804 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10805 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10806 | fi |
| 10807 | fi |
| 10808 | |
| 10809 | if test $succeeded = yes; then |
| 10810 | pkg_check_gtk=yes |
| 10811 | else |
| 10812 | pkg_check_gtk=no |
| 10813 | fi |
| 10814 | |
| 10815 | if test "$pkg_check_gtk" = "no" && |
| 10816 | { test "$with_gtk" = yes || test "$with_gtk2" = "yes"; } |
| 10817 | then |
| 10818 | as_fn_error "$gtk3_pkg_errors$GTK_PKG_ERRORS" "$LINENO" 5 |
| 10819 | fi |
| 10820 | test "$pkg_check_gtk" = "yes" && USE_GTK_TOOLKIT="GTK2" |
| 10821 | fi |
| 10822 | |
| 10823 | if test x"$pkg_check_gtk" = xyes; then |
| 10824 | |
| 10825 | |
| 10826 | |
| 10827 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" |
| 10828 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
| 10829 | LIBS="$GTK_LIBS $LIBS" |
| 10830 | GTK_COMPILES=no |
| 10831 | for ac_func in gtk_main |
| 10832 | do : |
| 10833 | ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" |
| 10834 | if test "x$ac_cv_func_gtk_main" = x""yes; then : |
| 10835 | cat >>confdefs.h <<_ACEOF |
| 10836 | #define HAVE_GTK_MAIN 1 |
| 10837 | _ACEOF |
| 10838 | GTK_COMPILES=yes |
| 10839 | fi |
| 10840 | done |
| 10841 | |
| 10842 | if test "${GTK_COMPILES}" != "yes"; then |
| 10843 | if test "$USE_X_TOOLKIT" != "maybe"; then |
| 10844 | as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; |
| 10845 | fi |
| 10846 | else |
| 10847 | HAVE_GTK=yes |
| 10848 | |
| 10849 | $as_echo "#define USE_GTK 1" >>confdefs.h |
| 10850 | |
| 10851 | GTK_OBJ="gtkutil.o $GTK_OBJ" |
| 10852 | USE_X_TOOLKIT=none |
| 10853 | if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then |
| 10854 | : |
| 10855 | else |
| 10856 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with |
| 10857 | closing open displays. This is no problem if you just use |
| 10858 | one display, but if you use more than one and close one of them |
| 10859 | Emacs may crash." >&5 |
| 10860 | $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with |
| 10861 | closing open displays. This is no problem if you just use |
| 10862 | one display, but if you use more than one and close one of them |
| 10863 | Emacs may crash." >&2;} |
| 10864 | sleep 3 |
| 10865 | fi |
| 10866 | fi |
| 10867 | |
| 10868 | fi |
| 10869 | |
| 10870 | |
| 10871 | |
| 10872 | if test "${HAVE_GTK}" = "yes"; then |
| 10873 | |
| 10874 | if test "$with_toolkit_scroll_bars" != no; then |
| 10875 | with_toolkit_scroll_bars=yes |
| 10876 | fi |
| 10877 | |
| 10878 | HAVE_GTK_FILE_SELECTION=no |
| 10879 | ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default |
| 10880 | #include <gtk/gtk.h> |
| 10881 | " |
| 10882 | if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : |
| 10883 | HAVE_GTK_FILE_SELECTION=yes |
| 10884 | else |
| 10885 | HAVE_GTK_FILE_SELECTION=no |
| 10886 | fi |
| 10887 | |
| 10888 | if test "$HAVE_GTK_FILE_SELECTION" = yes; then |
| 10889 | for ac_func in gtk_file_selection_new |
| 10890 | do : |
| 10891 | ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" |
| 10892 | if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : |
| 10893 | cat >>confdefs.h <<_ACEOF |
| 10894 | #define HAVE_GTK_FILE_SELECTION_NEW 1 |
| 10895 | _ACEOF |
| 10896 | |
| 10897 | fi |
| 10898 | done |
| 10899 | |
| 10900 | fi |
| 10901 | |
| 10902 | |
| 10903 | for ac_func in gtk_widget_get_window gtk_widget_set_has_window \ |
| 10904 | gtk_dialog_get_action_area gtk_widget_get_sensitive \ |
| 10905 | gtk_widget_get_mapped gtk_adjustment_get_page_size \ |
| 10906 | gtk_orientable_set_orientation \ |
| 10907 | gtk_window_set_has_resize_grip |
| 10908 | do : |
| 10909 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10910 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10911 | eval as_val=\$$as_ac_var |
| 10912 | if test "x$as_val" = x""yes; then : |
| 10913 | cat >>confdefs.h <<_ACEOF |
| 10914 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10915 | _ACEOF |
| 10916 | |
| 10917 | fi |
| 10918 | done |
| 10919 | |
| 10920 | |
| 10921 | term_header=gtkutil.h |
| 10922 | fi |
| 10923 | |
| 10924 | HAVE_DBUS=no |
| 10925 | DBUS_OBJ= |
| 10926 | if test "${with_dbus}" = "yes"; then |
| 10927 | |
| 10928 | succeeded=no |
| 10929 | |
| 10930 | if test "$PKG_CONFIG" = "no" ; then |
| 10931 | HAVE_DBUS=no |
| 10932 | else |
| 10933 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 10934 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 10935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 |
| 10936 | $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } |
| 10937 | |
| 10938 | if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5 && |
| 10939 | DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0" 2>&5` && |
| 10940 | DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0" 2>&5`; then |
| 10941 | edit_cflags=" |
| 10942 | s,///*,/,g |
| 10943 | s/^/ / |
| 10944 | s/ -I/ $isystem/g |
| 10945 | s/^ // |
| 10946 | " |
| 10947 | DBUS_CFLAGS=`$as_echo "$DBUS_CFLAGS" | sed -e "$edit_cflags"` |
| 10948 | DBUS_LIBS=`$as_echo "$DBUS_LIBS" | sed -e 's,///*,/,g'` |
| 10949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&5 |
| 10950 | $as_echo "yes CFLAGS='$DBUS_CFLAGS' LIBS='$DBUS_LIBS'" >&6; } |
| 10951 | succeeded=yes |
| 10952 | else |
| 10953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 10954 | $as_echo "no" >&6; } |
| 10955 | DBUS_CFLAGS="" |
| 10956 | DBUS_LIBS="" |
| 10957 | ## If we have a custom action on failure, don't print errors, but |
| 10958 | ## do set a variable so people can do so. Do it in a subshell |
| 10959 | ## to capture any diagnostics in invoking pkg-config. |
| 10960 | DBUS_PKG_ERRORS=`($PKG_CONFIG --print-errors "dbus-1 >= 1.0") 2>&1` |
| 10961 | |
| 10962 | fi |
| 10963 | |
| 10964 | |
| 10965 | |
| 10966 | else |
| 10967 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 10968 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 10969 | fi |
| 10970 | fi |
| 10971 | |
| 10972 | if test $succeeded = yes; then |
| 10973 | HAVE_DBUS=yes |
| 10974 | else |
| 10975 | HAVE_DBUS=no |
| 10976 | fi |
| 10977 | |
| 10978 | if test "$HAVE_DBUS" = yes; then |
| 10979 | LIBS="$LIBS $DBUS_LIBS" |
| 10980 | |
| 10981 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h |
| 10982 | |
| 10983 | for ac_func in dbus_watch_get_unix_fd \ |
| 10984 | dbus_type_is_valid \ |
| 10985 | dbus_validate_bus_name \ |
| 10986 | dbus_validate_path \ |
| 10987 | dbus_validate_interface \ |
| 10988 | dbus_validate_member |
| 10989 | do : |
| 10990 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10991 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10992 | eval as_val=\$$as_ac_var |
| 10993 | if test "x$as_val" = x""yes; then : |
| 10994 | cat >>confdefs.h <<_ACEOF |
| 10995 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 10996 | _ACEOF |
| 10997 | |
| 10998 | fi |
| 10999 | done |
| 11000 | |
| 11001 | DBUS_OBJ=dbusbind.o |
| 11002 | fi |
| 11003 | fi |
| 11004 | |
| 11005 | |
| 11006 | HAVE_GSETTINGS=no |
| 11007 | if test "${HAVE_X11}" = "yes" && test "${with_gsettings}" = "yes"; then |
| 11008 | |
| 11009 | succeeded=no |
| 11010 | |
| 11011 | if test "$PKG_CONFIG" = "no" ; then |
| 11012 | HAVE_GSETTINGS=no |
| 11013 | else |
| 11014 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11015 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gio-2.0 >= 2.26" >&5 |
| 11017 | $as_echo_n "checking for gio-2.0 >= 2.26... " >&6; } |
| 11018 | |
| 11019 | if $PKG_CONFIG --exists "gio-2.0 >= 2.26" 2>&5 && |
| 11020 | GSETTINGS_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.26" 2>&5` && |
| 11021 | GSETTINGS_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.26" 2>&5`; then |
| 11022 | edit_cflags=" |
| 11023 | s,///*,/,g |
| 11024 | s/^/ / |
| 11025 | s/ -I/ $isystem/g |
| 11026 | s/^ // |
| 11027 | " |
| 11028 | GSETTINGS_CFLAGS=`$as_echo "$GSETTINGS_CFLAGS" | sed -e "$edit_cflags"` |
| 11029 | GSETTINGS_LIBS=`$as_echo "$GSETTINGS_LIBS" | sed -e 's,///*,/,g'` |
| 11030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&5 |
| 11031 | $as_echo "yes CFLAGS='$GSETTINGS_CFLAGS' LIBS='$GSETTINGS_LIBS'" >&6; } |
| 11032 | succeeded=yes |
| 11033 | else |
| 11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11035 | $as_echo "no" >&6; } |
| 11036 | GSETTINGS_CFLAGS="" |
| 11037 | GSETTINGS_LIBS="" |
| 11038 | ## If we have a custom action on failure, don't print errors, but |
| 11039 | ## do set a variable so people can do so. Do it in a subshell |
| 11040 | ## to capture any diagnostics in invoking pkg-config. |
| 11041 | GSETTINGS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gio-2.0 >= 2.26") 2>&1` |
| 11042 | |
| 11043 | fi |
| 11044 | |
| 11045 | |
| 11046 | |
| 11047 | else |
| 11048 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11049 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11050 | fi |
| 11051 | fi |
| 11052 | |
| 11053 | if test $succeeded = yes; then |
| 11054 | HAVE_GSETTINGS=yes |
| 11055 | else |
| 11056 | HAVE_GSETTINGS=no |
| 11057 | fi |
| 11058 | |
| 11059 | if test "$HAVE_GSETTINGS" = "yes"; then |
| 11060 | |
| 11061 | $as_echo "#define HAVE_GSETTINGS 1" >>confdefs.h |
| 11062 | |
| 11063 | SETTINGS_CFLAGS="$GSETTINGS_CFLAGS" |
| 11064 | SETTINGS_LIBS="$GSETTINGS_LIBS" |
| 11065 | fi |
| 11066 | fi |
| 11067 | |
| 11068 | HAVE_GCONF=no |
| 11069 | if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then |
| 11070 | |
| 11071 | succeeded=no |
| 11072 | |
| 11073 | if test "$PKG_CONFIG" = "no" ; then |
| 11074 | HAVE_GCONF=no |
| 11075 | else |
| 11076 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11077 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 |
| 11079 | $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } |
| 11080 | |
| 11081 | if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5 && |
| 11082 | GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13" 2>&5` && |
| 11083 | GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13" 2>&5`; then |
| 11084 | edit_cflags=" |
| 11085 | s,///*,/,g |
| 11086 | s/^/ / |
| 11087 | s/ -I/ $isystem/g |
| 11088 | s/^ // |
| 11089 | " |
| 11090 | GCONF_CFLAGS=`$as_echo "$GCONF_CFLAGS" | sed -e "$edit_cflags"` |
| 11091 | GCONF_LIBS=`$as_echo "$GCONF_LIBS" | sed -e 's,///*,/,g'` |
| 11092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&5 |
| 11093 | $as_echo "yes CFLAGS='$GCONF_CFLAGS' LIBS='$GCONF_LIBS'" >&6; } |
| 11094 | succeeded=yes |
| 11095 | else |
| 11096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11097 | $as_echo "no" >&6; } |
| 11098 | GCONF_CFLAGS="" |
| 11099 | GCONF_LIBS="" |
| 11100 | ## If we have a custom action on failure, don't print errors, but |
| 11101 | ## do set a variable so people can do so. Do it in a subshell |
| 11102 | ## to capture any diagnostics in invoking pkg-config. |
| 11103 | GCONF_PKG_ERRORS=`($PKG_CONFIG --print-errors "gconf-2.0 >= 2.13") 2>&1` |
| 11104 | |
| 11105 | fi |
| 11106 | |
| 11107 | |
| 11108 | |
| 11109 | else |
| 11110 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11111 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11112 | fi |
| 11113 | fi |
| 11114 | |
| 11115 | if test $succeeded = yes; then |
| 11116 | HAVE_GCONF=yes |
| 11117 | else |
| 11118 | HAVE_GCONF=no |
| 11119 | fi |
| 11120 | |
| 11121 | if test "$HAVE_GCONF" = yes; then |
| 11122 | |
| 11123 | $as_echo "#define HAVE_GCONF 1" >>confdefs.h |
| 11124 | |
| 11125 | SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GCONF_CFLAGS" |
| 11126 | SETTINGS_LIBS="$SETTINGS_LIBS $GCONF_LIBS" |
| 11127 | fi |
| 11128 | fi |
| 11129 | |
| 11130 | if test "$HAVE_GSETTINGS" = "yes" || test "$HAVE_GCONF" = "yes"; then |
| 11131 | |
| 11132 | succeeded=no |
| 11133 | |
| 11134 | if test "$PKG_CONFIG" = "no" ; then |
| 11135 | HAVE_GOBJECT=no |
| 11136 | else |
| 11137 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11138 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.0" >&5 |
| 11140 | $as_echo_n "checking for gobject-2.0 >= 2.0... " >&6; } |
| 11141 | |
| 11142 | if $PKG_CONFIG --exists "gobject-2.0 >= 2.0" 2>&5 && |
| 11143 | GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.0" 2>&5` && |
| 11144 | GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.0" 2>&5`; then |
| 11145 | edit_cflags=" |
| 11146 | s,///*,/,g |
| 11147 | s/^/ / |
| 11148 | s/ -I/ $isystem/g |
| 11149 | s/^ // |
| 11150 | " |
| 11151 | GOBJECT_CFLAGS=`$as_echo "$GOBJECT_CFLAGS" | sed -e "$edit_cflags"` |
| 11152 | GOBJECT_LIBS=`$as_echo "$GOBJECT_LIBS" | sed -e 's,///*,/,g'` |
| 11153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&5 |
| 11154 | $as_echo "yes CFLAGS='$GOBJECT_CFLAGS' LIBS='$GOBJECT_LIBS'" >&6; } |
| 11155 | succeeded=yes |
| 11156 | else |
| 11157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11158 | $as_echo "no" >&6; } |
| 11159 | GOBJECT_CFLAGS="" |
| 11160 | GOBJECT_LIBS="" |
| 11161 | ## If we have a custom action on failure, don't print errors, but |
| 11162 | ## do set a variable so people can do so. Do it in a subshell |
| 11163 | ## to capture any diagnostics in invoking pkg-config. |
| 11164 | GOBJECT_PKG_ERRORS=`($PKG_CONFIG --print-errors "gobject-2.0 >= 2.0") 2>&1` |
| 11165 | |
| 11166 | fi |
| 11167 | |
| 11168 | |
| 11169 | |
| 11170 | else |
| 11171 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11172 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11173 | fi |
| 11174 | fi |
| 11175 | |
| 11176 | if test $succeeded = yes; then |
| 11177 | HAVE_GOBJECT=yes |
| 11178 | else |
| 11179 | HAVE_GOBJECT=no |
| 11180 | fi |
| 11181 | |
| 11182 | if test "$HAVE_GOBJECT" = "yes"; then |
| 11183 | SETTINGS_CFLAGS="$SETTINGS_CFLAGS $GOBJECT_CFLAGS" |
| 11184 | SETTINGS_LIBS="$SETTINGS_LIBS $GOBJECT_LIBS" |
| 11185 | fi |
| 11186 | SAVE_CFLAGS="$CFLAGS" |
| 11187 | SAVE_LIBS="$LIBS" |
| 11188 | CFLAGS="$SETTINGS_CFLAGS $CFLAGS" |
| 11189 | LIBS="$SETTINGS_LIBS $LIBS" |
| 11190 | for ac_func in g_type_init |
| 11191 | do : |
| 11192 | ac_fn_c_check_func "$LINENO" "g_type_init" "ac_cv_func_g_type_init" |
| 11193 | if test "x$ac_cv_func_g_type_init" = x""yes; then : |
| 11194 | cat >>confdefs.h <<_ACEOF |
| 11195 | #define HAVE_G_TYPE_INIT 1 |
| 11196 | _ACEOF |
| 11197 | |
| 11198 | fi |
| 11199 | done |
| 11200 | |
| 11201 | CFLAGS="$SAVE_CFLAGS" |
| 11202 | LIBS="$SAVE_LIBS" |
| 11203 | fi |
| 11204 | |
| 11205 | |
| 11206 | |
| 11207 | |
| 11208 | HAVE_LIBSELINUX=no |
| 11209 | LIBSELINUX_LIBS= |
| 11210 | if test "${with_selinux}" = "yes"; then |
| 11211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 |
| 11212 | $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } |
| 11213 | if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : |
| 11214 | $as_echo_n "(cached) " >&6 |
| 11215 | else |
| 11216 | ac_check_lib_save_LIBS=$LIBS |
| 11217 | LIBS="-lselinux $LIBS" |
| 11218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11219 | /* end confdefs.h. */ |
| 11220 | |
| 11221 | /* Override any GCC internal prototype to avoid an error. |
| 11222 | Use char because int might match the return type of a GCC |
| 11223 | builtin and then its argument prototype would still apply. */ |
| 11224 | #ifdef __cplusplus |
| 11225 | extern "C" |
| 11226 | #endif |
| 11227 | char lgetfilecon (); |
| 11228 | int |
| 11229 | main () |
| 11230 | { |
| 11231 | return lgetfilecon (); |
| 11232 | ; |
| 11233 | return 0; |
| 11234 | } |
| 11235 | _ACEOF |
| 11236 | if ac_fn_c_try_link "$LINENO"; then : |
| 11237 | ac_cv_lib_selinux_lgetfilecon=yes |
| 11238 | else |
| 11239 | ac_cv_lib_selinux_lgetfilecon=no |
| 11240 | fi |
| 11241 | rm -f core conftest.err conftest.$ac_objext \ |
| 11242 | conftest$ac_exeext conftest.$ac_ext |
| 11243 | LIBS=$ac_check_lib_save_LIBS |
| 11244 | fi |
| 11245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 |
| 11246 | $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } |
| 11247 | if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : |
| 11248 | HAVE_LIBSELINUX=yes |
| 11249 | else |
| 11250 | HAVE_LIBSELINUX=no |
| 11251 | fi |
| 11252 | |
| 11253 | if test "$HAVE_LIBSELINUX" = yes; then |
| 11254 | |
| 11255 | $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h |
| 11256 | |
| 11257 | LIBSELINUX_LIBS=-lselinux |
| 11258 | fi |
| 11259 | fi |
| 11260 | |
| 11261 | |
| 11262 | HAVE_GNUTLS=no |
| 11263 | HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=no |
| 11264 | if test "${with_gnutls}" = "yes" ; then |
| 11265 | |
| 11266 | succeeded=no |
| 11267 | |
| 11268 | if test "$PKG_CONFIG" = "no" ; then |
| 11269 | HAVE_GNUTLS=no |
| 11270 | else |
| 11271 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11272 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.6.6" >&5 |
| 11274 | $as_echo_n "checking for gnutls >= 2.6.6... " >&6; } |
| 11275 | |
| 11276 | if $PKG_CONFIG --exists "gnutls >= 2.6.6" 2>&5 && |
| 11277 | LIBGNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.6.6" 2>&5` && |
| 11278 | LIBGNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.6.6" 2>&5`; then |
| 11279 | edit_cflags=" |
| 11280 | s,///*,/,g |
| 11281 | s/^/ / |
| 11282 | s/ -I/ $isystem/g |
| 11283 | s/^ // |
| 11284 | " |
| 11285 | LIBGNUTLS_CFLAGS=`$as_echo "$LIBGNUTLS_CFLAGS" | sed -e "$edit_cflags"` |
| 11286 | LIBGNUTLS_LIBS=`$as_echo "$LIBGNUTLS_LIBS" | sed -e 's,///*,/,g'` |
| 11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&5 |
| 11288 | $as_echo "yes CFLAGS='$LIBGNUTLS_CFLAGS' LIBS='$LIBGNUTLS_LIBS'" >&6; } |
| 11289 | succeeded=yes |
| 11290 | else |
| 11291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11292 | $as_echo "no" >&6; } |
| 11293 | LIBGNUTLS_CFLAGS="" |
| 11294 | LIBGNUTLS_LIBS="" |
| 11295 | ## If we have a custom action on failure, don't print errors, but |
| 11296 | ## do set a variable so people can do so. Do it in a subshell |
| 11297 | ## to capture any diagnostics in invoking pkg-config. |
| 11298 | LIBGNUTLS_PKG_ERRORS=`($PKG_CONFIG --print-errors "gnutls >= 2.6.6") 2>&1` |
| 11299 | |
| 11300 | fi |
| 11301 | |
| 11302 | |
| 11303 | |
| 11304 | else |
| 11305 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11306 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11307 | fi |
| 11308 | fi |
| 11309 | |
| 11310 | if test $succeeded = yes; then |
| 11311 | HAVE_GNUTLS=yes |
| 11312 | else |
| 11313 | HAVE_GNUTLS=no |
| 11314 | fi |
| 11315 | |
| 11316 | if test "${HAVE_GNUTLS}" = "yes"; then |
| 11317 | |
| 11318 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h |
| 11319 | |
| 11320 | fi |
| 11321 | |
| 11322 | CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS" |
| 11323 | LIBS="$LIBGNUTLS_LIBS $LIBS" |
| 11324 | for ac_func in gnutls_certificate_set_verify_function |
| 11325 | do : |
| 11326 | ac_fn_c_check_func "$LINENO" "gnutls_certificate_set_verify_function" "ac_cv_func_gnutls_certificate_set_verify_function" |
| 11327 | if test "x$ac_cv_func_gnutls_certificate_set_verify_function" = x""yes; then : |
| 11328 | cat >>confdefs.h <<_ACEOF |
| 11329 | #define HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION 1 |
| 11330 | _ACEOF |
| 11331 | HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY=yes |
| 11332 | fi |
| 11333 | done |
| 11334 | |
| 11335 | |
| 11336 | if test "${HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY}" = "yes"; then |
| 11337 | |
| 11338 | $as_echo "#define HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY 1" >>confdefs.h |
| 11339 | |
| 11340 | fi |
| 11341 | fi |
| 11342 | |
| 11343 | |
| 11344 | |
| 11345 | |
| 11346 | HAVE_XAW3D=no |
| 11347 | LUCID_LIBW= |
| 11348 | if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then |
| 11349 | if test "$with_xaw3d" != no; then |
| 11350 | if test "${emacs_cv_xaw3d+set}" = set; then : |
| 11351 | $as_echo_n "(cached) " >&6 |
| 11352 | else |
| 11353 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11354 | /* end confdefs.h. */ |
| 11355 | |
| 11356 | #include <X11/Intrinsic.h> |
| 11357 | #include <X11/Xaw3d/Simple.h> |
| 11358 | int |
| 11359 | main () |
| 11360 | { |
| 11361 | |
| 11362 | ; |
| 11363 | return 0; |
| 11364 | } |
| 11365 | _ACEOF |
| 11366 | if ac_fn_c_try_link "$LINENO"; then : |
| 11367 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XawScrollbarSetThumb in -lXaw3d" >&5 |
| 11368 | $as_echo_n "checking for XawScrollbarSetThumb in -lXaw3d... " >&6; } |
| 11369 | if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then : |
| 11370 | $as_echo_n "(cached) " >&6 |
| 11371 | else |
| 11372 | ac_check_lib_save_LIBS=$LIBS |
| 11373 | LIBS="-lXaw3d $LIBS" |
| 11374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11375 | /* end confdefs.h. */ |
| 11376 | |
| 11377 | /* Override any GCC internal prototype to avoid an error. |
| 11378 | Use char because int might match the return type of a GCC |
| 11379 | builtin and then its argument prototype would still apply. */ |
| 11380 | #ifdef __cplusplus |
| 11381 | extern "C" |
| 11382 | #endif |
| 11383 | char XawScrollbarSetThumb (); |
| 11384 | int |
| 11385 | main () |
| 11386 | { |
| 11387 | return XawScrollbarSetThumb (); |
| 11388 | ; |
| 11389 | return 0; |
| 11390 | } |
| 11391 | _ACEOF |
| 11392 | if ac_fn_c_try_link "$LINENO"; then : |
| 11393 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes |
| 11394 | else |
| 11395 | ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no |
| 11396 | fi |
| 11397 | rm -f core conftest.err conftest.$ac_objext \ |
| 11398 | conftest$ac_exeext conftest.$ac_ext |
| 11399 | LIBS=$ac_check_lib_save_LIBS |
| 11400 | fi |
| 11401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5 |
| 11402 | $as_echo "$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; } |
| 11403 | if test "x$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" = x""yes; then : |
| 11404 | emacs_cv_xaw3d=yes |
| 11405 | else |
| 11406 | emacs_cv_xaw3d=no |
| 11407 | fi |
| 11408 | |
| 11409 | else |
| 11410 | emacs_cv_xaw3d=no |
| 11411 | fi |
| 11412 | rm -f core conftest.err conftest.$ac_objext \ |
| 11413 | conftest$ac_exeext conftest.$ac_ext |
| 11414 | fi |
| 11415 | |
| 11416 | else |
| 11417 | emacs_cv_xaw3d=no |
| 11418 | fi |
| 11419 | if test $emacs_cv_xaw3d = yes; then |
| 11420 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 |
| 11421 | $as_echo_n "checking for xaw3d... " >&6; } |
| 11422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
| 11423 | $as_echo "yes; using Lucid toolkit" >&6; } |
| 11424 | USE_X_TOOLKIT=LUCID |
| 11425 | HAVE_XAW3D=yes |
| 11426 | LUCID_LIBW=-lXaw3d |
| 11427 | |
| 11428 | $as_echo "#define HAVE_XAW3D 1" >>confdefs.h |
| 11429 | |
| 11430 | else |
| 11431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 |
| 11432 | $as_echo_n "checking for xaw3d... " >&6; } |
| 11433 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11434 | $as_echo "no" >&6; } |
| 11435 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 |
| 11436 | $as_echo_n "checking for libXaw... " >&6; } |
| 11437 | if test "${emacs_cv_xaw+set}" = set; then : |
| 11438 | $as_echo_n "(cached) " >&6 |
| 11439 | else |
| 11440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11441 | /* end confdefs.h. */ |
| 11442 | |
| 11443 | #include <X11/Intrinsic.h> |
| 11444 | #include <X11/Xaw/Simple.h> |
| 11445 | int |
| 11446 | main () |
| 11447 | { |
| 11448 | |
| 11449 | ; |
| 11450 | return 0; |
| 11451 | } |
| 11452 | _ACEOF |
| 11453 | if ac_fn_c_try_link "$LINENO"; then : |
| 11454 | emacs_cv_xaw=yes |
| 11455 | else |
| 11456 | emacs_cv_xaw=no |
| 11457 | fi |
| 11458 | rm -f core conftest.err conftest.$ac_objext \ |
| 11459 | conftest$ac_exeext conftest.$ac_ext |
| 11460 | fi |
| 11461 | |
| 11462 | if test $emacs_cv_xaw = yes; then |
| 11463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 |
| 11464 | $as_echo "yes; using Lucid toolkit" >&6; } |
| 11465 | USE_X_TOOLKIT=LUCID |
| 11466 | LUCID_LIBW=-lXaw |
| 11467 | elif test x"${USE_X_TOOLKIT}" = xLUCID; then |
| 11468 | as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 |
| 11469 | else |
| 11470 | as_fn_error "No X toolkit could be found. |
| 11471 | If you are sure you want Emacs compiled without an X toolkit, pass |
| 11472 | --with-x-toolkit=no |
| 11473 | to configure. Otherwise, install the development libraries for the toolkit |
| 11474 | that you want to use (e.g. Gtk+) and re-run configure." "$LINENO" 5 |
| 11475 | fi |
| 11476 | fi |
| 11477 | fi |
| 11478 | |
| 11479 | X_TOOLKIT_TYPE=$USE_X_TOOLKIT |
| 11480 | |
| 11481 | LIBXTR6= |
| 11482 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 |
| 11484 | $as_echo_n "checking X11 toolkit version... " >&6; } |
| 11485 | if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : |
| 11486 | $as_echo_n "(cached) " >&6 |
| 11487 | else |
| 11488 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11489 | /* end confdefs.h. */ |
| 11490 | #include <X11/Intrinsic.h> |
| 11491 | int |
| 11492 | main () |
| 11493 | { |
| 11494 | #if XtSpecificationRelease < 6 |
| 11495 | fail; |
| 11496 | #endif |
| 11497 | |
| 11498 | ; |
| 11499 | return 0; |
| 11500 | } |
| 11501 | _ACEOF |
| 11502 | if ac_fn_c_try_link "$LINENO"; then : |
| 11503 | emacs_cv_x11_toolkit_version_6=yes |
| 11504 | else |
| 11505 | emacs_cv_x11_toolkit_version_6=no |
| 11506 | fi |
| 11507 | rm -f core conftest.err conftest.$ac_objext \ |
| 11508 | conftest$ac_exeext conftest.$ac_ext |
| 11509 | fi |
| 11510 | |
| 11511 | HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 |
| 11512 | if test $emacs_cv_x11_toolkit_version_6 = yes; then |
| 11513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 |
| 11514 | $as_echo "6 or newer" >&6; } |
| 11515 | |
| 11516 | $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h |
| 11517 | |
| 11518 | LIBXTR6="-lSM -lICE" |
| 11519 | case "$opsys" in |
| 11520 | ## Use libw.a along with X11R6 Xt. |
| 11521 | unixware) LIBXTR6="$LIBXTR6 -lw" ;; |
| 11522 | esac |
| 11523 | else |
| 11524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 |
| 11525 | $as_echo "before 6" >&6; } |
| 11526 | fi |
| 11527 | |
| 11528 | OLDLIBS="$LIBS" |
| 11529 | if test x$HAVE_X11XTR6 = xyes; then |
| 11530 | LIBS="-lXt -lSM -lICE $LIBS" |
| 11531 | else |
| 11532 | LIBS="-lXt $LIBS" |
| 11533 | fi |
| 11534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 |
| 11535 | $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } |
| 11536 | if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : |
| 11537 | $as_echo_n "(cached) " >&6 |
| 11538 | else |
| 11539 | ac_check_lib_save_LIBS=$LIBS |
| 11540 | LIBS="-lXmu $LIBS" |
| 11541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11542 | /* end confdefs.h. */ |
| 11543 | |
| 11544 | /* Override any GCC internal prototype to avoid an error. |
| 11545 | Use char because int might match the return type of a GCC |
| 11546 | builtin and then its argument prototype would still apply. */ |
| 11547 | #ifdef __cplusplus |
| 11548 | extern "C" |
| 11549 | #endif |
| 11550 | char XmuConvertStandardSelection (); |
| 11551 | int |
| 11552 | main () |
| 11553 | { |
| 11554 | return XmuConvertStandardSelection (); |
| 11555 | ; |
| 11556 | return 0; |
| 11557 | } |
| 11558 | _ACEOF |
| 11559 | if ac_fn_c_try_link "$LINENO"; then : |
| 11560 | ac_cv_lib_Xmu_XmuConvertStandardSelection=yes |
| 11561 | else |
| 11562 | ac_cv_lib_Xmu_XmuConvertStandardSelection=no |
| 11563 | fi |
| 11564 | rm -f core conftest.err conftest.$ac_objext \ |
| 11565 | conftest$ac_exeext conftest.$ac_ext |
| 11566 | LIBS=$ac_check_lib_save_LIBS |
| 11567 | fi |
| 11568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 |
| 11569 | $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } |
| 11570 | if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : |
| 11571 | cat >>confdefs.h <<_ACEOF |
| 11572 | #define HAVE_LIBXMU 1 |
| 11573 | _ACEOF |
| 11574 | |
| 11575 | LIBS="-lXmu $LIBS" |
| 11576 | |
| 11577 | fi |
| 11578 | |
| 11579 | test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS" |
| 11580 | fi |
| 11581 | |
| 11582 | |
| 11583 | LIBXMU=-lXmu |
| 11584 | case $opsys in |
| 11585 | ## These systems don't supply Xmu. |
| 11586 | hpux* | aix4-2 ) |
| 11587 | test "X$ac_cv_lib_Xmu_XmuConvertStandardSelection" != "Xyes" && LIBXMU= |
| 11588 | ;; |
| 11589 | esac |
| 11590 | |
| 11591 | |
| 11592 | # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. |
| 11593 | if test "${HAVE_X11}" = "yes"; then |
| 11594 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 |
| 11596 | $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } |
| 11597 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : |
| 11598 | $as_echo_n "(cached) " >&6 |
| 11599 | else |
| 11600 | ac_check_lib_save_LIBS=$LIBS |
| 11601 | LIBS="-lXext $LIBS" |
| 11602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11603 | /* end confdefs.h. */ |
| 11604 | |
| 11605 | /* Override any GCC internal prototype to avoid an error. |
| 11606 | Use char because int might match the return type of a GCC |
| 11607 | builtin and then its argument prototype would still apply. */ |
| 11608 | #ifdef __cplusplus |
| 11609 | extern "C" |
| 11610 | #endif |
| 11611 | char XShapeQueryExtension (); |
| 11612 | int |
| 11613 | main () |
| 11614 | { |
| 11615 | return XShapeQueryExtension (); |
| 11616 | ; |
| 11617 | return 0; |
| 11618 | } |
| 11619 | _ACEOF |
| 11620 | if ac_fn_c_try_link "$LINENO"; then : |
| 11621 | ac_cv_lib_Xext_XShapeQueryExtension=yes |
| 11622 | else |
| 11623 | ac_cv_lib_Xext_XShapeQueryExtension=no |
| 11624 | fi |
| 11625 | rm -f core conftest.err conftest.$ac_objext \ |
| 11626 | conftest$ac_exeext conftest.$ac_ext |
| 11627 | LIBS=$ac_check_lib_save_LIBS |
| 11628 | fi |
| 11629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 |
| 11630 | $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } |
| 11631 | if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : |
| 11632 | cat >>confdefs.h <<_ACEOF |
| 11633 | #define HAVE_LIBXEXT 1 |
| 11634 | _ACEOF |
| 11635 | |
| 11636 | LIBS="-lXext $LIBS" |
| 11637 | |
| 11638 | fi |
| 11639 | |
| 11640 | fi |
| 11641 | fi |
| 11642 | |
| 11643 | LIBXP= |
| 11644 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 11645 | # OpenMotif may be installed in such a way on some GNU/Linux systems. |
| 11646 | if test -d /usr/include/openmotif; then |
| 11647 | CPPFLAGS="-I/usr/include/openmotif $CPPFLAGS" |
| 11648 | emacs_cv_openmotif=yes |
| 11649 | case "$canonical" in |
| 11650 | x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | sparc64-*-linux-gnu*) |
| 11651 | test -d /usr/lib64/openmotif && LDFLAGS="-L/usr/lib64/openmotif $LDFLAGS" |
| 11652 | ;; |
| 11653 | *) |
| 11654 | test -d /usr/lib/openmotif && LDFLAGS="-L/usr/lib/openmotif $LDFLAGS" |
| 11655 | esac |
| 11656 | else |
| 11657 | emacs_cv_openmotif=no |
| 11658 | fi |
| 11659 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for (Open)Motif version 2.1" >&5 |
| 11660 | $as_echo_n "checking for (Open)Motif version 2.1... " >&6; } |
| 11661 | if test "${emacs_cv_motif_version_2_1+set}" = set; then : |
| 11662 | $as_echo_n "(cached) " >&6 |
| 11663 | else |
| 11664 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11665 | /* end confdefs.h. */ |
| 11666 | #include <Xm/Xm.h> |
| 11667 | int |
| 11668 | main () |
| 11669 | { |
| 11670 | #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1) |
| 11671 | int x = 5; |
| 11672 | #else |
| 11673 | Motif version prior to 2.1. |
| 11674 | #endif |
| 11675 | ; |
| 11676 | return 0; |
| 11677 | } |
| 11678 | _ACEOF |
| 11679 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11680 | emacs_cv_motif_version_2_1=yes |
| 11681 | else |
| 11682 | emacs_cv_motif_version_2_1=no |
| 11683 | fi |
| 11684 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11685 | fi |
| 11686 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 |
| 11687 | $as_echo "$emacs_cv_motif_version_2_1" >&6; } |
| 11688 | if test $emacs_cv_motif_version_2_1 = yes; then |
| 11689 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 |
| 11690 | $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } |
| 11691 | if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : |
| 11692 | $as_echo_n "(cached) " >&6 |
| 11693 | else |
| 11694 | ac_check_lib_save_LIBS=$LIBS |
| 11695 | LIBS="-lXp $LIBS" |
| 11696 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11697 | /* end confdefs.h. */ |
| 11698 | |
| 11699 | /* Override any GCC internal prototype to avoid an error. |
| 11700 | Use char because int might match the return type of a GCC |
| 11701 | builtin and then its argument prototype would still apply. */ |
| 11702 | #ifdef __cplusplus |
| 11703 | extern "C" |
| 11704 | #endif |
| 11705 | char XpCreateContext (); |
| 11706 | int |
| 11707 | main () |
| 11708 | { |
| 11709 | return XpCreateContext (); |
| 11710 | ; |
| 11711 | return 0; |
| 11712 | } |
| 11713 | _ACEOF |
| 11714 | if ac_fn_c_try_link "$LINENO"; then : |
| 11715 | ac_cv_lib_Xp_XpCreateContext=yes |
| 11716 | else |
| 11717 | ac_cv_lib_Xp_XpCreateContext=no |
| 11718 | fi |
| 11719 | rm -f core conftest.err conftest.$ac_objext \ |
| 11720 | conftest$ac_exeext conftest.$ac_ext |
| 11721 | LIBS=$ac_check_lib_save_LIBS |
| 11722 | fi |
| 11723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 |
| 11724 | $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } |
| 11725 | if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : |
| 11726 | LIBXP=-lXp |
| 11727 | fi |
| 11728 | |
| 11729 | if test x$emacs_cv_openmotif = xyes; then |
| 11730 | REAL_CPPFLAGS="-I/usr/include/openmotif $REAL_CPPFLAGS" |
| 11731 | fi |
| 11732 | else |
| 11733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 |
| 11734 | $as_echo_n "checking for LessTif where some systems put it... " >&6; } |
| 11735 | if test "${emacs_cv_lesstif+set}" = set; then : |
| 11736 | $as_echo_n "(cached) " >&6 |
| 11737 | else |
| 11738 | # We put this in CFLAGS temporarily to precede other -I options |
| 11739 | # that might be in CFLAGS temporarily. |
| 11740 | # We put this in CPPFLAGS where it precedes the other -I options. |
| 11741 | OLD_CPPFLAGS=$CPPFLAGS |
| 11742 | OLD_CFLAGS=$CFLAGS |
| 11743 | CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" |
| 11744 | CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" |
| 11745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11746 | /* end confdefs.h. */ |
| 11747 | #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> |
| 11748 | int |
| 11749 | main () |
| 11750 | { |
| 11751 | int x = 5; |
| 11752 | ; |
| 11753 | return 0; |
| 11754 | } |
| 11755 | _ACEOF |
| 11756 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11757 | emacs_cv_lesstif=yes |
| 11758 | else |
| 11759 | emacs_cv_lesstif=no |
| 11760 | fi |
| 11761 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11762 | fi |
| 11763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 |
| 11764 | $as_echo "$emacs_cv_lesstif" >&6; } |
| 11765 | if test $emacs_cv_lesstif = yes; then |
| 11766 | # Make sure this -I option remains in CPPFLAGS after it is set |
| 11767 | # back to REAL_CPPFLAGS. |
| 11768 | # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not |
| 11769 | # have those other -I options anyway. Ultimately, having this |
| 11770 | # directory ultimately in CPPFLAGS will be enough. |
| 11771 | REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS" |
| 11772 | LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS" |
| 11773 | else |
| 11774 | CFLAGS=$OLD_CFLAGS |
| 11775 | CPPFLAGS=$OLD_CPPFLAGS |
| 11776 | fi |
| 11777 | fi |
| 11778 | ac_fn_c_check_header_mongrel "$LINENO" "Xm/BulletinB.h" "ac_cv_header_Xm_BulletinB_h" "$ac_includes_default" |
| 11779 | if test "x$ac_cv_header_Xm_BulletinB_h" = x""yes; then : |
| 11780 | |
| 11781 | else |
| 11782 | as_fn_error "Motif toolkit requested but requirements not found." "$LINENO" 5 |
| 11783 | fi |
| 11784 | |
| 11785 | |
| 11786 | fi |
| 11787 | |
| 11788 | |
| 11789 | USE_TOOLKIT_SCROLL_BARS=no |
| 11790 | if test "${with_toolkit_scroll_bars}" != "no"; then |
| 11791 | if test "${USE_X_TOOLKIT}" != "none"; then |
| 11792 | if test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 11793 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11794 | |
| 11795 | HAVE_XAW3D=no |
| 11796 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11797 | elif test "${HAVE_XAW3D}" = "yes" || test "${USE_X_TOOLKIT}" = "LUCID"; then |
| 11798 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11799 | |
| 11800 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11801 | fi |
| 11802 | elif test "${HAVE_GTK}" = "yes"; then |
| 11803 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11804 | |
| 11805 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11806 | elif test "${HAVE_NS}" = "yes"; then |
| 11807 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11808 | |
| 11809 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11810 | elif test "${HAVE_W32}" = "yes"; then |
| 11811 | $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h |
| 11812 | |
| 11813 | USE_TOOLKIT_SCROLL_BARS=yes |
| 11814 | fi |
| 11815 | fi |
| 11816 | |
| 11817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11818 | /* end confdefs.h. */ |
| 11819 | |
| 11820 | #include <X11/Xlib.h> |
| 11821 | #include <X11/Xresource.h> |
| 11822 | int |
| 11823 | main () |
| 11824 | { |
| 11825 | XIMProc callback; |
| 11826 | ; |
| 11827 | return 0; |
| 11828 | } |
| 11829 | _ACEOF |
| 11830 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11831 | HAVE_XIM=yes |
| 11832 | |
| 11833 | $as_echo "#define HAVE_XIM 1" >>confdefs.h |
| 11834 | |
| 11835 | else |
| 11836 | HAVE_XIM=no |
| 11837 | fi |
| 11838 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11839 | |
| 11840 | |
| 11841 | if test "${with_xim}" != "no"; then |
| 11842 | |
| 11843 | $as_echo "#define USE_XIM 1" >>confdefs.h |
| 11844 | |
| 11845 | fi |
| 11846 | |
| 11847 | |
| 11848 | if test "${HAVE_XIM}" != "no"; then |
| 11849 | late_CFLAGS=$CFLAGS |
| 11850 | if test "$GCC" = yes; then |
| 11851 | CFLAGS="$CFLAGS --pedantic-errors" |
| 11852 | fi |
| 11853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 11854 | /* end confdefs.h. */ |
| 11855 | |
| 11856 | #include <X11/Xlib.h> |
| 11857 | #include <X11/Xresource.h> |
| 11858 | int |
| 11859 | main () |
| 11860 | { |
| 11861 | Display *display; |
| 11862 | XrmDatabase db; |
| 11863 | char *res_name; |
| 11864 | char *res_class; |
| 11865 | XIMProc callback; |
| 11866 | XPointer *client_data; |
| 11867 | #ifndef __GNUC__ |
| 11868 | /* If we're not using GCC, it's probably not XFree86, and this is |
| 11869 | probably right, but we can't use something like --pedantic-errors. */ |
| 11870 | extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*, |
| 11871 | char*, XIMProc, XPointer*); |
| 11872 | #endif |
| 11873 | (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback, |
| 11874 | client_data); |
| 11875 | ; |
| 11876 | return 0; |
| 11877 | } |
| 11878 | _ACEOF |
| 11879 | if ac_fn_c_try_compile "$LINENO"; then : |
| 11880 | emacs_cv_arg6_star=yes |
| 11881 | fi |
| 11882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 11883 | if test "$emacs_cv_arg6_star" = yes; then |
| 11884 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h |
| 11885 | |
| 11886 | else |
| 11887 | $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h |
| 11888 | |
| 11889 | fi |
| 11890 | CFLAGS=$late_CFLAGS |
| 11891 | fi |
| 11892 | |
| 11893 | ### Start of font-backend (under any platform) section. |
| 11894 | # (nothing here yet -- this is a placeholder) |
| 11895 | ### End of font-backend (under any platform) section. |
| 11896 | |
| 11897 | ### Start of font-backend (under X11) section. |
| 11898 | if test "${HAVE_X11}" = "yes"; then |
| 11899 | |
| 11900 | succeeded=no |
| 11901 | |
| 11902 | if test "$PKG_CONFIG" = "no" ; then |
| 11903 | HAVE_FC=no |
| 11904 | else |
| 11905 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11906 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 |
| 11908 | $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } |
| 11909 | |
| 11910 | if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5 && |
| 11911 | FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0" 2>&5` && |
| 11912 | FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0" 2>&5`; then |
| 11913 | edit_cflags=" |
| 11914 | s,///*,/,g |
| 11915 | s/^/ / |
| 11916 | s/ -I/ $isystem/g |
| 11917 | s/^ // |
| 11918 | " |
| 11919 | FONTCONFIG_CFLAGS=`$as_echo "$FONTCONFIG_CFLAGS" | sed -e "$edit_cflags"` |
| 11920 | FONTCONFIG_LIBS=`$as_echo "$FONTCONFIG_LIBS" | sed -e 's,///*,/,g'` |
| 11921 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&5 |
| 11922 | $as_echo "yes CFLAGS='$FONTCONFIG_CFLAGS' LIBS='$FONTCONFIG_LIBS'" >&6; } |
| 11923 | succeeded=yes |
| 11924 | else |
| 11925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11926 | $as_echo "no" >&6; } |
| 11927 | FONTCONFIG_CFLAGS="" |
| 11928 | FONTCONFIG_LIBS="" |
| 11929 | ## If we have a custom action on failure, don't print errors, but |
| 11930 | ## do set a variable so people can do so. Do it in a subshell |
| 11931 | ## to capture any diagnostics in invoking pkg-config. |
| 11932 | FONTCONFIG_PKG_ERRORS=`($PKG_CONFIG --print-errors "fontconfig >= 2.2.0") 2>&1` |
| 11933 | |
| 11934 | fi |
| 11935 | |
| 11936 | |
| 11937 | |
| 11938 | else |
| 11939 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11940 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 11941 | fi |
| 11942 | fi |
| 11943 | |
| 11944 | if test $succeeded = yes; then |
| 11945 | HAVE_FC=yes |
| 11946 | else |
| 11947 | HAVE_FC=no |
| 11948 | fi |
| 11949 | |
| 11950 | |
| 11951 | ## Use -lXft if available, unless `--with-xft=no'. |
| 11952 | HAVE_XFT=maybe |
| 11953 | if test "${HAVE_FC}" = "no" || test "x${with_x}" = "xno"; then |
| 11954 | with_xft="no"; |
| 11955 | fi |
| 11956 | if test "x${with_xft}" != "xno"; then |
| 11957 | |
| 11958 | |
| 11959 | succeeded=no |
| 11960 | |
| 11961 | if test "$PKG_CONFIG" = "no" ; then |
| 11962 | HAVE_XFT=no |
| 11963 | else |
| 11964 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 11965 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 11966 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 |
| 11967 | $as_echo_n "checking for xft >= 0.13.0... " >&6; } |
| 11968 | |
| 11969 | if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5 && |
| 11970 | XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0" 2>&5` && |
| 11971 | XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0" 2>&5`; then |
| 11972 | edit_cflags=" |
| 11973 | s,///*,/,g |
| 11974 | s/^/ / |
| 11975 | s/ -I/ $isystem/g |
| 11976 | s/^ // |
| 11977 | " |
| 11978 | XFT_CFLAGS=`$as_echo "$XFT_CFLAGS" | sed -e "$edit_cflags"` |
| 11979 | XFT_LIBS=`$as_echo "$XFT_LIBS" | sed -e 's,///*,/,g'` |
| 11980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&5 |
| 11981 | $as_echo "yes CFLAGS='$XFT_CFLAGS' LIBS='$XFT_LIBS'" >&6; } |
| 11982 | succeeded=yes |
| 11983 | else |
| 11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 11985 | $as_echo "no" >&6; } |
| 11986 | XFT_CFLAGS="" |
| 11987 | XFT_LIBS="" |
| 11988 | ## If we have a custom action on failure, don't print errors, but |
| 11989 | ## do set a variable so people can do so. Do it in a subshell |
| 11990 | ## to capture any diagnostics in invoking pkg-config. |
| 11991 | XFT_PKG_ERRORS=`($PKG_CONFIG --print-errors "xft >= 0.13.0") 2>&1` |
| 11992 | |
| 11993 | fi |
| 11994 | |
| 11995 | |
| 11996 | |
| 11997 | else |
| 11998 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 11999 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 12000 | fi |
| 12001 | fi |
| 12002 | |
| 12003 | if test $succeeded = yes; then |
| 12004 | : |
| 12005 | else |
| 12006 | HAVE_XFT=no |
| 12007 | fi |
| 12008 | |
| 12009 | ## Because xftfont.c uses XRenderQueryExtension, we also |
| 12010 | ## need to link to -lXrender. |
| 12011 | HAVE_XRENDER=no |
| 12012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 |
| 12013 | $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } |
| 12014 | if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : |
| 12015 | $as_echo_n "(cached) " >&6 |
| 12016 | else |
| 12017 | ac_check_lib_save_LIBS=$LIBS |
| 12018 | LIBS="-lXrender $LIBS" |
| 12019 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12020 | /* end confdefs.h. */ |
| 12021 | |
| 12022 | /* Override any GCC internal prototype to avoid an error. |
| 12023 | Use char because int might match the return type of a GCC |
| 12024 | builtin and then its argument prototype would still apply. */ |
| 12025 | #ifdef __cplusplus |
| 12026 | extern "C" |
| 12027 | #endif |
| 12028 | char XRenderQueryExtension (); |
| 12029 | int |
| 12030 | main () |
| 12031 | { |
| 12032 | return XRenderQueryExtension (); |
| 12033 | ; |
| 12034 | return 0; |
| 12035 | } |
| 12036 | _ACEOF |
| 12037 | if ac_fn_c_try_link "$LINENO"; then : |
| 12038 | ac_cv_lib_Xrender_XRenderQueryExtension=yes |
| 12039 | else |
| 12040 | ac_cv_lib_Xrender_XRenderQueryExtension=no |
| 12041 | fi |
| 12042 | rm -f core conftest.err conftest.$ac_objext \ |
| 12043 | conftest$ac_exeext conftest.$ac_ext |
| 12044 | LIBS=$ac_check_lib_save_LIBS |
| 12045 | fi |
| 12046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 |
| 12047 | $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } |
| 12048 | if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : |
| 12049 | HAVE_XRENDER=yes |
| 12050 | fi |
| 12051 | |
| 12052 | if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then |
| 12053 | OLD_CPPFLAGS="$CPPFLAGS" |
| 12054 | OLD_CFLAGS="$CFLAGS" |
| 12055 | OLD_LIBS="$LIBS" |
| 12056 | CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" |
| 12057 | CFLAGS="$CFLAGS $XFT_CFLAGS" |
| 12058 | XFT_LIBS="-lXrender $XFT_LIBS" |
| 12059 | LIBS="$XFT_LIBS $LIBS" |
| 12060 | ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" |
| 12061 | if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : |
| 12062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 |
| 12063 | $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } |
| 12064 | if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : |
| 12065 | $as_echo_n "(cached) " >&6 |
| 12066 | else |
| 12067 | ac_check_lib_save_LIBS=$LIBS |
| 12068 | LIBS="-lXft $XFT_LIBS $LIBS" |
| 12069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12070 | /* end confdefs.h. */ |
| 12071 | |
| 12072 | /* Override any GCC internal prototype to avoid an error. |
| 12073 | Use char because int might match the return type of a GCC |
| 12074 | builtin and then its argument prototype would still apply. */ |
| 12075 | #ifdef __cplusplus |
| 12076 | extern "C" |
| 12077 | #endif |
| 12078 | char XftFontOpen (); |
| 12079 | int |
| 12080 | main () |
| 12081 | { |
| 12082 | return XftFontOpen (); |
| 12083 | ; |
| 12084 | return 0; |
| 12085 | } |
| 12086 | _ACEOF |
| 12087 | if ac_fn_c_try_link "$LINENO"; then : |
| 12088 | ac_cv_lib_Xft_XftFontOpen=yes |
| 12089 | else |
| 12090 | ac_cv_lib_Xft_XftFontOpen=no |
| 12091 | fi |
| 12092 | rm -f core conftest.err conftest.$ac_objext \ |
| 12093 | conftest$ac_exeext conftest.$ac_ext |
| 12094 | LIBS=$ac_check_lib_save_LIBS |
| 12095 | fi |
| 12096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 |
| 12097 | $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } |
| 12098 | if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : |
| 12099 | HAVE_XFT=yes |
| 12100 | fi |
| 12101 | |
| 12102 | fi |
| 12103 | |
| 12104 | |
| 12105 | |
| 12106 | if test "${HAVE_XFT}" = "yes"; then |
| 12107 | |
| 12108 | $as_echo "#define HAVE_XFT 1" >>confdefs.h |
| 12109 | |
| 12110 | |
| 12111 | C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" |
| 12112 | else |
| 12113 | CPPFLAGS="$OLD_CPPFLAGS" |
| 12114 | CFLAGS="$OLD_CFLAGS" |
| 12115 | LIBS="$OLD_LIBS" |
| 12116 | fi # "${HAVE_XFT}" = "yes" |
| 12117 | fi # "$HAVE_XFT" != no |
| 12118 | fi # "x${with_xft}" != "xno" |
| 12119 | |
| 12120 | ## We used to allow building with FreeType and without Xft. |
| 12121 | ## However, the ftx font backend driver is not in good shape. |
| 12122 | if test "$HAVE_XFT" != "yes"; then |
| 12123 | HAVE_XFT=no |
| 12124 | HAVE_FREETYPE=no |
| 12125 | else |
| 12126 | |
| 12127 | succeeded=no |
| 12128 | |
| 12129 | if test "$PKG_CONFIG" = "no" ; then |
| 12130 | HAVE_FREETYPE=no |
| 12131 | else |
| 12132 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 12133 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 12134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5 |
| 12135 | $as_echo_n "checking for freetype2... " >&6; } |
| 12136 | |
| 12137 | if $PKG_CONFIG --exists "freetype2" 2>&5 && |
| 12138 | FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>&5` && |
| 12139 | FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>&5`; then |
| 12140 | edit_cflags=" |
| 12141 | s,///*,/,g |
| 12142 | s/^/ / |
| 12143 | s/ -I/ $isystem/g |
| 12144 | s/^ // |
| 12145 | " |
| 12146 | FREETYPE_CFLAGS=`$as_echo "$FREETYPE_CFLAGS" | sed -e "$edit_cflags"` |
| 12147 | FREETYPE_LIBS=`$as_echo "$FREETYPE_LIBS" | sed -e 's,///*,/,g'` |
| 12148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&5 |
| 12149 | $as_echo "yes CFLAGS='$FREETYPE_CFLAGS' LIBS='$FREETYPE_LIBS'" >&6; } |
| 12150 | succeeded=yes |
| 12151 | else |
| 12152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12153 | $as_echo "no" >&6; } |
| 12154 | FREETYPE_CFLAGS="" |
| 12155 | FREETYPE_LIBS="" |
| 12156 | ## If we have a custom action on failure, don't print errors, but |
| 12157 | ## do set a variable so people can do so. Do it in a subshell |
| 12158 | ## to capture any diagnostics in invoking pkg-config. |
| 12159 | FREETYPE_PKG_ERRORS=`($PKG_CONFIG --print-errors "freetype2") 2>&1` |
| 12160 | |
| 12161 | fi |
| 12162 | |
| 12163 | |
| 12164 | |
| 12165 | else |
| 12166 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 12167 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 12168 | fi |
| 12169 | fi |
| 12170 | |
| 12171 | if test $succeeded = yes; then |
| 12172 | HAVE_FREETYPE=yes |
| 12173 | else |
| 12174 | HAVE_FREETYPE=no |
| 12175 | fi |
| 12176 | |
| 12177 | |
| 12178 | test "$HAVE_FREETYPE" = "no" && as_fn_error "libxft requires libfreetype" "$LINENO" 5 |
| 12179 | fi |
| 12180 | |
| 12181 | HAVE_LIBOTF=no |
| 12182 | if test "${HAVE_FREETYPE}" = "yes"; then |
| 12183 | |
| 12184 | $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h |
| 12185 | |
| 12186 | if test "${with_libotf}" != "no"; then |
| 12187 | |
| 12188 | succeeded=no |
| 12189 | |
| 12190 | if test "$PKG_CONFIG" = "no" ; then |
| 12191 | HAVE_LIBOTF=no |
| 12192 | else |
| 12193 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 12194 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 12195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 |
| 12196 | $as_echo_n "checking for libotf... " >&6; } |
| 12197 | |
| 12198 | if $PKG_CONFIG --exists "libotf" 2>&5 && |
| 12199 | LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf" 2>&5` && |
| 12200 | LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf" 2>&5`; then |
| 12201 | edit_cflags=" |
| 12202 | s,///*,/,g |
| 12203 | s/^/ / |
| 12204 | s/ -I/ $isystem/g |
| 12205 | s/^ // |
| 12206 | " |
| 12207 | LIBOTF_CFLAGS=`$as_echo "$LIBOTF_CFLAGS" | sed -e "$edit_cflags"` |
| 12208 | LIBOTF_LIBS=`$as_echo "$LIBOTF_LIBS" | sed -e 's,///*,/,g'` |
| 12209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&5 |
| 12210 | $as_echo "yes CFLAGS='$LIBOTF_CFLAGS' LIBS='$LIBOTF_LIBS'" >&6; } |
| 12211 | succeeded=yes |
| 12212 | else |
| 12213 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12214 | $as_echo "no" >&6; } |
| 12215 | LIBOTF_CFLAGS="" |
| 12216 | LIBOTF_LIBS="" |
| 12217 | ## If we have a custom action on failure, don't print errors, but |
| 12218 | ## do set a variable so people can do so. Do it in a subshell |
| 12219 | ## to capture any diagnostics in invoking pkg-config. |
| 12220 | LIBOTF_PKG_ERRORS=`($PKG_CONFIG --print-errors "libotf") 2>&1` |
| 12221 | |
| 12222 | fi |
| 12223 | |
| 12224 | |
| 12225 | |
| 12226 | else |
| 12227 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 12228 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 12229 | fi |
| 12230 | fi |
| 12231 | |
| 12232 | if test $succeeded = yes; then |
| 12233 | HAVE_LIBOTF=yes |
| 12234 | else |
| 12235 | HAVE_LIBOTF=no |
| 12236 | fi |
| 12237 | |
| 12238 | if test "$HAVE_LIBOTF" = "yes"; then |
| 12239 | |
| 12240 | $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h |
| 12241 | |
| 12242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 |
| 12243 | $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } |
| 12244 | if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : |
| 12245 | $as_echo_n "(cached) " >&6 |
| 12246 | else |
| 12247 | ac_check_lib_save_LIBS=$LIBS |
| 12248 | LIBS="-lotf $LIBS" |
| 12249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12250 | /* end confdefs.h. */ |
| 12251 | |
| 12252 | /* Override any GCC internal prototype to avoid an error. |
| 12253 | Use char because int might match the return type of a GCC |
| 12254 | builtin and then its argument prototype would still apply. */ |
| 12255 | #ifdef __cplusplus |
| 12256 | extern "C" |
| 12257 | #endif |
| 12258 | char OTF_get_variation_glyphs (); |
| 12259 | int |
| 12260 | main () |
| 12261 | { |
| 12262 | return OTF_get_variation_glyphs (); |
| 12263 | ; |
| 12264 | return 0; |
| 12265 | } |
| 12266 | _ACEOF |
| 12267 | if ac_fn_c_try_link "$LINENO"; then : |
| 12268 | ac_cv_lib_otf_OTF_get_variation_glyphs=yes |
| 12269 | else |
| 12270 | ac_cv_lib_otf_OTF_get_variation_glyphs=no |
| 12271 | fi |
| 12272 | rm -f core conftest.err conftest.$ac_objext \ |
| 12273 | conftest$ac_exeext conftest.$ac_ext |
| 12274 | LIBS=$ac_check_lib_save_LIBS |
| 12275 | fi |
| 12276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 |
| 12277 | $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } |
| 12278 | if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : |
| 12279 | HAVE_OTF_GET_VARIATION_GLYPHS=yes |
| 12280 | else |
| 12281 | HAVE_OTF_GET_VARIATION_GLYPHS=no |
| 12282 | fi |
| 12283 | |
| 12284 | if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then |
| 12285 | |
| 12286 | $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h |
| 12287 | |
| 12288 | fi |
| 12289 | fi |
| 12290 | fi |
| 12291 | fi |
| 12292 | |
| 12293 | HAVE_M17N_FLT=no |
| 12294 | if test "${HAVE_LIBOTF}" = yes; then |
| 12295 | if test "${with_m17n_flt}" != "no"; then |
| 12296 | |
| 12297 | succeeded=no |
| 12298 | |
| 12299 | if test "$PKG_CONFIG" = "no" ; then |
| 12300 | HAVE_M17N_FLT=no |
| 12301 | else |
| 12302 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 12303 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 12304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 |
| 12305 | $as_echo_n "checking for m17n-flt... " >&6; } |
| 12306 | |
| 12307 | if $PKG_CONFIG --exists "m17n-flt" 2>&5 && |
| 12308 | M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt" 2>&5` && |
| 12309 | M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt" 2>&5`; then |
| 12310 | edit_cflags=" |
| 12311 | s,///*,/,g |
| 12312 | s/^/ / |
| 12313 | s/ -I/ $isystem/g |
| 12314 | s/^ // |
| 12315 | " |
| 12316 | M17N_FLT_CFLAGS=`$as_echo "$M17N_FLT_CFLAGS" | sed -e "$edit_cflags"` |
| 12317 | M17N_FLT_LIBS=`$as_echo "$M17N_FLT_LIBS" | sed -e 's,///*,/,g'` |
| 12318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&5 |
| 12319 | $as_echo "yes CFLAGS='$M17N_FLT_CFLAGS' LIBS='$M17N_FLT_LIBS'" >&6; } |
| 12320 | succeeded=yes |
| 12321 | else |
| 12322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12323 | $as_echo "no" >&6; } |
| 12324 | M17N_FLT_CFLAGS="" |
| 12325 | M17N_FLT_LIBS="" |
| 12326 | ## If we have a custom action on failure, don't print errors, but |
| 12327 | ## do set a variable so people can do so. Do it in a subshell |
| 12328 | ## to capture any diagnostics in invoking pkg-config. |
| 12329 | M17N_FLT_PKG_ERRORS=`($PKG_CONFIG --print-errors "m17n-flt") 2>&1` |
| 12330 | |
| 12331 | fi |
| 12332 | |
| 12333 | |
| 12334 | |
| 12335 | else |
| 12336 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 12337 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 12338 | fi |
| 12339 | fi |
| 12340 | |
| 12341 | if test $succeeded = yes; then |
| 12342 | HAVE_M17N_FLT=yes |
| 12343 | else |
| 12344 | HAVE_M17N_FLT=no |
| 12345 | fi |
| 12346 | |
| 12347 | if test "$HAVE_M17N_FLT" = "yes"; then |
| 12348 | |
| 12349 | $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h |
| 12350 | |
| 12351 | fi |
| 12352 | fi |
| 12353 | fi |
| 12354 | else |
| 12355 | HAVE_XFT=no |
| 12356 | HAVE_FREETYPE=no |
| 12357 | HAVE_LIBOTF=no |
| 12358 | HAVE_M17N_FLT=no |
| 12359 | fi |
| 12360 | |
| 12361 | ### End of font-backend (under X11) section. |
| 12362 | |
| 12363 | |
| 12364 | |
| 12365 | |
| 12366 | |
| 12367 | |
| 12368 | |
| 12369 | |
| 12370 | |
| 12371 | |
| 12372 | ### Use -lXpm if available, unless `--with-xpm=no'. |
| 12373 | HAVE_XPM=no |
| 12374 | LIBXPM= |
| 12375 | |
| 12376 | if test "${HAVE_W32}" = "yes"; then |
| 12377 | if test "${with_xpm}" != "no"; then |
| 12378 | SAVE_CPPFLAGS="$CPPFLAGS" |
| 12379 | SAVE_LDFLAGS="$LDFLAGS" |
| 12380 | CPPFLAGS="$CPPFLAGS -I/usr/include/noX" |
| 12381 | LDFLAGS="$LDFLAGS -L/usr/lib/noX" |
| 12382 | ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" |
| 12383 | if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : |
| 12384 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToImage in -lXpm" >&5 |
| 12385 | $as_echo_n "checking for XpmReadFileToImage in -lXpm... " >&6; } |
| 12386 | if test "${ac_cv_lib_Xpm_XpmReadFileToImage+set}" = set; then : |
| 12387 | $as_echo_n "(cached) " >&6 |
| 12388 | else |
| 12389 | ac_check_lib_save_LIBS=$LIBS |
| 12390 | LIBS="-lXpm $LIBS" |
| 12391 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12392 | /* end confdefs.h. */ |
| 12393 | |
| 12394 | /* Override any GCC internal prototype to avoid an error. |
| 12395 | Use char because int might match the return type of a GCC |
| 12396 | builtin and then its argument prototype would still apply. */ |
| 12397 | #ifdef __cplusplus |
| 12398 | extern "C" |
| 12399 | #endif |
| 12400 | char XpmReadFileToImage (); |
| 12401 | int |
| 12402 | main () |
| 12403 | { |
| 12404 | return XpmReadFileToImage (); |
| 12405 | ; |
| 12406 | return 0; |
| 12407 | } |
| 12408 | _ACEOF |
| 12409 | if ac_fn_c_try_link "$LINENO"; then : |
| 12410 | ac_cv_lib_Xpm_XpmReadFileToImage=yes |
| 12411 | else |
| 12412 | ac_cv_lib_Xpm_XpmReadFileToImage=no |
| 12413 | fi |
| 12414 | rm -f core conftest.err conftest.$ac_objext \ |
| 12415 | conftest$ac_exeext conftest.$ac_ext |
| 12416 | LIBS=$ac_check_lib_save_LIBS |
| 12417 | fi |
| 12418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToImage" >&5 |
| 12419 | $as_echo "$ac_cv_lib_Xpm_XpmReadFileToImage" >&6; } |
| 12420 | if test "x$ac_cv_lib_Xpm_XpmReadFileToImage" = x""yes; then : |
| 12421 | HAVE_XPM=yes |
| 12422 | fi |
| 12423 | |
| 12424 | fi |
| 12425 | |
| 12426 | |
| 12427 | if test "${HAVE_XPM}" = "yes"; then |
| 12428 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 |
| 12429 | $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } |
| 12430 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12431 | /* end confdefs.h. */ |
| 12432 | #include "X11/xpm.h" |
| 12433 | #ifndef XpmReturnAllocPixels |
| 12434 | no_return_alloc_pixels |
| 12435 | #endif |
| 12436 | |
| 12437 | _ACEOF |
| 12438 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12439 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : |
| 12440 | HAVE_XPM=no |
| 12441 | else |
| 12442 | HAVE_XPM=yes |
| 12443 | fi |
| 12444 | rm -f conftest* |
| 12445 | |
| 12446 | |
| 12447 | if test "${HAVE_XPM}" = "yes"; then |
| 12448 | REAL_CPPFLAGS="$REAL_CPPFLAGS -I/usr/include/noX" |
| 12449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12450 | $as_echo "yes" >&6; } |
| 12451 | else |
| 12452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12453 | $as_echo "no" >&6; } |
| 12454 | CPPFLAGS="$SAVE_CPPFLAGS" |
| 12455 | LDFLAGS="$SAVE_LDFLAGS" |
| 12456 | fi |
| 12457 | fi |
| 12458 | fi |
| 12459 | |
| 12460 | if test "${HAVE_XPM}" = "yes"; then |
| 12461 | |
| 12462 | $as_echo "#define HAVE_XPM 1" >>confdefs.h |
| 12463 | |
| 12464 | LIBXPM=-lXpm |
| 12465 | fi |
| 12466 | fi |
| 12467 | |
| 12468 | if test "${HAVE_X11}" = "yes"; then |
| 12469 | if test "${with_xpm}" != "no"; then |
| 12470 | ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" |
| 12471 | if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : |
| 12472 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 |
| 12473 | $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } |
| 12474 | if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : |
| 12475 | $as_echo_n "(cached) " >&6 |
| 12476 | else |
| 12477 | ac_check_lib_save_LIBS=$LIBS |
| 12478 | LIBS="-lXpm -lX11 $LIBS" |
| 12479 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12480 | /* end confdefs.h. */ |
| 12481 | |
| 12482 | /* Override any GCC internal prototype to avoid an error. |
| 12483 | Use char because int might match the return type of a GCC |
| 12484 | builtin and then its argument prototype would still apply. */ |
| 12485 | #ifdef __cplusplus |
| 12486 | extern "C" |
| 12487 | #endif |
| 12488 | char XpmReadFileToPixmap (); |
| 12489 | int |
| 12490 | main () |
| 12491 | { |
| 12492 | return XpmReadFileToPixmap (); |
| 12493 | ; |
| 12494 | return 0; |
| 12495 | } |
| 12496 | _ACEOF |
| 12497 | if ac_fn_c_try_link "$LINENO"; then : |
| 12498 | ac_cv_lib_Xpm_XpmReadFileToPixmap=yes |
| 12499 | else |
| 12500 | ac_cv_lib_Xpm_XpmReadFileToPixmap=no |
| 12501 | fi |
| 12502 | rm -f core conftest.err conftest.$ac_objext \ |
| 12503 | conftest$ac_exeext conftest.$ac_ext |
| 12504 | LIBS=$ac_check_lib_save_LIBS |
| 12505 | fi |
| 12506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 |
| 12507 | $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } |
| 12508 | if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : |
| 12509 | HAVE_XPM=yes |
| 12510 | fi |
| 12511 | |
| 12512 | fi |
| 12513 | |
| 12514 | |
| 12515 | if test "${HAVE_XPM}" = "yes"; then |
| 12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 |
| 12517 | $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } |
| 12518 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12519 | /* end confdefs.h. */ |
| 12520 | #include "X11/xpm.h" |
| 12521 | #ifndef XpmReturnAllocPixels |
| 12522 | no_return_alloc_pixels |
| 12523 | #endif |
| 12524 | |
| 12525 | _ACEOF |
| 12526 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12527 | $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : |
| 12528 | HAVE_XPM=no |
| 12529 | else |
| 12530 | HAVE_XPM=yes |
| 12531 | fi |
| 12532 | rm -f conftest* |
| 12533 | |
| 12534 | |
| 12535 | if test "${HAVE_XPM}" = "yes"; then |
| 12536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 12537 | $as_echo "yes" >&6; } |
| 12538 | else |
| 12539 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 12540 | $as_echo "no" >&6; } |
| 12541 | fi |
| 12542 | fi |
| 12543 | fi |
| 12544 | |
| 12545 | if test "${HAVE_XPM}" = "yes"; then |
| 12546 | |
| 12547 | $as_echo "#define HAVE_XPM 1" >>confdefs.h |
| 12548 | |
| 12549 | LIBXPM=-lXpm |
| 12550 | fi |
| 12551 | fi |
| 12552 | |
| 12553 | |
| 12554 | |
| 12555 | ### Use -ljpeg if available, unless `--with-jpeg=no'. |
| 12556 | HAVE_JPEG=no |
| 12557 | LIBJPEG= |
| 12558 | if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then |
| 12559 | if test "${with_jpeg}" != "no"; then |
| 12560 | ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" |
| 12561 | if test "x$ac_cv_header_jerror_h" = x""yes; then : |
| 12562 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 |
| 12563 | $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } |
| 12564 | if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : |
| 12565 | $as_echo_n "(cached) " >&6 |
| 12566 | else |
| 12567 | ac_check_lib_save_LIBS=$LIBS |
| 12568 | LIBS="-ljpeg $LIBS" |
| 12569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12570 | /* end confdefs.h. */ |
| 12571 | |
| 12572 | /* Override any GCC internal prototype to avoid an error. |
| 12573 | Use char because int might match the return type of a GCC |
| 12574 | builtin and then its argument prototype would still apply. */ |
| 12575 | #ifdef __cplusplus |
| 12576 | extern "C" |
| 12577 | #endif |
| 12578 | char jpeg_destroy_compress (); |
| 12579 | int |
| 12580 | main () |
| 12581 | { |
| 12582 | return jpeg_destroy_compress (); |
| 12583 | ; |
| 12584 | return 0; |
| 12585 | } |
| 12586 | _ACEOF |
| 12587 | if ac_fn_c_try_link "$LINENO"; then : |
| 12588 | ac_cv_lib_jpeg_jpeg_destroy_compress=yes |
| 12589 | else |
| 12590 | ac_cv_lib_jpeg_jpeg_destroy_compress=no |
| 12591 | fi |
| 12592 | rm -f core conftest.err conftest.$ac_objext \ |
| 12593 | conftest$ac_exeext conftest.$ac_ext |
| 12594 | LIBS=$ac_check_lib_save_LIBS |
| 12595 | fi |
| 12596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 |
| 12597 | $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } |
| 12598 | if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : |
| 12599 | HAVE_JPEG=yes |
| 12600 | fi |
| 12601 | |
| 12602 | fi |
| 12603 | |
| 12604 | |
| 12605 | fi |
| 12606 | |
| 12607 | if test "${HAVE_JPEG}" = "yes"; then |
| 12608 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
| 12609 | |
| 12610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12611 | /* end confdefs.h. */ |
| 12612 | #include <jpeglib.h> |
| 12613 | version=JPEG_LIB_VERSION |
| 12614 | |
| 12615 | _ACEOF |
| 12616 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 12617 | $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : |
| 12618 | $as_echo "#define HAVE_JPEG 1" >>confdefs.h |
| 12619 | |
| 12620 | else |
| 12621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 |
| 12622 | $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} |
| 12623 | HAVE_JPEG=no |
| 12624 | fi |
| 12625 | rm -f conftest* |
| 12626 | |
| 12627 | fi |
| 12628 | if test "${HAVE_JPEG}" = "yes"; then |
| 12629 | LIBJPEG=-ljpeg |
| 12630 | fi |
| 12631 | fi |
| 12632 | |
| 12633 | |
| 12634 | ### Use -lpng if available, unless `--with-png=no'. |
| 12635 | HAVE_PNG=no |
| 12636 | LIBPNG= |
| 12637 | if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then |
| 12638 | if test "${with_png}" != "no"; then |
| 12639 | # Debian unstable as of July 2003 has multiple libpngs, and puts png.h |
| 12640 | # in /usr/include/libpng. |
| 12641 | for ac_header in png.h libpng/png.h |
| 12642 | do : |
| 12643 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 12644 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 12645 | eval as_val=\$$as_ac_Header |
| 12646 | if test "x$as_val" = x""yes; then : |
| 12647 | cat >>confdefs.h <<_ACEOF |
| 12648 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 12649 | _ACEOF |
| 12650 | break |
| 12651 | fi |
| 12652 | |
| 12653 | done |
| 12654 | |
| 12655 | if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then |
| 12656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 |
| 12657 | $as_echo_n "checking for png_get_channels in -lpng... " >&6; } |
| 12658 | if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : |
| 12659 | $as_echo_n "(cached) " >&6 |
| 12660 | else |
| 12661 | ac_check_lib_save_LIBS=$LIBS |
| 12662 | LIBS="-lpng -lz -lm $LIBS" |
| 12663 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12664 | /* end confdefs.h. */ |
| 12665 | |
| 12666 | /* Override any GCC internal prototype to avoid an error. |
| 12667 | Use char because int might match the return type of a GCC |
| 12668 | builtin and then its argument prototype would still apply. */ |
| 12669 | #ifdef __cplusplus |
| 12670 | extern "C" |
| 12671 | #endif |
| 12672 | char png_get_channels (); |
| 12673 | int |
| 12674 | main () |
| 12675 | { |
| 12676 | return png_get_channels (); |
| 12677 | ; |
| 12678 | return 0; |
| 12679 | } |
| 12680 | _ACEOF |
| 12681 | if ac_fn_c_try_link "$LINENO"; then : |
| 12682 | ac_cv_lib_png_png_get_channels=yes |
| 12683 | else |
| 12684 | ac_cv_lib_png_png_get_channels=no |
| 12685 | fi |
| 12686 | rm -f core conftest.err conftest.$ac_objext \ |
| 12687 | conftest$ac_exeext conftest.$ac_ext |
| 12688 | LIBS=$ac_check_lib_save_LIBS |
| 12689 | fi |
| 12690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 |
| 12691 | $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } |
| 12692 | if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : |
| 12693 | HAVE_PNG=yes |
| 12694 | fi |
| 12695 | |
| 12696 | fi |
| 12697 | fi |
| 12698 | |
| 12699 | if test "${HAVE_PNG}" = "yes"; then |
| 12700 | |
| 12701 | $as_echo "#define HAVE_PNG 1" >>confdefs.h |
| 12702 | |
| 12703 | LIBPNG="-lpng -lz -lm" |
| 12704 | |
| 12705 | ac_fn_c_check_decl "$LINENO" "png_longjmp" "ac_cv_have_decl_png_longjmp" "#ifdef HAVE_LIBPNG_PNG_H |
| 12706 | # include <libpng/png.h> |
| 12707 | #else |
| 12708 | # include <png.h> |
| 12709 | #endif |
| 12710 | |
| 12711 | " |
| 12712 | if test "x$ac_cv_have_decl_png_longjmp" = x""yes; then : |
| 12713 | |
| 12714 | else |
| 12715 | |
| 12716 | $as_echo "#define PNG_DEPSTRUCT /**/" >>confdefs.h |
| 12717 | |
| 12718 | fi |
| 12719 | |
| 12720 | fi |
| 12721 | fi |
| 12722 | |
| 12723 | |
| 12724 | ### Use -ltiff if available, unless `--with-tiff=no'. |
| 12725 | HAVE_TIFF=no |
| 12726 | LIBTIFF= |
| 12727 | if test "${HAVE_X11}" = "yes" || test "${HAVE_W32}" = "yes"; then |
| 12728 | if test "${with_tiff}" != "no"; then |
| 12729 | ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" |
| 12730 | if test "x$ac_cv_header_tiffio_h" = x""yes; then : |
| 12731 | tifflibs="-lz -lm" |
| 12732 | # At least one tiff package requires the jpeg library. |
| 12733 | if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi |
| 12734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 |
| 12735 | $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } |
| 12736 | if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : |
| 12737 | $as_echo_n "(cached) " >&6 |
| 12738 | else |
| 12739 | ac_check_lib_save_LIBS=$LIBS |
| 12740 | LIBS="-ltiff $tifflibs $LIBS" |
| 12741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12742 | /* end confdefs.h. */ |
| 12743 | |
| 12744 | /* Override any GCC internal prototype to avoid an error. |
| 12745 | Use char because int might match the return type of a GCC |
| 12746 | builtin and then its argument prototype would still apply. */ |
| 12747 | #ifdef __cplusplus |
| 12748 | extern "C" |
| 12749 | #endif |
| 12750 | char TIFFGetVersion (); |
| 12751 | int |
| 12752 | main () |
| 12753 | { |
| 12754 | return TIFFGetVersion (); |
| 12755 | ; |
| 12756 | return 0; |
| 12757 | } |
| 12758 | _ACEOF |
| 12759 | if ac_fn_c_try_link "$LINENO"; then : |
| 12760 | ac_cv_lib_tiff_TIFFGetVersion=yes |
| 12761 | else |
| 12762 | ac_cv_lib_tiff_TIFFGetVersion=no |
| 12763 | fi |
| 12764 | rm -f core conftest.err conftest.$ac_objext \ |
| 12765 | conftest$ac_exeext conftest.$ac_ext |
| 12766 | LIBS=$ac_check_lib_save_LIBS |
| 12767 | fi |
| 12768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 |
| 12769 | $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } |
| 12770 | if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : |
| 12771 | HAVE_TIFF=yes |
| 12772 | fi |
| 12773 | |
| 12774 | fi |
| 12775 | |
| 12776 | |
| 12777 | fi |
| 12778 | |
| 12779 | if test "${HAVE_TIFF}" = "yes"; then |
| 12780 | |
| 12781 | $as_echo "#define HAVE_TIFF 1" >>confdefs.h |
| 12782 | |
| 12783 | LIBTIFF=-ltiff |
| 12784 | fi |
| 12785 | fi |
| 12786 | |
| 12787 | |
| 12788 | ### Use -lgif or -lungif if available, unless `--with-gif=no'. |
| 12789 | HAVE_GIF=no |
| 12790 | LIBGIF= |
| 12791 | if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no" \ |
| 12792 | || test "${HAVE_W32}" = "yes"; then |
| 12793 | ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" |
| 12794 | if test "x$ac_cv_header_gif_lib_h" = x""yes; then : |
| 12795 | # EGifPutExtensionLast only exists from version libungif-4.1.0b1. |
| 12796 | # Earlier versions can crash Emacs. |
| 12797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 |
| 12798 | $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } |
| 12799 | if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : |
| 12800 | $as_echo_n "(cached) " >&6 |
| 12801 | else |
| 12802 | ac_check_lib_save_LIBS=$LIBS |
| 12803 | LIBS="-lgif $LIBS" |
| 12804 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12805 | /* end confdefs.h. */ |
| 12806 | |
| 12807 | /* Override any GCC internal prototype to avoid an error. |
| 12808 | Use char because int might match the return type of a GCC |
| 12809 | builtin and then its argument prototype would still apply. */ |
| 12810 | #ifdef __cplusplus |
| 12811 | extern "C" |
| 12812 | #endif |
| 12813 | char EGifPutExtensionLast (); |
| 12814 | int |
| 12815 | main () |
| 12816 | { |
| 12817 | return EGifPutExtensionLast (); |
| 12818 | ; |
| 12819 | return 0; |
| 12820 | } |
| 12821 | _ACEOF |
| 12822 | if ac_fn_c_try_link "$LINENO"; then : |
| 12823 | ac_cv_lib_gif_EGifPutExtensionLast=yes |
| 12824 | else |
| 12825 | ac_cv_lib_gif_EGifPutExtensionLast=no |
| 12826 | fi |
| 12827 | rm -f core conftest.err conftest.$ac_objext \ |
| 12828 | conftest$ac_exeext conftest.$ac_ext |
| 12829 | LIBS=$ac_check_lib_save_LIBS |
| 12830 | fi |
| 12831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 |
| 12832 | $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } |
| 12833 | if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : |
| 12834 | HAVE_GIF=yes |
| 12835 | else |
| 12836 | HAVE_GIF=maybe |
| 12837 | fi |
| 12838 | |
| 12839 | fi |
| 12840 | |
| 12841 | |
| 12842 | |
| 12843 | if test "$HAVE_GIF" = yes; then |
| 12844 | LIBGIF=-lgif |
| 12845 | elif test "$HAVE_GIF" = maybe; then |
| 12846 | # If gif_lib.h but no libgif, try libungif. |
| 12847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 |
| 12848 | $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } |
| 12849 | if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : |
| 12850 | $as_echo_n "(cached) " >&6 |
| 12851 | else |
| 12852 | ac_check_lib_save_LIBS=$LIBS |
| 12853 | LIBS="-lungif $LIBS" |
| 12854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12855 | /* end confdefs.h. */ |
| 12856 | |
| 12857 | /* Override any GCC internal prototype to avoid an error. |
| 12858 | Use char because int might match the return type of a GCC |
| 12859 | builtin and then its argument prototype would still apply. */ |
| 12860 | #ifdef __cplusplus |
| 12861 | extern "C" |
| 12862 | #endif |
| 12863 | char EGifPutExtensionLast (); |
| 12864 | int |
| 12865 | main () |
| 12866 | { |
| 12867 | return EGifPutExtensionLast (); |
| 12868 | ; |
| 12869 | return 0; |
| 12870 | } |
| 12871 | _ACEOF |
| 12872 | if ac_fn_c_try_link "$LINENO"; then : |
| 12873 | ac_cv_lib_ungif_EGifPutExtensionLast=yes |
| 12874 | else |
| 12875 | ac_cv_lib_ungif_EGifPutExtensionLast=no |
| 12876 | fi |
| 12877 | rm -f core conftest.err conftest.$ac_objext \ |
| 12878 | conftest$ac_exeext conftest.$ac_ext |
| 12879 | LIBS=$ac_check_lib_save_LIBS |
| 12880 | fi |
| 12881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 |
| 12882 | $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } |
| 12883 | if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : |
| 12884 | HAVE_GIF=yes |
| 12885 | else |
| 12886 | HAVE_GIF=no |
| 12887 | fi |
| 12888 | |
| 12889 | test "$HAVE_GIF" = yes && LIBGIF=-lungif |
| 12890 | fi |
| 12891 | |
| 12892 | if test "${HAVE_GIF}" = "yes"; then |
| 12893 | |
| 12894 | $as_echo "#define HAVE_GIF 1" >>confdefs.h |
| 12895 | |
| 12896 | fi |
| 12897 | fi |
| 12898 | |
| 12899 | |
| 12900 | if test "${HAVE_X11}" = "yes"; then |
| 12901 | MISSING="" |
| 12902 | WITH_NO="" |
| 12903 | test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" && |
| 12904 | MISSING="libXpm" && WITH_NO="--with-xpm=no" |
| 12905 | test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" && |
| 12906 | MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no" |
| 12907 | test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" && |
| 12908 | MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no" |
| 12909 | test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" && |
| 12910 | MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" |
| 12911 | test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && |
| 12912 | MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" |
| 12913 | |
| 12914 | if test "X${MISSING}" != X; then |
| 12915 | as_fn_error "The following required libraries were not found: |
| 12916 | $MISSING |
| 12917 | Maybe some development libraries/packages are missing? |
| 12918 | If you don't want to link with them give |
| 12919 | $WITH_NO |
| 12920 | as options to configure" "$LINENO" 5 |
| 12921 | fi |
| 12922 | fi |
| 12923 | |
| 12924 | ### Use -lgpm if available, unless `--with-gpm=no'. |
| 12925 | HAVE_GPM=no |
| 12926 | LIBGPM= |
| 12927 | if test "${with_gpm}" != "no"; then |
| 12928 | ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" |
| 12929 | if test "x$ac_cv_header_gpm_h" = x""yes; then : |
| 12930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 |
| 12931 | $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } |
| 12932 | if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : |
| 12933 | $as_echo_n "(cached) " >&6 |
| 12934 | else |
| 12935 | ac_check_lib_save_LIBS=$LIBS |
| 12936 | LIBS="-lgpm $LIBS" |
| 12937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 12938 | /* end confdefs.h. */ |
| 12939 | |
| 12940 | /* Override any GCC internal prototype to avoid an error. |
| 12941 | Use char because int might match the return type of a GCC |
| 12942 | builtin and then its argument prototype would still apply. */ |
| 12943 | #ifdef __cplusplus |
| 12944 | extern "C" |
| 12945 | #endif |
| 12946 | char Gpm_Open (); |
| 12947 | int |
| 12948 | main () |
| 12949 | { |
| 12950 | return Gpm_Open (); |
| 12951 | ; |
| 12952 | return 0; |
| 12953 | } |
| 12954 | _ACEOF |
| 12955 | if ac_fn_c_try_link "$LINENO"; then : |
| 12956 | ac_cv_lib_gpm_Gpm_Open=yes |
| 12957 | else |
| 12958 | ac_cv_lib_gpm_Gpm_Open=no |
| 12959 | fi |
| 12960 | rm -f core conftest.err conftest.$ac_objext \ |
| 12961 | conftest$ac_exeext conftest.$ac_ext |
| 12962 | LIBS=$ac_check_lib_save_LIBS |
| 12963 | fi |
| 12964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 |
| 12965 | $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } |
| 12966 | if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : |
| 12967 | HAVE_GPM=yes |
| 12968 | fi |
| 12969 | |
| 12970 | fi |
| 12971 | |
| 12972 | |
| 12973 | |
| 12974 | if test "${HAVE_GPM}" = "yes"; then |
| 12975 | |
| 12976 | $as_echo "#define HAVE_GPM 1" >>confdefs.h |
| 12977 | |
| 12978 | LIBGPM=-lgpm |
| 12979 | fi |
| 12980 | fi |
| 12981 | |
| 12982 | |
| 12983 | |
| 12984 | |
| 12985 | |
| 12986 | |
| 12987 | GNUSTEP_CFLAGS= |
| 12988 | ### Use NeXTstep API to implement GUI. |
| 12989 | if test "${HAVE_NS}" = "yes"; then |
| 12990 | |
| 12991 | $as_echo "#define HAVE_NS 1" >>confdefs.h |
| 12992 | |
| 12993 | if test "${NS_IMPL_COCOA}" = "yes"; then |
| 12994 | |
| 12995 | $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h |
| 12996 | |
| 12997 | fi |
| 12998 | if test "${NS_IMPL_GNUSTEP}" = "yes"; then |
| 12999 | |
| 13000 | $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h |
| 13001 | |
| 13002 | # See also .m.o rule in Makefile.in */ |
| 13003 | # FIXME: are all these flags really needed? Document here why. */ |
| 13004 | GNUSTEP_CFLAGS="-D_REENTRANT -fPIC -fno-strict-aliasing -I${GNUSTEP_SYSTEM_HEADERS} ${GNUSTEP_LOCAL_HEADERS}" |
| 13005 | ## Extra CFLAGS applied to src/*.m files. |
| 13006 | GNU_OBJC_CFLAGS="$GNU_OBJC_CFLAGS -fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" |
| 13007 | fi |
| 13008 | # We also have mouse menus. |
| 13009 | HAVE_MENUS=yes |
| 13010 | OTHER_FILES=ns-app |
| 13011 | fi |
| 13012 | |
| 13013 | if test "${HAVE_W32}" = "yes"; then |
| 13014 | HAVE_MENUS=yes |
| 13015 | fi |
| 13016 | |
| 13017 | ### Use session management (-lSM -lICE) if available |
| 13018 | HAVE_X_SM=no |
| 13019 | LIBXSM= |
| 13020 | if test "${HAVE_X11}" = "yes"; then |
| 13021 | ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" |
| 13022 | if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : |
| 13023 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 |
| 13024 | $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } |
| 13025 | if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : |
| 13026 | $as_echo_n "(cached) " >&6 |
| 13027 | else |
| 13028 | ac_check_lib_save_LIBS=$LIBS |
| 13029 | LIBS="-lSM -lICE $LIBS" |
| 13030 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13031 | /* end confdefs.h. */ |
| 13032 | |
| 13033 | /* Override any GCC internal prototype to avoid an error. |
| 13034 | Use char because int might match the return type of a GCC |
| 13035 | builtin and then its argument prototype would still apply. */ |
| 13036 | #ifdef __cplusplus |
| 13037 | extern "C" |
| 13038 | #endif |
| 13039 | char SmcOpenConnection (); |
| 13040 | int |
| 13041 | main () |
| 13042 | { |
| 13043 | return SmcOpenConnection (); |
| 13044 | ; |
| 13045 | return 0; |
| 13046 | } |
| 13047 | _ACEOF |
| 13048 | if ac_fn_c_try_link "$LINENO"; then : |
| 13049 | ac_cv_lib_SM_SmcOpenConnection=yes |
| 13050 | else |
| 13051 | ac_cv_lib_SM_SmcOpenConnection=no |
| 13052 | fi |
| 13053 | rm -f core conftest.err conftest.$ac_objext \ |
| 13054 | conftest$ac_exeext conftest.$ac_ext |
| 13055 | LIBS=$ac_check_lib_save_LIBS |
| 13056 | fi |
| 13057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 |
| 13058 | $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } |
| 13059 | if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : |
| 13060 | HAVE_X_SM=yes |
| 13061 | fi |
| 13062 | |
| 13063 | fi |
| 13064 | |
| 13065 | |
| 13066 | |
| 13067 | if test "${HAVE_X_SM}" = "yes"; then |
| 13068 | |
| 13069 | $as_echo "#define HAVE_X_SM 1" >>confdefs.h |
| 13070 | |
| 13071 | LIBXSM="-lSM -lICE" |
| 13072 | case "$LIBS" in |
| 13073 | *-lSM*) ;; |
| 13074 | *) LIBS="$LIBXSM $LIBS" ;; |
| 13075 | esac |
| 13076 | fi |
| 13077 | fi |
| 13078 | |
| 13079 | |
| 13080 | ### Use libxml (-lxml2) if available |
| 13081 | HAVE_LIBXML2=no |
| 13082 | if test "${with_xml2}" != "no"; then |
| 13083 | ### I'm not sure what the version number should be, so I just guessed. |
| 13084 | |
| 13085 | succeeded=no |
| 13086 | |
| 13087 | if test "$PKG_CONFIG" = "no" ; then |
| 13088 | HAVE_LIBXML2=no |
| 13089 | else |
| 13090 | PKG_CONFIG_MIN_VERSION=0.9.0 |
| 13091 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then |
| 13092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 > 2.6.17" >&5 |
| 13093 | $as_echo_n "checking for libxml-2.0 > 2.6.17... " >&6; } |
| 13094 | |
| 13095 | if $PKG_CONFIG --exists "libxml-2.0 > 2.6.17" 2>&5 && |
| 13096 | LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 > 2.6.17" 2>&5` && |
| 13097 | LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 > 2.6.17" 2>&5`; then |
| 13098 | edit_cflags=" |
| 13099 | s,///*,/,g |
| 13100 | s/^/ / |
| 13101 | s/ -I/ $isystem/g |
| 13102 | s/^ // |
| 13103 | " |
| 13104 | LIBXML2_CFLAGS=`$as_echo "$LIBXML2_CFLAGS" | sed -e "$edit_cflags"` |
| 13105 | LIBXML2_LIBS=`$as_echo "$LIBXML2_LIBS" | sed -e 's,///*,/,g'` |
| 13106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&5 |
| 13107 | $as_echo "yes CFLAGS='$LIBXML2_CFLAGS' LIBS='$LIBXML2_LIBS'" >&6; } |
| 13108 | succeeded=yes |
| 13109 | else |
| 13110 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13111 | $as_echo "no" >&6; } |
| 13112 | LIBXML2_CFLAGS="" |
| 13113 | LIBXML2_LIBS="" |
| 13114 | ## If we have a custom action on failure, don't print errors, but |
| 13115 | ## do set a variable so people can do so. Do it in a subshell |
| 13116 | ## to capture any diagnostics in invoking pkg-config. |
| 13117 | LIBXML2_PKG_ERRORS=`($PKG_CONFIG --print-errors "libxml-2.0 > 2.6.17") 2>&1` |
| 13118 | |
| 13119 | fi |
| 13120 | |
| 13121 | |
| 13122 | |
| 13123 | else |
| 13124 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." |
| 13125 | echo "*** See http://www.freedesktop.org/software/pkgconfig" |
| 13126 | fi |
| 13127 | fi |
| 13128 | |
| 13129 | if test $succeeded = yes; then |
| 13130 | HAVE_LIBXML2=yes |
| 13131 | else |
| 13132 | HAVE_LIBXML2=no |
| 13133 | fi |
| 13134 | |
| 13135 | if test "${HAVE_LIBXML2}" = "yes"; then |
| 13136 | LIBS="$LIBXML2_LIBS $LIBS" |
| 13137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for htmlReadMemory in -lxml2" >&5 |
| 13138 | $as_echo_n "checking for htmlReadMemory in -lxml2... " >&6; } |
| 13139 | if test "${ac_cv_lib_xml2_htmlReadMemory+set}" = set; then : |
| 13140 | $as_echo_n "(cached) " >&6 |
| 13141 | else |
| 13142 | ac_check_lib_save_LIBS=$LIBS |
| 13143 | LIBS="-lxml2 $LIBS" |
| 13144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13145 | /* end confdefs.h. */ |
| 13146 | |
| 13147 | /* Override any GCC internal prototype to avoid an error. |
| 13148 | Use char because int might match the return type of a GCC |
| 13149 | builtin and then its argument prototype would still apply. */ |
| 13150 | #ifdef __cplusplus |
| 13151 | extern "C" |
| 13152 | #endif |
| 13153 | char htmlReadMemory (); |
| 13154 | int |
| 13155 | main () |
| 13156 | { |
| 13157 | return htmlReadMemory (); |
| 13158 | ; |
| 13159 | return 0; |
| 13160 | } |
| 13161 | _ACEOF |
| 13162 | if ac_fn_c_try_link "$LINENO"; then : |
| 13163 | ac_cv_lib_xml2_htmlReadMemory=yes |
| 13164 | else |
| 13165 | ac_cv_lib_xml2_htmlReadMemory=no |
| 13166 | fi |
| 13167 | rm -f core conftest.err conftest.$ac_objext \ |
| 13168 | conftest$ac_exeext conftest.$ac_ext |
| 13169 | LIBS=$ac_check_lib_save_LIBS |
| 13170 | fi |
| 13171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_htmlReadMemory" >&5 |
| 13172 | $as_echo "$ac_cv_lib_xml2_htmlReadMemory" >&6; } |
| 13173 | if test "x$ac_cv_lib_xml2_htmlReadMemory" = x""yes; then : |
| 13174 | HAVE_LIBXML2=yes |
| 13175 | else |
| 13176 | HAVE_LIBXML2=no |
| 13177 | fi |
| 13178 | |
| 13179 | if test "${HAVE_LIBXML2}" = "yes"; then |
| 13180 | |
| 13181 | $as_echo "#define HAVE_LIBXML2 1" >>confdefs.h |
| 13182 | |
| 13183 | else |
| 13184 | LIBXML2_LIBS="" |
| 13185 | LIBXML2_CFLAGS="" |
| 13186 | fi |
| 13187 | fi |
| 13188 | fi |
| 13189 | |
| 13190 | |
| 13191 | |
| 13192 | # If netdb.h doesn't declare h_errno, we must declare it by hand. |
| 13193 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 |
| 13194 | $as_echo_n "checking whether netdb declares h_errno... " >&6; } |
| 13195 | if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : |
| 13196 | $as_echo_n "(cached) " >&6 |
| 13197 | else |
| 13198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13199 | /* end confdefs.h. */ |
| 13200 | #include <netdb.h> |
| 13201 | int |
| 13202 | main () |
| 13203 | { |
| 13204 | return h_errno; |
| 13205 | ; |
| 13206 | return 0; |
| 13207 | } |
| 13208 | _ACEOF |
| 13209 | if ac_fn_c_try_link "$LINENO"; then : |
| 13210 | emacs_cv_netdb_declares_h_errno=yes |
| 13211 | else |
| 13212 | emacs_cv_netdb_declares_h_errno=no |
| 13213 | fi |
| 13214 | rm -f core conftest.err conftest.$ac_objext \ |
| 13215 | conftest$ac_exeext conftest.$ac_ext |
| 13216 | fi |
| 13217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 |
| 13218 | $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } |
| 13219 | if test $emacs_cv_netdb_declares_h_errno = yes; then |
| 13220 | |
| 13221 | $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h |
| 13222 | |
| 13223 | fi |
| 13224 | |
| 13225 | # sqrt and other floating-point functions such as fmod and frexp |
| 13226 | # are found in -lm on most systems. |
| 13227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 |
| 13228 | $as_echo_n "checking for sqrt in -lm... " >&6; } |
| 13229 | if test "${ac_cv_lib_m_sqrt+set}" = set; then : |
| 13230 | $as_echo_n "(cached) " >&6 |
| 13231 | else |
| 13232 | ac_check_lib_save_LIBS=$LIBS |
| 13233 | LIBS="-lm $LIBS" |
| 13234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13235 | /* end confdefs.h. */ |
| 13236 | |
| 13237 | /* Override any GCC internal prototype to avoid an error. |
| 13238 | Use char because int might match the return type of a GCC |
| 13239 | builtin and then its argument prototype would still apply. */ |
| 13240 | #ifdef __cplusplus |
| 13241 | extern "C" |
| 13242 | #endif |
| 13243 | char sqrt (); |
| 13244 | int |
| 13245 | main () |
| 13246 | { |
| 13247 | return sqrt (); |
| 13248 | ; |
| 13249 | return 0; |
| 13250 | } |
| 13251 | _ACEOF |
| 13252 | if ac_fn_c_try_link "$LINENO"; then : |
| 13253 | ac_cv_lib_m_sqrt=yes |
| 13254 | else |
| 13255 | ac_cv_lib_m_sqrt=no |
| 13256 | fi |
| 13257 | rm -f core conftest.err conftest.$ac_objext \ |
| 13258 | conftest$ac_exeext conftest.$ac_ext |
| 13259 | LIBS=$ac_check_lib_save_LIBS |
| 13260 | fi |
| 13261 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 |
| 13262 | $as_echo "$ac_cv_lib_m_sqrt" >&6; } |
| 13263 | if test "x$ac_cv_lib_m_sqrt" = x""yes; then : |
| 13264 | cat >>confdefs.h <<_ACEOF |
| 13265 | #define HAVE_LIBM 1 |
| 13266 | _ACEOF |
| 13267 | |
| 13268 | LIBS="-lm $LIBS" |
| 13269 | |
| 13270 | fi |
| 13271 | |
| 13272 | |
| 13273 | # Check for mail-locking functions in a "mail" library. Probably this should |
| 13274 | # have the same check as for liblockfile below. |
| 13275 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 |
| 13276 | $as_echo_n "checking for maillock in -lmail... " >&6; } |
| 13277 | if test "${ac_cv_lib_mail_maillock+set}" = set; then : |
| 13278 | $as_echo_n "(cached) " >&6 |
| 13279 | else |
| 13280 | ac_check_lib_save_LIBS=$LIBS |
| 13281 | LIBS="-lmail $LIBS" |
| 13282 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13283 | /* end confdefs.h. */ |
| 13284 | |
| 13285 | /* Override any GCC internal prototype to avoid an error. |
| 13286 | Use char because int might match the return type of a GCC |
| 13287 | builtin and then its argument prototype would still apply. */ |
| 13288 | #ifdef __cplusplus |
| 13289 | extern "C" |
| 13290 | #endif |
| 13291 | char maillock (); |
| 13292 | int |
| 13293 | main () |
| 13294 | { |
| 13295 | return maillock (); |
| 13296 | ; |
| 13297 | return 0; |
| 13298 | } |
| 13299 | _ACEOF |
| 13300 | if ac_fn_c_try_link "$LINENO"; then : |
| 13301 | ac_cv_lib_mail_maillock=yes |
| 13302 | else |
| 13303 | ac_cv_lib_mail_maillock=no |
| 13304 | fi |
| 13305 | rm -f core conftest.err conftest.$ac_objext \ |
| 13306 | conftest$ac_exeext conftest.$ac_ext |
| 13307 | LIBS=$ac_check_lib_save_LIBS |
| 13308 | fi |
| 13309 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 |
| 13310 | $as_echo "$ac_cv_lib_mail_maillock" >&6; } |
| 13311 | if test "x$ac_cv_lib_mail_maillock" = x""yes; then : |
| 13312 | have_mail=yes |
| 13313 | else |
| 13314 | have_mail=no |
| 13315 | fi |
| 13316 | |
| 13317 | if test $have_mail = yes; then |
| 13318 | LIBS_MAIL=-lmail |
| 13319 | LIBS="$LIBS_MAIL $LIBS" |
| 13320 | |
| 13321 | $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h |
| 13322 | |
| 13323 | else |
| 13324 | LIBS_MAIL= |
| 13325 | fi |
| 13326 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 |
| 13327 | $as_echo_n "checking for maillock in -llockfile... " >&6; } |
| 13328 | if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : |
| 13329 | $as_echo_n "(cached) " >&6 |
| 13330 | else |
| 13331 | ac_check_lib_save_LIBS=$LIBS |
| 13332 | LIBS="-llockfile $LIBS" |
| 13333 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13334 | /* end confdefs.h. */ |
| 13335 | |
| 13336 | /* Override any GCC internal prototype to avoid an error. |
| 13337 | Use char because int might match the return type of a GCC |
| 13338 | builtin and then its argument prototype would still apply. */ |
| 13339 | #ifdef __cplusplus |
| 13340 | extern "C" |
| 13341 | #endif |
| 13342 | char maillock (); |
| 13343 | int |
| 13344 | main () |
| 13345 | { |
| 13346 | return maillock (); |
| 13347 | ; |
| 13348 | return 0; |
| 13349 | } |
| 13350 | _ACEOF |
| 13351 | if ac_fn_c_try_link "$LINENO"; then : |
| 13352 | ac_cv_lib_lockfile_maillock=yes |
| 13353 | else |
| 13354 | ac_cv_lib_lockfile_maillock=no |
| 13355 | fi |
| 13356 | rm -f core conftest.err conftest.$ac_objext \ |
| 13357 | conftest$ac_exeext conftest.$ac_ext |
| 13358 | LIBS=$ac_check_lib_save_LIBS |
| 13359 | fi |
| 13360 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 |
| 13361 | $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } |
| 13362 | if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : |
| 13363 | have_lockfile=yes |
| 13364 | else |
| 13365 | have_lockfile=no |
| 13366 | fi |
| 13367 | |
| 13368 | if test $have_lockfile = yes; then |
| 13369 | LIBS_MAIL=-llockfile |
| 13370 | LIBS="$LIBS_MAIL $LIBS" |
| 13371 | |
| 13372 | $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h |
| 13373 | |
| 13374 | else |
| 13375 | # If we have the shared liblockfile, assume we must use it for mail |
| 13376 | # locking (e.g. Debian). If we couldn't link against liblockfile |
| 13377 | # (no liblockfile.a installed), ensure that we don't need to. |
| 13378 | # Extract the first word of "liblockfile.so", so it can be a program name with args. |
| 13379 | set dummy liblockfile.so; ac_word=$2 |
| 13380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 13381 | $as_echo_n "checking for $ac_word... " >&6; } |
| 13382 | if test "${ac_cv_prog_liblockfile+set}" = set; then : |
| 13383 | $as_echo_n "(cached) " >&6 |
| 13384 | else |
| 13385 | if test -n "$liblockfile"; then |
| 13386 | ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. |
| 13387 | else |
| 13388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 13389 | as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" |
| 13390 | for as_dir in $as_dummy |
| 13391 | do |
| 13392 | IFS=$as_save_IFS |
| 13393 | test -z "$as_dir" && as_dir=. |
| 13394 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 13395 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 13396 | ac_cv_prog_liblockfile="yes" |
| 13397 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 13398 | break 2 |
| 13399 | fi |
| 13400 | done |
| 13401 | done |
| 13402 | IFS=$as_save_IFS |
| 13403 | |
| 13404 | test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" |
| 13405 | fi |
| 13406 | fi |
| 13407 | liblockfile=$ac_cv_prog_liblockfile |
| 13408 | if test -n "$liblockfile"; then |
| 13409 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 |
| 13410 | $as_echo "$liblockfile" >&6; } |
| 13411 | else |
| 13412 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 13413 | $as_echo "no" >&6; } |
| 13414 | fi |
| 13415 | |
| 13416 | |
| 13417 | if test $ac_cv_prog_liblockfile = yes; then |
| 13418 | as_fn_error "Shared liblockfile found but can't link against it. |
| 13419 | This probably means that movemail could lose mail. |
| 13420 | There may be a \`development' package to install containing liblockfile." "$LINENO" 5 |
| 13421 | fi |
| 13422 | fi |
| 13423 | |
| 13424 | |
| 13425 | |
| 13426 | |
| 13427 | |
| 13428 | ## Define MAIL_USE_FLOCK (or LOCKF) if the mailer uses flock (or lockf) to |
| 13429 | ## interlock access to the mail spool. The alternative is a lock file named |
| 13430 | ## /usr/spool/mail/$USER.lock. |
| 13431 | mail_lock=no |
| 13432 | case "$opsys" in |
| 13433 | aix4-2) mail_lock="lockf" ;; |
| 13434 | |
| 13435 | gnu|freebsd|netbsd|openbsd|darwin|irix6-5) mail_lock="flock" ;; |
| 13436 | |
| 13437 | ## On GNU/Linux systems, both methods are used by various mail programs. |
| 13438 | ## I assume most people are using newer mailers that have heard of flock. |
| 13439 | ## Change this if you need to. |
| 13440 | ## Debian contains a patch which says: ``On Debian/GNU/Linux systems, |
| 13441 | ## configure gets the right answers, and that means *NOT* using flock. |
| 13442 | ## Using flock is guaranteed to be the wrong thing. See Debian Policy |
| 13443 | ## for details.'' and then uses `#ifdef DEBIAN'. Unfortunately the |
| 13444 | ## Debian maintainer hasn't provided a clean fix for Emacs. |
| 13445 | ## movemail.c will use `maillock' when MAILDIR, HAVE_LIBMAIL and |
| 13446 | ## HAVE_MAILLOCK_H are defined, so the following appears to be the |
| 13447 | ## correct logic. -- fx |
| 13448 | ## We must check for HAVE_LIBLOCKFILE too, as movemail does. |
| 13449 | ## liblockfile is a Free Software replacement for libmail, used on |
| 13450 | ## Debian systems and elsewhere. -rfr. |
| 13451 | gnu-*) |
| 13452 | mail_lock="flock" |
| 13453 | if test $have_mail = yes || test $have_lockfile = yes; then |
| 13454 | test $ac_cv_header_maillock_h = yes && mail_lock=no |
| 13455 | fi |
| 13456 | ;; |
| 13457 | esac |
| 13458 | |
| 13459 | BLESSMAIL_TARGET= |
| 13460 | case "$mail_lock" in |
| 13461 | flock) |
| 13462 | $as_echo "#define MAIL_USE_FLOCK 1" >>confdefs.h |
| 13463 | ;; |
| 13464 | |
| 13465 | lockf) |
| 13466 | $as_echo "#define MAIL_USE_LOCKF 1" >>confdefs.h |
| 13467 | ;; |
| 13468 | |
| 13469 | *) BLESSMAIL_TARGET="need-blessmail" ;; |
| 13470 | esac |
| 13471 | |
| 13472 | |
| 13473 | |
| 13474 | for ac_func in gethostname \ |
| 13475 | getrusage get_current_dir_name \ |
| 13476 | lrand48 \ |
| 13477 | select getpagesize setlocale \ |
| 13478 | utimes getrlimit setrlimit shutdown getaddrinfo \ |
| 13479 | strsignal setitimer \ |
| 13480 | sendto recvfrom getsockname getpeername getifaddrs freeifaddrs \ |
| 13481 | gai_strerror mkstemp getline getdelim fsync sync \ |
| 13482 | difftime posix_memalign \ |
| 13483 | getpwent endpwent getgrent endgrent \ |
| 13484 | touchlock \ |
| 13485 | cfmakeraw cfsetspeed copysign __executable_start |
| 13486 | do : |
| 13487 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13488 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13489 | eval as_val=\$$as_ac_var |
| 13490 | if test "x$as_val" = x""yes; then : |
| 13491 | cat >>confdefs.h <<_ACEOF |
| 13492 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13493 | _ACEOF |
| 13494 | |
| 13495 | fi |
| 13496 | done |
| 13497 | |
| 13498 | |
| 13499 | ## Eric Backus <ericb@lsid.hp.com> says, HP-UX 9.x on HP 700 machines |
| 13500 | ## has a broken `rint' in some library versions including math library |
| 13501 | ## version number A.09.05. |
| 13502 | ## You can fix the math library by installing patch number PHSS_4630. |
| 13503 | ## But we can fix it more reliably for Emacs by just not using rint. |
| 13504 | ## We also skip HAVE_RANDOM - see comments in src/conf_post.h. |
| 13505 | case $opsys in |
| 13506 | hpux*) : ;; |
| 13507 | *) for ac_func in random rint |
| 13508 | do : |
| 13509 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13510 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13511 | eval as_val=\$$as_ac_var |
| 13512 | if test "x$as_val" = x""yes; then : |
| 13513 | cat >>confdefs.h <<_ACEOF |
| 13514 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13515 | _ACEOF |
| 13516 | |
| 13517 | fi |
| 13518 | done |
| 13519 | ;; |
| 13520 | esac |
| 13521 | |
| 13522 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_unwind_init" >&5 |
| 13523 | $as_echo_n "checking for __builtin_unwind_init... " >&6; } |
| 13524 | if test "${emacs_cv_func___builtin_unwind_init+set}" = set; then : |
| 13525 | $as_echo_n "(cached) " >&6 |
| 13526 | else |
| 13527 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13528 | /* end confdefs.h. */ |
| 13529 | |
| 13530 | int |
| 13531 | main () |
| 13532 | { |
| 13533 | __builtin_unwind_init (); |
| 13534 | ; |
| 13535 | return 0; |
| 13536 | } |
| 13537 | _ACEOF |
| 13538 | if ac_fn_c_try_link "$LINENO"; then : |
| 13539 | emacs_cv_func___builtin_unwind_init=yes |
| 13540 | else |
| 13541 | emacs_cv_func___builtin_unwind_init=no |
| 13542 | fi |
| 13543 | rm -f core conftest.err conftest.$ac_objext \ |
| 13544 | conftest$ac_exeext conftest.$ac_ext |
| 13545 | fi |
| 13546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func___builtin_unwind_init" >&5 |
| 13547 | $as_echo "$emacs_cv_func___builtin_unwind_init" >&6; } |
| 13548 | if test $emacs_cv_func___builtin_unwind_init = yes; then |
| 13549 | |
| 13550 | $as_echo "#define HAVE___BUILTIN_UNWIND_INIT 1" >>confdefs.h |
| 13551 | |
| 13552 | fi |
| 13553 | |
| 13554 | |
| 13555 | |
| 13556 | |
| 13557 | |
| 13558 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 |
| 13559 | $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } |
| 13560 | if test "${ac_cv_sys_largefile_source+set}" = set; then : |
| 13561 | $as_echo_n "(cached) " >&6 |
| 13562 | else |
| 13563 | while :; do |
| 13564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13565 | /* end confdefs.h. */ |
| 13566 | #include <sys/types.h> /* for off_t */ |
| 13567 | #include <stdio.h> |
| 13568 | int |
| 13569 | main () |
| 13570 | { |
| 13571 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 13572 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 13573 | ; |
| 13574 | return 0; |
| 13575 | } |
| 13576 | _ACEOF |
| 13577 | if ac_fn_c_try_link "$LINENO"; then : |
| 13578 | ac_cv_sys_largefile_source=no; break |
| 13579 | fi |
| 13580 | rm -f core conftest.err conftest.$ac_objext \ |
| 13581 | conftest$ac_exeext conftest.$ac_ext |
| 13582 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13583 | /* end confdefs.h. */ |
| 13584 | #define _LARGEFILE_SOURCE 1 |
| 13585 | #include <sys/types.h> /* for off_t */ |
| 13586 | #include <stdio.h> |
| 13587 | int |
| 13588 | main () |
| 13589 | { |
| 13590 | int (*fp) (FILE *, off_t, int) = fseeko; |
| 13591 | return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); |
| 13592 | ; |
| 13593 | return 0; |
| 13594 | } |
| 13595 | _ACEOF |
| 13596 | if ac_fn_c_try_link "$LINENO"; then : |
| 13597 | ac_cv_sys_largefile_source=1; break |
| 13598 | fi |
| 13599 | rm -f core conftest.err conftest.$ac_objext \ |
| 13600 | conftest$ac_exeext conftest.$ac_ext |
| 13601 | ac_cv_sys_largefile_source=unknown |
| 13602 | break |
| 13603 | done |
| 13604 | fi |
| 13605 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 |
| 13606 | $as_echo "$ac_cv_sys_largefile_source" >&6; } |
| 13607 | case $ac_cv_sys_largefile_source in #( |
| 13608 | no | unknown) ;; |
| 13609 | *) |
| 13610 | cat >>confdefs.h <<_ACEOF |
| 13611 | #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source |
| 13612 | _ACEOF |
| 13613 | ;; |
| 13614 | esac |
| 13615 | rm -rf conftest* |
| 13616 | |
| 13617 | # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug |
| 13618 | # in glibc 2.1.3, but that breaks too many other things. |
| 13619 | # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. |
| 13620 | if test $ac_cv_sys_largefile_source != unknown; then |
| 13621 | |
| 13622 | $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h |
| 13623 | |
| 13624 | fi |
| 13625 | |
| 13626 | |
| 13627 | # UNIX98 PTYs. |
| 13628 | for ac_func in grantpt |
| 13629 | do : |
| 13630 | ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" |
| 13631 | if test "x$ac_cv_func_grantpt" = x""yes; then : |
| 13632 | cat >>confdefs.h <<_ACEOF |
| 13633 | #define HAVE_GRANTPT 1 |
| 13634 | _ACEOF |
| 13635 | |
| 13636 | fi |
| 13637 | done |
| 13638 | |
| 13639 | |
| 13640 | # PTY-related GNU extensions. |
| 13641 | for ac_func in getpt posix_openpt |
| 13642 | do : |
| 13643 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 13644 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 13645 | eval as_val=\$$as_ac_var |
| 13646 | if test "x$as_val" = x""yes; then : |
| 13647 | cat >>confdefs.h <<_ACEOF |
| 13648 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 13649 | _ACEOF |
| 13650 | |
| 13651 | fi |
| 13652 | done |
| 13653 | |
| 13654 | |
| 13655 | # Check this now, so that we will NOT find the above functions in ncurses. |
| 13656 | # That is because we have not set up to link ncurses in lib-src. |
| 13657 | # It's better to believe a function is not available |
| 13658 | # than to expect to find it in ncurses. |
| 13659 | # Also we need tputs and friends to be able to build at all. |
| 13660 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 |
| 13661 | $as_echo_n "checking for library containing tputs... " >&6; } |
| 13662 | # Run a test program that contains a call to tputs, a call that is |
| 13663 | # never executed. This tests whether a pre-'main' dynamic linker |
| 13664 | # works with the library. It's too much trouble to actually call |
| 13665 | # tputs in the test program, due to portability hassles. When |
| 13666 | # cross-compiling, assume the test program will run if it links. |
| 13667 | |
| 13668 | # Maybe curses should be tried earlier? |
| 13669 | # See http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9736#35 |
| 13670 | for tputs_library in '' tinfo ncurses terminfo termcap curses; do |
| 13671 | OLIBS=$LIBS |
| 13672 | if test -z "$tputs_library"; then |
| 13673 | LIBS_TERMCAP= |
| 13674 | msg='none required' |
| 13675 | else |
| 13676 | LIBS_TERMCAP=-l$tputs_library |
| 13677 | msg=$LIBS_TERMCAP |
| 13678 | LIBS="$LIBS_TERMCAP $LIBS" |
| 13679 | fi |
| 13680 | if test "$cross_compiling" = yes; then : |
| 13681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13682 | /* end confdefs.h. */ |
| 13683 | |
| 13684 | extern void tputs (const char *, int, int (*)(int)); |
| 13685 | int main (int argc, char **argv) |
| 13686 | { |
| 13687 | if (argc == 10000) |
| 13688 | tputs (argv[0], 0, 0); |
| 13689 | return 0; |
| 13690 | } |
| 13691 | |
| 13692 | _ACEOF |
| 13693 | if ac_fn_c_try_link "$LINENO"; then : |
| 13694 | |
| 13695 | else |
| 13696 | msg=no |
| 13697 | fi |
| 13698 | rm -f core conftest.err conftest.$ac_objext \ |
| 13699 | conftest$ac_exeext conftest.$ac_ext |
| 13700 | else |
| 13701 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13702 | /* end confdefs.h. */ |
| 13703 | |
| 13704 | extern void tputs (const char *, int, int (*)(int)); |
| 13705 | int main (int argc, char **argv) |
| 13706 | { |
| 13707 | if (argc == 10000) |
| 13708 | tputs (argv[0], 0, 0); |
| 13709 | return 0; |
| 13710 | } |
| 13711 | |
| 13712 | _ACEOF |
| 13713 | if ac_fn_c_try_run "$LINENO"; then : |
| 13714 | |
| 13715 | else |
| 13716 | msg=no |
| 13717 | fi |
| 13718 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 13719 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 13720 | fi |
| 13721 | |
| 13722 | LIBS=$OLIBS |
| 13723 | if test "X$msg" != Xno; then |
| 13724 | break |
| 13725 | fi |
| 13726 | done |
| 13727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 |
| 13728 | $as_echo "$msg" >&6; } |
| 13729 | if test "X$msg" = Xno; then |
| 13730 | as_fn_error "The required function \`tputs' was not found in any library. |
| 13731 | The following libraries were tried (in order): |
| 13732 | libtinfo, libncurses, libterminfo, libtermcap, libcurses |
| 13733 | Please try installing whichever of these libraries is most appropriate |
| 13734 | for your system, together with its header files. |
| 13735 | For example, a libncurses-dev(el) or similar package." "$LINENO" 5 |
| 13736 | fi |
| 13737 | |
| 13738 | ## Use termcap instead of terminfo? |
| 13739 | ## Only true for: freebsd < 40000, ms-w32, msdos, netbsd < 599002500. |
| 13740 | TERMINFO=yes |
| 13741 | ## FIXME? In the cases below where we unconditionally set |
| 13742 | ## LIBS_TERMCAP="-lncurses", this overrides LIBS_TERMCAP = -ltinfo, |
| 13743 | ## if that was found above to have tputs. |
| 13744 | ## Should we use the gnu* logic everywhere? |
| 13745 | case "$opsys" in |
| 13746 | ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2. |
| 13747 | ## The ncurses library has been moved out of the System framework in |
| 13748 | ## Mac OS X 10.2. So if configure detects it, set the command-line |
| 13749 | ## option to use it. |
| 13750 | darwin) LIBS_TERMCAP="-lncurses" ;; |
| 13751 | |
| 13752 | gnu*) test -z "$LIBS_TERMCAP" && LIBS_TERMCAP="-lncurses" ;; |
| 13753 | |
| 13754 | freebsd) |
| 13755 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FreeBSD is new enough to use terminfo" >&5 |
| 13756 | $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; } |
| 13757 | if test "${emacs_cv_freebsd_terminfo+set}" = set; then : |
| 13758 | $as_echo_n "(cached) " >&6 |
| 13759 | else |
| 13760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13761 | /* end confdefs.h. */ |
| 13762 | #include <osreldate.h> |
| 13763 | int |
| 13764 | main () |
| 13765 | { |
| 13766 | #if __FreeBSD_version < 400000 |
| 13767 | fail; |
| 13768 | #endif |
| 13769 | |
| 13770 | ; |
| 13771 | return 0; |
| 13772 | } |
| 13773 | _ACEOF |
| 13774 | if ac_fn_c_try_link "$LINENO"; then : |
| 13775 | emacs_cv_freebsd_terminfo=yes |
| 13776 | else |
| 13777 | emacs_cv_freebsd_terminfo=no |
| 13778 | fi |
| 13779 | rm -f core conftest.err conftest.$ac_objext \ |
| 13780 | conftest$ac_exeext conftest.$ac_ext |
| 13781 | fi |
| 13782 | |
| 13783 | |
| 13784 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_freebsd_terminfo" >&5 |
| 13785 | $as_echo "$emacs_cv_freebsd_terminfo" >&6; } |
| 13786 | |
| 13787 | if test $emacs_cv_freebsd_terminfo = yes; then |
| 13788 | LIBS_TERMCAP="-lncurses" |
| 13789 | else |
| 13790 | TERMINFO=no |
| 13791 | LIBS_TERMCAP="-ltermcap" |
| 13792 | fi |
| 13793 | ;; |
| 13794 | |
| 13795 | netbsd) |
| 13796 | if test "x$LIBS_TERMCAP" != "x-lterminfo"; then |
| 13797 | TERMINFO=no |
| 13798 | LIBS_TERMCAP="-ltermcap" |
| 13799 | fi |
| 13800 | ;; |
| 13801 | |
| 13802 | openbsd) LIBS_TERMCAP="-lncurses" ;; |
| 13803 | |
| 13804 | ## hpux: Make sure we get select from libc rather than from libcurses |
| 13805 | ## because libcurses on HPUX 10.10 has a broken version of select. |
| 13806 | ## We used to use -lc -lcurses, but this may be cleaner. |
| 13807 | ## FIXME? But TERMINFO = yes on hpux (it used to be explicitly |
| 13808 | # set that way, now it uses the default). Isn't this a contradiction? |
| 13809 | hpux*) LIBS_TERMCAP="-ltermcap" ;; |
| 13810 | |
| 13811 | esac |
| 13812 | |
| 13813 | TERMCAP_OBJ=tparam.o |
| 13814 | if test $TERMINFO = yes; then |
| 13815 | |
| 13816 | $as_echo "#define TERMINFO 1" >>confdefs.h |
| 13817 | |
| 13818 | TERMCAP_OBJ=terminfo.o |
| 13819 | fi |
| 13820 | |
| 13821 | |
| 13822 | |
| 13823 | |
| 13824 | # Do we have res_init, for detecting changes in /etc/resolv.conf? |
| 13825 | # On Darwin, res_init appears not to be useful: see bug#562 and |
| 13826 | # http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html |
| 13827 | resolv=no |
| 13828 | |
| 13829 | if test $opsys != darwin; then |
| 13830 | |
| 13831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13832 | /* end confdefs.h. */ |
| 13833 | #include <netinet/in.h> |
| 13834 | #include <arpa/nameser.h> |
| 13835 | #include <resolv.h> |
| 13836 | int |
| 13837 | main () |
| 13838 | { |
| 13839 | return res_init(); |
| 13840 | ; |
| 13841 | return 0; |
| 13842 | } |
| 13843 | _ACEOF |
| 13844 | if ac_fn_c_try_link "$LINENO"; then : |
| 13845 | have_res_init=yes |
| 13846 | else |
| 13847 | have_res_init=no |
| 13848 | fi |
| 13849 | rm -f core conftest.err conftest.$ac_objext \ |
| 13850 | conftest$ac_exeext conftest.$ac_ext |
| 13851 | if test "$have_res_init" = no; then |
| 13852 | OLIBS="$LIBS" |
| 13853 | LIBS="$LIBS -lresolv" |
| 13854 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 |
| 13855 | $as_echo_n "checking for res_init with -lresolv... " >&6; } |
| 13856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13857 | /* end confdefs.h. */ |
| 13858 | #include <netinet/in.h> |
| 13859 | #include <arpa/nameser.h> |
| 13860 | #include <resolv.h> |
| 13861 | int |
| 13862 | main () |
| 13863 | { |
| 13864 | return res_init(); |
| 13865 | ; |
| 13866 | return 0; |
| 13867 | } |
| 13868 | _ACEOF |
| 13869 | if ac_fn_c_try_link "$LINENO"; then : |
| 13870 | have_res_init=yes |
| 13871 | else |
| 13872 | have_res_init=no |
| 13873 | fi |
| 13874 | rm -f core conftest.err conftest.$ac_objext \ |
| 13875 | conftest$ac_exeext conftest.$ac_ext |
| 13876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 |
| 13877 | $as_echo "$have_res_init" >&6; } |
| 13878 | if test "$have_res_init" = yes ; then |
| 13879 | resolv=yes |
| 13880 | fi |
| 13881 | LIBS="$OLIBS" |
| 13882 | fi |
| 13883 | |
| 13884 | if test "$have_res_init" = yes; then |
| 13885 | |
| 13886 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h |
| 13887 | |
| 13888 | fi |
| 13889 | fi |
| 13890 | # Do we need the Hesiod library to provide the support routines? |
| 13891 | LIBHESIOD= |
| 13892 | if test "$with_hesiod" != no ; then |
| 13893 | # Don't set $LIBS here -- see comments above. FIXME which comments? |
| 13894 | ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" |
| 13895 | if test "x$ac_cv_func_res_send" = x""yes; then : |
| 13896 | |
| 13897 | else |
| 13898 | ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" |
| 13899 | if test "x$ac_cv_func___res_send" = x""yes; then : |
| 13900 | |
| 13901 | else |
| 13902 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 |
| 13903 | $as_echo_n "checking for res_send in -lresolv... " >&6; } |
| 13904 | if test "${ac_cv_lib_resolv_res_send+set}" = set; then : |
| 13905 | $as_echo_n "(cached) " >&6 |
| 13906 | else |
| 13907 | ac_check_lib_save_LIBS=$LIBS |
| 13908 | LIBS="-lresolv $LIBS" |
| 13909 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13910 | /* end confdefs.h. */ |
| 13911 | |
| 13912 | /* Override any GCC internal prototype to avoid an error. |
| 13913 | Use char because int might match the return type of a GCC |
| 13914 | builtin and then its argument prototype would still apply. */ |
| 13915 | #ifdef __cplusplus |
| 13916 | extern "C" |
| 13917 | #endif |
| 13918 | char res_send (); |
| 13919 | int |
| 13920 | main () |
| 13921 | { |
| 13922 | return res_send (); |
| 13923 | ; |
| 13924 | return 0; |
| 13925 | } |
| 13926 | _ACEOF |
| 13927 | if ac_fn_c_try_link "$LINENO"; then : |
| 13928 | ac_cv_lib_resolv_res_send=yes |
| 13929 | else |
| 13930 | ac_cv_lib_resolv_res_send=no |
| 13931 | fi |
| 13932 | rm -f core conftest.err conftest.$ac_objext \ |
| 13933 | conftest$ac_exeext conftest.$ac_ext |
| 13934 | LIBS=$ac_check_lib_save_LIBS |
| 13935 | fi |
| 13936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 |
| 13937 | $as_echo "$ac_cv_lib_resolv_res_send" >&6; } |
| 13938 | if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : |
| 13939 | resolv=yes |
| 13940 | else |
| 13941 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 |
| 13942 | $as_echo_n "checking for __res_send in -lresolv... " >&6; } |
| 13943 | if test "${ac_cv_lib_resolv___res_send+set}" = set; then : |
| 13944 | $as_echo_n "(cached) " >&6 |
| 13945 | else |
| 13946 | ac_check_lib_save_LIBS=$LIBS |
| 13947 | LIBS="-lresolv $LIBS" |
| 13948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 13949 | /* end confdefs.h. */ |
| 13950 | |
| 13951 | /* Override any GCC internal prototype to avoid an error. |
| 13952 | Use char because int might match the return type of a GCC |
| 13953 | builtin and then its argument prototype would still apply. */ |
| 13954 | #ifdef __cplusplus |
| 13955 | extern "C" |
| 13956 | #endif |
| 13957 | char __res_send (); |
| 13958 | int |
| 13959 | main () |
| 13960 | { |
| 13961 | return __res_send (); |
| 13962 | ; |
| 13963 | return 0; |
| 13964 | } |
| 13965 | _ACEOF |
| 13966 | if ac_fn_c_try_link "$LINENO"; then : |
| 13967 | ac_cv_lib_resolv___res_send=yes |
| 13968 | else |
| 13969 | ac_cv_lib_resolv___res_send=no |
| 13970 | fi |
| 13971 | rm -f core conftest.err conftest.$ac_objext \ |
| 13972 | conftest$ac_exeext conftest.$ac_ext |
| 13973 | LIBS=$ac_check_lib_save_LIBS |
| 13974 | fi |
| 13975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 |
| 13976 | $as_echo "$ac_cv_lib_resolv___res_send" >&6; } |
| 13977 | if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : |
| 13978 | resolv=yes |
| 13979 | fi |
| 13980 | |
| 13981 | fi |
| 13982 | |
| 13983 | fi |
| 13984 | |
| 13985 | fi |
| 13986 | |
| 13987 | if test "$resolv" = yes ; then |
| 13988 | RESOLVLIB=-lresolv |
| 13989 | else |
| 13990 | RESOLVLIB= |
| 13991 | fi |
| 13992 | ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" |
| 13993 | if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : |
| 13994 | |
| 13995 | else |
| 13996 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 |
| 13997 | $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } |
| 13998 | if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : |
| 13999 | $as_echo_n "(cached) " >&6 |
| 14000 | else |
| 14001 | ac_check_lib_save_LIBS=$LIBS |
| 14002 | LIBS="-lhesiod $RESOLVLIB $LIBS" |
| 14003 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14004 | /* end confdefs.h. */ |
| 14005 | |
| 14006 | /* Override any GCC internal prototype to avoid an error. |
| 14007 | Use char because int might match the return type of a GCC |
| 14008 | builtin and then its argument prototype would still apply. */ |
| 14009 | #ifdef __cplusplus |
| 14010 | extern "C" |
| 14011 | #endif |
| 14012 | char hes_getmailhost (); |
| 14013 | int |
| 14014 | main () |
| 14015 | { |
| 14016 | return hes_getmailhost (); |
| 14017 | ; |
| 14018 | return 0; |
| 14019 | } |
| 14020 | _ACEOF |
| 14021 | if ac_fn_c_try_link "$LINENO"; then : |
| 14022 | ac_cv_lib_hesiod_hes_getmailhost=yes |
| 14023 | else |
| 14024 | ac_cv_lib_hesiod_hes_getmailhost=no |
| 14025 | fi |
| 14026 | rm -f core conftest.err conftest.$ac_objext \ |
| 14027 | conftest$ac_exeext conftest.$ac_ext |
| 14028 | LIBS=$ac_check_lib_save_LIBS |
| 14029 | fi |
| 14030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 |
| 14031 | $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } |
| 14032 | if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : |
| 14033 | hesiod=yes |
| 14034 | else |
| 14035 | : |
| 14036 | fi |
| 14037 | |
| 14038 | fi |
| 14039 | |
| 14040 | |
| 14041 | if test x"$hesiod" = xyes; then |
| 14042 | |
| 14043 | $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h |
| 14044 | |
| 14045 | LIBHESIOD=-lhesiod |
| 14046 | fi |
| 14047 | fi |
| 14048 | |
| 14049 | |
| 14050 | # Do we need libresolv (due to res_init or Hesiod)? |
| 14051 | if test "$resolv" = yes && test $opsys != darwin; then |
| 14052 | |
| 14053 | $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h |
| 14054 | |
| 14055 | LIBRESOLV=-lresolv |
| 14056 | else |
| 14057 | LIBRESOLV= |
| 14058 | fi |
| 14059 | |
| 14060 | |
| 14061 | # These tell us which Kerberos-related libraries to use. |
| 14062 | COM_ERRLIB= |
| 14063 | CRYPTOLIB= |
| 14064 | KRB5LIB= |
| 14065 | DESLIB= |
| 14066 | KRB4LIB= |
| 14067 | |
| 14068 | if test "${with_kerberos}" != no; then |
| 14069 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 |
| 14070 | $as_echo_n "checking for com_err in -lcom_err... " >&6; } |
| 14071 | if test "${ac_cv_lib_com_err_com_err+set}" = set; then : |
| 14072 | $as_echo_n "(cached) " >&6 |
| 14073 | else |
| 14074 | ac_check_lib_save_LIBS=$LIBS |
| 14075 | LIBS="-lcom_err $LIBS" |
| 14076 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14077 | /* end confdefs.h. */ |
| 14078 | |
| 14079 | /* Override any GCC internal prototype to avoid an error. |
| 14080 | Use char because int might match the return type of a GCC |
| 14081 | builtin and then its argument prototype would still apply. */ |
| 14082 | #ifdef __cplusplus |
| 14083 | extern "C" |
| 14084 | #endif |
| 14085 | char com_err (); |
| 14086 | int |
| 14087 | main () |
| 14088 | { |
| 14089 | return com_err (); |
| 14090 | ; |
| 14091 | return 0; |
| 14092 | } |
| 14093 | _ACEOF |
| 14094 | if ac_fn_c_try_link "$LINENO"; then : |
| 14095 | ac_cv_lib_com_err_com_err=yes |
| 14096 | else |
| 14097 | ac_cv_lib_com_err_com_err=no |
| 14098 | fi |
| 14099 | rm -f core conftest.err conftest.$ac_objext \ |
| 14100 | conftest$ac_exeext conftest.$ac_ext |
| 14101 | LIBS=$ac_check_lib_save_LIBS |
| 14102 | fi |
| 14103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 |
| 14104 | $as_echo "$ac_cv_lib_com_err_com_err" >&6; } |
| 14105 | if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : |
| 14106 | have_com_err=yes |
| 14107 | else |
| 14108 | have_com_err=no |
| 14109 | fi |
| 14110 | |
| 14111 | if test $have_com_err = yes; then |
| 14112 | COM_ERRLIB=-lcom_err |
| 14113 | LIBS="$COM_ERRLIB $LIBS" |
| 14114 | |
| 14115 | $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h |
| 14116 | |
| 14117 | fi |
| 14118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 |
| 14119 | $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } |
| 14120 | if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : |
| 14121 | $as_echo_n "(cached) " >&6 |
| 14122 | else |
| 14123 | ac_check_lib_save_LIBS=$LIBS |
| 14124 | LIBS="-lcrypto $LIBS" |
| 14125 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14126 | /* end confdefs.h. */ |
| 14127 | |
| 14128 | /* Override any GCC internal prototype to avoid an error. |
| 14129 | Use char because int might match the return type of a GCC |
| 14130 | builtin and then its argument prototype would still apply. */ |
| 14131 | #ifdef __cplusplus |
| 14132 | extern "C" |
| 14133 | #endif |
| 14134 | char mit_des_cbc_encrypt (); |
| 14135 | int |
| 14136 | main () |
| 14137 | { |
| 14138 | return mit_des_cbc_encrypt (); |
| 14139 | ; |
| 14140 | return 0; |
| 14141 | } |
| 14142 | _ACEOF |
| 14143 | if ac_fn_c_try_link "$LINENO"; then : |
| 14144 | ac_cv_lib_crypto_mit_des_cbc_encrypt=yes |
| 14145 | else |
| 14146 | ac_cv_lib_crypto_mit_des_cbc_encrypt=no |
| 14147 | fi |
| 14148 | rm -f core conftest.err conftest.$ac_objext \ |
| 14149 | conftest$ac_exeext conftest.$ac_ext |
| 14150 | LIBS=$ac_check_lib_save_LIBS |
| 14151 | fi |
| 14152 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 |
| 14153 | $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } |
| 14154 | if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : |
| 14155 | have_crypto=yes |
| 14156 | else |
| 14157 | have_crypto=no |
| 14158 | fi |
| 14159 | |
| 14160 | if test $have_crypto = yes; then |
| 14161 | CRYPTOLIB=-lcrypto |
| 14162 | LIBS="$CRYPTOLIB $LIBS" |
| 14163 | |
| 14164 | $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h |
| 14165 | |
| 14166 | fi |
| 14167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 |
| 14168 | $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } |
| 14169 | if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : |
| 14170 | $as_echo_n "(cached) " >&6 |
| 14171 | else |
| 14172 | ac_check_lib_save_LIBS=$LIBS |
| 14173 | LIBS="-lk5crypto $LIBS" |
| 14174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14175 | /* end confdefs.h. */ |
| 14176 | |
| 14177 | /* Override any GCC internal prototype to avoid an error. |
| 14178 | Use char because int might match the return type of a GCC |
| 14179 | builtin and then its argument prototype would still apply. */ |
| 14180 | #ifdef __cplusplus |
| 14181 | extern "C" |
| 14182 | #endif |
| 14183 | char mit_des_cbc_encrypt (); |
| 14184 | int |
| 14185 | main () |
| 14186 | { |
| 14187 | return mit_des_cbc_encrypt (); |
| 14188 | ; |
| 14189 | return 0; |
| 14190 | } |
| 14191 | _ACEOF |
| 14192 | if ac_fn_c_try_link "$LINENO"; then : |
| 14193 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes |
| 14194 | else |
| 14195 | ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no |
| 14196 | fi |
| 14197 | rm -f core conftest.err conftest.$ac_objext \ |
| 14198 | conftest$ac_exeext conftest.$ac_ext |
| 14199 | LIBS=$ac_check_lib_save_LIBS |
| 14200 | fi |
| 14201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 |
| 14202 | $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } |
| 14203 | if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : |
| 14204 | have_k5crypto=yes |
| 14205 | else |
| 14206 | have_k5crypto=no |
| 14207 | fi |
| 14208 | |
| 14209 | if test $have_k5crypto = yes; then |
| 14210 | CRYPTOLIB=-lk5crypto |
| 14211 | LIBS="$CRYPTOLIB $LIBS" |
| 14212 | |
| 14213 | $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h |
| 14214 | |
| 14215 | fi |
| 14216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 |
| 14217 | $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } |
| 14218 | if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : |
| 14219 | $as_echo_n "(cached) " >&6 |
| 14220 | else |
| 14221 | ac_check_lib_save_LIBS=$LIBS |
| 14222 | LIBS="-lkrb5 $LIBS" |
| 14223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14224 | /* end confdefs.h. */ |
| 14225 | |
| 14226 | /* Override any GCC internal prototype to avoid an error. |
| 14227 | Use char because int might match the return type of a GCC |
| 14228 | builtin and then its argument prototype would still apply. */ |
| 14229 | #ifdef __cplusplus |
| 14230 | extern "C" |
| 14231 | #endif |
| 14232 | char krb5_init_context (); |
| 14233 | int |
| 14234 | main () |
| 14235 | { |
| 14236 | return krb5_init_context (); |
| 14237 | ; |
| 14238 | return 0; |
| 14239 | } |
| 14240 | _ACEOF |
| 14241 | if ac_fn_c_try_link "$LINENO"; then : |
| 14242 | ac_cv_lib_krb5_krb5_init_context=yes |
| 14243 | else |
| 14244 | ac_cv_lib_krb5_krb5_init_context=no |
| 14245 | fi |
| 14246 | rm -f core conftest.err conftest.$ac_objext \ |
| 14247 | conftest$ac_exeext conftest.$ac_ext |
| 14248 | LIBS=$ac_check_lib_save_LIBS |
| 14249 | fi |
| 14250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 |
| 14251 | $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } |
| 14252 | if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : |
| 14253 | have_krb5=yes |
| 14254 | else |
| 14255 | have_krb5=no |
| 14256 | fi |
| 14257 | |
| 14258 | if test $have_krb5=yes; then |
| 14259 | KRB5LIB=-lkrb5 |
| 14260 | LIBS="$KRB5LIB $LIBS" |
| 14261 | |
| 14262 | $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h |
| 14263 | |
| 14264 | fi |
| 14265 | if test "${with_kerberos5}" = no; then |
| 14266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 |
| 14267 | $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } |
| 14268 | if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : |
| 14269 | $as_echo_n "(cached) " >&6 |
| 14270 | else |
| 14271 | ac_check_lib_save_LIBS=$LIBS |
| 14272 | LIBS="-ldes425 $LIBS" |
| 14273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14274 | /* end confdefs.h. */ |
| 14275 | |
| 14276 | /* Override any GCC internal prototype to avoid an error. |
| 14277 | Use char because int might match the return type of a GCC |
| 14278 | builtin and then its argument prototype would still apply. */ |
| 14279 | #ifdef __cplusplus |
| 14280 | extern "C" |
| 14281 | #endif |
| 14282 | char des_cbc_encrypt (); |
| 14283 | int |
| 14284 | main () |
| 14285 | { |
| 14286 | return des_cbc_encrypt (); |
| 14287 | ; |
| 14288 | return 0; |
| 14289 | } |
| 14290 | _ACEOF |
| 14291 | if ac_fn_c_try_link "$LINENO"; then : |
| 14292 | ac_cv_lib_des425_des_cbc_encrypt=yes |
| 14293 | else |
| 14294 | ac_cv_lib_des425_des_cbc_encrypt=no |
| 14295 | fi |
| 14296 | rm -f core conftest.err conftest.$ac_objext \ |
| 14297 | conftest$ac_exeext conftest.$ac_ext |
| 14298 | LIBS=$ac_check_lib_save_LIBS |
| 14299 | fi |
| 14300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 |
| 14301 | $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } |
| 14302 | if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : |
| 14303 | have_des425=yes |
| 14304 | else |
| 14305 | have_des425=no |
| 14306 | fi |
| 14307 | |
| 14308 | if test $have_des425 = yes; then |
| 14309 | DESLIB=-ldes425 |
| 14310 | LIBS="$DESLIB $LIBS" |
| 14311 | |
| 14312 | $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h |
| 14313 | |
| 14314 | else |
| 14315 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 |
| 14316 | $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } |
| 14317 | if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : |
| 14318 | $as_echo_n "(cached) " >&6 |
| 14319 | else |
| 14320 | ac_check_lib_save_LIBS=$LIBS |
| 14321 | LIBS="-ldes $LIBS" |
| 14322 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14323 | /* end confdefs.h. */ |
| 14324 | |
| 14325 | /* Override any GCC internal prototype to avoid an error. |
| 14326 | Use char because int might match the return type of a GCC |
| 14327 | builtin and then its argument prototype would still apply. */ |
| 14328 | #ifdef __cplusplus |
| 14329 | extern "C" |
| 14330 | #endif |
| 14331 | char des_cbc_encrypt (); |
| 14332 | int |
| 14333 | main () |
| 14334 | { |
| 14335 | return des_cbc_encrypt (); |
| 14336 | ; |
| 14337 | return 0; |
| 14338 | } |
| 14339 | _ACEOF |
| 14340 | if ac_fn_c_try_link "$LINENO"; then : |
| 14341 | ac_cv_lib_des_des_cbc_encrypt=yes |
| 14342 | else |
| 14343 | ac_cv_lib_des_des_cbc_encrypt=no |
| 14344 | fi |
| 14345 | rm -f core conftest.err conftest.$ac_objext \ |
| 14346 | conftest$ac_exeext conftest.$ac_ext |
| 14347 | LIBS=$ac_check_lib_save_LIBS |
| 14348 | fi |
| 14349 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 |
| 14350 | $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } |
| 14351 | if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : |
| 14352 | have_des=yes |
| 14353 | else |
| 14354 | have_des=no |
| 14355 | fi |
| 14356 | |
| 14357 | if test $have_des = yes; then |
| 14358 | DESLIB=-ldes |
| 14359 | LIBS="$DESLIB $LIBS" |
| 14360 | |
| 14361 | $as_echo "#define HAVE_LIBDES 1" >>confdefs.h |
| 14362 | |
| 14363 | fi |
| 14364 | fi |
| 14365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 |
| 14366 | $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } |
| 14367 | if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : |
| 14368 | $as_echo_n "(cached) " >&6 |
| 14369 | else |
| 14370 | ac_check_lib_save_LIBS=$LIBS |
| 14371 | LIBS="-lkrb4 $LIBS" |
| 14372 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14373 | /* end confdefs.h. */ |
| 14374 | |
| 14375 | /* Override any GCC internal prototype to avoid an error. |
| 14376 | Use char because int might match the return type of a GCC |
| 14377 | builtin and then its argument prototype would still apply. */ |
| 14378 | #ifdef __cplusplus |
| 14379 | extern "C" |
| 14380 | #endif |
| 14381 | char krb_get_cred (); |
| 14382 | int |
| 14383 | main () |
| 14384 | { |
| 14385 | return krb_get_cred (); |
| 14386 | ; |
| 14387 | return 0; |
| 14388 | } |
| 14389 | _ACEOF |
| 14390 | if ac_fn_c_try_link "$LINENO"; then : |
| 14391 | ac_cv_lib_krb4_krb_get_cred=yes |
| 14392 | else |
| 14393 | ac_cv_lib_krb4_krb_get_cred=no |
| 14394 | fi |
| 14395 | rm -f core conftest.err conftest.$ac_objext \ |
| 14396 | conftest$ac_exeext conftest.$ac_ext |
| 14397 | LIBS=$ac_check_lib_save_LIBS |
| 14398 | fi |
| 14399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 |
| 14400 | $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } |
| 14401 | if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : |
| 14402 | have_krb4=yes |
| 14403 | else |
| 14404 | have_krb4=no |
| 14405 | fi |
| 14406 | |
| 14407 | if test $have_krb4 = yes; then |
| 14408 | KRB4LIB=-lkrb4 |
| 14409 | LIBS="$KRB4LIB $LIBS" |
| 14410 | |
| 14411 | $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h |
| 14412 | |
| 14413 | else |
| 14414 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 |
| 14415 | $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } |
| 14416 | if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : |
| 14417 | $as_echo_n "(cached) " >&6 |
| 14418 | else |
| 14419 | ac_check_lib_save_LIBS=$LIBS |
| 14420 | LIBS="-lkrb $LIBS" |
| 14421 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14422 | /* end confdefs.h. */ |
| 14423 | |
| 14424 | /* Override any GCC internal prototype to avoid an error. |
| 14425 | Use char because int might match the return type of a GCC |
| 14426 | builtin and then its argument prototype would still apply. */ |
| 14427 | #ifdef __cplusplus |
| 14428 | extern "C" |
| 14429 | #endif |
| 14430 | char krb_get_cred (); |
| 14431 | int |
| 14432 | main () |
| 14433 | { |
| 14434 | return krb_get_cred (); |
| 14435 | ; |
| 14436 | return 0; |
| 14437 | } |
| 14438 | _ACEOF |
| 14439 | if ac_fn_c_try_link "$LINENO"; then : |
| 14440 | ac_cv_lib_krb_krb_get_cred=yes |
| 14441 | else |
| 14442 | ac_cv_lib_krb_krb_get_cred=no |
| 14443 | fi |
| 14444 | rm -f core conftest.err conftest.$ac_objext \ |
| 14445 | conftest$ac_exeext conftest.$ac_ext |
| 14446 | LIBS=$ac_check_lib_save_LIBS |
| 14447 | fi |
| 14448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 |
| 14449 | $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } |
| 14450 | if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : |
| 14451 | have_krb=yes |
| 14452 | else |
| 14453 | have_krb=no |
| 14454 | fi |
| 14455 | |
| 14456 | if test $have_krb = yes; then |
| 14457 | KRB4LIB=-lkrb |
| 14458 | LIBS="$KRB4LIB $LIBS" |
| 14459 | |
| 14460 | $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h |
| 14461 | |
| 14462 | fi |
| 14463 | fi |
| 14464 | fi |
| 14465 | |
| 14466 | if test "${with_kerberos5}" != no; then |
| 14467 | for ac_header in krb5.h |
| 14468 | do : |
| 14469 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" |
| 14470 | if test "x$ac_cv_header_krb5_h" = x""yes; then : |
| 14471 | cat >>confdefs.h <<_ACEOF |
| 14472 | #define HAVE_KRB5_H 1 |
| 14473 | _ACEOF |
| 14474 | ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> |
| 14475 | " |
| 14476 | if test "x$ac_cv_member_krb5_error_text" = x""yes; then : |
| 14477 | |
| 14478 | cat >>confdefs.h <<_ACEOF |
| 14479 | #define HAVE_KRB5_ERROR_TEXT 1 |
| 14480 | _ACEOF |
| 14481 | |
| 14482 | |
| 14483 | fi |
| 14484 | ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> |
| 14485 | " |
| 14486 | if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : |
| 14487 | |
| 14488 | cat >>confdefs.h <<_ACEOF |
| 14489 | #define HAVE_KRB5_ERROR_E_TEXT 1 |
| 14490 | _ACEOF |
| 14491 | |
| 14492 | |
| 14493 | fi |
| 14494 | |
| 14495 | fi |
| 14496 | |
| 14497 | done |
| 14498 | |
| 14499 | else |
| 14500 | for ac_header in des.h |
| 14501 | do : |
| 14502 | ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" |
| 14503 | if test "x$ac_cv_header_des_h" = x""yes; then : |
| 14504 | cat >>confdefs.h <<_ACEOF |
| 14505 | #define HAVE_DES_H 1 |
| 14506 | _ACEOF |
| 14507 | |
| 14508 | else |
| 14509 | for ac_header in kerberosIV/des.h |
| 14510 | do : |
| 14511 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" |
| 14512 | if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : |
| 14513 | cat >>confdefs.h <<_ACEOF |
| 14514 | #define HAVE_KERBEROSIV_DES_H 1 |
| 14515 | _ACEOF |
| 14516 | |
| 14517 | else |
| 14518 | for ac_header in kerberos/des.h |
| 14519 | do : |
| 14520 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" |
| 14521 | if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : |
| 14522 | cat >>confdefs.h <<_ACEOF |
| 14523 | #define HAVE_KERBEROS_DES_H 1 |
| 14524 | _ACEOF |
| 14525 | |
| 14526 | fi |
| 14527 | |
| 14528 | done |
| 14529 | |
| 14530 | fi |
| 14531 | |
| 14532 | done |
| 14533 | |
| 14534 | fi |
| 14535 | |
| 14536 | done |
| 14537 | |
| 14538 | for ac_header in krb.h |
| 14539 | do : |
| 14540 | ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" |
| 14541 | if test "x$ac_cv_header_krb_h" = x""yes; then : |
| 14542 | cat >>confdefs.h <<_ACEOF |
| 14543 | #define HAVE_KRB_H 1 |
| 14544 | _ACEOF |
| 14545 | |
| 14546 | else |
| 14547 | for ac_header in kerberosIV/krb.h |
| 14548 | do : |
| 14549 | ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" |
| 14550 | if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : |
| 14551 | cat >>confdefs.h <<_ACEOF |
| 14552 | #define HAVE_KERBEROSIV_KRB_H 1 |
| 14553 | _ACEOF |
| 14554 | |
| 14555 | else |
| 14556 | for ac_header in kerberos/krb.h |
| 14557 | do : |
| 14558 | ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" |
| 14559 | if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : |
| 14560 | cat >>confdefs.h <<_ACEOF |
| 14561 | #define HAVE_KERBEROS_KRB_H 1 |
| 14562 | _ACEOF |
| 14563 | |
| 14564 | fi |
| 14565 | |
| 14566 | done |
| 14567 | |
| 14568 | fi |
| 14569 | |
| 14570 | done |
| 14571 | |
| 14572 | fi |
| 14573 | |
| 14574 | done |
| 14575 | |
| 14576 | fi |
| 14577 | for ac_header in com_err.h |
| 14578 | do : |
| 14579 | ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" |
| 14580 | if test "x$ac_cv_header_com_err_h" = x""yes; then : |
| 14581 | cat >>confdefs.h <<_ACEOF |
| 14582 | #define HAVE_COM_ERR_H 1 |
| 14583 | _ACEOF |
| 14584 | |
| 14585 | fi |
| 14586 | |
| 14587 | done |
| 14588 | |
| 14589 | fi |
| 14590 | |
| 14591 | |
| 14592 | |
| 14593 | |
| 14594 | |
| 14595 | |
| 14596 | |
| 14597 | |
| 14598 | |
| 14599 | |
| 14600 | for ac_func in $ac_func_list |
| 14601 | do : |
| 14602 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14603 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 14604 | eval as_val=\$$as_ac_var |
| 14605 | if test "x$as_val" = x""yes; then : |
| 14606 | cat >>confdefs.h <<_ACEOF |
| 14607 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14608 | _ACEOF |
| 14609 | |
| 14610 | fi |
| 14611 | done |
| 14612 | |
| 14613 | |
| 14614 | |
| 14615 | |
| 14616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 |
| 14617 | $as_echo_n "checking whether localtime caches TZ... " >&6; } |
| 14618 | if test "${emacs_cv_localtime_cache+set}" = set; then : |
| 14619 | $as_echo_n "(cached) " >&6 |
| 14620 | else |
| 14621 | if test x$ac_cv_func_tzset = xyes; then |
| 14622 | if test "$cross_compiling" = yes; then : |
| 14623 | # If we have tzset, assume the worst when cross-compiling. |
| 14624 | emacs_cv_localtime_cache=yes |
| 14625 | else |
| 14626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14627 | /* end confdefs.h. */ |
| 14628 | #include <time.h> |
| 14629 | char TZ_GMT0[] = "TZ=GMT0"; |
| 14630 | char TZ_PST8[] = "TZ=PST8"; |
| 14631 | main() |
| 14632 | { |
| 14633 | time_t now = time ((time_t *) 0); |
| 14634 | int hour_GMT0, hour_unset; |
| 14635 | if (putenv (TZ_GMT0) != 0) |
| 14636 | exit (1); |
| 14637 | hour_GMT0 = localtime (&now)->tm_hour; |
| 14638 | unsetenv("TZ"); |
| 14639 | hour_unset = localtime (&now)->tm_hour; |
| 14640 | if (putenv (TZ_PST8) != 0) |
| 14641 | exit (1); |
| 14642 | if (localtime (&now)->tm_hour == hour_GMT0) |
| 14643 | exit (1); |
| 14644 | unsetenv("TZ"); |
| 14645 | if (localtime (&now)->tm_hour != hour_unset) |
| 14646 | exit (1); |
| 14647 | exit (0); |
| 14648 | } |
| 14649 | _ACEOF |
| 14650 | if ac_fn_c_try_run "$LINENO"; then : |
| 14651 | emacs_cv_localtime_cache=no |
| 14652 | else |
| 14653 | emacs_cv_localtime_cache=yes |
| 14654 | fi |
| 14655 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14656 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14657 | fi |
| 14658 | |
| 14659 | else |
| 14660 | # If we lack tzset, report that localtime does not cache TZ, |
| 14661 | # since we can't invalidate the cache if we don't have tzset. |
| 14662 | emacs_cv_localtime_cache=no |
| 14663 | fi |
| 14664 | fi |
| 14665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 |
| 14666 | $as_echo "$emacs_cv_localtime_cache" >&6; } |
| 14667 | if test $emacs_cv_localtime_cache = yes; then |
| 14668 | |
| 14669 | $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h |
| 14670 | |
| 14671 | fi |
| 14672 | |
| 14673 | ok_so_far=yes |
| 14674 | ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" |
| 14675 | if test "x$ac_cv_func_socket" = x""yes; then : |
| 14676 | |
| 14677 | else |
| 14678 | ok_so_far=no |
| 14679 | fi |
| 14680 | |
| 14681 | if test $ok_so_far = yes; then |
| 14682 | ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" |
| 14683 | if test "x$ac_cv_header_netinet_in_h" = x""yes; then : |
| 14684 | |
| 14685 | else |
| 14686 | ok_so_far=no |
| 14687 | fi |
| 14688 | |
| 14689 | |
| 14690 | fi |
| 14691 | if test $ok_so_far = yes; then |
| 14692 | ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" |
| 14693 | if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : |
| 14694 | |
| 14695 | else |
| 14696 | ok_so_far=no |
| 14697 | fi |
| 14698 | |
| 14699 | |
| 14700 | fi |
| 14701 | if test $ok_so_far = yes; then |
| 14702 | |
| 14703 | $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h |
| 14704 | |
| 14705 | fi |
| 14706 | |
| 14707 | if test -f /usr/lpp/X11/bin/smt.exp; then |
| 14708 | |
| 14709 | $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h |
| 14710 | |
| 14711 | fi |
| 14712 | |
| 14713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 |
| 14714 | $as_echo_n "checking whether system supports dynamic ptys... " >&6; } |
| 14715 | if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then |
| 14716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 14717 | $as_echo "yes" >&6; } |
| 14718 | |
| 14719 | $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h |
| 14720 | |
| 14721 | else |
| 14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 14723 | $as_echo "no" >&6; } |
| 14724 | fi |
| 14725 | |
| 14726 | case $canonical in |
| 14727 | *-solaris2.4 | *-solaris2.4.*) |
| 14728 | : ${ac_cv_func_vfork_works=no};; |
| 14729 | esac |
| 14730 | |
| 14731 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" |
| 14732 | if test "x$ac_cv_type_pid_t" = x""yes; then : |
| 14733 | |
| 14734 | else |
| 14735 | |
| 14736 | cat >>confdefs.h <<_ACEOF |
| 14737 | #define pid_t int |
| 14738 | _ACEOF |
| 14739 | |
| 14740 | fi |
| 14741 | |
| 14742 | for ac_header in vfork.h |
| 14743 | do : |
| 14744 | ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" |
| 14745 | if test "x$ac_cv_header_vfork_h" = x""yes; then : |
| 14746 | cat >>confdefs.h <<_ACEOF |
| 14747 | #define HAVE_VFORK_H 1 |
| 14748 | _ACEOF |
| 14749 | |
| 14750 | fi |
| 14751 | |
| 14752 | done |
| 14753 | |
| 14754 | for ac_func in fork vfork |
| 14755 | do : |
| 14756 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 14757 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 14758 | eval as_val=\$$as_ac_var |
| 14759 | if test "x$as_val" = x""yes; then : |
| 14760 | cat >>confdefs.h <<_ACEOF |
| 14761 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 14762 | _ACEOF |
| 14763 | |
| 14764 | fi |
| 14765 | done |
| 14766 | |
| 14767 | if test "x$ac_cv_func_fork" = xyes; then |
| 14768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 |
| 14769 | $as_echo_n "checking for working fork... " >&6; } |
| 14770 | if test "${ac_cv_func_fork_works+set}" = set; then : |
| 14771 | $as_echo_n "(cached) " >&6 |
| 14772 | else |
| 14773 | if test "$cross_compiling" = yes; then : |
| 14774 | ac_cv_func_fork_works=cross |
| 14775 | else |
| 14776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14777 | /* end confdefs.h. */ |
| 14778 | $ac_includes_default |
| 14779 | int |
| 14780 | main () |
| 14781 | { |
| 14782 | |
| 14783 | /* By Ruediger Kuhlmann. */ |
| 14784 | return fork () < 0; |
| 14785 | |
| 14786 | ; |
| 14787 | return 0; |
| 14788 | } |
| 14789 | _ACEOF |
| 14790 | if ac_fn_c_try_run "$LINENO"; then : |
| 14791 | ac_cv_func_fork_works=yes |
| 14792 | else |
| 14793 | ac_cv_func_fork_works=no |
| 14794 | fi |
| 14795 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14796 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14797 | fi |
| 14798 | |
| 14799 | fi |
| 14800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 |
| 14801 | $as_echo "$ac_cv_func_fork_works" >&6; } |
| 14802 | |
| 14803 | else |
| 14804 | ac_cv_func_fork_works=$ac_cv_func_fork |
| 14805 | fi |
| 14806 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 14807 | case $host in |
| 14808 | *-*-amigaos* | *-*-msdosdjgpp*) |
| 14809 | # Override, as these systems have only a dummy fork() stub |
| 14810 | ac_cv_func_fork_works=no |
| 14811 | ;; |
| 14812 | *) |
| 14813 | ac_cv_func_fork_works=yes |
| 14814 | ;; |
| 14815 | esac |
| 14816 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 |
| 14817 | $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} |
| 14818 | fi |
| 14819 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 14820 | if test "x$ac_cv_func_vfork" = xyes; then |
| 14821 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 |
| 14822 | $as_echo_n "checking for working vfork... " >&6; } |
| 14823 | if test "${ac_cv_func_vfork_works+set}" = set; then : |
| 14824 | $as_echo_n "(cached) " >&6 |
| 14825 | else |
| 14826 | if test "$cross_compiling" = yes; then : |
| 14827 | ac_cv_func_vfork_works=cross |
| 14828 | else |
| 14829 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14830 | /* end confdefs.h. */ |
| 14831 | /* Thanks to Paul Eggert for this test. */ |
| 14832 | $ac_includes_default |
| 14833 | #include <sys/wait.h> |
| 14834 | #ifdef HAVE_VFORK_H |
| 14835 | # include <vfork.h> |
| 14836 | #endif |
| 14837 | /* On some sparc systems, changes by the child to local and incoming |
| 14838 | argument registers are propagated back to the parent. The compiler |
| 14839 | is told about this with #include <vfork.h>, but some compilers |
| 14840 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a |
| 14841 | static variable whose address is put into a register that is |
| 14842 | clobbered by the vfork. */ |
| 14843 | static void |
| 14844 | #ifdef __cplusplus |
| 14845 | sparc_address_test (int arg) |
| 14846 | # else |
| 14847 | sparc_address_test (arg) int arg; |
| 14848 | #endif |
| 14849 | { |
| 14850 | static pid_t child; |
| 14851 | if (!child) { |
| 14852 | child = vfork (); |
| 14853 | if (child < 0) { |
| 14854 | perror ("vfork"); |
| 14855 | _exit(2); |
| 14856 | } |
| 14857 | if (!child) { |
| 14858 | arg = getpid(); |
| 14859 | write(-1, "", 0); |
| 14860 | _exit (arg); |
| 14861 | } |
| 14862 | } |
| 14863 | } |
| 14864 | |
| 14865 | int |
| 14866 | main () |
| 14867 | { |
| 14868 | pid_t parent = getpid (); |
| 14869 | pid_t child; |
| 14870 | |
| 14871 | sparc_address_test (0); |
| 14872 | |
| 14873 | child = vfork (); |
| 14874 | |
| 14875 | if (child == 0) { |
| 14876 | /* Here is another test for sparc vfork register problems. This |
| 14877 | test uses lots of local variables, at least as many local |
| 14878 | variables as main has allocated so far including compiler |
| 14879 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris |
| 14880 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should |
| 14881 | reuse the register of parent for one of the local variables, |
| 14882 | since it will think that parent can't possibly be used any more |
| 14883 | in this routine. Assigning to the local variable will thus |
| 14884 | munge parent in the parent process. */ |
| 14885 | pid_t |
| 14886 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), |
| 14887 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); |
| 14888 | /* Convince the compiler that p..p7 are live; otherwise, it might |
| 14889 | use the same hardware register for all 8 local variables. */ |
| 14890 | if (p != p1 || p != p2 || p != p3 || p != p4 |
| 14891 | || p != p5 || p != p6 || p != p7) |
| 14892 | _exit(1); |
| 14893 | |
| 14894 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent |
| 14895 | from child file descriptors. If the child closes a descriptor |
| 14896 | before it execs or exits, this munges the parent's descriptor |
| 14897 | as well. Test for this by closing stdout in the child. */ |
| 14898 | _exit(close(fileno(stdout)) != 0); |
| 14899 | } else { |
| 14900 | int status; |
| 14901 | struct stat st; |
| 14902 | |
| 14903 | while (wait(&status) != child) |
| 14904 | ; |
| 14905 | return ( |
| 14906 | /* Was there some problem with vforking? */ |
| 14907 | child < 0 |
| 14908 | |
| 14909 | /* Did the child fail? (This shouldn't happen.) */ |
| 14910 | || status |
| 14911 | |
| 14912 | /* Did the vfork/compiler bug occur? */ |
| 14913 | || parent != getpid() |
| 14914 | |
| 14915 | /* Did the file descriptor bug occur? */ |
| 14916 | || fstat(fileno(stdout), &st) != 0 |
| 14917 | ); |
| 14918 | } |
| 14919 | } |
| 14920 | _ACEOF |
| 14921 | if ac_fn_c_try_run "$LINENO"; then : |
| 14922 | ac_cv_func_vfork_works=yes |
| 14923 | else |
| 14924 | ac_cv_func_vfork_works=no |
| 14925 | fi |
| 14926 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 14927 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 14928 | fi |
| 14929 | |
| 14930 | fi |
| 14931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 |
| 14932 | $as_echo "$ac_cv_func_vfork_works" >&6; } |
| 14933 | |
| 14934 | fi; |
| 14935 | if test "x$ac_cv_func_fork_works" = xcross; then |
| 14936 | ac_cv_func_vfork_works=$ac_cv_func_vfork |
| 14937 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 |
| 14938 | $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} |
| 14939 | fi |
| 14940 | |
| 14941 | if test "x$ac_cv_func_vfork_works" = xyes; then |
| 14942 | |
| 14943 | $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h |
| 14944 | |
| 14945 | else |
| 14946 | |
| 14947 | $as_echo "#define vfork fork" >>confdefs.h |
| 14948 | |
| 14949 | fi |
| 14950 | if test "x$ac_cv_func_fork_works" = xyes; then |
| 14951 | |
| 14952 | $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h |
| 14953 | |
| 14954 | fi |
| 14955 | |
| 14956 | |
| 14957 | for ac_func in snprintf |
| 14958 | do : |
| 14959 | ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" |
| 14960 | if test "x$ac_cv_func_snprintf" = x""yes; then : |
| 14961 | cat >>confdefs.h <<_ACEOF |
| 14962 | #define HAVE_SNPRINTF 1 |
| 14963 | _ACEOF |
| 14964 | |
| 14965 | fi |
| 14966 | done |
| 14967 | |
| 14968 | |
| 14969 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
| 14970 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
| 14971 | if test "${emacs_cv_langinfo_codeset+set}" = set; then : |
| 14972 | $as_echo_n "(cached) " >&6 |
| 14973 | else |
| 14974 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 14975 | /* end confdefs.h. */ |
| 14976 | #include <langinfo.h> |
| 14977 | int |
| 14978 | main () |
| 14979 | { |
| 14980 | char* cs = nl_langinfo(CODESET); |
| 14981 | ; |
| 14982 | return 0; |
| 14983 | } |
| 14984 | _ACEOF |
| 14985 | if ac_fn_c_try_link "$LINENO"; then : |
| 14986 | emacs_cv_langinfo_codeset=yes |
| 14987 | else |
| 14988 | emacs_cv_langinfo_codeset=no |
| 14989 | fi |
| 14990 | rm -f core conftest.err conftest.$ac_objext \ |
| 14991 | conftest$ac_exeext conftest.$ac_ext |
| 14992 | |
| 14993 | fi |
| 14994 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 |
| 14995 | $as_echo "$emacs_cv_langinfo_codeset" >&6; } |
| 14996 | if test $emacs_cv_langinfo_codeset = yes; then |
| 14997 | |
| 14998 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
| 14999 | |
| 15000 | fi |
| 15001 | |
| 15002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 |
| 15003 | $as_echo_n "checking for mbstate_t... " >&6; } |
| 15004 | if test "${ac_cv_type_mbstate_t+set}" = set; then : |
| 15005 | $as_echo_n "(cached) " >&6 |
| 15006 | else |
| 15007 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15008 | /* end confdefs.h. */ |
| 15009 | $ac_includes_default |
| 15010 | # include <wchar.h> |
| 15011 | int |
| 15012 | main () |
| 15013 | { |
| 15014 | mbstate_t x; return sizeof x; |
| 15015 | ; |
| 15016 | return 0; |
| 15017 | } |
| 15018 | _ACEOF |
| 15019 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15020 | ac_cv_type_mbstate_t=yes |
| 15021 | else |
| 15022 | ac_cv_type_mbstate_t=no |
| 15023 | fi |
| 15024 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15025 | fi |
| 15026 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 |
| 15027 | $as_echo "$ac_cv_type_mbstate_t" >&6; } |
| 15028 | if test $ac_cv_type_mbstate_t = yes; then |
| 15029 | |
| 15030 | $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h |
| 15031 | |
| 15032 | else |
| 15033 | |
| 15034 | $as_echo "#define mbstate_t int" >>confdefs.h |
| 15035 | |
| 15036 | fi |
| 15037 | |
| 15038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 |
| 15039 | $as_echo_n "checking for C restricted array declarations... " >&6; } |
| 15040 | if test "${emacs_cv_c_restrict_arr+set}" = set; then : |
| 15041 | $as_echo_n "(cached) " >&6 |
| 15042 | else |
| 15043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15044 | /* end confdefs.h. */ |
| 15045 | void fred (int x[__restrict]); |
| 15046 | int |
| 15047 | main () |
| 15048 | { |
| 15049 | |
| 15050 | ; |
| 15051 | return 0; |
| 15052 | } |
| 15053 | _ACEOF |
| 15054 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15055 | emacs_cv_c_restrict_arr=yes |
| 15056 | else |
| 15057 | emacs_cv_c_restrict_arr=no |
| 15058 | fi |
| 15059 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15060 | fi |
| 15061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 |
| 15062 | $as_echo "$emacs_cv_c_restrict_arr" >&6; } |
| 15063 | if test "$emacs_cv_c_restrict_arr" = yes; then |
| 15064 | |
| 15065 | $as_echo "#define __restrict_arr __restrict" >>confdefs.h |
| 15066 | |
| 15067 | fi |
| 15068 | |
| 15069 | |
| 15070 | |
| 15071 | $as_echo "#define AMPERSAND_FULL_NAME 1" >>confdefs.h |
| 15072 | |
| 15073 | |
| 15074 | |
| 15075 | $as_echo "#define CLASH_DETECTION 1" >>confdefs.h |
| 15076 | |
| 15077 | |
| 15078 | ## Note: PTYs are broken on darwin <6. Use at your own risk. |
| 15079 | |
| 15080 | $as_echo "#define HAVE_PTYS 1" >>confdefs.h |
| 15081 | |
| 15082 | |
| 15083 | |
| 15084 | $as_echo "#define HAVE_SOCKETS 1" >>confdefs.h |
| 15085 | |
| 15086 | |
| 15087 | |
| 15088 | |
| 15089 | |
| 15090 | $as_echo "#define NULL_DEVICE \"/dev/null\"" >>confdefs.h |
| 15091 | |
| 15092 | |
| 15093 | |
| 15094 | $as_echo "#define SEPCHAR ':'" >>confdefs.h |
| 15095 | |
| 15096 | |
| 15097 | |
| 15098 | $as_echo "#define subprocesses 1" >>confdefs.h |
| 15099 | |
| 15100 | |
| 15101 | |
| 15102 | $as_echo "#define USER_FULL_NAME pw->pw_gecos" >>confdefs.h |
| 15103 | |
| 15104 | |
| 15105 | |
| 15106 | |
| 15107 | $as_echo "#define DIRECTORY_SEP '/'" >>confdefs.h |
| 15108 | |
| 15109 | |
| 15110 | |
| 15111 | |
| 15112 | |
| 15113 | $as_echo "#define IS_DEVICE_SEP(_c_) 0" >>confdefs.h |
| 15114 | |
| 15115 | |
| 15116 | |
| 15117 | $as_echo "#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)" >>confdefs.h |
| 15118 | |
| 15119 | |
| 15120 | |
| 15121 | $as_echo "#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))" >>confdefs.h |
| 15122 | |
| 15123 | |
| 15124 | |
| 15125 | |
| 15126 | |
| 15127 | case $opsys in |
| 15128 | aix4-2) |
| 15129 | if test x$ac_cv_lib_Xmu_XmuConvertStandardSelection != xyes; then |
| 15130 | $as_echo "#define NO_EDITRES 1" >>confdefs.h |
| 15131 | |
| 15132 | fi |
| 15133 | ;; |
| 15134 | |
| 15135 | hpux*) |
| 15136 | $as_echo "#define NO_EDITRES 1" >>confdefs.h |
| 15137 | |
| 15138 | ;; |
| 15139 | esac |
| 15140 | |
| 15141 | |
| 15142 | case $opsys in |
| 15143 | irix6-5 | sol2* | unixware ) |
| 15144 | |
| 15145 | $as_echo "#define NSIG_MINIMUM 32" >>confdefs.h |
| 15146 | |
| 15147 | ;; |
| 15148 | esac |
| 15149 | |
| 15150 | emacs_broken_SIGIO=no |
| 15151 | |
| 15152 | case $opsys in |
| 15153 | hpux* | irix6-5 | openbsd | sol2* | unixware ) |
| 15154 | emacs_broken_SIGIO=yes |
| 15155 | ;; |
| 15156 | |
| 15157 | aix4-2) |
| 15158 | |
| 15159 | $as_echo "#define BROKEN_GET_CURRENT_DIR_NAME 1" >>confdefs.h |
| 15160 | |
| 15161 | ;; |
| 15162 | |
| 15163 | freebsd) |
| 15164 | |
| 15165 | $as_echo "#define BROKEN_PTY_READ_AFTER_EAGAIN 1" >>confdefs.h |
| 15166 | |
| 15167 | ;; |
| 15168 | esac |
| 15169 | |
| 15170 | case $opsys in |
| 15171 | gnu-* | sol2-10 ) |
| 15172 | |
| 15173 | $as_echo "#define HAVE_PROCFS 1" >>confdefs.h |
| 15174 | |
| 15175 | ;; |
| 15176 | esac |
| 15177 | |
| 15178 | case $opsys in |
| 15179 | darwin | freebsd | netbsd | openbsd ) |
| 15180 | |
| 15181 | $as_echo "#define DONT_REOPEN_PTY 1" >>confdefs.h |
| 15182 | |
| 15183 | ;; |
| 15184 | esac |
| 15185 | |
| 15186 | case $opsys in |
| 15187 | netbsd | openbsd) sound_device="/dev/audio" ;; |
| 15188 | *) sound_device="/dev/dsp" ;; |
| 15189 | esac |
| 15190 | |
| 15191 | |
| 15192 | cat >>confdefs.h <<_ACEOF |
| 15193 | #define DEFAULT_SOUND_DEVICE "$sound_device" |
| 15194 | _ACEOF |
| 15195 | |
| 15196 | |
| 15197 | |
| 15198 | case $opsys in |
| 15199 | darwin | gnu-linux | gnu-kfreebsd ) |
| 15200 | |
| 15201 | $as_echo "#define INTERRUPT_INPUT 1" >>confdefs.h |
| 15202 | |
| 15203 | ;; |
| 15204 | esac |
| 15205 | |
| 15206 | |
| 15207 | case $opsys in |
| 15208 | cygwin|gnu|gnu-linux|gnu-kfreebsd|irix6-5|freebsd|netbsd|openbsd) |
| 15209 | |
| 15210 | $as_echo "#define NARROWPROTO 1" >>confdefs.h |
| 15211 | |
| 15212 | ;; |
| 15213 | esac |
| 15214 | |
| 15215 | |
| 15216 | |
| 15217 | |
| 15218 | |
| 15219 | |
| 15220 | |
| 15221 | |
| 15222 | case $opsys in |
| 15223 | aix4-2 ) |
| 15224 | $as_echo "#define PTY_ITERATION int c; for (c = 0; !c ; c++)" >>confdefs.h |
| 15225 | |
| 15226 | $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptc\");" >>confdefs.h |
| 15227 | |
| 15228 | $as_echo "#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));" >>confdefs.h |
| 15229 | |
| 15230 | ;; |
| 15231 | |
| 15232 | cygwin ) |
| 15233 | $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h |
| 15234 | |
| 15235 | $as_echo "#define PTY_OPEN do { int dummy; sigset_t blocked, procmask; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, &procmask); if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) fd = -1; pthread_sigmask (SIG_SETMASK, &procmask, 0); if (fd >= 0) emacs_close (dummy); } while (0)" >>confdefs.h |
| 15236 | |
| 15237 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15238 | |
| 15239 | $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15240 | |
| 15241 | ;; |
| 15242 | |
| 15243 | darwin ) |
| 15244 | $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h |
| 15245 | |
| 15246 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 15247 | |
| 15248 | $as_echo "#define PTY_OPEN do { int slave; if (openpty (&fd, &slave, pty_name, NULL, NULL) == -1) fd = -1; else emacs_close (slave); } while (0)" >>confdefs.h |
| 15249 | |
| 15250 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15251 | |
| 15252 | $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15253 | |
| 15254 | ;; |
| 15255 | |
| 15256 | gnu | openbsd ) |
| 15257 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 15258 | |
| 15259 | ;; |
| 15260 | |
| 15261 | gnu-linux | gnu-kfreebsd | freebsd | netbsd ) |
| 15262 | if test "x$ac_cv_func_grantpt" = xyes; then |
| 15263 | |
| 15264 | $as_echo "#define UNIX98_PTYS 1" >>confdefs.h |
| 15265 | |
| 15266 | $as_echo "#define PTY_ITERATION int i; for (i = 0; i < 1; i++)" >>confdefs.h |
| 15267 | |
| 15268 | $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptyname = 0; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); if (grantpt (fd) != -1 && unlockpt (fd) != -1) ptyname = ptsname(fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (!ptyname) { close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h |
| 15269 | |
| 15270 | if test "x$ac_cv_func_posix_openpt" = xyes; then |
| 15271 | $as_echo "#define PTY_OPEN fd = posix_openpt (O_RDWR | O_NOCTTY)" >>confdefs.h |
| 15272 | |
| 15273 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15274 | |
| 15275 | elif test "x$ac_cv_func_getpt" = xyes; then |
| 15276 | $as_echo "#define PTY_OPEN fd = getpt ()" >>confdefs.h |
| 15277 | |
| 15278 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15279 | |
| 15280 | else |
| 15281 | $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h |
| 15282 | |
| 15283 | fi |
| 15284 | else |
| 15285 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 15286 | |
| 15287 | fi |
| 15288 | ;; |
| 15289 | |
| 15290 | hpux*) |
| 15291 | $as_echo "#define FIRST_PTY_LETTER 'p'" >>confdefs.h |
| 15292 | |
| 15293 | $as_echo "#define PTY_NAME_SPRINTF sprintf (pty_name, \"/dev/ptym/pty%c%x\", c, i);" >>confdefs.h |
| 15294 | |
| 15295 | $as_echo "#define PTY_TTY_NAME_SPRINTF sprintf (pty_name, \"/dev/pty/tty%c%x\", c, i);" >>confdefs.h |
| 15296 | |
| 15297 | ;; |
| 15298 | |
| 15299 | irix6-5 ) |
| 15300 | $as_echo "#define PTY_ITERATION /**/" >>confdefs.h |
| 15301 | |
| 15302 | $as_echo "#define FIRST_PTY_LETTER 'q'" >>confdefs.h |
| 15303 | |
| 15304 | $as_echo "#define PTY_OPEN { struct sigaction ocstat, cstat; struct stat stb; char * name; sigemptyset(&cstat.sa_mask); cstat.sa_handler = SIG_DFL; cstat.sa_flags = 0; sigaction(SIGCHLD, &cstat, &ocstat); name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); sigaction(SIGCHLD, &ocstat, (struct sigaction *)0); if (name == 0) return -1; if (fd < 0) return -1; if (fstat (fd, &stb) < 0) return -1; strcpy (pty_name, name); }" >>confdefs.h |
| 15305 | |
| 15306 | $as_echo "#define PTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15307 | |
| 15308 | $as_echo "#define PTY_TTY_NAME_SPRINTF /**/" >>confdefs.h |
| 15309 | |
| 15310 | ;; |
| 15311 | |
| 15312 | sol2* ) |
| 15313 | $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1 || unlockpt (fd) == -1 || !(ptyname = ptsname (fd))) { emacs_close (fd); return -1; } snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h |
| 15314 | |
| 15315 | ;; |
| 15316 | |
| 15317 | unixware ) |
| 15318 | $as_echo "#define PTY_TTY_NAME_SPRINTF { char *ptsname (int), *ptyname; int grantpt_result; sigset_t blocked; sigemptyset (&blocked); sigaddset (&blocked, SIGCHLD); pthread_sigmask (SIG_BLOCK, &blocked, 0); grantpt_result = grantpt (fd); pthread_sigmask (SIG_UNBLOCK, &blocked, 0); if (grantpt_result == -1) fatal(\"could not grant slave pty\"); if (unlockpt(fd) == -1) fatal(\"could not unlock slave pty\"); if (!(ptyname = ptsname(fd))) fatal (\"could not enable slave pty\"); snprintf (pty_name, sizeof pty_name, \"%s\", ptyname); }" >>confdefs.h |
| 15319 | |
| 15320 | ;; |
| 15321 | esac |
| 15322 | |
| 15323 | |
| 15324 | case $opsys in |
| 15325 | sol2* | unixware ) |
| 15326 | $as_echo "#define FIRST_PTY_LETTER 'z'" >>confdefs.h |
| 15327 | |
| 15328 | $as_echo "#define PTY_NAME_SPRINTF strcpy (pty_name, \"/dev/ptmx\");" >>confdefs.h |
| 15329 | |
| 15330 | |
| 15331 | $as_echo "#define SETUP_SLAVE_PTY if (ioctl (xforkin, I_PUSH, \"ptem\") == -1) fatal (\"ioctl I_PUSH ptem\"); if (ioctl (xforkin, I_PUSH, \"ldterm\") == -1) fatal (\"ioctl I_PUSH ldterm\"); if (ioctl (xforkin, I_PUSH, \"ttcompat\") == -1) fatal (\"ioctl I_PUSH ttcompat\");" >>confdefs.h |
| 15332 | |
| 15333 | ;; |
| 15334 | esac |
| 15335 | |
| 15336 | |
| 15337 | |
| 15338 | |
| 15339 | case $opsys in |
| 15340 | aix4-2 | cygwin | gnu | irix6-5 | freebsd | netbsd | openbsd ) |
| 15341 | $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h |
| 15342 | |
| 15343 | ;; |
| 15344 | |
| 15345 | gnu-linux | gnu-kfreebsd ) |
| 15346 | |
| 15347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signals via characters" >&5 |
| 15348 | $as_echo_n "checking for signals via characters... " >&6; } |
| 15349 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15350 | /* end confdefs.h. */ |
| 15351 | |
| 15352 | #include <linux/version.h> |
| 15353 | #if LINUX_VERSION_CODE < 0x20400 |
| 15354 | # error "Linux version too old" |
| 15355 | #endif |
| 15356 | |
| 15357 | int |
| 15358 | main () |
| 15359 | { |
| 15360 | |
| 15361 | ; |
| 15362 | return 0; |
| 15363 | } |
| 15364 | _ACEOF |
| 15365 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15366 | emacs_signals_via_chars=yes |
| 15367 | else |
| 15368 | emacs_signals_via_chars=no |
| 15369 | fi |
| 15370 | rm -f conftest.err conftest.$ac_ext |
| 15371 | |
| 15372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_signals_via_chars" >&5 |
| 15373 | $as_echo "$emacs_signals_via_chars" >&6; } |
| 15374 | test $emacs_signals_via_chars = yes && $as_echo "#define SIGNALS_VIA_CHARACTERS 1" >>confdefs.h |
| 15375 | |
| 15376 | ;; |
| 15377 | esac |
| 15378 | |
| 15379 | |
| 15380 | |
| 15381 | |
| 15382 | |
| 15383 | case $opsys in |
| 15384 | gnu) |
| 15385 | $as_echo "#define DATA_START ({ extern int data_start; (char *) &data_start; })" >>confdefs.h |
| 15386 | |
| 15387 | ;; |
| 15388 | |
| 15389 | hpux*) |
| 15390 | $as_echo "#define DATA_START 0x40000000" >>confdefs.h |
| 15391 | |
| 15392 | $as_echo "#define DATA_SEG_BITS 0x40000000" >>confdefs.h |
| 15393 | |
| 15394 | ;; |
| 15395 | irix6-5) |
| 15396 | $as_echo "#define DATA_START 0x10000000" >>confdefs.h |
| 15397 | |
| 15398 | $as_echo "#define DATA_SEG_BITS 0x10000000" >>confdefs.h |
| 15399 | |
| 15400 | ;; |
| 15401 | esac |
| 15402 | |
| 15403 | |
| 15404 | |
| 15405 | |
| 15406 | case $opsys in |
| 15407 | darwin) $as_echo "#define TAB3 OXTABS" >>confdefs.h |
| 15408 | ;; |
| 15409 | |
| 15410 | gnu | freebsd | netbsd | openbsd ) |
| 15411 | |
| 15412 | $as_echo "#define TABDLY OXTABS" >>confdefs.h |
| 15413 | |
| 15414 | $as_echo "#define TAB3 OXTABS" >>confdefs.h |
| 15415 | |
| 15416 | ;; |
| 15417 | |
| 15418 | gnu-linux | gnu-kfreebsd ) |
| 15419 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15420 | /* end confdefs.h. */ |
| 15421 | |
| 15422 | #ifndef __ia64__ |
| 15423 | # error "not ia64" |
| 15424 | #endif |
| 15425 | |
| 15426 | int |
| 15427 | main () |
| 15428 | { |
| 15429 | |
| 15430 | ; |
| 15431 | return 0; |
| 15432 | } |
| 15433 | _ACEOF |
| 15434 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15435 | |
| 15436 | $as_echo "#define GC_MARK_SECONDARY_STACK() do { extern void *__libc_ia64_register_backing_store_base; __builtin_ia64_flushrs (); mark_memory (__libc_ia64_register_backing_store_base, __builtin_ia64_bsp ());} while (0)" >>confdefs.h |
| 15437 | |
| 15438 | fi |
| 15439 | rm -f conftest.err conftest.$ac_ext |
| 15440 | ;; |
| 15441 | |
| 15442 | hpux*) |
| 15443 | |
| 15444 | $as_echo "#define RUN_TIME_REMAP 1" >>confdefs.h |
| 15445 | |
| 15446 | ;; |
| 15447 | esac |
| 15448 | |
| 15449 | |
| 15450 | |
| 15451 | |
| 15452 | |
| 15453 | |
| 15454 | |
| 15455 | case $opsys in |
| 15456 | aix4-2 | hpux* | unixware) |
| 15457 | $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h |
| 15458 | |
| 15459 | ;; |
| 15460 | |
| 15461 | gnu-linux | gnu-kfreebsd ) |
| 15462 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15463 | /* end confdefs.h. */ |
| 15464 | |
| 15465 | #if defined __i386__ || defined __sparc__ || defined __mc68000__ \ |
| 15466 | || defined __alpha__ || defined __mips__ || defined __s390__ \ |
| 15467 | || defined __arm__ || defined __powerpc__ || defined __amd64__ \ |
| 15468 | || defined __ia64__ || defined __sh__ |
| 15469 | /* ok */ |
| 15470 | #else |
| 15471 | # error "setjmp not known to work on this arch" |
| 15472 | #endif |
| 15473 | |
| 15474 | int |
| 15475 | main () |
| 15476 | { |
| 15477 | |
| 15478 | ; |
| 15479 | return 0; |
| 15480 | } |
| 15481 | _ACEOF |
| 15482 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15483 | $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h |
| 15484 | |
| 15485 | else |
| 15486 | $as_echo "#define GC_MARK_STACK GC_USE_GCPROS_AS_BEFORE" >>confdefs.h |
| 15487 | |
| 15488 | fi |
| 15489 | rm -f conftest.err conftest.$ac_ext |
| 15490 | ;; |
| 15491 | esac |
| 15492 | |
| 15493 | |
| 15494 | if test x$GCC = xyes; then |
| 15495 | $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h |
| 15496 | |
| 15497 | else |
| 15498 | case $opsys in |
| 15499 | freebsd | netbsd | openbsd | irix6-5 | sol2* ) |
| 15500 | $as_echo "#define GC_SETJMP_WORKS 1" >>confdefs.h |
| 15501 | |
| 15502 | ;; |
| 15503 | esac |
| 15504 | fi |
| 15505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5 |
| 15506 | $as_echo_n "checking for _setjmp... " >&6; } |
| 15507 | if test "${emacs_cv_func__setjmp+set}" = set; then : |
| 15508 | $as_echo_n "(cached) " >&6 |
| 15509 | else |
| 15510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15511 | /* end confdefs.h. */ |
| 15512 | #include <setjmp.h> |
| 15513 | |
| 15514 | int |
| 15515 | main () |
| 15516 | { |
| 15517 | jmp_buf j; |
| 15518 | if (! _setjmp (j)) |
| 15519 | _longjmp (j, 1); |
| 15520 | ; |
| 15521 | return 0; |
| 15522 | } |
| 15523 | _ACEOF |
| 15524 | if ac_fn_c_try_link "$LINENO"; then : |
| 15525 | emacs_cv_func__setjmp=yes |
| 15526 | else |
| 15527 | emacs_cv_func__setjmp=no |
| 15528 | fi |
| 15529 | rm -f core conftest.err conftest.$ac_objext \ |
| 15530 | conftest$ac_exeext conftest.$ac_ext |
| 15531 | fi |
| 15532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5 |
| 15533 | $as_echo "$emacs_cv_func__setjmp" >&6; } |
| 15534 | if test $emacs_cv_func__setjmp = yes; then |
| 15535 | |
| 15536 | $as_echo "#define HAVE__SETJMP 1" >>confdefs.h |
| 15537 | |
| 15538 | else |
| 15539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigsetjmp" >&5 |
| 15540 | $as_echo_n "checking for sigsetjmp... " >&6; } |
| 15541 | if test "${emacs_cv_func_sigsetjmp+set}" = set; then : |
| 15542 | $as_echo_n "(cached) " >&6 |
| 15543 | else |
| 15544 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15545 | /* end confdefs.h. */ |
| 15546 | #include <setjmp.h> |
| 15547 | |
| 15548 | int |
| 15549 | main () |
| 15550 | { |
| 15551 | sigjmp_buf j; |
| 15552 | if (! sigsetjmp (j, 1)) |
| 15553 | siglongjmp (j, 1); |
| 15554 | ; |
| 15555 | return 0; |
| 15556 | } |
| 15557 | _ACEOF |
| 15558 | if ac_fn_c_try_link "$LINENO"; then : |
| 15559 | emacs_cv_func_sigsetjmp=yes |
| 15560 | else |
| 15561 | emacs_cv_func_sigsetjmp=no |
| 15562 | fi |
| 15563 | rm -f core conftest.err conftest.$ac_objext \ |
| 15564 | conftest$ac_exeext conftest.$ac_ext |
| 15565 | fi |
| 15566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func_sigsetjmp" >&5 |
| 15567 | $as_echo "$emacs_cv_func_sigsetjmp" >&6; } |
| 15568 | if test $emacs_cv_func_sigsetjmp = yes; then |
| 15569 | |
| 15570 | $as_echo "#define HAVE_SIGSETJMP 1" >>confdefs.h |
| 15571 | |
| 15572 | fi |
| 15573 | fi |
| 15574 | |
| 15575 | case $opsys in |
| 15576 | sol2* | unixware ) |
| 15577 | |
| 15578 | $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h |
| 15579 | |
| 15580 | ;; |
| 15581 | esac |
| 15582 | |
| 15583 | |
| 15584 | case $opsys in |
| 15585 | hpux* | sol2* ) |
| 15586 | |
| 15587 | $as_echo "#define XOS_NEEDS_TIME_H 1" >>confdefs.h |
| 15588 | |
| 15589 | ;; |
| 15590 | esac |
| 15591 | |
| 15592 | |
| 15593 | |
| 15594 | |
| 15595 | |
| 15596 | |
| 15597 | |
| 15598 | |
| 15599 | |
| 15600 | |
| 15601 | case $opsys in |
| 15602 | aix4-2) |
| 15603 | $as_echo "#define USG /**/" >>confdefs.h |
| 15604 | |
| 15605 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15606 | |
| 15607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15608 | /* end confdefs.h. */ |
| 15609 | |
| 15610 | #ifndef _AIX |
| 15611 | # error "_AIX not defined" |
| 15612 | #endif |
| 15613 | |
| 15614 | int |
| 15615 | main () |
| 15616 | { |
| 15617 | |
| 15618 | ; |
| 15619 | return 0; |
| 15620 | } |
| 15621 | _ACEOF |
| 15622 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15623 | |
| 15624 | else |
| 15625 | |
| 15626 | $as_echo "#define _AIX /**/" >>confdefs.h |
| 15627 | |
| 15628 | fi |
| 15629 | rm -f conftest.err conftest.$ac_ext |
| 15630 | ;; |
| 15631 | |
| 15632 | cygwin) |
| 15633 | |
| 15634 | $as_echo "#define CYGWIN 1" >>confdefs.h |
| 15635 | |
| 15636 | ;; |
| 15637 | |
| 15638 | darwin) |
| 15639 | $as_echo "#define BSD4_2 /**/" >>confdefs.h |
| 15640 | |
| 15641 | $as_echo "#define BSD_SYSTEM /**/" >>confdefs.h |
| 15642 | |
| 15643 | |
| 15644 | $as_echo "#define DARWIN_OS /**/" >>confdefs.h |
| 15645 | |
| 15646 | ;; |
| 15647 | |
| 15648 | freebsd) |
| 15649 | $as_echo "#define BSD4_2 /**/" >>confdefs.h |
| 15650 | |
| 15651 | |
| 15652 | $as_echo "#define BSD_SYSTEM_AHB 1" >>confdefs.h |
| 15653 | |
| 15654 | ;; |
| 15655 | |
| 15656 | gnu | netbsd | openbsd ) |
| 15657 | $as_echo "#define BSD4_2 /**/" >>confdefs.h |
| 15658 | |
| 15659 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15660 | /* end confdefs.h. */ |
| 15661 | |
| 15662 | #ifndef BSD_SYSTEM |
| 15663 | # error "BSD_SYSTEM not defined" |
| 15664 | #endif |
| 15665 | |
| 15666 | int |
| 15667 | main () |
| 15668 | { |
| 15669 | |
| 15670 | ; |
| 15671 | return 0; |
| 15672 | } |
| 15673 | _ACEOF |
| 15674 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 15675 | |
| 15676 | else |
| 15677 | $as_echo "#define BSD_SYSTEM 43" >>confdefs.h |
| 15678 | |
| 15679 | fi |
| 15680 | rm -f conftest.err conftest.$ac_ext |
| 15681 | ;; |
| 15682 | |
| 15683 | gnu-linux | gnu-kfreebsd ) |
| 15684 | $as_echo "#define USG /**/" >>confdefs.h |
| 15685 | |
| 15686 | |
| 15687 | $as_echo "#define GNU_LINUX /**/" >>confdefs.h |
| 15688 | |
| 15689 | ;; |
| 15690 | |
| 15691 | hpux*) |
| 15692 | $as_echo "#define USG /**/" >>confdefs.h |
| 15693 | |
| 15694 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15695 | |
| 15696 | |
| 15697 | $as_echo "#define HPUX /**/" >>confdefs.h |
| 15698 | |
| 15699 | ;; |
| 15700 | |
| 15701 | irix6-5) |
| 15702 | $as_echo "#define USG /**/" >>confdefs.h |
| 15703 | |
| 15704 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15705 | |
| 15706 | $as_echo "#define USG5_4 /**/" >>confdefs.h |
| 15707 | |
| 15708 | |
| 15709 | $as_echo "#define IRIX6_5 /**/" >>confdefs.h |
| 15710 | |
| 15711 | ;; |
| 15712 | |
| 15713 | sol2*) |
| 15714 | $as_echo "#define USG /**/" >>confdefs.h |
| 15715 | |
| 15716 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15717 | |
| 15718 | $as_echo "#define USG5_4 /**/" >>confdefs.h |
| 15719 | |
| 15720 | |
| 15721 | $as_echo "#define SOLARIS2 /**/" >>confdefs.h |
| 15722 | |
| 15723 | ;; |
| 15724 | |
| 15725 | unixware) |
| 15726 | $as_echo "#define USG /**/" >>confdefs.h |
| 15727 | |
| 15728 | $as_echo "#define USG5 /**/" >>confdefs.h |
| 15729 | |
| 15730 | $as_echo "#define USG5_4 /**/" >>confdefs.h |
| 15731 | |
| 15732 | ;; |
| 15733 | esac |
| 15734 | |
| 15735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable FIONREAD" >&5 |
| 15736 | $as_echo_n "checking for usable FIONREAD... " >&6; } |
| 15737 | if test "${emacs_cv_usable_FIONREAD+set}" = set; then : |
| 15738 | $as_echo_n "(cached) " >&6 |
| 15739 | else |
| 15740 | case $opsys in |
| 15741 | aix4-2) |
| 15742 | emacs_cv_usable_FIONREAD=no |
| 15743 | ;; |
| 15744 | |
| 15745 | *) |
| 15746 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15747 | /* end confdefs.h. */ |
| 15748 | #include <sys/types.h> |
| 15749 | #include <sys/ioctl.h> |
| 15750 | #ifdef USG5_4 |
| 15751 | # include <sys/filio.h> |
| 15752 | #endif |
| 15753 | |
| 15754 | int |
| 15755 | main () |
| 15756 | { |
| 15757 | int foo = ioctl (0, FIONREAD, &foo); |
| 15758 | ; |
| 15759 | return 0; |
| 15760 | } |
| 15761 | _ACEOF |
| 15762 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15763 | emacs_cv_usable_FIONREAD=yes |
| 15764 | else |
| 15765 | emacs_cv_usable_FIONREAD=no |
| 15766 | fi |
| 15767 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15768 | ;; |
| 15769 | esac |
| 15770 | fi |
| 15771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_FIONREAD" >&5 |
| 15772 | $as_echo "$emacs_cv_usable_FIONREAD" >&6; } |
| 15773 | if test $emacs_cv_usable_FIONREAD = yes; then |
| 15774 | |
| 15775 | $as_echo "#define USABLE_FIONREAD 1" >>confdefs.h |
| 15776 | |
| 15777 | |
| 15778 | if test $emacs_broken_SIGIO = no; then |
| 15779 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usable SIGIO" >&5 |
| 15780 | $as_echo_n "checking for usable SIGIO... " >&6; } |
| 15781 | if test "${emacs_cv_usable_SIGIO+set}" = set; then : |
| 15782 | $as_echo_n "(cached) " >&6 |
| 15783 | else |
| 15784 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 15785 | /* end confdefs.h. */ |
| 15786 | #include <fcntl.h> |
| 15787 | #include <signal.h> |
| 15788 | |
| 15789 | int |
| 15790 | main () |
| 15791 | { |
| 15792 | int foo = SIGIO | F_SETFL | FASYNC; |
| 15793 | ; |
| 15794 | return 0; |
| 15795 | } |
| 15796 | _ACEOF |
| 15797 | if ac_fn_c_try_compile "$LINENO"; then : |
| 15798 | emacs_cv_usable_SIGIO=yes |
| 15799 | else |
| 15800 | emacs_cv_usable_SIGIO=no |
| 15801 | fi |
| 15802 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 15803 | fi |
| 15804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_usable_SIGIO" >&5 |
| 15805 | $as_echo "$emacs_cv_usable_SIGIO" >&6; } |
| 15806 | if test $emacs_cv_usable_SIGIO = yes; then |
| 15807 | |
| 15808 | $as_echo "#define USABLE_SIGIO 1" >>confdefs.h |
| 15809 | |
| 15810 | fi |
| 15811 | fi |
| 15812 | fi |
| 15813 | |
| 15814 | |
| 15815 | case $opsys in |
| 15816 | cygwin) |
| 15817 | |
| 15818 | $as_echo "#define G_SLICE_ALWAYS_MALLOC 1" >>confdefs.h |
| 15819 | |
| 15820 | ;; |
| 15821 | |
| 15822 | hpux11) |
| 15823 | |
| 15824 | $as_echo "#define USG_SUBTTY_WORKS 1" >>confdefs.h |
| 15825 | |
| 15826 | ;; |
| 15827 | |
| 15828 | irix6-5) |
| 15829 | |
| 15830 | $as_echo "#define PREFER_VSUSP 1" >>confdefs.h |
| 15831 | |
| 15832 | ;; |
| 15833 | |
| 15834 | sol2-10) |
| 15835 | |
| 15836 | $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h |
| 15837 | |
| 15838 | ;; |
| 15839 | esac |
| 15840 | |
| 15841 | # Set up the CFLAGS for real compilation, so we can substitute it. |
| 15842 | CFLAGS="$REAL_CFLAGS" |
| 15843 | CPPFLAGS="$REAL_CPPFLAGS" |
| 15844 | |
| 15845 | ## Hack to detect a buggy GCC version. |
| 15846 | if test "x$GCC" = xyes \ |
| 15847 | && test x"`$CC --version 2> /dev/null | grep 'gcc.* 4.5.0'`" != x \ |
| 15848 | && test x"`echo $CFLAGS | grep '\-O[23]'`" != x \ |
| 15849 | && test x"`echo $CFLAGS | grep '\-fno-optimize-sibling-calls'`" = x; then |
| 15850 | as_fn_error "GCC 4.5.0 has problems compiling Emacs; see etc/PROBLEMS'." "$LINENO" 5 |
| 15851 | fi |
| 15852 | |
| 15853 | version=$PACKAGE_VERSION |
| 15854 | |
| 15855 | copyright="Copyright (C) 2012 Free Software Foundation, Inc." |
| 15856 | |
| 15857 | cat >>confdefs.h <<_ACEOF |
| 15858 | #define COPYRIGHT "$copyright" |
| 15859 | _ACEOF |
| 15860 | |
| 15861 | |
| 15862 | |
| 15863 | ### Specify what sort of things we'll be editing into Makefile and config.h. |
| 15864 | ### Use configuration here uncanonicalized to avoid exceeding size limits. |
| 15865 | |
| 15866 | |
| 15867 | ## Unused? |
| 15868 | |
| 15869 | |
| 15870 | |
| 15871 | |
| 15872 | |
| 15873 | |
| 15874 | |
| 15875 | |
| 15876 | |
| 15877 | |
| 15878 | |
| 15879 | |
| 15880 | |
| 15881 | |
| 15882 | |
| 15883 | |
| 15884 | |
| 15885 | |
| 15886 | |
| 15887 | |
| 15888 | |
| 15889 | |
| 15890 | ## FIXME? Nothing uses @LD_SWITCH_X_SITE@. |
| 15891 | ## src/Makefile.in did add LD_SWITCH_X_SITE (as a cpp define) to the |
| 15892 | ## end of LIBX_BASE, but nothing ever set it. |
| 15893 | |
| 15894 | |
| 15895 | |
| 15896 | |
| 15897 | ## Used in lwlib/Makefile.in. |
| 15898 | |
| 15899 | |
| 15900 | |
| 15901 | |
| 15902 | |
| 15903 | |
| 15904 | |
| 15905 | |
| 15906 | if test -n "${term_header}"; then |
| 15907 | |
| 15908 | cat >>confdefs.h <<_ACEOF |
| 15909 | #define TERM_HEADER "${term_header}" |
| 15910 | _ACEOF |
| 15911 | |
| 15912 | fi |
| 15913 | |
| 15914 | |
| 15915 | cat >>confdefs.h <<_ACEOF |
| 15916 | #define EMACS_CONFIGURATION "${canonical}" |
| 15917 | _ACEOF |
| 15918 | |
| 15919 | |
| 15920 | cat >>confdefs.h <<_ACEOF |
| 15921 | #define EMACS_CONFIG_OPTIONS "${ac_configure_args}" |
| 15922 | _ACEOF |
| 15923 | |
| 15924 | |
| 15925 | |
| 15926 | XMENU_OBJ= |
| 15927 | XOBJ= |
| 15928 | FONT_OBJ= |
| 15929 | if test "${HAVE_X_WINDOWS}" = "yes" ; then |
| 15930 | |
| 15931 | $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h |
| 15932 | |
| 15933 | XMENU_OBJ=xmenu.o |
| 15934 | XOBJ="xterm.o xfns.o xselect.o xrdb.o xsmfns.o xsettings.o xgselect.o" |
| 15935 | FONT_OBJ=xfont.o |
| 15936 | if test "$HAVE_XFT" = "yes"; then |
| 15937 | FONT_OBJ="$FONT_OBJ ftfont.o xftfont.o ftxfont.o" |
| 15938 | elif test "$HAVE_FREETYPE" = "yes"; then |
| 15939 | FONT_OBJ="$FONT_OBJ ftfont.o ftxfont.o" |
| 15940 | fi |
| 15941 | |
| 15942 | fi |
| 15943 | |
| 15944 | |
| 15945 | |
| 15946 | |
| 15947 | WIDGET_OBJ= |
| 15948 | MOTIF_LIBW= |
| 15949 | if test "${USE_X_TOOLKIT}" != "none" ; then |
| 15950 | WIDGET_OBJ=widget.o |
| 15951 | |
| 15952 | $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h |
| 15953 | |
| 15954 | if test "${USE_X_TOOLKIT}" = "LUCID"; then |
| 15955 | |
| 15956 | $as_echo "#define USE_LUCID 1" >>confdefs.h |
| 15957 | |
| 15958 | elif test "${USE_X_TOOLKIT}" = "MOTIF"; then |
| 15959 | |
| 15960 | $as_echo "#define USE_MOTIF 1" >>confdefs.h |
| 15961 | |
| 15962 | MOTIF_LIBW=-lXm |
| 15963 | case "$opsys" in |
| 15964 | gnu-linux) |
| 15965 | ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. |
| 15966 | MOTIF_LIBW="$MOTIF_LIBW -lXpm" |
| 15967 | ;; |
| 15968 | |
| 15969 | unixware) |
| 15970 | ## Richard Anthony Ryan <ryanr at ellingtn.ftc.nrcs.usda.gov> |
| 15971 | ## says -lXimp is needed in UNIX_SV ... 4.2 1.1.2. |
| 15972 | MOTIF_LIBW="MOTIF_LIBW -lXimp" |
| 15973 | ;; |
| 15974 | |
| 15975 | aix4-2) |
| 15976 | ## olson@mcs.anl.gov says -li18n is needed by -lXm. |
| 15977 | MOTIF_LIBW="$MOTIF_LIBW -li18n" |
| 15978 | ;; |
| 15979 | esac |
| 15980 | MOTIF_LIBW="$MOTIF_LIBW $LIBXP" |
| 15981 | fi |
| 15982 | fi |
| 15983 | |
| 15984 | |
| 15985 | TOOLKIT_LIBW= |
| 15986 | case "$USE_X_TOOLKIT" in |
| 15987 | MOTIF) TOOLKIT_LIBW="$MOTIF_LIBW" ;; |
| 15988 | LUCID) TOOLKIT_LIBW="$LUCID_LIBW" ;; |
| 15989 | none) test "x$HAVE_GTK" = "xyes" && TOOLKIT_LIBW="$GTK_LIBS" ;; |
| 15990 | esac |
| 15991 | |
| 15992 | |
| 15993 | if test "$USE_X_TOOLKIT" = "none"; then |
| 15994 | LIBXT_OTHER="\$(LIBXSM)" |
| 15995 | OLDXMENU_TARGET="really-oldXMenu" |
| 15996 | else |
| 15997 | LIBXT_OTHER="\$(LIBXMU) -lXt \$(LIBXTR6) -lXext" |
| 15998 | OLDXMENU_TARGET="really-lwlib" |
| 15999 | fi |
| 16000 | |
| 16001 | |
| 16002 | ## The X Menu stuff is present in the X10 distribution, but missing |
| 16003 | ## from X11. If we have X10, just use the installed library; |
| 16004 | ## otherwise, use our own copy. |
| 16005 | if test "${HAVE_X11}" = "yes" ; then |
| 16006 | |
| 16007 | $as_echo "#define HAVE_X11 1" >>confdefs.h |
| 16008 | |
| 16009 | |
| 16010 | if test "$USE_X_TOOLKIT" = "none"; then |
| 16011 | OLDXMENU="\${oldXMenudir}/libXMenu11.a" |
| 16012 | else |
| 16013 | OLDXMENU="\${lwlibdir}/liblw.a" |
| 16014 | fi |
| 16015 | LIBXMENU="\$(OLDXMENU)" |
| 16016 | LIBX_OTHER="\$(LIBXT) \$(LIBX_EXTRA)" |
| 16017 | OLDXMENU_DEPS="\${OLDXMENU} ../src/\${OLDXMENU}" |
| 16018 | else |
| 16019 | ## For a syntactically valid Makefile; not actually used for anything. |
| 16020 | ## See comments in src/Makefile.in. |
| 16021 | OLDXMENU=nothing |
| 16022 | ## FIXME This case (!HAVE_X11 && HAVE_X_WINDOWS) is no longer possible(?). |
| 16023 | if test "${HAVE_X_WINDOWS}" = "yes"; then |
| 16024 | LIBXMENU="-lXMenu" |
| 16025 | else |
| 16026 | LIBXMENU= |
| 16027 | fi |
| 16028 | LIBX_OTHER= |
| 16029 | OLDXMENU_DEPS= |
| 16030 | fi |
| 16031 | |
| 16032 | if test "$HAVE_GTK" = "yes" || test "$HAVE_MENUS" != "yes"; then |
| 16033 | OLDXMENU_TARGET= |
| 16034 | OLDXMENU=nothing |
| 16035 | LIBXMENU= |
| 16036 | OLDXMENU_DEPS= |
| 16037 | fi |
| 16038 | |
| 16039 | |
| 16040 | |
| 16041 | |
| 16042 | |
| 16043 | |
| 16044 | |
| 16045 | if test "${HAVE_MENUS}" = "yes" ; then |
| 16046 | |
| 16047 | $as_echo "#define HAVE_MENUS 1" >>confdefs.h |
| 16048 | |
| 16049 | fi |
| 16050 | |
| 16051 | if test "${GNU_MALLOC}" = "yes" ; then |
| 16052 | |
| 16053 | $as_echo "#define GNU_MALLOC 1" >>confdefs.h |
| 16054 | |
| 16055 | fi |
| 16056 | |
| 16057 | RALLOC_OBJ= |
| 16058 | if test "${REL_ALLOC}" = "yes" ; then |
| 16059 | |
| 16060 | $as_echo "#define REL_ALLOC 1" >>confdefs.h |
| 16061 | |
| 16062 | |
| 16063 | test "$system_malloc" != "yes" && RALLOC_OBJ=ralloc.o |
| 16064 | fi |
| 16065 | |
| 16066 | |
| 16067 | if test "$opsys" = "cygwin"; then |
| 16068 | CYGWIN_OBJ="sheap.o cygw32.o" |
| 16069 | ## Cygwin differs because of its unexec(). |
| 16070 | PRE_ALLOC_OBJ= |
| 16071 | POST_ALLOC_OBJ=lastfile.o |
| 16072 | else |
| 16073 | CYGWIN_OBJ= |
| 16074 | PRE_ALLOC_OBJ=lastfile.o |
| 16075 | POST_ALLOC_OBJ= |
| 16076 | fi |
| 16077 | |
| 16078 | |
| 16079 | |
| 16080 | |
| 16081 | # Configure gnulib. Although this does not affect CFLAGS or LIBS permanently. |
| 16082 | # it temporarily reverts them to their pre-pkg-config values, |
| 16083 | # because gnulib needs to work with both src (which uses the |
| 16084 | # pkg-config stuff) and lib-src (which does not). For example, gnulib |
| 16085 | # may need to determine whether LIB_CLOCK_GETTIME should contain -lrt, |
| 16086 | # and it therefore needs to run in an environment where LIBS does not |
| 16087 | # already contain -lrt merely because 'pkg-config --libs' printed '-lrt' |
| 16088 | # for some package unrelated to lib-src. |
| 16089 | SAVE_CFLAGS=$CFLAGS |
| 16090 | SAVE_LIBS=$LIBS |
| 16091 | CFLAGS=$pre_PKG_CONFIG_CFLAGS |
| 16092 | LIBS="$LIB_PTHREAD $pre_PKG_CONFIG_LIBS" |
| 16093 | |
| 16094 | |
| 16095 | |
| 16096 | |
| 16097 | |
| 16098 | |
| 16099 | |
| 16100 | |
| 16101 | |
| 16102 | |
| 16103 | |
| 16104 | LIBC_FATAL_STDERR_=1 |
| 16105 | export LIBC_FATAL_STDERR_ |
| 16106 | |
| 16107 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 16108 | # for constant arguments. Useless! |
| 16109 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
| 16110 | $as_echo_n "checking for working alloca.h... " >&6; } |
| 16111 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
| 16112 | $as_echo_n "(cached) " >&6 |
| 16113 | else |
| 16114 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16115 | /* end confdefs.h. */ |
| 16116 | #include <alloca.h> |
| 16117 | int |
| 16118 | main () |
| 16119 | { |
| 16120 | char *p = (char *) alloca (2 * sizeof (int)); |
| 16121 | if (p) return 0; |
| 16122 | ; |
| 16123 | return 0; |
| 16124 | } |
| 16125 | _ACEOF |
| 16126 | if ac_fn_c_try_link "$LINENO"; then : |
| 16127 | ac_cv_working_alloca_h=yes |
| 16128 | else |
| 16129 | ac_cv_working_alloca_h=no |
| 16130 | fi |
| 16131 | rm -f core conftest.err conftest.$ac_objext \ |
| 16132 | conftest$ac_exeext conftest.$ac_ext |
| 16133 | fi |
| 16134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
| 16135 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
| 16136 | if test $ac_cv_working_alloca_h = yes; then |
| 16137 | |
| 16138 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
| 16139 | |
| 16140 | fi |
| 16141 | |
| 16142 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
| 16143 | $as_echo_n "checking for alloca... " >&6; } |
| 16144 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
| 16145 | $as_echo_n "(cached) " >&6 |
| 16146 | else |
| 16147 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16148 | /* end confdefs.h. */ |
| 16149 | #ifdef __GNUC__ |
| 16150 | # define alloca __builtin_alloca |
| 16151 | #else |
| 16152 | # ifdef _MSC_VER |
| 16153 | # include <malloc.h> |
| 16154 | # define alloca _alloca |
| 16155 | # else |
| 16156 | # ifdef HAVE_ALLOCA_H |
| 16157 | # include <alloca.h> |
| 16158 | # else |
| 16159 | # ifdef _AIX |
| 16160 | #pragma alloca |
| 16161 | # else |
| 16162 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 16163 | char *alloca (); |
| 16164 | # endif |
| 16165 | # endif |
| 16166 | # endif |
| 16167 | # endif |
| 16168 | #endif |
| 16169 | |
| 16170 | int |
| 16171 | main () |
| 16172 | { |
| 16173 | char *p = (char *) alloca (1); |
| 16174 | if (p) return 0; |
| 16175 | ; |
| 16176 | return 0; |
| 16177 | } |
| 16178 | _ACEOF |
| 16179 | if ac_fn_c_try_link "$LINENO"; then : |
| 16180 | ac_cv_func_alloca_works=yes |
| 16181 | else |
| 16182 | ac_cv_func_alloca_works=no |
| 16183 | fi |
| 16184 | rm -f core conftest.err conftest.$ac_objext \ |
| 16185 | conftest$ac_exeext conftest.$ac_ext |
| 16186 | fi |
| 16187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
| 16188 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
| 16189 | |
| 16190 | if test $ac_cv_func_alloca_works = yes; then |
| 16191 | |
| 16192 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 16193 | |
| 16194 | else |
| 16195 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 16196 | # that cause trouble. Some versions do not even contain alloca or |
| 16197 | # contain a buggy version. If you still want to use their alloca, |
| 16198 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 16199 | |
| 16200 | |
| 16201 | |
| 16202 | |
| 16203 | |
| 16204 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
| 16205 | |
| 16206 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
| 16207 | |
| 16208 | |
| 16209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5 |
| 16210 | $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; } |
| 16211 | if test "${ac_cv_os_cray+set}" = set; then : |
| 16212 | $as_echo_n "(cached) " >&6 |
| 16213 | else |
| 16214 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16215 | /* end confdefs.h. */ |
| 16216 | #if defined CRAY && ! defined CRAY2 |
| 16217 | webecray |
| 16218 | #else |
| 16219 | wenotbecray |
| 16220 | #endif |
| 16221 | |
| 16222 | _ACEOF |
| 16223 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16224 | $EGREP "webecray" >/dev/null 2>&1; then : |
| 16225 | ac_cv_os_cray=yes |
| 16226 | else |
| 16227 | ac_cv_os_cray=no |
| 16228 | fi |
| 16229 | rm -f conftest* |
| 16230 | |
| 16231 | fi |
| 16232 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
| 16233 | $as_echo "$ac_cv_os_cray" >&6; } |
| 16234 | if test $ac_cv_os_cray = yes; then |
| 16235 | for ac_func in _getb67 GETB67 getb67; do |
| 16236 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 16237 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 16238 | eval as_val=\$$as_ac_var |
| 16239 | if test "x$as_val" = x""yes; then : |
| 16240 | |
| 16241 | cat >>confdefs.h <<_ACEOF |
| 16242 | #define CRAY_STACKSEG_END $ac_func |
| 16243 | _ACEOF |
| 16244 | |
| 16245 | break |
| 16246 | fi |
| 16247 | |
| 16248 | done |
| 16249 | fi |
| 16250 | |
| 16251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
| 16252 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
| 16253 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
| 16254 | $as_echo_n "(cached) " >&6 |
| 16255 | else |
| 16256 | if test "$cross_compiling" = yes; then : |
| 16257 | ac_cv_c_stack_direction=0 |
| 16258 | else |
| 16259 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16260 | /* end confdefs.h. */ |
| 16261 | $ac_includes_default |
| 16262 | int |
| 16263 | find_stack_direction (int *addr, int depth) |
| 16264 | { |
| 16265 | int dir, dummy = 0; |
| 16266 | if (! addr) |
| 16267 | addr = &dummy; |
| 16268 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; |
| 16269 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; |
| 16270 | return dir + dummy; |
| 16271 | } |
| 16272 | |
| 16273 | int |
| 16274 | main (int argc, char **argv) |
| 16275 | { |
| 16276 | return find_stack_direction (0, argc + !argv + 20) < 0; |
| 16277 | } |
| 16278 | _ACEOF |
| 16279 | if ac_fn_c_try_run "$LINENO"; then : |
| 16280 | ac_cv_c_stack_direction=1 |
| 16281 | else |
| 16282 | ac_cv_c_stack_direction=-1 |
| 16283 | fi |
| 16284 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16285 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16286 | fi |
| 16287 | |
| 16288 | fi |
| 16289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
| 16290 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
| 16291 | cat >>confdefs.h <<_ACEOF |
| 16292 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
| 16293 | _ACEOF |
| 16294 | |
| 16295 | |
| 16296 | fi |
| 16297 | |
| 16298 | |
| 16299 | |
| 16300 | |
| 16301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
| 16302 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
| 16303 | if test "${ac_cv_c_bigendian+set}" = set; then : |
| 16304 | $as_echo_n "(cached) " >&6 |
| 16305 | else |
| 16306 | ac_cv_c_bigendian=unknown |
| 16307 | # See if we're dealing with a universal compiler. |
| 16308 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16309 | /* end confdefs.h. */ |
| 16310 | #ifndef __APPLE_CC__ |
| 16311 | not a universal capable compiler |
| 16312 | #endif |
| 16313 | typedef int dummy; |
| 16314 | |
| 16315 | _ACEOF |
| 16316 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16317 | |
| 16318 | # Check for potential -arch flags. It is not universal unless |
| 16319 | # there are at least two -arch flags with different values. |
| 16320 | ac_arch= |
| 16321 | ac_prev= |
| 16322 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 16323 | if test -n "$ac_prev"; then |
| 16324 | case $ac_word in |
| 16325 | i?86 | x86_64 | ppc | ppc64) |
| 16326 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 16327 | ac_arch=$ac_word |
| 16328 | else |
| 16329 | ac_cv_c_bigendian=universal |
| 16330 | break |
| 16331 | fi |
| 16332 | ;; |
| 16333 | esac |
| 16334 | ac_prev= |
| 16335 | elif test "x$ac_word" = "x-arch"; then |
| 16336 | ac_prev=arch |
| 16337 | fi |
| 16338 | done |
| 16339 | fi |
| 16340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16341 | if test $ac_cv_c_bigendian = unknown; then |
| 16342 | # See if sys/param.h defines the BYTE_ORDER macro. |
| 16343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16344 | /* end confdefs.h. */ |
| 16345 | #include <sys/types.h> |
| 16346 | #include <sys/param.h> |
| 16347 | |
| 16348 | int |
| 16349 | main () |
| 16350 | { |
| 16351 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 16352 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 16353 | && LITTLE_ENDIAN) |
| 16354 | bogus endian macros |
| 16355 | #endif |
| 16356 | |
| 16357 | ; |
| 16358 | return 0; |
| 16359 | } |
| 16360 | _ACEOF |
| 16361 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16362 | # It does; now see whether it defined to BIG_ENDIAN or not. |
| 16363 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16364 | /* end confdefs.h. */ |
| 16365 | #include <sys/types.h> |
| 16366 | #include <sys/param.h> |
| 16367 | |
| 16368 | int |
| 16369 | main () |
| 16370 | { |
| 16371 | #if BYTE_ORDER != BIG_ENDIAN |
| 16372 | not big endian |
| 16373 | #endif |
| 16374 | |
| 16375 | ; |
| 16376 | return 0; |
| 16377 | } |
| 16378 | _ACEOF |
| 16379 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16380 | ac_cv_c_bigendian=yes |
| 16381 | else |
| 16382 | ac_cv_c_bigendian=no |
| 16383 | fi |
| 16384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16385 | fi |
| 16386 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16387 | fi |
| 16388 | if test $ac_cv_c_bigendian = unknown; then |
| 16389 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
| 16390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16391 | /* end confdefs.h. */ |
| 16392 | #include <limits.h> |
| 16393 | |
| 16394 | int |
| 16395 | main () |
| 16396 | { |
| 16397 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 16398 | bogus endian macros |
| 16399 | #endif |
| 16400 | |
| 16401 | ; |
| 16402 | return 0; |
| 16403 | } |
| 16404 | _ACEOF |
| 16405 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16406 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
| 16407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16408 | /* end confdefs.h. */ |
| 16409 | #include <limits.h> |
| 16410 | |
| 16411 | int |
| 16412 | main () |
| 16413 | { |
| 16414 | #ifndef _BIG_ENDIAN |
| 16415 | not big endian |
| 16416 | #endif |
| 16417 | |
| 16418 | ; |
| 16419 | return 0; |
| 16420 | } |
| 16421 | _ACEOF |
| 16422 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16423 | ac_cv_c_bigendian=yes |
| 16424 | else |
| 16425 | ac_cv_c_bigendian=no |
| 16426 | fi |
| 16427 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16428 | fi |
| 16429 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16430 | fi |
| 16431 | if test $ac_cv_c_bigendian = unknown; then |
| 16432 | # Compile a test program. |
| 16433 | if test "$cross_compiling" = yes; then : |
| 16434 | # Try to guess by grepping values from an object file. |
| 16435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16436 | /* end confdefs.h. */ |
| 16437 | short int ascii_mm[] = |
| 16438 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 16439 | short int ascii_ii[] = |
| 16440 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 16441 | int use_ascii (int i) { |
| 16442 | return ascii_mm[i] + ascii_ii[i]; |
| 16443 | } |
| 16444 | short int ebcdic_ii[] = |
| 16445 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 16446 | short int ebcdic_mm[] = |
| 16447 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 16448 | int use_ebcdic (int i) { |
| 16449 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 16450 | } |
| 16451 | extern int foo; |
| 16452 | |
| 16453 | int |
| 16454 | main () |
| 16455 | { |
| 16456 | return use_ascii (foo) == use_ebcdic (foo); |
| 16457 | ; |
| 16458 | return 0; |
| 16459 | } |
| 16460 | _ACEOF |
| 16461 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16462 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 16463 | ac_cv_c_bigendian=yes |
| 16464 | fi |
| 16465 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 16466 | if test "$ac_cv_c_bigendian" = unknown; then |
| 16467 | ac_cv_c_bigendian=no |
| 16468 | else |
| 16469 | # finding both strings is unlikely to happen, but who knows? |
| 16470 | ac_cv_c_bigendian=unknown |
| 16471 | fi |
| 16472 | fi |
| 16473 | fi |
| 16474 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16475 | else |
| 16476 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16477 | /* end confdefs.h. */ |
| 16478 | $ac_includes_default |
| 16479 | int |
| 16480 | main () |
| 16481 | { |
| 16482 | |
| 16483 | /* Are we little or big endian? From Harbison&Steele. */ |
| 16484 | union |
| 16485 | { |
| 16486 | long int l; |
| 16487 | char c[sizeof (long int)]; |
| 16488 | } u; |
| 16489 | u.l = 1; |
| 16490 | return u.c[sizeof (long int) - 1] == 1; |
| 16491 | |
| 16492 | ; |
| 16493 | return 0; |
| 16494 | } |
| 16495 | _ACEOF |
| 16496 | if ac_fn_c_try_run "$LINENO"; then : |
| 16497 | ac_cv_c_bigendian=no |
| 16498 | else |
| 16499 | ac_cv_c_bigendian=yes |
| 16500 | fi |
| 16501 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 16502 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 16503 | fi |
| 16504 | |
| 16505 | fi |
| 16506 | fi |
| 16507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
| 16508 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 16509 | case $ac_cv_c_bigendian in #( |
| 16510 | yes) |
| 16511 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
| 16512 | ;; #( |
| 16513 | no) |
| 16514 | ;; #( |
| 16515 | universal) |
| 16516 | |
| 16517 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
| 16518 | |
| 16519 | ;; #( |
| 16520 | *) |
| 16521 | as_fn_error "unknown endianness |
| 16522 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
| 16523 | esac |
| 16524 | |
| 16525 | |
| 16526 | |
| 16527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtold conforms to C99" >&5 |
| 16528 | $as_echo_n "checking whether strtold conforms to C99... " >&6; } |
| 16529 | if test "${gl_cv_func_c99_strtold+set}" = set; then : |
| 16530 | $as_echo_n "(cached) " >&6 |
| 16531 | else |
| 16532 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16533 | /* end confdefs.h. */ |
| 16534 | /* On HP-UX before 11.23, strtold returns a struct instead of |
| 16535 | long double. Reject implementations like that, by requiring |
| 16536 | compatibility with the C99 prototype. */ |
| 16537 | #include <stdlib.h> |
| 16538 | static long double (*p) (char const *, char **) = strtold; |
| 16539 | static long double |
| 16540 | test (char const *nptr, char **endptr) |
| 16541 | { |
| 16542 | long double r; |
| 16543 | r = strtold (nptr, endptr); |
| 16544 | return r; |
| 16545 | } |
| 16546 | int |
| 16547 | main () |
| 16548 | { |
| 16549 | return test ("1.0", NULL) != 1 || p ("1.0", NULL) != 1; |
| 16550 | ; |
| 16551 | return 0; |
| 16552 | } |
| 16553 | _ACEOF |
| 16554 | if ac_fn_c_try_link "$LINENO"; then : |
| 16555 | gl_cv_func_c99_strtold=yes |
| 16556 | else |
| 16557 | gl_cv_func_c99_strtold=no |
| 16558 | fi |
| 16559 | rm -f core conftest.err conftest.$ac_objext \ |
| 16560 | conftest$ac_exeext conftest.$ac_ext |
| 16561 | fi |
| 16562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_c99_strtold" >&5 |
| 16563 | $as_echo "$gl_cv_func_c99_strtold" >&6; } |
| 16564 | if test $gl_cv_func_c99_strtold = yes; then |
| 16565 | |
| 16566 | $as_echo "#define HAVE_C99_STRTOLD 1" >>confdefs.h |
| 16567 | |
| 16568 | fi |
| 16569 | |
| 16570 | |
| 16571 | GNULIB_CHDIR=0; |
| 16572 | GNULIB_CHOWN=0; |
| 16573 | GNULIB_CLOSE=0; |
| 16574 | GNULIB_DUP=0; |
| 16575 | GNULIB_DUP2=0; |
| 16576 | GNULIB_DUP3=0; |
| 16577 | GNULIB_ENVIRON=0; |
| 16578 | GNULIB_EUIDACCESS=0; |
| 16579 | GNULIB_FACCESSAT=0; |
| 16580 | GNULIB_FCHDIR=0; |
| 16581 | GNULIB_FCHOWNAT=0; |
| 16582 | GNULIB_FDATASYNC=0; |
| 16583 | GNULIB_FSYNC=0; |
| 16584 | GNULIB_FTRUNCATE=0; |
| 16585 | GNULIB_GETCWD=0; |
| 16586 | GNULIB_GETDOMAINNAME=0; |
| 16587 | GNULIB_GETDTABLESIZE=0; |
| 16588 | GNULIB_GETGROUPS=0; |
| 16589 | GNULIB_GETHOSTNAME=0; |
| 16590 | GNULIB_GETLOGIN=0; |
| 16591 | GNULIB_GETLOGIN_R=0; |
| 16592 | GNULIB_GETPAGESIZE=0; |
| 16593 | GNULIB_GETUSERSHELL=0; |
| 16594 | GNULIB_GROUP_MEMBER=0; |
| 16595 | GNULIB_ISATTY=0; |
| 16596 | GNULIB_LCHOWN=0; |
| 16597 | GNULIB_LINK=0; |
| 16598 | GNULIB_LINKAT=0; |
| 16599 | GNULIB_LSEEK=0; |
| 16600 | GNULIB_PIPE=0; |
| 16601 | GNULIB_PIPE2=0; |
| 16602 | GNULIB_PREAD=0; |
| 16603 | GNULIB_PWRITE=0; |
| 16604 | GNULIB_READ=0; |
| 16605 | GNULIB_READLINK=0; |
| 16606 | GNULIB_READLINKAT=0; |
| 16607 | GNULIB_RMDIR=0; |
| 16608 | GNULIB_SETHOSTNAME=0; |
| 16609 | GNULIB_SLEEP=0; |
| 16610 | GNULIB_SYMLINK=0; |
| 16611 | GNULIB_SYMLINKAT=0; |
| 16612 | GNULIB_TTYNAME_R=0; |
| 16613 | GNULIB_UNISTD_H_NONBLOCKING=0; |
| 16614 | GNULIB_UNISTD_H_SIGPIPE=0; |
| 16615 | GNULIB_UNLINK=0; |
| 16616 | GNULIB_UNLINKAT=0; |
| 16617 | GNULIB_USLEEP=0; |
| 16618 | GNULIB_WRITE=0; |
| 16619 | HAVE_CHOWN=1; |
| 16620 | HAVE_DUP2=1; |
| 16621 | HAVE_DUP3=1; |
| 16622 | HAVE_EUIDACCESS=1; |
| 16623 | HAVE_FACCESSAT=1; |
| 16624 | HAVE_FCHDIR=1; |
| 16625 | HAVE_FCHOWNAT=1; |
| 16626 | HAVE_FDATASYNC=1; |
| 16627 | HAVE_FSYNC=1; |
| 16628 | HAVE_FTRUNCATE=1; |
| 16629 | HAVE_GETDTABLESIZE=1; |
| 16630 | HAVE_GETGROUPS=1; |
| 16631 | HAVE_GETHOSTNAME=1; |
| 16632 | HAVE_GETLOGIN=1; |
| 16633 | HAVE_GETPAGESIZE=1; |
| 16634 | HAVE_GROUP_MEMBER=1; |
| 16635 | HAVE_LCHOWN=1; |
| 16636 | HAVE_LINK=1; |
| 16637 | HAVE_LINKAT=1; |
| 16638 | HAVE_PIPE=1; |
| 16639 | HAVE_PIPE2=1; |
| 16640 | HAVE_PREAD=1; |
| 16641 | HAVE_PWRITE=1; |
| 16642 | HAVE_READLINK=1; |
| 16643 | HAVE_READLINKAT=1; |
| 16644 | HAVE_SETHOSTNAME=1; |
| 16645 | HAVE_SLEEP=1; |
| 16646 | HAVE_SYMLINK=1; |
| 16647 | HAVE_SYMLINKAT=1; |
| 16648 | HAVE_UNLINKAT=1; |
| 16649 | HAVE_USLEEP=1; |
| 16650 | HAVE_DECL_ENVIRON=1; |
| 16651 | HAVE_DECL_FCHDIR=1; |
| 16652 | HAVE_DECL_FDATASYNC=1; |
| 16653 | HAVE_DECL_GETDOMAINNAME=1; |
| 16654 | HAVE_DECL_GETLOGIN_R=1; |
| 16655 | HAVE_DECL_GETPAGESIZE=1; |
| 16656 | HAVE_DECL_GETUSERSHELL=1; |
| 16657 | HAVE_DECL_SETHOSTNAME=1; |
| 16658 | HAVE_DECL_TTYNAME_R=1; |
| 16659 | HAVE_OS_H=0; |
| 16660 | HAVE_SYS_PARAM_H=0; |
| 16661 | REPLACE_CHOWN=0; |
| 16662 | REPLACE_CLOSE=0; |
| 16663 | REPLACE_DUP=0; |
| 16664 | REPLACE_DUP2=0; |
| 16665 | REPLACE_FCHOWNAT=0; |
| 16666 | REPLACE_FTRUNCATE=0; |
| 16667 | REPLACE_GETCWD=0; |
| 16668 | REPLACE_GETDOMAINNAME=0; |
| 16669 | REPLACE_GETLOGIN_R=0; |
| 16670 | REPLACE_GETGROUPS=0; |
| 16671 | REPLACE_GETPAGESIZE=0; |
| 16672 | REPLACE_ISATTY=0; |
| 16673 | REPLACE_LCHOWN=0; |
| 16674 | REPLACE_LINK=0; |
| 16675 | REPLACE_LINKAT=0; |
| 16676 | REPLACE_LSEEK=0; |
| 16677 | REPLACE_PREAD=0; |
| 16678 | REPLACE_PWRITE=0; |
| 16679 | REPLACE_READ=0; |
| 16680 | REPLACE_READLINK=0; |
| 16681 | REPLACE_RMDIR=0; |
| 16682 | REPLACE_SLEEP=0; |
| 16683 | REPLACE_SYMLINK=0; |
| 16684 | REPLACE_TTYNAME_R=0; |
| 16685 | REPLACE_UNLINK=0; |
| 16686 | REPLACE_UNLINKAT=0; |
| 16687 | REPLACE_USLEEP=0; |
| 16688 | REPLACE_WRITE=0; |
| 16689 | UNISTD_H_HAVE_WINSOCK2_H=0; |
| 16690 | UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0; |
| 16691 | |
| 16692 | |
| 16693 | |
| 16694 | |
| 16695 | |
| 16696 | |
| 16697 | |
| 16698 | |
| 16699 | |
| 16700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5 |
| 16701 | $as_echo_n "checking if environ is properly declared... " >&6; } |
| 16702 | if test "${gt_cv_var_environ_declaration+set}" = set; then : |
| 16703 | $as_echo_n "(cached) " >&6 |
| 16704 | else |
| 16705 | |
| 16706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16707 | /* end confdefs.h. */ |
| 16708 | #if HAVE_UNISTD_H |
| 16709 | #include <unistd.h> |
| 16710 | #endif |
| 16711 | /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */ |
| 16712 | #include <stdlib.h> |
| 16713 | |
| 16714 | extern struct { int foo; } environ; |
| 16715 | int |
| 16716 | main () |
| 16717 | { |
| 16718 | environ.foo = 1; |
| 16719 | ; |
| 16720 | return 0; |
| 16721 | } |
| 16722 | _ACEOF |
| 16723 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16724 | gt_cv_var_environ_declaration=no |
| 16725 | else |
| 16726 | gt_cv_var_environ_declaration=yes |
| 16727 | fi |
| 16728 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16729 | fi |
| 16730 | |
| 16731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5 |
| 16732 | $as_echo "$gt_cv_var_environ_declaration" >&6; } |
| 16733 | if test $gt_cv_var_environ_declaration = yes; then |
| 16734 | |
| 16735 | $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h |
| 16736 | |
| 16737 | fi |
| 16738 | |
| 16739 | |
| 16740 | if test $gt_cv_var_environ_declaration != yes; then |
| 16741 | HAVE_DECL_ENVIRON=0 |
| 16742 | fi |
| 16743 | |
| 16744 | |
| 16745 | |
| 16746 | |
| 16747 | |
| 16748 | |
| 16749 | |
| 16750 | |
| 16751 | |
| 16752 | GNULIB_FCNTL=0; |
| 16753 | GNULIB_NONBLOCKING=0; |
| 16754 | GNULIB_OPEN=0; |
| 16755 | GNULIB_OPENAT=0; |
| 16756 | HAVE_FCNTL=1; |
| 16757 | HAVE_OPENAT=1; |
| 16758 | REPLACE_FCNTL=0; |
| 16759 | REPLACE_OPEN=0; |
| 16760 | REPLACE_OPENAT=0; |
| 16761 | |
| 16762 | |
| 16763 | |
| 16764 | |
| 16765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5 |
| 16766 | $as_echo_n "checking whether the preprocessor supports include_next... " >&6; } |
| 16767 | if test "${gl_cv_have_include_next+set}" = set; then : |
| 16768 | $as_echo_n "(cached) " >&6 |
| 16769 | else |
| 16770 | rm -rf conftestd1a conftestd1b conftestd2 |
| 16771 | mkdir conftestd1a conftestd1b conftestd2 |
| 16772 | cat <<EOF > conftestd1a/conftest.h |
| 16773 | #define DEFINED_IN_CONFTESTD1 |
| 16774 | #include_next <conftest.h> |
| 16775 | #ifdef DEFINED_IN_CONFTESTD2 |
| 16776 | int foo; |
| 16777 | #else |
| 16778 | #error "include_next doesn't work" |
| 16779 | #endif |
| 16780 | EOF |
| 16781 | cat <<EOF > conftestd1b/conftest.h |
| 16782 | #define DEFINED_IN_CONFTESTD1 |
| 16783 | #include <stdio.h> |
| 16784 | #include_next <conftest.h> |
| 16785 | #ifdef DEFINED_IN_CONFTESTD2 |
| 16786 | int foo; |
| 16787 | #else |
| 16788 | #error "include_next doesn't work" |
| 16789 | #endif |
| 16790 | EOF |
| 16791 | cat <<EOF > conftestd2/conftest.h |
| 16792 | #ifndef DEFINED_IN_CONFTESTD1 |
| 16793 | #error "include_next test doesn't work" |
| 16794 | #endif |
| 16795 | #define DEFINED_IN_CONFTESTD2 |
| 16796 | EOF |
| 16797 | gl_save_CPPFLAGS="$CPPFLAGS" |
| 16798 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2" |
| 16799 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16800 | /* end confdefs.h. */ |
| 16801 | #include <conftest.h> |
| 16802 | _ACEOF |
| 16803 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16804 | gl_cv_have_include_next=yes |
| 16805 | else |
| 16806 | CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2" |
| 16807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16808 | /* end confdefs.h. */ |
| 16809 | #include <conftest.h> |
| 16810 | _ACEOF |
| 16811 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16812 | gl_cv_have_include_next=buggy |
| 16813 | else |
| 16814 | gl_cv_have_include_next=no |
| 16815 | fi |
| 16816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16817 | |
| 16818 | fi |
| 16819 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16820 | CPPFLAGS="$gl_save_CPPFLAGS" |
| 16821 | rm -rf conftestd1a conftestd1b conftestd2 |
| 16822 | |
| 16823 | fi |
| 16824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5 |
| 16825 | $as_echo "$gl_cv_have_include_next" >&6; } |
| 16826 | PRAGMA_SYSTEM_HEADER= |
| 16827 | if test $gl_cv_have_include_next = yes; then |
| 16828 | INCLUDE_NEXT=include_next |
| 16829 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 16830 | if test -n "$GCC"; then |
| 16831 | PRAGMA_SYSTEM_HEADER='#pragma GCC system_header' |
| 16832 | fi |
| 16833 | else |
| 16834 | if test $gl_cv_have_include_next = buggy; then |
| 16835 | INCLUDE_NEXT=include |
| 16836 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next |
| 16837 | else |
| 16838 | INCLUDE_NEXT=include |
| 16839 | INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include |
| 16840 | fi |
| 16841 | fi |
| 16842 | |
| 16843 | |
| 16844 | |
| 16845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5 |
| 16846 | $as_echo_n "checking whether system header files limit the line length... " >&6; } |
| 16847 | if test "${gl_cv_pragma_columns+set}" = set; then : |
| 16848 | $as_echo_n "(cached) " >&6 |
| 16849 | else |
| 16850 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16851 | /* end confdefs.h. */ |
| 16852 | |
| 16853 | #ifdef __TANDEM |
| 16854 | choke me |
| 16855 | #endif |
| 16856 | |
| 16857 | _ACEOF |
| 16858 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 16859 | $EGREP "choke me" >/dev/null 2>&1; then : |
| 16860 | gl_cv_pragma_columns=yes |
| 16861 | else |
| 16862 | gl_cv_pragma_columns=no |
| 16863 | fi |
| 16864 | rm -f conftest* |
| 16865 | |
| 16866 | |
| 16867 | fi |
| 16868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5 |
| 16869 | $as_echo "$gl_cv_pragma_columns" >&6; } |
| 16870 | if test $gl_cv_pragma_columns = yes; then |
| 16871 | PRAGMA_COLUMNS="#pragma COLUMNS 10000" |
| 16872 | else |
| 16873 | PRAGMA_COLUMNS= |
| 16874 | fi |
| 16875 | |
| 16876 | |
| 16877 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" |
| 16878 | if test "x$ac_cv_type_mode_t" = x""yes; then : |
| 16879 | |
| 16880 | else |
| 16881 | |
| 16882 | cat >>confdefs.h <<_ACEOF |
| 16883 | #define mode_t int |
| 16884 | _ACEOF |
| 16885 | |
| 16886 | fi |
| 16887 | |
| 16888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_dm_mode in struct stat" >&5 |
| 16889 | $as_echo_n "checking for st_dm_mode in struct stat... " >&6; } |
| 16890 | if test "${ac_cv_struct_st_dm_mode+set}" = set; then : |
| 16891 | $as_echo_n "(cached) " >&6 |
| 16892 | else |
| 16893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 16894 | /* end confdefs.h. */ |
| 16895 | |
| 16896 | #include <sys/types.h> |
| 16897 | #include <sys/stat.h> |
| 16898 | int |
| 16899 | main () |
| 16900 | { |
| 16901 | struct stat s; s.st_dm_mode; |
| 16902 | ; |
| 16903 | return 0; |
| 16904 | } |
| 16905 | _ACEOF |
| 16906 | if ac_fn_c_try_compile "$LINENO"; then : |
| 16907 | ac_cv_struct_st_dm_mode=yes |
| 16908 | else |
| 16909 | ac_cv_struct_st_dm_mode=no |
| 16910 | fi |
| 16911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 16912 | fi |
| 16913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_st_dm_mode" >&5 |
| 16914 | $as_echo "$ac_cv_struct_st_dm_mode" >&6; } |
| 16915 | |
| 16916 | if test $ac_cv_struct_st_dm_mode = yes; then |
| 16917 | |
| 16918 | $as_echo "#define HAVE_ST_DM_MODE 1" >>confdefs.h |
| 16919 | |
| 16920 | fi |
| 16921 | |
| 16922 | |
| 16923 | ac_fn_c_check_decl "$LINENO" "strmode" "ac_cv_have_decl_strmode" "$ac_includes_default" |
| 16924 | if test "x$ac_cv_have_decl_strmode" = x""yes; then : |
| 16925 | ac_have_decl=1 |
| 16926 | else |
| 16927 | ac_have_decl=0 |
| 16928 | fi |
| 16929 | |
| 16930 | cat >>confdefs.h <<_ACEOF |
| 16931 | #define HAVE_DECL_STRMODE $ac_have_decl |
| 16932 | _ACEOF |
| 16933 | |
| 16934 | |
| 16935 | |
| 16936 | |
| 16937 | |
| 16938 | |
| 16939 | GNULIB__EXIT=0; |
| 16940 | GNULIB_ATOLL=0; |
| 16941 | GNULIB_CALLOC_POSIX=0; |
| 16942 | GNULIB_CANONICALIZE_FILE_NAME=0; |
| 16943 | GNULIB_GETLOADAVG=0; |
| 16944 | GNULIB_GETSUBOPT=0; |
| 16945 | GNULIB_GRANTPT=0; |
| 16946 | GNULIB_MALLOC_POSIX=0; |
| 16947 | GNULIB_MBTOWC=0; |
| 16948 | GNULIB_MKDTEMP=0; |
| 16949 | GNULIB_MKOSTEMP=0; |
| 16950 | GNULIB_MKOSTEMPS=0; |
| 16951 | GNULIB_MKSTEMP=0; |
| 16952 | GNULIB_MKSTEMPS=0; |
| 16953 | GNULIB_POSIX_OPENPT=0; |
| 16954 | GNULIB_PTSNAME=0; |
| 16955 | GNULIB_PTSNAME_R=0; |
| 16956 | GNULIB_PUTENV=0; |
| 16957 | GNULIB_RANDOM=0; |
| 16958 | GNULIB_RANDOM_R=0; |
| 16959 | GNULIB_REALLOC_POSIX=0; |
| 16960 | GNULIB_REALPATH=0; |
| 16961 | GNULIB_RPMATCH=0; |
| 16962 | GNULIB_SETENV=0; |
| 16963 | GNULIB_STRTOD=0; |
| 16964 | GNULIB_STRTOLL=0; |
| 16965 | GNULIB_STRTOULL=0; |
| 16966 | GNULIB_SYSTEM_POSIX=0; |
| 16967 | GNULIB_UNLOCKPT=0; |
| 16968 | GNULIB_UNSETENV=0; |
| 16969 | GNULIB_WCTOMB=0; |
| 16970 | HAVE__EXIT=1; |
| 16971 | HAVE_ATOLL=1; |
| 16972 | HAVE_CANONICALIZE_FILE_NAME=1; |
| 16973 | HAVE_DECL_GETLOADAVG=1; |
| 16974 | HAVE_GETSUBOPT=1; |
| 16975 | HAVE_GRANTPT=1; |
| 16976 | HAVE_MKDTEMP=1; |
| 16977 | HAVE_MKOSTEMP=1; |
| 16978 | HAVE_MKOSTEMPS=1; |
| 16979 | HAVE_MKSTEMP=1; |
| 16980 | HAVE_MKSTEMPS=1; |
| 16981 | HAVE_POSIX_OPENPT=1; |
| 16982 | HAVE_PTSNAME=1; |
| 16983 | HAVE_PTSNAME_R=1; |
| 16984 | HAVE_RANDOM=1; |
| 16985 | HAVE_RANDOM_H=1; |
| 16986 | HAVE_RANDOM_R=1; |
| 16987 | HAVE_REALPATH=1; |
| 16988 | HAVE_RPMATCH=1; |
| 16989 | HAVE_SETENV=1; |
| 16990 | HAVE_DECL_SETENV=1; |
| 16991 | HAVE_STRTOD=1; |
| 16992 | HAVE_STRTOLL=1; |
| 16993 | HAVE_STRTOULL=1; |
| 16994 | HAVE_STRUCT_RANDOM_DATA=1; |
| 16995 | HAVE_SYS_LOADAVG_H=0; |
| 16996 | HAVE_UNLOCKPT=1; |
| 16997 | HAVE_DECL_UNSETENV=1; |
| 16998 | REPLACE_CALLOC=0; |
| 16999 | REPLACE_CANONICALIZE_FILE_NAME=0; |
| 17000 | REPLACE_MALLOC=0; |
| 17001 | REPLACE_MBTOWC=0; |
| 17002 | REPLACE_MKSTEMP=0; |
| 17003 | REPLACE_PTSNAME=0; |
| 17004 | REPLACE_PTSNAME_R=0; |
| 17005 | REPLACE_PUTENV=0; |
| 17006 | REPLACE_RANDOM_R=0; |
| 17007 | REPLACE_REALLOC=0; |
| 17008 | REPLACE_REALPATH=0; |
| 17009 | REPLACE_SETENV=0; |
| 17010 | REPLACE_STRTOD=0; |
| 17011 | REPLACE_UNSETENV=0; |
| 17012 | REPLACE_WCTOMB=0; |
| 17013 | |
| 17014 | |
| 17015 | |
| 17016 | |
| 17017 | |
| 17018 | |
| 17019 | |
| 17020 | |
| 17021 | |
| 17022 | |
| 17023 | |
| 17024 | |
| 17025 | |
| 17026 | |
| 17027 | |
| 17028 | |
| 17029 | if test $gl_cv_have_include_next = yes; then |
| 17030 | gl_cv_next_getopt_h='<'getopt.h'>' |
| 17031 | else |
| 17032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5 |
| 17033 | $as_echo_n "checking absolute name of <getopt.h>... " >&6; } |
| 17034 | if test "${gl_cv_next_getopt_h+set}" = set; then : |
| 17035 | $as_echo_n "(cached) " >&6 |
| 17036 | else |
| 17037 | |
| 17038 | if test $ac_cv_header_getopt_h = yes; then |
| 17039 | |
| 17040 | |
| 17041 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17042 | /* end confdefs.h. */ |
| 17043 | #include <getopt.h> |
| 17044 | |
| 17045 | _ACEOF |
| 17046 | case "$host_os" in |
| 17047 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17048 | *) gl_absname_cpp="$ac_cpp" ;; |
| 17049 | esac |
| 17050 | |
| 17051 | case "$host_os" in |
| 17052 | mingw*) |
| 17053 | gl_dirsep_regex='[/\\]' |
| 17054 | ;; |
| 17055 | *) |
| 17056 | gl_dirsep_regex='\/' |
| 17057 | ;; |
| 17058 | esac |
| 17059 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17060 | |
| 17061 | gl_header_literal_regex=`echo 'getopt.h' \ |
| 17062 | | sed -e "$gl_make_literal_regex_sed"` |
| 17063 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17064 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17065 | s|^/[^/]|//&| |
| 17066 | p |
| 17067 | q |
| 17068 | }' |
| 17069 | gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17070 | sed -n "$gl_absolute_header_sed"`'"' |
| 17071 | else |
| 17072 | gl_cv_next_getopt_h='<'getopt.h'>' |
| 17073 | fi |
| 17074 | |
| 17075 | |
| 17076 | fi |
| 17077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5 |
| 17078 | $as_echo "$gl_cv_next_getopt_h" >&6; } |
| 17079 | fi |
| 17080 | NEXT_GETOPT_H=$gl_cv_next_getopt_h |
| 17081 | |
| 17082 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 17083 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17084 | gl_next_as_first_directive='<'getopt.h'>' |
| 17085 | else |
| 17086 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17087 | gl_next_as_first_directive=$gl_cv_next_getopt_h |
| 17088 | fi |
| 17089 | NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive |
| 17090 | |
| 17091 | |
| 17092 | |
| 17093 | |
| 17094 | if test $ac_cv_header_getopt_h = yes; then |
| 17095 | HAVE_GETOPT_H=1 |
| 17096 | else |
| 17097 | HAVE_GETOPT_H=0 |
| 17098 | fi |
| 17099 | |
| 17100 | |
| 17101 | gl_replace_getopt= |
| 17102 | |
| 17103 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 17104 | for ac_header in getopt.h |
| 17105 | do : |
| 17106 | ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" |
| 17107 | if test "x$ac_cv_header_getopt_h" = x""yes; then : |
| 17108 | cat >>confdefs.h <<_ACEOF |
| 17109 | #define HAVE_GETOPT_H 1 |
| 17110 | _ACEOF |
| 17111 | |
| 17112 | else |
| 17113 | gl_replace_getopt=yes |
| 17114 | fi |
| 17115 | |
| 17116 | done |
| 17117 | |
| 17118 | fi |
| 17119 | |
| 17120 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 17121 | for ac_func in getopt_long_only |
| 17122 | do : |
| 17123 | ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" |
| 17124 | if test "x$ac_cv_func_getopt_long_only" = x""yes; then : |
| 17125 | cat >>confdefs.h <<_ACEOF |
| 17126 | #define HAVE_GETOPT_LONG_ONLY 1 |
| 17127 | _ACEOF |
| 17128 | |
| 17129 | else |
| 17130 | gl_replace_getopt=yes |
| 17131 | fi |
| 17132 | done |
| 17133 | |
| 17134 | fi |
| 17135 | |
| 17136 | if test -z "$gl_replace_getopt"; then |
| 17137 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5 |
| 17138 | $as_echo_n "checking whether getopt is POSIX compatible... " >&6; } |
| 17139 | if test "${gl_cv_func_getopt_posix+set}" = set; then : |
| 17140 | $as_echo_n "(cached) " >&6 |
| 17141 | else |
| 17142 | |
| 17143 | if test $cross_compiling = no; then |
| 17144 | if test "$cross_compiling" = yes; then : |
| 17145 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17146 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17147 | as_fn_error "cannot run test program while cross compiling |
| 17148 | See \`config.log' for more details." "$LINENO" 5; } |
| 17149 | else |
| 17150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17151 | /* end confdefs.h. */ |
| 17152 | |
| 17153 | #include <unistd.h> |
| 17154 | #include <stdlib.h> |
| 17155 | #include <string.h> |
| 17156 | |
| 17157 | int |
| 17158 | main () |
| 17159 | { |
| 17160 | static char program[] = "program"; |
| 17161 | static char a[] = "-a"; |
| 17162 | static char foo[] = "foo"; |
| 17163 | static char bar[] = "bar"; |
| 17164 | char *argv[] = { program, a, foo, bar, NULL }; |
| 17165 | int c; |
| 17166 | |
| 17167 | c = getopt (4, argv, "ab"); |
| 17168 | if (!(c == 'a')) |
| 17169 | return 1; |
| 17170 | c = getopt (4, argv, "ab"); |
| 17171 | if (!(c == -1)) |
| 17172 | return 2; |
| 17173 | if (!(optind == 2)) |
| 17174 | return 3; |
| 17175 | return 0; |
| 17176 | } |
| 17177 | |
| 17178 | _ACEOF |
| 17179 | if ac_fn_c_try_run "$LINENO"; then : |
| 17180 | gl_cv_func_getopt_posix=maybe |
| 17181 | else |
| 17182 | gl_cv_func_getopt_posix=no |
| 17183 | fi |
| 17184 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17185 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17186 | fi |
| 17187 | |
| 17188 | if test $gl_cv_func_getopt_posix = maybe; then |
| 17189 | if test "$cross_compiling" = yes; then : |
| 17190 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17191 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17192 | as_fn_error "cannot run test program while cross compiling |
| 17193 | See \`config.log' for more details." "$LINENO" 5; } |
| 17194 | else |
| 17195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17196 | /* end confdefs.h. */ |
| 17197 | |
| 17198 | #include <unistd.h> |
| 17199 | #include <stdlib.h> |
| 17200 | #include <string.h> |
| 17201 | |
| 17202 | int |
| 17203 | main () |
| 17204 | { |
| 17205 | static char program[] = "program"; |
| 17206 | static char donald[] = "donald"; |
| 17207 | static char p[] = "-p"; |
| 17208 | static char billy[] = "billy"; |
| 17209 | static char duck[] = "duck"; |
| 17210 | static char a[] = "-a"; |
| 17211 | static char bar[] = "bar"; |
| 17212 | char *argv[] = { program, donald, p, billy, duck, a, bar, NULL }; |
| 17213 | int c; |
| 17214 | |
| 17215 | c = getopt (7, argv, "+abp:q:"); |
| 17216 | if (!(c == -1)) |
| 17217 | return 4; |
| 17218 | if (!(strcmp (argv[0], "program") == 0)) |
| 17219 | return 5; |
| 17220 | if (!(strcmp (argv[1], "donald") == 0)) |
| 17221 | return 6; |
| 17222 | if (!(strcmp (argv[2], "-p") == 0)) |
| 17223 | return 7; |
| 17224 | if (!(strcmp (argv[3], "billy") == 0)) |
| 17225 | return 8; |
| 17226 | if (!(strcmp (argv[4], "duck") == 0)) |
| 17227 | return 9; |
| 17228 | if (!(strcmp (argv[5], "-a") == 0)) |
| 17229 | return 10; |
| 17230 | if (!(strcmp (argv[6], "bar") == 0)) |
| 17231 | return 11; |
| 17232 | if (!(optind == 1)) |
| 17233 | return 12; |
| 17234 | return 0; |
| 17235 | } |
| 17236 | |
| 17237 | _ACEOF |
| 17238 | if ac_fn_c_try_run "$LINENO"; then : |
| 17239 | gl_cv_func_getopt_posix=maybe |
| 17240 | else |
| 17241 | gl_cv_func_getopt_posix=no |
| 17242 | fi |
| 17243 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17244 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17245 | fi |
| 17246 | |
| 17247 | fi |
| 17248 | if test $gl_cv_func_getopt_posix = maybe; then |
| 17249 | if test "$cross_compiling" = yes; then : |
| 17250 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 17251 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 17252 | as_fn_error "cannot run test program while cross compiling |
| 17253 | See \`config.log' for more details." "$LINENO" 5; } |
| 17254 | else |
| 17255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17256 | /* end confdefs.h. */ |
| 17257 | |
| 17258 | #include <unistd.h> |
| 17259 | #include <stdlib.h> |
| 17260 | #include <string.h> |
| 17261 | |
| 17262 | int |
| 17263 | main () |
| 17264 | { |
| 17265 | static char program[] = "program"; |
| 17266 | static char ab[] = "-ab"; |
| 17267 | char *argv[3] = { program, ab, NULL }; |
| 17268 | if (getopt (2, argv, "ab:") != 'a') |
| 17269 | return 13; |
| 17270 | if (getopt (2, argv, "ab:") != '?') |
| 17271 | return 14; |
| 17272 | if (optopt != 'b') |
| 17273 | return 15; |
| 17274 | if (optind != 2) |
| 17275 | return 16; |
| 17276 | return 0; |
| 17277 | } |
| 17278 | |
| 17279 | _ACEOF |
| 17280 | if ac_fn_c_try_run "$LINENO"; then : |
| 17281 | gl_cv_func_getopt_posix=yes |
| 17282 | else |
| 17283 | gl_cv_func_getopt_posix=no |
| 17284 | fi |
| 17285 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17286 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17287 | fi |
| 17288 | |
| 17289 | fi |
| 17290 | else |
| 17291 | case "$host_os" in |
| 17292 | darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";; |
| 17293 | *) gl_cv_func_getopt_posix="guessing yes";; |
| 17294 | esac |
| 17295 | fi |
| 17296 | |
| 17297 | fi |
| 17298 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5 |
| 17299 | $as_echo "$gl_cv_func_getopt_posix" >&6; } |
| 17300 | case "$gl_cv_func_getopt_posix" in |
| 17301 | *no) gl_replace_getopt=yes ;; |
| 17302 | esac |
| 17303 | fi |
| 17304 | |
| 17305 | if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then |
| 17306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 |
| 17307 | $as_echo_n "checking for working GNU getopt function... " >&6; } |
| 17308 | if test "${gl_cv_func_getopt_gnu+set}" = set; then : |
| 17309 | $as_echo_n "(cached) " >&6 |
| 17310 | else |
| 17311 | # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the |
| 17312 | # optstring is necessary for programs like m4 that have POSIX-mandated |
| 17313 | # semantics for supporting options interspersed with files. |
| 17314 | # Also, since getopt_long is a GNU extension, we require optind=0. |
| 17315 | # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT; |
| 17316 | # so take care to revert to the correct (non-)export state. |
| 17317 | gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }' |
| 17318 | case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in |
| 17319 | xx) gl_had_POSIXLY_CORRECT=exported ;; |
| 17320 | x) gl_had_POSIXLY_CORRECT=yes ;; |
| 17321 | *) gl_had_POSIXLY_CORRECT= ;; |
| 17322 | esac |
| 17323 | POSIXLY_CORRECT=1 |
| 17324 | export POSIXLY_CORRECT |
| 17325 | if test "$cross_compiling" = yes; then : |
| 17326 | gl_cv_func_getopt_gnu="guessing no" |
| 17327 | |
| 17328 | else |
| 17329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17330 | /* end confdefs.h. */ |
| 17331 | #include <getopt.h> |
| 17332 | #include <stddef.h> |
| 17333 | #include <string.h> |
| 17334 | |
| 17335 | #include <stdlib.h> |
| 17336 | #if defined __MACH__ && defined __APPLE__ |
| 17337 | /* Avoid a crash on Mac OS X. */ |
| 17338 | #include <mach/mach.h> |
| 17339 | #include <mach/mach_error.h> |
| 17340 | #include <mach/thread_status.h> |
| 17341 | #include <mach/exception.h> |
| 17342 | #include <mach/task.h> |
| 17343 | #include <pthread.h> |
| 17344 | /* The exception port on which our thread listens. */ |
| 17345 | static mach_port_t our_exception_port; |
| 17346 | /* The main function of the thread listening for exceptions of type |
| 17347 | EXC_BAD_ACCESS. */ |
| 17348 | static void * |
| 17349 | mach_exception_thread (void *arg) |
| 17350 | { |
| 17351 | /* Buffer for a message to be received. */ |
| 17352 | struct { |
| 17353 | mach_msg_header_t head; |
| 17354 | mach_msg_body_t msgh_body; |
| 17355 | char data[1024]; |
| 17356 | } msg; |
| 17357 | mach_msg_return_t retval; |
| 17358 | /* Wait for a message on the exception port. */ |
| 17359 | retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg), |
| 17360 | our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL); |
| 17361 | if (retval != MACH_MSG_SUCCESS) |
| 17362 | abort (); |
| 17363 | exit (1); |
| 17364 | } |
| 17365 | static void |
| 17366 | nocrash_init (void) |
| 17367 | { |
| 17368 | mach_port_t self = mach_task_self (); |
| 17369 | /* Allocate a port on which the thread shall listen for exceptions. */ |
| 17370 | if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port) |
| 17371 | == KERN_SUCCESS) { |
| 17372 | /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */ |
| 17373 | if (mach_port_insert_right (self, our_exception_port, our_exception_port, |
| 17374 | MACH_MSG_TYPE_MAKE_SEND) |
| 17375 | == KERN_SUCCESS) { |
| 17376 | /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting |
| 17377 | for us. */ |
| 17378 | exception_mask_t mask = EXC_MASK_BAD_ACCESS; |
| 17379 | /* Create the thread listening on the exception port. */ |
| 17380 | pthread_attr_t attr; |
| 17381 | pthread_t thread; |
| 17382 | if (pthread_attr_init (&attr) == 0 |
| 17383 | && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0 |
| 17384 | && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) { |
| 17385 | pthread_attr_destroy (&attr); |
| 17386 | /* Replace the exception port info for these exceptions with our own. |
| 17387 | Note that we replace the exception port for the entire task, not only |
| 17388 | for a particular thread. This has the effect that when our exception |
| 17389 | port gets the message, the thread specific exception port has already |
| 17390 | been asked, and we don't need to bother about it. |
| 17391 | See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */ |
| 17392 | task_set_exception_ports (self, mask, our_exception_port, |
| 17393 | EXCEPTION_DEFAULT, MACHINE_THREAD_STATE); |
| 17394 | } |
| 17395 | } |
| 17396 | } |
| 17397 | } |
| 17398 | #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ |
| 17399 | /* Avoid a crash on native Windows. */ |
| 17400 | #define WIN32_LEAN_AND_MEAN |
| 17401 | #include <windows.h> |
| 17402 | #include <winerror.h> |
| 17403 | static LONG WINAPI |
| 17404 | exception_filter (EXCEPTION_POINTERS *ExceptionInfo) |
| 17405 | { |
| 17406 | switch (ExceptionInfo->ExceptionRecord->ExceptionCode) |
| 17407 | { |
| 17408 | case EXCEPTION_ACCESS_VIOLATION: |
| 17409 | case EXCEPTION_IN_PAGE_ERROR: |
| 17410 | case EXCEPTION_STACK_OVERFLOW: |
| 17411 | case EXCEPTION_GUARD_PAGE: |
| 17412 | case EXCEPTION_PRIV_INSTRUCTION: |
| 17413 | case EXCEPTION_ILLEGAL_INSTRUCTION: |
| 17414 | case EXCEPTION_DATATYPE_MISALIGNMENT: |
| 17415 | case EXCEPTION_ARRAY_BOUNDS_EXCEEDED: |
| 17416 | case EXCEPTION_NONCONTINUABLE_EXCEPTION: |
| 17417 | exit (1); |
| 17418 | } |
| 17419 | return EXCEPTION_CONTINUE_SEARCH; |
| 17420 | } |
| 17421 | static void |
| 17422 | nocrash_init (void) |
| 17423 | { |
| 17424 | SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter); |
| 17425 | } |
| 17426 | #else |
| 17427 | /* Avoid a crash on POSIX systems. */ |
| 17428 | #include <signal.h> |
| 17429 | /* A POSIX signal handler. */ |
| 17430 | static void |
| 17431 | exception_handler (int sig) |
| 17432 | { |
| 17433 | exit (1); |
| 17434 | } |
| 17435 | static void |
| 17436 | nocrash_init (void) |
| 17437 | { |
| 17438 | #ifdef SIGSEGV |
| 17439 | signal (SIGSEGV, exception_handler); |
| 17440 | #endif |
| 17441 | #ifdef SIGBUS |
| 17442 | signal (SIGBUS, exception_handler); |
| 17443 | #endif |
| 17444 | } |
| 17445 | #endif |
| 17446 | |
| 17447 | |
| 17448 | int |
| 17449 | main () |
| 17450 | { |
| 17451 | |
| 17452 | int result = 0; |
| 17453 | |
| 17454 | nocrash_init(); |
| 17455 | |
| 17456 | /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw, |
| 17457 | and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5, |
| 17458 | OSF/1 5.1, Solaris 10. */ |
| 17459 | { |
| 17460 | static char conftest[] = "conftest"; |
| 17461 | static char plus[] = "-+"; |
| 17462 | char *argv[3] = { conftest, plus, NULL }; |
| 17463 | opterr = 0; |
| 17464 | if (getopt (2, argv, "+a") != '?') |
| 17465 | result |= 1; |
| 17466 | } |
| 17467 | /* This code succeeds on glibc 2.8, mingw, |
| 17468 | and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11, |
| 17469 | IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */ |
| 17470 | { |
| 17471 | static char program[] = "program"; |
| 17472 | static char p[] = "-p"; |
| 17473 | static char foo[] = "foo"; |
| 17474 | static char bar[] = "bar"; |
| 17475 | char *argv[] = { program, p, foo, bar, NULL }; |
| 17476 | |
| 17477 | optind = 1; |
| 17478 | if (getopt (4, argv, "p::") != 'p') |
| 17479 | result |= 2; |
| 17480 | else if (optarg != NULL) |
| 17481 | result |= 4; |
| 17482 | else if (getopt (4, argv, "p::") != -1) |
| 17483 | result |= 6; |
| 17484 | else if (optind != 2) |
| 17485 | result |= 8; |
| 17486 | } |
| 17487 | /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */ |
| 17488 | { |
| 17489 | static char program[] = "program"; |
| 17490 | static char foo[] = "foo"; |
| 17491 | static char p[] = "-p"; |
| 17492 | char *argv[] = { program, foo, p, NULL }; |
| 17493 | optind = 0; |
| 17494 | if (getopt (3, argv, "-p") != 1) |
| 17495 | result |= 16; |
| 17496 | else if (getopt (3, argv, "-p") != 'p') |
| 17497 | result |= 16; |
| 17498 | } |
| 17499 | /* This code fails on glibc 2.11. */ |
| 17500 | { |
| 17501 | static char program[] = "program"; |
| 17502 | static char b[] = "-b"; |
| 17503 | static char a[] = "-a"; |
| 17504 | char *argv[] = { program, b, a, NULL }; |
| 17505 | optind = opterr = 0; |
| 17506 | if (getopt (3, argv, "+:a:b") != 'b') |
| 17507 | result |= 32; |
| 17508 | else if (getopt (3, argv, "+:a:b") != ':') |
| 17509 | result |= 32; |
| 17510 | } |
| 17511 | /* This code dumps core on glibc 2.14. */ |
| 17512 | { |
| 17513 | static char program[] = "program"; |
| 17514 | static char w[] = "-W"; |
| 17515 | static char dummy[] = "dummy"; |
| 17516 | char *argv[] = { program, w, dummy, NULL }; |
| 17517 | optind = opterr = 1; |
| 17518 | if (getopt (3, argv, "W;") != 'W') |
| 17519 | result |= 64; |
| 17520 | } |
| 17521 | return result; |
| 17522 | |
| 17523 | ; |
| 17524 | return 0; |
| 17525 | } |
| 17526 | _ACEOF |
| 17527 | if ac_fn_c_try_run "$LINENO"; then : |
| 17528 | gl_cv_func_getopt_gnu=yes |
| 17529 | else |
| 17530 | gl_cv_func_getopt_gnu=no |
| 17531 | fi |
| 17532 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17533 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17534 | fi |
| 17535 | |
| 17536 | case $gl_had_POSIXLY_CORRECT in |
| 17537 | exported) ;; |
| 17538 | yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;; |
| 17539 | *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;; |
| 17540 | esac |
| 17541 | |
| 17542 | fi |
| 17543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5 |
| 17544 | $as_echo "$gl_cv_func_getopt_gnu" >&6; } |
| 17545 | if test "$gl_cv_func_getopt_gnu" != yes; then |
| 17546 | gl_replace_getopt=yes |
| 17547 | else |
| 17548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5 |
| 17549 | $as_echo_n "checking for working GNU getopt_long function... " >&6; } |
| 17550 | if test "${gl_cv_func_getopt_long_gnu+set}" = set; then : |
| 17551 | $as_echo_n "(cached) " >&6 |
| 17552 | else |
| 17553 | if test "$cross_compiling" = yes; then : |
| 17554 | case "$host_os" in |
| 17555 | openbsd*) gl_cv_func_getopt_long_gnu="guessing no";; |
| 17556 | *) gl_cv_func_getopt_long_gnu="guessing yes";; |
| 17557 | esac |
| 17558 | |
| 17559 | else |
| 17560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17561 | /* end confdefs.h. */ |
| 17562 | #include <getopt.h> |
| 17563 | #include <stddef.h> |
| 17564 | #include <string.h> |
| 17565 | |
| 17566 | int |
| 17567 | main () |
| 17568 | { |
| 17569 | static const struct option long_options[] = |
| 17570 | { |
| 17571 | { "xtremely-",no_argument, NULL, 1003 }, |
| 17572 | { "xtra", no_argument, NULL, 1001 }, |
| 17573 | { "xtreme", no_argument, NULL, 1002 }, |
| 17574 | { "xtremely", no_argument, NULL, 1003 }, |
| 17575 | { NULL, 0, NULL, 0 } |
| 17576 | }; |
| 17577 | /* This code fails on OpenBSD 5.0. */ |
| 17578 | { |
| 17579 | static char program[] = "program"; |
| 17580 | static char xtremel[] = "--xtremel"; |
| 17581 | char *argv[] = { program, xtremel, NULL }; |
| 17582 | int option_index; |
| 17583 | optind = 1; opterr = 0; |
| 17584 | if (getopt_long (2, argv, "", long_options, &option_index) != 1003) |
| 17585 | return 1; |
| 17586 | } |
| 17587 | return 0; |
| 17588 | |
| 17589 | ; |
| 17590 | return 0; |
| 17591 | } |
| 17592 | _ACEOF |
| 17593 | if ac_fn_c_try_run "$LINENO"; then : |
| 17594 | gl_cv_func_getopt_long_gnu=yes |
| 17595 | else |
| 17596 | gl_cv_func_getopt_long_gnu=no |
| 17597 | fi |
| 17598 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 17599 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 17600 | fi |
| 17601 | |
| 17602 | |
| 17603 | fi |
| 17604 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5 |
| 17605 | $as_echo "$gl_cv_func_getopt_long_gnu" >&6; } |
| 17606 | case "$gl_cv_func_getopt_long_gnu" in |
| 17607 | *yes) ;; |
| 17608 | *) gl_replace_getopt=yes ;; |
| 17609 | esac |
| 17610 | fi |
| 17611 | fi |
| 17612 | |
| 17613 | |
| 17614 | |
| 17615 | |
| 17616 | |
| 17617 | |
| 17618 | REPLACE_GETOPT=0 |
| 17619 | if test -n "$gl_replace_getopt"; then |
| 17620 | REPLACE_GETOPT=1 |
| 17621 | fi |
| 17622 | |
| 17623 | if test $REPLACE_GETOPT = 1; then |
| 17624 | |
| 17625 | GETOPT_H=getopt.h |
| 17626 | |
| 17627 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 17628 | |
| 17629 | |
| 17630 | |
| 17631 | fi |
| 17632 | |
| 17633 | ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default" |
| 17634 | if test "x$ac_cv_have_decl_getenv" = x""yes; then : |
| 17635 | ac_have_decl=1 |
| 17636 | else |
| 17637 | ac_have_decl=0 |
| 17638 | fi |
| 17639 | |
| 17640 | cat >>confdefs.h <<_ACEOF |
| 17641 | #define HAVE_DECL_GETENV $ac_have_decl |
| 17642 | _ACEOF |
| 17643 | |
| 17644 | : |
| 17645 | |
| 17646 | |
| 17647 | |
| 17648 | |
| 17649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 |
| 17650 | $as_echo_n "checking for C/C++ restrict keyword... " >&6; } |
| 17651 | if test "${ac_cv_c_restrict+set}" = set; then : |
| 17652 | $as_echo_n "(cached) " >&6 |
| 17653 | else |
| 17654 | ac_cv_c_restrict=no |
| 17655 | # The order here caters to the fact that C++ does not require restrict. |
| 17656 | for ac_kw in __restrict __restrict__ _Restrict restrict; do |
| 17657 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17658 | /* end confdefs.h. */ |
| 17659 | typedef int * int_ptr; |
| 17660 | int foo (int_ptr $ac_kw ip) { |
| 17661 | return ip[0]; |
| 17662 | } |
| 17663 | int |
| 17664 | main () |
| 17665 | { |
| 17666 | int s[1]; |
| 17667 | int * $ac_kw t = s; |
| 17668 | t[0] = 0; |
| 17669 | return foo(t) |
| 17670 | ; |
| 17671 | return 0; |
| 17672 | } |
| 17673 | _ACEOF |
| 17674 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17675 | ac_cv_c_restrict=$ac_kw |
| 17676 | fi |
| 17677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17678 | test "$ac_cv_c_restrict" != no && break |
| 17679 | done |
| 17680 | |
| 17681 | fi |
| 17682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 |
| 17683 | $as_echo "$ac_cv_c_restrict" >&6; } |
| 17684 | |
| 17685 | case $ac_cv_c_restrict in |
| 17686 | restrict) ;; |
| 17687 | no) $as_echo "#define restrict /**/" >>confdefs.h |
| 17688 | ;; |
| 17689 | *) cat >>confdefs.h <<_ACEOF |
| 17690 | #define restrict $ac_cv_c_restrict |
| 17691 | _ACEOF |
| 17692 | ;; |
| 17693 | esac |
| 17694 | |
| 17695 | |
| 17696 | GNULIB_GETTIMEOFDAY=0; |
| 17697 | HAVE_GETTIMEOFDAY=1; |
| 17698 | HAVE_STRUCT_TIMEVAL=1; |
| 17699 | HAVE_SYS_TIME_H=1; |
| 17700 | REPLACE_GETTIMEOFDAY=0; |
| 17701 | REPLACE_STRUCT_TIMEVAL=0; |
| 17702 | |
| 17703 | |
| 17704 | |
| 17705 | |
| 17706 | |
| 17707 | |
| 17708 | |
| 17709 | |
| 17710 | |
| 17711 | |
| 17712 | |
| 17713 | |
| 17714 | |
| 17715 | |
| 17716 | |
| 17717 | |
| 17718 | if test $gl_cv_have_include_next = yes; then |
| 17719 | gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 17720 | else |
| 17721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5 |
| 17722 | $as_echo_n "checking absolute name of <sys/time.h>... " >&6; } |
| 17723 | if test "${gl_cv_next_sys_time_h+set}" = set; then : |
| 17724 | $as_echo_n "(cached) " >&6 |
| 17725 | else |
| 17726 | |
| 17727 | if test $ac_cv_header_sys_time_h = yes; then |
| 17728 | |
| 17729 | |
| 17730 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17731 | /* end confdefs.h. */ |
| 17732 | #include <sys/time.h> |
| 17733 | |
| 17734 | _ACEOF |
| 17735 | case "$host_os" in |
| 17736 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 17737 | *) gl_absname_cpp="$ac_cpp" ;; |
| 17738 | esac |
| 17739 | |
| 17740 | case "$host_os" in |
| 17741 | mingw*) |
| 17742 | gl_dirsep_regex='[/\\]' |
| 17743 | ;; |
| 17744 | *) |
| 17745 | gl_dirsep_regex='\/' |
| 17746 | ;; |
| 17747 | esac |
| 17748 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 17749 | |
| 17750 | gl_header_literal_regex=`echo 'sys/time.h' \ |
| 17751 | | sed -e "$gl_make_literal_regex_sed"` |
| 17752 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 17753 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 17754 | s|^/[^/]|//&| |
| 17755 | p |
| 17756 | q |
| 17757 | }' |
| 17758 | gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 17759 | sed -n "$gl_absolute_header_sed"`'"' |
| 17760 | else |
| 17761 | gl_cv_next_sys_time_h='<'sys/time.h'>' |
| 17762 | fi |
| 17763 | |
| 17764 | |
| 17765 | fi |
| 17766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5 |
| 17767 | $as_echo "$gl_cv_next_sys_time_h" >&6; } |
| 17768 | fi |
| 17769 | NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h |
| 17770 | |
| 17771 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 17772 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 17773 | gl_next_as_first_directive='<'sys/time.h'>' |
| 17774 | else |
| 17775 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 17776 | gl_next_as_first_directive=$gl_cv_next_sys_time_h |
| 17777 | fi |
| 17778 | NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive |
| 17779 | |
| 17780 | |
| 17781 | |
| 17782 | |
| 17783 | |
| 17784 | if test $ac_cv_header_sys_time_h != yes; then |
| 17785 | HAVE_SYS_TIME_H=0 |
| 17786 | fi |
| 17787 | |
| 17788 | |
| 17789 | |
| 17790 | |
| 17791 | |
| 17792 | if test $ac_cv_header_sys_socket_h != yes; then |
| 17793 | for ac_header in winsock2.h |
| 17794 | do : |
| 17795 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 17796 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 17797 | cat >>confdefs.h <<_ACEOF |
| 17798 | #define HAVE_WINSOCK2_H 1 |
| 17799 | _ACEOF |
| 17800 | |
| 17801 | fi |
| 17802 | |
| 17803 | done |
| 17804 | |
| 17805 | fi |
| 17806 | if test "$ac_cv_header_winsock2_h" = yes; then |
| 17807 | HAVE_WINSOCK2_H=1 |
| 17808 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 17809 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 17810 | else |
| 17811 | HAVE_WINSOCK2_H=0 |
| 17812 | fi |
| 17813 | |
| 17814 | |
| 17815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 |
| 17816 | $as_echo_n "checking for struct timeval... " >&6; } |
| 17817 | if test "${gl_cv_sys_struct_timeval+set}" = set; then : |
| 17818 | $as_echo_n "(cached) " >&6 |
| 17819 | else |
| 17820 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17821 | /* end confdefs.h. */ |
| 17822 | #if HAVE_SYS_TIME_H |
| 17823 | #include <sys/time.h> |
| 17824 | #endif |
| 17825 | #include <time.h> |
| 17826 | #if HAVE_WINSOCK2_H |
| 17827 | # include <winsock2.h> |
| 17828 | #endif |
| 17829 | |
| 17830 | int |
| 17831 | main () |
| 17832 | { |
| 17833 | static struct timeval x; x.tv_sec = x.tv_usec; |
| 17834 | ; |
| 17835 | return 0; |
| 17836 | } |
| 17837 | _ACEOF |
| 17838 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17839 | gl_cv_sys_struct_timeval=yes |
| 17840 | else |
| 17841 | gl_cv_sys_struct_timeval=no |
| 17842 | fi |
| 17843 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17844 | |
| 17845 | fi |
| 17846 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5 |
| 17847 | $as_echo "$gl_cv_sys_struct_timeval" >&6; } |
| 17848 | if test $gl_cv_sys_struct_timeval != yes; then |
| 17849 | HAVE_STRUCT_TIMEVAL=0 |
| 17850 | else |
| 17851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5 |
| 17852 | $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; } |
| 17853 | if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then : |
| 17854 | $as_echo_n "(cached) " >&6 |
| 17855 | else |
| 17856 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17857 | /* end confdefs.h. */ |
| 17858 | #if HAVE_SYS_TIME_H |
| 17859 | #include <sys/time.h> |
| 17860 | #endif |
| 17861 | #include <time.h> |
| 17862 | #if HAVE_WINSOCK2_H |
| 17863 | # include <winsock2.h> |
| 17864 | #endif |
| 17865 | |
| 17866 | int |
| 17867 | main () |
| 17868 | { |
| 17869 | static struct timeval x; |
| 17870 | typedef int verify_tv_sec_type[ |
| 17871 | sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1 |
| 17872 | ]; |
| 17873 | |
| 17874 | ; |
| 17875 | return 0; |
| 17876 | } |
| 17877 | _ACEOF |
| 17878 | if ac_fn_c_try_compile "$LINENO"; then : |
| 17879 | gl_cv_sys_struct_timeval_tv_sec=yes |
| 17880 | else |
| 17881 | gl_cv_sys_struct_timeval_tv_sec=no |
| 17882 | fi |
| 17883 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 17884 | |
| 17885 | fi |
| 17886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5 |
| 17887 | $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; } |
| 17888 | if test $gl_cv_sys_struct_timeval_tv_sec != yes; then |
| 17889 | REPLACE_STRUCT_TIMEVAL=1 |
| 17890 | fi |
| 17891 | fi |
| 17892 | |
| 17893 | |
| 17894 | |
| 17895 | |
| 17896 | |
| 17897 | |
| 17898 | |
| 17899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 |
| 17900 | $as_echo_n "checking for unsigned long long int... " >&6; } |
| 17901 | if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : |
| 17902 | $as_echo_n "(cached) " >&6 |
| 17903 | else |
| 17904 | ac_cv_type_unsigned_long_long_int=yes |
| 17905 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 17906 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17907 | /* end confdefs.h. */ |
| 17908 | |
| 17909 | /* For now, do not test the preprocessor; as of 2007 there are too many |
| 17910 | implementations with broken preprocessors. Perhaps this can |
| 17911 | be revisited in 2012. In the meantime, code should not expect |
| 17912 | #if to work with literals wider than 32 bits. */ |
| 17913 | /* Test literals. */ |
| 17914 | long long int ll = 9223372036854775807ll; |
| 17915 | long long int nll = -9223372036854775807LL; |
| 17916 | unsigned long long int ull = 18446744073709551615ULL; |
| 17917 | /* Test constant expressions. */ |
| 17918 | typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) |
| 17919 | ? 1 : -1)]; |
| 17920 | typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 |
| 17921 | ? 1 : -1)]; |
| 17922 | int i = 63; |
| 17923 | int |
| 17924 | main () |
| 17925 | { |
| 17926 | /* Test availability of runtime routines for shift and division. */ |
| 17927 | long long int llmax = 9223372036854775807ll; |
| 17928 | unsigned long long int ullmax = 18446744073709551615ull; |
| 17929 | return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) |
| 17930 | | (llmax / ll) | (llmax % ll) |
| 17931 | | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) |
| 17932 | | (ullmax / ull) | (ullmax % ull)); |
| 17933 | ; |
| 17934 | return 0; |
| 17935 | } |
| 17936 | |
| 17937 | _ACEOF |
| 17938 | if ac_fn_c_try_link "$LINENO"; then : |
| 17939 | |
| 17940 | else |
| 17941 | ac_cv_type_unsigned_long_long_int=no |
| 17942 | fi |
| 17943 | rm -f core conftest.err conftest.$ac_objext \ |
| 17944 | conftest$ac_exeext conftest.$ac_ext |
| 17945 | fi |
| 17946 | fi |
| 17947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 |
| 17948 | $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } |
| 17949 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 17950 | |
| 17951 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h |
| 17952 | |
| 17953 | fi |
| 17954 | |
| 17955 | |
| 17956 | |
| 17957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 |
| 17958 | $as_echo_n "checking for long long int... " >&6; } |
| 17959 | if test "${ac_cv_type_long_long_int+set}" = set; then : |
| 17960 | $as_echo_n "(cached) " >&6 |
| 17961 | else |
| 17962 | ac_cv_type_long_long_int=yes |
| 17963 | if test "x${ac_cv_prog_cc_c99-no}" = xno; then |
| 17964 | ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int |
| 17965 | if test $ac_cv_type_long_long_int = yes; then |
| 17966 | if test "$cross_compiling" = yes; then : |
| 17967 | : |
| 17968 | else |
| 17969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 17970 | /* end confdefs.h. */ |
| 17971 | #include <limits.h> |
| 17972 | #ifndef LLONG_MAX |
| 17973 | # define HALF \ |
| 17974 | (1LL << (sizeof (long long int) * CHAR_BIT - 2)) |
| 17975 | # define LLONG_MAX (HALF - 1 + HALF) |
| 17976 | #endif |
| 17977 | int |
| 17978 | main () |
| 17979 | { |
| 17980 | long long int n = 1; |
| 17981 | int i; |
| 17982 | for (i = 0; ; i++) |
| 17983 | { |
| 17984 | long long int m = n << i; |
| 17985 | if (m >> i != n) |
| 17986 | return 1; |
| 17987 | if (LLONG_MAX / 2 < m) |
| 17988 | break; |
| 17989 | } |
| 17990 | return 0; |
| 17991 | ; |
| 17992 | return 0; |
| 17993 | } |
| 17994 | _ACEOF |
| 17995 | if ac_fn_c_try_run "$LINENO"; then : |
| 17996 | |
| 17997 | else |
| 17998 | ac_cv_type_long_long_int=no |
| 17999 | fi |
| 18000 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18001 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18002 | fi |
| 18003 | |
| 18004 | fi |
| 18005 | fi |
| 18006 | fi |
| 18007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 |
| 18008 | $as_echo "$ac_cv_type_long_long_int" >&6; } |
| 18009 | if test $ac_cv_type_long_long_int = yes; then |
| 18010 | |
| 18011 | $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h |
| 18012 | |
| 18013 | fi |
| 18014 | |
| 18015 | |
| 18016 | |
| 18017 | |
| 18018 | |
| 18019 | |
| 18020 | gl_cv_c_multiarch=no |
| 18021 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18022 | /* end confdefs.h. */ |
| 18023 | #ifndef __APPLE_CC__ |
| 18024 | not a universal capable compiler |
| 18025 | #endif |
| 18026 | typedef int dummy; |
| 18027 | |
| 18028 | _ACEOF |
| 18029 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18030 | |
| 18031 | arch= |
| 18032 | prev= |
| 18033 | for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do |
| 18034 | if test -n "$prev"; then |
| 18035 | case $word in |
| 18036 | i?86 | x86_64 | ppc | ppc64) |
| 18037 | if test -z "$arch" || test "$arch" = "$word"; then |
| 18038 | arch="$word" |
| 18039 | else |
| 18040 | gl_cv_c_multiarch=yes |
| 18041 | fi |
| 18042 | ;; |
| 18043 | esac |
| 18044 | prev= |
| 18045 | else |
| 18046 | if test "x$word" = "x-arch"; then |
| 18047 | prev=arch |
| 18048 | fi |
| 18049 | fi |
| 18050 | done |
| 18051 | |
| 18052 | fi |
| 18053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18054 | if test $gl_cv_c_multiarch = yes; then |
| 18055 | APPLE_UNIVERSAL_BUILD=1 |
| 18056 | else |
| 18057 | APPLE_UNIVERSAL_BUILD=0 |
| 18058 | fi |
| 18059 | |
| 18060 | |
| 18061 | |
| 18062 | |
| 18063 | |
| 18064 | if test $ac_cv_type_long_long_int = yes; then |
| 18065 | HAVE_LONG_LONG_INT=1 |
| 18066 | else |
| 18067 | HAVE_LONG_LONG_INT=0 |
| 18068 | fi |
| 18069 | |
| 18070 | |
| 18071 | if test $ac_cv_type_unsigned_long_long_int = yes; then |
| 18072 | HAVE_UNSIGNED_LONG_LONG_INT=1 |
| 18073 | else |
| 18074 | HAVE_UNSIGNED_LONG_LONG_INT=0 |
| 18075 | fi |
| 18076 | |
| 18077 | |
| 18078 | |
| 18079 | if test $ac_cv_header_wchar_h = yes; then |
| 18080 | HAVE_WCHAR_H=1 |
| 18081 | else |
| 18082 | HAVE_WCHAR_H=0 |
| 18083 | fi |
| 18084 | |
| 18085 | |
| 18086 | if test $ac_cv_header_inttypes_h = yes; then |
| 18087 | HAVE_INTTYPES_H=1 |
| 18088 | else |
| 18089 | HAVE_INTTYPES_H=0 |
| 18090 | fi |
| 18091 | |
| 18092 | |
| 18093 | if test $ac_cv_header_sys_types_h = yes; then |
| 18094 | HAVE_SYS_TYPES_H=1 |
| 18095 | else |
| 18096 | HAVE_SYS_TYPES_H=0 |
| 18097 | fi |
| 18098 | |
| 18099 | |
| 18100 | |
| 18101 | |
| 18102 | |
| 18103 | |
| 18104 | |
| 18105 | |
| 18106 | |
| 18107 | |
| 18108 | |
| 18109 | if test $gl_cv_have_include_next = yes; then |
| 18110 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 18111 | else |
| 18112 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5 |
| 18113 | $as_echo_n "checking absolute name of <stdint.h>... " >&6; } |
| 18114 | if test "${gl_cv_next_stdint_h+set}" = set; then : |
| 18115 | $as_echo_n "(cached) " >&6 |
| 18116 | else |
| 18117 | |
| 18118 | if test $ac_cv_header_stdint_h = yes; then |
| 18119 | |
| 18120 | |
| 18121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18122 | /* end confdefs.h. */ |
| 18123 | #include <stdint.h> |
| 18124 | |
| 18125 | _ACEOF |
| 18126 | case "$host_os" in |
| 18127 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18128 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18129 | esac |
| 18130 | |
| 18131 | case "$host_os" in |
| 18132 | mingw*) |
| 18133 | gl_dirsep_regex='[/\\]' |
| 18134 | ;; |
| 18135 | *) |
| 18136 | gl_dirsep_regex='\/' |
| 18137 | ;; |
| 18138 | esac |
| 18139 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18140 | |
| 18141 | gl_header_literal_regex=`echo 'stdint.h' \ |
| 18142 | | sed -e "$gl_make_literal_regex_sed"` |
| 18143 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18144 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18145 | s|^/[^/]|//&| |
| 18146 | p |
| 18147 | q |
| 18148 | }' |
| 18149 | gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18150 | sed -n "$gl_absolute_header_sed"`'"' |
| 18151 | else |
| 18152 | gl_cv_next_stdint_h='<'stdint.h'>' |
| 18153 | fi |
| 18154 | |
| 18155 | |
| 18156 | fi |
| 18157 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5 |
| 18158 | $as_echo "$gl_cv_next_stdint_h" >&6; } |
| 18159 | fi |
| 18160 | NEXT_STDINT_H=$gl_cv_next_stdint_h |
| 18161 | |
| 18162 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 18163 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18164 | gl_next_as_first_directive='<'stdint.h'>' |
| 18165 | else |
| 18166 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18167 | gl_next_as_first_directive=$gl_cv_next_stdint_h |
| 18168 | fi |
| 18169 | NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive |
| 18170 | |
| 18171 | |
| 18172 | |
| 18173 | |
| 18174 | if test $ac_cv_header_stdint_h = yes; then |
| 18175 | HAVE_STDINT_H=1 |
| 18176 | else |
| 18177 | HAVE_STDINT_H=0 |
| 18178 | fi |
| 18179 | |
| 18180 | |
| 18181 | if test $ac_cv_header_stdint_h = yes; then |
| 18182 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5 |
| 18183 | $as_echo_n "checking whether stdint.h conforms to C99... " >&6; } |
| 18184 | if test "${gl_cv_header_working_stdint_h+set}" = set; then : |
| 18185 | $as_echo_n "(cached) " >&6 |
| 18186 | else |
| 18187 | gl_cv_header_working_stdint_h=no |
| 18188 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18189 | /* end confdefs.h. */ |
| 18190 | |
| 18191 | |
| 18192 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 18193 | #include <stdint.h> |
| 18194 | /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */ |
| 18195 | #if !(defined WCHAR_MIN && defined WCHAR_MAX) |
| 18196 | #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>" |
| 18197 | #endif |
| 18198 | |
| 18199 | |
| 18200 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18201 | included before <wchar.h>. */ |
| 18202 | #include <stddef.h> |
| 18203 | #include <signal.h> |
| 18204 | #if HAVE_WCHAR_H |
| 18205 | # include <stdio.h> |
| 18206 | # include <time.h> |
| 18207 | # include <wchar.h> |
| 18208 | #endif |
| 18209 | |
| 18210 | |
| 18211 | #ifdef INT8_MAX |
| 18212 | int8_t a1 = INT8_MAX; |
| 18213 | int8_t a1min = INT8_MIN; |
| 18214 | #endif |
| 18215 | #ifdef INT16_MAX |
| 18216 | int16_t a2 = INT16_MAX; |
| 18217 | int16_t a2min = INT16_MIN; |
| 18218 | #endif |
| 18219 | #ifdef INT32_MAX |
| 18220 | int32_t a3 = INT32_MAX; |
| 18221 | int32_t a3min = INT32_MIN; |
| 18222 | #endif |
| 18223 | #ifdef INT64_MAX |
| 18224 | int64_t a4 = INT64_MAX; |
| 18225 | int64_t a4min = INT64_MIN; |
| 18226 | #endif |
| 18227 | #ifdef UINT8_MAX |
| 18228 | uint8_t b1 = UINT8_MAX; |
| 18229 | #else |
| 18230 | typedef int b1[(unsigned char) -1 != 255 ? 1 : -1]; |
| 18231 | #endif |
| 18232 | #ifdef UINT16_MAX |
| 18233 | uint16_t b2 = UINT16_MAX; |
| 18234 | #endif |
| 18235 | #ifdef UINT32_MAX |
| 18236 | uint32_t b3 = UINT32_MAX; |
| 18237 | #endif |
| 18238 | #ifdef UINT64_MAX |
| 18239 | uint64_t b4 = UINT64_MAX; |
| 18240 | #endif |
| 18241 | int_least8_t c1 = INT8_C (0x7f); |
| 18242 | int_least8_t c1max = INT_LEAST8_MAX; |
| 18243 | int_least8_t c1min = INT_LEAST8_MIN; |
| 18244 | int_least16_t c2 = INT16_C (0x7fff); |
| 18245 | int_least16_t c2max = INT_LEAST16_MAX; |
| 18246 | int_least16_t c2min = INT_LEAST16_MIN; |
| 18247 | int_least32_t c3 = INT32_C (0x7fffffff); |
| 18248 | int_least32_t c3max = INT_LEAST32_MAX; |
| 18249 | int_least32_t c3min = INT_LEAST32_MIN; |
| 18250 | int_least64_t c4 = INT64_C (0x7fffffffffffffff); |
| 18251 | int_least64_t c4max = INT_LEAST64_MAX; |
| 18252 | int_least64_t c4min = INT_LEAST64_MIN; |
| 18253 | uint_least8_t d1 = UINT8_C (0xff); |
| 18254 | uint_least8_t d1max = UINT_LEAST8_MAX; |
| 18255 | uint_least16_t d2 = UINT16_C (0xffff); |
| 18256 | uint_least16_t d2max = UINT_LEAST16_MAX; |
| 18257 | uint_least32_t d3 = UINT32_C (0xffffffff); |
| 18258 | uint_least32_t d3max = UINT_LEAST32_MAX; |
| 18259 | uint_least64_t d4 = UINT64_C (0xffffffffffffffff); |
| 18260 | uint_least64_t d4max = UINT_LEAST64_MAX; |
| 18261 | int_fast8_t e1 = INT_FAST8_MAX; |
| 18262 | int_fast8_t e1min = INT_FAST8_MIN; |
| 18263 | int_fast16_t e2 = INT_FAST16_MAX; |
| 18264 | int_fast16_t e2min = INT_FAST16_MIN; |
| 18265 | int_fast32_t e3 = INT_FAST32_MAX; |
| 18266 | int_fast32_t e3min = INT_FAST32_MIN; |
| 18267 | int_fast64_t e4 = INT_FAST64_MAX; |
| 18268 | int_fast64_t e4min = INT_FAST64_MIN; |
| 18269 | uint_fast8_t f1 = UINT_FAST8_MAX; |
| 18270 | uint_fast16_t f2 = UINT_FAST16_MAX; |
| 18271 | uint_fast32_t f3 = UINT_FAST32_MAX; |
| 18272 | uint_fast64_t f4 = UINT_FAST64_MAX; |
| 18273 | #ifdef INTPTR_MAX |
| 18274 | intptr_t g = INTPTR_MAX; |
| 18275 | intptr_t gmin = INTPTR_MIN; |
| 18276 | #endif |
| 18277 | #ifdef UINTPTR_MAX |
| 18278 | uintptr_t h = UINTPTR_MAX; |
| 18279 | #endif |
| 18280 | intmax_t i = INTMAX_MAX; |
| 18281 | uintmax_t j = UINTMAX_MAX; |
| 18282 | |
| 18283 | #include <limits.h> /* for CHAR_BIT */ |
| 18284 | #define TYPE_MINIMUM(t) \ |
| 18285 | ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t))) |
| 18286 | #define TYPE_MAXIMUM(t) \ |
| 18287 | ((t) ((t) 0 < (t) -1 \ |
| 18288 | ? (t) -1 \ |
| 18289 | : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1))) |
| 18290 | struct s { |
| 18291 | int check_PTRDIFF: |
| 18292 | PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t) |
| 18293 | && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t) |
| 18294 | ? 1 : -1; |
| 18295 | /* Detect bug in FreeBSD 6.0 / ia64. */ |
| 18296 | int check_SIG_ATOMIC: |
| 18297 | SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t) |
| 18298 | && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t) |
| 18299 | ? 1 : -1; |
| 18300 | int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1; |
| 18301 | int check_WCHAR: |
| 18302 | WCHAR_MIN == TYPE_MINIMUM (wchar_t) |
| 18303 | && WCHAR_MAX == TYPE_MAXIMUM (wchar_t) |
| 18304 | ? 1 : -1; |
| 18305 | /* Detect bug in mingw. */ |
| 18306 | int check_WINT: |
| 18307 | WINT_MIN == TYPE_MINIMUM (wint_t) |
| 18308 | && WINT_MAX == TYPE_MAXIMUM (wint_t) |
| 18309 | ? 1 : -1; |
| 18310 | |
| 18311 | /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */ |
| 18312 | int check_UINT8_C: |
| 18313 | (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1; |
| 18314 | int check_UINT16_C: |
| 18315 | (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1; |
| 18316 | |
| 18317 | /* Detect bugs in OpenBSD 3.9 stdint.h. */ |
| 18318 | #ifdef UINT8_MAX |
| 18319 | int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1; |
| 18320 | #endif |
| 18321 | #ifdef UINT16_MAX |
| 18322 | int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1; |
| 18323 | #endif |
| 18324 | #ifdef UINT32_MAX |
| 18325 | int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1; |
| 18326 | #endif |
| 18327 | #ifdef UINT64_MAX |
| 18328 | int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1; |
| 18329 | #endif |
| 18330 | int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1; |
| 18331 | int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1; |
| 18332 | int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1; |
| 18333 | int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1; |
| 18334 | int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1; |
| 18335 | int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1; |
| 18336 | int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1; |
| 18337 | int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1; |
| 18338 | int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1; |
| 18339 | int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1; |
| 18340 | int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1; |
| 18341 | }; |
| 18342 | |
| 18343 | int |
| 18344 | main () |
| 18345 | { |
| 18346 | |
| 18347 | ; |
| 18348 | return 0; |
| 18349 | } |
| 18350 | _ACEOF |
| 18351 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18352 | if test "$cross_compiling" = yes; then : |
| 18353 | gl_cv_header_working_stdint_h=yes |
| 18354 | |
| 18355 | else |
| 18356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18357 | /* end confdefs.h. */ |
| 18358 | |
| 18359 | |
| 18360 | #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */ |
| 18361 | #include <stdint.h> |
| 18362 | |
| 18363 | |
| 18364 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18365 | included before <wchar.h>. */ |
| 18366 | #include <stddef.h> |
| 18367 | #include <signal.h> |
| 18368 | #if HAVE_WCHAR_H |
| 18369 | # include <stdio.h> |
| 18370 | # include <time.h> |
| 18371 | # include <wchar.h> |
| 18372 | #endif |
| 18373 | |
| 18374 | |
| 18375 | #include <stdio.h> |
| 18376 | #include <string.h> |
| 18377 | #define MVAL(macro) MVAL1(macro) |
| 18378 | #define MVAL1(expression) #expression |
| 18379 | static const char *macro_values[] = |
| 18380 | { |
| 18381 | #ifdef INT8_MAX |
| 18382 | MVAL (INT8_MAX), |
| 18383 | #endif |
| 18384 | #ifdef INT16_MAX |
| 18385 | MVAL (INT16_MAX), |
| 18386 | #endif |
| 18387 | #ifdef INT32_MAX |
| 18388 | MVAL (INT32_MAX), |
| 18389 | #endif |
| 18390 | #ifdef INT64_MAX |
| 18391 | MVAL (INT64_MAX), |
| 18392 | #endif |
| 18393 | #ifdef UINT8_MAX |
| 18394 | MVAL (UINT8_MAX), |
| 18395 | #endif |
| 18396 | #ifdef UINT16_MAX |
| 18397 | MVAL (UINT16_MAX), |
| 18398 | #endif |
| 18399 | #ifdef UINT32_MAX |
| 18400 | MVAL (UINT32_MAX), |
| 18401 | #endif |
| 18402 | #ifdef UINT64_MAX |
| 18403 | MVAL (UINT64_MAX), |
| 18404 | #endif |
| 18405 | NULL |
| 18406 | }; |
| 18407 | |
| 18408 | int |
| 18409 | main () |
| 18410 | { |
| 18411 | |
| 18412 | const char **mv; |
| 18413 | for (mv = macro_values; *mv != NULL; mv++) |
| 18414 | { |
| 18415 | const char *value = *mv; |
| 18416 | /* Test whether it looks like a cast expression. */ |
| 18417 | if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0 |
| 18418 | || strncmp (value, "((unsigned short)"/*)*/, 17) == 0 |
| 18419 | || strncmp (value, "((unsigned char)"/*)*/, 16) == 0 |
| 18420 | || strncmp (value, "((int)"/*)*/, 6) == 0 |
| 18421 | || strncmp (value, "((signed short)"/*)*/, 15) == 0 |
| 18422 | || strncmp (value, "((signed char)"/*)*/, 14) == 0) |
| 18423 | return mv - macro_values + 1; |
| 18424 | } |
| 18425 | return 0; |
| 18426 | |
| 18427 | ; |
| 18428 | return 0; |
| 18429 | } |
| 18430 | _ACEOF |
| 18431 | if ac_fn_c_try_run "$LINENO"; then : |
| 18432 | gl_cv_header_working_stdint_h=yes |
| 18433 | fi |
| 18434 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 18435 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 18436 | fi |
| 18437 | |
| 18438 | |
| 18439 | fi |
| 18440 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18441 | |
| 18442 | fi |
| 18443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5 |
| 18444 | $as_echo "$gl_cv_header_working_stdint_h" >&6; } |
| 18445 | fi |
| 18446 | if test "$gl_cv_header_working_stdint_h" = yes; then |
| 18447 | STDINT_H= |
| 18448 | else |
| 18449 | for ac_header in sys/inttypes.h sys/bitypes.h |
| 18450 | do : |
| 18451 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 18452 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 18453 | eval as_val=\$$as_ac_Header |
| 18454 | if test "x$as_val" = x""yes; then : |
| 18455 | cat >>confdefs.h <<_ACEOF |
| 18456 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 18457 | _ACEOF |
| 18458 | |
| 18459 | fi |
| 18460 | |
| 18461 | done |
| 18462 | |
| 18463 | if test $ac_cv_header_sys_inttypes_h = yes; then |
| 18464 | HAVE_SYS_INTTYPES_H=1 |
| 18465 | else |
| 18466 | HAVE_SYS_INTTYPES_H=0 |
| 18467 | fi |
| 18468 | |
| 18469 | if test $ac_cv_header_sys_bitypes_h = yes; then |
| 18470 | HAVE_SYS_BITYPES_H=1 |
| 18471 | else |
| 18472 | HAVE_SYS_BITYPES_H=0 |
| 18473 | fi |
| 18474 | |
| 18475 | |
| 18476 | |
| 18477 | |
| 18478 | if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 18479 | |
| 18480 | |
| 18481 | for gltype in ptrdiff_t size_t ; do |
| 18482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 18483 | $as_echo_n "checking for bit size of $gltype... " >&6; } |
| 18484 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18485 | $as_echo_n "(cached) " >&6 |
| 18486 | else |
| 18487 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 18488 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18489 | included before <wchar.h>. */ |
| 18490 | #include <stddef.h> |
| 18491 | #include <signal.h> |
| 18492 | #if HAVE_WCHAR_H |
| 18493 | # include <stdio.h> |
| 18494 | # include <time.h> |
| 18495 | # include <wchar.h> |
| 18496 | #endif |
| 18497 | |
| 18498 | #include <limits.h>"; then : |
| 18499 | |
| 18500 | else |
| 18501 | result=unknown |
| 18502 | fi |
| 18503 | |
| 18504 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 18505 | |
| 18506 | fi |
| 18507 | eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 18508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18509 | $as_echo "$ac_res" >&6; } |
| 18510 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 18511 | if test $result = unknown; then |
| 18512 | result=0 |
| 18513 | fi |
| 18514 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18515 | cat >>confdefs.h <<_ACEOF |
| 18516 | #define BITSIZEOF_${GLTYPE} $result |
| 18517 | _ACEOF |
| 18518 | |
| 18519 | eval BITSIZEOF_${GLTYPE}=\$result |
| 18520 | done |
| 18521 | |
| 18522 | |
| 18523 | fi |
| 18524 | |
| 18525 | |
| 18526 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 18527 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5 |
| 18528 | $as_echo_n "checking for bit size of $gltype... " >&6; } |
| 18529 | if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18530 | $as_echo_n "(cached) " >&6 |
| 18531 | else |
| 18532 | if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" " |
| 18533 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18534 | included before <wchar.h>. */ |
| 18535 | #include <stddef.h> |
| 18536 | #include <signal.h> |
| 18537 | #if HAVE_WCHAR_H |
| 18538 | # include <stdio.h> |
| 18539 | # include <time.h> |
| 18540 | # include <wchar.h> |
| 18541 | #endif |
| 18542 | |
| 18543 | #include <limits.h>"; then : |
| 18544 | |
| 18545 | else |
| 18546 | result=unknown |
| 18547 | fi |
| 18548 | |
| 18549 | eval gl_cv_bitsizeof_${gltype}=\$result |
| 18550 | |
| 18551 | fi |
| 18552 | eval ac_res=\$gl_cv_bitsizeof_${gltype} |
| 18553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18554 | $as_echo "$ac_res" >&6; } |
| 18555 | eval result=\$gl_cv_bitsizeof_${gltype} |
| 18556 | if test $result = unknown; then |
| 18557 | result=0 |
| 18558 | fi |
| 18559 | GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18560 | cat >>confdefs.h <<_ACEOF |
| 18561 | #define BITSIZEOF_${GLTYPE} $result |
| 18562 | _ACEOF |
| 18563 | |
| 18564 | eval BITSIZEOF_${GLTYPE}=\$result |
| 18565 | done |
| 18566 | |
| 18567 | |
| 18568 | |
| 18569 | |
| 18570 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 18571 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5 |
| 18572 | $as_echo_n "checking whether $gltype is signed... " >&6; } |
| 18573 | if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18574 | $as_echo_n "(cached) " >&6 |
| 18575 | else |
| 18576 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18577 | /* end confdefs.h. */ |
| 18578 | |
| 18579 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18580 | included before <wchar.h>. */ |
| 18581 | #include <stddef.h> |
| 18582 | #include <signal.h> |
| 18583 | #if HAVE_WCHAR_H |
| 18584 | # include <stdio.h> |
| 18585 | # include <time.h> |
| 18586 | # include <wchar.h> |
| 18587 | #endif |
| 18588 | |
| 18589 | int verify[2 * (($gltype) -1 < ($gltype) 0) - 1]; |
| 18590 | int |
| 18591 | main () |
| 18592 | { |
| 18593 | |
| 18594 | ; |
| 18595 | return 0; |
| 18596 | } |
| 18597 | _ACEOF |
| 18598 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18599 | result=yes |
| 18600 | else |
| 18601 | result=no |
| 18602 | fi |
| 18603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18604 | eval gl_cv_type_${gltype}_signed=\$result |
| 18605 | |
| 18606 | fi |
| 18607 | eval ac_res=\$gl_cv_type_${gltype}_signed |
| 18608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18609 | $as_echo "$ac_res" >&6; } |
| 18610 | eval result=\$gl_cv_type_${gltype}_signed |
| 18611 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18612 | if test "$result" = yes; then |
| 18613 | cat >>confdefs.h <<_ACEOF |
| 18614 | #define HAVE_SIGNED_${GLTYPE} 1 |
| 18615 | _ACEOF |
| 18616 | |
| 18617 | eval HAVE_SIGNED_${GLTYPE}=1 |
| 18618 | else |
| 18619 | eval HAVE_SIGNED_${GLTYPE}=0 |
| 18620 | fi |
| 18621 | done |
| 18622 | |
| 18623 | |
| 18624 | gl_cv_type_ptrdiff_t_signed=yes |
| 18625 | gl_cv_type_size_t_signed=no |
| 18626 | if test $APPLE_UNIVERSAL_BUILD = 0; then |
| 18627 | |
| 18628 | |
| 18629 | for gltype in ptrdiff_t size_t ; do |
| 18630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 18631 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 18632 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18633 | $as_echo_n "(cached) " >&6 |
| 18634 | else |
| 18635 | eval gl_cv_type_${gltype}_suffix=no |
| 18636 | eval result=\$gl_cv_type_${gltype}_signed |
| 18637 | if test "$result" = yes; then |
| 18638 | glsufu= |
| 18639 | else |
| 18640 | glsufu=u |
| 18641 | fi |
| 18642 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 18643 | case $glsuf in |
| 18644 | '') gltype1='int';; |
| 18645 | l) gltype1='long int';; |
| 18646 | ll) gltype1='long long int';; |
| 18647 | i64) gltype1='__int64';; |
| 18648 | u) gltype1='unsigned int';; |
| 18649 | ul) gltype1='unsigned long int';; |
| 18650 | ull) gltype1='unsigned long long int';; |
| 18651 | ui64)gltype1='unsigned __int64';; |
| 18652 | esac |
| 18653 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18654 | /* end confdefs.h. */ |
| 18655 | |
| 18656 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18657 | included before <wchar.h>. */ |
| 18658 | #include <stddef.h> |
| 18659 | #include <signal.h> |
| 18660 | #if HAVE_WCHAR_H |
| 18661 | # include <stdio.h> |
| 18662 | # include <time.h> |
| 18663 | # include <wchar.h> |
| 18664 | #endif |
| 18665 | |
| 18666 | extern $gltype foo; |
| 18667 | extern $gltype1 foo; |
| 18668 | int |
| 18669 | main () |
| 18670 | { |
| 18671 | |
| 18672 | ; |
| 18673 | return 0; |
| 18674 | } |
| 18675 | _ACEOF |
| 18676 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18677 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 18678 | fi |
| 18679 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18680 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18681 | test "$result" != no && break |
| 18682 | done |
| 18683 | fi |
| 18684 | eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 18685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18686 | $as_echo "$ac_res" >&6; } |
| 18687 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18688 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18689 | test "$result" = no && result= |
| 18690 | eval ${GLTYPE}_SUFFIX=\$result |
| 18691 | cat >>confdefs.h <<_ACEOF |
| 18692 | #define ${GLTYPE}_SUFFIX $result |
| 18693 | _ACEOF |
| 18694 | |
| 18695 | done |
| 18696 | |
| 18697 | |
| 18698 | fi |
| 18699 | |
| 18700 | |
| 18701 | for gltype in sig_atomic_t wchar_t wint_t ; do |
| 18702 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5 |
| 18703 | $as_echo_n "checking for $gltype integer literal suffix... " >&6; } |
| 18704 | if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 18705 | $as_echo_n "(cached) " >&6 |
| 18706 | else |
| 18707 | eval gl_cv_type_${gltype}_suffix=no |
| 18708 | eval result=\$gl_cv_type_${gltype}_signed |
| 18709 | if test "$result" = yes; then |
| 18710 | glsufu= |
| 18711 | else |
| 18712 | glsufu=u |
| 18713 | fi |
| 18714 | for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do |
| 18715 | case $glsuf in |
| 18716 | '') gltype1='int';; |
| 18717 | l) gltype1='long int';; |
| 18718 | ll) gltype1='long long int';; |
| 18719 | i64) gltype1='__int64';; |
| 18720 | u) gltype1='unsigned int';; |
| 18721 | ul) gltype1='unsigned long int';; |
| 18722 | ull) gltype1='unsigned long long int';; |
| 18723 | ui64)gltype1='unsigned __int64';; |
| 18724 | esac |
| 18725 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18726 | /* end confdefs.h. */ |
| 18727 | |
| 18728 | /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be |
| 18729 | included before <wchar.h>. */ |
| 18730 | #include <stddef.h> |
| 18731 | #include <signal.h> |
| 18732 | #if HAVE_WCHAR_H |
| 18733 | # include <stdio.h> |
| 18734 | # include <time.h> |
| 18735 | # include <wchar.h> |
| 18736 | #endif |
| 18737 | |
| 18738 | extern $gltype foo; |
| 18739 | extern $gltype1 foo; |
| 18740 | int |
| 18741 | main () |
| 18742 | { |
| 18743 | |
| 18744 | ; |
| 18745 | return 0; |
| 18746 | } |
| 18747 | _ACEOF |
| 18748 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18749 | eval gl_cv_type_${gltype}_suffix=\$glsuf |
| 18750 | fi |
| 18751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18752 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18753 | test "$result" != no && break |
| 18754 | done |
| 18755 | fi |
| 18756 | eval ac_res=\$gl_cv_type_${gltype}_suffix |
| 18757 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 18758 | $as_echo "$ac_res" >&6; } |
| 18759 | GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'` |
| 18760 | eval result=\$gl_cv_type_${gltype}_suffix |
| 18761 | test "$result" = no && result= |
| 18762 | eval ${GLTYPE}_SUFFIX=\$result |
| 18763 | cat >>confdefs.h <<_ACEOF |
| 18764 | #define ${GLTYPE}_SUFFIX $result |
| 18765 | _ACEOF |
| 18766 | |
| 18767 | done |
| 18768 | |
| 18769 | |
| 18770 | |
| 18771 | if test $BITSIZEOF_WINT_T -lt 32; then |
| 18772 | BITSIZEOF_WINT_T=32 |
| 18773 | fi |
| 18774 | |
| 18775 | STDINT_H=stdint.h |
| 18776 | fi |
| 18777 | |
| 18778 | if test -n "$STDINT_H"; then |
| 18779 | GL_GENERATE_STDINT_H_TRUE= |
| 18780 | GL_GENERATE_STDINT_H_FALSE='#' |
| 18781 | else |
| 18782 | GL_GENERATE_STDINT_H_TRUE='#' |
| 18783 | GL_GENERATE_STDINT_H_FALSE= |
| 18784 | fi |
| 18785 | |
| 18786 | |
| 18787 | |
| 18788 | |
| 18789 | |
| 18790 | GNULIB_IMAXABS=0; |
| 18791 | GNULIB_IMAXDIV=0; |
| 18792 | GNULIB_STRTOIMAX=0; |
| 18793 | GNULIB_STRTOUMAX=0; |
| 18794 | HAVE_DECL_IMAXABS=1; |
| 18795 | HAVE_DECL_IMAXDIV=1; |
| 18796 | HAVE_DECL_STRTOIMAX=1; |
| 18797 | HAVE_DECL_STRTOUMAX=1; |
| 18798 | REPLACE_STRTOIMAX=0; |
| 18799 | INT32_MAX_LT_INTMAX_MAX=1; |
| 18800 | INT64_MAX_EQ_LONG_MAX='defined _LP64'; |
| 18801 | PRI_MACROS_BROKEN=0; |
| 18802 | PRIPTR_PREFIX=__PRIPTR_PREFIX; |
| 18803 | UINT32_MAX_LT_UINTMAX_MAX=1; |
| 18804 | UINT64_MAX_EQ_ULONG_MAX='defined _LP64'; |
| 18805 | |
| 18806 | |
| 18807 | |
| 18808 | |
| 18809 | |
| 18810 | |
| 18811 | |
| 18812 | |
| 18813 | |
| 18814 | |
| 18815 | |
| 18816 | |
| 18817 | |
| 18818 | |
| 18819 | |
| 18820 | if test $gl_cv_have_include_next = yes; then |
| 18821 | gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 18822 | else |
| 18823 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5 |
| 18824 | $as_echo_n "checking absolute name of <inttypes.h>... " >&6; } |
| 18825 | if test "${gl_cv_next_inttypes_h+set}" = set; then : |
| 18826 | $as_echo_n "(cached) " >&6 |
| 18827 | else |
| 18828 | |
| 18829 | if test $ac_cv_header_inttypes_h = yes; then |
| 18830 | |
| 18831 | |
| 18832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18833 | /* end confdefs.h. */ |
| 18834 | #include <inttypes.h> |
| 18835 | |
| 18836 | _ACEOF |
| 18837 | case "$host_os" in |
| 18838 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 18839 | *) gl_absname_cpp="$ac_cpp" ;; |
| 18840 | esac |
| 18841 | |
| 18842 | case "$host_os" in |
| 18843 | mingw*) |
| 18844 | gl_dirsep_regex='[/\\]' |
| 18845 | ;; |
| 18846 | *) |
| 18847 | gl_dirsep_regex='\/' |
| 18848 | ;; |
| 18849 | esac |
| 18850 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 18851 | |
| 18852 | gl_header_literal_regex=`echo 'inttypes.h' \ |
| 18853 | | sed -e "$gl_make_literal_regex_sed"` |
| 18854 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 18855 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 18856 | s|^/[^/]|//&| |
| 18857 | p |
| 18858 | q |
| 18859 | }' |
| 18860 | gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 18861 | sed -n "$gl_absolute_header_sed"`'"' |
| 18862 | else |
| 18863 | gl_cv_next_inttypes_h='<'inttypes.h'>' |
| 18864 | fi |
| 18865 | |
| 18866 | |
| 18867 | fi |
| 18868 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5 |
| 18869 | $as_echo "$gl_cv_next_inttypes_h" >&6; } |
| 18870 | fi |
| 18871 | NEXT_INTTYPES_H=$gl_cv_next_inttypes_h |
| 18872 | |
| 18873 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 18874 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 18875 | gl_next_as_first_directive='<'inttypes.h'>' |
| 18876 | else |
| 18877 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 18878 | gl_next_as_first_directive=$gl_cv_next_inttypes_h |
| 18879 | fi |
| 18880 | NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive |
| 18881 | |
| 18882 | |
| 18883 | |
| 18884 | |
| 18885 | |
| 18886 | |
| 18887 | |
| 18888 | |
| 18889 | |
| 18890 | |
| 18891 | |
| 18892 | case "$host_os" in |
| 18893 | mingw*) |
| 18894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5 |
| 18895 | $as_echo_n "checking for 64-bit off_t... " >&6; } |
| 18896 | if test "${gl_cv_type_off_t_64+set}" = set; then : |
| 18897 | $as_echo_n "(cached) " >&6 |
| 18898 | else |
| 18899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18900 | /* end confdefs.h. */ |
| 18901 | #include <sys/types.h> |
| 18902 | int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1]; |
| 18903 | |
| 18904 | int |
| 18905 | main () |
| 18906 | { |
| 18907 | |
| 18908 | ; |
| 18909 | return 0; |
| 18910 | } |
| 18911 | _ACEOF |
| 18912 | if ac_fn_c_try_compile "$LINENO"; then : |
| 18913 | gl_cv_type_off_t_64=yes |
| 18914 | else |
| 18915 | gl_cv_type_off_t_64=no |
| 18916 | fi |
| 18917 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 18918 | |
| 18919 | fi |
| 18920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5 |
| 18921 | $as_echo "$gl_cv_type_off_t_64" >&6; } |
| 18922 | if test $gl_cv_type_off_t_64 = no; then |
| 18923 | WINDOWS_64_BIT_OFF_T=1 |
| 18924 | else |
| 18925 | WINDOWS_64_BIT_OFF_T=0 |
| 18926 | fi |
| 18927 | WINDOWS_64_BIT_ST_SIZE=1 |
| 18928 | ;; |
| 18929 | *) |
| 18930 | WINDOWS_64_BIT_OFF_T=0 |
| 18931 | WINDOWS_64_BIT_ST_SIZE=0 |
| 18932 | ;; |
| 18933 | esac |
| 18934 | |
| 18935 | |
| 18936 | GNULIB_FCHMODAT=0; |
| 18937 | GNULIB_FSTAT=0; |
| 18938 | GNULIB_FSTATAT=0; |
| 18939 | GNULIB_FUTIMENS=0; |
| 18940 | GNULIB_LCHMOD=0; |
| 18941 | GNULIB_LSTAT=0; |
| 18942 | GNULIB_MKDIRAT=0; |
| 18943 | GNULIB_MKFIFO=0; |
| 18944 | GNULIB_MKFIFOAT=0; |
| 18945 | GNULIB_MKNOD=0; |
| 18946 | GNULIB_MKNODAT=0; |
| 18947 | GNULIB_STAT=0; |
| 18948 | GNULIB_UTIMENSAT=0; |
| 18949 | HAVE_FCHMODAT=1; |
| 18950 | HAVE_FSTATAT=1; |
| 18951 | HAVE_FUTIMENS=1; |
| 18952 | HAVE_LCHMOD=1; |
| 18953 | HAVE_LSTAT=1; |
| 18954 | HAVE_MKDIRAT=1; |
| 18955 | HAVE_MKFIFO=1; |
| 18956 | HAVE_MKFIFOAT=1; |
| 18957 | HAVE_MKNOD=1; |
| 18958 | HAVE_MKNODAT=1; |
| 18959 | HAVE_UTIMENSAT=1; |
| 18960 | REPLACE_FSTAT=0; |
| 18961 | REPLACE_FSTATAT=0; |
| 18962 | REPLACE_FUTIMENS=0; |
| 18963 | REPLACE_LSTAT=0; |
| 18964 | REPLACE_MKDIR=0; |
| 18965 | REPLACE_MKFIFO=0; |
| 18966 | REPLACE_MKNOD=0; |
| 18967 | REPLACE_STAT=0; |
| 18968 | REPLACE_UTIMENSAT=0; |
| 18969 | |
| 18970 | |
| 18971 | |
| 18972 | |
| 18973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 |
| 18974 | $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } |
| 18975 | if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then : |
| 18976 | $as_echo_n "(cached) " >&6 |
| 18977 | else |
| 18978 | rm -f conftest.sym conftest.file |
| 18979 | echo >conftest.file |
| 18980 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
| 18981 | if test "$cross_compiling" = yes; then : |
| 18982 | case "$host_os" in |
| 18983 | # Guess yes on glibc systems. |
| 18984 | *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;; |
| 18985 | # If we don't know, assume the worst. |
| 18986 | *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;; |
| 18987 | esac |
| 18988 | |
| 18989 | else |
| 18990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 18991 | /* end confdefs.h. */ |
| 18992 | $ac_includes_default |
| 18993 | int |
| 18994 | main () |
| 18995 | { |
| 18996 | struct stat sbuf; |
| 18997 | /* Linux will dereference the symlink and fail, as required by |
| 18998 | POSIX. That is better in the sense that it means we will not |
| 18999 | have to compile and use the lstat wrapper. */ |
| 19000 | return lstat ("conftest.sym/", &sbuf) == 0; |
| 19001 | |
| 19002 | ; |
| 19003 | return 0; |
| 19004 | } |
| 19005 | _ACEOF |
| 19006 | if ac_fn_c_try_run "$LINENO"; then : |
| 19007 | gl_cv_func_lstat_dereferences_slashed_symlink=yes |
| 19008 | else |
| 19009 | gl_cv_func_lstat_dereferences_slashed_symlink=no |
| 19010 | fi |
| 19011 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 19012 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 19013 | fi |
| 19014 | |
| 19015 | else |
| 19016 | # If the 'ln -s' command failed, then we probably don't even |
| 19017 | # have an lstat function. |
| 19018 | gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" |
| 19019 | fi |
| 19020 | rm -f conftest.sym conftest.file |
| 19021 | |
| 19022 | fi |
| 19023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5 |
| 19024 | $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
| 19025 | case "$gl_cv_func_lstat_dereferences_slashed_symlink" in |
| 19026 | *yes) |
| 19027 | |
| 19028 | cat >>confdefs.h <<_ACEOF |
| 19029 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
| 19030 | _ACEOF |
| 19031 | |
| 19032 | ;; |
| 19033 | esac |
| 19034 | |
| 19035 | |
| 19036 | GNULIB_MKTIME=0; |
| 19037 | GNULIB_NANOSLEEP=0; |
| 19038 | GNULIB_STRPTIME=0; |
| 19039 | GNULIB_TIMEGM=0; |
| 19040 | GNULIB_TIME_R=0; |
| 19041 | HAVE_DECL_LOCALTIME_R=1; |
| 19042 | HAVE_NANOSLEEP=1; |
| 19043 | HAVE_STRPTIME=1; |
| 19044 | HAVE_TIMEGM=1; |
| 19045 | REPLACE_LOCALTIME_R=GNULIB_PORTCHECK; |
| 19046 | REPLACE_MKTIME=GNULIB_PORTCHECK; |
| 19047 | REPLACE_NANOSLEEP=GNULIB_PORTCHECK; |
| 19048 | REPLACE_TIMEGM=GNULIB_PORTCHECK; |
| 19049 | |
| 19050 | |
| 19051 | |
| 19052 | |
| 19053 | GNULIB_PSELECT=0; |
| 19054 | GNULIB_SELECT=0; |
| 19055 | HAVE_PSELECT=1; |
| 19056 | REPLACE_PSELECT=0; |
| 19057 | REPLACE_SELECT=0; |
| 19058 | |
| 19059 | |
| 19060 | |
| 19061 | |
| 19062 | |
| 19063 | |
| 19064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5 |
| 19065 | $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; } |
| 19066 | if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then : |
| 19067 | $as_echo_n "(cached) " >&6 |
| 19068 | else |
| 19069 | |
| 19070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19071 | /* end confdefs.h. */ |
| 19072 | #include <sys/select.h> |
| 19073 | int |
| 19074 | main () |
| 19075 | { |
| 19076 | struct timeval b; |
| 19077 | ; |
| 19078 | return 0; |
| 19079 | } |
| 19080 | _ACEOF |
| 19081 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19082 | gl_cv_header_sys_select_h_selfcontained=yes |
| 19083 | else |
| 19084 | gl_cv_header_sys_select_h_selfcontained=no |
| 19085 | fi |
| 19086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19087 | if test $gl_cv_header_sys_select_h_selfcontained = yes; then |
| 19088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19089 | /* end confdefs.h. */ |
| 19090 | #include <sys/select.h> |
| 19091 | int |
| 19092 | main () |
| 19093 | { |
| 19094 | int memset; int bzero; |
| 19095 | ; |
| 19096 | return 0; |
| 19097 | } |
| 19098 | |
| 19099 | _ACEOF |
| 19100 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19102 | /* end confdefs.h. */ |
| 19103 | #include <sys/select.h> |
| 19104 | int |
| 19105 | main () |
| 19106 | { |
| 19107 | |
| 19108 | #undef memset |
| 19109 | #define memset nonexistent_memset |
| 19110 | extern |
| 19111 | #ifdef __cplusplus |
| 19112 | "C" |
| 19113 | #endif |
| 19114 | void *memset (void *, int, unsigned long); |
| 19115 | #undef bzero |
| 19116 | #define bzero nonexistent_bzero |
| 19117 | extern |
| 19118 | #ifdef __cplusplus |
| 19119 | "C" |
| 19120 | #endif |
| 19121 | void bzero (void *, unsigned long); |
| 19122 | fd_set fds; |
| 19123 | FD_ZERO (&fds); |
| 19124 | |
| 19125 | ; |
| 19126 | return 0; |
| 19127 | } |
| 19128 | |
| 19129 | _ACEOF |
| 19130 | if ac_fn_c_try_link "$LINENO"; then : |
| 19131 | |
| 19132 | else |
| 19133 | gl_cv_header_sys_select_h_selfcontained=no |
| 19134 | fi |
| 19135 | rm -f core conftest.err conftest.$ac_objext \ |
| 19136 | conftest$ac_exeext conftest.$ac_ext |
| 19137 | |
| 19138 | fi |
| 19139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19140 | fi |
| 19141 | |
| 19142 | fi |
| 19143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 |
| 19144 | $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; } |
| 19145 | |
| 19146 | |
| 19147 | |
| 19148 | |
| 19149 | |
| 19150 | |
| 19151 | |
| 19152 | |
| 19153 | |
| 19154 | if test $gl_cv_have_include_next = yes; then |
| 19155 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 19156 | else |
| 19157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5 |
| 19158 | $as_echo_n "checking absolute name of <sys/select.h>... " >&6; } |
| 19159 | if test "${gl_cv_next_sys_select_h+set}" = set; then : |
| 19160 | $as_echo_n "(cached) " >&6 |
| 19161 | else |
| 19162 | |
| 19163 | if test $ac_cv_header_sys_select_h = yes; then |
| 19164 | |
| 19165 | |
| 19166 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19167 | /* end confdefs.h. */ |
| 19168 | #include <sys/select.h> |
| 19169 | |
| 19170 | _ACEOF |
| 19171 | case "$host_os" in |
| 19172 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 19173 | *) gl_absname_cpp="$ac_cpp" ;; |
| 19174 | esac |
| 19175 | |
| 19176 | case "$host_os" in |
| 19177 | mingw*) |
| 19178 | gl_dirsep_regex='[/\\]' |
| 19179 | ;; |
| 19180 | *) |
| 19181 | gl_dirsep_regex='\/' |
| 19182 | ;; |
| 19183 | esac |
| 19184 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 19185 | |
| 19186 | gl_header_literal_regex=`echo 'sys/select.h' \ |
| 19187 | | sed -e "$gl_make_literal_regex_sed"` |
| 19188 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 19189 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 19190 | s|^/[^/]|//&| |
| 19191 | p |
| 19192 | q |
| 19193 | }' |
| 19194 | gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 19195 | sed -n "$gl_absolute_header_sed"`'"' |
| 19196 | else |
| 19197 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 19198 | fi |
| 19199 | |
| 19200 | |
| 19201 | fi |
| 19202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 |
| 19203 | $as_echo "$gl_cv_next_sys_select_h" >&6; } |
| 19204 | fi |
| 19205 | NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h |
| 19206 | |
| 19207 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 19208 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 19209 | gl_next_as_first_directive='<'sys/select.h'>' |
| 19210 | else |
| 19211 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 19212 | gl_next_as_first_directive=$gl_cv_next_sys_select_h |
| 19213 | fi |
| 19214 | NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive |
| 19215 | |
| 19216 | |
| 19217 | |
| 19218 | |
| 19219 | if test $ac_cv_header_sys_select_h = yes; then |
| 19220 | HAVE_SYS_SELECT_H=1 |
| 19221 | else |
| 19222 | HAVE_SYS_SELECT_H=0 |
| 19223 | fi |
| 19224 | |
| 19225 | |
| 19226 | |
| 19227 | |
| 19228 | |
| 19229 | if test $ac_cv_header_sys_socket_h != yes; then |
| 19230 | for ac_header in winsock2.h |
| 19231 | do : |
| 19232 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 19233 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 19234 | cat >>confdefs.h <<_ACEOF |
| 19235 | #define HAVE_WINSOCK2_H 1 |
| 19236 | _ACEOF |
| 19237 | |
| 19238 | fi |
| 19239 | |
| 19240 | done |
| 19241 | |
| 19242 | fi |
| 19243 | if test "$ac_cv_header_winsock2_h" = yes; then |
| 19244 | HAVE_WINSOCK2_H=1 |
| 19245 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 19246 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 19247 | else |
| 19248 | HAVE_WINSOCK2_H=0 |
| 19249 | fi |
| 19250 | |
| 19251 | |
| 19252 | |
| 19253 | |
| 19254 | |
| 19255 | |
| 19256 | |
| 19257 | |
| 19258 | GNULIB_PTHREAD_SIGMASK=0; |
| 19259 | GNULIB_RAISE=0; |
| 19260 | GNULIB_SIGNAL_H_SIGPIPE=0; |
| 19261 | GNULIB_SIGPROCMASK=0; |
| 19262 | GNULIB_SIGACTION=0; |
| 19263 | HAVE_POSIX_SIGNALBLOCKING=1; |
| 19264 | HAVE_PTHREAD_SIGMASK=1; |
| 19265 | HAVE_RAISE=1; |
| 19266 | HAVE_SIGSET_T=1; |
| 19267 | HAVE_SIGINFO_T=1; |
| 19268 | HAVE_SIGACTION=1; |
| 19269 | HAVE_STRUCT_SIGACTION_SA_SIGACTION=1; |
| 19270 | |
| 19271 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1; |
| 19272 | |
| 19273 | HAVE_SIGHANDLER_T=1; |
| 19274 | REPLACE_PTHREAD_SIGMASK=0; |
| 19275 | REPLACE_RAISE=0; |
| 19276 | |
| 19277 | |
| 19278 | |
| 19279 | |
| 19280 | |
| 19281 | |
| 19282 | |
| 19283 | ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" " |
| 19284 | #include <signal.h> |
| 19285 | /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */ |
| 19286 | #include <sys/types.h> |
| 19287 | |
| 19288 | " |
| 19289 | if test "x$ac_cv_type_sigset_t" = x""yes; then : |
| 19290 | |
| 19291 | cat >>confdefs.h <<_ACEOF |
| 19292 | #define HAVE_SIGSET_T 1 |
| 19293 | _ACEOF |
| 19294 | |
| 19295 | gl_cv_type_sigset_t=yes |
| 19296 | else |
| 19297 | gl_cv_type_sigset_t=no |
| 19298 | fi |
| 19299 | |
| 19300 | if test $gl_cv_type_sigset_t != yes; then |
| 19301 | HAVE_SIGSET_T=0 |
| 19302 | fi |
| 19303 | |
| 19304 | |
| 19305 | |
| 19306 | if test $ac_cv_header_sys_socket_h = no; then |
| 19307 | for ac_header in ws2tcpip.h |
| 19308 | do : |
| 19309 | ac_fn_c_check_header_mongrel "$LINENO" "ws2tcpip.h" "ac_cv_header_ws2tcpip_h" "$ac_includes_default" |
| 19310 | if test "x$ac_cv_header_ws2tcpip_h" = x""yes; then : |
| 19311 | cat >>confdefs.h <<_ACEOF |
| 19312 | #define HAVE_WS2TCPIP_H 1 |
| 19313 | _ACEOF |
| 19314 | |
| 19315 | fi |
| 19316 | |
| 19317 | done |
| 19318 | |
| 19319 | fi |
| 19320 | |
| 19321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 |
| 19322 | $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } |
| 19323 | if test "${ac_cv_header_stdbool_h+set}" = set; then : |
| 19324 | $as_echo_n "(cached) " >&6 |
| 19325 | else |
| 19326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19327 | /* end confdefs.h. */ |
| 19328 | |
| 19329 | #include <stdbool.h> |
| 19330 | #ifndef bool |
| 19331 | "error: bool is not defined" |
| 19332 | #endif |
| 19333 | #ifndef false |
| 19334 | "error: false is not defined" |
| 19335 | #endif |
| 19336 | #if false |
| 19337 | "error: false is not 0" |
| 19338 | #endif |
| 19339 | #ifndef true |
| 19340 | "error: true is not defined" |
| 19341 | #endif |
| 19342 | #if true != 1 |
| 19343 | "error: true is not 1" |
| 19344 | #endif |
| 19345 | #ifndef __bool_true_false_are_defined |
| 19346 | "error: __bool_true_false_are_defined is not defined" |
| 19347 | #endif |
| 19348 | |
| 19349 | struct s { _Bool s: 1; _Bool t; } s; |
| 19350 | |
| 19351 | char a[true == 1 ? 1 : -1]; |
| 19352 | char b[false == 0 ? 1 : -1]; |
| 19353 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
| 19354 | char d[(bool) 0.5 == true ? 1 : -1]; |
| 19355 | /* See body of main program for 'e'. */ |
| 19356 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
| 19357 | char g[true]; |
| 19358 | char h[sizeof (_Bool)]; |
| 19359 | char i[sizeof s.t]; |
| 19360 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
| 19361 | /* The following fails for |
| 19362 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ |
| 19363 | _Bool n[m]; |
| 19364 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
| 19365 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
| 19366 | /* Catch a bug in an HP-UX C compiler. See |
| 19367 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
| 19368 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
| 19369 | */ |
| 19370 | _Bool q = true; |
| 19371 | _Bool *pq = &q; |
| 19372 | |
| 19373 | int |
| 19374 | main () |
| 19375 | { |
| 19376 | |
| 19377 | bool e = &s; |
| 19378 | *pq |= q; |
| 19379 | *pq |= ! q; |
| 19380 | /* Refer to every declared value, to avoid compiler optimizations. */ |
| 19381 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
| 19382 | + !m + !n + !o + !p + !q + !pq); |
| 19383 | |
| 19384 | ; |
| 19385 | return 0; |
| 19386 | } |
| 19387 | _ACEOF |
| 19388 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19389 | ac_cv_header_stdbool_h=yes |
| 19390 | else |
| 19391 | ac_cv_header_stdbool_h=no |
| 19392 | fi |
| 19393 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19394 | fi |
| 19395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 |
| 19396 | $as_echo "$ac_cv_header_stdbool_h" >&6; } |
| 19397 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" |
| 19398 | if test "x$ac_cv_type__Bool" = x""yes; then : |
| 19399 | |
| 19400 | cat >>confdefs.h <<_ACEOF |
| 19401 | #define HAVE__BOOL 1 |
| 19402 | _ACEOF |
| 19403 | |
| 19404 | |
| 19405 | fi |
| 19406 | |
| 19407 | |
| 19408 | |
| 19409 | REPLACE_NULL=0; |
| 19410 | HAVE_WCHAR_T=1; |
| 19411 | |
| 19412 | |
| 19413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
| 19414 | $as_echo_n "checking for wchar_t... " >&6; } |
| 19415 | if test "${gt_cv_c_wchar_t+set}" = set; then : |
| 19416 | $as_echo_n "(cached) " >&6 |
| 19417 | else |
| 19418 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19419 | /* end confdefs.h. */ |
| 19420 | #include <stddef.h> |
| 19421 | wchar_t foo = (wchar_t)'\0'; |
| 19422 | int |
| 19423 | main () |
| 19424 | { |
| 19425 | |
| 19426 | ; |
| 19427 | return 0; |
| 19428 | } |
| 19429 | _ACEOF |
| 19430 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19431 | gt_cv_c_wchar_t=yes |
| 19432 | else |
| 19433 | gt_cv_c_wchar_t=no |
| 19434 | fi |
| 19435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19436 | fi |
| 19437 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
| 19438 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
| 19439 | if test $gt_cv_c_wchar_t = yes; then |
| 19440 | |
| 19441 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
| 19442 | |
| 19443 | fi |
| 19444 | |
| 19445 | |
| 19446 | GNULIB_DPRINTF=0; |
| 19447 | GNULIB_FCLOSE=0; |
| 19448 | GNULIB_FDOPEN=0; |
| 19449 | GNULIB_FFLUSH=0; |
| 19450 | GNULIB_FGETC=0; |
| 19451 | GNULIB_FGETS=0; |
| 19452 | GNULIB_FOPEN=0; |
| 19453 | GNULIB_FPRINTF=0; |
| 19454 | GNULIB_FPRINTF_POSIX=0; |
| 19455 | GNULIB_FPURGE=0; |
| 19456 | GNULIB_FPUTC=0; |
| 19457 | GNULIB_FPUTS=0; |
| 19458 | GNULIB_FREAD=0; |
| 19459 | GNULIB_FREOPEN=0; |
| 19460 | GNULIB_FSCANF=0; |
| 19461 | GNULIB_FSEEK=0; |
| 19462 | GNULIB_FSEEKO=0; |
| 19463 | GNULIB_FTELL=0; |
| 19464 | GNULIB_FTELLO=0; |
| 19465 | GNULIB_FWRITE=0; |
| 19466 | GNULIB_GETC=0; |
| 19467 | GNULIB_GETCHAR=0; |
| 19468 | GNULIB_GETDELIM=0; |
| 19469 | GNULIB_GETLINE=0; |
| 19470 | GNULIB_OBSTACK_PRINTF=0; |
| 19471 | GNULIB_OBSTACK_PRINTF_POSIX=0; |
| 19472 | GNULIB_PCLOSE=0; |
| 19473 | GNULIB_PERROR=0; |
| 19474 | GNULIB_POPEN=0; |
| 19475 | GNULIB_PRINTF=0; |
| 19476 | GNULIB_PRINTF_POSIX=0; |
| 19477 | GNULIB_PUTC=0; |
| 19478 | GNULIB_PUTCHAR=0; |
| 19479 | GNULIB_PUTS=0; |
| 19480 | GNULIB_REMOVE=0; |
| 19481 | GNULIB_RENAME=0; |
| 19482 | GNULIB_RENAMEAT=0; |
| 19483 | GNULIB_SCANF=0; |
| 19484 | GNULIB_SNPRINTF=0; |
| 19485 | GNULIB_SPRINTF_POSIX=0; |
| 19486 | GNULIB_STDIO_H_NONBLOCKING=0; |
| 19487 | GNULIB_STDIO_H_SIGPIPE=0; |
| 19488 | GNULIB_TMPFILE=0; |
| 19489 | GNULIB_VASPRINTF=0; |
| 19490 | GNULIB_VFSCANF=0; |
| 19491 | GNULIB_VSCANF=0; |
| 19492 | GNULIB_VDPRINTF=0; |
| 19493 | GNULIB_VFPRINTF=0; |
| 19494 | GNULIB_VFPRINTF_POSIX=0; |
| 19495 | GNULIB_VPRINTF=0; |
| 19496 | GNULIB_VPRINTF_POSIX=0; |
| 19497 | GNULIB_VSNPRINTF=0; |
| 19498 | GNULIB_VSPRINTF_POSIX=0; |
| 19499 | HAVE_DECL_FPURGE=1; |
| 19500 | HAVE_DECL_FSEEKO=1; |
| 19501 | HAVE_DECL_FTELLO=1; |
| 19502 | HAVE_DECL_GETDELIM=1; |
| 19503 | HAVE_DECL_GETLINE=1; |
| 19504 | HAVE_DECL_OBSTACK_PRINTF=1; |
| 19505 | HAVE_DECL_SNPRINTF=1; |
| 19506 | HAVE_DECL_VSNPRINTF=1; |
| 19507 | HAVE_DPRINTF=1; |
| 19508 | HAVE_FSEEKO=1; |
| 19509 | HAVE_FTELLO=1; |
| 19510 | HAVE_PCLOSE=1; |
| 19511 | HAVE_POPEN=1; |
| 19512 | HAVE_RENAMEAT=1; |
| 19513 | HAVE_VASPRINTF=1; |
| 19514 | HAVE_VDPRINTF=1; |
| 19515 | REPLACE_DPRINTF=0; |
| 19516 | REPLACE_FCLOSE=0; |
| 19517 | REPLACE_FDOPEN=0; |
| 19518 | REPLACE_FFLUSH=0; |
| 19519 | REPLACE_FOPEN=0; |
| 19520 | REPLACE_FPRINTF=0; |
| 19521 | REPLACE_FPURGE=0; |
| 19522 | REPLACE_FREOPEN=0; |
| 19523 | REPLACE_FSEEK=0; |
| 19524 | REPLACE_FSEEKO=0; |
| 19525 | REPLACE_FTELL=0; |
| 19526 | REPLACE_FTELLO=0; |
| 19527 | REPLACE_GETDELIM=0; |
| 19528 | REPLACE_GETLINE=0; |
| 19529 | REPLACE_OBSTACK_PRINTF=0; |
| 19530 | REPLACE_PERROR=0; |
| 19531 | REPLACE_POPEN=0; |
| 19532 | REPLACE_PRINTF=0; |
| 19533 | REPLACE_REMOVE=0; |
| 19534 | REPLACE_RENAME=0; |
| 19535 | REPLACE_RENAMEAT=0; |
| 19536 | REPLACE_SNPRINTF=0; |
| 19537 | REPLACE_SPRINTF=0; |
| 19538 | REPLACE_STDIO_READ_FUNCS=0; |
| 19539 | REPLACE_STDIO_WRITE_FUNCS=0; |
| 19540 | REPLACE_TMPFILE=0; |
| 19541 | REPLACE_VASPRINTF=0; |
| 19542 | REPLACE_VDPRINTF=0; |
| 19543 | REPLACE_VFPRINTF=0; |
| 19544 | REPLACE_VPRINTF=0; |
| 19545 | REPLACE_VSNPRINTF=0; |
| 19546 | REPLACE_VSPRINTF=0; |
| 19547 | |
| 19548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 |
| 19549 | $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } |
| 19550 | if test "${ac_cv_struct_tm+set}" = set; then : |
| 19551 | $as_echo_n "(cached) " >&6 |
| 19552 | else |
| 19553 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19554 | /* end confdefs.h. */ |
| 19555 | #include <sys/types.h> |
| 19556 | #include <time.h> |
| 19557 | |
| 19558 | int |
| 19559 | main () |
| 19560 | { |
| 19561 | struct tm tm; |
| 19562 | int *p = &tm.tm_sec; |
| 19563 | return !p; |
| 19564 | ; |
| 19565 | return 0; |
| 19566 | } |
| 19567 | _ACEOF |
| 19568 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19569 | ac_cv_struct_tm=time.h |
| 19570 | else |
| 19571 | ac_cv_struct_tm=sys/time.h |
| 19572 | fi |
| 19573 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19574 | fi |
| 19575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 |
| 19576 | $as_echo "$ac_cv_struct_tm" >&6; } |
| 19577 | if test $ac_cv_struct_tm = sys/time.h; then |
| 19578 | |
| 19579 | $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h |
| 19580 | |
| 19581 | fi |
| 19582 | |
| 19583 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> |
| 19584 | #include <$ac_cv_struct_tm> |
| 19585 | |
| 19586 | " |
| 19587 | if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : |
| 19588 | |
| 19589 | cat >>confdefs.h <<_ACEOF |
| 19590 | #define HAVE_STRUCT_TM_TM_ZONE 1 |
| 19591 | _ACEOF |
| 19592 | |
| 19593 | |
| 19594 | fi |
| 19595 | |
| 19596 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then |
| 19597 | |
| 19598 | $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h |
| 19599 | |
| 19600 | else |
| 19601 | ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> |
| 19602 | " |
| 19603 | if test "x$ac_cv_have_decl_tzname" = x""yes; then : |
| 19604 | ac_have_decl=1 |
| 19605 | else |
| 19606 | ac_have_decl=0 |
| 19607 | fi |
| 19608 | |
| 19609 | cat >>confdefs.h <<_ACEOF |
| 19610 | #define HAVE_DECL_TZNAME $ac_have_decl |
| 19611 | _ACEOF |
| 19612 | |
| 19613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 |
| 19614 | $as_echo_n "checking for tzname... " >&6; } |
| 19615 | if test "${ac_cv_var_tzname+set}" = set; then : |
| 19616 | $as_echo_n "(cached) " >&6 |
| 19617 | else |
| 19618 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19619 | /* end confdefs.h. */ |
| 19620 | #include <time.h> |
| 19621 | #if !HAVE_DECL_TZNAME |
| 19622 | extern char *tzname[]; |
| 19623 | #endif |
| 19624 | |
| 19625 | int |
| 19626 | main () |
| 19627 | { |
| 19628 | return tzname[0][0]; |
| 19629 | ; |
| 19630 | return 0; |
| 19631 | } |
| 19632 | _ACEOF |
| 19633 | if ac_fn_c_try_link "$LINENO"; then : |
| 19634 | ac_cv_var_tzname=yes |
| 19635 | else |
| 19636 | ac_cv_var_tzname=no |
| 19637 | fi |
| 19638 | rm -f core conftest.err conftest.$ac_objext \ |
| 19639 | conftest$ac_exeext conftest.$ac_ext |
| 19640 | fi |
| 19641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 |
| 19642 | $as_echo "$ac_cv_var_tzname" >&6; } |
| 19643 | if test $ac_cv_var_tzname = yes; then |
| 19644 | |
| 19645 | $as_echo "#define HAVE_TZNAME 1" >>confdefs.h |
| 19646 | |
| 19647 | fi |
| 19648 | fi |
| 19649 | |
| 19650 | |
| 19651 | ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> |
| 19652 | " |
| 19653 | if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : |
| 19654 | |
| 19655 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h |
| 19656 | |
| 19657 | fi |
| 19658 | |
| 19659 | |
| 19660 | |
| 19661 | |
| 19662 | ac_fn_c_check_decl "$LINENO" "strtoimax" "ac_cv_have_decl_strtoimax" "$ac_includes_default" |
| 19663 | if test "x$ac_cv_have_decl_strtoimax" = x""yes; then : |
| 19664 | ac_have_decl=1 |
| 19665 | else |
| 19666 | ac_have_decl=0 |
| 19667 | fi |
| 19668 | |
| 19669 | cat >>confdefs.h <<_ACEOF |
| 19670 | #define HAVE_DECL_STRTOIMAX $ac_have_decl |
| 19671 | _ACEOF |
| 19672 | |
| 19673 | |
| 19674 | |
| 19675 | ac_fn_c_check_decl "$LINENO" "strtoumax" "ac_cv_have_decl_strtoumax" "$ac_includes_default" |
| 19676 | if test "x$ac_cv_have_decl_strtoumax" = x""yes; then : |
| 19677 | ac_have_decl=1 |
| 19678 | else |
| 19679 | ac_have_decl=0 |
| 19680 | fi |
| 19681 | |
| 19682 | cat >>confdefs.h <<_ACEOF |
| 19683 | #define HAVE_DECL_STRTOUMAX $ac_have_decl |
| 19684 | _ACEOF |
| 19685 | |
| 19686 | |
| 19687 | |
| 19688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 |
| 19689 | $as_echo_n "checking whether stat file-mode macros are broken... " >&6; } |
| 19690 | if test "${ac_cv_header_stat_broken+set}" = set; then : |
| 19691 | $as_echo_n "(cached) " >&6 |
| 19692 | else |
| 19693 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19694 | /* end confdefs.h. */ |
| 19695 | #include <sys/types.h> |
| 19696 | #include <sys/stat.h> |
| 19697 | |
| 19698 | #if defined S_ISBLK && defined S_IFDIR |
| 19699 | extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; |
| 19700 | #endif |
| 19701 | |
| 19702 | #if defined S_ISBLK && defined S_IFCHR |
| 19703 | extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; |
| 19704 | #endif |
| 19705 | |
| 19706 | #if defined S_ISLNK && defined S_IFREG |
| 19707 | extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; |
| 19708 | #endif |
| 19709 | |
| 19710 | #if defined S_ISSOCK && defined S_IFREG |
| 19711 | extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; |
| 19712 | #endif |
| 19713 | |
| 19714 | _ACEOF |
| 19715 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19716 | ac_cv_header_stat_broken=no |
| 19717 | else |
| 19718 | ac_cv_header_stat_broken=yes |
| 19719 | fi |
| 19720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19721 | fi |
| 19722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 |
| 19723 | $as_echo "$ac_cv_header_stat_broken" >&6; } |
| 19724 | if test $ac_cv_header_stat_broken = yes; then |
| 19725 | |
| 19726 | $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h |
| 19727 | |
| 19728 | fi |
| 19729 | |
| 19730 | |
| 19731 | |
| 19732 | |
| 19733 | |
| 19734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5 |
| 19735 | $as_echo_n "checking for struct timespec in <time.h>... " >&6; } |
| 19736 | if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then : |
| 19737 | $as_echo_n "(cached) " >&6 |
| 19738 | else |
| 19739 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19740 | /* end confdefs.h. */ |
| 19741 | #include <time.h> |
| 19742 | |
| 19743 | int |
| 19744 | main () |
| 19745 | { |
| 19746 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 19747 | ; |
| 19748 | return 0; |
| 19749 | } |
| 19750 | _ACEOF |
| 19751 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19752 | gl_cv_sys_struct_timespec_in_time_h=yes |
| 19753 | else |
| 19754 | gl_cv_sys_struct_timespec_in_time_h=no |
| 19755 | fi |
| 19756 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19757 | fi |
| 19758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5 |
| 19759 | $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; } |
| 19760 | |
| 19761 | TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 19762 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0 |
| 19763 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0 |
| 19764 | if test $gl_cv_sys_struct_timespec_in_time_h = yes; then |
| 19765 | TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 19766 | else |
| 19767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5 |
| 19768 | $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; } |
| 19769 | if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then : |
| 19770 | $as_echo_n "(cached) " >&6 |
| 19771 | else |
| 19772 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19773 | /* end confdefs.h. */ |
| 19774 | #include <sys/time.h> |
| 19775 | |
| 19776 | int |
| 19777 | main () |
| 19778 | { |
| 19779 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 19780 | ; |
| 19781 | return 0; |
| 19782 | } |
| 19783 | _ACEOF |
| 19784 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19785 | gl_cv_sys_struct_timespec_in_sys_time_h=yes |
| 19786 | else |
| 19787 | gl_cv_sys_struct_timespec_in_sys_time_h=no |
| 19788 | fi |
| 19789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19790 | fi |
| 19791 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5 |
| 19792 | $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; } |
| 19793 | if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then |
| 19794 | SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1 |
| 19795 | else |
| 19796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5 |
| 19797 | $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; } |
| 19798 | if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then : |
| 19799 | $as_echo_n "(cached) " >&6 |
| 19800 | else |
| 19801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19802 | /* end confdefs.h. */ |
| 19803 | #include <pthread.h> |
| 19804 | |
| 19805 | int |
| 19806 | main () |
| 19807 | { |
| 19808 | static struct timespec x; x.tv_sec = x.tv_nsec; |
| 19809 | ; |
| 19810 | return 0; |
| 19811 | } |
| 19812 | _ACEOF |
| 19813 | if ac_fn_c_try_compile "$LINENO"; then : |
| 19814 | gl_cv_sys_struct_timespec_in_pthread_h=yes |
| 19815 | else |
| 19816 | gl_cv_sys_struct_timespec_in_pthread_h=no |
| 19817 | fi |
| 19818 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 19819 | fi |
| 19820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5 |
| 19821 | $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; } |
| 19822 | if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then |
| 19823 | PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1 |
| 19824 | fi |
| 19825 | fi |
| 19826 | fi |
| 19827 | |
| 19828 | |
| 19829 | |
| 19830 | |
| 19831 | |
| 19832 | |
| 19833 | |
| 19834 | |
| 19835 | |
| 19836 | |
| 19837 | |
| 19838 | |
| 19839 | |
| 19840 | |
| 19841 | |
| 19842 | if test $gl_cv_have_include_next = yes; then |
| 19843 | gl_cv_next_time_h='<'time.h'>' |
| 19844 | else |
| 19845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5 |
| 19846 | $as_echo_n "checking absolute name of <time.h>... " >&6; } |
| 19847 | if test "${gl_cv_next_time_h+set}" = set; then : |
| 19848 | $as_echo_n "(cached) " >&6 |
| 19849 | else |
| 19850 | |
| 19851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19852 | /* end confdefs.h. */ |
| 19853 | #include <time.h> |
| 19854 | |
| 19855 | _ACEOF |
| 19856 | case "$host_os" in |
| 19857 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 19858 | *) gl_absname_cpp="$ac_cpp" ;; |
| 19859 | esac |
| 19860 | |
| 19861 | case "$host_os" in |
| 19862 | mingw*) |
| 19863 | gl_dirsep_regex='[/\\]' |
| 19864 | ;; |
| 19865 | *) |
| 19866 | gl_dirsep_regex='\/' |
| 19867 | ;; |
| 19868 | esac |
| 19869 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 19870 | |
| 19871 | gl_header_literal_regex=`echo 'time.h' \ |
| 19872 | | sed -e "$gl_make_literal_regex_sed"` |
| 19873 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 19874 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 19875 | s|^/[^/]|//&| |
| 19876 | p |
| 19877 | q |
| 19878 | }' |
| 19879 | gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 19880 | sed -n "$gl_absolute_header_sed"`'"' |
| 19881 | |
| 19882 | |
| 19883 | fi |
| 19884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5 |
| 19885 | $as_echo "$gl_cv_next_time_h" >&6; } |
| 19886 | fi |
| 19887 | NEXT_TIME_H=$gl_cv_next_time_h |
| 19888 | |
| 19889 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 19890 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 19891 | gl_next_as_first_directive='<'time.h'>' |
| 19892 | else |
| 19893 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 19894 | gl_next_as_first_directive=$gl_cv_next_time_h |
| 19895 | fi |
| 19896 | NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive |
| 19897 | |
| 19898 | |
| 19899 | |
| 19900 | |
| 19901 | |
| 19902 | |
| 19903 | |
| 19904 | |
| 19905 | |
| 19906 | |
| 19907 | |
| 19908 | |
| 19909 | |
| 19910 | |
| 19911 | |
| 19912 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5 |
| 19913 | $as_echo_n "checking whether the utimes function works... " >&6; } |
| 19914 | if test "${gl_cv_func_working_utimes+set}" = set; then : |
| 19915 | $as_echo_n "(cached) " >&6 |
| 19916 | else |
| 19917 | |
| 19918 | if test "$cross_compiling" = yes; then : |
| 19919 | gl_cv_func_working_utimes=no |
| 19920 | else |
| 19921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 19922 | /* end confdefs.h. */ |
| 19923 | |
| 19924 | #include <sys/types.h> |
| 19925 | #include <sys/stat.h> |
| 19926 | #include <fcntl.h> |
| 19927 | #include <sys/time.h> |
| 19928 | #include <time.h> |
| 19929 | #include <unistd.h> |
| 19930 | #include <stdlib.h> |
| 19931 | #include <stdio.h> |
| 19932 | #include <utime.h> |
| 19933 | |
| 19934 | static int |
| 19935 | inorder (time_t a, time_t b, time_t c) |
| 19936 | { |
| 19937 | return a <= b && b <= c; |
| 19938 | } |
| 19939 | |
| 19940 | int |
| 19941 | main () |
| 19942 | { |
| 19943 | int result = 0; |
| 19944 | char const *file = "conftest.utimes"; |
| 19945 | static struct timeval timeval[2] = {{9, 10}, {999999, 999999}}; |
| 19946 | |
| 19947 | /* Test whether utimes() essentially works. */ |
| 19948 | { |
| 19949 | struct stat sbuf; |
| 19950 | FILE *f = fopen (file, "w"); |
| 19951 | if (f == NULL) |
| 19952 | result |= 1; |
| 19953 | else if (fclose (f) != 0) |
| 19954 | result |= 1; |
| 19955 | else if (utimes (file, timeval) != 0) |
| 19956 | result |= 2; |
| 19957 | else if (lstat (file, &sbuf) != 0) |
| 19958 | result |= 1; |
| 19959 | else if (!(sbuf.st_atime == timeval[0].tv_sec |
| 19960 | && sbuf.st_mtime == timeval[1].tv_sec)) |
| 19961 | result |= 4; |
| 19962 | if (unlink (file) != 0) |
| 19963 | result |= 1; |
| 19964 | } |
| 19965 | |
| 19966 | /* Test whether utimes() with a NULL argument sets the file's timestamp |
| 19967 | to the current time. Use 'fstat' as well as 'time' to |
| 19968 | determine the "current" time, to accommodate NFS file systems |
| 19969 | if there is a time skew between the host and the NFS server. */ |
| 19970 | { |
| 19971 | int fd = open (file, O_WRONLY|O_CREAT, 0644); |
| 19972 | if (fd < 0) |
| 19973 | result |= 1; |
| 19974 | else |
| 19975 | { |
| 19976 | time_t t0, t2; |
| 19977 | struct stat st0, st1, st2; |
| 19978 | if (time (&t0) == (time_t) -1) |
| 19979 | result |= 1; |
| 19980 | else if (fstat (fd, &st0) != 0) |
| 19981 | result |= 1; |
| 19982 | else if (utimes (file, timeval) != 0) |
| 19983 | result |= 2; |
| 19984 | else if (utimes (file, NULL) != 0) |
| 19985 | result |= 8; |
| 19986 | else if (fstat (fd, &st1) != 0) |
| 19987 | result |= 1; |
| 19988 | else if (write (fd, "\n", 1) != 1) |
| 19989 | result |= 1; |
| 19990 | else if (fstat (fd, &st2) != 0) |
| 19991 | result |= 1; |
| 19992 | else if (time (&t2) == (time_t) -1) |
| 19993 | result |= 1; |
| 19994 | else |
| 19995 | { |
| 19996 | int m_ok_POSIX = inorder (t0, st1.st_mtime, t2); |
| 19997 | int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime); |
| 19998 | if (! (st1.st_atime == st1.st_mtime)) |
| 19999 | result |= 16; |
| 20000 | if (! (m_ok_POSIX || m_ok_NFS)) |
| 20001 | result |= 32; |
| 20002 | } |
| 20003 | if (close (fd) != 0) |
| 20004 | result |= 1; |
| 20005 | } |
| 20006 | if (unlink (file) != 0) |
| 20007 | result |= 1; |
| 20008 | } |
| 20009 | |
| 20010 | /* Test whether utimes() with a NULL argument works on read-only files. */ |
| 20011 | { |
| 20012 | int fd = open (file, O_WRONLY|O_CREAT, 0444); |
| 20013 | if (fd < 0) |
| 20014 | result |= 1; |
| 20015 | else if (close (fd) != 0) |
| 20016 | result |= 1; |
| 20017 | else if (utimes (file, NULL) != 0) |
| 20018 | result |= 64; |
| 20019 | if (unlink (file) != 0) |
| 20020 | result |= 1; |
| 20021 | } |
| 20022 | |
| 20023 | return result; |
| 20024 | } |
| 20025 | |
| 20026 | _ACEOF |
| 20027 | if ac_fn_c_try_run "$LINENO"; then : |
| 20028 | gl_cv_func_working_utimes=yes |
| 20029 | else |
| 20030 | gl_cv_func_working_utimes=no |
| 20031 | fi |
| 20032 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20033 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20034 | fi |
| 20035 | |
| 20036 | fi |
| 20037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5 |
| 20038 | $as_echo "$gl_cv_func_working_utimes" >&6; } |
| 20039 | |
| 20040 | if test $gl_cv_func_working_utimes = yes; then |
| 20041 | |
| 20042 | $as_echo "#define HAVE_WORKING_UTIMES 1" >>confdefs.h |
| 20043 | |
| 20044 | fi |
| 20045 | |
| 20046 | |
| 20047 | |
| 20048 | |
| 20049 | |
| 20050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 |
| 20051 | $as_echo_n "checking for struct utimbuf... " >&6; } |
| 20052 | if test "${gl_cv_sys_struct_utimbuf+set}" = set; then : |
| 20053 | $as_echo_n "(cached) " >&6 |
| 20054 | else |
| 20055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20056 | /* end confdefs.h. */ |
| 20057 | #if HAVE_SYS_TIME_H |
| 20058 | #include <sys/time.h> |
| 20059 | #endif |
| 20060 | #include <time.h> |
| 20061 | #ifdef HAVE_UTIME_H |
| 20062 | #include <utime.h> |
| 20063 | #endif |
| 20064 | |
| 20065 | int |
| 20066 | main () |
| 20067 | { |
| 20068 | static struct utimbuf x; x.actime = x.modtime; |
| 20069 | ; |
| 20070 | return 0; |
| 20071 | } |
| 20072 | _ACEOF |
| 20073 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20074 | gl_cv_sys_struct_utimbuf=yes |
| 20075 | else |
| 20076 | gl_cv_sys_struct_utimbuf=no |
| 20077 | fi |
| 20078 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20079 | fi |
| 20080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_utimbuf" >&5 |
| 20081 | $as_echo "$gl_cv_sys_struct_utimbuf" >&6; } |
| 20082 | |
| 20083 | if test $gl_cv_sys_struct_utimbuf = yes; then |
| 20084 | |
| 20085 | $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h |
| 20086 | |
| 20087 | fi |
| 20088 | |
| 20089 | |
| 20090 | |
| 20091 | |
| 20092 | |
| 20093 | |
| 20094 | |
| 20095 | |
| 20096 | |
| 20097 | |
| 20098 | |
| 20099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 |
| 20100 | $as_echo_n "checking type of array argument to getgroups... " >&6; } |
| 20101 | if test "${ac_cv_type_getgroups+set}" = set; then : |
| 20102 | $as_echo_n "(cached) " >&6 |
| 20103 | else |
| 20104 | if test "$cross_compiling" = yes; then : |
| 20105 | ac_cv_type_getgroups=cross |
| 20106 | else |
| 20107 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20108 | /* end confdefs.h. */ |
| 20109 | /* Thanks to Mike Rendell for this test. */ |
| 20110 | $ac_includes_default |
| 20111 | #define NGID 256 |
| 20112 | #undef MAX |
| 20113 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) |
| 20114 | |
| 20115 | int |
| 20116 | main () |
| 20117 | { |
| 20118 | gid_t gidset[NGID]; |
| 20119 | int i, n; |
| 20120 | union { gid_t gval; long int lval; } val; |
| 20121 | |
| 20122 | val.lval = -1; |
| 20123 | for (i = 0; i < NGID; i++) |
| 20124 | gidset[i] = val.gval; |
| 20125 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, |
| 20126 | gidset); |
| 20127 | /* Exit non-zero if getgroups seems to require an array of ints. This |
| 20128 | happens when gid_t is short int but getgroups modifies an array |
| 20129 | of ints. */ |
| 20130 | return n > 0 && gidset[n] != val.gval; |
| 20131 | } |
| 20132 | _ACEOF |
| 20133 | if ac_fn_c_try_run "$LINENO"; then : |
| 20134 | ac_cv_type_getgroups=gid_t |
| 20135 | else |
| 20136 | ac_cv_type_getgroups=int |
| 20137 | fi |
| 20138 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20139 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20140 | fi |
| 20141 | |
| 20142 | if test $ac_cv_type_getgroups = cross; then |
| 20143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20144 | /* end confdefs.h. */ |
| 20145 | #include <unistd.h> |
| 20146 | |
| 20147 | _ACEOF |
| 20148 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20149 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : |
| 20150 | ac_cv_type_getgroups=gid_t |
| 20151 | else |
| 20152 | ac_cv_type_getgroups=int |
| 20153 | fi |
| 20154 | rm -f conftest* |
| 20155 | |
| 20156 | fi |
| 20157 | fi |
| 20158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 |
| 20159 | $as_echo "$ac_cv_type_getgroups" >&6; } |
| 20160 | |
| 20161 | cat >>confdefs.h <<_ACEOF |
| 20162 | #define GETGROUPS_T $ac_cv_type_getgroups |
| 20163 | _ACEOF |
| 20164 | |
| 20165 | |
| 20166 | |
| 20167 | |
| 20168 | if false; then |
| 20169 | GL_COND_LIBTOOL_TRUE= |
| 20170 | GL_COND_LIBTOOL_FALSE='#' |
| 20171 | else |
| 20172 | GL_COND_LIBTOOL_TRUE='#' |
| 20173 | GL_COND_LIBTOOL_FALSE= |
| 20174 | fi |
| 20175 | |
| 20176 | gl_cond_libtool=false |
| 20177 | gl_libdeps= |
| 20178 | gl_ltlibdeps= |
| 20179 | gl_m4_base='m4' |
| 20180 | |
| 20181 | |
| 20182 | |
| 20183 | |
| 20184 | |
| 20185 | |
| 20186 | |
| 20187 | |
| 20188 | |
| 20189 | gl_source_base='lib' |
| 20190 | |
| 20191 | |
| 20192 | if test $ac_cv_func_alloca_works = no; then |
| 20193 | : |
| 20194 | fi |
| 20195 | |
| 20196 | # Define an additional variable used in the Makefile substitution. |
| 20197 | if test $ac_cv_working_alloca_h = yes; then |
| 20198 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5 |
| 20199 | $as_echo_n "checking for alloca as a compiler built-in... " >&6; } |
| 20200 | if test "${gl_cv_rpl_alloca+set}" = set; then : |
| 20201 | $as_echo_n "(cached) " >&6 |
| 20202 | else |
| 20203 | |
| 20204 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20205 | /* end confdefs.h. */ |
| 20206 | |
| 20207 | #if defined __GNUC__ || defined _AIX || defined _MSC_VER |
| 20208 | Need own alloca |
| 20209 | #endif |
| 20210 | |
| 20211 | _ACEOF |
| 20212 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 20213 | $EGREP "Need own alloca" >/dev/null 2>&1; then : |
| 20214 | gl_cv_rpl_alloca=yes |
| 20215 | else |
| 20216 | gl_cv_rpl_alloca=no |
| 20217 | fi |
| 20218 | rm -f conftest* |
| 20219 | |
| 20220 | |
| 20221 | fi |
| 20222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5 |
| 20223 | $as_echo "$gl_cv_rpl_alloca" >&6; } |
| 20224 | if test $gl_cv_rpl_alloca = yes; then |
| 20225 | |
| 20226 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
| 20227 | |
| 20228 | ALLOCA_H=alloca.h |
| 20229 | else |
| 20230 | ALLOCA_H= |
| 20231 | fi |
| 20232 | else |
| 20233 | ALLOCA_H=alloca.h |
| 20234 | fi |
| 20235 | |
| 20236 | if test -n "$ALLOCA_H"; then |
| 20237 | GL_GENERATE_ALLOCA_H_TRUE= |
| 20238 | GL_GENERATE_ALLOCA_H_FALSE='#' |
| 20239 | else |
| 20240 | GL_GENERATE_ALLOCA_H_TRUE='#' |
| 20241 | GL_GENERATE_ALLOCA_H_FALSE= |
| 20242 | fi |
| 20243 | |
| 20244 | |
| 20245 | |
| 20246 | |
| 20247 | |
| 20248 | |
| 20249 | # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function. |
| 20250 | # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4. |
| 20251 | |
| 20252 | # Save and restore LIBS so e.g., -lrt, isn't added to it. Otherwise, *all* |
| 20253 | # programs in the package would end up linked with that potentially-shared |
| 20254 | # library, inducing unnecessary run-time overhead. |
| 20255 | LIB_CLOCK_GETTIME= |
| 20256 | |
| 20257 | gl_saved_libs=$LIBS |
| 20258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 |
| 20259 | $as_echo_n "checking for library containing clock_gettime... " >&6; } |
| 20260 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 20261 | $as_echo_n "(cached) " >&6 |
| 20262 | else |
| 20263 | ac_func_search_save_LIBS=$LIBS |
| 20264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20265 | /* end confdefs.h. */ |
| 20266 | |
| 20267 | /* Override any GCC internal prototype to avoid an error. |
| 20268 | Use char because int might match the return type of a GCC |
| 20269 | builtin and then its argument prototype would still apply. */ |
| 20270 | #ifdef __cplusplus |
| 20271 | extern "C" |
| 20272 | #endif |
| 20273 | char clock_gettime (); |
| 20274 | int |
| 20275 | main () |
| 20276 | { |
| 20277 | return clock_gettime (); |
| 20278 | ; |
| 20279 | return 0; |
| 20280 | } |
| 20281 | _ACEOF |
| 20282 | for ac_lib in '' rt posix4; do |
| 20283 | if test -z "$ac_lib"; then |
| 20284 | ac_res="none required" |
| 20285 | else |
| 20286 | ac_res=-l$ac_lib |
| 20287 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 20288 | fi |
| 20289 | if ac_fn_c_try_link "$LINENO"; then : |
| 20290 | ac_cv_search_clock_gettime=$ac_res |
| 20291 | fi |
| 20292 | rm -f core conftest.err conftest.$ac_objext \ |
| 20293 | conftest$ac_exeext |
| 20294 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 20295 | break |
| 20296 | fi |
| 20297 | done |
| 20298 | if test "${ac_cv_search_clock_gettime+set}" = set; then : |
| 20299 | |
| 20300 | else |
| 20301 | ac_cv_search_clock_gettime=no |
| 20302 | fi |
| 20303 | rm conftest.$ac_ext |
| 20304 | LIBS=$ac_func_search_save_LIBS |
| 20305 | fi |
| 20306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 |
| 20307 | $as_echo "$ac_cv_search_clock_gettime" >&6; } |
| 20308 | ac_res=$ac_cv_search_clock_gettime |
| 20309 | if test "$ac_res" != no; then : |
| 20310 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 20311 | test "$ac_cv_search_clock_gettime" = "none required" || |
| 20312 | LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime |
| 20313 | fi |
| 20314 | |
| 20315 | for ac_func in clock_gettime clock_settime |
| 20316 | do : |
| 20317 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 20318 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 20319 | eval as_val=\$$as_ac_var |
| 20320 | if test "x$as_val" = x""yes; then : |
| 20321 | cat >>confdefs.h <<_ACEOF |
| 20322 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
| 20323 | _ACEOF |
| 20324 | |
| 20325 | fi |
| 20326 | done |
| 20327 | |
| 20328 | LIBS=$gl_saved_libs |
| 20329 | |
| 20330 | |
| 20331 | : |
| 20332 | |
| 20333 | |
| 20334 | |
| 20335 | cat >>confdefs.h <<_ACEOF |
| 20336 | #define GNULIB_CLOSE_STREAM 1 |
| 20337 | _ACEOF |
| 20338 | |
| 20339 | |
| 20340 | |
| 20341 | |
| 20342 | : |
| 20343 | |
| 20344 | |
| 20345 | |
| 20346 | : |
| 20347 | |
| 20348 | |
| 20349 | |
| 20350 | |
| 20351 | |
| 20352 | |
| 20353 | |
| 20354 | |
| 20355 | |
| 20356 | |
| 20357 | |
| 20358 | |
| 20359 | |
| 20360 | $as_echo "#define HAVE_DUP2 1" >>confdefs.h |
| 20361 | |
| 20362 | |
| 20363 | if test $HAVE_DUP2 = 1; then |
| 20364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5 |
| 20365 | $as_echo_n "checking whether dup2 works... " >&6; } |
| 20366 | if test "${gl_cv_func_dup2_works+set}" = set; then : |
| 20367 | $as_echo_n "(cached) " >&6 |
| 20368 | else |
| 20369 | if test "$cross_compiling" = yes; then : |
| 20370 | case "$host_os" in |
| 20371 | mingw*) # on this platform, dup2 always returns 0 for success |
| 20372 | gl_cv_func_dup2_works="guessing no" ;; |
| 20373 | cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0 |
| 20374 | gl_cv_func_dup2_works="guessing no" ;; |
| 20375 | linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a |
| 20376 | # closed fd may yield -EBADF instead of -1 / errno=EBADF. |
| 20377 | gl_cv_func_dup2_works="guessing no" ;; |
| 20378 | freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF. |
| 20379 | gl_cv_func_dup2_works="guessing no" ;; |
| 20380 | haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC. |
| 20381 | gl_cv_func_dup2_works="guessing no" ;; |
| 20382 | *) gl_cv_func_dup2_works="guessing yes" ;; |
| 20383 | esac |
| 20384 | else |
| 20385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20386 | /* end confdefs.h. */ |
| 20387 | |
| 20388 | #include <unistd.h> |
| 20389 | #include <fcntl.h> |
| 20390 | #include <errno.h> |
| 20391 | int |
| 20392 | main () |
| 20393 | { |
| 20394 | int result = 0; |
| 20395 | #ifdef FD_CLOEXEC |
| 20396 | if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1) |
| 20397 | result |= 1; |
| 20398 | #endif |
| 20399 | if (dup2 (1, 1) == 0) |
| 20400 | result |= 2; |
| 20401 | #ifdef FD_CLOEXEC |
| 20402 | if (fcntl (1, F_GETFD) != FD_CLOEXEC) |
| 20403 | result |= 4; |
| 20404 | #endif |
| 20405 | close (0); |
| 20406 | if (dup2 (0, 0) != -1) |
| 20407 | result |= 8; |
| 20408 | /* Many gnulib modules require POSIX conformance of EBADF. */ |
| 20409 | if (dup2 (2, 1000000) == -1 && errno != EBADF) |
| 20410 | result |= 16; |
| 20411 | return result; |
| 20412 | |
| 20413 | ; |
| 20414 | return 0; |
| 20415 | } |
| 20416 | |
| 20417 | _ACEOF |
| 20418 | if ac_fn_c_try_run "$LINENO"; then : |
| 20419 | gl_cv_func_dup2_works=yes |
| 20420 | else |
| 20421 | gl_cv_func_dup2_works=no |
| 20422 | fi |
| 20423 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 20424 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 20425 | fi |
| 20426 | |
| 20427 | |
| 20428 | fi |
| 20429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5 |
| 20430 | $as_echo "$gl_cv_func_dup2_works" >&6; } |
| 20431 | case "$gl_cv_func_dup2_works" in |
| 20432 | *yes) ;; |
| 20433 | *) |
| 20434 | REPLACE_DUP2=1 |
| 20435 | ;; |
| 20436 | esac |
| 20437 | fi |
| 20438 | |
| 20439 | |
| 20440 | if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then |
| 20441 | |
| 20442 | |
| 20443 | |
| 20444 | |
| 20445 | |
| 20446 | |
| 20447 | |
| 20448 | |
| 20449 | gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext" |
| 20450 | |
| 20451 | |
| 20452 | fi |
| 20453 | |
| 20454 | |
| 20455 | |
| 20456 | |
| 20457 | |
| 20458 | GNULIB_DUP2=1 |
| 20459 | |
| 20460 | |
| 20461 | |
| 20462 | |
| 20463 | |
| 20464 | |
| 20465 | |
| 20466 | |
| 20467 | |
| 20468 | |
| 20469 | |
| 20470 | GNULIB_ENVIRON=1 |
| 20471 | |
| 20472 | |
| 20473 | |
| 20474 | |
| 20475 | |
| 20476 | |
| 20477 | |
| 20478 | |
| 20479 | LIB_EXECINFO='' |
| 20480 | EXECINFO_H='execinfo.h' |
| 20481 | |
| 20482 | if test $ac_cv_header_execinfo_h = yes; then |
| 20483 | gl_saved_libs=$LIBS |
| 20484 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace_symbols_fd" >&5 |
| 20485 | $as_echo_n "checking for library containing backtrace_symbols_fd... " >&6; } |
| 20486 | if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then : |
| 20487 | $as_echo_n "(cached) " >&6 |
| 20488 | else |
| 20489 | ac_func_search_save_LIBS=$LIBS |
| 20490 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20491 | /* end confdefs.h. */ |
| 20492 | |
| 20493 | /* Override any GCC internal prototype to avoid an error. |
| 20494 | Use char because int might match the return type of a GCC |
| 20495 | builtin and then its argument prototype would still apply. */ |
| 20496 | #ifdef __cplusplus |
| 20497 | extern "C" |
| 20498 | #endif |
| 20499 | char backtrace_symbols_fd (); |
| 20500 | int |
| 20501 | main () |
| 20502 | { |
| 20503 | return backtrace_symbols_fd (); |
| 20504 | ; |
| 20505 | return 0; |
| 20506 | } |
| 20507 | _ACEOF |
| 20508 | for ac_lib in '' execinfo; do |
| 20509 | if test -z "$ac_lib"; then |
| 20510 | ac_res="none required" |
| 20511 | else |
| 20512 | ac_res=-l$ac_lib |
| 20513 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 20514 | fi |
| 20515 | if ac_fn_c_try_link "$LINENO"; then : |
| 20516 | ac_cv_search_backtrace_symbols_fd=$ac_res |
| 20517 | fi |
| 20518 | rm -f core conftest.err conftest.$ac_objext \ |
| 20519 | conftest$ac_exeext |
| 20520 | if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then : |
| 20521 | break |
| 20522 | fi |
| 20523 | done |
| 20524 | if test "${ac_cv_search_backtrace_symbols_fd+set}" = set; then : |
| 20525 | |
| 20526 | else |
| 20527 | ac_cv_search_backtrace_symbols_fd=no |
| 20528 | fi |
| 20529 | rm conftest.$ac_ext |
| 20530 | LIBS=$ac_func_search_save_LIBS |
| 20531 | fi |
| 20532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace_symbols_fd" >&5 |
| 20533 | $as_echo "$ac_cv_search_backtrace_symbols_fd" >&6; } |
| 20534 | ac_res=$ac_cv_search_backtrace_symbols_fd |
| 20535 | if test "$ac_res" != no; then : |
| 20536 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 20537 | test "$ac_cv_search_backtrace_symbols_fd" = "none required" || |
| 20538 | LIB_EXECINFO=$ac_cv_search_backtrace_symbols_fd |
| 20539 | fi |
| 20540 | |
| 20541 | LIBS=$gl_saved_libs |
| 20542 | test "$ac_cv_search_backtrace_symbols_fd" = no || EXECINFO_H='' |
| 20543 | fi |
| 20544 | |
| 20545 | if test -n "$EXECINFO_H"; then |
| 20546 | |
| 20547 | |
| 20548 | |
| 20549 | |
| 20550 | |
| 20551 | |
| 20552 | |
| 20553 | |
| 20554 | gl_LIBOBJS="$gl_LIBOBJS execinfo.$ac_objext" |
| 20555 | |
| 20556 | fi |
| 20557 | |
| 20558 | |
| 20559 | |
| 20560 | if test -n "$EXECINFO_H"; then |
| 20561 | GL_GENERATE_EXECINFO_H_TRUE= |
| 20562 | GL_GENERATE_EXECINFO_H_FALSE='#' |
| 20563 | else |
| 20564 | GL_GENERATE_EXECINFO_H_TRUE='#' |
| 20565 | GL_GENERATE_EXECINFO_H_FALSE= |
| 20566 | fi |
| 20567 | |
| 20568 | |
| 20569 | |
| 20570 | |
| 20571 | |
| 20572 | |
| 20573 | |
| 20574 | |
| 20575 | |
| 20576 | if test $ac_cv_func_faccessat = no; then |
| 20577 | HAVE_FACCESSAT=0 |
| 20578 | fi |
| 20579 | |
| 20580 | if test $HAVE_FACCESSAT = 0; then |
| 20581 | |
| 20582 | |
| 20583 | |
| 20584 | |
| 20585 | |
| 20586 | |
| 20587 | |
| 20588 | |
| 20589 | gl_LIBOBJS="$gl_LIBOBJS faccessat.$ac_objext" |
| 20590 | |
| 20591 | |
| 20592 | for ac_func in access |
| 20593 | do : |
| 20594 | ac_fn_c_check_func "$LINENO" "access" "ac_cv_func_access" |
| 20595 | if test "x$ac_cv_func_access" = x""yes; then : |
| 20596 | cat >>confdefs.h <<_ACEOF |
| 20597 | #define HAVE_ACCESS 1 |
| 20598 | _ACEOF |
| 20599 | |
| 20600 | fi |
| 20601 | done |
| 20602 | |
| 20603 | |
| 20604 | fi |
| 20605 | |
| 20606 | |
| 20607 | cat >>confdefs.h <<_ACEOF |
| 20608 | #define GNULIB_FACCESSAT 1 |
| 20609 | _ACEOF |
| 20610 | |
| 20611 | |
| 20612 | |
| 20613 | |
| 20614 | |
| 20615 | |
| 20616 | |
| 20617 | GNULIB_FACCESSAT=1 |
| 20618 | |
| 20619 | |
| 20620 | |
| 20621 | |
| 20622 | |
| 20623 | |
| 20624 | |
| 20625 | |
| 20626 | |
| 20627 | |
| 20628 | |
| 20629 | |
| 20630 | |
| 20631 | |
| 20632 | |
| 20633 | |
| 20634 | if test $gl_cv_have_include_next = yes; then |
| 20635 | gl_cv_next_fcntl_h='<'fcntl.h'>' |
| 20636 | else |
| 20637 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5 |
| 20638 | $as_echo_n "checking absolute name of <fcntl.h>... " >&6; } |
| 20639 | if test "${gl_cv_next_fcntl_h+set}" = set; then : |
| 20640 | $as_echo_n "(cached) " >&6 |
| 20641 | else |
| 20642 | |
| 20643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20644 | /* end confdefs.h. */ |
| 20645 | #include <fcntl.h> |
| 20646 | |
| 20647 | _ACEOF |
| 20648 | case "$host_os" in |
| 20649 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 20650 | *) gl_absname_cpp="$ac_cpp" ;; |
| 20651 | esac |
| 20652 | |
| 20653 | case "$host_os" in |
| 20654 | mingw*) |
| 20655 | gl_dirsep_regex='[/\\]' |
| 20656 | ;; |
| 20657 | *) |
| 20658 | gl_dirsep_regex='\/' |
| 20659 | ;; |
| 20660 | esac |
| 20661 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 20662 | |
| 20663 | gl_header_literal_regex=`echo 'fcntl.h' \ |
| 20664 | | sed -e "$gl_make_literal_regex_sed"` |
| 20665 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 20666 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 20667 | s|^/[^/]|//&| |
| 20668 | p |
| 20669 | q |
| 20670 | }' |
| 20671 | gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 20672 | sed -n "$gl_absolute_header_sed"`'"' |
| 20673 | |
| 20674 | |
| 20675 | fi |
| 20676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5 |
| 20677 | $as_echo "$gl_cv_next_fcntl_h" >&6; } |
| 20678 | fi |
| 20679 | NEXT_FCNTL_H=$gl_cv_next_fcntl_h |
| 20680 | |
| 20681 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 20682 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 20683 | gl_next_as_first_directive='<'fcntl.h'>' |
| 20684 | else |
| 20685 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 20686 | gl_next_as_first_directive=$gl_cv_next_fcntl_h |
| 20687 | fi |
| 20688 | NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive |
| 20689 | |
| 20690 | |
| 20691 | |
| 20692 | |
| 20693 | |
| 20694 | |
| 20695 | |
| 20696 | |
| 20697 | |
| 20698 | |
| 20699 | |
| 20700 | |
| 20701 | |
| 20702 | |
| 20703 | |
| 20704 | |
| 20705 | |
| 20706 | |
| 20707 | fp_headers=' |
| 20708 | # include <stdio.h> |
| 20709 | # if HAVE_STDIO_EXT_H |
| 20710 | # include <stdio_ext.h> |
| 20711 | # endif |
| 20712 | ' |
| 20713 | ac_fn_c_check_decl "$LINENO" "__fpending" "ac_cv_have_decl___fpending" "$fp_headers |
| 20714 | " |
| 20715 | if test "x$ac_cv_have_decl___fpending" = x""yes; then : |
| 20716 | ac_have_decl=1 |
| 20717 | else |
| 20718 | ac_have_decl=0 |
| 20719 | fi |
| 20720 | |
| 20721 | cat >>confdefs.h <<_ACEOF |
| 20722 | #define HAVE_DECL___FPENDING $ac_have_decl |
| 20723 | _ACEOF |
| 20724 | |
| 20725 | |
| 20726 | if test $ac_cv_func___fpending = no; then |
| 20727 | |
| 20728 | |
| 20729 | |
| 20730 | |
| 20731 | |
| 20732 | |
| 20733 | |
| 20734 | |
| 20735 | gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext" |
| 20736 | |
| 20737 | |
| 20738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to determine the number of pending output bytes on a stream" >&5 |
| 20739 | $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; } |
| 20740 | if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then : |
| 20741 | $as_echo_n "(cached) " >&6 |
| 20742 | else |
| 20743 | |
| 20744 | for ac_expr in \ |
| 20745 | \ |
| 20746 | '# glibc2' \ |
| 20747 | 'fp->_IO_write_ptr - fp->_IO_write_base' \ |
| 20748 | \ |
| 20749 | '# traditional Unix' \ |
| 20750 | 'fp->_ptr - fp->_base' \ |
| 20751 | \ |
| 20752 | '# BSD' \ |
| 20753 | 'fp->_p - fp->_bf._base' \ |
| 20754 | \ |
| 20755 | '# SCO, Unixware' \ |
| 20756 | '(fp->__ptr ? fp->__ptr - fp->__base : 0)' \ |
| 20757 | \ |
| 20758 | '# QNX' \ |
| 20759 | '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \ |
| 20760 | \ |
| 20761 | '# old glibc?' \ |
| 20762 | 'fp->__bufp - fp->__buffer' \ |
| 20763 | \ |
| 20764 | '# old glibc iostream?' \ |
| 20765 | 'fp->_pptr - fp->_pbase' \ |
| 20766 | \ |
| 20767 | '# emx+gcc' \ |
| 20768 | 'fp->_ptr - fp->_buffer' \ |
| 20769 | \ |
| 20770 | '# Minix' \ |
| 20771 | 'fp->_ptr - fp->_buf' \ |
| 20772 | \ |
| 20773 | '# Plan9' \ |
| 20774 | 'fp->wp - fp->buf' \ |
| 20775 | \ |
| 20776 | '# VMS' \ |
| 20777 | '(*fp)->_ptr - (*fp)->_base' \ |
| 20778 | \ |
| 20779 | '# e.g., DGUX R4.11; the info is not available' \ |
| 20780 | 1 \ |
| 20781 | ; do |
| 20782 | |
| 20783 | # Skip each embedded comment. |
| 20784 | case "$ac_expr" in '#'*) continue;; esac |
| 20785 | |
| 20786 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20787 | /* end confdefs.h. */ |
| 20788 | #include <stdio.h> |
| 20789 | int |
| 20790 | main () |
| 20791 | { |
| 20792 | FILE *fp = stdin; (void) ($ac_expr); |
| 20793 | ; |
| 20794 | return 0; |
| 20795 | } |
| 20796 | _ACEOF |
| 20797 | if ac_fn_c_try_compile "$LINENO"; then : |
| 20798 | fp_done=yes |
| 20799 | |
| 20800 | fi |
| 20801 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 20802 | test "$fp_done" = yes && break |
| 20803 | done |
| 20804 | |
| 20805 | ac_cv_sys_pending_output_n_bytes=$ac_expr |
| 20806 | |
| 20807 | |
| 20808 | fi |
| 20809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_pending_output_n_bytes" >&5 |
| 20810 | $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; } |
| 20811 | |
| 20812 | cat >>confdefs.h <<_ACEOF |
| 20813 | #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes |
| 20814 | _ACEOF |
| 20815 | |
| 20816 | |
| 20817 | fi |
| 20818 | |
| 20819 | |
| 20820 | # Persuade glibc <stdlib.h> to declare getloadavg(). |
| 20821 | |
| 20822 | |
| 20823 | gl_save_LIBS=$LIBS |
| 20824 | |
| 20825 | # getloadvg is present in libc on glibc >= 2.2, Mac OS X, FreeBSD >= 2.0, |
| 20826 | # NetBSD >= 0.9, OpenBSD >= 2.0, Solaris >= 7. |
| 20827 | HAVE_GETLOADAVG=1 |
| 20828 | ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" |
| 20829 | if test "x$ac_cv_func_getloadavg" = x""yes; then : |
| 20830 | |
| 20831 | else |
| 20832 | gl_func_getloadavg_done=no |
| 20833 | |
| 20834 | # Some systems with -lutil have (and need) -lkvm as well, some do not. |
| 20835 | # On Solaris, -lkvm requires nlist from -lelf, so check that first |
| 20836 | # to get the right answer into the cache. |
| 20837 | # For kstat on solaris, we need to test for libelf and libkvm to force the |
| 20838 | # definition of SVR4 below. |
| 20839 | if test $gl_func_getloadavg_done = no; then |
| 20840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 |
| 20841 | $as_echo_n "checking for elf_begin in -lelf... " >&6; } |
| 20842 | if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : |
| 20843 | $as_echo_n "(cached) " >&6 |
| 20844 | else |
| 20845 | ac_check_lib_save_LIBS=$LIBS |
| 20846 | LIBS="-lelf $LIBS" |
| 20847 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20848 | /* end confdefs.h. */ |
| 20849 | |
| 20850 | /* Override any GCC internal prototype to avoid an error. |
| 20851 | Use char because int might match the return type of a GCC |
| 20852 | builtin and then its argument prototype would still apply. */ |
| 20853 | #ifdef __cplusplus |
| 20854 | extern "C" |
| 20855 | #endif |
| 20856 | char elf_begin (); |
| 20857 | int |
| 20858 | main () |
| 20859 | { |
| 20860 | return elf_begin (); |
| 20861 | ; |
| 20862 | return 0; |
| 20863 | } |
| 20864 | _ACEOF |
| 20865 | if ac_fn_c_try_link "$LINENO"; then : |
| 20866 | ac_cv_lib_elf_elf_begin=yes |
| 20867 | else |
| 20868 | ac_cv_lib_elf_elf_begin=no |
| 20869 | fi |
| 20870 | rm -f core conftest.err conftest.$ac_objext \ |
| 20871 | conftest$ac_exeext conftest.$ac_ext |
| 20872 | LIBS=$ac_check_lib_save_LIBS |
| 20873 | fi |
| 20874 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 |
| 20875 | $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } |
| 20876 | if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : |
| 20877 | LIBS="-lelf $LIBS" |
| 20878 | fi |
| 20879 | |
| 20880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 |
| 20881 | $as_echo_n "checking for kvm_open in -lkvm... " >&6; } |
| 20882 | if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : |
| 20883 | $as_echo_n "(cached) " >&6 |
| 20884 | else |
| 20885 | ac_check_lib_save_LIBS=$LIBS |
| 20886 | LIBS="-lkvm $LIBS" |
| 20887 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20888 | /* end confdefs.h. */ |
| 20889 | |
| 20890 | /* Override any GCC internal prototype to avoid an error. |
| 20891 | Use char because int might match the return type of a GCC |
| 20892 | builtin and then its argument prototype would still apply. */ |
| 20893 | #ifdef __cplusplus |
| 20894 | extern "C" |
| 20895 | #endif |
| 20896 | char kvm_open (); |
| 20897 | int |
| 20898 | main () |
| 20899 | { |
| 20900 | return kvm_open (); |
| 20901 | ; |
| 20902 | return 0; |
| 20903 | } |
| 20904 | _ACEOF |
| 20905 | if ac_fn_c_try_link "$LINENO"; then : |
| 20906 | ac_cv_lib_kvm_kvm_open=yes |
| 20907 | else |
| 20908 | ac_cv_lib_kvm_kvm_open=no |
| 20909 | fi |
| 20910 | rm -f core conftest.err conftest.$ac_objext \ |
| 20911 | conftest$ac_exeext conftest.$ac_ext |
| 20912 | LIBS=$ac_check_lib_save_LIBS |
| 20913 | fi |
| 20914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 |
| 20915 | $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } |
| 20916 | if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : |
| 20917 | LIBS="-lkvm $LIBS" |
| 20918 | fi |
| 20919 | |
| 20920 | # Check for the 4.4BSD definition of getloadavg. |
| 20921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 |
| 20922 | $as_echo_n "checking for getloadavg in -lutil... " >&6; } |
| 20923 | if test "${ac_cv_lib_util_getloadavg+set}" = set; then : |
| 20924 | $as_echo_n "(cached) " >&6 |
| 20925 | else |
| 20926 | ac_check_lib_save_LIBS=$LIBS |
| 20927 | LIBS="-lutil $LIBS" |
| 20928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20929 | /* end confdefs.h. */ |
| 20930 | |
| 20931 | /* Override any GCC internal prototype to avoid an error. |
| 20932 | Use char because int might match the return type of a GCC |
| 20933 | builtin and then its argument prototype would still apply. */ |
| 20934 | #ifdef __cplusplus |
| 20935 | extern "C" |
| 20936 | #endif |
| 20937 | char getloadavg (); |
| 20938 | int |
| 20939 | main () |
| 20940 | { |
| 20941 | return getloadavg (); |
| 20942 | ; |
| 20943 | return 0; |
| 20944 | } |
| 20945 | _ACEOF |
| 20946 | if ac_fn_c_try_link "$LINENO"; then : |
| 20947 | ac_cv_lib_util_getloadavg=yes |
| 20948 | else |
| 20949 | ac_cv_lib_util_getloadavg=no |
| 20950 | fi |
| 20951 | rm -f core conftest.err conftest.$ac_objext \ |
| 20952 | conftest$ac_exeext conftest.$ac_ext |
| 20953 | LIBS=$ac_check_lib_save_LIBS |
| 20954 | fi |
| 20955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 |
| 20956 | $as_echo "$ac_cv_lib_util_getloadavg" >&6; } |
| 20957 | if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : |
| 20958 | LIBS="-lutil $LIBS" gl_func_getloadavg_done=yes |
| 20959 | fi |
| 20960 | |
| 20961 | fi |
| 20962 | |
| 20963 | if test $gl_func_getloadavg_done = no; then |
| 20964 | # There is a commonly available library for RS/6000 AIX. |
| 20965 | # Since it is not a standard part of AIX, it might be installed locally. |
| 20966 | gl_getloadavg_LIBS=$LIBS |
| 20967 | LIBS="-L/usr/local/lib $LIBS" |
| 20968 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 |
| 20969 | $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } |
| 20970 | if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : |
| 20971 | $as_echo_n "(cached) " >&6 |
| 20972 | else |
| 20973 | ac_check_lib_save_LIBS=$LIBS |
| 20974 | LIBS="-lgetloadavg $LIBS" |
| 20975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 20976 | /* end confdefs.h. */ |
| 20977 | |
| 20978 | /* Override any GCC internal prototype to avoid an error. |
| 20979 | Use char because int might match the return type of a GCC |
| 20980 | builtin and then its argument prototype would still apply. */ |
| 20981 | #ifdef __cplusplus |
| 20982 | extern "C" |
| 20983 | #endif |
| 20984 | char getloadavg (); |
| 20985 | int |
| 20986 | main () |
| 20987 | { |
| 20988 | return getloadavg (); |
| 20989 | ; |
| 20990 | return 0; |
| 20991 | } |
| 20992 | _ACEOF |
| 20993 | if ac_fn_c_try_link "$LINENO"; then : |
| 20994 | ac_cv_lib_getloadavg_getloadavg=yes |
| 20995 | else |
| 20996 | ac_cv_lib_getloadavg_getloadavg=no |
| 20997 | fi |
| 20998 | rm -f core conftest.err conftest.$ac_objext \ |
| 20999 | conftest$ac_exeext conftest.$ac_ext |
| 21000 | LIBS=$ac_check_lib_save_LIBS |
| 21001 | fi |
| 21002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 |
| 21003 | $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } |
| 21004 | if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : |
| 21005 | LIBS="-lgetloadavg $LIBS" gl_func_getloadavg_done=yes |
| 21006 | else |
| 21007 | LIBS=$gl_getloadavg_LIBS |
| 21008 | fi |
| 21009 | |
| 21010 | fi |
| 21011 | |
| 21012 | # Set up the replacement function if necessary. |
| 21013 | if test $gl_func_getloadavg_done = no; then |
| 21014 | HAVE_GETLOADAVG=0 |
| 21015 | |
| 21016 | # Solaris has libkstat which does not require root. |
| 21017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 |
| 21018 | $as_echo_n "checking for kstat_open in -lkstat... " >&6; } |
| 21019 | if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : |
| 21020 | $as_echo_n "(cached) " >&6 |
| 21021 | else |
| 21022 | ac_check_lib_save_LIBS=$LIBS |
| 21023 | LIBS="-lkstat $LIBS" |
| 21024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21025 | /* end confdefs.h. */ |
| 21026 | |
| 21027 | /* Override any GCC internal prototype to avoid an error. |
| 21028 | Use char because int might match the return type of a GCC |
| 21029 | builtin and then its argument prototype would still apply. */ |
| 21030 | #ifdef __cplusplus |
| 21031 | extern "C" |
| 21032 | #endif |
| 21033 | char kstat_open (); |
| 21034 | int |
| 21035 | main () |
| 21036 | { |
| 21037 | return kstat_open (); |
| 21038 | ; |
| 21039 | return 0; |
| 21040 | } |
| 21041 | _ACEOF |
| 21042 | if ac_fn_c_try_link "$LINENO"; then : |
| 21043 | ac_cv_lib_kstat_kstat_open=yes |
| 21044 | else |
| 21045 | ac_cv_lib_kstat_kstat_open=no |
| 21046 | fi |
| 21047 | rm -f core conftest.err conftest.$ac_objext \ |
| 21048 | conftest$ac_exeext conftest.$ac_ext |
| 21049 | LIBS=$ac_check_lib_save_LIBS |
| 21050 | fi |
| 21051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 |
| 21052 | $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } |
| 21053 | if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : |
| 21054 | cat >>confdefs.h <<_ACEOF |
| 21055 | #define HAVE_LIBKSTAT 1 |
| 21056 | _ACEOF |
| 21057 | |
| 21058 | LIBS="-lkstat $LIBS" |
| 21059 | |
| 21060 | fi |
| 21061 | |
| 21062 | test $ac_cv_lib_kstat_kstat_open = yes && gl_func_getloadavg_done=yes |
| 21063 | |
| 21064 | # AIX has libperfstat which does not require root |
| 21065 | if test $gl_func_getloadavg_done = no; then |
| 21066 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_cpu_total in -lperfstat" >&5 |
| 21067 | $as_echo_n "checking for perfstat_cpu_total in -lperfstat... " >&6; } |
| 21068 | if test "${ac_cv_lib_perfstat_perfstat_cpu_total+set}" = set; then : |
| 21069 | $as_echo_n "(cached) " >&6 |
| 21070 | else |
| 21071 | ac_check_lib_save_LIBS=$LIBS |
| 21072 | LIBS="-lperfstat $LIBS" |
| 21073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21074 | /* end confdefs.h. */ |
| 21075 | |
| 21076 | /* Override any GCC internal prototype to avoid an error. |
| 21077 | Use char because int might match the return type of a GCC |
| 21078 | builtin and then its argument prototype would still apply. */ |
| 21079 | #ifdef __cplusplus |
| 21080 | extern "C" |
| 21081 | #endif |
| 21082 | char perfstat_cpu_total (); |
| 21083 | int |
| 21084 | main () |
| 21085 | { |
| 21086 | return perfstat_cpu_total (); |
| 21087 | ; |
| 21088 | return 0; |
| 21089 | } |
| 21090 | _ACEOF |
| 21091 | if ac_fn_c_try_link "$LINENO"; then : |
| 21092 | ac_cv_lib_perfstat_perfstat_cpu_total=yes |
| 21093 | else |
| 21094 | ac_cv_lib_perfstat_perfstat_cpu_total=no |
| 21095 | fi |
| 21096 | rm -f core conftest.err conftest.$ac_objext \ |
| 21097 | conftest$ac_exeext conftest.$ac_ext |
| 21098 | LIBS=$ac_check_lib_save_LIBS |
| 21099 | fi |
| 21100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_cpu_total" >&5 |
| 21101 | $as_echo "$ac_cv_lib_perfstat_perfstat_cpu_total" >&6; } |
| 21102 | if test "x$ac_cv_lib_perfstat_perfstat_cpu_total" = x""yes; then : |
| 21103 | cat >>confdefs.h <<_ACEOF |
| 21104 | #define HAVE_LIBPERFSTAT 1 |
| 21105 | _ACEOF |
| 21106 | |
| 21107 | LIBS="-lperfstat $LIBS" |
| 21108 | |
| 21109 | fi |
| 21110 | |
| 21111 | test $ac_cv_lib_perfstat_perfstat_cpu_total = yes && gl_func_getloadavg_done=yes |
| 21112 | fi |
| 21113 | |
| 21114 | if test $gl_func_getloadavg_done = no; then |
| 21115 | ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" |
| 21116 | if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : |
| 21117 | gl_func_getloadavg_done=yes |
| 21118 | |
| 21119 | $as_echo "#define DGUX 1" >>confdefs.h |
| 21120 | |
| 21121 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 |
| 21122 | $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } |
| 21123 | if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : |
| 21124 | $as_echo_n "(cached) " >&6 |
| 21125 | else |
| 21126 | ac_check_lib_save_LIBS=$LIBS |
| 21127 | LIBS="-ldgc $LIBS" |
| 21128 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21129 | /* end confdefs.h. */ |
| 21130 | |
| 21131 | /* Override any GCC internal prototype to avoid an error. |
| 21132 | Use char because int might match the return type of a GCC |
| 21133 | builtin and then its argument prototype would still apply. */ |
| 21134 | #ifdef __cplusplus |
| 21135 | extern "C" |
| 21136 | #endif |
| 21137 | char dg_sys_info (); |
| 21138 | int |
| 21139 | main () |
| 21140 | { |
| 21141 | return dg_sys_info (); |
| 21142 | ; |
| 21143 | return 0; |
| 21144 | } |
| 21145 | _ACEOF |
| 21146 | if ac_fn_c_try_link "$LINENO"; then : |
| 21147 | ac_cv_lib_dgc_dg_sys_info=yes |
| 21148 | else |
| 21149 | ac_cv_lib_dgc_dg_sys_info=no |
| 21150 | fi |
| 21151 | rm -f core conftest.err conftest.$ac_objext \ |
| 21152 | conftest$ac_exeext conftest.$ac_ext |
| 21153 | LIBS=$ac_check_lib_save_LIBS |
| 21154 | fi |
| 21155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 |
| 21156 | $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } |
| 21157 | if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : |
| 21158 | cat >>confdefs.h <<_ACEOF |
| 21159 | #define HAVE_LIBDGC 1 |
| 21160 | _ACEOF |
| 21161 | |
| 21162 | LIBS="-ldgc $LIBS" |
| 21163 | |
| 21164 | fi |
| 21165 | |
| 21166 | fi |
| 21167 | |
| 21168 | |
| 21169 | fi |
| 21170 | fi |
| 21171 | fi |
| 21172 | |
| 21173 | |
| 21174 | if test "x$gl_save_LIBS" = x; then |
| 21175 | GETLOADAVG_LIBS=$LIBS |
| 21176 | else |
| 21177 | GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$gl_save_LIBS!!"` |
| 21178 | fi |
| 21179 | LIBS=$gl_save_LIBS |
| 21180 | |
| 21181 | |
| 21182 | # Test whether the system declares getloadavg. Solaris has the function |
| 21183 | # but declares it in <sys/loadavg.h>, not <stdlib.h>. |
| 21184 | for ac_header in sys/loadavg.h |
| 21185 | do : |
| 21186 | ac_fn_c_check_header_mongrel "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" |
| 21187 | if test "x$ac_cv_header_sys_loadavg_h" = x""yes; then : |
| 21188 | cat >>confdefs.h <<_ACEOF |
| 21189 | #define HAVE_SYS_LOADAVG_H 1 |
| 21190 | _ACEOF |
| 21191 | |
| 21192 | fi |
| 21193 | |
| 21194 | done |
| 21195 | |
| 21196 | if test $ac_cv_header_sys_loadavg_h = yes; then |
| 21197 | HAVE_SYS_LOADAVG_H=1 |
| 21198 | else |
| 21199 | HAVE_SYS_LOADAVG_H=0 |
| 21200 | fi |
| 21201 | ac_fn_c_check_decl "$LINENO" "getloadavg" "ac_cv_have_decl_getloadavg" "#if HAVE_SYS_LOADAVG_H |
| 21202 | # include <sys/loadavg.h> |
| 21203 | #endif |
| 21204 | #include <stdlib.h> |
| 21205 | " |
| 21206 | if test "x$ac_cv_have_decl_getloadavg" = x""yes; then : |
| 21207 | |
| 21208 | else |
| 21209 | HAVE_DECL_GETLOADAVG=0 |
| 21210 | fi |
| 21211 | |
| 21212 | |
| 21213 | if test $HAVE_GETLOADAVG = 0; then |
| 21214 | |
| 21215 | |
| 21216 | |
| 21217 | |
| 21218 | |
| 21219 | |
| 21220 | |
| 21221 | |
| 21222 | gl_LIBOBJS="$gl_LIBOBJS getloadavg.$ac_objext" |
| 21223 | |
| 21224 | |
| 21225 | # Figure out what our getloadavg.c needs. |
| 21226 | |
| 21227 | |
| 21228 | |
| 21229 | # On HPUX9, an unprivileged user can get load averages this way. |
| 21230 | if test $gl_func_getloadavg_done = no; then |
| 21231 | for ac_func in pstat_getdynamic |
| 21232 | do : |
| 21233 | ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" |
| 21234 | if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : |
| 21235 | cat >>confdefs.h <<_ACEOF |
| 21236 | #define HAVE_PSTAT_GETDYNAMIC 1 |
| 21237 | _ACEOF |
| 21238 | gl_func_getloadavg_done=yes |
| 21239 | fi |
| 21240 | done |
| 21241 | |
| 21242 | fi |
| 21243 | |
| 21244 | # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it |
| 21245 | # uses stabs), but it is still SVR4. We cannot check for <elf.h> because |
| 21246 | # Irix 4.0.5F has the header but not the library. |
| 21247 | if test $gl_func_getloadavg_done = no && test "$ac_cv_lib_elf_elf_begin" = yes \ |
| 21248 | && test "$ac_cv_lib_kvm_kvm_open" = yes; then |
| 21249 | gl_func_getloadavg_done=yes |
| 21250 | |
| 21251 | $as_echo "#define SVR4 1" >>confdefs.h |
| 21252 | |
| 21253 | fi |
| 21254 | |
| 21255 | if test $gl_func_getloadavg_done = no; then |
| 21256 | ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" |
| 21257 | if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : |
| 21258 | gl_func_getloadavg_done=yes |
| 21259 | |
| 21260 | $as_echo "#define UMAX 1" >>confdefs.h |
| 21261 | |
| 21262 | |
| 21263 | $as_echo "#define UMAX4_3 1" >>confdefs.h |
| 21264 | |
| 21265 | fi |
| 21266 | |
| 21267 | |
| 21268 | fi |
| 21269 | |
| 21270 | if test $gl_func_getloadavg_done = no; then |
| 21271 | ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" |
| 21272 | if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : |
| 21273 | gl_func_getloadavg_done=yes; $as_echo "#define UMAX 1" >>confdefs.h |
| 21274 | |
| 21275 | fi |
| 21276 | |
| 21277 | |
| 21278 | fi |
| 21279 | |
| 21280 | if test $gl_func_getloadavg_done = no; then |
| 21281 | for ac_header in mach/mach.h |
| 21282 | do : |
| 21283 | ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" |
| 21284 | if test "x$ac_cv_header_mach_mach_h" = x""yes; then : |
| 21285 | cat >>confdefs.h <<_ACEOF |
| 21286 | #define HAVE_MACH_MACH_H 1 |
| 21287 | _ACEOF |
| 21288 | |
| 21289 | fi |
| 21290 | |
| 21291 | done |
| 21292 | |
| 21293 | fi |
| 21294 | |
| 21295 | for ac_header in nlist.h |
| 21296 | do : |
| 21297 | ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" |
| 21298 | if test "x$ac_cv_header_nlist_h" = x""yes; then : |
| 21299 | cat >>confdefs.h <<_ACEOF |
| 21300 | #define HAVE_NLIST_H 1 |
| 21301 | _ACEOF |
| 21302 | ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> |
| 21303 | " |
| 21304 | if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : |
| 21305 | |
| 21306 | cat >>confdefs.h <<_ACEOF |
| 21307 | #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 |
| 21308 | _ACEOF |
| 21309 | |
| 21310 | |
| 21311 | fi |
| 21312 | |
| 21313 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21314 | /* end confdefs.h. */ |
| 21315 | #include <nlist.h> |
| 21316 | int |
| 21317 | main () |
| 21318 | { |
| 21319 | struct nlist x; |
| 21320 | #ifdef HAVE_STRUCT_NLIST_N_UN_N_NAME |
| 21321 | x.n_un.n_name = ""; |
| 21322 | #else |
| 21323 | x.n_name = ""; |
| 21324 | #endif |
| 21325 | ; |
| 21326 | return 0; |
| 21327 | } |
| 21328 | _ACEOF |
| 21329 | if ac_fn_c_try_link "$LINENO"; then : |
| 21330 | |
| 21331 | $as_echo "#define N_NAME_POINTER 1" >>confdefs.h |
| 21332 | |
| 21333 | fi |
| 21334 | rm -f core conftest.err conftest.$ac_objext \ |
| 21335 | conftest$ac_exeext conftest.$ac_ext |
| 21336 | |
| 21337 | fi |
| 21338 | |
| 21339 | done |
| 21340 | |
| 21341 | fi |
| 21342 | |
| 21343 | |
| 21344 | |
| 21345 | |
| 21346 | |
| 21347 | GNULIB_GETLOADAVG=1 |
| 21348 | |
| 21349 | |
| 21350 | |
| 21351 | |
| 21352 | |
| 21353 | |
| 21354 | |
| 21355 | |
| 21356 | |
| 21357 | |
| 21358 | if test $REPLACE_GETOPT = 1; then |
| 21359 | |
| 21360 | |
| 21361 | |
| 21362 | |
| 21363 | |
| 21364 | |
| 21365 | |
| 21366 | |
| 21367 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 21368 | |
| 21369 | |
| 21370 | |
| 21371 | |
| 21372 | |
| 21373 | |
| 21374 | |
| 21375 | |
| 21376 | |
| 21377 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 21378 | |
| 21379 | |
| 21380 | |
| 21381 | |
| 21382 | GNULIB_GL_UNISTD_H_GETOPT=1 |
| 21383 | fi |
| 21384 | |
| 21385 | |
| 21386 | |
| 21387 | |
| 21388 | |
| 21389 | |
| 21390 | |
| 21391 | REPLACE_GETOPT=0 |
| 21392 | if test -n "$gl_replace_getopt"; then |
| 21393 | REPLACE_GETOPT=1 |
| 21394 | fi |
| 21395 | |
| 21396 | if test $REPLACE_GETOPT = 1; then |
| 21397 | |
| 21398 | GETOPT_H=getopt.h |
| 21399 | |
| 21400 | $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h |
| 21401 | |
| 21402 | |
| 21403 | |
| 21404 | fi |
| 21405 | |
| 21406 | if test $REPLACE_GETOPT = 1; then |
| 21407 | |
| 21408 | |
| 21409 | |
| 21410 | |
| 21411 | |
| 21412 | |
| 21413 | |
| 21414 | |
| 21415 | gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext" |
| 21416 | |
| 21417 | |
| 21418 | |
| 21419 | |
| 21420 | |
| 21421 | |
| 21422 | |
| 21423 | |
| 21424 | |
| 21425 | gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext" |
| 21426 | |
| 21427 | |
| 21428 | |
| 21429 | |
| 21430 | GNULIB_GL_UNISTD_H_GETOPT=1 |
| 21431 | fi |
| 21432 | |
| 21433 | |
| 21434 | |
| 21435 | |
| 21436 | |
| 21437 | |
| 21438 | |
| 21439 | |
| 21440 | |
| 21441 | |
| 21442 | |
| 21443 | |
| 21444 | gl_gettimeofday_timezone=void |
| 21445 | if test $ac_cv_func_gettimeofday != yes; then |
| 21446 | HAVE_GETTIMEOFDAY=0 |
| 21447 | else |
| 21448 | |
| 21449 | |
| 21450 | |
| 21451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5 |
| 21452 | $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; } |
| 21453 | if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then : |
| 21454 | $as_echo_n "(cached) " >&6 |
| 21455 | else |
| 21456 | if test "$cross_compiling" = yes; then : |
| 21457 | # When cross-compiling: |
| 21458 | case "$host_os" in |
| 21459 | # Guess all is fine on glibc systems. |
| 21460 | *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;; |
| 21461 | # If we don't know, assume the worst. |
| 21462 | *) gl_cv_func_gettimeofday_clobber="guessing yes" ;; |
| 21463 | esac |
| 21464 | |
| 21465 | else |
| 21466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21467 | /* end confdefs.h. */ |
| 21468 | #include <string.h> |
| 21469 | #include <sys/time.h> |
| 21470 | #include <time.h> |
| 21471 | #include <stdlib.h> |
| 21472 | |
| 21473 | int |
| 21474 | main () |
| 21475 | { |
| 21476 | |
| 21477 | time_t t = 0; |
| 21478 | struct tm *lt; |
| 21479 | struct tm saved_lt; |
| 21480 | struct timeval tv; |
| 21481 | lt = localtime (&t); |
| 21482 | saved_lt = *lt; |
| 21483 | gettimeofday (&tv, NULL); |
| 21484 | return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0; |
| 21485 | |
| 21486 | ; |
| 21487 | return 0; |
| 21488 | } |
| 21489 | _ACEOF |
| 21490 | if ac_fn_c_try_run "$LINENO"; then : |
| 21491 | gl_cv_func_gettimeofday_clobber=no |
| 21492 | else |
| 21493 | gl_cv_func_gettimeofday_clobber=yes |
| 21494 | fi |
| 21495 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21496 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21497 | fi |
| 21498 | |
| 21499 | fi |
| 21500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5 |
| 21501 | $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; } |
| 21502 | |
| 21503 | case "$gl_cv_func_gettimeofday_clobber" in |
| 21504 | *yes) |
| 21505 | REPLACE_GETTIMEOFDAY=1 |
| 21506 | |
| 21507 | |
| 21508 | $as_echo "#define gmtime rpl_gmtime" >>confdefs.h |
| 21509 | |
| 21510 | |
| 21511 | $as_echo "#define localtime rpl_localtime" >>confdefs.h |
| 21512 | |
| 21513 | |
| 21514 | |
| 21515 | $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h |
| 21516 | |
| 21517 | ;; |
| 21518 | esac |
| 21519 | |
| 21520 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5 |
| 21521 | $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; } |
| 21522 | if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then : |
| 21523 | $as_echo_n "(cached) " >&6 |
| 21524 | else |
| 21525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21526 | /* end confdefs.h. */ |
| 21527 | #include <sys/time.h> |
| 21528 | struct timeval c; |
| 21529 | int gettimeofday (struct timeval *restrict, void *restrict); |
| 21530 | |
| 21531 | int |
| 21532 | main () |
| 21533 | { |
| 21534 | /* glibc uses struct timezone * rather than the POSIX void * |
| 21535 | if _GNU_SOURCE is defined. However, since the only portable |
| 21536 | use of gettimeofday uses NULL as the second parameter, and |
| 21537 | since the glibc definition is actually more typesafe, it is |
| 21538 | not worth wrapping this to get a compliant signature. */ |
| 21539 | int (*f) (struct timeval *restrict, void *restrict) |
| 21540 | = gettimeofday; |
| 21541 | int x = f (&c, 0); |
| 21542 | return !(x | c.tv_sec | c.tv_usec); |
| 21543 | |
| 21544 | ; |
| 21545 | return 0; |
| 21546 | } |
| 21547 | _ACEOF |
| 21548 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21549 | gl_cv_func_gettimeofday_posix_signature=yes |
| 21550 | else |
| 21551 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21552 | /* end confdefs.h. */ |
| 21553 | #include <sys/time.h> |
| 21554 | int gettimeofday (struct timeval *restrict, struct timezone *restrict); |
| 21555 | |
| 21556 | int |
| 21557 | main () |
| 21558 | { |
| 21559 | |
| 21560 | ; |
| 21561 | return 0; |
| 21562 | } |
| 21563 | _ACEOF |
| 21564 | if ac_fn_c_try_compile "$LINENO"; then : |
| 21565 | gl_cv_func_gettimeofday_posix_signature=almost |
| 21566 | else |
| 21567 | gl_cv_func_gettimeofday_posix_signature=no |
| 21568 | fi |
| 21569 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21570 | fi |
| 21571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 21572 | fi |
| 21573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5 |
| 21574 | $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; } |
| 21575 | if test $gl_cv_func_gettimeofday_posix_signature = almost; then |
| 21576 | gl_gettimeofday_timezone='struct timezone' |
| 21577 | elif test $gl_cv_func_gettimeofday_posix_signature != yes; then |
| 21578 | REPLACE_GETTIMEOFDAY=1 |
| 21579 | fi |
| 21580 | if test $REPLACE_STRUCT_TIMEVAL = 1; then |
| 21581 | REPLACE_GETTIMEOFDAY=1 |
| 21582 | fi |
| 21583 | |
| 21584 | fi |
| 21585 | |
| 21586 | cat >>confdefs.h <<_ACEOF |
| 21587 | #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone |
| 21588 | _ACEOF |
| 21589 | |
| 21590 | |
| 21591 | if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then |
| 21592 | |
| 21593 | |
| 21594 | |
| 21595 | |
| 21596 | |
| 21597 | |
| 21598 | |
| 21599 | |
| 21600 | gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext" |
| 21601 | |
| 21602 | |
| 21603 | for ac_header in sys/timeb.h |
| 21604 | do : |
| 21605 | ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default" |
| 21606 | if test "x$ac_cv_header_sys_timeb_h" = x""yes; then : |
| 21607 | cat >>confdefs.h <<_ACEOF |
| 21608 | #define HAVE_SYS_TIMEB_H 1 |
| 21609 | _ACEOF |
| 21610 | |
| 21611 | fi |
| 21612 | |
| 21613 | done |
| 21614 | |
| 21615 | for ac_func in _ftime |
| 21616 | do : |
| 21617 | ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime" |
| 21618 | if test "x$ac_cv_func__ftime" = x""yes; then : |
| 21619 | cat >>confdefs.h <<_ACEOF |
| 21620 | #define HAVE__FTIME 1 |
| 21621 | _ACEOF |
| 21622 | |
| 21623 | fi |
| 21624 | done |
| 21625 | |
| 21626 | |
| 21627 | fi |
| 21628 | |
| 21629 | |
| 21630 | |
| 21631 | |
| 21632 | |
| 21633 | GNULIB_GETTIMEOFDAY=1 |
| 21634 | |
| 21635 | |
| 21636 | |
| 21637 | |
| 21638 | |
| 21639 | |
| 21640 | |
| 21641 | |
| 21642 | |
| 21643 | |
| 21644 | if test $ac_cv_func_lstat = yes; then |
| 21645 | |
| 21646 | case "$gl_cv_func_lstat_dereferences_slashed_symlink" in |
| 21647 | *no) |
| 21648 | REPLACE_LSTAT=1 |
| 21649 | ;; |
| 21650 | esac |
| 21651 | else |
| 21652 | HAVE_LSTAT=0 |
| 21653 | fi |
| 21654 | |
| 21655 | if test $REPLACE_LSTAT = 1; then |
| 21656 | |
| 21657 | |
| 21658 | |
| 21659 | |
| 21660 | |
| 21661 | |
| 21662 | |
| 21663 | |
| 21664 | gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext" |
| 21665 | |
| 21666 | : |
| 21667 | fi |
| 21668 | |
| 21669 | |
| 21670 | |
| 21671 | |
| 21672 | |
| 21673 | GNULIB_LSTAT=1 |
| 21674 | |
| 21675 | |
| 21676 | |
| 21677 | |
| 21678 | |
| 21679 | |
| 21680 | |
| 21681 | |
| 21682 | |
| 21683 | |
| 21684 | |
| 21685 | if test $APPLE_UNIVERSAL_BUILD = 1; then |
| 21686 | # A universal build on Apple Mac OS X platforms. |
| 21687 | # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode. |
| 21688 | # But we need a configuration result that is valid in both modes. |
| 21689 | gl_cv_func_working_mktime=no |
| 21690 | fi |
| 21691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 |
| 21692 | $as_echo_n "checking for working mktime... " >&6; } |
| 21693 | if test "${gl_cv_func_working_mktime+set}" = set; then : |
| 21694 | $as_echo_n "(cached) " >&6 |
| 21695 | else |
| 21696 | if test "$cross_compiling" = yes; then : |
| 21697 | gl_cv_func_working_mktime=no |
| 21698 | else |
| 21699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21700 | /* end confdefs.h. */ |
| 21701 | /* Test program from Paul Eggert and Tony Leneis. */ |
| 21702 | #include <limits.h> |
| 21703 | #include <stdlib.h> |
| 21704 | #include <time.h> |
| 21705 | |
| 21706 | #ifdef HAVE_UNISTD_H |
| 21707 | # include <unistd.h> |
| 21708 | #endif |
| 21709 | |
| 21710 | #ifndef HAVE_ALARM |
| 21711 | # define alarm(X) /* empty */ |
| 21712 | #endif |
| 21713 | |
| 21714 | /* Work around redefinition to rpl_putenv by other config tests. */ |
| 21715 | #undef putenv |
| 21716 | |
| 21717 | static time_t time_t_max; |
| 21718 | static time_t time_t_min; |
| 21719 | |
| 21720 | /* Values we'll use to set the TZ environment variable. */ |
| 21721 | static char *tz_strings[] = { |
| 21722 | (char *) 0, "TZ=GMT0", "TZ=JST-9", |
| 21723 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" |
| 21724 | }; |
| 21725 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) |
| 21726 | |
| 21727 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. |
| 21728 | Based on a problem report from Andreas Jaeger. */ |
| 21729 | static int |
| 21730 | spring_forward_gap () |
| 21731 | { |
| 21732 | /* glibc (up to about 1998-10-07) failed this test. */ |
| 21733 | struct tm tm; |
| 21734 | |
| 21735 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| 21736 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 21737 | on systems that don't support the Olson extension, or don't have the |
| 21738 | full zoneinfo tables installed. */ |
| 21739 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 21740 | |
| 21741 | tm.tm_year = 98; |
| 21742 | tm.tm_mon = 3; |
| 21743 | tm.tm_mday = 5; |
| 21744 | tm.tm_hour = 2; |
| 21745 | tm.tm_min = 0; |
| 21746 | tm.tm_sec = 0; |
| 21747 | tm.tm_isdst = -1; |
| 21748 | return mktime (&tm) != (time_t) -1; |
| 21749 | } |
| 21750 | |
| 21751 | static int |
| 21752 | mktime_test1 (time_t now) |
| 21753 | { |
| 21754 | struct tm *lt; |
| 21755 | return ! (lt = localtime (&now)) || mktime (lt) == now; |
| 21756 | } |
| 21757 | |
| 21758 | static int |
| 21759 | mktime_test (time_t now) |
| 21760 | { |
| 21761 | return (mktime_test1 (now) |
| 21762 | && mktime_test1 ((time_t) (time_t_max - now)) |
| 21763 | && mktime_test1 ((time_t) (time_t_min + now))); |
| 21764 | } |
| 21765 | |
| 21766 | static int |
| 21767 | irix_6_4_bug () |
| 21768 | { |
| 21769 | /* Based on code from Ariel Faigon. */ |
| 21770 | struct tm tm; |
| 21771 | tm.tm_year = 96; |
| 21772 | tm.tm_mon = 3; |
| 21773 | tm.tm_mday = 0; |
| 21774 | tm.tm_hour = 0; |
| 21775 | tm.tm_min = 0; |
| 21776 | tm.tm_sec = 0; |
| 21777 | tm.tm_isdst = -1; |
| 21778 | mktime (&tm); |
| 21779 | return tm.tm_mon == 2 && tm.tm_mday == 31; |
| 21780 | } |
| 21781 | |
| 21782 | static int |
| 21783 | bigtime_test (int j) |
| 21784 | { |
| 21785 | struct tm tm; |
| 21786 | time_t now; |
| 21787 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; |
| 21788 | now = mktime (&tm); |
| 21789 | if (now != (time_t) -1) |
| 21790 | { |
| 21791 | struct tm *lt = localtime (&now); |
| 21792 | if (! (lt |
| 21793 | && lt->tm_year == tm.tm_year |
| 21794 | && lt->tm_mon == tm.tm_mon |
| 21795 | && lt->tm_mday == tm.tm_mday |
| 21796 | && lt->tm_hour == tm.tm_hour |
| 21797 | && lt->tm_min == tm.tm_min |
| 21798 | && lt->tm_sec == tm.tm_sec |
| 21799 | && lt->tm_yday == tm.tm_yday |
| 21800 | && lt->tm_wday == tm.tm_wday |
| 21801 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) |
| 21802 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) |
| 21803 | return 0; |
| 21804 | } |
| 21805 | return 1; |
| 21806 | } |
| 21807 | |
| 21808 | static int |
| 21809 | year_2050_test () |
| 21810 | { |
| 21811 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, |
| 21812 | ignoring leap seconds. */ |
| 21813 | unsigned long int answer = 2527315200UL; |
| 21814 | |
| 21815 | struct tm tm; |
| 21816 | time_t t; |
| 21817 | tm.tm_year = 2050 - 1900; |
| 21818 | tm.tm_mon = 2 - 1; |
| 21819 | tm.tm_mday = 1; |
| 21820 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; |
| 21821 | tm.tm_isdst = -1; |
| 21822 | |
| 21823 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" |
| 21824 | instead of "TZ=America/Vancouver" in order to detect the bug even |
| 21825 | on systems that don't support the Olson extension, or don't have the |
| 21826 | full zoneinfo tables installed. */ |
| 21827 | putenv ("TZ=PST8PDT,M4.1.0,M10.5.0"); |
| 21828 | |
| 21829 | t = mktime (&tm); |
| 21830 | |
| 21831 | /* Check that the result is either a failure, or close enough |
| 21832 | to the correct answer that we can assume the discrepancy is |
| 21833 | due to leap seconds. */ |
| 21834 | return (t == (time_t) -1 |
| 21835 | || (0 < t && answer - 120 <= t && t <= answer + 120)); |
| 21836 | } |
| 21837 | |
| 21838 | int |
| 21839 | main () |
| 21840 | { |
| 21841 | int result = 0; |
| 21842 | time_t t, delta; |
| 21843 | int i, j; |
| 21844 | int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1; |
| 21845 | int time_t_signed = ! ((time_t) 0 < (time_t) -1); |
| 21846 | |
| 21847 | /* This test makes some buggy mktime implementations loop. |
| 21848 | Give up after 60 seconds; a mktime slower than that |
| 21849 | isn't worth using anyway. */ |
| 21850 | alarm (60); |
| 21851 | |
| 21852 | time_t_max = (! time_t_signed |
| 21853 | ? (time_t) -1 |
| 21854 | : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1) |
| 21855 | * 2 + 1)); |
| 21856 | time_t_min = (! time_t_signed |
| 21857 | ? (time_t) 0 |
| 21858 | : time_t_signed_magnitude |
| 21859 | ? ~ (time_t) 0 |
| 21860 | : ~ time_t_max); |
| 21861 | |
| 21862 | delta = time_t_max / 997; /* a suitable prime number */ |
| 21863 | for (i = 0; i < N_STRINGS; i++) |
| 21864 | { |
| 21865 | if (tz_strings[i]) |
| 21866 | putenv (tz_strings[i]); |
| 21867 | |
| 21868 | for (t = 0; t <= time_t_max - delta && (result & 1) == 0; t += delta) |
| 21869 | if (! mktime_test (t)) |
| 21870 | result |= 1; |
| 21871 | if ((result & 2) == 0 |
| 21872 | && ! (mktime_test ((time_t) 1) |
| 21873 | && mktime_test ((time_t) (60 * 60)) |
| 21874 | && mktime_test ((time_t) (60 * 60 * 24)))) |
| 21875 | result |= 2; |
| 21876 | |
| 21877 | for (j = 1; (result & 4) == 0; j <<= 1) |
| 21878 | { |
| 21879 | if (! bigtime_test (j)) |
| 21880 | result |= 4; |
| 21881 | if (INT_MAX / 2 < j) |
| 21882 | break; |
| 21883 | } |
| 21884 | if ((result & 8) == 0 && ! bigtime_test (INT_MAX)) |
| 21885 | result |= 8; |
| 21886 | } |
| 21887 | if (! irix_6_4_bug ()) |
| 21888 | result |= 16; |
| 21889 | if (! spring_forward_gap ()) |
| 21890 | result |= 32; |
| 21891 | if (! year_2050_test ()) |
| 21892 | result |= 64; |
| 21893 | return result; |
| 21894 | } |
| 21895 | _ACEOF |
| 21896 | if ac_fn_c_try_run "$LINENO"; then : |
| 21897 | gl_cv_func_working_mktime=yes |
| 21898 | else |
| 21899 | gl_cv_func_working_mktime=no |
| 21900 | fi |
| 21901 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 21902 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 21903 | fi |
| 21904 | |
| 21905 | |
| 21906 | fi |
| 21907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_mktime" >&5 |
| 21908 | $as_echo "$gl_cv_func_working_mktime" >&6; } |
| 21909 | |
| 21910 | if test $gl_cv_func_working_mktime = no; then |
| 21911 | REPLACE_MKTIME=1 |
| 21912 | else |
| 21913 | REPLACE_MKTIME=0 |
| 21914 | fi |
| 21915 | |
| 21916 | if test $REPLACE_MKTIME = 1; then |
| 21917 | |
| 21918 | |
| 21919 | |
| 21920 | |
| 21921 | |
| 21922 | |
| 21923 | |
| 21924 | |
| 21925 | gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext" |
| 21926 | |
| 21927 | : |
| 21928 | fi |
| 21929 | |
| 21930 | |
| 21931 | |
| 21932 | |
| 21933 | |
| 21934 | GNULIB_MKTIME=1 |
| 21935 | |
| 21936 | |
| 21937 | |
| 21938 | |
| 21939 | |
| 21940 | |
| 21941 | |
| 21942 | |
| 21943 | |
| 21944 | |
| 21945 | |
| 21946 | if test $ac_cv_func_pselect = yes; then |
| 21947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether signature of pselect conforms to POSIX" >&5 |
| 21948 | $as_echo_n "checking whether signature of pselect conforms to POSIX... " >&6; } |
| 21949 | if test "${gl_cv_sig_pselect+set}" = set; then : |
| 21950 | $as_echo_n "(cached) " >&6 |
| 21951 | else |
| 21952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21953 | /* end confdefs.h. */ |
| 21954 | #include <sys/select.h> |
| 21955 | |
| 21956 | int |
| 21957 | main () |
| 21958 | { |
| 21959 | int (*p) (int, fd_set *, fd_set *, fd_set *restrict, |
| 21960 | struct timespec const *restrict, |
| 21961 | sigset_t const *restrict) = pselect; |
| 21962 | return !p; |
| 21963 | ; |
| 21964 | return 0; |
| 21965 | } |
| 21966 | _ACEOF |
| 21967 | if ac_fn_c_try_link "$LINENO"; then : |
| 21968 | gl_cv_sig_pselect=yes |
| 21969 | else |
| 21970 | gl_cv_sig_pselect=no |
| 21971 | fi |
| 21972 | rm -f core conftest.err conftest.$ac_objext \ |
| 21973 | conftest$ac_exeext conftest.$ac_ext |
| 21974 | fi |
| 21975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sig_pselect" >&5 |
| 21976 | $as_echo "$gl_cv_sig_pselect" >&6; } |
| 21977 | |
| 21978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pselect detects invalid fds" >&5 |
| 21979 | $as_echo_n "checking whether pselect detects invalid fds... " >&6; } |
| 21980 | if test "${gl_cv_func_pselect_detects_ebadf+set}" = set; then : |
| 21981 | $as_echo_n "(cached) " >&6 |
| 21982 | else |
| 21983 | |
| 21984 | if test "$cross_compiling" = yes; then : |
| 21985 | |
| 21986 | case "$host_os" in |
| 21987 | # Guess yes on glibc systems. |
| 21988 | *-gnu*) gl_cv_func_pselect_detects_ebadf="guessing yes" ;; |
| 21989 | # If we don't know, assume the worst. |
| 21990 | *) gl_cv_func_pselect_detects_ebadf="guessing no" ;; |
| 21991 | esac |
| 21992 | |
| 21993 | else |
| 21994 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 21995 | /* end confdefs.h. */ |
| 21996 | |
| 21997 | #include <sys/types.h> |
| 21998 | #include <sys/time.h> |
| 21999 | #if HAVE_SYS_SELECT_H |
| 22000 | # include <sys/select.h> |
| 22001 | #endif |
| 22002 | #include <unistd.h> |
| 22003 | #include <errno.h> |
| 22004 | |
| 22005 | int |
| 22006 | main () |
| 22007 | { |
| 22008 | |
| 22009 | fd_set set; |
| 22010 | dup2(0, 16); |
| 22011 | FD_ZERO(&set); |
| 22012 | FD_SET(16, &set); |
| 22013 | close(16); |
| 22014 | struct timespec timeout; |
| 22015 | timeout.tv_sec = 0; |
| 22016 | timeout.tv_nsec = 5000; |
| 22017 | return pselect (17, &set, NULL, NULL, &timeout, NULL) != -1 || errno != EBADF; |
| 22018 | |
| 22019 | ; |
| 22020 | return 0; |
| 22021 | } |
| 22022 | _ACEOF |
| 22023 | if ac_fn_c_try_run "$LINENO"; then : |
| 22024 | gl_cv_func_pselect_detects_ebadf=yes |
| 22025 | else |
| 22026 | gl_cv_func_pselect_detects_ebadf=no |
| 22027 | fi |
| 22028 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22029 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22030 | fi |
| 22031 | |
| 22032 | |
| 22033 | fi |
| 22034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pselect_detects_ebadf" >&5 |
| 22035 | $as_echo "$gl_cv_func_pselect_detects_ebadf" >&6; } |
| 22036 | case $gl_cv_func_pselect_detects_ebadf in |
| 22037 | *yes) ;; |
| 22038 | *) REPLACE_PSELECT=1 ;; |
| 22039 | esac |
| 22040 | fi |
| 22041 | |
| 22042 | if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then |
| 22043 | REPLACE_PSELECT=1 |
| 22044 | fi |
| 22045 | |
| 22046 | if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then |
| 22047 | |
| 22048 | |
| 22049 | |
| 22050 | |
| 22051 | |
| 22052 | |
| 22053 | |
| 22054 | |
| 22055 | gl_LIBOBJS="$gl_LIBOBJS pselect.$ac_objext" |
| 22056 | |
| 22057 | fi |
| 22058 | |
| 22059 | |
| 22060 | |
| 22061 | |
| 22062 | |
| 22063 | GNULIB_PSELECT=1 |
| 22064 | |
| 22065 | |
| 22066 | |
| 22067 | |
| 22068 | |
| 22069 | |
| 22070 | |
| 22071 | |
| 22072 | |
| 22073 | LIB_PTHREAD_SIGMASK= |
| 22074 | |
| 22075 | |
| 22076 | |
| 22077 | |
| 22078 | if test "$gl_threads_api" = posix; then |
| 22079 | if test $ac_cv_func_pthread_sigmask = yes; then |
| 22080 | : |
| 22081 | else |
| 22082 | if test -n "$LIBMULTITHREAD"; then |
| 22083 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_sigmask in $LIBMULTITHREAD" >&5 |
| 22084 | $as_echo_n "checking for pthread_sigmask in $LIBMULTITHREAD... " >&6; } |
| 22085 | if test "${gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD+set}" = set; then : |
| 22086 | $as_echo_n "(cached) " >&6 |
| 22087 | else |
| 22088 | gl_save_LIBS="$LIBS" |
| 22089 | LIBS="$LIBS $LIBMULTITHREAD" |
| 22090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22091 | /* end confdefs.h. */ |
| 22092 | #include <pthread.h> |
| 22093 | #include <signal.h> |
| 22094 | |
| 22095 | int |
| 22096 | main () |
| 22097 | { |
| 22098 | return pthread_sigmask (0, (sigset_t *) 0, (sigset_t *) 0); |
| 22099 | ; |
| 22100 | return 0; |
| 22101 | } |
| 22102 | |
| 22103 | _ACEOF |
| 22104 | if ac_fn_c_try_link "$LINENO"; then : |
| 22105 | gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=yes |
| 22106 | else |
| 22107 | gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD=no |
| 22108 | fi |
| 22109 | rm -f core conftest.err conftest.$ac_objext \ |
| 22110 | conftest$ac_exeext conftest.$ac_ext |
| 22111 | LIBS="$gl_save_LIBS" |
| 22112 | |
| 22113 | fi |
| 22114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&5 |
| 22115 | $as_echo "$gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD" >&6; } |
| 22116 | if test $gl_cv_func_pthread_sigmask_in_LIBMULTITHREAD = yes; then |
| 22117 | LIB_PTHREAD_SIGMASK="$LIBMULTITHREAD" |
| 22118 | else |
| 22119 | HAVE_PTHREAD_SIGMASK=0 |
| 22120 | fi |
| 22121 | else |
| 22122 | HAVE_PTHREAD_SIGMASK=0 |
| 22123 | fi |
| 22124 | fi |
| 22125 | else |
| 22126 | if test $ac_cv_func_pthread_sigmask = yes; then |
| 22127 | REPLACE_PTHREAD_SIGMASK=1 |
| 22128 | else |
| 22129 | HAVE_PTHREAD_SIGMASK=0 |
| 22130 | fi |
| 22131 | fi |
| 22132 | |
| 22133 | |
| 22134 | |
| 22135 | |
| 22136 | if test $HAVE_PTHREAD_SIGMASK = 1; then |
| 22137 | |
| 22138 | |
| 22139 | if test -z "$LIB_PTHREAD_SIGMASK"; then |
| 22140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask works without -lpthread" >&5 |
| 22141 | $as_echo_n "checking whether pthread_sigmask works without -lpthread... " >&6; } |
| 22142 | if test "${gl_cv_func_pthread_sigmask_in_libc_works+set}" = set; then : |
| 22143 | $as_echo_n "(cached) " >&6 |
| 22144 | else |
| 22145 | |
| 22146 | if test "$cross_compiling" = yes; then : |
| 22147 | |
| 22148 | case "$host_os" in |
| 22149 | freebsd* | hpux* | solaris | solaris2.[2-9]*) |
| 22150 | gl_cv_func_pthread_sigmask_in_libc_works="guessing no";; |
| 22151 | *) |
| 22152 | gl_cv_func_pthread_sigmask_in_libc_works="guessing yes";; |
| 22153 | esac |
| 22154 | |
| 22155 | else |
| 22156 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22157 | /* end confdefs.h. */ |
| 22158 | |
| 22159 | #include <pthread.h> |
| 22160 | #include <signal.h> |
| 22161 | #include <stddef.h> |
| 22162 | int main () |
| 22163 | { |
| 22164 | sigset_t set; |
| 22165 | sigemptyset (&set); |
| 22166 | return pthread_sigmask (1729, &set, NULL) != 0; |
| 22167 | } |
| 22168 | _ACEOF |
| 22169 | if ac_fn_c_try_run "$LINENO"; then : |
| 22170 | gl_cv_func_pthread_sigmask_in_libc_works=no |
| 22171 | else |
| 22172 | gl_cv_func_pthread_sigmask_in_libc_works=yes |
| 22173 | fi |
| 22174 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22175 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22176 | fi |
| 22177 | |
| 22178 | |
| 22179 | fi |
| 22180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_in_libc_works" >&5 |
| 22181 | $as_echo "$gl_cv_func_pthread_sigmask_in_libc_works" >&6; } |
| 22182 | case "$gl_cv_func_pthread_sigmask_in_libc_works" in |
| 22183 | *no) |
| 22184 | REPLACE_PTHREAD_SIGMASK=1 |
| 22185 | |
| 22186 | $as_echo "#define PTHREAD_SIGMASK_INEFFECTIVE 1" >>confdefs.h |
| 22187 | |
| 22188 | ;; |
| 22189 | esac |
| 22190 | fi |
| 22191 | |
| 22192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask returns error numbers" >&5 |
| 22193 | $as_echo_n "checking whether pthread_sigmask returns error numbers... " >&6; } |
| 22194 | if test "${gl_cv_func_pthread_sigmask_return_works+set}" = set; then : |
| 22195 | $as_echo_n "(cached) " >&6 |
| 22196 | else |
| 22197 | |
| 22198 | gl_save_LIBS="$LIBS" |
| 22199 | LIBS="$LIBS $LIB_PTHREAD_SIGMASK" |
| 22200 | if test "$cross_compiling" = yes; then : |
| 22201 | case "$host_os" in |
| 22202 | cygwin*) |
| 22203 | gl_cv_func_pthread_sigmask_return_works="guessing no";; |
| 22204 | *) |
| 22205 | gl_cv_func_pthread_sigmask_return_works="guessing yes";; |
| 22206 | esac |
| 22207 | |
| 22208 | else |
| 22209 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22210 | /* end confdefs.h. */ |
| 22211 | |
| 22212 | #include <pthread.h> |
| 22213 | #include <signal.h> |
| 22214 | #include <stddef.h> |
| 22215 | int main () |
| 22216 | { |
| 22217 | sigset_t set; |
| 22218 | sigemptyset (&set); |
| 22219 | if (pthread_sigmask (1729, &set, NULL) == -1) |
| 22220 | return 1; |
| 22221 | return 0; |
| 22222 | } |
| 22223 | _ACEOF |
| 22224 | if ac_fn_c_try_run "$LINENO"; then : |
| 22225 | gl_cv_func_pthread_sigmask_return_works=yes |
| 22226 | else |
| 22227 | gl_cv_func_pthread_sigmask_return_works=no |
| 22228 | fi |
| 22229 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22230 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22231 | fi |
| 22232 | |
| 22233 | LIBS="$gl_save_LIBS" |
| 22234 | |
| 22235 | fi |
| 22236 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_return_works" >&5 |
| 22237 | $as_echo "$gl_cv_func_pthread_sigmask_return_works" >&6; } |
| 22238 | case "$gl_cv_func_pthread_sigmask_return_works" in |
| 22239 | *no) |
| 22240 | REPLACE_PTHREAD_SIGMASK=1 |
| 22241 | |
| 22242 | $as_echo "#define PTHREAD_SIGMASK_FAILS_WITH_ERRNO 1" >>confdefs.h |
| 22243 | |
| 22244 | ;; |
| 22245 | esac |
| 22246 | |
| 22247 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_sigmask unblocks signals correctly" >&5 |
| 22248 | $as_echo_n "checking whether pthread_sigmask unblocks signals correctly... " >&6; } |
| 22249 | if test "${gl_cv_func_pthread_sigmask_unblock_works+set}" = set; then : |
| 22250 | $as_echo_n "(cached) " >&6 |
| 22251 | else |
| 22252 | |
| 22253 | case "$host_os" in |
| 22254 | irix*) |
| 22255 | gl_cv_func_pthread_sigmask_unblock_works="guessing no";; |
| 22256 | *) |
| 22257 | gl_cv_func_pthread_sigmask_unblock_works="guessing yes";; |
| 22258 | esac |
| 22259 | gl_save_LIBS="$LIBS" |
| 22260 | LIBS="$LIBS $LIBMULTITHREAD" |
| 22261 | if test "$cross_compiling" = yes; then : |
| 22262 | : |
| 22263 | else |
| 22264 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22265 | /* end confdefs.h. */ |
| 22266 | |
| 22267 | #include <pthread.h> |
| 22268 | #include <signal.h> |
| 22269 | #include <stdio.h> |
| 22270 | #include <stdlib.h> |
| 22271 | #include <unistd.h> |
| 22272 | static volatile int sigint_occurred; |
| 22273 | static void |
| 22274 | sigint_handler (int sig) |
| 22275 | { |
| 22276 | sigint_occurred++; |
| 22277 | } |
| 22278 | int main () |
| 22279 | { |
| 22280 | sigset_t set; |
| 22281 | int pid = getpid (); |
| 22282 | char command[80]; |
| 22283 | signal (SIGINT, sigint_handler); |
| 22284 | sigemptyset (&set); |
| 22285 | sigaddset (&set, SIGINT); |
| 22286 | if (!(pthread_sigmask (SIG_BLOCK, &set, NULL) == 0)) |
| 22287 | return 1; |
| 22288 | sprintf (command, "sh -c 'sleep 1; kill -%d %d' &", SIGINT, pid); |
| 22289 | if (!(system (command) == 0)) |
| 22290 | return 2; |
| 22291 | sleep (2); |
| 22292 | if (!(sigint_occurred == 0)) |
| 22293 | return 3; |
| 22294 | if (!(pthread_sigmask (SIG_UNBLOCK, &set, NULL) == 0)) |
| 22295 | return 4; |
| 22296 | if (!(sigint_occurred == 1)) /* This fails on IRIX. */ |
| 22297 | return 5; |
| 22298 | return 0; |
| 22299 | } |
| 22300 | _ACEOF |
| 22301 | if ac_fn_c_try_run "$LINENO"; then : |
| 22302 | : |
| 22303 | else |
| 22304 | gl_cv_func_pthread_sigmask_unblock_works=no |
| 22305 | fi |
| 22306 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22307 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22308 | fi |
| 22309 | |
| 22310 | LIBS="$gl_save_LIBS" |
| 22311 | |
| 22312 | fi |
| 22313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_pthread_sigmask_unblock_works" >&5 |
| 22314 | $as_echo "$gl_cv_func_pthread_sigmask_unblock_works" >&6; } |
| 22315 | case "$gl_cv_func_pthread_sigmask_unblock_works" in |
| 22316 | *no) |
| 22317 | REPLACE_PTHREAD_SIGMASK=1 |
| 22318 | |
| 22319 | $as_echo "#define PTHREAD_SIGMASK_UNBLOCK_BUG 1" >>confdefs.h |
| 22320 | |
| 22321 | ;; |
| 22322 | esac |
| 22323 | fi |
| 22324 | |
| 22325 | if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then |
| 22326 | |
| 22327 | |
| 22328 | |
| 22329 | |
| 22330 | |
| 22331 | |
| 22332 | |
| 22333 | |
| 22334 | gl_LIBOBJS="$gl_LIBOBJS pthread_sigmask.$ac_objext" |
| 22335 | |
| 22336 | |
| 22337 | if test $HAVE_PTHREAD_SIGMASK = 1; then |
| 22338 | |
| 22339 | $as_echo "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h |
| 22340 | |
| 22341 | fi |
| 22342 | |
| 22343 | fi |
| 22344 | |
| 22345 | |
| 22346 | |
| 22347 | |
| 22348 | |
| 22349 | GNULIB_PTHREAD_SIGMASK=1 |
| 22350 | |
| 22351 | |
| 22352 | |
| 22353 | |
| 22354 | |
| 22355 | |
| 22356 | |
| 22357 | |
| 22358 | if test $ac_cv_func_readlink = no; then |
| 22359 | HAVE_READLINK=0 |
| 22360 | else |
| 22361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5 |
| 22362 | $as_echo_n "checking whether readlink signature is correct... " >&6; } |
| 22363 | if test "${gl_cv_decl_readlink_works+set}" = set; then : |
| 22364 | $as_echo_n "(cached) " >&6 |
| 22365 | else |
| 22366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22367 | /* end confdefs.h. */ |
| 22368 | #include <unistd.h> |
| 22369 | /* Cause compilation failure if original declaration has wrong type. */ |
| 22370 | ssize_t readlink (const char *, char *, size_t); |
| 22371 | int |
| 22372 | main () |
| 22373 | { |
| 22374 | |
| 22375 | ; |
| 22376 | return 0; |
| 22377 | } |
| 22378 | _ACEOF |
| 22379 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22380 | gl_cv_decl_readlink_works=yes |
| 22381 | else |
| 22382 | gl_cv_decl_readlink_works=no |
| 22383 | fi |
| 22384 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22385 | fi |
| 22386 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5 |
| 22387 | $as_echo "$gl_cv_decl_readlink_works" >&6; } |
| 22388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5 |
| 22389 | $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; } |
| 22390 | if test "${gl_cv_func_readlink_works+set}" = set; then : |
| 22391 | $as_echo_n "(cached) " >&6 |
| 22392 | else |
| 22393 | # We have readlink, so assume ln -s works. |
| 22394 | ln -s conftest.no-such conftest.link |
| 22395 | ln -s conftest.link conftest.lnk2 |
| 22396 | if test "$cross_compiling" = yes; then : |
| 22397 | case "$host_os" in |
| 22398 | # Guess yes on glibc systems. |
| 22399 | *-gnu*) gl_cv_func_readlink_works="guessing yes" ;; |
| 22400 | # If we don't know, assume the worst. |
| 22401 | *) gl_cv_func_readlink_works="guessing no" ;; |
| 22402 | esac |
| 22403 | |
| 22404 | else |
| 22405 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22406 | /* end confdefs.h. */ |
| 22407 | #include <unistd.h> |
| 22408 | |
| 22409 | int |
| 22410 | main () |
| 22411 | { |
| 22412 | char buf[20]; |
| 22413 | return readlink ("conftest.lnk2/", buf, sizeof buf) != -1; |
| 22414 | ; |
| 22415 | return 0; |
| 22416 | } |
| 22417 | _ACEOF |
| 22418 | if ac_fn_c_try_run "$LINENO"; then : |
| 22419 | gl_cv_func_readlink_works=yes |
| 22420 | else |
| 22421 | gl_cv_func_readlink_works=no |
| 22422 | fi |
| 22423 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 22424 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 22425 | fi |
| 22426 | |
| 22427 | rm -f conftest.link conftest.lnk2 |
| 22428 | fi |
| 22429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5 |
| 22430 | $as_echo "$gl_cv_func_readlink_works" >&6; } |
| 22431 | case "$gl_cv_func_readlink_works" in |
| 22432 | *yes) |
| 22433 | if test "$gl_cv_decl_readlink_works" != yes; then |
| 22434 | REPLACE_READLINK=1 |
| 22435 | fi |
| 22436 | ;; |
| 22437 | *) |
| 22438 | |
| 22439 | $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h |
| 22440 | |
| 22441 | REPLACE_READLINK=1 |
| 22442 | ;; |
| 22443 | esac |
| 22444 | fi |
| 22445 | |
| 22446 | if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then |
| 22447 | |
| 22448 | |
| 22449 | |
| 22450 | |
| 22451 | |
| 22452 | |
| 22453 | |
| 22454 | |
| 22455 | gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext" |
| 22456 | |
| 22457 | |
| 22458 | : |
| 22459 | |
| 22460 | fi |
| 22461 | |
| 22462 | |
| 22463 | |
| 22464 | |
| 22465 | |
| 22466 | GNULIB_READLINK=1 |
| 22467 | |
| 22468 | |
| 22469 | |
| 22470 | |
| 22471 | |
| 22472 | |
| 22473 | for ac_func in sig2str |
| 22474 | do : |
| 22475 | ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str" |
| 22476 | if test "x$ac_cv_func_sig2str" = x""yes; then : |
| 22477 | cat >>confdefs.h <<_ACEOF |
| 22478 | #define HAVE_SIG2STR 1 |
| 22479 | _ACEOF |
| 22480 | |
| 22481 | fi |
| 22482 | done |
| 22483 | |
| 22484 | |
| 22485 | if test $ac_cv_func_sig2str = no; then |
| 22486 | |
| 22487 | |
| 22488 | |
| 22489 | |
| 22490 | |
| 22491 | |
| 22492 | |
| 22493 | |
| 22494 | gl_LIBOBJS="$gl_LIBOBJS sig2str.$ac_objext" |
| 22495 | |
| 22496 | |
| 22497 | : |
| 22498 | |
| 22499 | fi |
| 22500 | |
| 22501 | |
| 22502 | |
| 22503 | |
| 22504 | |
| 22505 | |
| 22506 | |
| 22507 | |
| 22508 | |
| 22509 | |
| 22510 | |
| 22511 | if test $gl_cv_have_include_next = yes; then |
| 22512 | gl_cv_next_signal_h='<'signal.h'>' |
| 22513 | else |
| 22514 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5 |
| 22515 | $as_echo_n "checking absolute name of <signal.h>... " >&6; } |
| 22516 | if test "${gl_cv_next_signal_h+set}" = set; then : |
| 22517 | $as_echo_n "(cached) " >&6 |
| 22518 | else |
| 22519 | |
| 22520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22521 | /* end confdefs.h. */ |
| 22522 | #include <signal.h> |
| 22523 | |
| 22524 | _ACEOF |
| 22525 | case "$host_os" in |
| 22526 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22527 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22528 | esac |
| 22529 | |
| 22530 | case "$host_os" in |
| 22531 | mingw*) |
| 22532 | gl_dirsep_regex='[/\\]' |
| 22533 | ;; |
| 22534 | *) |
| 22535 | gl_dirsep_regex='\/' |
| 22536 | ;; |
| 22537 | esac |
| 22538 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22539 | |
| 22540 | gl_header_literal_regex=`echo 'signal.h' \ |
| 22541 | | sed -e "$gl_make_literal_regex_sed"` |
| 22542 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22543 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22544 | s|^/[^/]|//&| |
| 22545 | p |
| 22546 | q |
| 22547 | }' |
| 22548 | gl_cv_next_signal_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 22549 | sed -n "$gl_absolute_header_sed"`'"' |
| 22550 | |
| 22551 | |
| 22552 | fi |
| 22553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5 |
| 22554 | $as_echo "$gl_cv_next_signal_h" >&6; } |
| 22555 | fi |
| 22556 | NEXT_SIGNAL_H=$gl_cv_next_signal_h |
| 22557 | |
| 22558 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 22559 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 22560 | gl_next_as_first_directive='<'signal.h'>' |
| 22561 | else |
| 22562 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 22563 | gl_next_as_first_directive=$gl_cv_next_signal_h |
| 22564 | fi |
| 22565 | NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive |
| 22566 | |
| 22567 | |
| 22568 | |
| 22569 | |
| 22570 | |
| 22571 | # AIX declares sig_atomic_t to already include volatile, and C89 compilers |
| 22572 | # then choke on 'volatile sig_atomic_t'. C99 requires that it compile. |
| 22573 | ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" " |
| 22574 | #include <signal.h> |
| 22575 | |
| 22576 | " |
| 22577 | if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then : |
| 22578 | |
| 22579 | else |
| 22580 | HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0 |
| 22581 | fi |
| 22582 | |
| 22583 | |
| 22584 | |
| 22585 | |
| 22586 | |
| 22587 | |
| 22588 | |
| 22589 | ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " |
| 22590 | #include <signal.h> |
| 22591 | |
| 22592 | " |
| 22593 | if test "x$ac_cv_type_sighandler_t" = x""yes; then : |
| 22594 | |
| 22595 | else |
| 22596 | HAVE_SIGHANDLER_T=0 |
| 22597 | fi |
| 22598 | |
| 22599 | |
| 22600 | |
| 22601 | |
| 22602 | ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " |
| 22603 | /* <sys/types.h> is not needed according to POSIX, but the |
| 22604 | <sys/socket.h> in i386-unknown-freebsd4.10 and |
| 22605 | powerpc-apple-darwin5.5 required it. */ |
| 22606 | #include <sys/types.h> |
| 22607 | #if HAVE_SYS_SOCKET_H |
| 22608 | # include <sys/socket.h> |
| 22609 | #elif HAVE_WS2TCPIP_H |
| 22610 | # include <ws2tcpip.h> |
| 22611 | #endif |
| 22612 | |
| 22613 | " |
| 22614 | if test "x$ac_cv_type_socklen_t" = x""yes; then : |
| 22615 | |
| 22616 | else |
| 22617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5 |
| 22618 | $as_echo_n "checking for socklen_t equivalent... " >&6; } |
| 22619 | if test "${gl_cv_socklen_t_equiv+set}" = set; then : |
| 22620 | $as_echo_n "(cached) " >&6 |
| 22621 | else |
| 22622 | # Systems have either "struct sockaddr *" or |
| 22623 | # "void *" as the second argument to getpeername |
| 22624 | gl_cv_socklen_t_equiv= |
| 22625 | for arg2 in "struct sockaddr" void; do |
| 22626 | for t in int size_t "unsigned int" "long int" "unsigned long int"; do |
| 22627 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22628 | /* end confdefs.h. */ |
| 22629 | #include <sys/types.h> |
| 22630 | #include <sys/socket.h> |
| 22631 | |
| 22632 | int getpeername (int, $arg2 *, $t *); |
| 22633 | int |
| 22634 | main () |
| 22635 | { |
| 22636 | $t len; |
| 22637 | getpeername (0, 0, &len); |
| 22638 | ; |
| 22639 | return 0; |
| 22640 | } |
| 22641 | _ACEOF |
| 22642 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22643 | gl_cv_socklen_t_equiv="$t" |
| 22644 | fi |
| 22645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22646 | test "$gl_cv_socklen_t_equiv" != "" && break |
| 22647 | done |
| 22648 | test "$gl_cv_socklen_t_equiv" != "" && break |
| 22649 | done |
| 22650 | |
| 22651 | fi |
| 22652 | |
| 22653 | if test "$gl_cv_socklen_t_equiv" = ""; then |
| 22654 | as_fn_error "Cannot find a type to use in place of socklen_t" "$LINENO" 5 |
| 22655 | fi |
| 22656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_socklen_t_equiv" >&5 |
| 22657 | $as_echo "$gl_cv_socklen_t_equiv" >&6; } |
| 22658 | |
| 22659 | cat >>confdefs.h <<_ACEOF |
| 22660 | #define socklen_t $gl_cv_socklen_t_equiv |
| 22661 | _ACEOF |
| 22662 | |
| 22663 | fi |
| 22664 | |
| 22665 | |
| 22666 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5 |
| 22667 | $as_echo_n "checking for ssize_t... " >&6; } |
| 22668 | if test "${gt_cv_ssize_t+set}" = set; then : |
| 22669 | $as_echo_n "(cached) " >&6 |
| 22670 | else |
| 22671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22672 | /* end confdefs.h. */ |
| 22673 | #include <sys/types.h> |
| 22674 | int |
| 22675 | main () |
| 22676 | { |
| 22677 | int x = sizeof (ssize_t *) + sizeof (ssize_t); |
| 22678 | return !x; |
| 22679 | ; |
| 22680 | return 0; |
| 22681 | } |
| 22682 | _ACEOF |
| 22683 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22684 | gt_cv_ssize_t=yes |
| 22685 | else |
| 22686 | gt_cv_ssize_t=no |
| 22687 | fi |
| 22688 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22689 | fi |
| 22690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5 |
| 22691 | $as_echo "$gt_cv_ssize_t" >&6; } |
| 22692 | if test $gt_cv_ssize_t = no; then |
| 22693 | |
| 22694 | $as_echo "#define ssize_t int" >>confdefs.h |
| 22695 | |
| 22696 | fi |
| 22697 | |
| 22698 | |
| 22699 | |
| 22700 | |
| 22701 | |
| 22702 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h> |
| 22703 | #include <sys/stat.h> |
| 22704 | " |
| 22705 | if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then : |
| 22706 | |
| 22707 | cat >>confdefs.h <<_ACEOF |
| 22708 | #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1 |
| 22709 | _ACEOF |
| 22710 | |
| 22711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5 |
| 22712 | $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; } |
| 22713 | if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then : |
| 22714 | $as_echo_n "(cached) " >&6 |
| 22715 | else |
| 22716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22717 | /* end confdefs.h. */ |
| 22718 | |
| 22719 | #include <sys/types.h> |
| 22720 | #include <sys/stat.h> |
| 22721 | #if HAVE_SYS_TIME_H |
| 22722 | # include <sys/time.h> |
| 22723 | #endif |
| 22724 | #include <time.h> |
| 22725 | struct timespec ts; |
| 22726 | struct stat st; |
| 22727 | |
| 22728 | int |
| 22729 | main () |
| 22730 | { |
| 22731 | |
| 22732 | st.st_atim = ts; |
| 22733 | |
| 22734 | ; |
| 22735 | return 0; |
| 22736 | } |
| 22737 | _ACEOF |
| 22738 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22739 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes |
| 22740 | else |
| 22741 | ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no |
| 22742 | fi |
| 22743 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22744 | fi |
| 22745 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5 |
| 22746 | $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; } |
| 22747 | if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then |
| 22748 | |
| 22749 | $as_echo "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h |
| 22750 | |
| 22751 | fi |
| 22752 | else |
| 22753 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h> |
| 22754 | #include <sys/stat.h> |
| 22755 | " |
| 22756 | if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then : |
| 22757 | |
| 22758 | cat >>confdefs.h <<_ACEOF |
| 22759 | #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1 |
| 22760 | _ACEOF |
| 22761 | |
| 22762 | |
| 22763 | else |
| 22764 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h> |
| 22765 | #include <sys/stat.h> |
| 22766 | " |
| 22767 | if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then : |
| 22768 | |
| 22769 | cat >>confdefs.h <<_ACEOF |
| 22770 | #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 |
| 22771 | _ACEOF |
| 22772 | |
| 22773 | |
| 22774 | else |
| 22775 | ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h> |
| 22776 | #include <sys/stat.h> |
| 22777 | " |
| 22778 | if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then : |
| 22779 | |
| 22780 | cat >>confdefs.h <<_ACEOF |
| 22781 | #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1 |
| 22782 | _ACEOF |
| 22783 | |
| 22784 | |
| 22785 | fi |
| 22786 | |
| 22787 | fi |
| 22788 | |
| 22789 | fi |
| 22790 | |
| 22791 | fi |
| 22792 | |
| 22793 | |
| 22794 | |
| 22795 | |
| 22796 | |
| 22797 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h> |
| 22798 | #include <sys/stat.h> |
| 22799 | " |
| 22800 | if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then : |
| 22801 | |
| 22802 | cat >>confdefs.h <<_ACEOF |
| 22803 | #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1 |
| 22804 | _ACEOF |
| 22805 | |
| 22806 | |
| 22807 | else |
| 22808 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h> |
| 22809 | #include <sys/stat.h> |
| 22810 | " |
| 22811 | if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then : |
| 22812 | |
| 22813 | cat >>confdefs.h <<_ACEOF |
| 22814 | #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1 |
| 22815 | _ACEOF |
| 22816 | |
| 22817 | |
| 22818 | else |
| 22819 | ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h> |
| 22820 | #include <sys/stat.h> |
| 22821 | " |
| 22822 | if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then : |
| 22823 | |
| 22824 | cat >>confdefs.h <<_ACEOF |
| 22825 | #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1 |
| 22826 | _ACEOF |
| 22827 | |
| 22828 | |
| 22829 | fi |
| 22830 | |
| 22831 | fi |
| 22832 | |
| 22833 | fi |
| 22834 | |
| 22835 | |
| 22836 | |
| 22837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5 |
| 22838 | $as_echo_n "checking for working stdalign.h... " >&6; } |
| 22839 | if test "${gl_cv_header_working_stdalign_h+set}" = set; then : |
| 22840 | $as_echo_n "(cached) " >&6 |
| 22841 | else |
| 22842 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22843 | /* end confdefs.h. */ |
| 22844 | #include <stdalign.h> |
| 22845 | #include <stddef.h> |
| 22846 | |
| 22847 | /* Test that alignof yields a result consistent with offsetof. |
| 22848 | This catches GCC bug 52023 |
| 22849 | <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */ |
| 22850 | #ifdef __cplusplus |
| 22851 | template <class t> struct alignof_helper { char a; t b; }; |
| 22852 | # define ao(type) offsetof (alignof_helper<type>, b) |
| 22853 | #else |
| 22854 | # define ao(type) offsetof (struct { char a; type b; }, b) |
| 22855 | #endif |
| 22856 | char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1]; |
| 22857 | char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1]; |
| 22858 | char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; |
| 22859 | |
| 22860 | /* Test _Alignas only on platforms where gnulib can help. */ |
| 22861 | #if \ |
| 22862 | (__GNUC__ || __IBMC__ || __IBMCPP__ \ |
| 22863 | || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER) |
| 22864 | int alignas (8) alignas_int = 1; |
| 22865 | char test_alignas[_Alignof (alignas_int) == 8 ? 1 : -1]; |
| 22866 | #endif |
| 22867 | |
| 22868 | int |
| 22869 | main () |
| 22870 | { |
| 22871 | |
| 22872 | ; |
| 22873 | return 0; |
| 22874 | } |
| 22875 | _ACEOF |
| 22876 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22877 | gl_cv_header_working_stdalign_h=yes |
| 22878 | else |
| 22879 | gl_cv_header_working_stdalign_h=no |
| 22880 | fi |
| 22881 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22882 | fi |
| 22883 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5 |
| 22884 | $as_echo "$gl_cv_header_working_stdalign_h" >&6; } |
| 22885 | |
| 22886 | if test $gl_cv_header_working_stdalign_h = yes; then |
| 22887 | STDALIGN_H='' |
| 22888 | else |
| 22889 | STDALIGN_H='stdalign.h' |
| 22890 | fi |
| 22891 | |
| 22892 | |
| 22893 | if test -n "$STDALIGN_H"; then |
| 22894 | GL_GENERATE_STDALIGN_H_TRUE= |
| 22895 | GL_GENERATE_STDALIGN_H_FALSE='#' |
| 22896 | else |
| 22897 | GL_GENERATE_STDALIGN_H_TRUE='#' |
| 22898 | GL_GENERATE_STDALIGN_H_FALSE= |
| 22899 | fi |
| 22900 | |
| 22901 | |
| 22902 | |
| 22903 | STDARG_H='' |
| 22904 | NEXT_STDARG_H='<stdarg.h>' |
| 22905 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5 |
| 22906 | $as_echo_n "checking for va_copy... " >&6; } |
| 22907 | if test "${gl_cv_func_va_copy+set}" = set; then : |
| 22908 | $as_echo_n "(cached) " >&6 |
| 22909 | else |
| 22910 | |
| 22911 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22912 | /* end confdefs.h. */ |
| 22913 | #include <stdarg.h> |
| 22914 | int |
| 22915 | main () |
| 22916 | { |
| 22917 | |
| 22918 | #ifndef va_copy |
| 22919 | void (*func) (va_list, va_list) = va_copy; |
| 22920 | #endif |
| 22921 | |
| 22922 | ; |
| 22923 | return 0; |
| 22924 | } |
| 22925 | _ACEOF |
| 22926 | if ac_fn_c_try_compile "$LINENO"; then : |
| 22927 | gl_cv_func_va_copy=yes |
| 22928 | else |
| 22929 | gl_cv_func_va_copy=no |
| 22930 | fi |
| 22931 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 22932 | fi |
| 22933 | |
| 22934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5 |
| 22935 | $as_echo "$gl_cv_func_va_copy" >&6; } |
| 22936 | if test $gl_cv_func_va_copy = no; then |
| 22937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22938 | /* end confdefs.h. */ |
| 22939 | #if defined _AIX && !defined __GNUC__ |
| 22940 | AIX vaccine |
| 22941 | #endif |
| 22942 | |
| 22943 | _ACEOF |
| 22944 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 22945 | $EGREP "vaccine" >/dev/null 2>&1; then : |
| 22946 | gl_aixcc=yes |
| 22947 | else |
| 22948 | gl_aixcc=no |
| 22949 | fi |
| 22950 | rm -f conftest* |
| 22951 | |
| 22952 | if test $gl_aixcc = yes; then |
| 22953 | STDARG_H=stdarg.h |
| 22954 | |
| 22955 | |
| 22956 | |
| 22957 | |
| 22958 | |
| 22959 | |
| 22960 | |
| 22961 | |
| 22962 | if test $gl_cv_have_include_next = yes; then |
| 22963 | gl_cv_next_stdarg_h='<'stdarg.h'>' |
| 22964 | else |
| 22965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5 |
| 22966 | $as_echo_n "checking absolute name of <stdarg.h>... " >&6; } |
| 22967 | if test "${gl_cv_next_stdarg_h+set}" = set; then : |
| 22968 | $as_echo_n "(cached) " >&6 |
| 22969 | else |
| 22970 | |
| 22971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 22972 | /* end confdefs.h. */ |
| 22973 | #include <stdarg.h> |
| 22974 | |
| 22975 | _ACEOF |
| 22976 | case "$host_os" in |
| 22977 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 22978 | *) gl_absname_cpp="$ac_cpp" ;; |
| 22979 | esac |
| 22980 | |
| 22981 | case "$host_os" in |
| 22982 | mingw*) |
| 22983 | gl_dirsep_regex='[/\\]' |
| 22984 | ;; |
| 22985 | *) |
| 22986 | gl_dirsep_regex='\/' |
| 22987 | ;; |
| 22988 | esac |
| 22989 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 22990 | |
| 22991 | gl_header_literal_regex=`echo 'stdarg.h' \ |
| 22992 | | sed -e "$gl_make_literal_regex_sed"` |
| 22993 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 22994 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 22995 | s|^/[^/]|//&| |
| 22996 | p |
| 22997 | q |
| 22998 | }' |
| 22999 | gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23000 | sed -n "$gl_absolute_header_sed"`'"' |
| 23001 | |
| 23002 | |
| 23003 | fi |
| 23004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5 |
| 23005 | $as_echo "$gl_cv_next_stdarg_h" >&6; } |
| 23006 | fi |
| 23007 | NEXT_STDARG_H=$gl_cv_next_stdarg_h |
| 23008 | |
| 23009 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23010 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23011 | gl_next_as_first_directive='<'stdarg.h'>' |
| 23012 | else |
| 23013 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23014 | gl_next_as_first_directive=$gl_cv_next_stdarg_h |
| 23015 | fi |
| 23016 | NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive |
| 23017 | |
| 23018 | |
| 23019 | |
| 23020 | |
| 23021 | if test "$gl_cv_next_stdarg_h" = '""'; then |
| 23022 | gl_cv_next_stdarg_h='"///usr/include/stdarg.h"' |
| 23023 | NEXT_STDARG_H="$gl_cv_next_stdarg_h" |
| 23024 | fi |
| 23025 | else |
| 23026 | |
| 23027 | saved_as_echo_n="$as_echo_n" |
| 23028 | as_echo_n=':' |
| 23029 | if test "${gl_cv_func___va_copy+set}" = set; then : |
| 23030 | $as_echo_n "(cached) " >&6 |
| 23031 | else |
| 23032 | |
| 23033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23034 | /* end confdefs.h. */ |
| 23035 | #include <stdarg.h> |
| 23036 | int |
| 23037 | main () |
| 23038 | { |
| 23039 | |
| 23040 | #ifndef __va_copy |
| 23041 | error, bail out |
| 23042 | #endif |
| 23043 | |
| 23044 | ; |
| 23045 | return 0; |
| 23046 | } |
| 23047 | _ACEOF |
| 23048 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23049 | gl_cv_func___va_copy=yes |
| 23050 | else |
| 23051 | gl_cv_func___va_copy=no |
| 23052 | fi |
| 23053 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23054 | fi |
| 23055 | |
| 23056 | as_echo_n="$saved_as_echo_n" |
| 23057 | |
| 23058 | if test $gl_cv_func___va_copy = yes; then |
| 23059 | |
| 23060 | $as_echo "#define va_copy __va_copy" >>confdefs.h |
| 23061 | |
| 23062 | else |
| 23063 | |
| 23064 | |
| 23065 | $as_echo "#define va_copy gl_va_copy" >>confdefs.h |
| 23066 | |
| 23067 | fi |
| 23068 | fi |
| 23069 | fi |
| 23070 | |
| 23071 | if test -n "$STDARG_H"; then |
| 23072 | GL_GENERATE_STDARG_H_TRUE= |
| 23073 | GL_GENERATE_STDARG_H_FALSE='#' |
| 23074 | else |
| 23075 | GL_GENERATE_STDARG_H_TRUE='#' |
| 23076 | GL_GENERATE_STDARG_H_FALSE= |
| 23077 | fi |
| 23078 | |
| 23079 | |
| 23080 | |
| 23081 | |
| 23082 | |
| 23083 | |
| 23084 | # Define two additional variables used in the Makefile substitution. |
| 23085 | |
| 23086 | if test "$ac_cv_header_stdbool_h" = yes; then |
| 23087 | STDBOOL_H='' |
| 23088 | else |
| 23089 | STDBOOL_H='stdbool.h' |
| 23090 | fi |
| 23091 | |
| 23092 | if test -n "$STDBOOL_H"; then |
| 23093 | GL_GENERATE_STDBOOL_H_TRUE= |
| 23094 | GL_GENERATE_STDBOOL_H_FALSE='#' |
| 23095 | else |
| 23096 | GL_GENERATE_STDBOOL_H_TRUE='#' |
| 23097 | GL_GENERATE_STDBOOL_H_FALSE= |
| 23098 | fi |
| 23099 | |
| 23100 | |
| 23101 | if test "$ac_cv_type__Bool" = yes; then |
| 23102 | HAVE__BOOL=1 |
| 23103 | else |
| 23104 | HAVE__BOOL=0 |
| 23105 | fi |
| 23106 | |
| 23107 | |
| 23108 | |
| 23109 | |
| 23110 | |
| 23111 | STDDEF_H= |
| 23112 | if test $gt_cv_c_wchar_t = no; then |
| 23113 | HAVE_WCHAR_T=0 |
| 23114 | STDDEF_H=stddef.h |
| 23115 | fi |
| 23116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5 |
| 23117 | $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; } |
| 23118 | if test "${gl_cv_decl_null_works+set}" = set; then : |
| 23119 | $as_echo_n "(cached) " >&6 |
| 23120 | else |
| 23121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23122 | /* end confdefs.h. */ |
| 23123 | #include <stddef.h> |
| 23124 | int test[2 * (sizeof NULL == sizeof (void *)) -1]; |
| 23125 | |
| 23126 | int |
| 23127 | main () |
| 23128 | { |
| 23129 | |
| 23130 | ; |
| 23131 | return 0; |
| 23132 | } |
| 23133 | _ACEOF |
| 23134 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23135 | gl_cv_decl_null_works=yes |
| 23136 | else |
| 23137 | gl_cv_decl_null_works=no |
| 23138 | fi |
| 23139 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23140 | fi |
| 23141 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5 |
| 23142 | $as_echo "$gl_cv_decl_null_works" >&6; } |
| 23143 | if test $gl_cv_decl_null_works = no; then |
| 23144 | REPLACE_NULL=1 |
| 23145 | STDDEF_H=stddef.h |
| 23146 | fi |
| 23147 | |
| 23148 | if test -n "$STDDEF_H"; then |
| 23149 | GL_GENERATE_STDDEF_H_TRUE= |
| 23150 | GL_GENERATE_STDDEF_H_FALSE='#' |
| 23151 | else |
| 23152 | GL_GENERATE_STDDEF_H_TRUE='#' |
| 23153 | GL_GENERATE_STDDEF_H_FALSE= |
| 23154 | fi |
| 23155 | |
| 23156 | if test -n "$STDDEF_H"; then |
| 23157 | |
| 23158 | |
| 23159 | |
| 23160 | |
| 23161 | |
| 23162 | |
| 23163 | |
| 23164 | |
| 23165 | if test $gl_cv_have_include_next = yes; then |
| 23166 | gl_cv_next_stddef_h='<'stddef.h'>' |
| 23167 | else |
| 23168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5 |
| 23169 | $as_echo_n "checking absolute name of <stddef.h>... " >&6; } |
| 23170 | if test "${gl_cv_next_stddef_h+set}" = set; then : |
| 23171 | $as_echo_n "(cached) " >&6 |
| 23172 | else |
| 23173 | |
| 23174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23175 | /* end confdefs.h. */ |
| 23176 | #include <stddef.h> |
| 23177 | |
| 23178 | _ACEOF |
| 23179 | case "$host_os" in |
| 23180 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23181 | *) gl_absname_cpp="$ac_cpp" ;; |
| 23182 | esac |
| 23183 | |
| 23184 | case "$host_os" in |
| 23185 | mingw*) |
| 23186 | gl_dirsep_regex='[/\\]' |
| 23187 | ;; |
| 23188 | *) |
| 23189 | gl_dirsep_regex='\/' |
| 23190 | ;; |
| 23191 | esac |
| 23192 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23193 | |
| 23194 | gl_header_literal_regex=`echo 'stddef.h' \ |
| 23195 | | sed -e "$gl_make_literal_regex_sed"` |
| 23196 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23197 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23198 | s|^/[^/]|//&| |
| 23199 | p |
| 23200 | q |
| 23201 | }' |
| 23202 | gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23203 | sed -n "$gl_absolute_header_sed"`'"' |
| 23204 | |
| 23205 | |
| 23206 | fi |
| 23207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5 |
| 23208 | $as_echo "$gl_cv_next_stddef_h" >&6; } |
| 23209 | fi |
| 23210 | NEXT_STDDEF_H=$gl_cv_next_stddef_h |
| 23211 | |
| 23212 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23213 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23214 | gl_next_as_first_directive='<'stddef.h'>' |
| 23215 | else |
| 23216 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23217 | gl_next_as_first_directive=$gl_cv_next_stddef_h |
| 23218 | fi |
| 23219 | NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive |
| 23220 | |
| 23221 | |
| 23222 | |
| 23223 | |
| 23224 | fi |
| 23225 | |
| 23226 | |
| 23227 | |
| 23228 | |
| 23229 | |
| 23230 | |
| 23231 | |
| 23232 | |
| 23233 | |
| 23234 | |
| 23235 | |
| 23236 | |
| 23237 | if test $gl_cv_have_include_next = yes; then |
| 23238 | gl_cv_next_stdio_h='<'stdio.h'>' |
| 23239 | else |
| 23240 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5 |
| 23241 | $as_echo_n "checking absolute name of <stdio.h>... " >&6; } |
| 23242 | if test "${gl_cv_next_stdio_h+set}" = set; then : |
| 23243 | $as_echo_n "(cached) " >&6 |
| 23244 | else |
| 23245 | |
| 23246 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23247 | /* end confdefs.h. */ |
| 23248 | #include <stdio.h> |
| 23249 | |
| 23250 | _ACEOF |
| 23251 | case "$host_os" in |
| 23252 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23253 | *) gl_absname_cpp="$ac_cpp" ;; |
| 23254 | esac |
| 23255 | |
| 23256 | case "$host_os" in |
| 23257 | mingw*) |
| 23258 | gl_dirsep_regex='[/\\]' |
| 23259 | ;; |
| 23260 | *) |
| 23261 | gl_dirsep_regex='\/' |
| 23262 | ;; |
| 23263 | esac |
| 23264 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23265 | |
| 23266 | gl_header_literal_regex=`echo 'stdio.h' \ |
| 23267 | | sed -e "$gl_make_literal_regex_sed"` |
| 23268 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23269 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23270 | s|^/[^/]|//&| |
| 23271 | p |
| 23272 | q |
| 23273 | }' |
| 23274 | gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23275 | sed -n "$gl_absolute_header_sed"`'"' |
| 23276 | |
| 23277 | |
| 23278 | fi |
| 23279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5 |
| 23280 | $as_echo "$gl_cv_next_stdio_h" >&6; } |
| 23281 | fi |
| 23282 | NEXT_STDIO_H=$gl_cv_next_stdio_h |
| 23283 | |
| 23284 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23285 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23286 | gl_next_as_first_directive='<'stdio.h'>' |
| 23287 | else |
| 23288 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23289 | gl_next_as_first_directive=$gl_cv_next_stdio_h |
| 23290 | fi |
| 23291 | NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive |
| 23292 | |
| 23293 | |
| 23294 | |
| 23295 | |
| 23296 | |
| 23297 | GNULIB_FSCANF=1 |
| 23298 | |
| 23299 | |
| 23300 | cat >>confdefs.h <<_ACEOF |
| 23301 | #define GNULIB_FSCANF 1 |
| 23302 | _ACEOF |
| 23303 | |
| 23304 | |
| 23305 | GNULIB_SCANF=1 |
| 23306 | |
| 23307 | |
| 23308 | cat >>confdefs.h <<_ACEOF |
| 23309 | #define GNULIB_SCANF 1 |
| 23310 | _ACEOF |
| 23311 | |
| 23312 | |
| 23313 | GNULIB_FGETC=1 |
| 23314 | GNULIB_GETC=1 |
| 23315 | GNULIB_GETCHAR=1 |
| 23316 | GNULIB_FGETS=1 |
| 23317 | GNULIB_FREAD=1 |
| 23318 | |
| 23319 | |
| 23320 | GNULIB_FPRINTF=1 |
| 23321 | GNULIB_PRINTF=1 |
| 23322 | GNULIB_VFPRINTF=1 |
| 23323 | GNULIB_VPRINTF=1 |
| 23324 | GNULIB_FPUTC=1 |
| 23325 | GNULIB_PUTC=1 |
| 23326 | GNULIB_PUTCHAR=1 |
| 23327 | GNULIB_FPUTS=1 |
| 23328 | GNULIB_PUTS=1 |
| 23329 | GNULIB_FWRITE=1 |
| 23330 | |
| 23331 | |
| 23332 | |
| 23333 | |
| 23334 | |
| 23335 | |
| 23336 | |
| 23337 | |
| 23338 | |
| 23339 | |
| 23340 | |
| 23341 | |
| 23342 | |
| 23343 | |
| 23344 | |
| 23345 | if test $gl_cv_have_include_next = yes; then |
| 23346 | gl_cv_next_stdlib_h='<'stdlib.h'>' |
| 23347 | else |
| 23348 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5 |
| 23349 | $as_echo_n "checking absolute name of <stdlib.h>... " >&6; } |
| 23350 | if test "${gl_cv_next_stdlib_h+set}" = set; then : |
| 23351 | $as_echo_n "(cached) " >&6 |
| 23352 | else |
| 23353 | |
| 23354 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23355 | /* end confdefs.h. */ |
| 23356 | #include <stdlib.h> |
| 23357 | |
| 23358 | _ACEOF |
| 23359 | case "$host_os" in |
| 23360 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23361 | *) gl_absname_cpp="$ac_cpp" ;; |
| 23362 | esac |
| 23363 | |
| 23364 | case "$host_os" in |
| 23365 | mingw*) |
| 23366 | gl_dirsep_regex='[/\\]' |
| 23367 | ;; |
| 23368 | *) |
| 23369 | gl_dirsep_regex='\/' |
| 23370 | ;; |
| 23371 | esac |
| 23372 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23373 | |
| 23374 | gl_header_literal_regex=`echo 'stdlib.h' \ |
| 23375 | | sed -e "$gl_make_literal_regex_sed"` |
| 23376 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23377 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23378 | s|^/[^/]|//&| |
| 23379 | p |
| 23380 | q |
| 23381 | }' |
| 23382 | gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23383 | sed -n "$gl_absolute_header_sed"`'"' |
| 23384 | |
| 23385 | |
| 23386 | fi |
| 23387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5 |
| 23388 | $as_echo "$gl_cv_next_stdlib_h" >&6; } |
| 23389 | fi |
| 23390 | NEXT_STDLIB_H=$gl_cv_next_stdlib_h |
| 23391 | |
| 23392 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23393 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23394 | gl_next_as_first_directive='<'stdlib.h'>' |
| 23395 | else |
| 23396 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23397 | gl_next_as_first_directive=$gl_cv_next_stdlib_h |
| 23398 | fi |
| 23399 | NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive |
| 23400 | |
| 23401 | |
| 23402 | |
| 23403 | |
| 23404 | |
| 23405 | |
| 23406 | |
| 23407 | |
| 23408 | |
| 23409 | # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. |
| 23410 | |
| 23411 | |
| 23412 | |
| 23413 | |
| 23414 | |
| 23415 | |
| 23416 | |
| 23417 | $as_echo "#define my_strftime nstrftime" >>confdefs.h |
| 23418 | |
| 23419 | |
| 23420 | |
| 23421 | |
| 23422 | |
| 23423 | |
| 23424 | |
| 23425 | |
| 23426 | if test "$ac_cv_have_decl_strtoimax" != yes; then |
| 23427 | HAVE_DECL_STRTOIMAX=0 |
| 23428 | fi |
| 23429 | |
| 23430 | if test $ac_cv_func_strtoimax = yes; then |
| 23431 | HAVE_STRTOIMAX=1 |
| 23432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtoimax works" >&5 |
| 23433 | $as_echo_n "checking whether strtoimax works... " >&6; } |
| 23434 | if test "${gl_cv_func_strtoimax+set}" = set; then : |
| 23435 | $as_echo_n "(cached) " >&6 |
| 23436 | else |
| 23437 | if test "$cross_compiling" = yes; then : |
| 23438 | case "$host_os" in |
| 23439 | # Guess no on AIX 5. |
| 23440 | aix5*) gl_cv_func_strtoimax="guessing no" ;; |
| 23441 | # Guess yes otherwise. |
| 23442 | *) gl_cv_func_strtoimax="guessing yes" ;; |
| 23443 | esac |
| 23444 | |
| 23445 | else |
| 23446 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23447 | /* end confdefs.h. */ |
| 23448 | |
| 23449 | #include <errno.h> |
| 23450 | #include <string.h> |
| 23451 | #include <inttypes.h> |
| 23452 | int main () |
| 23453 | { |
| 23454 | if (sizeof (intmax_t) > sizeof (int)) |
| 23455 | { |
| 23456 | const char *s = "4294967295"; |
| 23457 | char *p; |
| 23458 | intmax_t res; |
| 23459 | errno = 0; |
| 23460 | res = strtoimax (s, &p, 10); |
| 23461 | if (p != s + strlen (s)) |
| 23462 | return 1; |
| 23463 | if (errno != 0) |
| 23464 | return 2; |
| 23465 | if (res != (intmax_t) 65535 * (intmax_t) 65537) |
| 23466 | return 3; |
| 23467 | } |
| 23468 | else |
| 23469 | { |
| 23470 | const char *s = "2147483647"; |
| 23471 | char *p; |
| 23472 | intmax_t res; |
| 23473 | errno = 0; |
| 23474 | res = strtoimax (s, &p, 10); |
| 23475 | if (p != s + strlen (s)) |
| 23476 | return 1; |
| 23477 | if (errno != 0) |
| 23478 | return 2; |
| 23479 | if (res != 2147483647) |
| 23480 | return 3; |
| 23481 | } |
| 23482 | return 0; |
| 23483 | } |
| 23484 | |
| 23485 | _ACEOF |
| 23486 | if ac_fn_c_try_run "$LINENO"; then : |
| 23487 | gl_cv_func_strtoimax=yes |
| 23488 | else |
| 23489 | gl_cv_func_strtoimax=no |
| 23490 | fi |
| 23491 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23492 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23493 | fi |
| 23494 | |
| 23495 | |
| 23496 | fi |
| 23497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtoimax" >&5 |
| 23498 | $as_echo "$gl_cv_func_strtoimax" >&6; } |
| 23499 | case "$gl_cv_func_strtoimax" in |
| 23500 | *no) REPLACE_STRTOIMAX=1 ;; |
| 23501 | esac |
| 23502 | else |
| 23503 | HAVE_STRTOIMAX=0 |
| 23504 | fi |
| 23505 | |
| 23506 | if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then |
| 23507 | |
| 23508 | |
| 23509 | |
| 23510 | |
| 23511 | |
| 23512 | |
| 23513 | |
| 23514 | |
| 23515 | gl_LIBOBJS="$gl_LIBOBJS strtoimax.$ac_objext" |
| 23516 | |
| 23517 | |
| 23518 | ac_fn_c_check_decl "$LINENO" "strtoll" "ac_cv_have_decl_strtoll" "$ac_includes_default" |
| 23519 | if test "x$ac_cv_have_decl_strtoll" = x""yes; then : |
| 23520 | ac_have_decl=1 |
| 23521 | else |
| 23522 | ac_have_decl=0 |
| 23523 | fi |
| 23524 | |
| 23525 | cat >>confdefs.h <<_ACEOF |
| 23526 | #define HAVE_DECL_STRTOLL $ac_have_decl |
| 23527 | _ACEOF |
| 23528 | |
| 23529 | |
| 23530 | |
| 23531 | fi |
| 23532 | |
| 23533 | |
| 23534 | |
| 23535 | |
| 23536 | |
| 23537 | GNULIB_STRTOIMAX=1 |
| 23538 | |
| 23539 | |
| 23540 | |
| 23541 | |
| 23542 | |
| 23543 | |
| 23544 | |
| 23545 | |
| 23546 | |
| 23547 | if test "$ac_cv_have_decl_strtoumax" != yes; then |
| 23548 | HAVE_DECL_STRTOUMAX=0 |
| 23549 | fi |
| 23550 | |
| 23551 | if test $ac_cv_func_strtoumax = no; then |
| 23552 | |
| 23553 | |
| 23554 | |
| 23555 | |
| 23556 | |
| 23557 | |
| 23558 | |
| 23559 | |
| 23560 | gl_LIBOBJS="$gl_LIBOBJS strtoumax.$ac_objext" |
| 23561 | |
| 23562 | |
| 23563 | ac_fn_c_check_decl "$LINENO" "strtoull" "ac_cv_have_decl_strtoull" "$ac_includes_default" |
| 23564 | if test "x$ac_cv_have_decl_strtoull" = x""yes; then : |
| 23565 | ac_have_decl=1 |
| 23566 | else |
| 23567 | ac_have_decl=0 |
| 23568 | fi |
| 23569 | |
| 23570 | cat >>confdefs.h <<_ACEOF |
| 23571 | #define HAVE_DECL_STRTOULL $ac_have_decl |
| 23572 | _ACEOF |
| 23573 | |
| 23574 | |
| 23575 | |
| 23576 | fi |
| 23577 | |
| 23578 | |
| 23579 | |
| 23580 | |
| 23581 | |
| 23582 | GNULIB_STRTOUMAX=1 |
| 23583 | |
| 23584 | |
| 23585 | |
| 23586 | |
| 23587 | |
| 23588 | |
| 23589 | |
| 23590 | if test $ac_cv_func_symlink = no; then |
| 23591 | HAVE_SYMLINK=0 |
| 23592 | else |
| 23593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symlink handles trailing slash correctly" >&5 |
| 23594 | $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; } |
| 23595 | if test "${gl_cv_func_symlink_works+set}" = set; then : |
| 23596 | $as_echo_n "(cached) " >&6 |
| 23597 | else |
| 23598 | if test "$cross_compiling" = yes; then : |
| 23599 | case "$host_os" in |
| 23600 | # Guess yes on glibc systems. |
| 23601 | *-gnu*) gl_cv_func_symlink_works="guessing yes" ;; |
| 23602 | # If we don't know, assume the worst. |
| 23603 | *) gl_cv_func_symlink_works="guessing no" ;; |
| 23604 | esac |
| 23605 | |
| 23606 | else |
| 23607 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23608 | /* end confdefs.h. */ |
| 23609 | #include <unistd.h> |
| 23610 | |
| 23611 | int |
| 23612 | main () |
| 23613 | { |
| 23614 | int result = 0; |
| 23615 | if (!symlink ("a", "conftest.link/")) |
| 23616 | result |= 1; |
| 23617 | if (symlink ("conftest.f", "conftest.lnk2")) |
| 23618 | result |= 2; |
| 23619 | else if (!symlink ("a", "conftest.lnk2/")) |
| 23620 | result |= 4; |
| 23621 | return result; |
| 23622 | |
| 23623 | ; |
| 23624 | return 0; |
| 23625 | } |
| 23626 | _ACEOF |
| 23627 | if ac_fn_c_try_run "$LINENO"; then : |
| 23628 | gl_cv_func_symlink_works=yes |
| 23629 | else |
| 23630 | gl_cv_func_symlink_works=no |
| 23631 | fi |
| 23632 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 23633 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 23634 | fi |
| 23635 | |
| 23636 | rm -f conftest.f conftest.link conftest.lnk2 |
| 23637 | fi |
| 23638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_symlink_works" >&5 |
| 23639 | $as_echo "$gl_cv_func_symlink_works" >&6; } |
| 23640 | case "$gl_cv_func_symlink_works" in |
| 23641 | *yes) ;; |
| 23642 | *) |
| 23643 | REPLACE_SYMLINK=1 |
| 23644 | ;; |
| 23645 | esac |
| 23646 | fi |
| 23647 | |
| 23648 | if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then |
| 23649 | |
| 23650 | |
| 23651 | |
| 23652 | |
| 23653 | |
| 23654 | |
| 23655 | |
| 23656 | |
| 23657 | gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext" |
| 23658 | |
| 23659 | fi |
| 23660 | |
| 23661 | |
| 23662 | |
| 23663 | |
| 23664 | |
| 23665 | GNULIB_SYMLINK=1 |
| 23666 | |
| 23667 | |
| 23668 | |
| 23669 | |
| 23670 | |
| 23671 | |
| 23672 | |
| 23673 | |
| 23674 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <sys/select.h> is self-contained" >&5 |
| 23675 | $as_echo_n "checking whether <sys/select.h> is self-contained... " >&6; } |
| 23676 | if test "${gl_cv_header_sys_select_h_selfcontained+set}" = set; then : |
| 23677 | $as_echo_n "(cached) " >&6 |
| 23678 | else |
| 23679 | |
| 23680 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23681 | /* end confdefs.h. */ |
| 23682 | #include <sys/select.h> |
| 23683 | int |
| 23684 | main () |
| 23685 | { |
| 23686 | struct timeval b; |
| 23687 | ; |
| 23688 | return 0; |
| 23689 | } |
| 23690 | _ACEOF |
| 23691 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23692 | gl_cv_header_sys_select_h_selfcontained=yes |
| 23693 | else |
| 23694 | gl_cv_header_sys_select_h_selfcontained=no |
| 23695 | fi |
| 23696 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23697 | if test $gl_cv_header_sys_select_h_selfcontained = yes; then |
| 23698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23699 | /* end confdefs.h. */ |
| 23700 | #include <sys/select.h> |
| 23701 | int |
| 23702 | main () |
| 23703 | { |
| 23704 | int memset; int bzero; |
| 23705 | ; |
| 23706 | return 0; |
| 23707 | } |
| 23708 | |
| 23709 | _ACEOF |
| 23710 | if ac_fn_c_try_compile "$LINENO"; then : |
| 23711 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23712 | /* end confdefs.h. */ |
| 23713 | #include <sys/select.h> |
| 23714 | int |
| 23715 | main () |
| 23716 | { |
| 23717 | |
| 23718 | #undef memset |
| 23719 | #define memset nonexistent_memset |
| 23720 | extern |
| 23721 | #ifdef __cplusplus |
| 23722 | "C" |
| 23723 | #endif |
| 23724 | void *memset (void *, int, unsigned long); |
| 23725 | #undef bzero |
| 23726 | #define bzero nonexistent_bzero |
| 23727 | extern |
| 23728 | #ifdef __cplusplus |
| 23729 | "C" |
| 23730 | #endif |
| 23731 | void bzero (void *, unsigned long); |
| 23732 | fd_set fds; |
| 23733 | FD_ZERO (&fds); |
| 23734 | |
| 23735 | ; |
| 23736 | return 0; |
| 23737 | } |
| 23738 | |
| 23739 | _ACEOF |
| 23740 | if ac_fn_c_try_link "$LINENO"; then : |
| 23741 | |
| 23742 | else |
| 23743 | gl_cv_header_sys_select_h_selfcontained=no |
| 23744 | fi |
| 23745 | rm -f core conftest.err conftest.$ac_objext \ |
| 23746 | conftest$ac_exeext conftest.$ac_ext |
| 23747 | |
| 23748 | fi |
| 23749 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 23750 | fi |
| 23751 | |
| 23752 | fi |
| 23753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_select_h_selfcontained" >&5 |
| 23754 | $as_echo "$gl_cv_header_sys_select_h_selfcontained" >&6; } |
| 23755 | |
| 23756 | |
| 23757 | |
| 23758 | |
| 23759 | |
| 23760 | |
| 23761 | |
| 23762 | |
| 23763 | |
| 23764 | if test $gl_cv_have_include_next = yes; then |
| 23765 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 23766 | else |
| 23767 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/select.h>" >&5 |
| 23768 | $as_echo_n "checking absolute name of <sys/select.h>... " >&6; } |
| 23769 | if test "${gl_cv_next_sys_select_h+set}" = set; then : |
| 23770 | $as_echo_n "(cached) " >&6 |
| 23771 | else |
| 23772 | |
| 23773 | if test $ac_cv_header_sys_select_h = yes; then |
| 23774 | |
| 23775 | |
| 23776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23777 | /* end confdefs.h. */ |
| 23778 | #include <sys/select.h> |
| 23779 | |
| 23780 | _ACEOF |
| 23781 | case "$host_os" in |
| 23782 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23783 | *) gl_absname_cpp="$ac_cpp" ;; |
| 23784 | esac |
| 23785 | |
| 23786 | case "$host_os" in |
| 23787 | mingw*) |
| 23788 | gl_dirsep_regex='[/\\]' |
| 23789 | ;; |
| 23790 | *) |
| 23791 | gl_dirsep_regex='\/' |
| 23792 | ;; |
| 23793 | esac |
| 23794 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23795 | |
| 23796 | gl_header_literal_regex=`echo 'sys/select.h' \ |
| 23797 | | sed -e "$gl_make_literal_regex_sed"` |
| 23798 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23799 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23800 | s|^/[^/]|//&| |
| 23801 | p |
| 23802 | q |
| 23803 | }' |
| 23804 | gl_cv_next_sys_select_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23805 | sed -n "$gl_absolute_header_sed"`'"' |
| 23806 | else |
| 23807 | gl_cv_next_sys_select_h='<'sys/select.h'>' |
| 23808 | fi |
| 23809 | |
| 23810 | |
| 23811 | fi |
| 23812 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_select_h" >&5 |
| 23813 | $as_echo "$gl_cv_next_sys_select_h" >&6; } |
| 23814 | fi |
| 23815 | NEXT_SYS_SELECT_H=$gl_cv_next_sys_select_h |
| 23816 | |
| 23817 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23818 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23819 | gl_next_as_first_directive='<'sys/select.h'>' |
| 23820 | else |
| 23821 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23822 | gl_next_as_first_directive=$gl_cv_next_sys_select_h |
| 23823 | fi |
| 23824 | NEXT_AS_FIRST_DIRECTIVE_SYS_SELECT_H=$gl_next_as_first_directive |
| 23825 | |
| 23826 | |
| 23827 | |
| 23828 | |
| 23829 | if test $ac_cv_header_sys_select_h = yes; then |
| 23830 | HAVE_SYS_SELECT_H=1 |
| 23831 | else |
| 23832 | HAVE_SYS_SELECT_H=0 |
| 23833 | fi |
| 23834 | |
| 23835 | |
| 23836 | |
| 23837 | |
| 23838 | |
| 23839 | if test $ac_cv_header_sys_socket_h != yes; then |
| 23840 | for ac_header in winsock2.h |
| 23841 | do : |
| 23842 | ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default" |
| 23843 | if test "x$ac_cv_header_winsock2_h" = x""yes; then : |
| 23844 | cat >>confdefs.h <<_ACEOF |
| 23845 | #define HAVE_WINSOCK2_H 1 |
| 23846 | _ACEOF |
| 23847 | |
| 23848 | fi |
| 23849 | |
| 23850 | done |
| 23851 | |
| 23852 | fi |
| 23853 | if test "$ac_cv_header_winsock2_h" = yes; then |
| 23854 | HAVE_WINSOCK2_H=1 |
| 23855 | UNISTD_H_HAVE_WINSOCK2_H=1 |
| 23856 | SYS_IOCTL_H_HAVE_WINSOCK2_H=1 |
| 23857 | else |
| 23858 | HAVE_WINSOCK2_H=0 |
| 23859 | fi |
| 23860 | |
| 23861 | |
| 23862 | |
| 23863 | |
| 23864 | |
| 23865 | |
| 23866 | |
| 23867 | |
| 23868 | |
| 23869 | |
| 23870 | |
| 23871 | |
| 23872 | |
| 23873 | |
| 23874 | |
| 23875 | |
| 23876 | |
| 23877 | |
| 23878 | |
| 23879 | |
| 23880 | if test $gl_cv_have_include_next = yes; then |
| 23881 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 23882 | else |
| 23883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5 |
| 23884 | $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; } |
| 23885 | if test "${gl_cv_next_sys_stat_h+set}" = set; then : |
| 23886 | $as_echo_n "(cached) " >&6 |
| 23887 | else |
| 23888 | |
| 23889 | if test $ac_cv_header_sys_stat_h = yes; then |
| 23890 | |
| 23891 | |
| 23892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 23893 | /* end confdefs.h. */ |
| 23894 | #include <sys/stat.h> |
| 23895 | |
| 23896 | _ACEOF |
| 23897 | case "$host_os" in |
| 23898 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 23899 | *) gl_absname_cpp="$ac_cpp" ;; |
| 23900 | esac |
| 23901 | |
| 23902 | case "$host_os" in |
| 23903 | mingw*) |
| 23904 | gl_dirsep_regex='[/\\]' |
| 23905 | ;; |
| 23906 | *) |
| 23907 | gl_dirsep_regex='\/' |
| 23908 | ;; |
| 23909 | esac |
| 23910 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 23911 | |
| 23912 | gl_header_literal_regex=`echo 'sys/stat.h' \ |
| 23913 | | sed -e "$gl_make_literal_regex_sed"` |
| 23914 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 23915 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 23916 | s|^/[^/]|//&| |
| 23917 | p |
| 23918 | q |
| 23919 | }' |
| 23920 | gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 23921 | sed -n "$gl_absolute_header_sed"`'"' |
| 23922 | else |
| 23923 | gl_cv_next_sys_stat_h='<'sys/stat.h'>' |
| 23924 | fi |
| 23925 | |
| 23926 | |
| 23927 | fi |
| 23928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5 |
| 23929 | $as_echo "$gl_cv_next_sys_stat_h" >&6; } |
| 23930 | fi |
| 23931 | NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h |
| 23932 | |
| 23933 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 23934 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 23935 | gl_next_as_first_directive='<'sys/stat.h'>' |
| 23936 | else |
| 23937 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 23938 | gl_next_as_first_directive=$gl_cv_next_sys_stat_h |
| 23939 | fi |
| 23940 | NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive |
| 23941 | |
| 23942 | |
| 23943 | |
| 23944 | |
| 23945 | |
| 23946 | |
| 23947 | |
| 23948 | |
| 23949 | |
| 23950 | |
| 23951 | |
| 23952 | if test $WINDOWS_64_BIT_ST_SIZE = 1; then |
| 23953 | |
| 23954 | $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h |
| 23955 | |
| 23956 | fi |
| 23957 | |
| 23958 | ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h> |
| 23959 | #include <sys/stat.h> |
| 23960 | " |
| 23961 | if test "x$ac_cv_type_nlink_t" = x""yes; then : |
| 23962 | |
| 23963 | else |
| 23964 | |
| 23965 | $as_echo "#define nlink_t int" >>confdefs.h |
| 23966 | |
| 23967 | fi |
| 23968 | |
| 23969 | |
| 23970 | |
| 23971 | |
| 23972 | |
| 23973 | |
| 23974 | |
| 23975 | |
| 23976 | |
| 23977 | |
| 23978 | |
| 23979 | |
| 23980 | |
| 23981 | |
| 23982 | |
| 23983 | |
| 23984 | |
| 23985 | |
| 23986 | ac_fn_c_check_decl "$LINENO" "localtime_r" "ac_cv_have_decl_localtime_r" "#include <time.h> |
| 23987 | " |
| 23988 | if test "x$ac_cv_have_decl_localtime_r" = x""yes; then : |
| 23989 | ac_have_decl=1 |
| 23990 | else |
| 23991 | ac_have_decl=0 |
| 23992 | fi |
| 23993 | |
| 23994 | cat >>confdefs.h <<_ACEOF |
| 23995 | #define HAVE_DECL_LOCALTIME_R $ac_have_decl |
| 23996 | _ACEOF |
| 23997 | |
| 23998 | if test $ac_cv_have_decl_localtime_r = no; then |
| 23999 | HAVE_DECL_LOCALTIME_R=0 |
| 24000 | fi |
| 24001 | |
| 24002 | |
| 24003 | if test $ac_cv_func_localtime_r = yes; then |
| 24004 | HAVE_LOCALTIME_R=1 |
| 24005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime_r is compatible with its POSIX signature" >&5 |
| 24006 | $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; } |
| 24007 | if test "${gl_cv_time_r_posix+set}" = set; then : |
| 24008 | $as_echo_n "(cached) " >&6 |
| 24009 | else |
| 24010 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24011 | /* end confdefs.h. */ |
| 24012 | #include <time.h> |
| 24013 | int |
| 24014 | main () |
| 24015 | { |
| 24016 | /* We don't need to append 'restrict's to the argument types, |
| 24017 | even though the POSIX signature has the 'restrict's, |
| 24018 | since C99 says they can't affect type compatibility. */ |
| 24019 | struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r; |
| 24020 | if (ptr) return 0; |
| 24021 | /* Check the return type is a pointer. |
| 24022 | On HP-UX 10 it is 'int'. */ |
| 24023 | *localtime_r (0, 0); |
| 24024 | ; |
| 24025 | return 0; |
| 24026 | } |
| 24027 | |
| 24028 | _ACEOF |
| 24029 | if ac_fn_c_try_compile "$LINENO"; then : |
| 24030 | gl_cv_time_r_posix=yes |
| 24031 | else |
| 24032 | gl_cv_time_r_posix=no |
| 24033 | fi |
| 24034 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 24035 | |
| 24036 | fi |
| 24037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_r_posix" >&5 |
| 24038 | $as_echo "$gl_cv_time_r_posix" >&6; } |
| 24039 | if test $gl_cv_time_r_posix = yes; then |
| 24040 | REPLACE_LOCALTIME_R=0 |
| 24041 | else |
| 24042 | REPLACE_LOCALTIME_R=1 |
| 24043 | fi |
| 24044 | else |
| 24045 | HAVE_LOCALTIME_R=0 |
| 24046 | fi |
| 24047 | |
| 24048 | if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then |
| 24049 | |
| 24050 | |
| 24051 | |
| 24052 | |
| 24053 | |
| 24054 | |
| 24055 | |
| 24056 | |
| 24057 | gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext" |
| 24058 | |
| 24059 | |
| 24060 | : |
| 24061 | |
| 24062 | fi |
| 24063 | |
| 24064 | |
| 24065 | |
| 24066 | |
| 24067 | |
| 24068 | GNULIB_TIME_R=1 |
| 24069 | |
| 24070 | |
| 24071 | |
| 24072 | |
| 24073 | |
| 24074 | |
| 24075 | |
| 24076 | |
| 24077 | |
| 24078 | |
| 24079 | LIB_TIMER_TIME= |
| 24080 | |
| 24081 | gl_saved_libs=$LIBS |
| 24082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_settime" >&5 |
| 24083 | $as_echo_n "checking for library containing timer_settime... " >&6; } |
| 24084 | if test "${ac_cv_search_timer_settime+set}" = set; then : |
| 24085 | $as_echo_n "(cached) " >&6 |
| 24086 | else |
| 24087 | ac_func_search_save_LIBS=$LIBS |
| 24088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24089 | /* end confdefs.h. */ |
| 24090 | |
| 24091 | /* Override any GCC internal prototype to avoid an error. |
| 24092 | Use char because int might match the return type of a GCC |
| 24093 | builtin and then its argument prototype would still apply. */ |
| 24094 | #ifdef __cplusplus |
| 24095 | extern "C" |
| 24096 | #endif |
| 24097 | char timer_settime (); |
| 24098 | int |
| 24099 | main () |
| 24100 | { |
| 24101 | return timer_settime (); |
| 24102 | ; |
| 24103 | return 0; |
| 24104 | } |
| 24105 | _ACEOF |
| 24106 | for ac_lib in '' rt posix4; do |
| 24107 | if test -z "$ac_lib"; then |
| 24108 | ac_res="none required" |
| 24109 | else |
| 24110 | ac_res=-l$ac_lib |
| 24111 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24112 | fi |
| 24113 | if ac_fn_c_try_link "$LINENO"; then : |
| 24114 | ac_cv_search_timer_settime=$ac_res |
| 24115 | fi |
| 24116 | rm -f core conftest.err conftest.$ac_objext \ |
| 24117 | conftest$ac_exeext |
| 24118 | if test "${ac_cv_search_timer_settime+set}" = set; then : |
| 24119 | break |
| 24120 | fi |
| 24121 | done |
| 24122 | if test "${ac_cv_search_timer_settime+set}" = set; then : |
| 24123 | |
| 24124 | else |
| 24125 | ac_cv_search_timer_settime=no |
| 24126 | fi |
| 24127 | rm conftest.$ac_ext |
| 24128 | LIBS=$ac_func_search_save_LIBS |
| 24129 | fi |
| 24130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_settime" >&5 |
| 24131 | $as_echo "$ac_cv_search_timer_settime" >&6; } |
| 24132 | ac_res=$ac_cv_search_timer_settime |
| 24133 | if test "$ac_res" != no; then : |
| 24134 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 24135 | test "$ac_cv_search_timer_settime" = "none required" || |
| 24136 | LIB_TIMER_TIME=$ac_cv_search_timer_settime |
| 24137 | fi |
| 24138 | |
| 24139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24140 | /* end confdefs.h. */ |
| 24141 | |
| 24142 | #include <features.h> |
| 24143 | #ifdef __GNU_LIBRARY__ |
| 24144 | #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || (__GLIBC__ > 2)) \ |
| 24145 | && !defined __UCLIBC__ |
| 24146 | Thread emulation available |
| 24147 | #endif |
| 24148 | #endif |
| 24149 | |
| 24150 | _ACEOF |
| 24151 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 24152 | $EGREP "Thread" >/dev/null 2>&1; then : |
| 24153 | LIB_TIMER_TIME="$LIB_TIMER_TIME $LIBMULTITHREAD" |
| 24154 | fi |
| 24155 | rm -f conftest* |
| 24156 | |
| 24157 | for ac_func in timer_settime |
| 24158 | do : |
| 24159 | ac_fn_c_check_func "$LINENO" "timer_settime" "ac_cv_func_timer_settime" |
| 24160 | if test "x$ac_cv_func_timer_settime" = x""yes; then : |
| 24161 | cat >>confdefs.h <<_ACEOF |
| 24162 | #define HAVE_TIMER_SETTIME 1 |
| 24163 | _ACEOF |
| 24164 | |
| 24165 | fi |
| 24166 | done |
| 24167 | |
| 24168 | LIBS=$gl_saved_libs |
| 24169 | |
| 24170 | : |
| 24171 | |
| 24172 | |
| 24173 | |
| 24174 | |
| 24175 | |
| 24176 | |
| 24177 | |
| 24178 | |
| 24179 | |
| 24180 | |
| 24181 | |
| 24182 | |
| 24183 | if test $gl_cv_have_include_next = yes; then |
| 24184 | gl_cv_next_unistd_h='<'unistd.h'>' |
| 24185 | else |
| 24186 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5 |
| 24187 | $as_echo_n "checking absolute name of <unistd.h>... " >&6; } |
| 24188 | if test "${gl_cv_next_unistd_h+set}" = set; then : |
| 24189 | $as_echo_n "(cached) " >&6 |
| 24190 | else |
| 24191 | |
| 24192 | if test $ac_cv_header_unistd_h = yes; then |
| 24193 | |
| 24194 | |
| 24195 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24196 | /* end confdefs.h. */ |
| 24197 | #include <unistd.h> |
| 24198 | |
| 24199 | _ACEOF |
| 24200 | case "$host_os" in |
| 24201 | aix*) gl_absname_cpp="$ac_cpp -C" ;; |
| 24202 | *) gl_absname_cpp="$ac_cpp" ;; |
| 24203 | esac |
| 24204 | |
| 24205 | case "$host_os" in |
| 24206 | mingw*) |
| 24207 | gl_dirsep_regex='[/\\]' |
| 24208 | ;; |
| 24209 | *) |
| 24210 | gl_dirsep_regex='\/' |
| 24211 | ;; |
| 24212 | esac |
| 24213 | gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g' |
| 24214 | |
| 24215 | gl_header_literal_regex=`echo 'unistd.h' \ |
| 24216 | | sed -e "$gl_make_literal_regex_sed"` |
| 24217 | gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{ |
| 24218 | s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/ |
| 24219 | s|^/[^/]|//&| |
| 24220 | p |
| 24221 | q |
| 24222 | }' |
| 24223 | gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 | |
| 24224 | sed -n "$gl_absolute_header_sed"`'"' |
| 24225 | else |
| 24226 | gl_cv_next_unistd_h='<'unistd.h'>' |
| 24227 | fi |
| 24228 | |
| 24229 | |
| 24230 | fi |
| 24231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5 |
| 24232 | $as_echo "$gl_cv_next_unistd_h" >&6; } |
| 24233 | fi |
| 24234 | NEXT_UNISTD_H=$gl_cv_next_unistd_h |
| 24235 | |
| 24236 | if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then |
| 24237 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next' |
| 24238 | gl_next_as_first_directive='<'unistd.h'>' |
| 24239 | else |
| 24240 | # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include' |
| 24241 | gl_next_as_first_directive=$gl_cv_next_unistd_h |
| 24242 | fi |
| 24243 | NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive |
| 24244 | |
| 24245 | |
| 24246 | |
| 24247 | |
| 24248 | if test $ac_cv_header_unistd_h = yes; then |
| 24249 | HAVE_UNISTD_H=1 |
| 24250 | else |
| 24251 | HAVE_UNISTD_H=0 |
| 24252 | fi |
| 24253 | |
| 24254 | |
| 24255 | |
| 24256 | |
| 24257 | |
| 24258 | |
| 24259 | |
| 24260 | |
| 24261 | |
| 24262 | |
| 24263 | |
| 24264 | |
| 24265 | |
| 24266 | |
| 24267 | if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then |
| 24268 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5 |
| 24269 | $as_echo_n "checking whether futimesat handles NULL file... " >&6; } |
| 24270 | if test "${gl_cv_func_futimesat_works+set}" = set; then : |
| 24271 | $as_echo_n "(cached) " >&6 |
| 24272 | else |
| 24273 | touch conftest.file |
| 24274 | if test "$cross_compiling" = yes; then : |
| 24275 | case "$host_os" in |
| 24276 | # Guess yes on glibc systems. |
| 24277 | *-gnu*) gl_cv_func_futimesat_works="guessing yes" ;; |
| 24278 | # If we don't know, assume the worst. |
| 24279 | *) gl_cv_func_futimesat_works="guessing no" ;; |
| 24280 | esac |
| 24281 | |
| 24282 | else |
| 24283 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24284 | /* end confdefs.h. */ |
| 24285 | |
| 24286 | #include <stddef.h> |
| 24287 | #include <sys/times.h> |
| 24288 | #include <fcntl.h> |
| 24289 | |
| 24290 | int |
| 24291 | main () |
| 24292 | { |
| 24293 | int fd = open ("conftest.file", O_RDWR); |
| 24294 | if (fd < 0) return 1; |
| 24295 | if (futimesat (fd, NULL, NULL)) return 2; |
| 24296 | |
| 24297 | ; |
| 24298 | return 0; |
| 24299 | } |
| 24300 | _ACEOF |
| 24301 | if ac_fn_c_try_run "$LINENO"; then : |
| 24302 | gl_cv_func_futimesat_works=yes |
| 24303 | else |
| 24304 | gl_cv_func_futimesat_works=no |
| 24305 | fi |
| 24306 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24307 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24308 | fi |
| 24309 | |
| 24310 | rm -f conftest.file |
| 24311 | fi |
| 24312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5 |
| 24313 | $as_echo "$gl_cv_func_futimesat_works" >&6; } |
| 24314 | case "$gl_cv_func_futimesat_works" in |
| 24315 | *yes) ;; |
| 24316 | *) |
| 24317 | |
| 24318 | $as_echo "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h |
| 24319 | |
| 24320 | ;; |
| 24321 | esac |
| 24322 | fi |
| 24323 | |
| 24324 | gl_gnulib_enabled_dosname=false |
| 24325 | gl_gnulib_enabled_euidaccess=false |
| 24326 | gl_gnulib_enabled_getgroups=false |
| 24327 | gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false |
| 24328 | gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false |
| 24329 | gl_gnulib_enabled_pathmax=false |
| 24330 | gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false |
| 24331 | gl_gnulib_enabled_stat=false |
| 24332 | gl_gnulib_enabled_strtoll=false |
| 24333 | gl_gnulib_enabled_strtoull=false |
| 24334 | gl_gnulib_enabled_verify=false |
| 24335 | gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false |
| 24336 | func_gl_gnulib_m4code_dosname () |
| 24337 | { |
| 24338 | if ! $gl_gnulib_enabled_dosname; then |
| 24339 | gl_gnulib_enabled_dosname=true |
| 24340 | fi |
| 24341 | } |
| 24342 | func_gl_gnulib_m4code_euidaccess () |
| 24343 | { |
| 24344 | if ! $gl_gnulib_enabled_euidaccess; then |
| 24345 | |
| 24346 | |
| 24347 | |
| 24348 | |
| 24349 | |
| 24350 | for ac_func in euidaccess |
| 24351 | do : |
| 24352 | ac_fn_c_check_func "$LINENO" "euidaccess" "ac_cv_func_euidaccess" |
| 24353 | if test "x$ac_cv_func_euidaccess" = x""yes; then : |
| 24354 | cat >>confdefs.h <<_ACEOF |
| 24355 | #define HAVE_EUIDACCESS 1 |
| 24356 | _ACEOF |
| 24357 | |
| 24358 | fi |
| 24359 | done |
| 24360 | |
| 24361 | if test $ac_cv_func_euidaccess = no; then |
| 24362 | HAVE_EUIDACCESS=0 |
| 24363 | fi |
| 24364 | |
| 24365 | if test $HAVE_EUIDACCESS = 0; then |
| 24366 | |
| 24367 | |
| 24368 | |
| 24369 | |
| 24370 | |
| 24371 | |
| 24372 | |
| 24373 | |
| 24374 | gl_LIBOBJS="$gl_LIBOBJS euidaccess.$ac_objext" |
| 24375 | |
| 24376 | |
| 24377 | |
| 24378 | for ac_header in libgen.h |
| 24379 | do : |
| 24380 | ac_fn_c_check_header_mongrel "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default" |
| 24381 | if test "x$ac_cv_header_libgen_h" = x""yes; then : |
| 24382 | cat >>confdefs.h <<_ACEOF |
| 24383 | #define HAVE_LIBGEN_H 1 |
| 24384 | _ACEOF |
| 24385 | |
| 24386 | fi |
| 24387 | |
| 24388 | done |
| 24389 | |
| 24390 | |
| 24391 | ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" |
| 24392 | if test "x$ac_cv_func_getgroups" = x""yes; then : |
| 24393 | |
| 24394 | fi |
| 24395 | |
| 24396 | |
| 24397 | # If we don't yet have getgroups, see if it's in -lbsd. |
| 24398 | # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. |
| 24399 | ac_save_LIBS=$LIBS |
| 24400 | if test $ac_cv_func_getgroups = no; then |
| 24401 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5 |
| 24402 | $as_echo_n "checking for getgroups in -lbsd... " >&6; } |
| 24403 | if test "${ac_cv_lib_bsd_getgroups+set}" = set; then : |
| 24404 | $as_echo_n "(cached) " >&6 |
| 24405 | else |
| 24406 | ac_check_lib_save_LIBS=$LIBS |
| 24407 | LIBS="-lbsd $LIBS" |
| 24408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24409 | /* end confdefs.h. */ |
| 24410 | |
| 24411 | /* Override any GCC internal prototype to avoid an error. |
| 24412 | Use char because int might match the return type of a GCC |
| 24413 | builtin and then its argument prototype would still apply. */ |
| 24414 | #ifdef __cplusplus |
| 24415 | extern "C" |
| 24416 | #endif |
| 24417 | char getgroups (); |
| 24418 | int |
| 24419 | main () |
| 24420 | { |
| 24421 | return getgroups (); |
| 24422 | ; |
| 24423 | return 0; |
| 24424 | } |
| 24425 | _ACEOF |
| 24426 | if ac_fn_c_try_link "$LINENO"; then : |
| 24427 | ac_cv_lib_bsd_getgroups=yes |
| 24428 | else |
| 24429 | ac_cv_lib_bsd_getgroups=no |
| 24430 | fi |
| 24431 | rm -f core conftest.err conftest.$ac_objext \ |
| 24432 | conftest$ac_exeext conftest.$ac_ext |
| 24433 | LIBS=$ac_check_lib_save_LIBS |
| 24434 | fi |
| 24435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5 |
| 24436 | $as_echo "$ac_cv_lib_bsd_getgroups" >&6; } |
| 24437 | if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then : |
| 24438 | GETGROUPS_LIB=-lbsd |
| 24439 | fi |
| 24440 | |
| 24441 | fi |
| 24442 | |
| 24443 | # Run the program to test the functionality of the system-supplied |
| 24444 | # getgroups function only if there is such a function. |
| 24445 | if test $ac_cv_func_getgroups = yes; then |
| 24446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5 |
| 24447 | $as_echo_n "checking for working getgroups... " >&6; } |
| 24448 | if test "${ac_cv_func_getgroups_works+set}" = set; then : |
| 24449 | $as_echo_n "(cached) " >&6 |
| 24450 | else |
| 24451 | if test "$cross_compiling" = yes; then : |
| 24452 | case "$host_os" in # (( |
| 24453 | # Guess yes on glibc systems. |
| 24454 | *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;; |
| 24455 | # If we don't know, assume the worst. |
| 24456 | *) ac_cv_func_getgroups_works="guessing no" ;; |
| 24457 | esac |
| 24458 | |
| 24459 | else |
| 24460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24461 | /* end confdefs.h. */ |
| 24462 | $ac_includes_default |
| 24463 | int |
| 24464 | main () |
| 24465 | { |
| 24466 | /* On Ultrix 4.3, getgroups (0, 0) always fails. */ |
| 24467 | return getgroups (0, 0) == -1; |
| 24468 | ; |
| 24469 | return 0; |
| 24470 | } |
| 24471 | |
| 24472 | _ACEOF |
| 24473 | if ac_fn_c_try_run "$LINENO"; then : |
| 24474 | ac_cv_func_getgroups_works=yes |
| 24475 | else |
| 24476 | ac_cv_func_getgroups_works=no |
| 24477 | fi |
| 24478 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24479 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24480 | fi |
| 24481 | |
| 24482 | |
| 24483 | fi |
| 24484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5 |
| 24485 | $as_echo "$ac_cv_func_getgroups_works" >&6; } |
| 24486 | else |
| 24487 | ac_cv_func_getgroups_works=no |
| 24488 | fi |
| 24489 | case "$ac_cv_func_getgroups_works" in |
| 24490 | *yes) |
| 24491 | |
| 24492 | $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h |
| 24493 | |
| 24494 | ;; |
| 24495 | esac |
| 24496 | LIBS=$ac_save_LIBS |
| 24497 | |
| 24498 | |
| 24499 | # Solaris 9 and 10 need -lgen to get the eaccess function. |
| 24500 | # Save and restore LIBS so -lgen isn't added to it. Otherwise, *all* |
| 24501 | # programs in the package would end up linked with that potentially-shared |
| 24502 | # library, inducing unnecessary run-time overhead. |
| 24503 | LIB_EACCESS= |
| 24504 | |
| 24505 | gl_saved_libs=$LIBS |
| 24506 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing eaccess" >&5 |
| 24507 | $as_echo_n "checking for library containing eaccess... " >&6; } |
| 24508 | if test "${ac_cv_search_eaccess+set}" = set; then : |
| 24509 | $as_echo_n "(cached) " >&6 |
| 24510 | else |
| 24511 | ac_func_search_save_LIBS=$LIBS |
| 24512 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24513 | /* end confdefs.h. */ |
| 24514 | |
| 24515 | /* Override any GCC internal prototype to avoid an error. |
| 24516 | Use char because int might match the return type of a GCC |
| 24517 | builtin and then its argument prototype would still apply. */ |
| 24518 | #ifdef __cplusplus |
| 24519 | extern "C" |
| 24520 | #endif |
| 24521 | char eaccess (); |
| 24522 | int |
| 24523 | main () |
| 24524 | { |
| 24525 | return eaccess (); |
| 24526 | ; |
| 24527 | return 0; |
| 24528 | } |
| 24529 | _ACEOF |
| 24530 | for ac_lib in '' gen; do |
| 24531 | if test -z "$ac_lib"; then |
| 24532 | ac_res="none required" |
| 24533 | else |
| 24534 | ac_res=-l$ac_lib |
| 24535 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 24536 | fi |
| 24537 | if ac_fn_c_try_link "$LINENO"; then : |
| 24538 | ac_cv_search_eaccess=$ac_res |
| 24539 | fi |
| 24540 | rm -f core conftest.err conftest.$ac_objext \ |
| 24541 | conftest$ac_exeext |
| 24542 | if test "${ac_cv_search_eaccess+set}" = set; then : |
| 24543 | break |
| 24544 | fi |
| 24545 | done |
| 24546 | if test "${ac_cv_search_eaccess+set}" = set; then : |
| 24547 | |
| 24548 | else |
| 24549 | ac_cv_search_eaccess=no |
| 24550 | fi |
| 24551 | rm conftest.$ac_ext |
| 24552 | LIBS=$ac_func_search_save_LIBS |
| 24553 | fi |
| 24554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_eaccess" >&5 |
| 24555 | $as_echo "$ac_cv_search_eaccess" >&6; } |
| 24556 | ac_res=$ac_cv_search_eaccess |
| 24557 | if test "$ac_res" != no; then : |
| 24558 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 24559 | test "$ac_cv_search_eaccess" = "none required" || |
| 24560 | LIB_EACCESS=$ac_cv_search_eaccess |
| 24561 | fi |
| 24562 | |
| 24563 | for ac_func in eaccess |
| 24564 | do : |
| 24565 | ac_fn_c_check_func "$LINENO" "eaccess" "ac_cv_func_eaccess" |
| 24566 | if test "x$ac_cv_func_eaccess" = x""yes; then : |
| 24567 | cat >>confdefs.h <<_ACEOF |
| 24568 | #define HAVE_EACCESS 1 |
| 24569 | _ACEOF |
| 24570 | |
| 24571 | fi |
| 24572 | done |
| 24573 | |
| 24574 | LIBS=$gl_saved_libs |
| 24575 | |
| 24576 | fi |
| 24577 | |
| 24578 | |
| 24579 | |
| 24580 | |
| 24581 | |
| 24582 | GNULIB_EUIDACCESS=1 |
| 24583 | |
| 24584 | |
| 24585 | |
| 24586 | |
| 24587 | |
| 24588 | gl_gnulib_enabled_euidaccess=true |
| 24589 | if test $HAVE_EUIDACCESS = 0; then |
| 24590 | func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 |
| 24591 | fi |
| 24592 | func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c |
| 24593 | if test $HAVE_EUIDACCESS = 0; then |
| 24594 | func_gl_gnulib_m4code_stat |
| 24595 | fi |
| 24596 | fi |
| 24597 | } |
| 24598 | func_gl_gnulib_m4code_getgroups () |
| 24599 | { |
| 24600 | if ! $gl_gnulib_enabled_getgroups; then |
| 24601 | |
| 24602 | |
| 24603 | |
| 24604 | |
| 24605 | |
| 24606 | ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" |
| 24607 | if test "x$ac_cv_func_getgroups" = x""yes; then : |
| 24608 | |
| 24609 | fi |
| 24610 | |
| 24611 | |
| 24612 | # If we don't yet have getgroups, see if it's in -lbsd. |
| 24613 | # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. |
| 24614 | ac_save_LIBS=$LIBS |
| 24615 | if test $ac_cv_func_getgroups = no; then |
| 24616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5 |
| 24617 | $as_echo_n "checking for getgroups in -lbsd... " >&6; } |
| 24618 | if test "${ac_cv_lib_bsd_getgroups+set}" = set; then : |
| 24619 | $as_echo_n "(cached) " >&6 |
| 24620 | else |
| 24621 | ac_check_lib_save_LIBS=$LIBS |
| 24622 | LIBS="-lbsd $LIBS" |
| 24623 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24624 | /* end confdefs.h. */ |
| 24625 | |
| 24626 | /* Override any GCC internal prototype to avoid an error. |
| 24627 | Use char because int might match the return type of a GCC |
| 24628 | builtin and then its argument prototype would still apply. */ |
| 24629 | #ifdef __cplusplus |
| 24630 | extern "C" |
| 24631 | #endif |
| 24632 | char getgroups (); |
| 24633 | int |
| 24634 | main () |
| 24635 | { |
| 24636 | return getgroups (); |
| 24637 | ; |
| 24638 | return 0; |
| 24639 | } |
| 24640 | _ACEOF |
| 24641 | if ac_fn_c_try_link "$LINENO"; then : |
| 24642 | ac_cv_lib_bsd_getgroups=yes |
| 24643 | else |
| 24644 | ac_cv_lib_bsd_getgroups=no |
| 24645 | fi |
| 24646 | rm -f core conftest.err conftest.$ac_objext \ |
| 24647 | conftest$ac_exeext conftest.$ac_ext |
| 24648 | LIBS=$ac_check_lib_save_LIBS |
| 24649 | fi |
| 24650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5 |
| 24651 | $as_echo "$ac_cv_lib_bsd_getgroups" >&6; } |
| 24652 | if test "x$ac_cv_lib_bsd_getgroups" = x""yes; then : |
| 24653 | GETGROUPS_LIB=-lbsd |
| 24654 | fi |
| 24655 | |
| 24656 | fi |
| 24657 | |
| 24658 | # Run the program to test the functionality of the system-supplied |
| 24659 | # getgroups function only if there is such a function. |
| 24660 | if test $ac_cv_func_getgroups = yes; then |
| 24661 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5 |
| 24662 | $as_echo_n "checking for working getgroups... " >&6; } |
| 24663 | if test "${ac_cv_func_getgroups_works+set}" = set; then : |
| 24664 | $as_echo_n "(cached) " >&6 |
| 24665 | else |
| 24666 | if test "$cross_compiling" = yes; then : |
| 24667 | case "$host_os" in # (( |
| 24668 | # Guess yes on glibc systems. |
| 24669 | *-gnu*) ac_cv_func_getgroups_works="guessing yes" ;; |
| 24670 | # If we don't know, assume the worst. |
| 24671 | *) ac_cv_func_getgroups_works="guessing no" ;; |
| 24672 | esac |
| 24673 | |
| 24674 | else |
| 24675 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24676 | /* end confdefs.h. */ |
| 24677 | $ac_includes_default |
| 24678 | int |
| 24679 | main () |
| 24680 | { |
| 24681 | /* On Ultrix 4.3, getgroups (0, 0) always fails. */ |
| 24682 | return getgroups (0, 0) == -1; |
| 24683 | ; |
| 24684 | return 0; |
| 24685 | } |
| 24686 | |
| 24687 | _ACEOF |
| 24688 | if ac_fn_c_try_run "$LINENO"; then : |
| 24689 | ac_cv_func_getgroups_works=yes |
| 24690 | else |
| 24691 | ac_cv_func_getgroups_works=no |
| 24692 | fi |
| 24693 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24694 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24695 | fi |
| 24696 | |
| 24697 | |
| 24698 | fi |
| 24699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5 |
| 24700 | $as_echo "$ac_cv_func_getgroups_works" >&6; } |
| 24701 | else |
| 24702 | ac_cv_func_getgroups_works=no |
| 24703 | fi |
| 24704 | case "$ac_cv_func_getgroups_works" in |
| 24705 | *yes) |
| 24706 | |
| 24707 | $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h |
| 24708 | |
| 24709 | ;; |
| 24710 | esac |
| 24711 | LIBS=$ac_save_LIBS |
| 24712 | |
| 24713 | if test $ac_cv_func_getgroups != yes; then |
| 24714 | HAVE_GETGROUPS=0 |
| 24715 | else |
| 24716 | if test "$ac_cv_type_getgroups" != gid_t \ |
| 24717 | || { case "$ac_cv_func_getgroups_works" in |
| 24718 | *yes) false;; |
| 24719 | *) true;; |
| 24720 | esac |
| 24721 | }; then |
| 24722 | REPLACE_GETGROUPS=1 |
| 24723 | |
| 24724 | $as_echo "#define GETGROUPS_ZERO_BUG 1" >>confdefs.h |
| 24725 | |
| 24726 | else |
| 24727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getgroups handles negative values" >&5 |
| 24728 | $as_echo_n "checking whether getgroups handles negative values... " >&6; } |
| 24729 | if test "${gl_cv_func_getgroups_works+set}" = set; then : |
| 24730 | $as_echo_n "(cached) " >&6 |
| 24731 | else |
| 24732 | if test "$cross_compiling" = yes; then : |
| 24733 | case "$host_os" in |
| 24734 | # Guess yes on glibc systems. |
| 24735 | *-gnu*) gl_cv_func_getgroups_works="guessing yes" ;; |
| 24736 | # If we don't know, assume the worst. |
| 24737 | *) gl_cv_func_getgroups_works="guessing no" ;; |
| 24738 | esac |
| 24739 | |
| 24740 | else |
| 24741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24742 | /* end confdefs.h. */ |
| 24743 | $ac_includes_default |
| 24744 | int |
| 24745 | main () |
| 24746 | { |
| 24747 | int size = getgroups (0, 0); |
| 24748 | gid_t *list = malloc (size * sizeof *list); |
| 24749 | return getgroups (-1, list) != -1; |
| 24750 | ; |
| 24751 | return 0; |
| 24752 | } |
| 24753 | _ACEOF |
| 24754 | if ac_fn_c_try_run "$LINENO"; then : |
| 24755 | gl_cv_func_getgroups_works=yes |
| 24756 | else |
| 24757 | gl_cv_func_getgroups_works=no |
| 24758 | fi |
| 24759 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24760 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24761 | fi |
| 24762 | |
| 24763 | fi |
| 24764 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getgroups_works" >&5 |
| 24765 | $as_echo "$gl_cv_func_getgroups_works" >&6; } |
| 24766 | case "$gl_cv_func_getgroups_works" in |
| 24767 | *yes) ;; |
| 24768 | *) REPLACE_GETGROUPS=1 ;; |
| 24769 | esac |
| 24770 | fi |
| 24771 | fi |
| 24772 | test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS" |
| 24773 | |
| 24774 | if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then |
| 24775 | |
| 24776 | |
| 24777 | |
| 24778 | |
| 24779 | |
| 24780 | |
| 24781 | |
| 24782 | |
| 24783 | gl_LIBOBJS="$gl_LIBOBJS getgroups.$ac_objext" |
| 24784 | |
| 24785 | fi |
| 24786 | |
| 24787 | |
| 24788 | |
| 24789 | |
| 24790 | |
| 24791 | GNULIB_GETGROUPS=1 |
| 24792 | |
| 24793 | |
| 24794 | |
| 24795 | |
| 24796 | |
| 24797 | gl_gnulib_enabled_getgroups=true |
| 24798 | fi |
| 24799 | } |
| 24800 | func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 () |
| 24801 | { |
| 24802 | if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then |
| 24803 | |
| 24804 | |
| 24805 | gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true |
| 24806 | fi |
| 24807 | } |
| 24808 | func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 () |
| 24809 | { |
| 24810 | if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then |
| 24811 | |
| 24812 | |
| 24813 | |
| 24814 | |
| 24815 | |
| 24816 | ac_fn_c_check_func "$LINENO" "group_member" "ac_cv_func_group_member" |
| 24817 | if test "x$ac_cv_func_group_member" = x""yes; then : |
| 24818 | |
| 24819 | else |
| 24820 | |
| 24821 | HAVE_GROUP_MEMBER=0 |
| 24822 | |
| 24823 | fi |
| 24824 | |
| 24825 | |
| 24826 | if test $HAVE_GROUP_MEMBER = 0; then |
| 24827 | |
| 24828 | |
| 24829 | |
| 24830 | |
| 24831 | |
| 24832 | |
| 24833 | |
| 24834 | |
| 24835 | gl_LIBOBJS="$gl_LIBOBJS group-member.$ac_objext" |
| 24836 | |
| 24837 | |
| 24838 | |
| 24839 | |
| 24840 | fi |
| 24841 | |
| 24842 | |
| 24843 | |
| 24844 | |
| 24845 | |
| 24846 | GNULIB_GROUP_MEMBER=1 |
| 24847 | |
| 24848 | |
| 24849 | |
| 24850 | |
| 24851 | |
| 24852 | gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true |
| 24853 | if test $HAVE_GROUP_MEMBER = 0; then |
| 24854 | func_gl_gnulib_m4code_getgroups |
| 24855 | fi |
| 24856 | if test $HAVE_GROUP_MEMBER = 0; then |
| 24857 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec |
| 24858 | fi |
| 24859 | fi |
| 24860 | } |
| 24861 | func_gl_gnulib_m4code_pathmax () |
| 24862 | { |
| 24863 | if ! $gl_gnulib_enabled_pathmax; then |
| 24864 | |
| 24865 | |
| 24866 | |
| 24867 | gl_gnulib_enabled_pathmax=true |
| 24868 | fi |
| 24869 | } |
| 24870 | func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c () |
| 24871 | { |
| 24872 | if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then |
| 24873 | gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true |
| 24874 | fi |
| 24875 | } |
| 24876 | func_gl_gnulib_m4code_stat () |
| 24877 | { |
| 24878 | if ! $gl_gnulib_enabled_stat; then |
| 24879 | |
| 24880 | |
| 24881 | |
| 24882 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5 |
| 24883 | $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; } |
| 24884 | if test "${gl_cv_func_stat_dir_slash+set}" = set; then : |
| 24885 | $as_echo_n "(cached) " >&6 |
| 24886 | else |
| 24887 | if test "$cross_compiling" = yes; then : |
| 24888 | case $host_os in |
| 24889 | mingw*) gl_cv_func_stat_dir_slash="guessing no";; |
| 24890 | *) gl_cv_func_stat_dir_slash="guessing yes";; |
| 24891 | esac |
| 24892 | else |
| 24893 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24894 | /* end confdefs.h. */ |
| 24895 | #include <sys/stat.h> |
| 24896 | |
| 24897 | int |
| 24898 | main () |
| 24899 | { |
| 24900 | struct stat st; return stat (".", &st) != stat ("./", &st); |
| 24901 | ; |
| 24902 | return 0; |
| 24903 | } |
| 24904 | _ACEOF |
| 24905 | if ac_fn_c_try_run "$LINENO"; then : |
| 24906 | gl_cv_func_stat_dir_slash=yes |
| 24907 | else |
| 24908 | gl_cv_func_stat_dir_slash=no |
| 24909 | fi |
| 24910 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24911 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24912 | fi |
| 24913 | |
| 24914 | fi |
| 24915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5 |
| 24916 | $as_echo "$gl_cv_func_stat_dir_slash" >&6; } |
| 24917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5 |
| 24918 | $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; } |
| 24919 | if test "${gl_cv_func_stat_file_slash+set}" = set; then : |
| 24920 | $as_echo_n "(cached) " >&6 |
| 24921 | else |
| 24922 | touch conftest.tmp |
| 24923 | # Assume that if we have lstat, we can also check symlinks. |
| 24924 | if test $ac_cv_func_lstat = yes; then |
| 24925 | ln -s conftest.tmp conftest.lnk |
| 24926 | fi |
| 24927 | if test "$cross_compiling" = yes; then : |
| 24928 | case "$host_os" in |
| 24929 | # Guess yes on glibc systems. |
| 24930 | *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;; |
| 24931 | # If we don't know, assume the worst. |
| 24932 | *) gl_cv_func_stat_file_slash="guessing no" ;; |
| 24933 | esac |
| 24934 | |
| 24935 | else |
| 24936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 24937 | /* end confdefs.h. */ |
| 24938 | #include <sys/stat.h> |
| 24939 | |
| 24940 | int |
| 24941 | main () |
| 24942 | { |
| 24943 | int result = 0; |
| 24944 | struct stat st; |
| 24945 | if (!stat ("conftest.tmp/", &st)) |
| 24946 | result |= 1; |
| 24947 | #if HAVE_LSTAT |
| 24948 | if (!stat ("conftest.lnk/", &st)) |
| 24949 | result |= 2; |
| 24950 | #endif |
| 24951 | return result; |
| 24952 | |
| 24953 | ; |
| 24954 | return 0; |
| 24955 | } |
| 24956 | _ACEOF |
| 24957 | if ac_fn_c_try_run "$LINENO"; then : |
| 24958 | gl_cv_func_stat_file_slash=yes |
| 24959 | else |
| 24960 | gl_cv_func_stat_file_slash=no |
| 24961 | fi |
| 24962 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 24963 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 24964 | fi |
| 24965 | |
| 24966 | rm -f conftest.tmp conftest.lnk |
| 24967 | fi |
| 24968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5 |
| 24969 | $as_echo "$gl_cv_func_stat_file_slash" >&6; } |
| 24970 | case $gl_cv_func_stat_dir_slash in |
| 24971 | *no) REPLACE_STAT=1 |
| 24972 | |
| 24973 | $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h |
| 24974 | ;; |
| 24975 | esac |
| 24976 | case $gl_cv_func_stat_file_slash in |
| 24977 | *no) REPLACE_STAT=1 |
| 24978 | |
| 24979 | $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h |
| 24980 | ;; |
| 24981 | esac |
| 24982 | |
| 24983 | if test $REPLACE_STAT = 1; then |
| 24984 | |
| 24985 | |
| 24986 | |
| 24987 | |
| 24988 | |
| 24989 | |
| 24990 | |
| 24991 | |
| 24992 | gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext" |
| 24993 | |
| 24994 | : |
| 24995 | fi |
| 24996 | |
| 24997 | |
| 24998 | |
| 24999 | |
| 25000 | |
| 25001 | GNULIB_STAT=1 |
| 25002 | |
| 25003 | |
| 25004 | |
| 25005 | |
| 25006 | |
| 25007 | gl_gnulib_enabled_stat=true |
| 25008 | if test $REPLACE_STAT = 1; then |
| 25009 | func_gl_gnulib_m4code_dosname |
| 25010 | fi |
| 25011 | if test $REPLACE_STAT = 1; then |
| 25012 | func_gl_gnulib_m4code_pathmax |
| 25013 | fi |
| 25014 | if test $REPLACE_STAT = 1; then |
| 25015 | func_gl_gnulib_m4code_verify |
| 25016 | fi |
| 25017 | fi |
| 25018 | } |
| 25019 | func_gl_gnulib_m4code_strtoll () |
| 25020 | { |
| 25021 | if ! $gl_gnulib_enabled_strtoll; then |
| 25022 | |
| 25023 | |
| 25024 | |
| 25025 | if test "$ac_cv_type_long_long_int" = yes; then |
| 25026 | for ac_func in strtoll |
| 25027 | do : |
| 25028 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" |
| 25029 | if test "x$ac_cv_func_strtoll" = x""yes; then : |
| 25030 | cat >>confdefs.h <<_ACEOF |
| 25031 | #define HAVE_STRTOLL 1 |
| 25032 | _ACEOF |
| 25033 | |
| 25034 | fi |
| 25035 | done |
| 25036 | |
| 25037 | if test $ac_cv_func_strtoll = no; then |
| 25038 | HAVE_STRTOLL=0 |
| 25039 | fi |
| 25040 | fi |
| 25041 | |
| 25042 | if test $HAVE_STRTOLL = 0; then |
| 25043 | |
| 25044 | |
| 25045 | |
| 25046 | |
| 25047 | |
| 25048 | |
| 25049 | |
| 25050 | |
| 25051 | gl_LIBOBJS="$gl_LIBOBJS strtoll.$ac_objext" |
| 25052 | |
| 25053 | |
| 25054 | : |
| 25055 | |
| 25056 | fi |
| 25057 | |
| 25058 | |
| 25059 | |
| 25060 | |
| 25061 | |
| 25062 | GNULIB_STRTOLL=1 |
| 25063 | |
| 25064 | |
| 25065 | |
| 25066 | |
| 25067 | |
| 25068 | gl_gnulib_enabled_strtoll=true |
| 25069 | fi |
| 25070 | } |
| 25071 | func_gl_gnulib_m4code_strtoull () |
| 25072 | { |
| 25073 | if ! $gl_gnulib_enabled_strtoull; then |
| 25074 | |
| 25075 | |
| 25076 | |
| 25077 | if test "$ac_cv_type_unsigned_long_long_int" = yes; then |
| 25078 | for ac_func in strtoull |
| 25079 | do : |
| 25080 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" |
| 25081 | if test "x$ac_cv_func_strtoull" = x""yes; then : |
| 25082 | cat >>confdefs.h <<_ACEOF |
| 25083 | #define HAVE_STRTOULL 1 |
| 25084 | _ACEOF |
| 25085 | |
| 25086 | fi |
| 25087 | done |
| 25088 | |
| 25089 | if test $ac_cv_func_strtoull = no; then |
| 25090 | HAVE_STRTOULL=0 |
| 25091 | fi |
| 25092 | fi |
| 25093 | |
| 25094 | if test $HAVE_STRTOULL = 0; then |
| 25095 | |
| 25096 | |
| 25097 | |
| 25098 | |
| 25099 | |
| 25100 | |
| 25101 | |
| 25102 | |
| 25103 | gl_LIBOBJS="$gl_LIBOBJS strtoull.$ac_objext" |
| 25104 | |
| 25105 | |
| 25106 | : |
| 25107 | |
| 25108 | fi |
| 25109 | |
| 25110 | |
| 25111 | |
| 25112 | |
| 25113 | |
| 25114 | GNULIB_STRTOULL=1 |
| 25115 | |
| 25116 | |
| 25117 | |
| 25118 | |
| 25119 | |
| 25120 | gl_gnulib_enabled_strtoull=true |
| 25121 | fi |
| 25122 | } |
| 25123 | func_gl_gnulib_m4code_verify () |
| 25124 | { |
| 25125 | if ! $gl_gnulib_enabled_verify; then |
| 25126 | gl_gnulib_enabled_verify=true |
| 25127 | fi |
| 25128 | } |
| 25129 | func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec () |
| 25130 | { |
| 25131 | if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then |
| 25132 | gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true |
| 25133 | fi |
| 25134 | } |
| 25135 | if test $HAVE_FACCESSAT = 0; then |
| 25136 | func_gl_gnulib_m4code_dosname |
| 25137 | fi |
| 25138 | if test $HAVE_FACCESSAT = 0; then |
| 25139 | func_gl_gnulib_m4code_euidaccess |
| 25140 | fi |
| 25141 | if test $REPLACE_GETOPT = 1; then |
| 25142 | func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 |
| 25143 | fi |
| 25144 | if test $REPLACE_LSTAT = 1; then |
| 25145 | func_gl_gnulib_m4code_dosname |
| 25146 | fi |
| 25147 | if test $REPLACE_LSTAT = 1; then |
| 25148 | func_gl_gnulib_m4code_stat |
| 25149 | fi |
| 25150 | if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then |
| 25151 | func_gl_gnulib_m4code_stat |
| 25152 | fi |
| 25153 | if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then |
| 25154 | func_gl_gnulib_m4code_strtoll |
| 25155 | fi |
| 25156 | if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then |
| 25157 | func_gl_gnulib_m4code_verify |
| 25158 | fi |
| 25159 | if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then |
| 25160 | func_gl_gnulib_m4code_strtoull |
| 25161 | fi |
| 25162 | if test $ac_cv_func_strtoumax = no; then |
| 25163 | func_gl_gnulib_m4code_verify |
| 25164 | fi |
| 25165 | |
| 25166 | if $gl_gnulib_enabled_dosname; then |
| 25167 | gl_GNULIB_ENABLED_dosname_TRUE= |
| 25168 | gl_GNULIB_ENABLED_dosname_FALSE='#' |
| 25169 | else |
| 25170 | gl_GNULIB_ENABLED_dosname_TRUE='#' |
| 25171 | gl_GNULIB_ENABLED_dosname_FALSE= |
| 25172 | fi |
| 25173 | |
| 25174 | if $gl_gnulib_enabled_euidaccess; then |
| 25175 | gl_GNULIB_ENABLED_euidaccess_TRUE= |
| 25176 | gl_GNULIB_ENABLED_euidaccess_FALSE='#' |
| 25177 | else |
| 25178 | gl_GNULIB_ENABLED_euidaccess_TRUE='#' |
| 25179 | gl_GNULIB_ENABLED_euidaccess_FALSE= |
| 25180 | fi |
| 25181 | |
| 25182 | if $gl_gnulib_enabled_getgroups; then |
| 25183 | gl_GNULIB_ENABLED_getgroups_TRUE= |
| 25184 | gl_GNULIB_ENABLED_getgroups_FALSE='#' |
| 25185 | else |
| 25186 | gl_GNULIB_ENABLED_getgroups_TRUE='#' |
| 25187 | gl_GNULIB_ENABLED_getgroups_FALSE= |
| 25188 | fi |
| 25189 | |
| 25190 | if $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then |
| 25191 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE= |
| 25192 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE='#' |
| 25193 | else |
| 25194 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE='#' |
| 25195 | gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE= |
| 25196 | fi |
| 25197 | |
| 25198 | if $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then |
| 25199 | gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE= |
| 25200 | gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE='#' |
| 25201 | else |
| 25202 | gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE='#' |
| 25203 | gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE= |
| 25204 | fi |
| 25205 | |
| 25206 | if $gl_gnulib_enabled_pathmax; then |
| 25207 | gl_GNULIB_ENABLED_pathmax_TRUE= |
| 25208 | gl_GNULIB_ENABLED_pathmax_FALSE='#' |
| 25209 | else |
| 25210 | gl_GNULIB_ENABLED_pathmax_TRUE='#' |
| 25211 | gl_GNULIB_ENABLED_pathmax_FALSE= |
| 25212 | fi |
| 25213 | |
| 25214 | if $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then |
| 25215 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE= |
| 25216 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE='#' |
| 25217 | else |
| 25218 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE='#' |
| 25219 | gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE= |
| 25220 | fi |
| 25221 | |
| 25222 | if $gl_gnulib_enabled_stat; then |
| 25223 | gl_GNULIB_ENABLED_stat_TRUE= |
| 25224 | gl_GNULIB_ENABLED_stat_FALSE='#' |
| 25225 | else |
| 25226 | gl_GNULIB_ENABLED_stat_TRUE='#' |
| 25227 | gl_GNULIB_ENABLED_stat_FALSE= |
| 25228 | fi |
| 25229 | |
| 25230 | if $gl_gnulib_enabled_strtoll; then |
| 25231 | gl_GNULIB_ENABLED_strtoll_TRUE= |
| 25232 | gl_GNULIB_ENABLED_strtoll_FALSE='#' |
| 25233 | else |
| 25234 | gl_GNULIB_ENABLED_strtoll_TRUE='#' |
| 25235 | gl_GNULIB_ENABLED_strtoll_FALSE= |
| 25236 | fi |
| 25237 | |
| 25238 | if $gl_gnulib_enabled_strtoull; then |
| 25239 | gl_GNULIB_ENABLED_strtoull_TRUE= |
| 25240 | gl_GNULIB_ENABLED_strtoull_FALSE='#' |
| 25241 | else |
| 25242 | gl_GNULIB_ENABLED_strtoull_TRUE='#' |
| 25243 | gl_GNULIB_ENABLED_strtoull_FALSE= |
| 25244 | fi |
| 25245 | |
| 25246 | if $gl_gnulib_enabled_verify; then |
| 25247 | gl_GNULIB_ENABLED_verify_TRUE= |
| 25248 | gl_GNULIB_ENABLED_verify_FALSE='#' |
| 25249 | else |
| 25250 | gl_GNULIB_ENABLED_verify_TRUE='#' |
| 25251 | gl_GNULIB_ENABLED_verify_FALSE= |
| 25252 | fi |
| 25253 | |
| 25254 | if $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then |
| 25255 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE= |
| 25256 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE='#' |
| 25257 | else |
| 25258 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE='#' |
| 25259 | gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE= |
| 25260 | fi |
| 25261 | |
| 25262 | # End of code from modules |
| 25263 | |
| 25264 | |
| 25265 | |
| 25266 | |
| 25267 | |
| 25268 | |
| 25269 | |
| 25270 | |
| 25271 | |
| 25272 | gltests_libdeps= |
| 25273 | gltests_ltlibdeps= |
| 25274 | |
| 25275 | |
| 25276 | |
| 25277 | |
| 25278 | |
| 25279 | |
| 25280 | |
| 25281 | |
| 25282 | |
| 25283 | gl_source_base='tests' |
| 25284 | gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS |
| 25285 | |
| 25286 | gl_module_indicator_condition=$gltests_WITNESS |
| 25287 | |
| 25288 | |
| 25289 | |
| 25290 | |
| 25291 | |
| 25292 | |
| 25293 | |
| 25294 | |
| 25295 | |
| 25296 | |
| 25297 | LIBGNU_LIBDEPS="$gl_libdeps" |
| 25298 | |
| 25299 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" |
| 25300 | |
| 25301 | |
| 25302 | CFLAGS=$SAVE_CFLAGS |
| 25303 | LIBS=$SAVE_LIBS |
| 25304 | |
| 25305 | case "$opsys" in |
| 25306 | aix4-2) LD_SWITCH_SYSTEM_TEMACS="-Wl,-bnodelcsect" ;; |
| 25307 | |
| 25308 | darwin) |
| 25309 | ## The -headerpad option tells ld (see man page) to leave room at the |
| 25310 | ## end of the header for adding load commands. Needed for dumping. |
| 25311 | ## 0x690 is the total size of 30 segment load commands (at 56 |
| 25312 | ## each); under Cocoa 31 commands are required. |
| 25313 | if test "$HAVE_NS" = "yes"; then |
| 25314 | libs_nsgui="-framework AppKit" |
| 25315 | headerpad_extra=6C8 |
| 25316 | else |
| 25317 | libs_nsgui= |
| 25318 | headerpad_extra=690 |
| 25319 | fi |
| 25320 | LD_SWITCH_SYSTEM_TEMACS="-fno-pie -prebind $libs_nsgui -Xlinker -headerpad -Xlinker $headerpad_extra" |
| 25321 | |
| 25322 | ## This is here because src/Makefile.in did some extra fiddling around |
| 25323 | ## with LD_SWITCH_SYSTEM. The cpp logic was: |
| 25324 | ## #ifndef LD_SWITCH_SYSTEM |
| 25325 | ## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF))) |
| 25326 | ## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to: |
| 25327 | ## not using gcc, darwin. |
| 25328 | ## Because this was done in src/Makefile.in, the resulting part of |
| 25329 | ## LD_SWITCH_SYSTEM was not used in configure (ie, in ac_link). |
| 25330 | ## It therefore seems cleaner to put this in LD_SWITCH_SYSTEM_TEMACS, |
| 25331 | ## rather than LD_SWITCH_SYSTEM. |
| 25332 | test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \ |
| 25333 | LD_SWITCH_SYSTEM_TEMACS="-X $LD_SWITCH_SYSTEM_TEMACS" |
| 25334 | ;; |
| 25335 | |
| 25336 | ## LD_SWITCH_X_SITE_RPATH is a -rpath option saying where to |
| 25337 | ## find X at run-time. |
| 25338 | ## When handled by cpp, this was in LD_SWITCH_SYSTEM. However, at the |
| 25339 | ## point where configure sourced the s/*.h file, LD_SWITCH_X_SITE_RPATH |
| 25340 | ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM |
| 25341 | ## had different values in configure (in ac_link) and src/Makefile.in. |
| 25342 | ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS. |
| 25343 | gnu*) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_RPATH)" ;; |
| 25344 | |
| 25345 | *) LD_SWITCH_SYSTEM_TEMACS= ;; |
| 25346 | esac |
| 25347 | |
| 25348 | if test "$NS_IMPL_GNUSTEP" = "yes"; then |
| 25349 | LD_SWITCH_SYSTEM_TEMACS="${LD_SWITCH_SYSTEM_TEMACS} -L${GNUSTEP_SYSTEM_LIBRARIES} ${GNUSTEP_LOCAL_LIBRARIES} -lgnustep-gui -lgnustep-base -lobjc -lpthread" |
| 25350 | fi |
| 25351 | |
| 25352 | |
| 25353 | |
| 25354 | |
| 25355 | LD_FIRSTFLAG= |
| 25356 | ORDINARY_LINK= |
| 25357 | case "$opsys" in |
| 25358 | ## gnu: GNU needs its own crt0. |
| 25359 | aix4-2|cygwin|darwin|gnu|hpux*|irix6-5|sol2*|unixware) ORDINARY_LINK=yes ;; |
| 25360 | |
| 25361 | ## On post 1.3 releases of NetBSD, gcc -nostdlib also clears the |
| 25362 | ## library search parth, i.e. it won't search /usr/lib for libc and |
| 25363 | ## friends. Using -nostartfiles instead avoids this problem, and |
| 25364 | ## will also work on earlier NetBSD releases. |
| 25365 | netbsd|openbsd) LD_FIRSTFLAG="-nostartfiles" ;; |
| 25366 | |
| 25367 | ## powerpc*: NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp> says |
| 25368 | ## MkLinux/LinuxPPC needs this. |
| 25369 | ## s390x-* only supports opsys = gnu-linux so it can be added here. |
| 25370 | gnu-*) |
| 25371 | case "$canonical" in |
| 25372 | powerpc*|s390x-*) LD_FIRSTFLAG="-nostdlib" ;; |
| 25373 | esac |
| 25374 | ;; |
| 25375 | esac |
| 25376 | |
| 25377 | |
| 25378 | if test "x$ORDINARY_LINK" = "xyes"; then |
| 25379 | |
| 25380 | LD_FIRSTFLAG="" |
| 25381 | |
| 25382 | $as_echo "#define ORDINARY_LINK 1" >>confdefs.h |
| 25383 | |
| 25384 | |
| 25385 | ## The system files defining neither ORDINARY_LINK nor LD_FIRSTFLAG are: |
| 25386 | ## freebsd, gnu-* not on powerpc*|s390x*. |
| 25387 | elif test "x$GCC" = "xyes" && test "x$LD_FIRSTFLAG" = "x"; then |
| 25388 | |
| 25389 | ## Versions of GCC >= 2.0 put their library, libgcc.a, in obscure |
| 25390 | ## places that are difficult to figure out at make time. Fortunately, |
| 25391 | ## these same versions allow you to pass arbitrary flags on to the |
| 25392 | ## linker, so there is no reason not to use it as a linker. |
| 25393 | ## |
| 25394 | ## Well, it is not quite perfect. The "-nostdlib" keeps GCC from |
| 25395 | ## searching for libraries in its internal directories, so we have to |
| 25396 | ## ask GCC explicitly where to find libgcc.a (LIB_GCC below). |
| 25397 | LD_FIRSTFLAG="-nostdlib" |
| 25398 | fi |
| 25399 | |
| 25400 | ## FIXME? What setting of EDIT_LDFLAGS should this have? |
| 25401 | test "$NS_IMPL_GNUSTEP" = "yes" && LD_FIRSTFLAG="-rdynamic" |
| 25402 | |
| 25403 | |
| 25404 | |
| 25405 | |
| 25406 | ## FIXME? The logic here is not precisely the same as that above. |
| 25407 | ## There is no check here for a pre-defined LD_FIRSTFLAG. |
| 25408 | ## Should we only be setting LIB_GCC if LD ~ -nostdlib? |
| 25409 | LIB_GCC= |
| 25410 | if test "x$GCC" = "xyes" && test "x$ORDINARY_LINK" != "xyes"; then |
| 25411 | |
| 25412 | case "$opsys" in |
| 25413 | freebsd|netbsd|openbsd) LIB_GCC= ;; |
| 25414 | |
| 25415 | gnu-*) |
| 25416 | ## armin76@gentoo.org reported that the lgcc_s flag is necessary to |
| 25417 | ## build on ARM EABI under GNU/Linux. (Bug#5518) |
| 25418 | case $host_cpu in |
| 25419 | arm*) |
| 25420 | LIB_GCC="-lgcc_s" |
| 25421 | ;; |
| 25422 | *) |
| 25423 | ## FIXME? s/gnu-linux.h used to define LIB_GCC as below, then |
| 25424 | ## immediately undefine it again and redefine it to empty. |
| 25425 | ## Was the C_SWITCH_X_SITE part really necessary? |
| 25426 | ## LIB_GCC=`$CC $C_SWITCH_X_SITE -print-libgcc-file-name` |
| 25427 | LIB_GCC= |
| 25428 | ;; |
| 25429 | esac |
| 25430 | ;; |
| 25431 | |
| 25432 | ## Ask GCC where to find libgcc.a. |
| 25433 | *) LIB_GCC=`$CC -print-libgcc-file-name 2> /dev/null` ;; |
| 25434 | esac |
| 25435 | fi |
| 25436 | |
| 25437 | ## Common for all window systems |
| 25438 | if test "$window_system" != "none"; then |
| 25439 | |
| 25440 | $as_echo "#define HAVE_WINDOW_SYSTEM 1" >>confdefs.h |
| 25441 | |
| 25442 | WINDOW_SYSTEM_OBJ="fontset.o fringe.o image.o" |
| 25443 | fi |
| 25444 | |
| 25445 | |
| 25446 | |
| 25447 | |
| 25448 | |
| 25449 | #### Report on what we decided to do. |
| 25450 | #### Report GTK as a toolkit, even if it doesn't use Xt. |
| 25451 | #### It makes printing result more understandable as using GTK sets |
| 25452 | #### toolkit_scroll_bars to yes by default. |
| 25453 | if test "${HAVE_GTK}" = "yes"; then |
| 25454 | USE_X_TOOLKIT="$USE_GTK_TOOLKIT" |
| 25455 | fi |
| 25456 | |
| 25457 | echo " |
| 25458 | Configured for \`${canonical}'. |
| 25459 | |
| 25460 | Where should the build process find the source code? ${srcdir} |
| 25461 | What compiler should emacs be built with? ${CC} ${CFLAGS} |
| 25462 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} |
| 25463 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
| 25464 | Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers |
| 25465 | What window system should Emacs use? ${window_system} |
| 25466 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
| 25467 | |
| 25468 | if test -n "${x_includes}"; then |
| 25469 | echo " Where do we find X Windows header files? ${x_includes}" |
| 25470 | else |
| 25471 | echo " Where do we find X Windows header files? Standard dirs" |
| 25472 | fi |
| 25473 | if test -n "${x_libraries}"; then |
| 25474 | echo " Where do we find X Windows libraries? ${x_libraries}" |
| 25475 | else |
| 25476 | echo " Where do we find X Windows libraries? Standard dirs" |
| 25477 | fi |
| 25478 | |
| 25479 | echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}" |
| 25480 | echo " Does Emacs use -lXpm? ${HAVE_XPM}" |
| 25481 | echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" |
| 25482 | echo " Does Emacs use -ltiff? ${HAVE_TIFF}" |
| 25483 | echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF" |
| 25484 | echo " Does Emacs use -lpng? ${HAVE_PNG}" |
| 25485 | echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" |
| 25486 | echo " Does Emacs use imagemagick? ${HAVE_IMAGEMAGICK}" |
| 25487 | |
| 25488 | echo " Does Emacs use -lgpm? ${HAVE_GPM}" |
| 25489 | echo " Does Emacs use -ldbus? ${HAVE_DBUS}" |
| 25490 | echo " Does Emacs use -lgconf? ${HAVE_GCONF}" |
| 25491 | echo " Does Emacs use GSettings? ${HAVE_GSETTINGS}" |
| 25492 | echo " Does Emacs use -lselinux? ${HAVE_LIBSELINUX}" |
| 25493 | echo " Does Emacs use -lgnutls? ${HAVE_GNUTLS}" |
| 25494 | echo " Does Emacs use -lxml2? ${HAVE_LIBXML2}" |
| 25495 | |
| 25496 | echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}" |
| 25497 | echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}" |
| 25498 | echo " Does Emacs use -lotf? ${HAVE_LIBOTF}" |
| 25499 | echo " Does Emacs use -lxft? ${HAVE_XFT}" |
| 25500 | |
| 25501 | echo " Does Emacs use toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}" |
| 25502 | echo |
| 25503 | |
| 25504 | if test -n "${EMACSDATA}"; then |
| 25505 | echo " Environment variable EMACSDATA set to: $EMACSDATA" |
| 25506 | fi |
| 25507 | if test -n "${EMACSDOC}"; then |
| 25508 | echo " Environment variable EMACSDOC set to: $EMACSDOC" |
| 25509 | fi |
| 25510 | |
| 25511 | echo |
| 25512 | |
| 25513 | if test "$HAVE_NS" = "yes"; then |
| 25514 | echo |
| 25515 | echo "You must run \"${MAKE-make} install\" in order to test the built application. |
| 25516 | The installed application will go to nextstep/Emacs.app and can be |
| 25517 | run or moved from there." |
| 25518 | if test "$EN_NS_SELF_CONTAINED" = "yes"; then |
| 25519 | echo "The application will be fully self-contained." |
| 25520 | else |
| 25521 | echo "The lisp resources for the application will be installed under ${prefix}. |
| 25522 | You may need to run \"${MAKE-make} install\" with sudo. The application will fail |
| 25523 | to run if these resources are not installed." |
| 25524 | fi |
| 25525 | echo |
| 25526 | fi |
| 25527 | |
| 25528 | if test "${opsys}" = "cygwin"; then |
| 25529 | case `uname -r` in |
| 25530 | 1.5.*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building Emacs on Cygwin 1.5 is not supported." >&5 |
| 25531 | $as_echo "$as_me: WARNING: building Emacs on Cygwin 1.5 is not supported." >&2;} |
| 25532 | echo |
| 25533 | ;; |
| 25534 | esac |
| 25535 | fi |
| 25536 | |
| 25537 | # Remove any trailing slashes in these variables. |
| 25538 | test "${prefix}" != NONE && |
| 25539 | prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 25540 | test "${exec_prefix}" != NONE && |
| 25541 | exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'` |
| 25542 | |
| 25543 | if test "$HAVE_NS" = "yes"; then |
| 25544 | if test "$NS_IMPL_GNUSTEP" = yes; then |
| 25545 | ac_config_files="$ac_config_files nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" |
| 25546 | |
| 25547 | else |
| 25548 | ac_config_files="$ac_config_files nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" |
| 25549 | |
| 25550 | fi |
| 25551 | fi |
| 25552 | |
| 25553 | SUBDIR_MAKEFILES="lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile" |
| 25554 | |
| 25555 | ac_config_files="$ac_config_files Makefile lib/Makefile lib-src/Makefile oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile lwlib/Makefile lisp/Makefile leim/Makefile nextstep/Makefile" |
| 25556 | |
| 25557 | |
| 25558 | opt_makefile=test/automated/Makefile |
| 25559 | |
| 25560 | if test -f $srcdir/${opt_makefile}.in; then |
| 25561 | SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile" |
| 25562 | ac_config_files="$ac_config_files test/automated/Makefile" |
| 25563 | |
| 25564 | fi |
| 25565 | |
| 25566 | |
| 25567 | opt_makefile=admin/unidata/Makefile |
| 25568 | |
| 25569 | if test -f $srcdir/${opt_makefile}.in; then |
| 25570 | SUBDIR_MAKEFILES="$SUBDIR_MAKEFILES $opt_makefile" |
| 25571 | ac_config_files="$ac_config_files admin/unidata/Makefile" |
| 25572 | |
| 25573 | fi |
| 25574 | |
| 25575 | |
| 25576 | SUBDIR_MAKEFILES_IN=`echo " ${SUBDIR_MAKEFILES}" | sed -e 's| | $(srcdir)/|g' -e 's|Makefile|Makefile.in|g'` |
| 25577 | |
| 25578 | |
| 25579 | |
| 25580 | ac_config_commands="$ac_config_commands mkdirs" |
| 25581 | |
| 25582 | |
| 25583 | ac_config_commands="$ac_config_commands epaths" |
| 25584 | |
| 25585 | |
| 25586 | ac_config_commands="$ac_config_commands gdbinit" |
| 25587 | |
| 25588 | |
| 25589 | cat >confcache <<\_ACEOF |
| 25590 | # This file is a shell script that caches the results of configure |
| 25591 | # tests run on this system so they can be shared between configure |
| 25592 | # scripts and configure runs, see configure's option --config-cache. |
| 25593 | # It is not useful on other systems. If it contains results you don't |
| 25594 | # want to keep, you may remove or edit it. |
| 25595 | # |
| 25596 | # config.status only pays attention to the cache file if you give it |
| 25597 | # the --recheck option to rerun configure. |
| 25598 | # |
| 25599 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 25600 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 25601 | # following values. |
| 25602 | |
| 25603 | _ACEOF |
| 25604 | |
| 25605 | # The following way of writing the cache mishandles newlines in values, |
| 25606 | # but we know of no workaround that is simple, portable, and efficient. |
| 25607 | # So, we kill variables containing newlines. |
| 25608 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 25609 | # and sets the high bit in the cache file unless we assign to the vars. |
| 25610 | ( |
| 25611 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 25612 | eval ac_val=\$$ac_var |
| 25613 | case $ac_val in #( |
| 25614 | *${as_nl}*) |
| 25615 | case $ac_var in #( |
| 25616 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
| 25617 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
| 25618 | esac |
| 25619 | case $ac_var in #( |
| 25620 | _ | IFS | as_nl) ;; #( |
| 25621 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
| 25622 | *) { eval $ac_var=; unset $ac_var;} ;; |
| 25623 | esac ;; |
| 25624 | esac |
| 25625 | done |
| 25626 | |
| 25627 | (set) 2>&1 | |
| 25628 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 25629 | *${as_nl}ac_space=\ *) |
| 25630 | # `set' does not quote correctly, so add quotes: double-quote |
| 25631 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
| 25632 | sed -n \ |
| 25633 | "s/'/'\\\\''/g; |
| 25634 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 25635 | ;; #( |
| 25636 | *) |
| 25637 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
| 25638 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
| 25639 | ;; |
| 25640 | esac | |
| 25641 | sort |
| 25642 | ) | |
| 25643 | sed ' |
| 25644 | /^ac_cv_env_/b end |
| 25645 | t clear |
| 25646 | :clear |
| 25647 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 25648 | t end |
| 25649 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 25650 | :end' >>confcache |
| 25651 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 25652 | if test -w "$cache_file"; then |
| 25653 | test "x$cache_file" != "x/dev/null" && |
| 25654 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
| 25655 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
| 25656 | cat confcache >$cache_file |
| 25657 | else |
| 25658 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
| 25659 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
| 25660 | fi |
| 25661 | fi |
| 25662 | rm -f confcache |
| 25663 | |
| 25664 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 25665 | # Let make expand exec_prefix. |
| 25666 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 25667 | |
| 25668 | DEFS=-DHAVE_CONFIG_H |
| 25669 | |
| 25670 | ac_libobjs= |
| 25671 | ac_ltlibobjs= |
| 25672 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 25673 | # 1. Remove the extension, and $U if already installed. |
| 25674 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
| 25675 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
| 25676 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 25677 | # will be set to the directory where LIBOBJS objects are built. |
| 25678 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 25679 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
| 25680 | done |
| 25681 | LIBOBJS=$ac_libobjs |
| 25682 | |
| 25683 | LTLIBOBJS=$ac_ltlibobjs |
| 25684 | |
| 25685 | |
| 25686 | if test -n "$EXEEXT"; then |
| 25687 | am__EXEEXT_TRUE= |
| 25688 | am__EXEEXT_FALSE='#' |
| 25689 | else |
| 25690 | am__EXEEXT_TRUE='#' |
| 25691 | am__EXEEXT_FALSE= |
| 25692 | fi |
| 25693 | |
| 25694 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
| 25695 | as_fn_error "conditional \"AMDEP\" was never defined. |
| 25696 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25697 | fi |
| 25698 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
| 25699 | as_fn_error "conditional \"am__fastdepCC\" was never defined. |
| 25700 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25701 | fi |
| 25702 | if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then |
| 25703 | as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined. |
| 25704 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25705 | fi |
| 25706 | if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then |
| 25707 | as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined. |
| 25708 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25709 | fi |
| 25710 | |
| 25711 | if test -z "${GL_GENERATE_EXECINFO_H_TRUE}" && test -z "${GL_GENERATE_EXECINFO_H_FALSE}"; then |
| 25712 | as_fn_error "conditional \"GL_GENERATE_EXECINFO_H\" was never defined. |
| 25713 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25714 | fi |
| 25715 | if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then |
| 25716 | as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined. |
| 25717 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25718 | fi |
| 25719 | if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then |
| 25720 | as_fn_error "conditional \"GL_GENERATE_STDALIGN_H\" was never defined. |
| 25721 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25722 | fi |
| 25723 | if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then |
| 25724 | as_fn_error "conditional \"GL_GENERATE_STDARG_H\" was never defined. |
| 25725 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25726 | fi |
| 25727 | if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then |
| 25728 | as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined. |
| 25729 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25730 | fi |
| 25731 | if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then |
| 25732 | as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined. |
| 25733 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25734 | fi |
| 25735 | if test -z "${gl_GNULIB_ENABLED_dosname_TRUE}" && test -z "${gl_GNULIB_ENABLED_dosname_FALSE}"; then |
| 25736 | as_fn_error "conditional \"gl_GNULIB_ENABLED_dosname\" was never defined. |
| 25737 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25738 | fi |
| 25739 | if test -z "${gl_GNULIB_ENABLED_euidaccess_TRUE}" && test -z "${gl_GNULIB_ENABLED_euidaccess_FALSE}"; then |
| 25740 | as_fn_error "conditional \"gl_GNULIB_ENABLED_euidaccess\" was never defined. |
| 25741 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25742 | fi |
| 25743 | if test -z "${gl_GNULIB_ENABLED_getgroups_TRUE}" && test -z "${gl_GNULIB_ENABLED_getgroups_FALSE}"; then |
| 25744 | as_fn_error "conditional \"gl_GNULIB_ENABLED_getgroups\" was never defined. |
| 25745 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25746 | fi |
| 25747 | if test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_TRUE}" && test -z "${gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36_FALSE}"; then |
| 25748 | as_fn_error "conditional \"gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36\" was never defined. |
| 25749 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25750 | fi |
| 25751 | if test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_TRUE}" && test -z "${gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1_FALSE}"; then |
| 25752 | as_fn_error "conditional \"gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1\" was never defined. |
| 25753 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25754 | fi |
| 25755 | if test -z "${gl_GNULIB_ENABLED_pathmax_TRUE}" && test -z "${gl_GNULIB_ENABLED_pathmax_FALSE}"; then |
| 25756 | as_fn_error "conditional \"gl_GNULIB_ENABLED_pathmax\" was never defined. |
| 25757 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25758 | fi |
| 25759 | if test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_TRUE}" && test -z "${gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c_FALSE}"; then |
| 25760 | as_fn_error "conditional \"gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c\" was never defined. |
| 25761 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25762 | fi |
| 25763 | if test -z "${gl_GNULIB_ENABLED_stat_TRUE}" && test -z "${gl_GNULIB_ENABLED_stat_FALSE}"; then |
| 25764 | as_fn_error "conditional \"gl_GNULIB_ENABLED_stat\" was never defined. |
| 25765 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25766 | fi |
| 25767 | if test -z "${gl_GNULIB_ENABLED_strtoll_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoll_FALSE}"; then |
| 25768 | as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoll\" was never defined. |
| 25769 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25770 | fi |
| 25771 | if test -z "${gl_GNULIB_ENABLED_strtoull_TRUE}" && test -z "${gl_GNULIB_ENABLED_strtoull_FALSE}"; then |
| 25772 | as_fn_error "conditional \"gl_GNULIB_ENABLED_strtoull\" was never defined. |
| 25773 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25774 | fi |
| 25775 | if test -z "${gl_GNULIB_ENABLED_verify_TRUE}" && test -z "${gl_GNULIB_ENABLED_verify_FALSE}"; then |
| 25776 | as_fn_error "conditional \"gl_GNULIB_ENABLED_verify\" was never defined. |
| 25777 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25778 | fi |
| 25779 | if test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_TRUE}" && test -z "${gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec_FALSE}"; then |
| 25780 | as_fn_error "conditional \"gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec\" was never defined. |
| 25781 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
| 25782 | fi |
| 25783 | |
| 25784 | gl_libobjs= |
| 25785 | gl_ltlibobjs= |
| 25786 | if test -n "$gl_LIBOBJS"; then |
| 25787 | # Remove the extension. |
| 25788 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 25789 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 25790 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
| 25791 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" |
| 25792 | done |
| 25793 | fi |
| 25794 | gl_LIBOBJS=$gl_libobjs |
| 25795 | |
| 25796 | gl_LTLIBOBJS=$gl_ltlibobjs |
| 25797 | |
| 25798 | |
| 25799 | |
| 25800 | gltests_libobjs= |
| 25801 | gltests_ltlibobjs= |
| 25802 | if test -n "$gltests_LIBOBJS"; then |
| 25803 | # Remove the extension. |
| 25804 | sed_drop_objext='s/\.o$//;s/\.obj$//' |
| 25805 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
| 25806 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
| 25807 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" |
| 25808 | done |
| 25809 | fi |
| 25810 | gltests_LIBOBJS=$gltests_libobjs |
| 25811 | |
| 25812 | gltests_LTLIBOBJS=$gltests_ltlibobjs |
| 25813 | |
| 25814 | |
| 25815 | |
| 25816 | : ${CONFIG_STATUS=./config.status} |
| 25817 | ac_write_fail=0 |
| 25818 | ac_clean_files_save=$ac_clean_files |
| 25819 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 25820 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
| 25821 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 25822 | as_write_fail=0 |
| 25823 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
| 25824 | #! $SHELL |
| 25825 | # Generated by $as_me. |
| 25826 | # Run this file to recreate the current configuration. |
| 25827 | # Compiler output produced by configure, useful for debugging |
| 25828 | # configure, is in config.log if it exists. |
| 25829 | |
| 25830 | debug=false |
| 25831 | ac_cs_recheck=false |
| 25832 | ac_cs_silent=false |
| 25833 | |
| 25834 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 25835 | export SHELL |
| 25836 | _ASEOF |
| 25837 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 25838 | ## -------------------- ## |
| 25839 | ## M4sh Initialization. ## |
| 25840 | ## -------------------- ## |
| 25841 | |
| 25842 | # Be more Bourne compatible |
| 25843 | DUALCASE=1; export DUALCASE # for MKS sh |
| 25844 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
| 25845 | emulate sh |
| 25846 | NULLCMD=: |
| 25847 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
| 25848 | # is contrary to our usage. Disable this feature. |
| 25849 | alias -g '${1+"$@"}'='"$@"' |
| 25850 | setopt NO_GLOB_SUBST |
| 25851 | else |
| 25852 | case `(set -o) 2>/dev/null` in #( |
| 25853 | *posix*) : |
| 25854 | set -o posix ;; #( |
| 25855 | *) : |
| 25856 | ;; |
| 25857 | esac |
| 25858 | fi |
| 25859 | |
| 25860 | |
| 25861 | as_nl=' |
| 25862 | ' |
| 25863 | export as_nl |
| 25864 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 25865 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 25866 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 25867 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
| 25868 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 25869 | # but without wasting forks for bash or zsh. |
| 25870 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 25871 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 25872 | as_echo='print -r --' |
| 25873 | as_echo_n='print -rn --' |
| 25874 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 25875 | as_echo='printf %s\n' |
| 25876 | as_echo_n='printf %s' |
| 25877 | else |
| 25878 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 25879 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 25880 | as_echo_n='/usr/ucb/echo -n' |
| 25881 | else |
| 25882 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 25883 | as_echo_n_body='eval |
| 25884 | arg=$1; |
| 25885 | case $arg in #( |
| 25886 | *"$as_nl"*) |
| 25887 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 25888 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 25889 | esac; |
| 25890 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 25891 | ' |
| 25892 | export as_echo_n_body |
| 25893 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 25894 | fi |
| 25895 | export as_echo_body |
| 25896 | as_echo='sh -c $as_echo_body as_echo' |
| 25897 | fi |
| 25898 | |
| 25899 | # The user is always right. |
| 25900 | if test "${PATH_SEPARATOR+set}" != set; then |
| 25901 | PATH_SEPARATOR=: |
| 25902 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 25903 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 25904 | PATH_SEPARATOR=';' |
| 25905 | } |
| 25906 | fi |
| 25907 | |
| 25908 | |
| 25909 | # IFS |
| 25910 | # We need space, tab and new line, in precisely that order. Quoting is |
| 25911 | # there to prevent editors from complaining about space-tab. |
| 25912 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 25913 | # splitting by setting IFS to empty value.) |
| 25914 | IFS=" "" $as_nl" |
| 25915 | |
| 25916 | # Find who we are. Look in the path if we contain no directory separator. |
| 25917 | case $0 in #(( |
| 25918 | *[\\/]* ) as_myself=$0 ;; |
| 25919 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 25920 | for as_dir in $PATH |
| 25921 | do |
| 25922 | IFS=$as_save_IFS |
| 25923 | test -z "$as_dir" && as_dir=. |
| 25924 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 25925 | done |
| 25926 | IFS=$as_save_IFS |
| 25927 | |
| 25928 | ;; |
| 25929 | esac |
| 25930 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 25931 | # in which case we are not to be found in the path. |
| 25932 | if test "x$as_myself" = x; then |
| 25933 | as_myself=$0 |
| 25934 | fi |
| 25935 | if test ! -f "$as_myself"; then |
| 25936 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
| 25937 | exit 1 |
| 25938 | fi |
| 25939 | |
| 25940 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 25941 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 25942 | # suppresses any "Segmentation fault" message there. '((' could |
| 25943 | # trigger a bug in pdksh 5.2.14. |
| 25944 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 25945 | do eval test x\${$as_var+set} = xset \ |
| 25946 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
| 25947 | done |
| 25948 | PS1='$ ' |
| 25949 | PS2='> ' |
| 25950 | PS4='+ ' |
| 25951 | |
| 25952 | # NLS nuisances. |
| 25953 | LC_ALL=C |
| 25954 | export LC_ALL |
| 25955 | LANGUAGE=C |
| 25956 | export LANGUAGE |
| 25957 | |
| 25958 | # CDPATH. |
| 25959 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 25960 | |
| 25961 | |
| 25962 | # as_fn_error ERROR [LINENO LOG_FD] |
| 25963 | # --------------------------------- |
| 25964 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 25965 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 25966 | # script with status $?, using 1 if that was 0. |
| 25967 | as_fn_error () |
| 25968 | { |
| 25969 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 25970 | if test "$3"; then |
| 25971 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 25972 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 25973 | fi |
| 25974 | $as_echo "$as_me: error: $1" >&2 |
| 25975 | as_fn_exit $as_status |
| 25976 | } # as_fn_error |
| 25977 | |
| 25978 | |
| 25979 | # as_fn_set_status STATUS |
| 25980 | # ----------------------- |
| 25981 | # Set $? to STATUS, without forking. |
| 25982 | as_fn_set_status () |
| 25983 | { |
| 25984 | return $1 |
| 25985 | } # as_fn_set_status |
| 25986 | |
| 25987 | # as_fn_exit STATUS |
| 25988 | # ----------------- |
| 25989 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 25990 | as_fn_exit () |
| 25991 | { |
| 25992 | set +e |
| 25993 | as_fn_set_status $1 |
| 25994 | exit $1 |
| 25995 | } # as_fn_exit |
| 25996 | |
| 25997 | # as_fn_unset VAR |
| 25998 | # --------------- |
| 25999 | # Portably unset VAR. |
| 26000 | as_fn_unset () |
| 26001 | { |
| 26002 | { eval $1=; unset $1;} |
| 26003 | } |
| 26004 | as_unset=as_fn_unset |
| 26005 | # as_fn_append VAR VALUE |
| 26006 | # ---------------------- |
| 26007 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 26008 | # advantage of any shell optimizations that allow amortized linear growth over |
| 26009 | # repeated appends, instead of the typical quadratic growth present in naive |
| 26010 | # implementations. |
| 26011 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 26012 | eval 'as_fn_append () |
| 26013 | { |
| 26014 | eval $1+=\$2 |
| 26015 | }' |
| 26016 | else |
| 26017 | as_fn_append () |
| 26018 | { |
| 26019 | eval $1=\$$1\$2 |
| 26020 | } |
| 26021 | fi # as_fn_append |
| 26022 | |
| 26023 | # as_fn_arith ARG... |
| 26024 | # ------------------ |
| 26025 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 26026 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 26027 | # must be portable across $(()) and expr. |
| 26028 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 26029 | eval 'as_fn_arith () |
| 26030 | { |
| 26031 | as_val=$(( $* )) |
| 26032 | }' |
| 26033 | else |
| 26034 | as_fn_arith () |
| 26035 | { |
| 26036 | as_val=`expr "$@" || test $? -eq 1` |
| 26037 | } |
| 26038 | fi # as_fn_arith |
| 26039 | |
| 26040 | |
| 26041 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 26042 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 26043 | as_expr=expr |
| 26044 | else |
| 26045 | as_expr=false |
| 26046 | fi |
| 26047 | |
| 26048 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 26049 | as_basename=basename |
| 26050 | else |
| 26051 | as_basename=false |
| 26052 | fi |
| 26053 | |
| 26054 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 26055 | as_dirname=dirname |
| 26056 | else |
| 26057 | as_dirname=false |
| 26058 | fi |
| 26059 | |
| 26060 | as_me=`$as_basename -- "$0" || |
| 26061 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 26062 | X"$0" : 'X\(//\)$' \| \ |
| 26063 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
| 26064 | $as_echo X/"$0" | |
| 26065 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 26066 | s//\1/ |
| 26067 | q |
| 26068 | } |
| 26069 | /^X\/\(\/\/\)$/{ |
| 26070 | s//\1/ |
| 26071 | q |
| 26072 | } |
| 26073 | /^X\/\(\/\).*/{ |
| 26074 | s//\1/ |
| 26075 | q |
| 26076 | } |
| 26077 | s/.*/./; q'` |
| 26078 | |
| 26079 | # Avoid depending upon Character Ranges. |
| 26080 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 26081 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 26082 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 26083 | as_cr_digits='0123456789' |
| 26084 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 26085 | |
| 26086 | ECHO_C= ECHO_N= ECHO_T= |
| 26087 | case `echo -n x` in #((((( |
| 26088 | -n*) |
| 26089 | case `echo 'xy\c'` in |
| 26090 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
| 26091 | xy) ECHO_C='\c';; |
| 26092 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 26093 | ECHO_T=' ';; |
| 26094 | esac;; |
| 26095 | *) |
| 26096 | ECHO_N='-n';; |
| 26097 | esac |
| 26098 | |
| 26099 | rm -f conf$$ conf$$.exe conf$$.file |
| 26100 | if test -d conf$$.dir; then |
| 26101 | rm -f conf$$.dir/conf$$.file |
| 26102 | else |
| 26103 | rm -f conf$$.dir |
| 26104 | mkdir conf$$.dir 2>/dev/null |
| 26105 | fi |
| 26106 | if (echo >conf$$.file) 2>/dev/null; then |
| 26107 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 26108 | as_ln_s='ln -s' |
| 26109 | # ... but there are two gotchas: |
| 26110 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 26111 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 26112 | # In both cases, we have to default to `cp -p'. |
| 26113 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 26114 | as_ln_s='cp -p' |
| 26115 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 26116 | as_ln_s=ln |
| 26117 | else |
| 26118 | as_ln_s='cp -p' |
| 26119 | fi |
| 26120 | else |
| 26121 | as_ln_s='cp -p' |
| 26122 | fi |
| 26123 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 26124 | rmdir conf$$.dir 2>/dev/null |
| 26125 | |
| 26126 | |
| 26127 | # as_fn_mkdir_p |
| 26128 | # ------------- |
| 26129 | # Create "$as_dir" as a directory, including parents if necessary. |
| 26130 | as_fn_mkdir_p () |
| 26131 | { |
| 26132 | |
| 26133 | case $as_dir in #( |
| 26134 | -*) as_dir=./$as_dir;; |
| 26135 | esac |
| 26136 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 26137 | as_dirs= |
| 26138 | while :; do |
| 26139 | case $as_dir in #( |
| 26140 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 26141 | *) as_qdir=$as_dir;; |
| 26142 | esac |
| 26143 | as_dirs="'$as_qdir' $as_dirs" |
| 26144 | as_dir=`$as_dirname -- "$as_dir" || |
| 26145 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26146 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 26147 | X"$as_dir" : 'X\(//\)$' \| \ |
| 26148 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 26149 | $as_echo X"$as_dir" | |
| 26150 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26151 | s//\1/ |
| 26152 | q |
| 26153 | } |
| 26154 | /^X\(\/\/\)[^/].*/{ |
| 26155 | s//\1/ |
| 26156 | q |
| 26157 | } |
| 26158 | /^X\(\/\/\)$/{ |
| 26159 | s//\1/ |
| 26160 | q |
| 26161 | } |
| 26162 | /^X\(\/\).*/{ |
| 26163 | s//\1/ |
| 26164 | q |
| 26165 | } |
| 26166 | s/.*/./; q'` |
| 26167 | test -d "$as_dir" && break |
| 26168 | done |
| 26169 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 26170 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 26171 | |
| 26172 | |
| 26173 | } # as_fn_mkdir_p |
| 26174 | if mkdir -p . 2>/dev/null; then |
| 26175 | as_mkdir_p='mkdir -p "$as_dir"' |
| 26176 | else |
| 26177 | test -d ./-p && rmdir ./-p |
| 26178 | as_mkdir_p=false |
| 26179 | fi |
| 26180 | |
| 26181 | if test -x / >/dev/null 2>&1; then |
| 26182 | as_test_x='test -x' |
| 26183 | else |
| 26184 | if ls -dL / >/dev/null 2>&1; then |
| 26185 | as_ls_L_option=L |
| 26186 | else |
| 26187 | as_ls_L_option= |
| 26188 | fi |
| 26189 | as_test_x=' |
| 26190 | eval sh -c '\'' |
| 26191 | if test -d "$1"; then |
| 26192 | test -d "$1/."; |
| 26193 | else |
| 26194 | case $1 in #( |
| 26195 | -*)set "./$1";; |
| 26196 | esac; |
| 26197 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
| 26198 | ???[sx]*):;;*)false;;esac;fi |
| 26199 | '\'' sh |
| 26200 | ' |
| 26201 | fi |
| 26202 | as_executable_p=$as_test_x |
| 26203 | |
| 26204 | # Sed expression to map a string onto a valid CPP name. |
| 26205 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 26206 | |
| 26207 | # Sed expression to map a string onto a valid variable name. |
| 26208 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 26209 | |
| 26210 | |
| 26211 | exec 6>&1 |
| 26212 | ## ----------------------------------- ## |
| 26213 | ## Main body of $CONFIG_STATUS script. ## |
| 26214 | ## ----------------------------------- ## |
| 26215 | _ASEOF |
| 26216 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
| 26217 | |
| 26218 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26219 | # Save the log message, to keep $0 and so on meaningful, and to |
| 26220 | # report actual input values of CONFIG_FILES etc. instead of their |
| 26221 | # values after options handling. |
| 26222 | ac_log=" |
| 26223 | This file was extended by emacs $as_me 24.3.50, which was |
| 26224 | generated by GNU Autoconf 2.65. Invocation command line was |
| 26225 | |
| 26226 | CONFIG_FILES = $CONFIG_FILES |
| 26227 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 26228 | CONFIG_LINKS = $CONFIG_LINKS |
| 26229 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 26230 | $ $0 $@ |
| 26231 | |
| 26232 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 26233 | " |
| 26234 | |
| 26235 | _ACEOF |
| 26236 | |
| 26237 | case $ac_config_files in *" |
| 26238 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 26239 | esac |
| 26240 | |
| 26241 | case $ac_config_headers in *" |
| 26242 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 26243 | esac |
| 26244 | |
| 26245 | |
| 26246 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26247 | # Files that config.status was made for. |
| 26248 | config_files="$ac_config_files" |
| 26249 | config_headers="$ac_config_headers" |
| 26250 | config_commands="$ac_config_commands" |
| 26251 | |
| 26252 | _ACEOF |
| 26253 | |
| 26254 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26255 | ac_cs_usage="\ |
| 26256 | \`$as_me' instantiates files and other configuration actions |
| 26257 | from templates according to the current configuration. Unless the files |
| 26258 | and actions are specified as TAGs, all are instantiated by default. |
| 26259 | |
| 26260 | Usage: $0 [OPTION]... [TAG]... |
| 26261 | |
| 26262 | -h, --help print this help, then exit |
| 26263 | -V, --version print version number and configuration settings, then exit |
| 26264 | --config print configuration, then exit |
| 26265 | -q, --quiet, --silent |
| 26266 | do not print progress messages |
| 26267 | -d, --debug don't remove temporary files |
| 26268 | --recheck update $as_me by reconfiguring in the same conditions |
| 26269 | --file=FILE[:TEMPLATE] |
| 26270 | instantiate the configuration file FILE |
| 26271 | --header=FILE[:TEMPLATE] |
| 26272 | instantiate the configuration header FILE |
| 26273 | |
| 26274 | Configuration files: |
| 26275 | $config_files |
| 26276 | |
| 26277 | Configuration headers: |
| 26278 | $config_headers |
| 26279 | |
| 26280 | Configuration commands: |
| 26281 | $config_commands |
| 26282 | |
| 26283 | Report bugs to the package provider." |
| 26284 | |
| 26285 | _ACEOF |
| 26286 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26287 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
| 26288 | ac_cs_version="\\ |
| 26289 | emacs config.status 24.3.50 |
| 26290 | configured by $0, generated by GNU Autoconf 2.65, |
| 26291 | with options \\"\$ac_cs_config\\" |
| 26292 | |
| 26293 | Copyright (C) 2009 Free Software Foundation, Inc. |
| 26294 | This config.status script is free software; the Free Software Foundation |
| 26295 | gives unlimited permission to copy, distribute and modify it." |
| 26296 | |
| 26297 | ac_pwd='$ac_pwd' |
| 26298 | srcdir='$srcdir' |
| 26299 | INSTALL='$INSTALL' |
| 26300 | MKDIR_P='$MKDIR_P' |
| 26301 | AWK='$AWK' |
| 26302 | test -n "\$AWK" || AWK=awk |
| 26303 | _ACEOF |
| 26304 | |
| 26305 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26306 | # The default lists apply if the user does not specify any file. |
| 26307 | ac_need_defaults=: |
| 26308 | while test $# != 0 |
| 26309 | do |
| 26310 | case $1 in |
| 26311 | --*=*) |
| 26312 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 26313 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
| 26314 | ac_shift=: |
| 26315 | ;; |
| 26316 | *) |
| 26317 | ac_option=$1 |
| 26318 | ac_optarg=$2 |
| 26319 | ac_shift=shift |
| 26320 | ;; |
| 26321 | esac |
| 26322 | |
| 26323 | case $ac_option in |
| 26324 | # Handling of the options. |
| 26325 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 26326 | ac_cs_recheck=: ;; |
| 26327 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
| 26328 | $as_echo "$ac_cs_version"; exit ;; |
| 26329 | --config | --confi | --conf | --con | --co | --c ) |
| 26330 | $as_echo "$ac_cs_config"; exit ;; |
| 26331 | --debug | --debu | --deb | --de | --d | -d ) |
| 26332 | debug=: ;; |
| 26333 | --file | --fil | --fi | --f ) |
| 26334 | $ac_shift |
| 26335 | case $ac_optarg in |
| 26336 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 26337 | esac |
| 26338 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
| 26339 | ac_need_defaults=false;; |
| 26340 | --header | --heade | --head | --hea ) |
| 26341 | $ac_shift |
| 26342 | case $ac_optarg in |
| 26343 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 26344 | esac |
| 26345 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 26346 | ac_need_defaults=false;; |
| 26347 | --he | --h) |
| 26348 | # Conflict between --help and --header |
| 26349 | as_fn_error "ambiguous option: \`$1' |
| 26350 | Try \`$0 --help' for more information.";; |
| 26351 | --help | --hel | -h ) |
| 26352 | $as_echo "$ac_cs_usage"; exit ;; |
| 26353 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 26354 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 26355 | ac_cs_silent=: ;; |
| 26356 | |
| 26357 | # This is an error. |
| 26358 | -*) as_fn_error "unrecognized option: \`$1' |
| 26359 | Try \`$0 --help' for more information." ;; |
| 26360 | |
| 26361 | *) as_fn_append ac_config_targets " $1" |
| 26362 | ac_need_defaults=false ;; |
| 26363 | |
| 26364 | esac |
| 26365 | shift |
| 26366 | done |
| 26367 | |
| 26368 | ac_configure_extra_args= |
| 26369 | |
| 26370 | if $ac_cs_silent; then |
| 26371 | exec 6>/dev/null |
| 26372 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 26373 | fi |
| 26374 | |
| 26375 | _ACEOF |
| 26376 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26377 | if \$ac_cs_recheck; then |
| 26378 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 26379 | shift |
| 26380 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 26381 | CONFIG_SHELL='$SHELL' |
| 26382 | export CONFIG_SHELL |
| 26383 | exec "\$@" |
| 26384 | fi |
| 26385 | |
| 26386 | _ACEOF |
| 26387 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26388 | exec 5>>config.log |
| 26389 | { |
| 26390 | echo |
| 26391 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 26392 | ## Running $as_me. ## |
| 26393 | _ASBOX |
| 26394 | $as_echo "$ac_log" |
| 26395 | } >&5 |
| 26396 | |
| 26397 | _ACEOF |
| 26398 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26399 | # |
| 26400 | # INIT-COMMANDS |
| 26401 | # |
| 26402 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
| 26403 | GCC="$GCC" CPPFLAGS="$CPPFLAGS" |
| 26404 | |
| 26405 | _ACEOF |
| 26406 | |
| 26407 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26408 | |
| 26409 | # Handling of arguments. |
| 26410 | for ac_config_target in $ac_config_targets |
| 26411 | do |
| 26412 | case $ac_config_target in |
| 26413 | "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;; |
| 26414 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
| 26415 | "nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:nextstep/templates/Info-gnustep.plist.in" ;; |
| 26416 | "nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop") CONFIG_FILES="$CONFIG_FILES nextstep/GNUstep/Emacs.base/Resources/Emacs.desktop:nextstep/templates/Emacs.desktop.in" ;; |
| 26417 | "nextstep/Cocoa/Emacs.base/Contents/Info.plist") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Info.plist:nextstep/templates/Info.plist.in" ;; |
| 26418 | "nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings") CONFIG_FILES="$CONFIG_FILES nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:nextstep/templates/InfoPlist.strings.in" ;; |
| 26419 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
| 26420 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; |
| 26421 | "lib-src/Makefile") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile" ;; |
| 26422 | "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;; |
| 26423 | "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;; |
| 26424 | "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;; |
| 26425 | "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;; |
| 26426 | "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;; |
| 26427 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
| 26428 | "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; |
| 26429 | "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; |
| 26430 | "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; |
| 26431 | "nextstep/Makefile") CONFIG_FILES="$CONFIG_FILES nextstep/Makefile" ;; |
| 26432 | "test/automated/Makefile") CONFIG_FILES="$CONFIG_FILES test/automated/Makefile" ;; |
| 26433 | "admin/unidata/Makefile") CONFIG_FILES="$CONFIG_FILES admin/unidata/Makefile" ;; |
| 26434 | "mkdirs") CONFIG_COMMANDS="$CONFIG_COMMANDS mkdirs" ;; |
| 26435 | "epaths") CONFIG_COMMANDS="$CONFIG_COMMANDS epaths" ;; |
| 26436 | "gdbinit") CONFIG_COMMANDS="$CONFIG_COMMANDS gdbinit" ;; |
| 26437 | |
| 26438 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
| 26439 | esac |
| 26440 | done |
| 26441 | |
| 26442 | |
| 26443 | # If the user did not use the arguments to specify the items to instantiate, |
| 26444 | # then the envvar interface is used. Set only those that are not. |
| 26445 | # We use the long form for the default assignment because of an extremely |
| 26446 | # bizarre bug on SunOS 4.1.3. |
| 26447 | if $ac_need_defaults; then |
| 26448 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
| 26449 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 26450 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 26451 | fi |
| 26452 | |
| 26453 | # Have a temporary directory for convenience. Make it in the build tree |
| 26454 | # simply because there is no reason against having it here, and in addition, |
| 26455 | # creating and moving files from /tmp can sometimes cause problems. |
| 26456 | # Hook for its removal unless debugging. |
| 26457 | # Note that there is a small window in which the directory will not be cleaned: |
| 26458 | # after its creation but before its name has been assigned to `$tmp'. |
| 26459 | $debug || |
| 26460 | { |
| 26461 | tmp= |
| 26462 | trap 'exit_status=$? |
| 26463 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 26464 | ' 0 |
| 26465 | trap 'as_fn_exit 1' 1 2 13 15 |
| 26466 | } |
| 26467 | # Create a (secure) tmp directory for tmp files. |
| 26468 | |
| 26469 | { |
| 26470 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
| 26471 | test -n "$tmp" && test -d "$tmp" |
| 26472 | } || |
| 26473 | { |
| 26474 | tmp=./conf$$-$RANDOM |
| 26475 | (umask 077 && mkdir "$tmp") |
| 26476 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
| 26477 | |
| 26478 | # Set up the scripts for CONFIG_FILES section. |
| 26479 | # No need to generate them if there are no CONFIG_FILES. |
| 26480 | # This happens for instance with `./config.status config.h'. |
| 26481 | if test -n "$CONFIG_FILES"; then |
| 26482 | |
| 26483 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 26484 | ac_cs_awk_getline=: |
| 26485 | ac_cs_awk_pipe_init= |
| 26486 | ac_cs_awk_read_file=' |
| 26487 | while ((getline aline < (F[key])) > 0) |
| 26488 | print(aline) |
| 26489 | close(F[key])' |
| 26490 | ac_cs_awk_pipe_fini= |
| 26491 | else |
| 26492 | ac_cs_awk_getline=false |
| 26493 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 26494 | ac_cs_awk_read_file=' |
| 26495 | print "|#_!!_#|" |
| 26496 | print "cat " F[key] " &&" |
| 26497 | '$ac_cs_awk_pipe_init |
| 26498 | # The final `:' finishes the AND list. |
| 26499 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 26500 | fi |
| 26501 | ac_cr=`echo X | tr X '\015'` |
| 26502 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 26503 | # But we know of no other shell where ac_cr would be empty at this |
| 26504 | # point, so we can use a bashism as a fallback. |
| 26505 | if test "x$ac_cr" = x; then |
| 26506 | eval ac_cr=\$\'\\r\' |
| 26507 | fi |
| 26508 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 26509 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
| 26510 | ac_cs_awk_cr='\r' |
| 26511 | else |
| 26512 | ac_cs_awk_cr=$ac_cr |
| 26513 | fi |
| 26514 | |
| 26515 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
| 26516 | _ACEOF |
| 26517 | |
| 26518 | # Create commands to substitute file output variables. |
| 26519 | { |
| 26520 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 26521 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 26522 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 26523 | echo "_ACAWK" && |
| 26524 | echo "_ACEOF" |
| 26525 | } >conf$$files.sh && |
| 26526 | . ./conf$$files.sh || |
| 26527 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26528 | rm -f conf$$files.sh |
| 26529 | |
| 26530 | { |
| 26531 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 26532 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 26533 | echo "_ACEOF" |
| 26534 | } >conf$$subs.sh || |
| 26535 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26536 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
| 26537 | ac_delim='%!_!# ' |
| 26538 | for ac_last_try in false false false false false :; do |
| 26539 | . ./conf$$subs.sh || |
| 26540 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26541 | |
| 26542 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 26543 | if test $ac_delim_n = $ac_delim_num; then |
| 26544 | break |
| 26545 | elif $ac_last_try; then |
| 26546 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
| 26547 | else |
| 26548 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26549 | fi |
| 26550 | done |
| 26551 | rm -f conf$$subs.sh |
| 26552 | |
| 26553 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26554 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
| 26555 | _ACEOF |
| 26556 | sed -n ' |
| 26557 | h |
| 26558 | s/^/S["/; s/!.*/"]=/ |
| 26559 | p |
| 26560 | g |
| 26561 | s/^[^!]*!// |
| 26562 | :repl |
| 26563 | t repl |
| 26564 | s/'"$ac_delim"'$// |
| 26565 | t delim |
| 26566 | :nl |
| 26567 | h |
| 26568 | s/\(.\{148\}\)..*/\1/ |
| 26569 | t more1 |
| 26570 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 26571 | p |
| 26572 | n |
| 26573 | b repl |
| 26574 | :more1 |
| 26575 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26576 | p |
| 26577 | g |
| 26578 | s/.\{148\}// |
| 26579 | t nl |
| 26580 | :delim |
| 26581 | h |
| 26582 | s/\(.\{148\}\)..*/\1/ |
| 26583 | t more2 |
| 26584 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 26585 | p |
| 26586 | b |
| 26587 | :more2 |
| 26588 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 26589 | p |
| 26590 | g |
| 26591 | s/.\{148\}// |
| 26592 | t delim |
| 26593 | ' <conf$$subs.awk | sed ' |
| 26594 | /^[^""]/{ |
| 26595 | N |
| 26596 | s/\n// |
| 26597 | } |
| 26598 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26599 | rm -f conf$$subs.awk |
| 26600 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26601 | _ACAWK |
| 26602 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 26603 | for (key in S) S_is_set[key] = 1 |
| 26604 | FS = "\a" |
| 26605 | \$ac_cs_awk_pipe_init |
| 26606 | } |
| 26607 | { |
| 26608 | line = $ 0 |
| 26609 | nfields = split(line, field, "@") |
| 26610 | substed = 0 |
| 26611 | len = length(field[1]) |
| 26612 | for (i = 2; i < nfields; i++) { |
| 26613 | key = field[i] |
| 26614 | keylen = length(key) |
| 26615 | if (S_is_set[key]) { |
| 26616 | value = S[key] |
| 26617 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 26618 | len += length(value) + length(field[++i]) |
| 26619 | substed = 1 |
| 26620 | } else |
| 26621 | len += 1 + keylen |
| 26622 | } |
| 26623 | if (nfields == 3 && !substed) { |
| 26624 | key = field[2] |
| 26625 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 26626 | \$ac_cs_awk_read_file |
| 26627 | next |
| 26628 | } |
| 26629 | } |
| 26630 | print line |
| 26631 | } |
| 26632 | \$ac_cs_awk_pipe_fini |
| 26633 | _ACAWK |
| 26634 | _ACEOF |
| 26635 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26636 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 26637 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 26638 | else |
| 26639 | cat |
| 26640 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
| 26641 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
| 26642 | _ACEOF |
| 26643 | |
| 26644 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 26645 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 26646 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 26647 | # (actually we leave an empty line to preserve line numbers). |
| 26648 | if test "x$srcdir" = x.; then |
| 26649 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 26650 | s/:*\$(srcdir):*/:/ |
| 26651 | s/:*\${srcdir}:*/:/ |
| 26652 | s/:*@srcdir@:*/:/ |
| 26653 | s/^\([^=]*=[ ]*\):*/\1/ |
| 26654 | s/:*$// |
| 26655 | s/^[^=]*=[ ]*$// |
| 26656 | }' |
| 26657 | fi |
| 26658 | |
| 26659 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26660 | fi # test -n "$CONFIG_FILES" |
| 26661 | |
| 26662 | # Set up the scripts for CONFIG_HEADERS section. |
| 26663 | # No need to generate them if there are no CONFIG_HEADERS. |
| 26664 | # This happens for instance with `./config.status Makefile'. |
| 26665 | if test -n "$CONFIG_HEADERS"; then |
| 26666 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 26667 | BEGIN { |
| 26668 | _ACEOF |
| 26669 | |
| 26670 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 26671 | # here-document in config.status, that substitutes the proper values into |
| 26672 | # config.h.in to produce config.h. |
| 26673 | |
| 26674 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 26675 | # handling of long lines. |
| 26676 | ac_delim='%!_!# ' |
| 26677 | for ac_last_try in false false :; do |
| 26678 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 26679 | if test -z "$ac_t"; then |
| 26680 | break |
| 26681 | elif $ac_last_try; then |
| 26682 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 26683 | else |
| 26684 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 26685 | fi |
| 26686 | done |
| 26687 | |
| 26688 | # For the awk script, D is an array of macro values keyed by name, |
| 26689 | # likewise P contains macro parameters if any. Preserve backslash |
| 26690 | # newline sequences. |
| 26691 | |
| 26692 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 26693 | sed -n ' |
| 26694 | s/.\{148\}/&'"$ac_delim"'/g |
| 26695 | t rset |
| 26696 | :rset |
| 26697 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 26698 | t def |
| 26699 | d |
| 26700 | :def |
| 26701 | s/\\$// |
| 26702 | t bsnl |
| 26703 | s/["\\]/\\&/g |
| 26704 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26705 | D["\1"]=" \3"/p |
| 26706 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 26707 | d |
| 26708 | :bsnl |
| 26709 | s/["\\]/\\&/g |
| 26710 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 26711 | D["\1"]=" \3\\\\\\n"\\/p |
| 26712 | t cont |
| 26713 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 26714 | t cont |
| 26715 | d |
| 26716 | :cont |
| 26717 | n |
| 26718 | s/.\{148\}/&'"$ac_delim"'/g |
| 26719 | t clear |
| 26720 | :clear |
| 26721 | s/\\$// |
| 26722 | t bsnlc |
| 26723 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 26724 | d |
| 26725 | :bsnlc |
| 26726 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 26727 | b cont |
| 26728 | ' <confdefs.h | sed ' |
| 26729 | s/'"$ac_delim"'/"\\\ |
| 26730 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 26731 | |
| 26732 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26733 | for (key in D) D_is_set[key] = 1 |
| 26734 | FS = "\a" |
| 26735 | } |
| 26736 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 26737 | line = \$ 0 |
| 26738 | split(line, arg, " ") |
| 26739 | if (arg[1] == "#") { |
| 26740 | defundef = arg[2] |
| 26741 | mac1 = arg[3] |
| 26742 | } else { |
| 26743 | defundef = substr(arg[1], 2) |
| 26744 | mac1 = arg[2] |
| 26745 | } |
| 26746 | split(mac1, mac2, "(") #) |
| 26747 | macro = mac2[1] |
| 26748 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 26749 | if (D_is_set[macro]) { |
| 26750 | # Preserve the white space surrounding the "#". |
| 26751 | print prefix "define", macro P[macro] D[macro] |
| 26752 | next |
| 26753 | } else { |
| 26754 | # Replace #undef with comments. This is necessary, for example, |
| 26755 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 26756 | # on some systems where configure will not decide to define it. |
| 26757 | if (defundef == "undef") { |
| 26758 | print "/*", prefix defundef, macro, "*/" |
| 26759 | next |
| 26760 | } |
| 26761 | } |
| 26762 | } |
| 26763 | { print } |
| 26764 | _ACAWK |
| 26765 | _ACEOF |
| 26766 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26767 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 26768 | fi # test -n "$CONFIG_HEADERS" |
| 26769 | |
| 26770 | |
| 26771 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
| 26772 | shift |
| 26773 | for ac_tag |
| 26774 | do |
| 26775 | case $ac_tag in |
| 26776 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 26777 | esac |
| 26778 | case $ac_mode$ac_tag in |
| 26779 | :[FHL]*:*);; |
| 26780 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
| 26781 | :[FH]-) ac_tag=-:-;; |
| 26782 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 26783 | esac |
| 26784 | ac_save_IFS=$IFS |
| 26785 | IFS=: |
| 26786 | set x $ac_tag |
| 26787 | IFS=$ac_save_IFS |
| 26788 | shift |
| 26789 | ac_file=$1 |
| 26790 | shift |
| 26791 | |
| 26792 | case $ac_mode in |
| 26793 | :L) ac_source=$1;; |
| 26794 | :[FH]) |
| 26795 | ac_file_inputs= |
| 26796 | for ac_f |
| 26797 | do |
| 26798 | case $ac_f in |
| 26799 | -) ac_f="$tmp/stdin";; |
| 26800 | *) # Look for the file first in the build tree, then in the source tree |
| 26801 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 26802 | # because $ac_f cannot contain `:'. |
| 26803 | test -f "$ac_f" || |
| 26804 | case $ac_f in |
| 26805 | [\\/$]*) false;; |
| 26806 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 26807 | esac || |
| 26808 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
| 26809 | esac |
| 26810 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
| 26811 | as_fn_append ac_file_inputs " '$ac_f'" |
| 26812 | done |
| 26813 | |
| 26814 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 26815 | # use $as_me), people would be surprised to read: |
| 26816 | # /* config.h. Generated by config.status. */ |
| 26817 | configure_input='Generated from '` |
| 26818 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 26819 | `' by configure.' |
| 26820 | if test x"$ac_file" != x-; then |
| 26821 | configure_input="$ac_file. $configure_input" |
| 26822 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
| 26823 | $as_echo "$as_me: creating $ac_file" >&6;} |
| 26824 | fi |
| 26825 | # Neutralize special characters interpreted by sed in replacement strings. |
| 26826 | case $configure_input in #( |
| 26827 | *\&* | *\|* | *\\* ) |
| 26828 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 26829 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 26830 | *) ac_sed_conf_input=$configure_input;; |
| 26831 | esac |
| 26832 | |
| 26833 | case $ac_tag in |
| 26834 | *:-:* | *:-) cat >"$tmp/stdin" \ |
| 26835 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
| 26836 | esac |
| 26837 | ;; |
| 26838 | esac |
| 26839 | |
| 26840 | ac_dir=`$as_dirname -- "$ac_file" || |
| 26841 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 26842 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 26843 | X"$ac_file" : 'X\(//\)$' \| \ |
| 26844 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
| 26845 | $as_echo X"$ac_file" | |
| 26846 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 26847 | s//\1/ |
| 26848 | q |
| 26849 | } |
| 26850 | /^X\(\/\/\)[^/].*/{ |
| 26851 | s//\1/ |
| 26852 | q |
| 26853 | } |
| 26854 | /^X\(\/\/\)$/{ |
| 26855 | s//\1/ |
| 26856 | q |
| 26857 | } |
| 26858 | /^X\(\/\).*/{ |
| 26859 | s//\1/ |
| 26860 | q |
| 26861 | } |
| 26862 | s/.*/./; q'` |
| 26863 | as_dir="$ac_dir"; as_fn_mkdir_p |
| 26864 | ac_builddir=. |
| 26865 | |
| 26866 | case "$ac_dir" in |
| 26867 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26868 | *) |
| 26869 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
| 26870 | # A ".." for each directory in $ac_dir_suffix. |
| 26871 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
| 26872 | case $ac_top_builddir_sub in |
| 26873 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 26874 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 26875 | esac ;; |
| 26876 | esac |
| 26877 | ac_abs_top_builddir=$ac_pwd |
| 26878 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 26879 | # for backward compatibility: |
| 26880 | ac_top_builddir=$ac_top_build_prefix |
| 26881 | |
| 26882 | case $srcdir in |
| 26883 | .) # We are building in place. |
| 26884 | ac_srcdir=. |
| 26885 | ac_top_srcdir=$ac_top_builddir_sub |
| 26886 | ac_abs_top_srcdir=$ac_pwd ;; |
| 26887 | [\\/]* | ?:[\\/]* ) # Absolute name. |
| 26888 | ac_srcdir=$srcdir$ac_dir_suffix; |
| 26889 | ac_top_srcdir=$srcdir |
| 26890 | ac_abs_top_srcdir=$srcdir ;; |
| 26891 | *) # Relative name. |
| 26892 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 26893 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 26894 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
| 26895 | esac |
| 26896 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
| 26897 | |
| 26898 | |
| 26899 | case $ac_mode in |
| 26900 | :F) |
| 26901 | # |
| 26902 | # CONFIG_FILE |
| 26903 | # |
| 26904 | |
| 26905 | case $INSTALL in |
| 26906 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
| 26907 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
| 26908 | esac |
| 26909 | ac_MKDIR_P=$MKDIR_P |
| 26910 | case $MKDIR_P in |
| 26911 | [\\/$]* | ?:[\\/]* ) ;; |
| 26912 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
| 26913 | esac |
| 26914 | _ACEOF |
| 26915 | |
| 26916 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26917 | # If the template does not know about datarootdir, expand it. |
| 26918 | # FIXME: This hack should be removed a few years after 2.60. |
| 26919 | ac_datarootdir_hack=; ac_datarootdir_seen= |
| 26920 | ac_sed_dataroot=' |
| 26921 | /datarootdir/ { |
| 26922 | p |
| 26923 | q |
| 26924 | } |
| 26925 | /@datadir@/p |
| 26926 | /@docdir@/p |
| 26927 | /@infodir@/p |
| 26928 | /@localedir@/p |
| 26929 | /@mandir@/p' |
| 26930 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
| 26931 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 26932 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
| 26933 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
| 26934 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
| 26935 | _ACEOF |
| 26936 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26937 | ac_datarootdir_hack=' |
| 26938 | s&@datadir@&$datadir&g |
| 26939 | s&@docdir@&$docdir&g |
| 26940 | s&@infodir@&$infodir&g |
| 26941 | s&@localedir@&$localedir&g |
| 26942 | s&@mandir@&$mandir&g |
| 26943 | s&\\\${datarootdir}&$datarootdir&g' ;; |
| 26944 | esac |
| 26945 | _ACEOF |
| 26946 | |
| 26947 | # Neutralize VPATH when `$srcdir' = `.'. |
| 26948 | # Shell code in configure.ac might set extrasub. |
| 26949 | # FIXME: do we really want to maintain this feature? |
| 26950 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 26951 | ac_sed_extra="$ac_vpsub |
| 26952 | $extrasub |
| 26953 | _ACEOF |
| 26954 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 26955 | :t |
| 26956 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
| 26957 | s|@configure_input@|$ac_sed_conf_input|;t t |
| 26958 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
| 26959 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
| 26960 | s&@srcdir@&$ac_srcdir&;t t |
| 26961 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 26962 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 26963 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 26964 | s&@builddir@&$ac_builddir&;t t |
| 26965 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 26966 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 26967 | s&@INSTALL@&$ac_INSTALL&;t t |
| 26968 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
| 26969 | $ac_datarootdir_hack |
| 26970 | " |
| 26971 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 26972 | if $ac_cs_awk_getline; then |
| 26973 | $AWK -f "$tmp/subs.awk" |
| 26974 | else |
| 26975 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 26976 | fi >$tmp/out \ |
| 26977 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 26978 | |
| 26979 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 26980 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 26981 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
| 26982 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26983 | which seems to be undefined. Please make sure it is defined." >&5 |
| 26984 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
| 26985 | which seems to be undefined. Please make sure it is defined." >&2;} |
| 26986 | |
| 26987 | rm -f "$tmp/stdin" |
| 26988 | case $ac_file in |
| 26989 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 26990 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 26991 | esac \ |
| 26992 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 26993 | ;; |
| 26994 | :H) |
| 26995 | # |
| 26996 | # CONFIG_HEADER |
| 26997 | # |
| 26998 | if test x"$ac_file" != x-; then |
| 26999 | { |
| 27000 | $as_echo "/* $configure_input */" \ |
| 27001 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 27002 | } >"$tmp/config.h" \ |
| 27003 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 27004 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 27005 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 27006 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 27007 | else |
| 27008 | rm -f "$ac_file" |
| 27009 | mv "$tmp/config.h" "$ac_file" \ |
| 27010 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 27011 | fi |
| 27012 | else |
| 27013 | $as_echo "/* $configure_input */" \ |
| 27014 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 27015 | || as_fn_error "could not create -" "$LINENO" 5 |
| 27016 | fi |
| 27017 | # Compute "$ac_file"'s index in $config_headers. |
| 27018 | _am_arg="$ac_file" |
| 27019 | _am_stamp_count=1 |
| 27020 | for _am_header in $config_headers :; do |
| 27021 | case $_am_header in |
| 27022 | $_am_arg | $_am_arg:* ) |
| 27023 | break ;; |
| 27024 | * ) |
| 27025 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
| 27026 | esac |
| 27027 | done |
| 27028 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
| 27029 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 27030 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
| 27031 | X"$_am_arg" : 'X\(//\)$' \| \ |
| 27032 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
| 27033 | $as_echo X"$_am_arg" | |
| 27034 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27035 | s//\1/ |
| 27036 | q |
| 27037 | } |
| 27038 | /^X\(\/\/\)[^/].*/{ |
| 27039 | s//\1/ |
| 27040 | q |
| 27041 | } |
| 27042 | /^X\(\/\/\)$/{ |
| 27043 | s//\1/ |
| 27044 | q |
| 27045 | } |
| 27046 | /^X\(\/\).*/{ |
| 27047 | s//\1/ |
| 27048 | q |
| 27049 | } |
| 27050 | s/.*/./; q'`/stamp-h$_am_stamp_count |
| 27051 | ;; |
| 27052 | |
| 27053 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
| 27054 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
| 27055 | ;; |
| 27056 | esac |
| 27057 | |
| 27058 | |
| 27059 | case $ac_file$ac_mode in |
| 27060 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { |
| 27061 | # Autoconf 2.62 quotes --file arguments for eval, but not when files |
| 27062 | # are listed without --file. Let's play safe and only enable the eval |
| 27063 | # if we detect the quoting. |
| 27064 | case $CONFIG_FILES in |
| 27065 | *\'*) eval set x "$CONFIG_FILES" ;; |
| 27066 | *) set x $CONFIG_FILES ;; |
| 27067 | esac |
| 27068 | shift |
| 27069 | for mf |
| 27070 | do |
| 27071 | # Strip MF so we end up with the name of the file. |
| 27072 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
| 27073 | # Check whether this is an Automake generated Makefile or not. |
| 27074 | # We used to match only the files named `Makefile.in', but |
| 27075 | # some people rename them; so instead we look at the file content. |
| 27076 | # Grep'ing the first line is not enough: some people post-process |
| 27077 | # each Makefile.in and add a new line on top of each file to say so. |
| 27078 | # Grep'ing the whole file is not good either: AIX grep has a line |
| 27079 | # limit of 2048, but all sed's we know have understand at least 4000. |
| 27080 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
| 27081 | dirpart=`$as_dirname -- "$mf" || |
| 27082 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 27083 | X"$mf" : 'X\(//\)[^/]' \| \ |
| 27084 | X"$mf" : 'X\(//\)$' \| \ |
| 27085 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
| 27086 | $as_echo X"$mf" | |
| 27087 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27088 | s//\1/ |
| 27089 | q |
| 27090 | } |
| 27091 | /^X\(\/\/\)[^/].*/{ |
| 27092 | s//\1/ |
| 27093 | q |
| 27094 | } |
| 27095 | /^X\(\/\/\)$/{ |
| 27096 | s//\1/ |
| 27097 | q |
| 27098 | } |
| 27099 | /^X\(\/\).*/{ |
| 27100 | s//\1/ |
| 27101 | q |
| 27102 | } |
| 27103 | s/.*/./; q'` |
| 27104 | else |
| 27105 | continue |
| 27106 | fi |
| 27107 | # Extract the definition of DEPDIR, am__include, and am__quote |
| 27108 | # from the Makefile without running `make'. |
| 27109 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
| 27110 | test -z "$DEPDIR" && continue |
| 27111 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
| 27112 | test -z "am__include" && continue |
| 27113 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
| 27114 | # When using ansi2knr, U may be empty or an underscore; expand it |
| 27115 | U=`sed -n 's/^U = //p' < "$mf"` |
| 27116 | # Find all dependency output files, they are included files with |
| 27117 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
| 27118 | # simplest approach to changing $(DEPDIR) to its actual value in the |
| 27119 | # expansion. |
| 27120 | for file in `sed -n " |
| 27121 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
| 27122 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
| 27123 | # Make sure the directory exists. |
| 27124 | test -f "$dirpart/$file" && continue |
| 27125 | fdir=`$as_dirname -- "$file" || |
| 27126 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 27127 | X"$file" : 'X\(//\)[^/]' \| \ |
| 27128 | X"$file" : 'X\(//\)$' \| \ |
| 27129 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
| 27130 | $as_echo X"$file" | |
| 27131 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 27132 | s//\1/ |
| 27133 | q |
| 27134 | } |
| 27135 | /^X\(\/\/\)[^/].*/{ |
| 27136 | s//\1/ |
| 27137 | q |
| 27138 | } |
| 27139 | /^X\(\/\/\)$/{ |
| 27140 | s//\1/ |
| 27141 | q |
| 27142 | } |
| 27143 | /^X\(\/\).*/{ |
| 27144 | s//\1/ |
| 27145 | q |
| 27146 | } |
| 27147 | s/.*/./; q'` |
| 27148 | as_dir=$dirpart/$fdir; as_fn_mkdir_p |
| 27149 | # echo "creating $dirpart/$file" |
| 27150 | echo '# dummy' > "$dirpart/$file" |
| 27151 | done |
| 27152 | done |
| 27153 | } |
| 27154 | ;; |
| 27155 | "mkdirs":C) |
| 27156 | for dir in etc lisp ; do |
| 27157 | test -d ${dir} || mkdir ${dir} |
| 27158 | done |
| 27159 | ;; |
| 27160 | "epaths":C) |
| 27161 | echo creating src/epaths.h |
| 27162 | ${MAKE-make} MAKEFILE_NAME=do-not-make-Makefile epaths-force |
| 27163 | ;; |
| 27164 | "gdbinit":C) |
| 27165 | if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then |
| 27166 | echo creating src/.gdbinit |
| 27167 | echo source $srcdir/src/.gdbinit > src/.gdbinit |
| 27168 | fi |
| 27169 | ;; |
| 27170 | |
| 27171 | esac |
| 27172 | done # for ac_tag |
| 27173 | |
| 27174 | |
| 27175 | as_fn_exit 0 |
| 27176 | _ACEOF |
| 27177 | ac_clean_files=$ac_clean_files_save |
| 27178 | |
| 27179 | test $ac_write_fail = 0 || |
| 27180 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
| 27181 | |
| 27182 | |
| 27183 | # configure is writing to config.log, and then calls config.status. |
| 27184 | # config.status does its own redirection, appending to config.log. |
| 27185 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 27186 | # by configure, so config.status won't be able to write to it; its |
| 27187 | # output is simply discarded. So we exec the FD to /dev/null, |
| 27188 | # effectively closing config.log, so it can be properly (re)opened and |
| 27189 | # appended to by config.status. When coming back to configure, we |
| 27190 | # need to make the FD available again. |
| 27191 | if test "$no_create" != yes; then |
| 27192 | ac_cs_success=: |
| 27193 | ac_config_status_args= |
| 27194 | test "$silent" = yes && |
| 27195 | ac_config_status_args="$ac_config_status_args --quiet" |
| 27196 | exec 5>/dev/null |
| 27197 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 27198 | exec 5>>config.log |
| 27199 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 27200 | # would make configure fail if this is the last instruction. |
| 27201 | $ac_cs_success || as_fn_exit $? |
| 27202 | fi |
| 27203 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
| 27204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
| 27205 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 27206 | fi |
| 27207 | |