1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for op 1.34. 4# 5# Report bugs to <alec@swapoff.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, 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 18DUALCASE=1; export DUALCASE # for MKS sh 19if 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 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_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. 45if 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 --' 49elif (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' 52else 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' 72fi 73 74# The user is always right. 75if 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 } 81fi 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.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and alec@swapoff.org 270$0: about your system, including any error possibly output 271$0: before this message. Then install a modern shell, or 272$0: manually run the script under such a shell if you do 273$0: have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='op' 582PACKAGE_TARNAME='op' 583PACKAGE_VERSION='1.34' 584PACKAGE_STRING='op 1.34' 585PACKAGE_BUGREPORT='alec@swapoff.org' 586PACKAGE_URL='' 587 588ac_unique_file="main.c" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='am__EXEEXT_FALSE 626am__EXEEXT_TRUE 627LTLIBOBJS 628EXTRA_LDFLAGS 629EXTRA_CFLAGS 630EXTRA_CPPFLAGS 631WARN_SCANNERFLAGS 632WARN_LDFLAGS 633WARN_CFLAGS 634SED 635LIBOBJS 636LEXLIB 637LEX_OUTPUT_ROOT 638LEX 639EGREP 640GREP 641CPP 642am__fastdepCC_FALSE 643am__fastdepCC_TRUE 644CCDEPMODE 645am__nodep 646AMDEPBACKSLASH 647AMDEP_FALSE 648AMDEP_TRUE 649am__quote 650am__include 651DEPDIR 652OBJEXT 653EXEEXT 654ac_ct_CC 655CPPFLAGS 656LDFLAGS 657CFLAGS 658CC 659build_os 660build_vendor 661build_cpu 662build 663MAINT 664MAINTAINER_MODE_FALSE 665MAINTAINER_MODE_TRUE 666AM_BACKSLASH 667AM_DEFAULT_VERBOSITY 668AM_DEFAULT_V 669AM_V 670am__untar 671am__tar 672AMTAR 673am__leading_dot 674SET_MAKE 675AWK 676mkdir_p 677MKDIR_P 678INSTALL_STRIP_PROGRAM 679STRIP 680install_sh 681MAKEINFO 682AUTOHEADER 683AUTOMAKE 684AUTOCONF 685ACLOCAL 686VERSION 687PACKAGE 688CYGPATH_W 689am__isrc 690INSTALL_DATA 691INSTALL_SCRIPT 692INSTALL_PROGRAM 693target_alias 694host_alias 695build_alias 696LIBS 697ECHO_T 698ECHO_N 699ECHO_C 700DEFS 701mandir 702localedir 703libdir 704psdir 705pdfdir 706dvidir 707htmldir 708infodir 709docdir 710oldincludedir 711includedir 712localstatedir 713sharedstatedir 714sysconfdir 715datadir 716datarootdir 717libexecdir 718sbindir 719bindir 720program_transform_name 721prefix 722exec_prefix 723PACKAGE_URL 724PACKAGE_BUGREPORT 725PACKAGE_STRING 726PACKAGE_VERSION 727PACKAGE_TARNAME 728PACKAGE_NAME 729PATH_SEPARATOR 730SHELL' 731ac_subst_files='' 732ac_user_opts=' 733enable_option_checking 734enable_silent_rules 735enable_maintainer_mode 736enable_dependency_tracking 737with_pam 738with_shadow 739enable_xauth 740enable_compile_warnings 741enable_Werror 742' 743 ac_precious_vars='build_alias 744host_alias 745target_alias 746CC 747CFLAGS 748LDFLAGS 749LIBS 750CPPFLAGS 751CPP' 752 753 754# Initialize some variables set by options. 755ac_init_help= 756ac_init_version=false 757ac_unrecognized_opts= 758ac_unrecognized_sep= 759# The variables have the same names as the options, with 760# dashes changed to underlines. 761cache_file=/dev/null 762exec_prefix=NONE 763no_create= 764no_recursion= 765prefix=NONE 766program_prefix=NONE 767program_suffix=NONE 768program_transform_name=s,x,x, 769silent= 770site= 771srcdir= 772verbose= 773x_includes=NONE 774x_libraries=NONE 775 776# Installation directory options. 777# These are left unexpanded so users can "make install exec_prefix=/foo" 778# and all the variables that are supposed to be based on exec_prefix 779# by default will actually change. 780# Use braces instead of parens because sh, perl, etc. also accept them. 781# (The list follows the same order as the GNU Coding Standards.) 782bindir='${exec_prefix}/bin' 783sbindir='${exec_prefix}/sbin' 784libexecdir='${exec_prefix}/libexec' 785datarootdir='${prefix}/share' 786datadir='${datarootdir}' 787sysconfdir='${prefix}/etc' 788sharedstatedir='${prefix}/com' 789localstatedir='${prefix}/var' 790includedir='${prefix}/include' 791oldincludedir='/usr/include' 792docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 793infodir='${datarootdir}/info' 794htmldir='${docdir}' 795dvidir='${docdir}' 796pdfdir='${docdir}' 797psdir='${docdir}' 798libdir='${exec_prefix}/lib' 799localedir='${datarootdir}/locale' 800mandir='${datarootdir}/man' 801 802ac_prev= 803ac_dashdash= 804for ac_option 805do 806 # If the previous option needs an argument, assign it. 807 if test -n "$ac_prev"; then 808 eval $ac_prev=\$ac_option 809 ac_prev= 810 continue 811 fi 812 813 case $ac_option in 814 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 815 *=) ac_optarg= ;; 816 *) ac_optarg=yes ;; 817 esac 818 819 # Accept the important Cygnus configure options, so we can diagnose typos. 820 821 case $ac_dashdash$ac_option in 822 --) 823 ac_dashdash=yes ;; 824 825 -bindir | --bindir | --bindi | --bind | --bin | --bi) 826 ac_prev=bindir ;; 827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 828 bindir=$ac_optarg ;; 829 830 -build | --build | --buil | --bui | --bu) 831 ac_prev=build_alias ;; 832 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 833 build_alias=$ac_optarg ;; 834 835 -cache-file | --cache-file | --cache-fil | --cache-fi \ 836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 837 ac_prev=cache_file ;; 838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 840 cache_file=$ac_optarg ;; 841 842 --config-cache | -C) 843 cache_file=config.cache ;; 844 845 -datadir | --datadir | --datadi | --datad) 846 ac_prev=datadir ;; 847 -datadir=* | --datadir=* | --datadi=* | --datad=*) 848 datadir=$ac_optarg ;; 849 850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 851 | --dataroo | --dataro | --datar) 852 ac_prev=datarootdir ;; 853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 855 datarootdir=$ac_optarg ;; 856 857 -disable-* | --disable-*) 858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 859 # Reject names that are not valid shell variable names. 860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 861 as_fn_error $? "invalid feature name: $ac_useropt" 862 ac_useropt_orig=$ac_useropt 863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 864 case $ac_user_opts in 865 *" 866"enable_$ac_useropt" 867"*) ;; 868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 869 ac_unrecognized_sep=', ';; 870 esac 871 eval enable_$ac_useropt=no ;; 872 873 -docdir | --docdir | --docdi | --doc | --do) 874 ac_prev=docdir ;; 875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 876 docdir=$ac_optarg ;; 877 878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 879 ac_prev=dvidir ;; 880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 881 dvidir=$ac_optarg ;; 882 883 -enable-* | --enable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=\$ac_optarg ;; 898 899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 901 | --exec | --exe | --ex) 902 ac_prev=exec_prefix ;; 903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 905 | --exec=* | --exe=* | --ex=*) 906 exec_prefix=$ac_optarg ;; 907 908 -gas | --gas | --ga | --g) 909 # Obsolete; use --with-gas. 910 with_gas=yes ;; 911 912 -help | --help | --hel | --he | -h) 913 ac_init_help=long ;; 914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 915 ac_init_help=recursive ;; 916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 917 ac_init_help=short ;; 918 919 -host | --host | --hos | --ho) 920 ac_prev=host_alias ;; 921 -host=* | --host=* | --hos=* | --ho=*) 922 host_alias=$ac_optarg ;; 923 924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 925 ac_prev=htmldir ;; 926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 927 | --ht=*) 928 htmldir=$ac_optarg ;; 929 930 -includedir | --includedir | --includedi | --included | --include \ 931 | --includ | --inclu | --incl | --inc) 932 ac_prev=includedir ;; 933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 934 | --includ=* | --inclu=* | --incl=* | --inc=*) 935 includedir=$ac_optarg ;; 936 937 -infodir | --infodir | --infodi | --infod | --info | --inf) 938 ac_prev=infodir ;; 939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 940 infodir=$ac_optarg ;; 941 942 -libdir | --libdir | --libdi | --libd) 943 ac_prev=libdir ;; 944 -libdir=* | --libdir=* | --libdi=* | --libd=*) 945 libdir=$ac_optarg ;; 946 947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 948 | --libexe | --libex | --libe) 949 ac_prev=libexecdir ;; 950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 951 | --libexe=* | --libex=* | --libe=*) 952 libexecdir=$ac_optarg ;; 953 954 -localedir | --localedir | --localedi | --localed | --locale) 955 ac_prev=localedir ;; 956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 957 localedir=$ac_optarg ;; 958 959 -localstatedir | --localstatedir | --localstatedi | --localstated \ 960 | --localstate | --localstat | --localsta | --localst | --locals) 961 ac_prev=localstatedir ;; 962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 964 localstatedir=$ac_optarg ;; 965 966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 967 ac_prev=mandir ;; 968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 969 mandir=$ac_optarg ;; 970 971 -nfp | --nfp | --nf) 972 # Obsolete; use --without-fp. 973 with_fp=no ;; 974 975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 976 | --no-cr | --no-c | -n) 977 no_create=yes ;; 978 979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 981 no_recursion=yes ;; 982 983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 985 | --oldin | --oldi | --old | --ol | --o) 986 ac_prev=oldincludedir ;; 987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 990 oldincludedir=$ac_optarg ;; 991 992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 993 ac_prev=prefix ;; 994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 995 prefix=$ac_optarg ;; 996 997 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 998 | --program-pre | --program-pr | --program-p) 999 ac_prev=program_prefix ;; 1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1002 program_prefix=$ac_optarg ;; 1003 1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1005 | --program-suf | --program-su | --program-s) 1006 ac_prev=program_suffix ;; 1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1009 program_suffix=$ac_optarg ;; 1010 1011 -program-transform-name | --program-transform-name \ 1012 | --program-transform-nam | --program-transform-na \ 1013 | --program-transform-n | --program-transform- \ 1014 | --program-transform | --program-transfor \ 1015 | --program-transfo | --program-transf \ 1016 | --program-trans | --program-tran \ 1017 | --progr-tra | --program-tr | --program-t) 1018 ac_prev=program_transform_name ;; 1019 -program-transform-name=* | --program-transform-name=* \ 1020 | --program-transform-nam=* | --program-transform-na=* \ 1021 | --program-transform-n=* | --program-transform-=* \ 1022 | --program-transform=* | --program-transfor=* \ 1023 | --program-transfo=* | --program-transf=* \ 1024 | --program-trans=* | --program-tran=* \ 1025 | --progr-tra=* | --program-tr=* | --program-t=*) 1026 program_transform_name=$ac_optarg ;; 1027 1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1029 ac_prev=pdfdir ;; 1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1031 pdfdir=$ac_optarg ;; 1032 1033 -psdir | --psdir | --psdi | --psd | --ps) 1034 ac_prev=psdir ;; 1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1036 psdir=$ac_optarg ;; 1037 1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1039 | -silent | --silent | --silen | --sile | --sil) 1040 silent=yes ;; 1041 1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1043 ac_prev=sbindir ;; 1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1045 | --sbi=* | --sb=*) 1046 sbindir=$ac_optarg ;; 1047 1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1050 | --sharedst | --shareds | --shared | --share | --shar \ 1051 | --sha | --sh) 1052 ac_prev=sharedstatedir ;; 1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1056 | --sha=* | --sh=*) 1057 sharedstatedir=$ac_optarg ;; 1058 1059 -site | --site | --sit) 1060 ac_prev=site ;; 1061 -site=* | --site=* | --sit=*) 1062 site=$ac_optarg ;; 1063 1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1065 ac_prev=srcdir ;; 1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1067 srcdir=$ac_optarg ;; 1068 1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1070 | --syscon | --sysco | --sysc | --sys | --sy) 1071 ac_prev=sysconfdir ;; 1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1074 sysconfdir=$ac_optarg ;; 1075 1076 -target | --target | --targe | --targ | --tar | --ta | --t) 1077 ac_prev=target_alias ;; 1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1079 target_alias=$ac_optarg ;; 1080 1081 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1082 verbose=yes ;; 1083 1084 -version | --version | --versio | --versi | --vers | -V) 1085 ac_init_version=: ;; 1086 1087 -with-* | --with-*) 1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1089 # Reject names that are not valid shell variable names. 1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1091 as_fn_error $? "invalid package name: $ac_useropt" 1092 ac_useropt_orig=$ac_useropt 1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1094 case $ac_user_opts in 1095 *" 1096"with_$ac_useropt" 1097"*) ;; 1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1099 ac_unrecognized_sep=', ';; 1100 esac 1101 eval with_$ac_useropt=\$ac_optarg ;; 1102 1103 -without-* | --without-*) 1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1105 # Reject names that are not valid shell variable names. 1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1107 as_fn_error $? "invalid package name: $ac_useropt" 1108 ac_useropt_orig=$ac_useropt 1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1110 case $ac_user_opts in 1111 *" 1112"with_$ac_useropt" 1113"*) ;; 1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1115 ac_unrecognized_sep=', ';; 1116 esac 1117 eval with_$ac_useropt=no ;; 1118 1119 --x) 1120 # Obsolete; use --with-x. 1121 with_x=yes ;; 1122 1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1124 | --x-incl | --x-inc | --x-in | --x-i) 1125 ac_prev=x_includes ;; 1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1128 x_includes=$ac_optarg ;; 1129 1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1132 ac_prev=x_libraries ;; 1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1135 x_libraries=$ac_optarg ;; 1136 1137 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1138Try \`$0 --help' for more information" 1139 ;; 1140 1141 *=*) 1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1143 # Reject names that are not valid shell variable names. 1144 case $ac_envvar in #( 1145 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1146 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1147 esac 1148 eval $ac_envvar=\$ac_optarg 1149 export $ac_envvar ;; 1150 1151 *) 1152 # FIXME: should be removed in autoconf 3.0. 1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1156 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1157 ;; 1158 1159 esac 1160done 1161 1162if test -n "$ac_prev"; then 1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1164 as_fn_error $? "missing argument to $ac_option" 1165fi 1166 1167if test -n "$ac_unrecognized_opts"; then 1168 case $enable_option_checking in 1169 no) ;; 1170 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1172 esac 1173fi 1174 1175# Check all directory arguments for consistency. 1176for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1177 datadir sysconfdir sharedstatedir localstatedir includedir \ 1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1179 libdir localedir mandir 1180do 1181 eval ac_val=\$$ac_var 1182 # Remove trailing slashes. 1183 case $ac_val in 1184 */ ) 1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1186 eval $ac_var=\$ac_val;; 1187 esac 1188 # Be sure to have absolute directory names. 1189 case $ac_val in 1190 [\\/$]* | ?:[\\/]* ) continue;; 1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1192 esac 1193 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1194done 1195 1196# There might be people who depend on the old broken behavior: `$host' 1197# used to hold the argument of --host etc. 1198# FIXME: To remove some day. 1199build=$build_alias 1200host=$host_alias 1201target=$target_alias 1202 1203# FIXME: To remove some day. 1204if test "x$host_alias" != x; then 1205 if test "x$build_alias" = x; then 1206 cross_compiling=maybe 1207 elif test "x$build_alias" != "x$host_alias"; then 1208 cross_compiling=yes 1209 fi 1210fi 1211 1212ac_tool_prefix= 1213test -n "$host_alias" && ac_tool_prefix=$host_alias- 1214 1215test "$silent" = yes && exec 6>/dev/null 1216 1217 1218ac_pwd=`pwd` && test -n "$ac_pwd" && 1219ac_ls_di=`ls -di .` && 1220ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1221 as_fn_error $? "working directory cannot be determined" 1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1223 as_fn_error $? "pwd does not report name of working directory" 1224 1225 1226# Find the source files, if location was not specified. 1227if test -z "$srcdir"; then 1228 ac_srcdir_defaulted=yes 1229 # Try the directory containing this script, then the parent directory. 1230 ac_confdir=`$as_dirname -- "$as_myself" || 1231$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1232 X"$as_myself" : 'X\(//\)[^/]' \| \ 1233 X"$as_myself" : 'X\(//\)$' \| \ 1234 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1235$as_echo X"$as_myself" | 1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1237 s//\1/ 1238 q 1239 } 1240 /^X\(\/\/\)[^/].*/{ 1241 s//\1/ 1242 q 1243 } 1244 /^X\(\/\/\)$/{ 1245 s//\1/ 1246 q 1247 } 1248 /^X\(\/\).*/{ 1249 s//\1/ 1250 q 1251 } 1252 s/.*/./; q'` 1253 srcdir=$ac_confdir 1254 if test ! -r "$srcdir/$ac_unique_file"; then 1255 srcdir=.. 1256 fi 1257else 1258 ac_srcdir_defaulted=no 1259fi 1260if test ! -r "$srcdir/$ac_unique_file"; then 1261 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1262 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1263fi 1264ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1265ac_abs_confdir=`( 1266 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1267 pwd)` 1268# When building in place, set srcdir=. 1269if test "$ac_abs_confdir" = "$ac_pwd"; then 1270 srcdir=. 1271fi 1272# Remove unnecessary trailing slashes from srcdir. 1273# Double slashes in file names in object file debugging info 1274# mess up M-x gdb in Emacs. 1275case $srcdir in 1276*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1277esac 1278for ac_var in $ac_precious_vars; do 1279 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_env_${ac_var}_value=\$${ac_var} 1281 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1282 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1283done 1284 1285# 1286# Report the --help message. 1287# 1288if test "$ac_init_help" = "long"; then 1289 # Omit some internal or obsolete options to make the list less imposing. 1290 # This message is too long to be a string in the A/UX 3.1 sh. 1291 cat <<_ACEOF 1292\`configure' configures op 1.34 to adapt to many kinds of systems. 1293 1294Usage: $0 [OPTION]... [VAR=VALUE]... 1295 1296To assign environment variables (e.g., CC, CFLAGS...), specify them as 1297VAR=VALUE. See below for descriptions of some of the useful variables. 1298 1299Defaults for the options are specified in brackets. 1300 1301Configuration: 1302 -h, --help display this help and exit 1303 --help=short display options specific to this package 1304 --help=recursive display the short help of all the included packages 1305 -V, --version display version information and exit 1306 -q, --quiet, --silent do not print \`checking ...' messages 1307 --cache-file=FILE cache test results in FILE [disabled] 1308 -C, --config-cache alias for \`--cache-file=config.cache' 1309 -n, --no-create do not create output files 1310 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1311 1312Installation directories: 1313 --prefix=PREFIX install architecture-independent files in PREFIX 1314 [$ac_default_prefix] 1315 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1316 [PREFIX] 1317 1318By default, \`make install' will install all the files in 1319\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1320an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1321for instance \`--prefix=\$HOME'. 1322 1323For better control, use the options below. 1324 1325Fine tuning of the installation directories: 1326 --bindir=DIR user executables [EPREFIX/bin] 1327 --sbindir=DIR system admin executables [EPREFIX/sbin] 1328 --libexecdir=DIR program executables [EPREFIX/libexec] 1329 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1330 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1331 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1332 --libdir=DIR object code libraries [EPREFIX/lib] 1333 --includedir=DIR C header files [PREFIX/include] 1334 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1335 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1336 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1337 --infodir=DIR info documentation [DATAROOTDIR/info] 1338 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1339 --mandir=DIR man documentation [DATAROOTDIR/man] 1340 --docdir=DIR documentation root [DATAROOTDIR/doc/op] 1341 --htmldir=DIR html documentation [DOCDIR] 1342 --dvidir=DIR dvi documentation [DOCDIR] 1343 --pdfdir=DIR pdf documentation [DOCDIR] 1344 --psdir=DIR ps documentation [DOCDIR] 1345_ACEOF 1346 1347 cat <<\_ACEOF 1348 1349Program names: 1350 --program-prefix=PREFIX prepend PREFIX to installed program names 1351 --program-suffix=SUFFIX append SUFFIX to installed program names 1352 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1353 1354System types: 1355 --build=BUILD configure for building on BUILD [guessed] 1356_ACEOF 1357fi 1358 1359if test -n "$ac_init_help"; then 1360 case $ac_init_help in 1361 short | recursive ) echo "Configuration of op 1.34:";; 1362 esac 1363 cat <<\_ACEOF 1364 1365Optional Features: 1366 --disable-option-checking ignore unrecognized --enable/--with options 1367 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1368 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1369 --enable-silent-rules less verbose build output (undo: "make V=1") 1370 --disable-silent-rules verbose build output (undo: "make V=0") 1371 --enable-maintainer-mode 1372 enable make rules and dependencies not useful (and 1373 sometimes confusing) to the casual installer 1374 --enable-dependency-tracking 1375 do not reject slow dependency extractors 1376 --disable-dependency-tracking 1377 speeds up one-time build 1378 --enable-xauth=<xauth> enable xauth support and specify xauth binary] 1379 --enable-compile-warnings=[no/yes/error] 1380 Enable compiler warnings and errors 1381 --disable-Werror Unconditionally make all compiler warnings non-fatal 1382 1383Optional Packages: 1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1386 --with-pam use PAM for authentication (yes)] 1387 --with-shadow use shadow file for authentication (default if PAM 1388 not found)] 1389 1390Some influential environment variables: 1391 CC C compiler command 1392 CFLAGS C compiler flags 1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1394 nonstandard directory <lib dir> 1395 LIBS libraries to pass to the linker, e.g. -l<library> 1396 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1397 you have headers in a nonstandard directory <include dir> 1398 CPP C preprocessor 1399 1400Use these variables to override the choices made by `configure' or to help 1401it to find libraries and programs with nonstandard names/locations. 1402 1403Report bugs to <alec@swapoff.org>. 1404_ACEOF 1405ac_status=$? 1406fi 1407 1408if test "$ac_init_help" = "recursive"; then 1409 # If there are subdirs, report their specific --help. 1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1411 test -d "$ac_dir" || 1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1413 continue 1414 ac_builddir=. 1415 1416case "$ac_dir" in 1417.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1418*) 1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1420 # A ".." for each directory in $ac_dir_suffix. 1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1422 case $ac_top_builddir_sub in 1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1425 esac ;; 1426esac 1427ac_abs_top_builddir=$ac_pwd 1428ac_abs_builddir=$ac_pwd$ac_dir_suffix 1429# for backward compatibility: 1430ac_top_builddir=$ac_top_build_prefix 1431 1432case $srcdir in 1433 .) # We are building in place. 1434 ac_srcdir=. 1435 ac_top_srcdir=$ac_top_builddir_sub 1436 ac_abs_top_srcdir=$ac_pwd ;; 1437 [\\/]* | ?:[\\/]* ) # Absolute name. 1438 ac_srcdir=$srcdir$ac_dir_suffix; 1439 ac_top_srcdir=$srcdir 1440 ac_abs_top_srcdir=$srcdir ;; 1441 *) # Relative name. 1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1443 ac_top_srcdir=$ac_top_build_prefix$srcdir 1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1445esac 1446ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1447 1448 cd "$ac_dir" || { ac_status=$?; continue; } 1449 # Check for guested configure. 1450 if test -f "$ac_srcdir/configure.gnu"; then 1451 echo && 1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1453 elif test -f "$ac_srcdir/configure"; then 1454 echo && 1455 $SHELL "$ac_srcdir/configure" --help=recursive 1456 else 1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1458 fi || ac_status=$? 1459 cd "$ac_pwd" || { ac_status=$?; break; } 1460 done 1461fi 1462 1463test -n "$ac_init_help" && exit $ac_status 1464if $ac_init_version; then 1465 cat <<\_ACEOF 1466op configure 1.34 1467generated by GNU Autoconf 2.69 1468 1469Copyright (C) 2012 Free Software Foundation, Inc. 1470This configure script is free software; the Free Software Foundation 1471gives unlimited permission to copy, distribute and modify it. 1472_ACEOF 1473 exit 1474fi 1475 1476## ------------------------ ## 1477## Autoconf initialization. ## 1478## ------------------------ ## 1479 1480# ac_fn_c_try_compile LINENO 1481# -------------------------- 1482# Try to compile conftest.$ac_ext, and return whether this succeeded. 1483ac_fn_c_try_compile () 1484{ 1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1486 rm -f conftest.$ac_objext 1487 if { { ac_try="$ac_compile" 1488case "(($ac_try" in 1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1490 *) ac_try_echo=$ac_try;; 1491esac 1492eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1493$as_echo "$ac_try_echo"; } >&5 1494 (eval "$ac_compile") 2>conftest.err 1495 ac_status=$? 1496 if test -s conftest.err; then 1497 grep -v '^ *+' conftest.err >conftest.er1 1498 cat conftest.er1 >&5 1499 mv -f conftest.er1 conftest.err 1500 fi 1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1502 test $ac_status = 0; } && { 1503 test -z "$ac_c_werror_flag" || 1504 test ! -s conftest.err 1505 } && test -s conftest.$ac_objext; then : 1506 ac_retval=0 1507else 1508 $as_echo "$as_me: failed program was:" >&5 1509sed 's/^/| /' conftest.$ac_ext >&5 1510 1511 ac_retval=1 1512fi 1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1514 as_fn_set_status $ac_retval 1515 1516} # ac_fn_c_try_compile 1517 1518# ac_fn_c_try_cpp LINENO 1519# ---------------------- 1520# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1521ac_fn_c_try_cpp () 1522{ 1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1524 if { { ac_try="$ac_cpp conftest.$ac_ext" 1525case "(($ac_try" in 1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1527 *) ac_try_echo=$ac_try;; 1528esac 1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1530$as_echo "$ac_try_echo"; } >&5 1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1532 ac_status=$? 1533 if test -s conftest.err; then 1534 grep -v '^ *+' conftest.err >conftest.er1 1535 cat conftest.er1 >&5 1536 mv -f conftest.er1 conftest.err 1537 fi 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; } > conftest.i && { 1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1541 test ! -s conftest.err 1542 }; then : 1543 ac_retval=0 1544else 1545 $as_echo "$as_me: failed program was:" >&5 1546sed 's/^/| /' conftest.$ac_ext >&5 1547 1548 ac_retval=1 1549fi 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553} # ac_fn_c_try_cpp 1554 1555# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1556# ------------------------------------------------------- 1557# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1558# the include files in INCLUDES and setting the cache variable VAR 1559# accordingly. 1560ac_fn_c_check_header_mongrel () 1561{ 1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1563 if eval \${$3+:} false; then : 1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1565$as_echo_n "checking for $2... " >&6; } 1566if eval \${$3+:} false; then : 1567 $as_echo_n "(cached) " >&6 1568fi 1569eval ac_res=\$$3 1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1571$as_echo "$ac_res" >&6; } 1572else 1573 # Is the header compilable? 1574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1575$as_echo_n "checking $2 usability... " >&6; } 1576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1577/* end confdefs.h. */ 1578$4 1579#include <$2> 1580_ACEOF 1581if ac_fn_c_try_compile "$LINENO"; then : 1582 ac_header_compiler=yes 1583else 1584 ac_header_compiler=no 1585fi 1586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1588$as_echo "$ac_header_compiler" >&6; } 1589 1590# Is the header present? 1591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1592$as_echo_n "checking $2 presence... " >&6; } 1593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1594/* end confdefs.h. */ 1595#include <$2> 1596_ACEOF 1597if ac_fn_c_try_cpp "$LINENO"; then : 1598 ac_header_preproc=yes 1599else 1600 ac_header_preproc=no 1601fi 1602rm -f conftest.err conftest.i conftest.$ac_ext 1603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1604$as_echo "$ac_header_preproc" >&6; } 1605 1606# So? What about this header? 1607case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1608 yes:no: ) 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1610$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1612$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1613 ;; 1614 no:yes:* ) 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1616$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1618$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1620$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1622$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1624$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1625( $as_echo "## ------------------------------- ## 1626## Report this to alec@swapoff.org ## 1627## ------------------------------- ##" 1628 ) | sed "s/^/$as_me: WARNING: /" >&2 1629 ;; 1630esac 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1632$as_echo_n "checking for $2... " >&6; } 1633if eval \${$3+:} false; then : 1634 $as_echo_n "(cached) " >&6 1635else 1636 eval "$3=\$ac_header_compiler" 1637fi 1638eval ac_res=\$$3 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1640$as_echo "$ac_res" >&6; } 1641fi 1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1643 1644} # ac_fn_c_check_header_mongrel 1645 1646# ac_fn_c_try_run LINENO 1647# ---------------------- 1648# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1649# that executables *can* be run. 1650ac_fn_c_try_run () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 if { { ac_try="$ac_link" 1654case "(($ac_try" in 1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1656 *) ac_try_echo=$ac_try;; 1657esac 1658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1659$as_echo "$ac_try_echo"; } >&5 1660 (eval "$ac_link") 2>&5 1661 ac_status=$? 1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1664 { { case "(($ac_try" in 1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1666 *) ac_try_echo=$ac_try;; 1667esac 1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1669$as_echo "$ac_try_echo"; } >&5 1670 (eval "$ac_try") 2>&5 1671 ac_status=$? 1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1673 test $ac_status = 0; }; }; then : 1674 ac_retval=0 1675else 1676 $as_echo "$as_me: program exited with status $ac_status" >&5 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=$ac_status 1681fi 1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 as_fn_set_status $ac_retval 1685 1686} # ac_fn_c_try_run 1687 1688# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1689# ------------------------------------------------------- 1690# Tests whether HEADER exists and can be compiled using the include files in 1691# INCLUDES, setting the cache variable VAR accordingly. 1692ac_fn_c_check_header_compile () 1693{ 1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1696$as_echo_n "checking for $2... " >&6; } 1697if eval \${$3+:} false; then : 1698 $as_echo_n "(cached) " >&6 1699else 1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1701/* end confdefs.h. */ 1702$4 1703#include <$2> 1704_ACEOF 1705if ac_fn_c_try_compile "$LINENO"; then : 1706 eval "$3=yes" 1707else 1708 eval "$3=no" 1709fi 1710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1711fi 1712eval ac_res=\$$3 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1714$as_echo "$ac_res" >&6; } 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 1717} # ac_fn_c_check_header_compile 1718 1719# ac_fn_c_try_link LINENO 1720# ----------------------- 1721# Try to link conftest.$ac_ext, and return whether this succeeded. 1722ac_fn_c_try_link () 1723{ 1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1725 rm -f conftest.$ac_objext conftest$ac_exeext 1726 if { { ac_try="$ac_link" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_link") 2>conftest.err 1734 ac_status=$? 1735 if test -s conftest.err; then 1736 grep -v '^ *+' conftest.err >conftest.er1 1737 cat conftest.er1 >&5 1738 mv -f conftest.er1 conftest.err 1739 fi 1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1741 test $ac_status = 0; } && { 1742 test -z "$ac_c_werror_flag" || 1743 test ! -s conftest.err 1744 } && test -s conftest$ac_exeext && { 1745 test "$cross_compiling" = yes || 1746 test -x conftest$ac_exeext 1747 }; then : 1748 ac_retval=0 1749else 1750 $as_echo "$as_me: failed program was:" >&5 1751sed 's/^/| /' conftest.$ac_ext >&5 1752 1753 ac_retval=1 1754fi 1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1757 # interfere with the next link command; also delete a directory that is 1758 # left behind by Apple's compiler. We do this before executing the actions. 1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_link 1764 1765# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1766# ------------------------------------------- 1767# Tests whether TYPE exists after having included INCLUDES, setting cache 1768# variable VAR accordingly. 1769ac_fn_c_check_type () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1773$as_echo_n "checking for $2... " >&6; } 1774if eval \${$3+:} false; then : 1775 $as_echo_n "(cached) " >&6 1776else 1777 eval "$3=no" 1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779/* end confdefs.h. */ 1780$4 1781int 1782main () 1783{ 1784if (sizeof ($2)) 1785 return 0; 1786 ; 1787 return 0; 1788} 1789_ACEOF 1790if ac_fn_c_try_compile "$LINENO"; then : 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793$4 1794int 1795main () 1796{ 1797if (sizeof (($2))) 1798 return 0; 1799 ; 1800 return 0; 1801} 1802_ACEOF 1803if ac_fn_c_try_compile "$LINENO"; then : 1804 1805else 1806 eval "$3=yes" 1807fi 1808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1809fi 1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811fi 1812eval ac_res=\$$3 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1814$as_echo "$ac_res" >&6; } 1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1816 1817} # ac_fn_c_check_type 1818 1819# ac_fn_c_check_func LINENO FUNC VAR 1820# ---------------------------------- 1821# Tests whether FUNC exists, setting the cache variable VAR accordingly 1822ac_fn_c_check_func () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1826$as_echo_n "checking for $2... " >&6; } 1827if eval \${$3+:} false; then : 1828 $as_echo_n "(cached) " >&6 1829else 1830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1831/* end confdefs.h. */ 1832/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1833 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1834#define $2 innocuous_$2 1835 1836/* System header to define __stub macros and hopefully few prototypes, 1837 which can conflict with char $2 (); below. 1838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1839 <limits.h> exists even on freestanding compilers. */ 1840 1841#ifdef __STDC__ 1842# include <limits.h> 1843#else 1844# include <assert.h> 1845#endif 1846 1847#undef $2 1848 1849/* Override any GCC internal prototype to avoid an error. 1850 Use char because int might match the return type of a GCC 1851 builtin and then its argument prototype would still apply. */ 1852#ifdef __cplusplus 1853extern "C" 1854#endif 1855char $2 (); 1856/* The GNU C library defines this for functions which it implements 1857 to always fail with ENOSYS. Some functions are actually named 1858 something starting with __ and the normal name is an alias. */ 1859#if defined __stub_$2 || defined __stub___$2 1860choke me 1861#endif 1862 1863int 1864main () 1865{ 1866return $2 (); 1867 ; 1868 return 0; 1869} 1870_ACEOF 1871if ac_fn_c_try_link "$LINENO"; then : 1872 eval "$3=yes" 1873else 1874 eval "$3=no" 1875fi 1876rm -f core conftest.err conftest.$ac_objext \ 1877 conftest$ac_exeext conftest.$ac_ext 1878fi 1879eval ac_res=\$$3 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1881$as_echo "$ac_res" >&6; } 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1883 1884} # ac_fn_c_check_func 1885cat >config.log <<_ACEOF 1886This file contains any messages produced by compilers while 1887running configure, to aid debugging if configure makes a mistake. 1888 1889It was created by op $as_me 1.34, which was 1890generated by GNU Autoconf 2.69. Invocation command line was 1891 1892 $ $0 $@ 1893 1894_ACEOF 1895exec 5>>config.log 1896{ 1897cat <<_ASUNAME 1898## --------- ## 1899## Platform. ## 1900## --------- ## 1901 1902hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1903uname -m = `(uname -m) 2>/dev/null || echo unknown` 1904uname -r = `(uname -r) 2>/dev/null || echo unknown` 1905uname -s = `(uname -s) 2>/dev/null || echo unknown` 1906uname -v = `(uname -v) 2>/dev/null || echo unknown` 1907 1908/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1909/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1910 1911/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1912/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1913/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1914/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1915/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1916/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1917/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1918 1919_ASUNAME 1920 1921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1922for as_dir in $PATH 1923do 1924 IFS=$as_save_IFS 1925 test -z "$as_dir" && as_dir=. 1926 $as_echo "PATH: $as_dir" 1927 done 1928IFS=$as_save_IFS 1929 1930} >&5 1931 1932cat >&5 <<_ACEOF 1933 1934 1935## ----------- ## 1936## Core tests. ## 1937## ----------- ## 1938 1939_ACEOF 1940 1941 1942# Keep a trace of the command line. 1943# Strip out --no-create and --no-recursion so they do not pile up. 1944# Strip out --silent because we don't want to record it for future runs. 1945# Also quote any args containing shell meta-characters. 1946# Make two passes to allow for proper duplicate-argument suppression. 1947ac_configure_args= 1948ac_configure_args0= 1949ac_configure_args1= 1950ac_must_keep_next=false 1951for ac_pass in 1 2 1952do 1953 for ac_arg 1954 do 1955 case $ac_arg in 1956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1958 | -silent | --silent | --silen | --sile | --sil) 1959 continue ;; 1960 *\'*) 1961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1962 esac 1963 case $ac_pass in 1964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1965 2) 1966 as_fn_append ac_configure_args1 " '$ac_arg'" 1967 if test $ac_must_keep_next = true; then 1968 ac_must_keep_next=false # Got value, back to normal. 1969 else 1970 case $ac_arg in 1971 *=* | --config-cache | -C | -disable-* | --disable-* \ 1972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1974 | -with-* | --with-* | -without-* | --without-* | --x) 1975 case "$ac_configure_args0 " in 1976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1977 esac 1978 ;; 1979 -* ) ac_must_keep_next=true ;; 1980 esac 1981 fi 1982 as_fn_append ac_configure_args " '$ac_arg'" 1983 ;; 1984 esac 1985 done 1986done 1987{ ac_configure_args0=; unset ac_configure_args0;} 1988{ ac_configure_args1=; unset ac_configure_args1;} 1989 1990# When interrupted or exit'd, cleanup temporary files, and complete 1991# config.log. We remove comments because anyway the quotes in there 1992# would cause problems or look ugly. 1993# WARNING: Use '\'' to represent an apostrophe within the trap. 1994# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1995trap 'exit_status=$? 1996 # Save into config.log some information that might help in debugging. 1997 { 1998 echo 1999 2000 $as_echo "## ---------------- ## 2001## Cache variables. ## 2002## ---------------- ##" 2003 echo 2004 # The following way of writing the cache mishandles newlines in values, 2005( 2006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2007 eval ac_val=\$$ac_var 2008 case $ac_val in #( 2009 *${as_nl}*) 2010 case $ac_var in #( 2011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2012$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2013 esac 2014 case $ac_var in #( 2015 _ | IFS | as_nl) ;; #( 2016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2017 *) { eval $ac_var=; unset $ac_var;} ;; 2018 esac ;; 2019 esac 2020 done 2021 (set) 2>&1 | 2022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2023 *${as_nl}ac_space=\ *) 2024 sed -n \ 2025 "s/'\''/'\''\\\\'\'''\''/g; 2026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2027 ;; #( 2028 *) 2029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2030 ;; 2031 esac | 2032 sort 2033) 2034 echo 2035 2036 $as_echo "## ----------------- ## 2037## Output variables. ## 2038## ----------------- ##" 2039 echo 2040 for ac_var in $ac_subst_vars 2041 do 2042 eval ac_val=\$$ac_var 2043 case $ac_val in 2044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2045 esac 2046 $as_echo "$ac_var='\''$ac_val'\''" 2047 done | sort 2048 echo 2049 2050 if test -n "$ac_subst_files"; then 2051 $as_echo "## ------------------- ## 2052## File substitutions. ## 2053## ------------------- ##" 2054 echo 2055 for ac_var in $ac_subst_files 2056 do 2057 eval ac_val=\$$ac_var 2058 case $ac_val in 2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2060 esac 2061 $as_echo "$ac_var='\''$ac_val'\''" 2062 done | sort 2063 echo 2064 fi 2065 2066 if test -s confdefs.h; then 2067 $as_echo "## ----------- ## 2068## confdefs.h. ## 2069## ----------- ##" 2070 echo 2071 cat confdefs.h 2072 echo 2073 fi 2074 test "$ac_signal" != 0 && 2075 $as_echo "$as_me: caught signal $ac_signal" 2076 $as_echo "$as_me: exit $exit_status" 2077 } >&5 2078 rm -f core *.core core.conftest.* && 2079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2080 exit $exit_status 2081' 0 2082for ac_signal in 1 2 13 15; do 2083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2084done 2085ac_signal=0 2086 2087# confdefs.h avoids OS command line length limits that DEFS can exceed. 2088rm -f -r conftest* confdefs.h 2089 2090$as_echo "/* confdefs.h */" > confdefs.h 2091 2092# Predefined preprocessor variables. 2093 2094cat >>confdefs.h <<_ACEOF 2095#define PACKAGE_NAME "$PACKAGE_NAME" 2096_ACEOF 2097 2098cat >>confdefs.h <<_ACEOF 2099#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2100_ACEOF 2101 2102cat >>confdefs.h <<_ACEOF 2103#define PACKAGE_VERSION "$PACKAGE_VERSION" 2104_ACEOF 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_STRING "$PACKAGE_STRING" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_URL "$PACKAGE_URL" 2116_ACEOF 2117 2118 2119# Let the site file select an alternate cache file if it wants to. 2120# Prefer an explicitly selected file to automatically selected ones. 2121ac_site_file1=NONE 2122ac_site_file2=NONE 2123if test -n "$CONFIG_SITE"; then 2124 # We do not want a PATH search for config.site. 2125 case $CONFIG_SITE in #(( 2126 -*) ac_site_file1=./$CONFIG_SITE;; 2127 */*) ac_site_file1=$CONFIG_SITE;; 2128 *) ac_site_file1=./$CONFIG_SITE;; 2129 esac 2130elif test "x$prefix" != xNONE; then 2131 ac_site_file1=$prefix/share/config.site 2132 ac_site_file2=$prefix/etc/config.site 2133else 2134 ac_site_file1=$ac_default_prefix/share/config.site 2135 ac_site_file2=$ac_default_prefix/etc/config.site 2136fi 2137for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2138do 2139 test "x$ac_site_file" = xNONE && continue 2140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2142$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2143 sed 's/^/| /' "$ac_site_file" >&5 2144 . "$ac_site_file" \ 2145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2147as_fn_error $? "failed to load site script $ac_site_file 2148See \`config.log' for more details" "$LINENO" 5; } 2149 fi 2150done 2151 2152if test -r "$cache_file"; then 2153 # Some versions of bash will fail to source /dev/null (special files 2154 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2157$as_echo "$as_me: loading cache $cache_file" >&6;} 2158 case $cache_file in 2159 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2160 *) . "./$cache_file";; 2161 esac 2162 fi 2163else 2164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2165$as_echo "$as_me: creating cache $cache_file" >&6;} 2166 >$cache_file 2167fi 2168 2169# Check that the precious variables saved in the cache have kept the same 2170# value. 2171ac_cache_corrupted=false 2172for ac_var in $ac_precious_vars; do 2173 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2174 eval ac_new_set=\$ac_env_${ac_var}_set 2175 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2176 eval ac_new_val=\$ac_env_${ac_var}_value 2177 case $ac_old_set,$ac_new_set in 2178 set,) 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2180$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2181 ac_cache_corrupted=: ;; 2182 ,set) 2183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2184$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2185 ac_cache_corrupted=: ;; 2186 ,);; 2187 *) 2188 if test "x$ac_old_val" != "x$ac_new_val"; then 2189 # differences in whitespace do not lead to failure. 2190 ac_old_val_w=`echo x $ac_old_val` 2191 ac_new_val_w=`echo x $ac_new_val` 2192 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2194$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2195 ac_cache_corrupted=: 2196 else 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2198$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2199 eval $ac_var=\$ac_old_val 2200 fi 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2202$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2204$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2205 fi;; 2206 esac 2207 # Pass precious variables to config.status. 2208 if test "$ac_new_set" = set; then 2209 case $ac_new_val in 2210 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2211 *) ac_arg=$ac_var=$ac_new_val ;; 2212 esac 2213 case " $ac_configure_args " in 2214 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2215 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2216 esac 2217 fi 2218done 2219if $ac_cache_corrupted; then 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2222 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2223$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2224 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2225fi 2226## -------------------- ## 2227## Main body of script. ## 2228## -------------------- ## 2229 2230ac_ext=c 2231ac_cpp='$CPP $CPPFLAGS' 2232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2234ac_compiler_gnu=$ac_cv_c_compiler_gnu 2235 2236 2237ac_aux_dir= 2238for ac_dir in build-aux "$srcdir"/build-aux; do 2239 if test -f "$ac_dir/install-sh"; then 2240 ac_aux_dir=$ac_dir 2241 ac_install_sh="$ac_aux_dir/install-sh -c" 2242 break 2243 elif test -f "$ac_dir/install.sh"; then 2244 ac_aux_dir=$ac_dir 2245 ac_install_sh="$ac_aux_dir/install.sh -c" 2246 break 2247 elif test -f "$ac_dir/shtool"; then 2248 ac_aux_dir=$ac_dir 2249 ac_install_sh="$ac_aux_dir/shtool install -c" 2250 break 2251 fi 2252done 2253if test -z "$ac_aux_dir"; then 2254 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2255fi 2256 2257# These three variables are undocumented and unsupported, 2258# and are intended to be withdrawn in a future Autoconf release. 2259# They can cause serious problems if a builder's source tree is in a directory 2260# whose full name contains unusual characters. 2261ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2262ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2263ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2264 2265 2266 2267 2268ac_config_headers="$ac_config_headers config.h" 2269 2270am__api_version='1.13' 2271 2272# Find a good install program. We prefer a C program (faster), 2273# so one script is as good as another. But avoid the broken or 2274# incompatible versions: 2275# SysV /etc/install, /usr/sbin/install 2276# SunOS /usr/etc/install 2277# IRIX /sbin/install 2278# AIX /bin/install 2279# AmigaOS /C/install, which installs bootblocks on floppy discs 2280# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2281# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2282# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2283# OS/2's system install, which has a completely different semantic 2284# ./install, which can be erroneously created by make from ./install.sh. 2285# Reject install programs that cannot install multiple files. 2286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2287$as_echo_n "checking for a BSD-compatible install... " >&6; } 2288if test -z "$INSTALL"; then 2289if ${ac_cv_path_install+:} false; then : 2290 $as_echo_n "(cached) " >&6 2291else 2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2293for as_dir in $PATH 2294do 2295 IFS=$as_save_IFS 2296 test -z "$as_dir" && as_dir=. 2297 # Account for people who put trailing slashes in PATH elements. 2298case $as_dir/ in #(( 2299 ./ | .// | /[cC]/* | \ 2300 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2301 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2302 /usr/ucb/* ) ;; 2303 *) 2304 # OSF1 and SCO ODT 3.0 have their own names for install. 2305 # Don't use installbsd from OSF since it installs stuff as root 2306 # by default. 2307 for ac_prog in ginstall scoinst install; do 2308 for ac_exec_ext in '' $ac_executable_extensions; do 2309 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2310 if test $ac_prog = install && 2311 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2312 # AIX install. It has an incompatible calling convention. 2313 : 2314 elif test $ac_prog = install && 2315 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2316 # program-specific install script used by HP pwplus--don't use. 2317 : 2318 else 2319 rm -rf conftest.one conftest.two conftest.dir 2320 echo one > conftest.one 2321 echo two > conftest.two 2322 mkdir conftest.dir 2323 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2324 test -s conftest.one && test -s conftest.two && 2325 test -s conftest.dir/conftest.one && 2326 test -s conftest.dir/conftest.two 2327 then 2328 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2329 break 3 2330 fi 2331 fi 2332 fi 2333 done 2334 done 2335 ;; 2336esac 2337 2338 done 2339IFS=$as_save_IFS 2340 2341rm -rf conftest.one conftest.two conftest.dir 2342 2343fi 2344 if test "${ac_cv_path_install+set}" = set; then 2345 INSTALL=$ac_cv_path_install 2346 else 2347 # As a last resort, use the slow shell script. Don't cache a 2348 # value for INSTALL within a source directory, because that will 2349 # break other packages using the cache if that directory is 2350 # removed, or if the value is a relative name. 2351 INSTALL=$ac_install_sh 2352 fi 2353fi 2354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2355$as_echo "$INSTALL" >&6; } 2356 2357# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2358# It thinks the first close brace ends the variable substitution. 2359test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2360 2361test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2362 2363test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2364 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2366$as_echo_n "checking whether build environment is sane... " >&6; } 2367# Reject unsafe characters in $srcdir or the absolute working directory 2368# name. Accept space and tab only in the latter. 2369am_lf=' 2370' 2371case `pwd` in 2372 *[\\\"\#\$\&\'\`$am_lf]*) 2373 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2374esac 2375case $srcdir in 2376 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2377 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2378esac 2379 2380# Do 'set' in a subshell so we don't clobber the current shell's 2381# arguments. Must try -L first in case configure is actually a 2382# symlink; some systems play weird games with the mod time of symlinks 2383# (eg FreeBSD returns the mod time of the symlink's containing 2384# directory). 2385if ( 2386 am_has_slept=no 2387 for am_try in 1 2; do 2388 echo "timestamp, slept: $am_has_slept" > conftest.file 2389 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2390 if test "$*" = "X"; then 2391 # -L didn't work. 2392 set X `ls -t "$srcdir/configure" conftest.file` 2393 fi 2394 if test "$*" != "X $srcdir/configure conftest.file" \ 2395 && test "$*" != "X conftest.file $srcdir/configure"; then 2396 2397 # If neither matched, then we have a broken ls. This can happen 2398 # if, for instance, CONFIG_SHELL is bash and it inherits a 2399 # broken ls alias from the environment. This has actually 2400 # happened. Such a system could not be considered "sane". 2401 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2402 alias in your environment" "$LINENO" 5 2403 fi 2404 if test "$2" = conftest.file || test $am_try -eq 2; then 2405 break 2406 fi 2407 # Just in case. 2408 sleep 1 2409 am_has_slept=yes 2410 done 2411 test "$2" = conftest.file 2412 ) 2413then 2414 # Ok. 2415 : 2416else 2417 as_fn_error $? "newly created file is older than distributed files! 2418Check your system clock" "$LINENO" 5 2419fi 2420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2421$as_echo "yes" >&6; } 2422# If we didn't sleep, we still need to ensure time stamps of config.status and 2423# generated files are strictly newer. 2424am_sleep_pid= 2425if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2426 ( sleep 1 ) & 2427 am_sleep_pid=$! 2428fi 2429 2430rm -f conftest.file 2431 2432test "$program_prefix" != NONE && 2433 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2434# Use a double $ so make ignores it. 2435test "$program_suffix" != NONE && 2436 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2437# Double any \ or $. 2438# By default was `s,x,x', remove it if useless. 2439ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2440program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2441 2442# expand $ac_aux_dir to an absolute path 2443am_aux_dir=`cd $ac_aux_dir && pwd` 2444 2445if test x"${MISSING+set}" != xset; then 2446 case $am_aux_dir in 2447 *\ * | *\ *) 2448 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2449 *) 2450 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2451 esac 2452fi 2453# Use eval to expand $SHELL 2454if eval "$MISSING --is-lightweight"; then 2455 am_missing_run="$MISSING " 2456else 2457 am_missing_run= 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2459$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2460fi 2461 2462if test x"${install_sh}" != xset; then 2463 case $am_aux_dir in 2464 *\ * | *\ *) 2465 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2466 *) 2467 install_sh="\${SHELL} $am_aux_dir/install-sh" 2468 esac 2469fi 2470 2471# Installed binaries are usually stripped using 'strip' when the user 2472# run "make install-strip". However 'strip' might not be the right 2473# tool to use in cross-compilation environments, therefore Automake 2474# will honor the 'STRIP' environment variable to overrule this program. 2475if test "$cross_compiling" != no; then 2476 if test -n "$ac_tool_prefix"; then 2477 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2478set dummy ${ac_tool_prefix}strip; ac_word=$2 2479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2480$as_echo_n "checking for $ac_word... " >&6; } 2481if ${ac_cv_prog_STRIP+:} false; then : 2482 $as_echo_n "(cached) " >&6 2483else 2484 if test -n "$STRIP"; then 2485 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2486else 2487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2488for as_dir in $PATH 2489do 2490 IFS=$as_save_IFS 2491 test -z "$as_dir" && as_dir=. 2492 for ac_exec_ext in '' $ac_executable_extensions; do 2493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2494 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2496 break 2 2497 fi 2498done 2499 done 2500IFS=$as_save_IFS 2501 2502fi 2503fi 2504STRIP=$ac_cv_prog_STRIP 2505if test -n "$STRIP"; then 2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2507$as_echo "$STRIP" >&6; } 2508else 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2510$as_echo "no" >&6; } 2511fi 2512 2513 2514fi 2515if test -z "$ac_cv_prog_STRIP"; then 2516 ac_ct_STRIP=$STRIP 2517 # Extract the first word of "strip", so it can be a program name with args. 2518set dummy strip; ac_word=$2 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2520$as_echo_n "checking for $ac_word... " >&6; } 2521if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2522 $as_echo_n "(cached) " >&6 2523else 2524 if test -n "$ac_ct_STRIP"; then 2525 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2526else 2527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2528for as_dir in $PATH 2529do 2530 IFS=$as_save_IFS 2531 test -z "$as_dir" && as_dir=. 2532 for ac_exec_ext in '' $ac_executable_extensions; do 2533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2534 ac_cv_prog_ac_ct_STRIP="strip" 2535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2536 break 2 2537 fi 2538done 2539 done 2540IFS=$as_save_IFS 2541 2542fi 2543fi 2544ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2545if test -n "$ac_ct_STRIP"; then 2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2547$as_echo "$ac_ct_STRIP" >&6; } 2548else 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2550$as_echo "no" >&6; } 2551fi 2552 2553 if test "x$ac_ct_STRIP" = x; then 2554 STRIP=":" 2555 else 2556 case $cross_compiling:$ac_tool_warned in 2557yes:) 2558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2560ac_tool_warned=yes ;; 2561esac 2562 STRIP=$ac_ct_STRIP 2563 fi 2564else 2565 STRIP="$ac_cv_prog_STRIP" 2566fi 2567 2568fi 2569INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2570 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2572$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2573if test -z "$MKDIR_P"; then 2574 if ${ac_cv_path_mkdir+:} false; then : 2575 $as_echo_n "(cached) " >&6 2576else 2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2578for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2579do 2580 IFS=$as_save_IFS 2581 test -z "$as_dir" && as_dir=. 2582 for ac_prog in mkdir gmkdir; do 2583 for ac_exec_ext in '' $ac_executable_extensions; do 2584 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2585 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2586 'mkdir (GNU coreutils) '* | \ 2587 'mkdir (coreutils) '* | \ 2588 'mkdir (fileutils) '4.1*) 2589 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2590 break 3;; 2591 esac 2592 done 2593 done 2594 done 2595IFS=$as_save_IFS 2596 2597fi 2598 2599 test -d ./--version && rmdir ./--version 2600 if test "${ac_cv_path_mkdir+set}" = set; then 2601 MKDIR_P="$ac_cv_path_mkdir -p" 2602 else 2603 # As a last resort, use the slow shell script. Don't cache a 2604 # value for MKDIR_P within a source directory, because that will 2605 # break other packages using the cache if that directory is 2606 # removed, or if the value is a relative name. 2607 MKDIR_P="$ac_install_sh -d" 2608 fi 2609fi 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2611$as_echo "$MKDIR_P" >&6; } 2612 2613for ac_prog in gawk mawk nawk awk 2614do 2615 # Extract the first word of "$ac_prog", so it can be a program name with args. 2616set dummy $ac_prog; ac_word=$2 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2618$as_echo_n "checking for $ac_word... " >&6; } 2619if ${ac_cv_prog_AWK+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 if test -n "$AWK"; then 2623 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2624else 2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2632 ac_cv_prog_AWK="$ac_prog" 2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2634 break 2 2635 fi 2636done 2637 done 2638IFS=$as_save_IFS 2639 2640fi 2641fi 2642AWK=$ac_cv_prog_AWK 2643if test -n "$AWK"; then 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2645$as_echo "$AWK" >&6; } 2646else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2648$as_echo "no" >&6; } 2649fi 2650 2651 2652 test -n "$AWK" && break 2653done 2654 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2656$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2657set x ${MAKE-make} 2658ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2659if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2660 $as_echo_n "(cached) " >&6 2661else 2662 cat >conftest.make <<\_ACEOF 2663SHELL = /bin/sh 2664all: 2665 @echo '@@@%%%=$(MAKE)=@@@%%%' 2666_ACEOF 2667# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2668case `${MAKE-make} -f conftest.make 2>/dev/null` in 2669 *@@@%%%=?*=@@@%%%*) 2670 eval ac_cv_prog_make_${ac_make}_set=yes;; 2671 *) 2672 eval ac_cv_prog_make_${ac_make}_set=no;; 2673esac 2674rm -f conftest.make 2675fi 2676if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2678$as_echo "yes" >&6; } 2679 SET_MAKE= 2680else 2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2682$as_echo "no" >&6; } 2683 SET_MAKE="MAKE=${MAKE-make}" 2684fi 2685 2686rm -rf .tst 2>/dev/null 2687mkdir .tst 2>/dev/null 2688if test -d .tst; then 2689 am__leading_dot=. 2690else 2691 am__leading_dot=_ 2692fi 2693rmdir .tst 2>/dev/null 2694 2695# Check whether --enable-silent-rules was given. 2696if test "${enable_silent_rules+set}" = set; then : 2697 enableval=$enable_silent_rules; 2698fi 2699 2700case $enable_silent_rules in # ((( 2701 yes) AM_DEFAULT_VERBOSITY=0;; 2702 no) AM_DEFAULT_VERBOSITY=1;; 2703 *) AM_DEFAULT_VERBOSITY=1;; 2704esac 2705am_make=${MAKE-make} 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2707$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2708if ${am_cv_make_support_nested_variables+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 if $as_echo 'TRUE=$(BAR$(V)) 2712BAR0=false 2713BAR1=true 2714V=1 2715am__doit: 2716 @$(TRUE) 2717.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2718 am_cv_make_support_nested_variables=yes 2719else 2720 am_cv_make_support_nested_variables=no 2721fi 2722fi 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2724$as_echo "$am_cv_make_support_nested_variables" >&6; } 2725if test $am_cv_make_support_nested_variables = yes; then 2726 AM_V='$(V)' 2727 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2728else 2729 AM_V=$AM_DEFAULT_VERBOSITY 2730 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2731fi 2732AM_BACKSLASH='\' 2733 2734if test "`cd $srcdir && pwd`" != "`pwd`"; then 2735 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2736 # is not polluted with repeated "-I." 2737 am__isrc=' -I$(srcdir)' 2738 # test to see if srcdir already configured 2739 if test -f $srcdir/config.status; then 2740 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2741 fi 2742fi 2743 2744# test whether we have cygpath 2745if test -z "$CYGPATH_W"; then 2746 if (cygpath --version) >/dev/null 2>/dev/null; then 2747 CYGPATH_W='cygpath -w' 2748 else 2749 CYGPATH_W=echo 2750 fi 2751fi 2752 2753 2754# Define the identity of the package. 2755 PACKAGE='op' 2756 VERSION='1.34' 2757 2758 2759cat >>confdefs.h <<_ACEOF 2760#define PACKAGE "$PACKAGE" 2761_ACEOF 2762 2763 2764cat >>confdefs.h <<_ACEOF 2765#define VERSION "$VERSION" 2766_ACEOF 2767 2768# Some tools Automake needs. 2769 2770ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2771 2772 2773AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2774 2775 2776AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2777 2778 2779AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2780 2781 2782MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2783 2784# For better backward compatibility. To be removed once Automake 1.9.x 2785# dies out for good. For more background, see: 2786# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2787# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2788mkdir_p='$(MKDIR_P)' 2789 2790# We need awk for the "check" target. The system "awk" is bad on 2791# some platforms. 2792# Always define AMTAR for backward compatibility. Yes, it's still used 2793# in the wild :-( We should find a proper way to deprecate it ... 2794AMTAR='$${TAR-tar}' 2795 2796 2797# We'll loop over all known methods to create a tar archive until one works. 2798_am_tools='gnutar pax cpio none' 2799 2800am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2801 2802 2803 2804 2805 2806 2807ac_config_files="$ac_config_files Makefile op.list" 2808 2809 2810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2811$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2812 # Check whether --enable-maintainer-mode was given. 2813if test "${enable_maintainer_mode+set}" = set; then : 2814 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2815else 2816 USE_MAINTAINER_MODE=no 2817fi 2818 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2820$as_echo "$USE_MAINTAINER_MODE" >&6; } 2821 if test $USE_MAINTAINER_MODE = yes; then 2822 MAINTAINER_MODE_TRUE= 2823 MAINTAINER_MODE_FALSE='#' 2824else 2825 MAINTAINER_MODE_TRUE='#' 2826 MAINTAINER_MODE_FALSE= 2827fi 2828 2829 MAINT=$MAINTAINER_MODE_TRUE 2830 2831 2832# Make sure we can run config.sub. 2833$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2834 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2835 2836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2837$as_echo_n "checking build system type... " >&6; } 2838if ${ac_cv_build+:} false; then : 2839 $as_echo_n "(cached) " >&6 2840else 2841 ac_build_alias=$build_alias 2842test "x$ac_build_alias" = x && 2843 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2844test "x$ac_build_alias" = x && 2845 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2846ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2848 2849fi 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2851$as_echo "$ac_cv_build" >&6; } 2852case $ac_cv_build in 2853*-*-*) ;; 2854*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2855esac 2856build=$ac_cv_build 2857ac_save_IFS=$IFS; IFS='-' 2858set x $ac_cv_build 2859shift 2860build_cpu=$1 2861build_vendor=$2 2862shift; shift 2863# Remember, the first character of IFS is used to create $*, 2864# except with old shells: 2865build_os=$* 2866IFS=$ac_save_IFS 2867case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2868 2869 2870DEPDIR="${am__leading_dot}deps" 2871 2872ac_config_commands="$ac_config_commands depfiles" 2873 2874 2875am_make=${MAKE-make} 2876cat > confinc << 'END' 2877am__doit: 2878 @echo this is the am__doit target 2879.PHONY: am__doit 2880END 2881# If we don't find an include directive, just comment out the code. 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2883$as_echo_n "checking for style of include used by $am_make... " >&6; } 2884am__include="#" 2885am__quote= 2886_am_result=none 2887# First try GNU make style include. 2888echo "include confinc" > confmf 2889# Ignore all kinds of additional output from 'make'. 2890case `$am_make -s -f confmf 2> /dev/null` in #( 2891*the\ am__doit\ target*) 2892 am__include=include 2893 am__quote= 2894 _am_result=GNU 2895 ;; 2896esac 2897# Now try BSD make style include. 2898if test "$am__include" = "#"; then 2899 echo '.include "confinc"' > confmf 2900 case `$am_make -s -f confmf 2> /dev/null` in #( 2901 *the\ am__doit\ target*) 2902 am__include=.include 2903 am__quote="\"" 2904 _am_result=BSD 2905 ;; 2906 esac 2907fi 2908 2909 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2911$as_echo "$_am_result" >&6; } 2912rm -f confinc confmf 2913 2914# Check whether --enable-dependency-tracking was given. 2915if test "${enable_dependency_tracking+set}" = set; then : 2916 enableval=$enable_dependency_tracking; 2917fi 2918 2919if test "x$enable_dependency_tracking" != xno; then 2920 am_depcomp="$ac_aux_dir/depcomp" 2921 AMDEPBACKSLASH='\' 2922 am__nodep='_no' 2923fi 2924 if test "x$enable_dependency_tracking" != xno; then 2925 AMDEP_TRUE= 2926 AMDEP_FALSE='#' 2927else 2928 AMDEP_TRUE='#' 2929 AMDEP_FALSE= 2930fi 2931 2932 2933ac_ext=c 2934ac_cpp='$CPP $CPPFLAGS' 2935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2937ac_compiler_gnu=$ac_cv_c_compiler_gnu 2938if test -n "$ac_tool_prefix"; then 2939 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2940set dummy ${ac_tool_prefix}gcc; ac_word=$2 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2942$as_echo_n "checking for $ac_word... " >&6; } 2943if ${ac_cv_prog_CC+:} false; then : 2944 $as_echo_n "(cached) " >&6 2945else 2946 if test -n "$CC"; then 2947 ac_cv_prog_CC="$CC" # Let the user override the test. 2948else 2949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2950for as_dir in $PATH 2951do 2952 IFS=$as_save_IFS 2953 test -z "$as_dir" && as_dir=. 2954 for ac_exec_ext in '' $ac_executable_extensions; do 2955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2956 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2958 break 2 2959 fi 2960done 2961 done 2962IFS=$as_save_IFS 2963 2964fi 2965fi 2966CC=$ac_cv_prog_CC 2967if test -n "$CC"; then 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2969$as_echo "$CC" >&6; } 2970else 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2972$as_echo "no" >&6; } 2973fi 2974 2975 2976fi 2977if test -z "$ac_cv_prog_CC"; then 2978 ac_ct_CC=$CC 2979 # Extract the first word of "gcc", so it can be a program name with args. 2980set dummy gcc; ac_word=$2 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2982$as_echo_n "checking for $ac_word... " >&6; } 2983if ${ac_cv_prog_ac_ct_CC+:} false; then : 2984 $as_echo_n "(cached) " >&6 2985else 2986 if test -n "$ac_ct_CC"; then 2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2988else 2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990for as_dir in $PATH 2991do 2992 IFS=$as_save_IFS 2993 test -z "$as_dir" && as_dir=. 2994 for ac_exec_ext in '' $ac_executable_extensions; do 2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2996 ac_cv_prog_ac_ct_CC="gcc" 2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2998 break 2 2999 fi 3000done 3001 done 3002IFS=$as_save_IFS 3003 3004fi 3005fi 3006ac_ct_CC=$ac_cv_prog_ac_ct_CC 3007if test -n "$ac_ct_CC"; then 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3009$as_echo "$ac_ct_CC" >&6; } 3010else 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3012$as_echo "no" >&6; } 3013fi 3014 3015 if test "x$ac_ct_CC" = x; then 3016 CC="" 3017 else 3018 case $cross_compiling:$ac_tool_warned in 3019yes:) 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3022ac_tool_warned=yes ;; 3023esac 3024 CC=$ac_ct_CC 3025 fi 3026else 3027 CC="$ac_cv_prog_CC" 3028fi 3029 3030if test -z "$CC"; then 3031 if test -n "$ac_tool_prefix"; then 3032 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3033set dummy ${ac_tool_prefix}cc; ac_word=$2 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035$as_echo_n "checking for $ac_word... " >&6; } 3036if ${ac_cv_prog_CC+:} false; then : 3037 $as_echo_n "(cached) " >&6 3038else 3039 if test -n "$CC"; then 3040 ac_cv_prog_CC="$CC" # Let the user override the test. 3041else 3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3043for as_dir in $PATH 3044do 3045 IFS=$as_save_IFS 3046 test -z "$as_dir" && as_dir=. 3047 for ac_exec_ext in '' $ac_executable_extensions; do 3048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3049 ac_cv_prog_CC="${ac_tool_prefix}cc" 3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 break 2 3052 fi 3053done 3054 done 3055IFS=$as_save_IFS 3056 3057fi 3058fi 3059CC=$ac_cv_prog_CC 3060if test -n "$CC"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3062$as_echo "$CC" >&6; } 3063else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065$as_echo "no" >&6; } 3066fi 3067 3068 3069 fi 3070fi 3071if test -z "$CC"; then 3072 # Extract the first word of "cc", so it can be a program name with args. 3073set dummy cc; ac_word=$2 3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3075$as_echo_n "checking for $ac_word... " >&6; } 3076if ${ac_cv_prog_CC+:} false; then : 3077 $as_echo_n "(cached) " >&6 3078else 3079 if test -n "$CC"; then 3080 ac_cv_prog_CC="$CC" # Let the user override the test. 3081else 3082 ac_prog_rejected=no 3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3084for as_dir in $PATH 3085do 3086 IFS=$as_save_IFS 3087 test -z "$as_dir" && as_dir=. 3088 for ac_exec_ext in '' $ac_executable_extensions; do 3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3090 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3091 ac_prog_rejected=yes 3092 continue 3093 fi 3094 ac_cv_prog_CC="cc" 3095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3096 break 2 3097 fi 3098done 3099 done 3100IFS=$as_save_IFS 3101 3102if test $ac_prog_rejected = yes; then 3103 # We found a bogon in the path, so make sure we never use it. 3104 set dummy $ac_cv_prog_CC 3105 shift 3106 if test $# != 0; then 3107 # We chose a different compiler from the bogus one. 3108 # However, it has the same basename, so the bogon will be chosen 3109 # first if we set CC to just the basename; use the full file name. 3110 shift 3111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3112 fi 3113fi 3114fi 3115fi 3116CC=$ac_cv_prog_CC 3117if test -n "$CC"; then 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3119$as_echo "$CC" >&6; } 3120else 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3122$as_echo "no" >&6; } 3123fi 3124 3125 3126fi 3127if test -z "$CC"; then 3128 if test -n "$ac_tool_prefix"; then 3129 for ac_prog in cl.exe 3130 do 3131 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3132set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3134$as_echo_n "checking for $ac_word... " >&6; } 3135if ${ac_cv_prog_CC+:} false; then : 3136 $as_echo_n "(cached) " >&6 3137else 3138 if test -n "$CC"; then 3139 ac_cv_prog_CC="$CC" # Let the user override the test. 3140else 3141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3142for as_dir in $PATH 3143do 3144 IFS=$as_save_IFS 3145 test -z "$as_dir" && as_dir=. 3146 for ac_exec_ext in '' $ac_executable_extensions; do 3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3150 break 2 3151 fi 3152done 3153 done 3154IFS=$as_save_IFS 3155 3156fi 3157fi 3158CC=$ac_cv_prog_CC 3159if test -n "$CC"; then 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3161$as_echo "$CC" >&6; } 3162else 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164$as_echo "no" >&6; } 3165fi 3166 3167 3168 test -n "$CC" && break 3169 done 3170fi 3171if test -z "$CC"; then 3172 ac_ct_CC=$CC 3173 for ac_prog in cl.exe 3174do 3175 # Extract the first word of "$ac_prog", so it can be a program name with args. 3176set dummy $ac_prog; ac_word=$2 3177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3178$as_echo_n "checking for $ac_word... " >&6; } 3179if ${ac_cv_prog_ac_ct_CC+:} false; then : 3180 $as_echo_n "(cached) " >&6 3181else 3182 if test -n "$ac_ct_CC"; then 3183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3184else 3185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3186for as_dir in $PATH 3187do 3188 IFS=$as_save_IFS 3189 test -z "$as_dir" && as_dir=. 3190 for ac_exec_ext in '' $ac_executable_extensions; do 3191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3192 ac_cv_prog_ac_ct_CC="$ac_prog" 3193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3194 break 2 3195 fi 3196done 3197 done 3198IFS=$as_save_IFS 3199 3200fi 3201fi 3202ac_ct_CC=$ac_cv_prog_ac_ct_CC 3203if test -n "$ac_ct_CC"; then 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3205$as_echo "$ac_ct_CC" >&6; } 3206else 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3208$as_echo "no" >&6; } 3209fi 3210 3211 3212 test -n "$ac_ct_CC" && break 3213done 3214 3215 if test "x$ac_ct_CC" = x; then 3216 CC="" 3217 else 3218 case $cross_compiling:$ac_tool_warned in 3219yes:) 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3222ac_tool_warned=yes ;; 3223esac 3224 CC=$ac_ct_CC 3225 fi 3226fi 3227 3228fi 3229 3230 3231test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3233as_fn_error $? "no acceptable C compiler found in \$PATH 3234See \`config.log' for more details" "$LINENO" 5; } 3235 3236# Provide some information about the compiler. 3237$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3238set X $ac_compile 3239ac_compiler=$2 3240for ac_option in --version -v -V -qversion; do 3241 { { ac_try="$ac_compiler $ac_option >&5" 3242case "(($ac_try" in 3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3244 *) ac_try_echo=$ac_try;; 3245esac 3246eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3247$as_echo "$ac_try_echo"; } >&5 3248 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3249 ac_status=$? 3250 if test -s conftest.err; then 3251 sed '10a\ 3252... rest of stderr output deleted ... 3253 10q' conftest.err >conftest.er1 3254 cat conftest.er1 >&5 3255 fi 3256 rm -f conftest.er1 conftest.err 3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3258 test $ac_status = 0; } 3259done 3260 3261cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262/* end confdefs.h. */ 3263 3264int 3265main () 3266{ 3267 3268 ; 3269 return 0; 3270} 3271_ACEOF 3272ac_clean_files_save=$ac_clean_files 3273ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3274# Try to create an executable without -o first, disregard a.out. 3275# It will help us diagnose broken compilers, and finding out an intuition 3276# of exeext. 3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3278$as_echo_n "checking whether the C compiler works... " >&6; } 3279ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3280 3281# The possible output files: 3282ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3283 3284ac_rmfiles= 3285for ac_file in $ac_files 3286do 3287 case $ac_file in 3288 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3289 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3290 esac 3291done 3292rm -f $ac_rmfiles 3293 3294if { { ac_try="$ac_link_default" 3295case "(($ac_try" in 3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3297 *) ac_try_echo=$ac_try;; 3298esac 3299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3300$as_echo "$ac_try_echo"; } >&5 3301 (eval "$ac_link_default") 2>&5 3302 ac_status=$? 3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3304 test $ac_status = 0; }; then : 3305 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3306# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3307# in a Makefile. We should not override ac_cv_exeext if it was cached, 3308# so that the user can short-circuit this test for compilers unknown to 3309# Autoconf. 3310for ac_file in $ac_files '' 3311do 3312 test -f "$ac_file" || continue 3313 case $ac_file in 3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3315 ;; 3316 [ab].out ) 3317 # We found the default executable, but exeext='' is most 3318 # certainly right. 3319 break;; 3320 *.* ) 3321 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3322 then :; else 3323 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3324 fi 3325 # We set ac_cv_exeext here because the later test for it is not 3326 # safe: cross compilers may not add the suffix if given an `-o' 3327 # argument, so we may need to know it at that point already. 3328 # Even if this section looks crufty: it has the advantage of 3329 # actually working. 3330 break;; 3331 * ) 3332 break;; 3333 esac 3334done 3335test "$ac_cv_exeext" = no && ac_cv_exeext= 3336 3337else 3338 ac_file='' 3339fi 3340if test -z "$ac_file"; then : 3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3342$as_echo "no" >&6; } 3343$as_echo "$as_me: failed program was:" >&5 3344sed 's/^/| /' conftest.$ac_ext >&5 3345 3346{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3348as_fn_error 77 "C compiler cannot create executables 3349See \`config.log' for more details" "$LINENO" 5; } 3350else 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3352$as_echo "yes" >&6; } 3353fi 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3355$as_echo_n "checking for C compiler default output file name... " >&6; } 3356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3357$as_echo "$ac_file" >&6; } 3358ac_exeext=$ac_cv_exeext 3359 3360rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3361ac_clean_files=$ac_clean_files_save 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3363$as_echo_n "checking for suffix of executables... " >&6; } 3364if { { ac_try="$ac_link" 3365case "(($ac_try" in 3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3367 *) ac_try_echo=$ac_try;; 3368esac 3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3370$as_echo "$ac_try_echo"; } >&5 3371 (eval "$ac_link") 2>&5 3372 ac_status=$? 3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3374 test $ac_status = 0; }; then : 3375 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3376# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3377# work properly (i.e., refer to `conftest.exe'), while it won't with 3378# `rm'. 3379for ac_file in conftest.exe conftest conftest.*; do 3380 test -f "$ac_file" || continue 3381 case $ac_file in 3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3383 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3384 break;; 3385 * ) break;; 3386 esac 3387done 3388else 3389 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3390$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3391as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3392See \`config.log' for more details" "$LINENO" 5; } 3393fi 3394rm -f conftest conftest$ac_cv_exeext 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3396$as_echo "$ac_cv_exeext" >&6; } 3397 3398rm -f conftest.$ac_ext 3399EXEEXT=$ac_cv_exeext 3400ac_exeext=$EXEEXT 3401cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3402/* end confdefs.h. */ 3403#include <stdio.h> 3404int 3405main () 3406{ 3407FILE *f = fopen ("conftest.out", "w"); 3408 return ferror (f) || fclose (f) != 0; 3409 3410 ; 3411 return 0; 3412} 3413_ACEOF 3414ac_clean_files="$ac_clean_files conftest.out" 3415# Check that the compiler produces executables we can run. If not, either 3416# the compiler is broken, or we cross compile. 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3418$as_echo_n "checking whether we are cross compiling... " >&6; } 3419if test "$cross_compiling" != yes; then 3420 { { ac_try="$ac_link" 3421case "(($ac_try" in 3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3423 *) ac_try_echo=$ac_try;; 3424esac 3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3426$as_echo "$ac_try_echo"; } >&5 3427 (eval "$ac_link") 2>&5 3428 ac_status=$? 3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3430 test $ac_status = 0; } 3431 if { ac_try='./conftest$ac_cv_exeext' 3432 { { case "(($ac_try" in 3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3434 *) ac_try_echo=$ac_try;; 3435esac 3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3437$as_echo "$ac_try_echo"; } >&5 3438 (eval "$ac_try") 2>&5 3439 ac_status=$? 3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3441 test $ac_status = 0; }; }; then 3442 cross_compiling=no 3443 else 3444 if test "$cross_compiling" = maybe; then 3445 cross_compiling=yes 3446 else 3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3449as_fn_error $? "cannot run C compiled programs. 3450If you meant to cross compile, use \`--host'. 3451See \`config.log' for more details" "$LINENO" 5; } 3452 fi 3453 fi 3454fi 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3456$as_echo "$cross_compiling" >&6; } 3457 3458rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3459ac_clean_files=$ac_clean_files_save 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3461$as_echo_n "checking for suffix of object files... " >&6; } 3462if ${ac_cv_objext+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467 3468int 3469main () 3470{ 3471 3472 ; 3473 return 0; 3474} 3475_ACEOF 3476rm -f conftest.o conftest.obj 3477if { { ac_try="$ac_compile" 3478case "(($ac_try" in 3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3480 *) ac_try_echo=$ac_try;; 3481esac 3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3483$as_echo "$ac_try_echo"; } >&5 3484 (eval "$ac_compile") 2>&5 3485 ac_status=$? 3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3487 test $ac_status = 0; }; then : 3488 for ac_file in conftest.o conftest.obj conftest.*; do 3489 test -f "$ac_file" || continue; 3490 case $ac_file in 3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3492 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3493 break;; 3494 esac 3495done 3496else 3497 $as_echo "$as_me: failed program was:" >&5 3498sed 's/^/| /' conftest.$ac_ext >&5 3499 3500{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3501$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3502as_fn_error $? "cannot compute suffix of object files: cannot compile 3503See \`config.log' for more details" "$LINENO" 5; } 3504fi 3505rm -f conftest.$ac_cv_objext conftest.$ac_ext 3506fi 3507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3508$as_echo "$ac_cv_objext" >&6; } 3509OBJEXT=$ac_cv_objext 3510ac_objext=$OBJEXT 3511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3512$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3513if ${ac_cv_c_compiler_gnu+:} false; then : 3514 $as_echo_n "(cached) " >&6 3515else 3516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3517/* end confdefs.h. */ 3518 3519int 3520main () 3521{ 3522#ifndef __GNUC__ 3523 choke me 3524#endif 3525 3526 ; 3527 return 0; 3528} 3529_ACEOF 3530if ac_fn_c_try_compile "$LINENO"; then : 3531 ac_compiler_gnu=yes 3532else 3533 ac_compiler_gnu=no 3534fi 3535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3536ac_cv_c_compiler_gnu=$ac_compiler_gnu 3537 3538fi 3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3540$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3541if test $ac_compiler_gnu = yes; then 3542 GCC=yes 3543else 3544 GCC= 3545fi 3546ac_test_CFLAGS=${CFLAGS+set} 3547ac_save_CFLAGS=$CFLAGS 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3549$as_echo_n "checking whether $CC accepts -g... " >&6; } 3550if ${ac_cv_prog_cc_g+:} false; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 ac_save_c_werror_flag=$ac_c_werror_flag 3554 ac_c_werror_flag=yes 3555 ac_cv_prog_cc_g=no 3556 CFLAGS="-g" 3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568if ac_fn_c_try_compile "$LINENO"; then : 3569 ac_cv_prog_cc_g=yes 3570else 3571 CFLAGS="" 3572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3573/* end confdefs.h. */ 3574 3575int 3576main () 3577{ 3578 3579 ; 3580 return 0; 3581} 3582_ACEOF 3583if ac_fn_c_try_compile "$LINENO"; then : 3584 3585else 3586 ac_c_werror_flag=$ac_save_c_werror_flag 3587 CFLAGS="-g" 3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3589/* end confdefs.h. */ 3590 3591int 3592main () 3593{ 3594 3595 ; 3596 return 0; 3597} 3598_ACEOF 3599if ac_fn_c_try_compile "$LINENO"; then : 3600 ac_cv_prog_cc_g=yes 3601fi 3602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3603fi 3604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3605fi 3606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3607 ac_c_werror_flag=$ac_save_c_werror_flag 3608fi 3609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3610$as_echo "$ac_cv_prog_cc_g" >&6; } 3611if test "$ac_test_CFLAGS" = set; then 3612 CFLAGS=$ac_save_CFLAGS 3613elif test $ac_cv_prog_cc_g = yes; then 3614 if test "$GCC" = yes; then 3615 CFLAGS="-g -O2" 3616 else 3617 CFLAGS="-g" 3618 fi 3619else 3620 if test "$GCC" = yes; then 3621 CFLAGS="-O2" 3622 else 3623 CFLAGS= 3624 fi 3625fi 3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3627$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3628if ${ac_cv_prog_cc_c89+:} false; then : 3629 $as_echo_n "(cached) " >&6 3630else 3631 ac_cv_prog_cc_c89=no 3632ac_save_CC=$CC 3633cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3634/* end confdefs.h. */ 3635#include <stdarg.h> 3636#include <stdio.h> 3637struct stat; 3638/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3639struct buf { int x; }; 3640FILE * (*rcsopen) (struct buf *, struct stat *, int); 3641static char *e (p, i) 3642 char **p; 3643 int i; 3644{ 3645 return p[i]; 3646} 3647static char *f (char * (*g) (char **, int), char **p, ...) 3648{ 3649 char *s; 3650 va_list v; 3651 va_start (v,p); 3652 s = g (p, va_arg (v,int)); 3653 va_end (v); 3654 return s; 3655} 3656 3657/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3658 function prototypes and stuff, but not '\xHH' hex character constants. 3659 These don't provoke an error unfortunately, instead are silently treated 3660 as 'x'. The following induces an error, until -std is added to get 3661 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3662 array size at least. It's necessary to write '\x00'==0 to get something 3663 that's true only with -std. */ 3664int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3665 3666/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3667 inside strings and character constants. */ 3668#define FOO(x) 'x' 3669int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3670 3671int test (int i, double x); 3672struct s1 {int (*f) (int a);}; 3673struct s2 {int (*f) (double a);}; 3674int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3675int argc; 3676char **argv; 3677int 3678main () 3679{ 3680return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3681 ; 3682 return 0; 3683} 3684_ACEOF 3685for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3686 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3687do 3688 CC="$ac_save_CC $ac_arg" 3689 if ac_fn_c_try_compile "$LINENO"; then : 3690 ac_cv_prog_cc_c89=$ac_arg 3691fi 3692rm -f core conftest.err conftest.$ac_objext 3693 test "x$ac_cv_prog_cc_c89" != "xno" && break 3694done 3695rm -f conftest.$ac_ext 3696CC=$ac_save_CC 3697 3698fi 3699# AC_CACHE_VAL 3700case "x$ac_cv_prog_cc_c89" in 3701 x) 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3703$as_echo "none needed" >&6; } ;; 3704 xno) 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3706$as_echo "unsupported" >&6; } ;; 3707 *) 3708 CC="$CC $ac_cv_prog_cc_c89" 3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3710$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3711esac 3712if test "x$ac_cv_prog_cc_c89" != xno; then : 3713 3714fi 3715 3716ac_ext=c 3717ac_cpp='$CPP $CPPFLAGS' 3718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3720ac_compiler_gnu=$ac_cv_c_compiler_gnu 3721 3722depcc="$CC" am_compiler_list= 3723 3724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3725$as_echo_n "checking dependency style of $depcc... " >&6; } 3726if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3727 $as_echo_n "(cached) " >&6 3728else 3729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3730 # We make a subdir and do the tests there. Otherwise we can end up 3731 # making bogus files that we don't know about and never remove. For 3732 # instance it was reported that on HP-UX the gcc test will end up 3733 # making a dummy file named 'D' -- because '-MD' means "put the output 3734 # in D". 3735 rm -rf conftest.dir 3736 mkdir conftest.dir 3737 # Copy depcomp to subdir because otherwise we won't find it if we're 3738 # using a relative directory. 3739 cp "$am_depcomp" conftest.dir 3740 cd conftest.dir 3741 # We will build objects and dependencies in a subdirectory because 3742 # it helps to detect inapplicable dependency modes. For instance 3743 # both Tru64's cc and ICC support -MD to output dependencies as a 3744 # side effect of compilation, but ICC will put the dependencies in 3745 # the current directory while Tru64 will put them in the object 3746 # directory. 3747 mkdir sub 3748 3749 am_cv_CC_dependencies_compiler_type=none 3750 if test "$am_compiler_list" = ""; then 3751 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3752 fi 3753 am__universal=false 3754 case " $depcc " in #( 3755 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3756 esac 3757 3758 for depmode in $am_compiler_list; do 3759 # Setup a source with many dependencies, because some compilers 3760 # like to wrap large dependency lists on column 80 (with \), and 3761 # we should not choose a depcomp mode which is confused by this. 3762 # 3763 # We need to recreate these files for each test, as the compiler may 3764 # overwrite some of them when testing with obscure command lines. 3765 # This happens at least with the AIX C compiler. 3766 : > sub/conftest.c 3767 for i in 1 2 3 4 5 6; do 3768 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3769 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3770 # Solaris 10 /bin/sh. 3771 echo '/* dummy */' > sub/conftst$i.h 3772 done 3773 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3774 3775 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3776 # mode. It turns out that the SunPro C++ compiler does not properly 3777 # handle '-M -o', and we need to detect this. Also, some Intel 3778 # versions had trouble with output in subdirs. 3779 am__obj=sub/conftest.${OBJEXT-o} 3780 am__minus_obj="-o $am__obj" 3781 case $depmode in 3782 gcc) 3783 # This depmode causes a compiler race in universal mode. 3784 test "$am__universal" = false || continue 3785 ;; 3786 nosideeffect) 3787 # After this tag, mechanisms are not by side-effect, so they'll 3788 # only be used when explicitly requested. 3789 if test "x$enable_dependency_tracking" = xyes; then 3790 continue 3791 else 3792 break 3793 fi 3794 ;; 3795 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3796 # This compiler won't grok '-c -o', but also, the minuso test has 3797 # not run yet. These depmodes are late enough in the game, and 3798 # so weak that their functioning should not be impacted. 3799 am__obj=conftest.${OBJEXT-o} 3800 am__minus_obj= 3801 ;; 3802 none) break ;; 3803 esac 3804 if depmode=$depmode \ 3805 source=sub/conftest.c object=$am__obj \ 3806 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3807 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3808 >/dev/null 2>conftest.err && 3809 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3810 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3811 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3812 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3813 # icc doesn't choke on unknown options, it will just issue warnings 3814 # or remarks (even with -Werror). So we grep stderr for any message 3815 # that says an option was ignored or not supported. 3816 # When given -MP, icc 7.0 and 7.1 complain thusly: 3817 # icc: Command line warning: ignoring option '-M'; no argument required 3818 # The diagnosis changed in icc 8.0: 3819 # icc: Command line remark: option '-MP' not supported 3820 if (grep 'ignoring option' conftest.err || 3821 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3822 am_cv_CC_dependencies_compiler_type=$depmode 3823 break 3824 fi 3825 fi 3826 done 3827 3828 cd .. 3829 rm -rf conftest.dir 3830else 3831 am_cv_CC_dependencies_compiler_type=none 3832fi 3833 3834fi 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3836$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3837CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3838 3839 if 3840 test "x$enable_dependency_tracking" != xno \ 3841 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3842 am__fastdepCC_TRUE= 3843 am__fastdepCC_FALSE='#' 3844else 3845 am__fastdepCC_TRUE='#' 3846 am__fastdepCC_FALSE= 3847fi 3848 3849 3850 3851ac_ext=c 3852ac_cpp='$CPP $CPPFLAGS' 3853ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3854ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3855ac_compiler_gnu=$ac_cv_c_compiler_gnu 3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3857$as_echo_n "checking how to run the C preprocessor... " >&6; } 3858# On Suns, sometimes $CPP names a directory. 3859if test -n "$CPP" && test -d "$CPP"; then 3860 CPP= 3861fi 3862if test -z "$CPP"; then 3863 if ${ac_cv_prog_CPP+:} false; then : 3864 $as_echo_n "(cached) " >&6 3865else 3866 # Double quotes because CPP needs to be expanded 3867 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3868 do 3869 ac_preproc_ok=false 3870for ac_c_preproc_warn_flag in '' yes 3871do 3872 # Use a header file that comes with gcc, so configuring glibc 3873 # with a fresh cross-compiler works. 3874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3875 # <limits.h> exists even on freestanding compilers. 3876 # On the NeXT, cc -E runs the code through the compiler's parser, 3877 # not just through cpp. "Syntax error" is here to catch this case. 3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3879/* end confdefs.h. */ 3880#ifdef __STDC__ 3881# include <limits.h> 3882#else 3883# include <assert.h> 3884#endif 3885 Syntax error 3886_ACEOF 3887if ac_fn_c_try_cpp "$LINENO"; then : 3888 3889else 3890 # Broken: fails on valid input. 3891continue 3892fi 3893rm -f conftest.err conftest.i conftest.$ac_ext 3894 3895 # OK, works on sane cases. Now check whether nonexistent headers 3896 # can be detected and how. 3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3898/* end confdefs.h. */ 3899#include <ac_nonexistent.h> 3900_ACEOF 3901if ac_fn_c_try_cpp "$LINENO"; then : 3902 # Broken: success on invalid input. 3903continue 3904else 3905 # Passes both tests. 3906ac_preproc_ok=: 3907break 3908fi 3909rm -f conftest.err conftest.i conftest.$ac_ext 3910 3911done 3912# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3913rm -f conftest.i conftest.err conftest.$ac_ext 3914if $ac_preproc_ok; then : 3915 break 3916fi 3917 3918 done 3919 ac_cv_prog_CPP=$CPP 3920 3921fi 3922 CPP=$ac_cv_prog_CPP 3923else 3924 ac_cv_prog_CPP=$CPP 3925fi 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3927$as_echo "$CPP" >&6; } 3928ac_preproc_ok=false 3929for ac_c_preproc_warn_flag in '' yes 3930do 3931 # Use a header file that comes with gcc, so configuring glibc 3932 # with a fresh cross-compiler works. 3933 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3934 # <limits.h> exists even on freestanding compilers. 3935 # On the NeXT, cc -E runs the code through the compiler's parser, 3936 # not just through cpp. "Syntax error" is here to catch this case. 3937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3938/* end confdefs.h. */ 3939#ifdef __STDC__ 3940# include <limits.h> 3941#else 3942# include <assert.h> 3943#endif 3944 Syntax error 3945_ACEOF 3946if ac_fn_c_try_cpp "$LINENO"; then : 3947 3948else 3949 # Broken: fails on valid input. 3950continue 3951fi 3952rm -f conftest.err conftest.i conftest.$ac_ext 3953 3954 # OK, works on sane cases. Now check whether nonexistent headers 3955 # can be detected and how. 3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3957/* end confdefs.h. */ 3958#include <ac_nonexistent.h> 3959_ACEOF 3960if ac_fn_c_try_cpp "$LINENO"; then : 3961 # Broken: success on invalid input. 3962continue 3963else 3964 # Passes both tests. 3965ac_preproc_ok=: 3966break 3967fi 3968rm -f conftest.err conftest.i conftest.$ac_ext 3969 3970done 3971# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3972rm -f conftest.i conftest.err conftest.$ac_ext 3973if $ac_preproc_ok; then : 3974 3975else 3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3978as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3979See \`config.log' for more details" "$LINENO" 5; } 3980fi 3981 3982ac_ext=c 3983ac_cpp='$CPP $CPPFLAGS' 3984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3986ac_compiler_gnu=$ac_cv_c_compiler_gnu 3987 3988 3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3990$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3991if ${ac_cv_path_GREP+:} false; then : 3992 $as_echo_n "(cached) " >&6 3993else 3994 if test -z "$GREP"; then 3995 ac_path_GREP_found=false 3996 # Loop through the user's path and test for each of PROGNAME-LIST 3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3998for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3999do 4000 IFS=$as_save_IFS 4001 test -z "$as_dir" && as_dir=. 4002 for ac_prog in grep ggrep; do 4003 for ac_exec_ext in '' $ac_executable_extensions; do 4004 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4005 as_fn_executable_p "$ac_path_GREP" || continue 4006# Check for GNU ac_path_GREP and select it if it is found. 4007 # Check for GNU $ac_path_GREP 4008case `"$ac_path_GREP" --version 2>&1` in 4009*GNU*) 4010 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4011*) 4012 ac_count=0 4013 $as_echo_n 0123456789 >"conftest.in" 4014 while : 4015 do 4016 cat "conftest.in" "conftest.in" >"conftest.tmp" 4017 mv "conftest.tmp" "conftest.in" 4018 cp "conftest.in" "conftest.nl" 4019 $as_echo 'GREP' >> "conftest.nl" 4020 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4021 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4022 as_fn_arith $ac_count + 1 && ac_count=$as_val 4023 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4024 # Best one so far, save it but keep looking for a better one 4025 ac_cv_path_GREP="$ac_path_GREP" 4026 ac_path_GREP_max=$ac_count 4027 fi 4028 # 10*(2^10) chars as input seems more than enough 4029 test $ac_count -gt 10 && break 4030 done 4031 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4032esac 4033 4034 $ac_path_GREP_found && break 3 4035 done 4036 done 4037 done 4038IFS=$as_save_IFS 4039 if test -z "$ac_cv_path_GREP"; then 4040 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4041 fi 4042else 4043 ac_cv_path_GREP=$GREP 4044fi 4045 4046fi 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4048$as_echo "$ac_cv_path_GREP" >&6; } 4049 GREP="$ac_cv_path_GREP" 4050 4051 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4053$as_echo_n "checking for egrep... " >&6; } 4054if ${ac_cv_path_EGREP+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056else 4057 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4058 then ac_cv_path_EGREP="$GREP -E" 4059 else 4060 if test -z "$EGREP"; then 4061 ac_path_EGREP_found=false 4062 # Loop through the user's path and test for each of PROGNAME-LIST 4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4064for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4065do 4066 IFS=$as_save_IFS 4067 test -z "$as_dir" && as_dir=. 4068 for ac_prog in egrep; do 4069 for ac_exec_ext in '' $ac_executable_extensions; do 4070 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4071 as_fn_executable_p "$ac_path_EGREP" || continue 4072# Check for GNU ac_path_EGREP and select it if it is found. 4073 # Check for GNU $ac_path_EGREP 4074case `"$ac_path_EGREP" --version 2>&1` in 4075*GNU*) 4076 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4077*) 4078 ac_count=0 4079 $as_echo_n 0123456789 >"conftest.in" 4080 while : 4081 do 4082 cat "conftest.in" "conftest.in" >"conftest.tmp" 4083 mv "conftest.tmp" "conftest.in" 4084 cp "conftest.in" "conftest.nl" 4085 $as_echo 'EGREP' >> "conftest.nl" 4086 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4087 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4088 as_fn_arith $ac_count + 1 && ac_count=$as_val 4089 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4090 # Best one so far, save it but keep looking for a better one 4091 ac_cv_path_EGREP="$ac_path_EGREP" 4092 ac_path_EGREP_max=$ac_count 4093 fi 4094 # 10*(2^10) chars as input seems more than enough 4095 test $ac_count -gt 10 && break 4096 done 4097 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4098esac 4099 4100 $ac_path_EGREP_found && break 3 4101 done 4102 done 4103 done 4104IFS=$as_save_IFS 4105 if test -z "$ac_cv_path_EGREP"; then 4106 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4107 fi 4108else 4109 ac_cv_path_EGREP=$EGREP 4110fi 4111 4112 fi 4113fi 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4115$as_echo "$ac_cv_path_EGREP" >&6; } 4116 EGREP="$ac_cv_path_EGREP" 4117 4118 4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4120$as_echo_n "checking for ANSI C header files... " >&6; } 4121if ${ac_cv_header_stdc+:} false; then : 4122 $as_echo_n "(cached) " >&6 4123else 4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4125/* end confdefs.h. */ 4126#include <stdlib.h> 4127#include <stdarg.h> 4128#include <string.h> 4129#include <float.h> 4130 4131int 4132main () 4133{ 4134 4135 ; 4136 return 0; 4137} 4138_ACEOF 4139if ac_fn_c_try_compile "$LINENO"; then : 4140 ac_cv_header_stdc=yes 4141else 4142 ac_cv_header_stdc=no 4143fi 4144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4145 4146if test $ac_cv_header_stdc = yes; then 4147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4149/* end confdefs.h. */ 4150#include <string.h> 4151 4152_ACEOF 4153if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4154 $EGREP "memchr" >/dev/null 2>&1; then : 4155 4156else 4157 ac_cv_header_stdc=no 4158fi 4159rm -f conftest* 4160 4161fi 4162 4163if test $ac_cv_header_stdc = yes; then 4164 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4166/* end confdefs.h. */ 4167#include <stdlib.h> 4168 4169_ACEOF 4170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4171 $EGREP "free" >/dev/null 2>&1; then : 4172 4173else 4174 ac_cv_header_stdc=no 4175fi 4176rm -f conftest* 4177 4178fi 4179 4180if test $ac_cv_header_stdc = yes; then 4181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4182 if test "$cross_compiling" = yes; then : 4183 : 4184else 4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4186/* end confdefs.h. */ 4187#include <ctype.h> 4188#include <stdlib.h> 4189#if ((' ' & 0x0FF) == 0x020) 4190# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4191# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4192#else 4193# define ISLOWER(c) \ 4194 (('a' <= (c) && (c) <= 'i') \ 4195 || ('j' <= (c) && (c) <= 'r') \ 4196 || ('s' <= (c) && (c) <= 'z')) 4197# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4198#endif 4199 4200#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4201int 4202main () 4203{ 4204 int i; 4205 for (i = 0; i < 256; i++) 4206 if (XOR (islower (i), ISLOWER (i)) 4207 || toupper (i) != TOUPPER (i)) 4208 return 2; 4209 return 0; 4210} 4211_ACEOF 4212if ac_fn_c_try_run "$LINENO"; then : 4213 4214else 4215 ac_cv_header_stdc=no 4216fi 4217rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4218 conftest.$ac_objext conftest.beam conftest.$ac_ext 4219fi 4220 4221fi 4222fi 4223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4224$as_echo "$ac_cv_header_stdc" >&6; } 4225if test $ac_cv_header_stdc = yes; then 4226 4227$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4228 4229fi 4230 4231# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4232for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4233 inttypes.h stdint.h unistd.h 4234do : 4235 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4236ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4237" 4238if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4239 cat >>confdefs.h <<_ACEOF 4240#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4241_ACEOF 4242 4243fi 4244 4245done 4246 4247 4248 4249 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4250if test "x$ac_cv_header_minix_config_h" = xyes; then : 4251 MINIX=yes 4252else 4253 MINIX= 4254fi 4255 4256 4257 if test "$MINIX" = yes; then 4258 4259$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4260 4261 4262$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4263 4264 4265$as_echo "#define _MINIX 1" >>confdefs.h 4266 4267 fi 4268 4269 4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4271$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4272if ${ac_cv_safe_to_define___extensions__+:} false; then : 4273 $as_echo_n "(cached) " >&6 4274else 4275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4276/* end confdefs.h. */ 4277 4278# define __EXTENSIONS__ 1 4279 $ac_includes_default 4280int 4281main () 4282{ 4283 4284 ; 4285 return 0; 4286} 4287_ACEOF 4288if ac_fn_c_try_compile "$LINENO"; then : 4289 ac_cv_safe_to_define___extensions__=yes 4290else 4291 ac_cv_safe_to_define___extensions__=no 4292fi 4293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4294fi 4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4296$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4297 test $ac_cv_safe_to_define___extensions__ = yes && 4298 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4299 4300 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4301 4302 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4303 4304 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4305 4306 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4307 4308 4309 4310# Checks for programs. 4311ac_ext=c 4312ac_cpp='$CPP $CPPFLAGS' 4313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4315ac_compiler_gnu=$ac_cv_c_compiler_gnu 4316if test -n "$ac_tool_prefix"; then 4317 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4318set dummy ${ac_tool_prefix}gcc; ac_word=$2 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4320$as_echo_n "checking for $ac_word... " >&6; } 4321if ${ac_cv_prog_CC+:} false; then : 4322 $as_echo_n "(cached) " >&6 4323else 4324 if test -n "$CC"; then 4325 ac_cv_prog_CC="$CC" # Let the user override the test. 4326else 4327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4328for as_dir in $PATH 4329do 4330 IFS=$as_save_IFS 4331 test -z "$as_dir" && as_dir=. 4332 for ac_exec_ext in '' $ac_executable_extensions; do 4333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4334 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4336 break 2 4337 fi 4338done 4339 done 4340IFS=$as_save_IFS 4341 4342fi 4343fi 4344CC=$ac_cv_prog_CC 4345if test -n "$CC"; then 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4347$as_echo "$CC" >&6; } 4348else 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4350$as_echo "no" >&6; } 4351fi 4352 4353 4354fi 4355if test -z "$ac_cv_prog_CC"; then 4356 ac_ct_CC=$CC 4357 # Extract the first word of "gcc", so it can be a program name with args. 4358set dummy gcc; ac_word=$2 4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4360$as_echo_n "checking for $ac_word... " >&6; } 4361if ${ac_cv_prog_ac_ct_CC+:} false; then : 4362 $as_echo_n "(cached) " >&6 4363else 4364 if test -n "$ac_ct_CC"; then 4365 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4366else 4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4368for as_dir in $PATH 4369do 4370 IFS=$as_save_IFS 4371 test -z "$as_dir" && as_dir=. 4372 for ac_exec_ext in '' $ac_executable_extensions; do 4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4374 ac_cv_prog_ac_ct_CC="gcc" 4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4376 break 2 4377 fi 4378done 4379 done 4380IFS=$as_save_IFS 4381 4382fi 4383fi 4384ac_ct_CC=$ac_cv_prog_ac_ct_CC 4385if test -n "$ac_ct_CC"; then 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4387$as_echo "$ac_ct_CC" >&6; } 4388else 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4390$as_echo "no" >&6; } 4391fi 4392 4393 if test "x$ac_ct_CC" = x; then 4394 CC="" 4395 else 4396 case $cross_compiling:$ac_tool_warned in 4397yes:) 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4400ac_tool_warned=yes ;; 4401esac 4402 CC=$ac_ct_CC 4403 fi 4404else 4405 CC="$ac_cv_prog_CC" 4406fi 4407 4408if test -z "$CC"; then 4409 if test -n "$ac_tool_prefix"; then 4410 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4411set dummy ${ac_tool_prefix}cc; ac_word=$2 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4413$as_echo_n "checking for $ac_word... " >&6; } 4414if ${ac_cv_prog_CC+:} false; then : 4415 $as_echo_n "(cached) " >&6 4416else 4417 if test -n "$CC"; then 4418 ac_cv_prog_CC="$CC" # Let the user override the test. 4419else 4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421for as_dir in $PATH 4422do 4423 IFS=$as_save_IFS 4424 test -z "$as_dir" && as_dir=. 4425 for ac_exec_ext in '' $ac_executable_extensions; do 4426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4427 ac_cv_prog_CC="${ac_tool_prefix}cc" 4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4429 break 2 4430 fi 4431done 4432 done 4433IFS=$as_save_IFS 4434 4435fi 4436fi 4437CC=$ac_cv_prog_CC 4438if test -n "$CC"; then 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4440$as_echo "$CC" >&6; } 4441else 4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4443$as_echo "no" >&6; } 4444fi 4445 4446 4447 fi 4448fi 4449if test -z "$CC"; then 4450 # Extract the first word of "cc", so it can be a program name with args. 4451set dummy cc; ac_word=$2 4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4453$as_echo_n "checking for $ac_word... " >&6; } 4454if ${ac_cv_prog_CC+:} false; then : 4455 $as_echo_n "(cached) " >&6 4456else 4457 if test -n "$CC"; then 4458 ac_cv_prog_CC="$CC" # Let the user override the test. 4459else 4460 ac_prog_rejected=no 4461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4462for as_dir in $PATH 4463do 4464 IFS=$as_save_IFS 4465 test -z "$as_dir" && as_dir=. 4466 for ac_exec_ext in '' $ac_executable_extensions; do 4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4468 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4469 ac_prog_rejected=yes 4470 continue 4471 fi 4472 ac_cv_prog_CC="cc" 4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4474 break 2 4475 fi 4476done 4477 done 4478IFS=$as_save_IFS 4479 4480if test $ac_prog_rejected = yes; then 4481 # We found a bogon in the path, so make sure we never use it. 4482 set dummy $ac_cv_prog_CC 4483 shift 4484 if test $# != 0; then 4485 # We chose a different compiler from the bogus one. 4486 # However, it has the same basename, so the bogon will be chosen 4487 # first if we set CC to just the basename; use the full file name. 4488 shift 4489 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4490 fi 4491fi 4492fi 4493fi 4494CC=$ac_cv_prog_CC 4495if test -n "$CC"; then 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4497$as_echo "$CC" >&6; } 4498else 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4500$as_echo "no" >&6; } 4501fi 4502 4503 4504fi 4505if test -z "$CC"; then 4506 if test -n "$ac_tool_prefix"; then 4507 for ac_prog in cl.exe 4508 do 4509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4510set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4512$as_echo_n "checking for $ac_word... " >&6; } 4513if ${ac_cv_prog_CC+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 if test -n "$CC"; then 4517 ac_cv_prog_CC="$CC" # Let the user override the test. 4518else 4519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520for as_dir in $PATH 4521do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_exec_ext in '' $ac_executable_extensions; do 4525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4526 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4528 break 2 4529 fi 4530done 4531 done 4532IFS=$as_save_IFS 4533 4534fi 4535fi 4536CC=$ac_cv_prog_CC 4537if test -n "$CC"; then 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4539$as_echo "$CC" >&6; } 4540else 4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4542$as_echo "no" >&6; } 4543fi 4544 4545 4546 test -n "$CC" && break 4547 done 4548fi 4549if test -z "$CC"; then 4550 ac_ct_CC=$CC 4551 for ac_prog in cl.exe 4552do 4553 # Extract the first word of "$ac_prog", so it can be a program name with args. 4554set dummy $ac_prog; ac_word=$2 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4556$as_echo_n "checking for $ac_word... " >&6; } 4557if ${ac_cv_prog_ac_ct_CC+:} false; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 if test -n "$ac_ct_CC"; then 4561 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4562else 4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4564for as_dir in $PATH 4565do 4566 IFS=$as_save_IFS 4567 test -z "$as_dir" && as_dir=. 4568 for ac_exec_ext in '' $ac_executable_extensions; do 4569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4570 ac_cv_prog_ac_ct_CC="$ac_prog" 4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4572 break 2 4573 fi 4574done 4575 done 4576IFS=$as_save_IFS 4577 4578fi 4579fi 4580ac_ct_CC=$ac_cv_prog_ac_ct_CC 4581if test -n "$ac_ct_CC"; then 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4583$as_echo "$ac_ct_CC" >&6; } 4584else 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4586$as_echo "no" >&6; } 4587fi 4588 4589 4590 test -n "$ac_ct_CC" && break 4591done 4592 4593 if test "x$ac_ct_CC" = x; then 4594 CC="" 4595 else 4596 case $cross_compiling:$ac_tool_warned in 4597yes:) 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4599$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4600ac_tool_warned=yes ;; 4601esac 4602 CC=$ac_ct_CC 4603 fi 4604fi 4605 4606fi 4607 4608 4609test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4611as_fn_error $? "no acceptable C compiler found in \$PATH 4612See \`config.log' for more details" "$LINENO" 5; } 4613 4614# Provide some information about the compiler. 4615$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4616set X $ac_compile 4617ac_compiler=$2 4618for ac_option in --version -v -V -qversion; do 4619 { { ac_try="$ac_compiler $ac_option >&5" 4620case "(($ac_try" in 4621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4622 *) ac_try_echo=$ac_try;; 4623esac 4624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4625$as_echo "$ac_try_echo"; } >&5 4626 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4627 ac_status=$? 4628 if test -s conftest.err; then 4629 sed '10a\ 4630... rest of stderr output deleted ... 4631 10q' conftest.err >conftest.er1 4632 cat conftest.er1 >&5 4633 fi 4634 rm -f conftest.er1 conftest.err 4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4636 test $ac_status = 0; } 4637done 4638 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4640$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4641if ${ac_cv_c_compiler_gnu+:} false; then : 4642 $as_echo_n "(cached) " >&6 4643else 4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4645/* end confdefs.h. */ 4646 4647int 4648main () 4649{ 4650#ifndef __GNUC__ 4651 choke me 4652#endif 4653 4654 ; 4655 return 0; 4656} 4657_ACEOF 4658if ac_fn_c_try_compile "$LINENO"; then : 4659 ac_compiler_gnu=yes 4660else 4661 ac_compiler_gnu=no 4662fi 4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4664ac_cv_c_compiler_gnu=$ac_compiler_gnu 4665 4666fi 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4668$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4669if test $ac_compiler_gnu = yes; then 4670 GCC=yes 4671else 4672 GCC= 4673fi 4674ac_test_CFLAGS=${CFLAGS+set} 4675ac_save_CFLAGS=$CFLAGS 4676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4677$as_echo_n "checking whether $CC accepts -g... " >&6; } 4678if ${ac_cv_prog_cc_g+:} false; then : 4679 $as_echo_n "(cached) " >&6 4680else 4681 ac_save_c_werror_flag=$ac_c_werror_flag 4682 ac_c_werror_flag=yes 4683 ac_cv_prog_cc_g=no 4684 CFLAGS="-g" 4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4686/* end confdefs.h. */ 4687 4688int 4689main () 4690{ 4691 4692 ; 4693 return 0; 4694} 4695_ACEOF 4696if ac_fn_c_try_compile "$LINENO"; then : 4697 ac_cv_prog_cc_g=yes 4698else 4699 CFLAGS="" 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702 4703int 4704main () 4705{ 4706 4707 ; 4708 return 0; 4709} 4710_ACEOF 4711if ac_fn_c_try_compile "$LINENO"; then : 4712 4713else 4714 ac_c_werror_flag=$ac_save_c_werror_flag 4715 CFLAGS="-g" 4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4717/* end confdefs.h. */ 4718 4719int 4720main () 4721{ 4722 4723 ; 4724 return 0; 4725} 4726_ACEOF 4727if ac_fn_c_try_compile "$LINENO"; then : 4728 ac_cv_prog_cc_g=yes 4729fi 4730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4731fi 4732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4733fi 4734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4735 ac_c_werror_flag=$ac_save_c_werror_flag 4736fi 4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4738$as_echo "$ac_cv_prog_cc_g" >&6; } 4739if test "$ac_test_CFLAGS" = set; then 4740 CFLAGS=$ac_save_CFLAGS 4741elif test $ac_cv_prog_cc_g = yes; then 4742 if test "$GCC" = yes; then 4743 CFLAGS="-g -O2" 4744 else 4745 CFLAGS="-g" 4746 fi 4747else 4748 if test "$GCC" = yes; then 4749 CFLAGS="-O2" 4750 else 4751 CFLAGS= 4752 fi 4753fi 4754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4755$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4756if ${ac_cv_prog_cc_c89+:} false; then : 4757 $as_echo_n "(cached) " >&6 4758else 4759 ac_cv_prog_cc_c89=no 4760ac_save_CC=$CC 4761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4762/* end confdefs.h. */ 4763#include <stdarg.h> 4764#include <stdio.h> 4765struct stat; 4766/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4767struct buf { int x; }; 4768FILE * (*rcsopen) (struct buf *, struct stat *, int); 4769static char *e (p, i) 4770 char **p; 4771 int i; 4772{ 4773 return p[i]; 4774} 4775static char *f (char * (*g) (char **, int), char **p, ...) 4776{ 4777 char *s; 4778 va_list v; 4779 va_start (v,p); 4780 s = g (p, va_arg (v,int)); 4781 va_end (v); 4782 return s; 4783} 4784 4785/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4786 function prototypes and stuff, but not '\xHH' hex character constants. 4787 These don't provoke an error unfortunately, instead are silently treated 4788 as 'x'. The following induces an error, until -std is added to get 4789 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4790 array size at least. It's necessary to write '\x00'==0 to get something 4791 that's true only with -std. */ 4792int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4793 4794/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4795 inside strings and character constants. */ 4796#define FOO(x) 'x' 4797int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4798 4799int test (int i, double x); 4800struct s1 {int (*f) (int a);}; 4801struct s2 {int (*f) (double a);}; 4802int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4803int argc; 4804char **argv; 4805int 4806main () 4807{ 4808return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4809 ; 4810 return 0; 4811} 4812_ACEOF 4813for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4814 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4815do 4816 CC="$ac_save_CC $ac_arg" 4817 if ac_fn_c_try_compile "$LINENO"; then : 4818 ac_cv_prog_cc_c89=$ac_arg 4819fi 4820rm -f core conftest.err conftest.$ac_objext 4821 test "x$ac_cv_prog_cc_c89" != "xno" && break 4822done 4823rm -f conftest.$ac_ext 4824CC=$ac_save_CC 4825 4826fi 4827# AC_CACHE_VAL 4828case "x$ac_cv_prog_cc_c89" in 4829 x) 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4831$as_echo "none needed" >&6; } ;; 4832 xno) 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4834$as_echo "unsupported" >&6; } ;; 4835 *) 4836 CC="$CC $ac_cv_prog_cc_c89" 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4838$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4839esac 4840if test "x$ac_cv_prog_cc_c89" != xno; then : 4841 4842fi 4843 4844ac_ext=c 4845ac_cpp='$CPP $CPPFLAGS' 4846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4848ac_compiler_gnu=$ac_cv_c_compiler_gnu 4849 4850depcc="$CC" am_compiler_list= 4851 4852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4853$as_echo_n "checking dependency style of $depcc... " >&6; } 4854if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4855 $as_echo_n "(cached) " >&6 4856else 4857 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4858 # We make a subdir and do the tests there. Otherwise we can end up 4859 # making bogus files that we don't know about and never remove. For 4860 # instance it was reported that on HP-UX the gcc test will end up 4861 # making a dummy file named 'D' -- because '-MD' means "put the output 4862 # in D". 4863 rm -rf conftest.dir 4864 mkdir conftest.dir 4865 # Copy depcomp to subdir because otherwise we won't find it if we're 4866 # using a relative directory. 4867 cp "$am_depcomp" conftest.dir 4868 cd conftest.dir 4869 # We will build objects and dependencies in a subdirectory because 4870 # it helps to detect inapplicable dependency modes. For instance 4871 # both Tru64's cc and ICC support -MD to output dependencies as a 4872 # side effect of compilation, but ICC will put the dependencies in 4873 # the current directory while Tru64 will put them in the object 4874 # directory. 4875 mkdir sub 4876 4877 am_cv_CC_dependencies_compiler_type=none 4878 if test "$am_compiler_list" = ""; then 4879 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4880 fi 4881 am__universal=false 4882 case " $depcc " in #( 4883 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4884 esac 4885 4886 for depmode in $am_compiler_list; do 4887 # Setup a source with many dependencies, because some compilers 4888 # like to wrap large dependency lists on column 80 (with \), and 4889 # we should not choose a depcomp mode which is confused by this. 4890 # 4891 # We need to recreate these files for each test, as the compiler may 4892 # overwrite some of them when testing with obscure command lines. 4893 # This happens at least with the AIX C compiler. 4894 : > sub/conftest.c 4895 for i in 1 2 3 4 5 6; do 4896 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4897 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4898 # Solaris 10 /bin/sh. 4899 echo '/* dummy */' > sub/conftst$i.h 4900 done 4901 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4902 4903 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4904 # mode. It turns out that the SunPro C++ compiler does not properly 4905 # handle '-M -o', and we need to detect this. Also, some Intel 4906 # versions had trouble with output in subdirs. 4907 am__obj=sub/conftest.${OBJEXT-o} 4908 am__minus_obj="-o $am__obj" 4909 case $depmode in 4910 gcc) 4911 # This depmode causes a compiler race in universal mode. 4912 test "$am__universal" = false || continue 4913 ;; 4914 nosideeffect) 4915 # After this tag, mechanisms are not by side-effect, so they'll 4916 # only be used when explicitly requested. 4917 if test "x$enable_dependency_tracking" = xyes; then 4918 continue 4919 else 4920 break 4921 fi 4922 ;; 4923 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4924 # This compiler won't grok '-c -o', but also, the minuso test has 4925 # not run yet. These depmodes are late enough in the game, and 4926 # so weak that their functioning should not be impacted. 4927 am__obj=conftest.${OBJEXT-o} 4928 am__minus_obj= 4929 ;; 4930 none) break ;; 4931 esac 4932 if depmode=$depmode \ 4933 source=sub/conftest.c object=$am__obj \ 4934 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4935 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4936 >/dev/null 2>conftest.err && 4937 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4938 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4939 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4940 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4941 # icc doesn't choke on unknown options, it will just issue warnings 4942 # or remarks (even with -Werror). So we grep stderr for any message 4943 # that says an option was ignored or not supported. 4944 # When given -MP, icc 7.0 and 7.1 complain thusly: 4945 # icc: Command line warning: ignoring option '-M'; no argument required 4946 # The diagnosis changed in icc 8.0: 4947 # icc: Command line remark: option '-MP' not supported 4948 if (grep 'ignoring option' conftest.err || 4949 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4950 am_cv_CC_dependencies_compiler_type=$depmode 4951 break 4952 fi 4953 fi 4954 done 4955 4956 cd .. 4957 rm -rf conftest.dir 4958else 4959 am_cv_CC_dependencies_compiler_type=none 4960fi 4961 4962fi 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4964$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4965CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4966 4967 if 4968 test "x$enable_dependency_tracking" != xno \ 4969 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4970 am__fastdepCC_TRUE= 4971 am__fastdepCC_FALSE='#' 4972else 4973 am__fastdepCC_TRUE='#' 4974 am__fastdepCC_FALSE= 4975fi 4976 4977 4978for ac_prog in flex lex 4979do 4980 # Extract the first word of "$ac_prog", so it can be a program name with args. 4981set dummy $ac_prog; ac_word=$2 4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4983$as_echo_n "checking for $ac_word... " >&6; } 4984if ${ac_cv_prog_LEX+:} false; then : 4985 $as_echo_n "(cached) " >&6 4986else 4987 if test -n "$LEX"; then 4988 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4989else 4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4991for as_dir in $PATH 4992do 4993 IFS=$as_save_IFS 4994 test -z "$as_dir" && as_dir=. 4995 for ac_exec_ext in '' $ac_executable_extensions; do 4996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4997 ac_cv_prog_LEX="$ac_prog" 4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4999 break 2 5000 fi 5001done 5002 done 5003IFS=$as_save_IFS 5004 5005fi 5006fi 5007LEX=$ac_cv_prog_LEX 5008if test -n "$LEX"; then 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 5010$as_echo "$LEX" >&6; } 5011else 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5013$as_echo "no" >&6; } 5014fi 5015 5016 5017 test -n "$LEX" && break 5018done 5019test -n "$LEX" || LEX=":" 5020 5021if test "x$LEX" != "x:"; then 5022 cat >conftest.l <<_ACEOF 5023%% 5024a { ECHO; } 5025b { REJECT; } 5026c { yymore (); } 5027d { yyless (1); } 5028e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 5029 yyless ((input () != 0)); } 5030f { unput (yytext[0]); } 5031. { BEGIN INITIAL; } 5032%% 5033#ifdef YYTEXT_POINTER 5034extern char *yytext; 5035#endif 5036int 5037main (void) 5038{ 5039 return ! yylex () + ! yywrap (); 5040} 5041_ACEOF 5042{ { ac_try="$LEX conftest.l" 5043case "(($ac_try" in 5044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5045 *) ac_try_echo=$ac_try;; 5046esac 5047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5048$as_echo "$ac_try_echo"; } >&5 5049 (eval "$LEX conftest.l") 2>&5 5050 ac_status=$? 5051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5052 test $ac_status = 0; } 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 5054$as_echo_n "checking lex output file root... " >&6; } 5055if ${ac_cv_prog_lex_root+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 5059if test -f lex.yy.c; then 5060 ac_cv_prog_lex_root=lex.yy 5061elif test -f lexyy.c; then 5062 ac_cv_prog_lex_root=lexyy 5063else 5064 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 5065fi 5066fi 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5068$as_echo "$ac_cv_prog_lex_root" >&6; } 5069LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5070 5071if test -z "${LEXLIB+set}"; then 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 5073$as_echo_n "checking lex library... " >&6; } 5074if ${ac_cv_lib_lex+:} false; then : 5075 $as_echo_n "(cached) " >&6 5076else 5077 5078 ac_save_LIBS=$LIBS 5079 ac_cv_lib_lex='none needed' 5080 for ac_lib in '' -lfl -ll; do 5081 LIBS="$ac_lib $ac_save_LIBS" 5082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5083/* end confdefs.h. */ 5084`cat $LEX_OUTPUT_ROOT.c` 5085_ACEOF 5086if ac_fn_c_try_link "$LINENO"; then : 5087 ac_cv_lib_lex=$ac_lib 5088fi 5089rm -f core conftest.err conftest.$ac_objext \ 5090 conftest$ac_exeext conftest.$ac_ext 5091 test "$ac_cv_lib_lex" != 'none needed' && break 5092 done 5093 LIBS=$ac_save_LIBS 5094 5095fi 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5097$as_echo "$ac_cv_lib_lex" >&6; } 5098 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 5099fi 5100 5101 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5103$as_echo_n "checking whether yytext is a pointer... " >&6; } 5104if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 5105 $as_echo_n "(cached) " >&6 5106else 5107 # POSIX says lex can declare yytext either as a pointer or an array; the 5108# default is implementation-dependent. Figure out which it is, since 5109# not all implementations provide the %pointer and %array declarations. 5110ac_cv_prog_lex_yytext_pointer=no 5111ac_save_LIBS=$LIBS 5112LIBS="$LEXLIB $ac_save_LIBS" 5113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5114/* end confdefs.h. */ 5115 5116 #define YYTEXT_POINTER 1 5117`cat $LEX_OUTPUT_ROOT.c` 5118_ACEOF 5119if ac_fn_c_try_link "$LINENO"; then : 5120 ac_cv_prog_lex_yytext_pointer=yes 5121fi 5122rm -f core conftest.err conftest.$ac_objext \ 5123 conftest$ac_exeext conftest.$ac_ext 5124LIBS=$ac_save_LIBS 5125 5126fi 5127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5128$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 5129if test $ac_cv_prog_lex_yytext_pointer = yes; then 5130 5131$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 5132 5133fi 5134rm -f conftest.l $LEX_OUTPUT_ROOT.c 5135 5136fi 5137 5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5139$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5140set x ${MAKE-make} 5141ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5142if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5143 $as_echo_n "(cached) " >&6 5144else 5145 cat >conftest.make <<\_ACEOF 5146SHELL = /bin/sh 5147all: 5148 @echo '@@@%%%=$(MAKE)=@@@%%%' 5149_ACEOF 5150# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5151case `${MAKE-make} -f conftest.make 2>/dev/null` in 5152 *@@@%%%=?*=@@@%%%*) 5153 eval ac_cv_prog_make_${ac_make}_set=yes;; 5154 *) 5155 eval ac_cv_prog_make_${ac_make}_set=no;; 5156esac 5157rm -f conftest.make 5158fi 5159if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5161$as_echo "yes" >&6; } 5162 SET_MAKE= 5163else 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5165$as_echo "no" >&6; } 5166 SET_MAKE="MAKE=${MAKE-make}" 5167fi 5168 5169 5170# Feature checks. 5171auto_detect_auth=no 5172with_pam=${with_pam:-yes} 5173 5174# Check whether --with-pam was given. 5175if test "${with_pam+set}" = set; then : 5176 withval=$with_pam; 5177fi 5178 5179if test "_${with_pam}" = _yes; then : 5180 5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 5182$as_echo_n "checking for pam_start in -lpam... " >&6; } 5183if ${ac_cv_lib_pam_pam_start+:} false; then : 5184 $as_echo_n "(cached) " >&6 5185else 5186 ac_check_lib_save_LIBS=$LIBS 5187LIBS="-lpam $LIBS" 5188cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5189/* end confdefs.h. */ 5190 5191/* Override any GCC internal prototype to avoid an error. 5192 Use char because int might match the return type of a GCC 5193 builtin and then its argument prototype would still apply. */ 5194#ifdef __cplusplus 5195extern "C" 5196#endif 5197char pam_start (); 5198int 5199main () 5200{ 5201return pam_start (); 5202 ; 5203 return 0; 5204} 5205_ACEOF 5206if ac_fn_c_try_link "$LINENO"; then : 5207 ac_cv_lib_pam_pam_start=yes 5208else 5209 ac_cv_lib_pam_pam_start=no 5210fi 5211rm -f core conftest.err conftest.$ac_objext \ 5212 conftest$ac_exeext conftest.$ac_ext 5213LIBS=$ac_check_lib_save_LIBS 5214fi 5215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 5216$as_echo "$ac_cv_lib_pam_pam_start" >&6; } 5217if test "x$ac_cv_lib_pam_pam_start" = xyes; then : 5218 5219 5220$as_echo "#define USE_PAM /**/" >>confdefs.h 5221 5222 LIBS="$LIBS -lpam" 5223 5224else 5225 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find pam_start() in libpam, trying shadow support" >&5 5227$as_echo "$as_me: WARNING: Can't find pam_start() in libpam, trying shadow support" >&2;} 5228 auto_detect_auth=yes 5229 with_pam=no 5230 # Try shadow if PAM failed 5231 with_shadow=yes 5232 5233fi 5234 5235 5236fi 5237 5238with_shadow=${with_shadow:-no} 5239 5240# Check whether --with-shadow was given. 5241if test "${with_shadow+set}" = set; then : 5242 withval=$with_shadow; 5243fi 5244 5245if test "_${with_shadow}" = _yes; then : 5246 5247 if test "_${with_pam}" = _yes; then : 5248 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't enable PAM and shadow support, shadow disabled" >&5 5250$as_echo "$as_me: WARNING: Can't enable PAM and shadow support, shadow disabled" >&2;} 5251 5252else 5253 5254 if test "_${auto_detect_auth}" = _yes -a \ 5255 ! -e /etc/shadow; then : 5256 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed to find shadow support while auto-detecting authentication mechanisms, using basic crypt" >&5 5258$as_echo "$as_me: WARNING: Failed to find shadow support while auto-detecting authentication mechanisms, using basic crypt" >&2;} 5259 5260else 5261 5262 if test ! -e /etc/shadow; then : 5263 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Shadow support enabled but /etc/shadow does not exist, continuing anyway" >&5 5265$as_echo "$as_me: WARNING: Shadow support enabled but /etc/shadow does not exist, continuing anyway" >&2;} 5266 5267fi 5268 5269$as_echo "#define USE_SHADOW /**/" >>confdefs.h 5270 5271 5272fi 5273 5274fi 5275 5276fi 5277 5278enable_xauth=${enable_xauth:-no} 5279# Check whether --enable-xauth was given. 5280if test "${enable_xauth+set}" = set; then : 5281 enableval=$enable_xauth; 5282fi 5283 5284if test "_${enable_xauth}" != _no; then : 5285 5286 EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS -DXAUTH=\\\"$enable_xauth\\\"" 5287 5288fi 5289 5290# Checks for libraries. 5291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strlcat in -lbsd" >&5 5292$as_echo_n "checking for strlcat in -lbsd... " >&6; } 5293if ${ac_cv_lib_bsd_strlcat+:} false; then : 5294 $as_echo_n "(cached) " >&6 5295else 5296 ac_check_lib_save_LIBS=$LIBS 5297LIBS="-lbsd $LIBS" 5298cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5299/* end confdefs.h. */ 5300 5301/* Override any GCC internal prototype to avoid an error. 5302 Use char because int might match the return type of a GCC 5303 builtin and then its argument prototype would still apply. */ 5304#ifdef __cplusplus 5305extern "C" 5306#endif 5307char strlcat (); 5308int 5309main () 5310{ 5311return strlcat (); 5312 ; 5313 return 0; 5314} 5315_ACEOF 5316if ac_fn_c_try_link "$LINENO"; then : 5317 ac_cv_lib_bsd_strlcat=yes 5318else 5319 ac_cv_lib_bsd_strlcat=no 5320fi 5321rm -f core conftest.err conftest.$ac_objext \ 5322 conftest$ac_exeext conftest.$ac_ext 5323LIBS=$ac_check_lib_save_LIBS 5324fi 5325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_strlcat" >&5 5326$as_echo "$ac_cv_lib_bsd_strlcat" >&6; } 5327if test "x$ac_cv_lib_bsd_strlcat" = xyes; then : 5328 5329 5330$as_echo "#define HAVE_LIBBSD 1" >>confdefs.h 5331 5332 LIBS="$LIBS -lbsd" 5333 5334fi 5335 5336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for yywrap in -lfl" >&5 5337$as_echo_n "checking for yywrap in -lfl... " >&6; } 5338if ${ac_cv_lib_fl_yywrap+:} false; then : 5339 $as_echo_n "(cached) " >&6 5340else 5341 ac_check_lib_save_LIBS=$LIBS 5342LIBS="-lfl $LIBS" 5343cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5344/* end confdefs.h. */ 5345 5346/* Override any GCC internal prototype to avoid an error. 5347 Use char because int might match the return type of a GCC 5348 builtin and then its argument prototype would still apply. */ 5349#ifdef __cplusplus 5350extern "C" 5351#endif 5352char yywrap (); 5353int 5354main () 5355{ 5356return yywrap (); 5357 ; 5358 return 0; 5359} 5360_ACEOF 5361if ac_fn_c_try_link "$LINENO"; then : 5362 ac_cv_lib_fl_yywrap=yes 5363else 5364 ac_cv_lib_fl_yywrap=no 5365fi 5366rm -f core conftest.err conftest.$ac_objext \ 5367 conftest$ac_exeext conftest.$ac_ext 5368LIBS=$ac_check_lib_save_LIBS 5369fi 5370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_yywrap" >&5 5371$as_echo "$ac_cv_lib_fl_yywrap" >&6; } 5372if test "x$ac_cv_lib_fl_yywrap" = xyes; then : 5373 cat >>confdefs.h <<_ACEOF 5374#define HAVE_LIBFL 1 5375_ACEOF 5376 5377 LIBS="-lfl $LIBS" 5378 5379else 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yywrap in -ll" >&5 5381$as_echo_n "checking for yywrap in -ll... " >&6; } 5382if ${ac_cv_lib_l_yywrap+:} false; then : 5383 $as_echo_n "(cached) " >&6 5384else 5385 ac_check_lib_save_LIBS=$LIBS 5386LIBS="-ll $LIBS" 5387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5388/* end confdefs.h. */ 5389 5390/* Override any GCC internal prototype to avoid an error. 5391 Use char because int might match the return type of a GCC 5392 builtin and then its argument prototype would still apply. */ 5393#ifdef __cplusplus 5394extern "C" 5395#endif 5396char yywrap (); 5397int 5398main () 5399{ 5400return yywrap (); 5401 ; 5402 return 0; 5403} 5404_ACEOF 5405if ac_fn_c_try_link "$LINENO"; then : 5406 ac_cv_lib_l_yywrap=yes 5407else 5408 ac_cv_lib_l_yywrap=no 5409fi 5410rm -f core conftest.err conftest.$ac_objext \ 5411 conftest$ac_exeext conftest.$ac_ext 5412LIBS=$ac_check_lib_save_LIBS 5413fi 5414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_l_yywrap" >&5 5415$as_echo "$ac_cv_lib_l_yywrap" >&6; } 5416if test "x$ac_cv_lib_l_yywrap" = xyes; then : 5417 cat >>confdefs.h <<_ACEOF 5418#define HAVE_LIBL 1 5419_ACEOF 5420 5421 LIBS="-ll $LIBS" 5422 5423fi 5424 5425fi 5426 5427 5428# Checks for header files. 5429ac_header_dirent=no 5430for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 5431 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 5433$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 5434if eval \${$as_ac_Header+:} false; then : 5435 $as_echo_n "(cached) " >&6 5436else 5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5438/* end confdefs.h. */ 5439#include <sys/types.h> 5440#include <$ac_hdr> 5441 5442int 5443main () 5444{ 5445if ((DIR *) 0) 5446return 0; 5447 ; 5448 return 0; 5449} 5450_ACEOF 5451if ac_fn_c_try_compile "$LINENO"; then : 5452 eval "$as_ac_Header=yes" 5453else 5454 eval "$as_ac_Header=no" 5455fi 5456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5457fi 5458eval ac_res=\$$as_ac_Header 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5460$as_echo "$ac_res" >&6; } 5461if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5462 cat >>confdefs.h <<_ACEOF 5463#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 5464_ACEOF 5465 5466ac_header_dirent=$ac_hdr; break 5467fi 5468 5469done 5470# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 5471if test $ac_header_dirent = dirent.h; then 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 5473$as_echo_n "checking for library containing opendir... " >&6; } 5474if ${ac_cv_search_opendir+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476else 5477 ac_func_search_save_LIBS=$LIBS 5478cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5479/* end confdefs.h. */ 5480 5481/* Override any GCC internal prototype to avoid an error. 5482 Use char because int might match the return type of a GCC 5483 builtin and then its argument prototype would still apply. */ 5484#ifdef __cplusplus 5485extern "C" 5486#endif 5487char opendir (); 5488int 5489main () 5490{ 5491return opendir (); 5492 ; 5493 return 0; 5494} 5495_ACEOF 5496for ac_lib in '' dir; do 5497 if test -z "$ac_lib"; then 5498 ac_res="none required" 5499 else 5500 ac_res=-l$ac_lib 5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5502 fi 5503 if ac_fn_c_try_link "$LINENO"; then : 5504 ac_cv_search_opendir=$ac_res 5505fi 5506rm -f core conftest.err conftest.$ac_objext \ 5507 conftest$ac_exeext 5508 if ${ac_cv_search_opendir+:} false; then : 5509 break 5510fi 5511done 5512if ${ac_cv_search_opendir+:} false; then : 5513 5514else 5515 ac_cv_search_opendir=no 5516fi 5517rm conftest.$ac_ext 5518LIBS=$ac_func_search_save_LIBS 5519fi 5520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 5521$as_echo "$ac_cv_search_opendir" >&6; } 5522ac_res=$ac_cv_search_opendir 5523if test "$ac_res" != no; then : 5524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5525 5526fi 5527 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 5530$as_echo_n "checking for library containing opendir... " >&6; } 5531if ${ac_cv_search_opendir+:} false; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 ac_func_search_save_LIBS=$LIBS 5535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536/* end confdefs.h. */ 5537 5538/* Override any GCC internal prototype to avoid an error. 5539 Use char because int might match the return type of a GCC 5540 builtin and then its argument prototype would still apply. */ 5541#ifdef __cplusplus 5542extern "C" 5543#endif 5544char opendir (); 5545int 5546main () 5547{ 5548return opendir (); 5549 ; 5550 return 0; 5551} 5552_ACEOF 5553for ac_lib in '' x; do 5554 if test -z "$ac_lib"; then 5555 ac_res="none required" 5556 else 5557 ac_res=-l$ac_lib 5558 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5559 fi 5560 if ac_fn_c_try_link "$LINENO"; then : 5561 ac_cv_search_opendir=$ac_res 5562fi 5563rm -f core conftest.err conftest.$ac_objext \ 5564 conftest$ac_exeext 5565 if ${ac_cv_search_opendir+:} false; then : 5566 break 5567fi 5568done 5569if ${ac_cv_search_opendir+:} false; then : 5570 5571else 5572 ac_cv_search_opendir=no 5573fi 5574rm conftest.$ac_ext 5575LIBS=$ac_func_search_save_LIBS 5576fi 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 5578$as_echo "$ac_cv_search_opendir" >&6; } 5579ac_res=$ac_cv_search_opendir 5580if test "$ac_res" != no; then : 5581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5582 5583fi 5584 5585fi 5586 5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5588$as_echo_n "checking for ANSI C header files... " >&6; } 5589if ${ac_cv_header_stdc+:} false; then : 5590 $as_echo_n "(cached) " >&6 5591else 5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5593/* end confdefs.h. */ 5594#include <stdlib.h> 5595#include <stdarg.h> 5596#include <string.h> 5597#include <float.h> 5598 5599int 5600main () 5601{ 5602 5603 ; 5604 return 0; 5605} 5606_ACEOF 5607if ac_fn_c_try_compile "$LINENO"; then : 5608 ac_cv_header_stdc=yes 5609else 5610 ac_cv_header_stdc=no 5611fi 5612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5613 5614if test $ac_cv_header_stdc = yes; then 5615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5617/* end confdefs.h. */ 5618#include <string.h> 5619 5620_ACEOF 5621if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5622 $EGREP "memchr" >/dev/null 2>&1; then : 5623 5624else 5625 ac_cv_header_stdc=no 5626fi 5627rm -f conftest* 5628 5629fi 5630 5631if test $ac_cv_header_stdc = yes; then 5632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5634/* end confdefs.h. */ 5635#include <stdlib.h> 5636 5637_ACEOF 5638if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5639 $EGREP "free" >/dev/null 2>&1; then : 5640 5641else 5642 ac_cv_header_stdc=no 5643fi 5644rm -f conftest* 5645 5646fi 5647 5648if test $ac_cv_header_stdc = yes; then 5649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5650 if test "$cross_compiling" = yes; then : 5651 : 5652else 5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5654/* end confdefs.h. */ 5655#include <ctype.h> 5656#include <stdlib.h> 5657#if ((' ' & 0x0FF) == 0x020) 5658# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5659# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5660#else 5661# define ISLOWER(c) \ 5662 (('a' <= (c) && (c) <= 'i') \ 5663 || ('j' <= (c) && (c) <= 'r') \ 5664 || ('s' <= (c) && (c) <= 'z')) 5665# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5666#endif 5667 5668#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5669int 5670main () 5671{ 5672 int i; 5673 for (i = 0; i < 256; i++) 5674 if (XOR (islower (i), ISLOWER (i)) 5675 || toupper (i) != TOUPPER (i)) 5676 return 2; 5677 return 0; 5678} 5679_ACEOF 5680if ac_fn_c_try_run "$LINENO"; then : 5681 5682else 5683 ac_cv_header_stdc=no 5684fi 5685rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5686 conftest.$ac_objext conftest.beam conftest.$ac_ext 5687fi 5688 5689fi 5690fi 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5692$as_echo "$ac_cv_header_stdc" >&6; } 5693if test $ac_cv_header_stdc = yes; then 5694 5695$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5696 5697fi 5698 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 5700$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 5701if ${ac_cv_header_sys_wait_h+:} false; then : 5702 $as_echo_n "(cached) " >&6 5703else 5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5705/* end confdefs.h. */ 5706#include <sys/types.h> 5707#include <sys/wait.h> 5708#ifndef WEXITSTATUS 5709# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 5710#endif 5711#ifndef WIFEXITED 5712# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 5713#endif 5714 5715int 5716main () 5717{ 5718 int s; 5719 wait (&s); 5720 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 5721 ; 5722 return 0; 5723} 5724_ACEOF 5725if ac_fn_c_try_compile "$LINENO"; then : 5726 ac_cv_header_sys_wait_h=yes 5727else 5728 ac_cv_header_sys_wait_h=no 5729fi 5730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5731fi 5732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 5733$as_echo "$ac_cv_header_sys_wait_h" >&6; } 5734if test $ac_cv_header_sys_wait_h = yes; then 5735 5736$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 5737 5738fi 5739 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5741$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5742if ${ac_cv_header_time+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5746/* end confdefs.h. */ 5747#include <sys/types.h> 5748#include <sys/time.h> 5749#include <time.h> 5750 5751int 5752main () 5753{ 5754if ((struct tm *) 0) 5755return 0; 5756 ; 5757 return 0; 5758} 5759_ACEOF 5760if ac_fn_c_try_compile "$LINENO"; then : 5761 ac_cv_header_time=yes 5762else 5763 ac_cv_header_time=no 5764fi 5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5766fi 5767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5768$as_echo "$ac_cv_header_time" >&6; } 5769if test $ac_cv_header_time = yes; then 5770 5771$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5772 5773fi 5774 5775for ac_header in limits.h netdb.h shadow.h stdlib.h string.h \ 5776 sys/time.h syslog.h unistd.h 5777do : 5778 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5779ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5780if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5781 cat >>confdefs.h <<_ACEOF 5782#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5783_ACEOF 5784 5785fi 5786 5787done 5788 5789 5790# Checks for typedefs, structures, and compiler characteristics. 5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5792$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5793if ${ac_cv_c_const+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795else 5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5797/* end confdefs.h. */ 5798 5799int 5800main () 5801{ 5802 5803#ifndef __cplusplus 5804 /* Ultrix mips cc rejects this sort of thing. */ 5805 typedef int charset[2]; 5806 const charset cs = { 0, 0 }; 5807 /* SunOS 4.1.1 cc rejects this. */ 5808 char const *const *pcpcc; 5809 char **ppc; 5810 /* NEC SVR4.0.2 mips cc rejects this. */ 5811 struct point {int x, y;}; 5812 static struct point const zero = {0,0}; 5813 /* AIX XL C 1.02.0.0 rejects this. 5814 It does not let you subtract one const X* pointer from another in 5815 an arm of an if-expression whose if-part is not a constant 5816 expression */ 5817 const char *g = "string"; 5818 pcpcc = &g + (g ? g-g : 0); 5819 /* HPUX 7.0 cc rejects these. */ 5820 ++pcpcc; 5821 ppc = (char**) pcpcc; 5822 pcpcc = (char const *const *) ppc; 5823 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5824 char tx; 5825 char *t = &tx; 5826 char const *s = 0 ? (char *) 0 : (char const *) 0; 5827 5828 *t++ = 0; 5829 if (s) return 0; 5830 } 5831 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5832 int x[] = {25, 17}; 5833 const int *foo = &x[0]; 5834 ++foo; 5835 } 5836 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5837 typedef const int *iptr; 5838 iptr p = 0; 5839 ++p; 5840 } 5841 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5842 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5843 struct s { int j; const int *ap[3]; } bx; 5844 struct s *b = &bx; b->j = 5; 5845 } 5846 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5847 const int foo = 10; 5848 if (!foo) return 0; 5849 } 5850 return !cs[0] && !zero.x; 5851#endif 5852 5853 ; 5854 return 0; 5855} 5856_ACEOF 5857if ac_fn_c_try_compile "$LINENO"; then : 5858 ac_cv_c_const=yes 5859else 5860 ac_cv_c_const=no 5861fi 5862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5863fi 5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5865$as_echo "$ac_cv_c_const" >&6; } 5866if test $ac_cv_c_const = no; then 5867 5868$as_echo "#define const /**/" >>confdefs.h 5869 5870fi 5871 5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 5873$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 5874if ${ac_cv_type_uid_t+:} false; then : 5875 $as_echo_n "(cached) " >&6 5876else 5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5878/* end confdefs.h. */ 5879#include <sys/types.h> 5880 5881_ACEOF 5882if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5883 $EGREP "uid_t" >/dev/null 2>&1; then : 5884 ac_cv_type_uid_t=yes 5885else 5886 ac_cv_type_uid_t=no 5887fi 5888rm -f conftest* 5889 5890fi 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 5892$as_echo "$ac_cv_type_uid_t" >&6; } 5893if test $ac_cv_type_uid_t = no; then 5894 5895$as_echo "#define uid_t int" >>confdefs.h 5896 5897 5898$as_echo "#define gid_t int" >>confdefs.h 5899 5900fi 5901 5902ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 5903if test "x$ac_cv_type_mode_t" = xyes; then : 5904 5905else 5906 5907cat >>confdefs.h <<_ACEOF 5908#define mode_t int 5909_ACEOF 5910 5911fi 5912 5913ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5914if test "x$ac_cv_type_size_t" = xyes; then : 5915 5916else 5917 5918cat >>confdefs.h <<_ACEOF 5919#define size_t unsigned int 5920_ACEOF 5921 5922fi 5923 5924 5925# Checks for library functions. 5926for ac_header in unistd.h 5927do : 5928 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" 5929if test "x$ac_cv_header_unistd_h" = xyes; then : 5930 cat >>confdefs.h <<_ACEOF 5931#define HAVE_UNISTD_H 1 5932_ACEOF 5933 5934fi 5935 5936done 5937 5938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 5939$as_echo_n "checking for working chown... " >&6; } 5940if ${ac_cv_func_chown_works+:} false; then : 5941 $as_echo_n "(cached) " >&6 5942else 5943 if test "$cross_compiling" = yes; then : 5944 ac_cv_func_chown_works=no 5945else 5946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5947/* end confdefs.h. */ 5948$ac_includes_default 5949#include <fcntl.h> 5950 5951int 5952main () 5953{ 5954 char *f = "conftest.chown"; 5955 struct stat before, after; 5956 5957 if (creat (f, 0600) < 0) 5958 return 1; 5959 if (stat (f, &before) < 0) 5960 return 1; 5961 if (chown (f, (uid_t) -1, (gid_t) -1) == -1) 5962 return 1; 5963 if (stat (f, &after) < 0) 5964 return 1; 5965 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); 5966 5967 ; 5968 return 0; 5969} 5970_ACEOF 5971if ac_fn_c_try_run "$LINENO"; then : 5972 ac_cv_func_chown_works=yes 5973else 5974 ac_cv_func_chown_works=no 5975fi 5976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5977 conftest.$ac_objext conftest.beam conftest.$ac_ext 5978fi 5979 5980rm -f conftest.chown 5981 5982fi 5983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 5984$as_echo "$ac_cv_func_chown_works" >&6; } 5985if test $ac_cv_func_chown_works = yes; then 5986 5987$as_echo "#define HAVE_CHOWN 1" >>confdefs.h 5988 5989fi 5990 5991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 5992$as_echo_n "checking whether closedir returns void... " >&6; } 5993if ${ac_cv_func_closedir_void+:} false; then : 5994 $as_echo_n "(cached) " >&6 5995else 5996 if test "$cross_compiling" = yes; then : 5997 ac_cv_func_closedir_void=yes 5998else 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001$ac_includes_default 6002#include <$ac_header_dirent> 6003#ifndef __cplusplus 6004int closedir (); 6005#endif 6006 6007int 6008main () 6009{ 6010return closedir (opendir (".")) != 0; 6011 ; 6012 return 0; 6013} 6014_ACEOF 6015if ac_fn_c_try_run "$LINENO"; then : 6016 ac_cv_func_closedir_void=no 6017else 6018 ac_cv_func_closedir_void=yes 6019fi 6020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6021 conftest.$ac_objext conftest.beam conftest.$ac_ext 6022fi 6023 6024fi 6025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 6026$as_echo "$ac_cv_func_closedir_void" >&6; } 6027if test $ac_cv_func_closedir_void = yes; then 6028 6029$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 6030 6031fi 6032 6033ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 6034if test "x$ac_cv_type_pid_t" = xyes; then : 6035 6036else 6037 6038cat >>confdefs.h <<_ACEOF 6039#define pid_t int 6040_ACEOF 6041 6042fi 6043 6044for ac_header in vfork.h 6045do : 6046 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 6047if test "x$ac_cv_header_vfork_h" = xyes; then : 6048 cat >>confdefs.h <<_ACEOF 6049#define HAVE_VFORK_H 1 6050_ACEOF 6051 6052fi 6053 6054done 6055 6056for ac_func in fork vfork 6057do : 6058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6060if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6061 cat >>confdefs.h <<_ACEOF 6062#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6063_ACEOF 6064 6065fi 6066done 6067 6068if test "x$ac_cv_func_fork" = xyes; then 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 6070$as_echo_n "checking for working fork... " >&6; } 6071if ${ac_cv_func_fork_works+:} false; then : 6072 $as_echo_n "(cached) " >&6 6073else 6074 if test "$cross_compiling" = yes; then : 6075 ac_cv_func_fork_works=cross 6076else 6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6078/* end confdefs.h. */ 6079$ac_includes_default 6080int 6081main () 6082{ 6083 6084 /* By Ruediger Kuhlmann. */ 6085 return fork () < 0; 6086 6087 ; 6088 return 0; 6089} 6090_ACEOF 6091if ac_fn_c_try_run "$LINENO"; then : 6092 ac_cv_func_fork_works=yes 6093else 6094 ac_cv_func_fork_works=no 6095fi 6096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6097 conftest.$ac_objext conftest.beam conftest.$ac_ext 6098fi 6099 6100fi 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 6102$as_echo "$ac_cv_func_fork_works" >&6; } 6103 6104else 6105 ac_cv_func_fork_works=$ac_cv_func_fork 6106fi 6107if test "x$ac_cv_func_fork_works" = xcross; then 6108 case $host in 6109 *-*-amigaos* | *-*-msdosdjgpp*) 6110 # Override, as these systems have only a dummy fork() stub 6111 ac_cv_func_fork_works=no 6112 ;; 6113 *) 6114 ac_cv_func_fork_works=yes 6115 ;; 6116 esac 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 6118$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 6119fi 6120ac_cv_func_vfork_works=$ac_cv_func_vfork 6121if test "x$ac_cv_func_vfork" = xyes; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 6123$as_echo_n "checking for working vfork... " >&6; } 6124if ${ac_cv_func_vfork_works+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 if test "$cross_compiling" = yes; then : 6128 ac_cv_func_vfork_works=cross 6129else 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6131/* end confdefs.h. */ 6132/* Thanks to Paul Eggert for this test. */ 6133$ac_includes_default 6134#include <sys/wait.h> 6135#ifdef HAVE_VFORK_H 6136# include <vfork.h> 6137#endif 6138/* On some sparc systems, changes by the child to local and incoming 6139 argument registers are propagated back to the parent. The compiler 6140 is told about this with #include <vfork.h>, but some compilers 6141 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 6142 static variable whose address is put into a register that is 6143 clobbered by the vfork. */ 6144static void 6145#ifdef __cplusplus 6146sparc_address_test (int arg) 6147# else 6148sparc_address_test (arg) int arg; 6149#endif 6150{ 6151 static pid_t child; 6152 if (!child) { 6153 child = vfork (); 6154 if (child < 0) { 6155 perror ("vfork"); 6156 _exit(2); 6157 } 6158 if (!child) { 6159 arg = getpid(); 6160 write(-1, "", 0); 6161 _exit (arg); 6162 } 6163 } 6164} 6165 6166int 6167main () 6168{ 6169 pid_t parent = getpid (); 6170 pid_t child; 6171 6172 sparc_address_test (0); 6173 6174 child = vfork (); 6175 6176 if (child == 0) { 6177 /* Here is another test for sparc vfork register problems. This 6178 test uses lots of local variables, at least as many local 6179 variables as main has allocated so far including compiler 6180 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 6181 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 6182 reuse the register of parent for one of the local variables, 6183 since it will think that parent can't possibly be used any more 6184 in this routine. Assigning to the local variable will thus 6185 munge parent in the parent process. */ 6186 pid_t 6187 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 6188 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 6189 /* Convince the compiler that p..p7 are live; otherwise, it might 6190 use the same hardware register for all 8 local variables. */ 6191 if (p != p1 || p != p2 || p != p3 || p != p4 6192 || p != p5 || p != p6 || p != p7) 6193 _exit(1); 6194 6195 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 6196 from child file descriptors. If the child closes a descriptor 6197 before it execs or exits, this munges the parent's descriptor 6198 as well. Test for this by closing stdout in the child. */ 6199 _exit(close(fileno(stdout)) != 0); 6200 } else { 6201 int status; 6202 struct stat st; 6203 6204 while (wait(&status) != child) 6205 ; 6206 return ( 6207 /* Was there some problem with vforking? */ 6208 child < 0 6209 6210 /* Did the child fail? (This shouldn't happen.) */ 6211 || status 6212 6213 /* Did the vfork/compiler bug occur? */ 6214 || parent != getpid() 6215 6216 /* Did the file descriptor bug occur? */ 6217 || fstat(fileno(stdout), &st) != 0 6218 ); 6219 } 6220} 6221_ACEOF 6222if ac_fn_c_try_run "$LINENO"; then : 6223 ac_cv_func_vfork_works=yes 6224else 6225 ac_cv_func_vfork_works=no 6226fi 6227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6228 conftest.$ac_objext conftest.beam conftest.$ac_ext 6229fi 6230 6231fi 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 6233$as_echo "$ac_cv_func_vfork_works" >&6; } 6234 6235fi; 6236if test "x$ac_cv_func_fork_works" = xcross; then 6237 ac_cv_func_vfork_works=$ac_cv_func_vfork 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 6239$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 6240fi 6241 6242if test "x$ac_cv_func_vfork_works" = xyes; then 6243 6244$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 6245 6246else 6247 6248$as_echo "#define vfork fork" >>confdefs.h 6249 6250fi 6251if test "x$ac_cv_func_fork_works" = xyes; then 6252 6253$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 6254 6255fi 6256 6257for ac_header in stdlib.h 6258do : 6259 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 6260if test "x$ac_cv_header_stdlib_h" = xyes; then : 6261 cat >>confdefs.h <<_ACEOF 6262#define HAVE_STDLIB_H 1 6263_ACEOF 6264 6265fi 6266 6267done 6268 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 6270$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 6271if ${ac_cv_func_malloc_0_nonnull+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 if test "$cross_compiling" = yes; then : 6275 ac_cv_func_malloc_0_nonnull=no 6276else 6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6278/* end confdefs.h. */ 6279#if defined STDC_HEADERS || defined HAVE_STDLIB_H 6280# include <stdlib.h> 6281#else 6282char *malloc (); 6283#endif 6284 6285int 6286main () 6287{ 6288return ! malloc (0); 6289 ; 6290 return 0; 6291} 6292_ACEOF 6293if ac_fn_c_try_run "$LINENO"; then : 6294 ac_cv_func_malloc_0_nonnull=yes 6295else 6296 ac_cv_func_malloc_0_nonnull=no 6297fi 6298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6299 conftest.$ac_objext conftest.beam conftest.$ac_ext 6300fi 6301 6302fi 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 6304$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 6305if test $ac_cv_func_malloc_0_nonnull = yes; then : 6306 6307$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 6308 6309else 6310 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 6311 6312 case " $LIBOBJS " in 6313 *" malloc.$ac_objext "* ) ;; 6314 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 6315 ;; 6316esac 6317 6318 6319$as_echo "#define malloc rpl_malloc" >>confdefs.h 6320 6321fi 6322 6323 6324for ac_header in stdlib.h 6325do : 6326 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 6327if test "x$ac_cv_header_stdlib_h" = xyes; then : 6328 cat >>confdefs.h <<_ACEOF 6329#define HAVE_STDLIB_H 1 6330_ACEOF 6331 6332fi 6333 6334done 6335 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 6337$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 6338if ${ac_cv_func_realloc_0_nonnull+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 if test "$cross_compiling" = yes; then : 6342 ac_cv_func_realloc_0_nonnull=no 6343else 6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6345/* end confdefs.h. */ 6346#if defined STDC_HEADERS || defined HAVE_STDLIB_H 6347# include <stdlib.h> 6348#else 6349char *realloc (); 6350#endif 6351 6352int 6353main () 6354{ 6355return ! realloc (0, 0); 6356 ; 6357 return 0; 6358} 6359_ACEOF 6360if ac_fn_c_try_run "$LINENO"; then : 6361 ac_cv_func_realloc_0_nonnull=yes 6362else 6363 ac_cv_func_realloc_0_nonnull=no 6364fi 6365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6366 conftest.$ac_objext conftest.beam conftest.$ac_ext 6367fi 6368 6369fi 6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 6371$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 6372if test $ac_cv_func_realloc_0_nonnull = yes; then : 6373 6374$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 6375 6376else 6377 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 6378 6379 case " $LIBOBJS " in 6380 *" realloc.$ac_objext "* ) ;; 6381 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 6382 ;; 6383esac 6384 6385 6386$as_echo "#define realloc rpl_realloc" >>confdefs.h 6387 6388fi 6389 6390 6391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 6392$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 6393if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 6394 $as_echo_n "(cached) " >&6 6395else 6396 rm -f conftest.sym conftest.file 6397echo >conftest.file 6398if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 6399 if test "$cross_compiling" = yes; then : 6400 ac_cv_func_lstat_dereferences_slashed_symlink=no 6401else 6402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6403/* end confdefs.h. */ 6404$ac_includes_default 6405int 6406main () 6407{ 6408struct stat sbuf; 6409 /* Linux will dereference the symlink and fail, as required by POSIX. 6410 That is better in the sense that it means we will not 6411 have to compile and use the lstat wrapper. */ 6412 return lstat ("conftest.sym/", &sbuf) == 0; 6413 ; 6414 return 0; 6415} 6416_ACEOF 6417if ac_fn_c_try_run "$LINENO"; then : 6418 ac_cv_func_lstat_dereferences_slashed_symlink=yes 6419else 6420 ac_cv_func_lstat_dereferences_slashed_symlink=no 6421fi 6422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6423 conftest.$ac_objext conftest.beam conftest.$ac_ext 6424fi 6425 6426else 6427 # If the `ln -s' command failed, then we probably don't even 6428 # have an lstat function. 6429 ac_cv_func_lstat_dereferences_slashed_symlink=no 6430fi 6431rm -f conftest.sym conftest.file 6432 6433fi 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 6435$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 6436 6437test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 6438 6439cat >>confdefs.h <<_ACEOF 6440#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 6441_ACEOF 6442 6443 6444if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 6445 case " $LIBOBJS " in 6446 *" lstat.$ac_objext "* ) ;; 6447 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 6448 ;; 6449esac 6450 6451fi 6452 6453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 6454$as_echo_n "checking whether stat accepts an empty string... " >&6; } 6455if ${ac_cv_func_stat_empty_string_bug+:} false; then : 6456 $as_echo_n "(cached) " >&6 6457else 6458 if test "$cross_compiling" = yes; then : 6459 ac_cv_func_stat_empty_string_bug=yes 6460else 6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6462/* end confdefs.h. */ 6463$ac_includes_default 6464int 6465main () 6466{ 6467struct stat sbuf; 6468 return stat ("", &sbuf) == 0; 6469 ; 6470 return 0; 6471} 6472_ACEOF 6473if ac_fn_c_try_run "$LINENO"; then : 6474 ac_cv_func_stat_empty_string_bug=no 6475else 6476 ac_cv_func_stat_empty_string_bug=yes 6477fi 6478rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6479 conftest.$ac_objext conftest.beam conftest.$ac_ext 6480fi 6481 6482fi 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 6484$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 6485if test $ac_cv_func_stat_empty_string_bug = yes; then 6486 case " $LIBOBJS " in 6487 *" stat.$ac_objext "* ) ;; 6488 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 6489 ;; 6490esac 6491 6492 6493cat >>confdefs.h <<_ACEOF 6494#define HAVE_STAT_EMPTY_STRING_BUG 1 6495_ACEOF 6496 6497fi 6498 6499for ac_func in strftime 6500do : 6501 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 6502if test "x$ac_cv_func_strftime" = xyes; then : 6503 cat >>confdefs.h <<_ACEOF 6504#define HAVE_STRFTIME 1 6505_ACEOF 6506 6507else 6508 # strftime is in -lintl on SCO UNIX. 6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 6510$as_echo_n "checking for strftime in -lintl... " >&6; } 6511if ${ac_cv_lib_intl_strftime+:} false; then : 6512 $as_echo_n "(cached) " >&6 6513else 6514 ac_check_lib_save_LIBS=$LIBS 6515LIBS="-lintl $LIBS" 6516cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518 6519/* Override any GCC internal prototype to avoid an error. 6520 Use char because int might match the return type of a GCC 6521 builtin and then its argument prototype would still apply. */ 6522#ifdef __cplusplus 6523extern "C" 6524#endif 6525char strftime (); 6526int 6527main () 6528{ 6529return strftime (); 6530 ; 6531 return 0; 6532} 6533_ACEOF 6534if ac_fn_c_try_link "$LINENO"; then : 6535 ac_cv_lib_intl_strftime=yes 6536else 6537 ac_cv_lib_intl_strftime=no 6538fi 6539rm -f core conftest.err conftest.$ac_objext \ 6540 conftest$ac_exeext conftest.$ac_ext 6541LIBS=$ac_check_lib_save_LIBS 6542fi 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 6544$as_echo "$ac_cv_lib_intl_strftime" >&6; } 6545if test "x$ac_cv_lib_intl_strftime" = xyes; then : 6546 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 6547 6548LIBS="-lintl $LIBS" 6549fi 6550 6551fi 6552done 6553 6554for ac_func in vprintf 6555do : 6556 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 6557if test "x$ac_cv_func_vprintf" = xyes; then : 6558 cat >>confdefs.h <<_ACEOF 6559#define HAVE_VPRINTF 1 6560_ACEOF 6561 6562ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 6563if test "x$ac_cv_func__doprnt" = xyes; then : 6564 6565$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 6566 6567fi 6568 6569fi 6570done 6571 6572 6573for ac_func in gethostname getpass getspnam memset regcomp \ 6574 strchr strcspn strdup strrchr strtol vsnprintf 6575do : 6576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6577ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6578if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6579 cat >>confdefs.h <<_ACEOF 6580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6581_ACEOF 6582 6583fi 6584done 6585 6586ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt" 6587if test "x$ac_cv_func_crypt" = xyes; then : 6588 6589else 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5 6591$as_echo_n "checking for crypt in -lcrypt... " >&6; } 6592if ${ac_cv_lib_crypt_crypt+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 ac_check_lib_save_LIBS=$LIBS 6596LIBS="-lcrypt $LIBS" 6597cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6598/* end confdefs.h. */ 6599 6600/* Override any GCC internal prototype to avoid an error. 6601 Use char because int might match the return type of a GCC 6602 builtin and then its argument prototype would still apply. */ 6603#ifdef __cplusplus 6604extern "C" 6605#endif 6606char crypt (); 6607int 6608main () 6609{ 6610return crypt (); 6611 ; 6612 return 0; 6613} 6614_ACEOF 6615if ac_fn_c_try_link "$LINENO"; then : 6616 ac_cv_lib_crypt_crypt=yes 6617else 6618 ac_cv_lib_crypt_crypt=no 6619fi 6620rm -f core conftest.err conftest.$ac_objext \ 6621 conftest$ac_exeext conftest.$ac_ext 6622LIBS=$ac_check_lib_save_LIBS 6623fi 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5 6625$as_echo "$ac_cv_lib_crypt_crypt" >&6; } 6626if test "x$ac_cv_lib_crypt_crypt" = xyes; then : 6627 cat >>confdefs.h <<_ACEOF 6628#define HAVE_LIBCRYPT 1 6629_ACEOF 6630 6631 LIBS="-lcrypt $LIBS" 6632 6633else 6634 as_fn_error $? "Can't find crypt()" "$LINENO" 5 6635fi 6636 6637fi 6638 6639ac_fn_c_check_func "$LINENO" "regfree" "ac_cv_func_regfree" 6640if test "x$ac_cv_func_regfree" = xyes; then : 6641 6642$as_echo "#define HAVE_REGEX 1" >>confdefs.h 6643 6644fi 6645 6646ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 6647if test "x$ac_cv_func_strlcat" = xyes; then : 6648 6649$as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 6650 6651fi 6652 6653ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 6654if test "x$ac_cv_func_strlcpy" = xyes; then : 6655 6656$as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 6657 6658fi 6659 6660ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 6661if test "x$ac_cv_func_vsnprintf" = xyes; then : 6662 6663$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 6664 6665fi 6666 6667 6668# Custom checks. 6669cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6670/* end confdefs.h. */ 6671int main(int, char**){int i = openlog(); return 0;} 6672_ACEOF 6673if ac_fn_c_try_compile "$LINENO"; then : 6674 OPENLOG_VOID=0 6675else 6676 OPENLOG_VOID=1 6677fi 6678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6679 6680cat >>confdefs.h <<_ACEOF 6681#define OPENLOG_VOID ${OPENLOG_VOID} 6682_ACEOF 6683 6684 6685# Check for compiler options. 6686 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 6688$as_echo_n "checking for C compiler vendor... " >&6; } 6689if ${ax_cv_c_compiler_vendor+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 # note: don't check for gcc first since some other compilers define __GNUC__ 6693 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 6694 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 6695 pathscale: __PATHCC__,__PATHSCALE__ 6696 clang: __clang__ 6697 cray: _CRAYC 6698 fujitsu: __FUJITSU 6699 gnu: __GNUC__ 6700 sun: __SUNPRO_C,__SUNPRO_CC 6701 hp: __HP_cc,__HP_aCC 6702 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 6703 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 6704 comeau: __COMO__ 6705 kai: __KCC 6706 lcc: __LCC__ 6707 sgi: __sgi,sgi 6708 microsoft: _MSC_VER 6709 metrowerks: __MWERKS__ 6710 watcom: __WATCOMC__ 6711 portland: __PGI 6712 tcc: __TINYC__ 6713 unknown: UNKNOWN" 6714 for ventest in $vendors; do 6715 case $ventest in 6716 *:) vendor=$ventest; continue ;; 6717 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 6718 esac 6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6720/* end confdefs.h. */ 6721 6722int 6723main () 6724{ 6725 6726 #if !($vencpp) 6727 thisisanerror; 6728 #endif 6729 6730 ; 6731 return 0; 6732} 6733_ACEOF 6734if ac_fn_c_try_compile "$LINENO"; then : 6735 break 6736fi 6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6738 done 6739 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 6740 6741fi 6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 6743$as_echo "$ax_cv_c_compiler_vendor" >&6; } 6744 6745 6746ac_ext=c 6747ac_cpp='$CPP $CPPFLAGS' 6748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6750ac_compiler_gnu=$ac_cv_c_compiler_gnu 6751 6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5 6753$as_echo_n "checking CFLAGS for maximum warnings... " >&6; } 6754if ${ac_cv_cflags_warn_all+:} false; then : 6755 $as_echo_n "(cached) " >&6 6756else 6757 ac_cv_cflags_warn_all="no, unknown" 6758ac_save_CFLAGS="$CFLAGS" 6759for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" # 6760do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'` 6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6762/* end confdefs.h. */ 6763 6764int 6765main () 6766{ 6767 6768 ; 6769 return 0; 6770} 6771_ACEOF 6772if ac_fn_c_try_compile "$LINENO"; then : 6773 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break 6774fi 6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6776done 6777CFLAGS="$ac_save_CFLAGS" 6778 6779fi 6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5 6781$as_echo "$ac_cv_cflags_warn_all" >&6; } 6782 6783 6784case ".$ac_cv_cflags_warn_all" in 6785 .ok|.ok,*) ;; 6786 .|.no|.no,*) ;; 6787 *) 6788if ${CFLAGS+:} false; then : 6789 6790 case " $CFLAGS " in #( 6791 *" $ac_cv_cflags_warn_all "*) : 6792 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5 6793 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5 6794 ac_status=$? 6795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6796 test $ac_status = 0; } ;; #( 6797 *) : 6798 6799 as_fn_append CFLAGS " $ac_cv_cflags_warn_all" 6800 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 6801 (: CFLAGS="$CFLAGS") 2>&5 6802 ac_status=$? 6803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6804 test $ac_status = 0; } 6805 ;; 6806esac 6807 6808else 6809 6810 CFLAGS=$ac_cv_cflags_warn_all 6811 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5 6812 (: CFLAGS="$CFLAGS") 2>&5 6813 ac_status=$? 6814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6815 test $ac_status = 0; } 6816 6817fi 6818 ;; 6819esac 6820 6821ac_ext=c 6822ac_cpp='$CPP $CPPFLAGS' 6823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6825ac_compiler_gnu=$ac_cv_c_compiler_gnu 6826 6827 6828 6829if test "_${ax_cv_c_compiler_vendor}" = _ibm; then : 6830 6831 # Stack Smashing Protection 6832 6833 ac_ext=c 6834ac_cpp='$CPP $CPPFLAGS' 6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6837ac_compiler_gnu=$ac_cv_c_compiler_gnu 6838 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qstackprotect" >&5 6840$as_echo_n "checking whether C compiler accepts -qstackprotect... " >&6; } 6841if ${ax_cv_check_cflags__qlanglvl_ansi__qsrcmsg__qstackprotect+:} false; then : 6842 $as_echo_n "(cached) " >&6 6843else 6844 6845 ax_check_save_flags=$CFLAGS 6846 CFLAGS="$CFLAGS -qlanglvl=ansi -qsrcmsg -qstackprotect" 6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6848/* end confdefs.h. */ 6849 6850int 6851main () 6852{ 6853 6854 ; 6855 return 0; 6856} 6857_ACEOF 6858if ac_fn_c_try_compile "$LINENO"; then : 6859 ax_cv_check_cflags__qlanglvl_ansi__qsrcmsg__qstackprotect=yes 6860else 6861 ax_cv_check_cflags__qlanglvl_ansi__qsrcmsg__qstackprotect=no 6862fi 6863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6864 CFLAGS=$ax_check_save_flags 6865fi 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__qlanglvl_ansi__qsrcmsg__qstackprotect" >&5 6867$as_echo "$ax_cv_check_cflags__qlanglvl_ansi__qsrcmsg__qstackprotect" >&6; } 6868if test "x$ax_cv_check_cflags__qlanglvl_ansi__qsrcmsg__qstackprotect" = xyes; then : 6869 flag_ok="yes" 6870else 6871 flag_ok="no" 6872fi 6873 6874case ".$flag_ok" in #( 6875 .ok|.ok,*) : 6876 ;; #( 6877 .|.no|.no,*) : 6878 ;; #( 6879 *) : 6880 6881if ${EXTRA_CFLAGS+:} false; then : 6882 6883 case " $EXTRA_CFLAGS " in #( 6884 *" -qstackprotect "*) : 6885 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains -qstackprotect"; } >&5 6886 (: EXTRA_CFLAGS already contains -qstackprotect) 2>&5 6887 ac_status=$? 6888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6889 test $ac_status = 0; } ;; #( 6890 *) : 6891 6892 as_fn_append EXTRA_CFLAGS " -qstackprotect" 6893 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 6894 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 6895 ac_status=$? 6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6897 test $ac_status = 0; } 6898 ;; 6899esac 6900 6901else 6902 6903 EXTRA_CFLAGS=-qstackprotect 6904 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 6905 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 6906 ac_status=$? 6907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6908 test $ac_status = 0; } 6909 6910fi 6911 ;; 6912esac 6913 6914 ac_ext=c 6915ac_cpp='$CPP $CPPFLAGS' 6916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6918ac_compiler_gnu=$ac_cv_c_compiler_gnu 6919 6920 6921 6922fi 6923 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6925$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6926if ${ac_cv_path_SED+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6930 for ac_i in 1 2 3 4 5 6 7; do 6931 ac_script="$ac_script$as_nl$ac_script" 6932 done 6933 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6934 { ac_script=; unset ac_script;} 6935 if test -z "$SED"; then 6936 ac_path_SED_found=false 6937 # Loop through the user's path and test for each of PROGNAME-LIST 6938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6939for as_dir in $PATH 6940do 6941 IFS=$as_save_IFS 6942 test -z "$as_dir" && as_dir=. 6943 for ac_prog in sed gsed; do 6944 for ac_exec_ext in '' $ac_executable_extensions; do 6945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6946 as_fn_executable_p "$ac_path_SED" || continue 6947# Check for GNU ac_path_SED and select it if it is found. 6948 # Check for GNU $ac_path_SED 6949case `"$ac_path_SED" --version 2>&1` in 6950*GNU*) 6951 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6952*) 6953 ac_count=0 6954 $as_echo_n 0123456789 >"conftest.in" 6955 while : 6956 do 6957 cat "conftest.in" "conftest.in" >"conftest.tmp" 6958 mv "conftest.tmp" "conftest.in" 6959 cp "conftest.in" "conftest.nl" 6960 $as_echo '' >> "conftest.nl" 6961 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6962 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6963 as_fn_arith $ac_count + 1 && ac_count=$as_val 6964 if test $ac_count -gt ${ac_path_SED_max-0}; then 6965 # Best one so far, save it but keep looking for a better one 6966 ac_cv_path_SED="$ac_path_SED" 6967 ac_path_SED_max=$ac_count 6968 fi 6969 # 10*(2^10) chars as input seems more than enough 6970 test $ac_count -gt 10 && break 6971 done 6972 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6973esac 6974 6975 $ac_path_SED_found && break 3 6976 done 6977 done 6978 done 6979IFS=$as_save_IFS 6980 if test -z "$ac_cv_path_SED"; then 6981 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6982 fi 6983else 6984 ac_cv_path_SED=$SED 6985fi 6986 6987fi 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6989$as_echo "$ac_cv_path_SED" >&6; } 6990 SED="$ac_cv_path_SED" 6991 rm -f conftest.sed 6992 6993if test "_${ax_cv_c_compiler_vendor}" = _gnu; then : 6994 6995 6996 6997 if test "_${USE_MAINTAINER_MODE}" = _no; then : 6998 6999 enable_compile_warnings=${enable_compile_warnings:-no} 7000 7001else 7002 7003 enable_Werror=${enable_Werror:-no} 7004 7005fi 7006 7007 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: USE_MAINTAINER_MODE=$USE_MAINTAINER_MODE" >&5 7009$as_echo "$as_me: USE_MAINTAINER_MODE=$USE_MAINTAINER_MODE" >&6;} 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: ax_is_release=$ax_is_release" >&5 7011$as_echo "$as_me: ax_is_release=$ax_is_release" >&6;} 7012 { $as_echo "$as_me:${as_lineno-$LINENO}: enable_compile_warnings=$enable_compile_warnings" >&5 7013$as_echo "$as_me: enable_compile_warnings=$enable_compile_warnings" >&6;} 7014 7015 7016 # C support is enabled by default. 7017 7018 7019 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of 7020 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called 7021 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be 7022 # checked. 7023 7024 7025 7026 7027 # Default value for IS-RELEASE is $ax_is_release 7028 ax_compiler_flags_is_release=$ax_is_release 7029 7030 # Check whether --enable-compile-warnings was given. 7031if test "${enable_compile_warnings+set}" = set; then : 7032 enableval=$enable_compile_warnings; 7033else 7034 if test "$ax_compiler_flags_is_release" = "yes"; then : 7035 enable_compile_warnings="yes" 7036else 7037 enable_compile_warnings="error" 7038fi 7039fi 7040 7041 # Check whether --enable-Werror was given. 7042if test "${enable_Werror+set}" = set; then : 7043 enableval=$enable_Werror; 7044else 7045 enable_Werror=maybe 7046fi 7047 7048 7049 # Return the user's chosen warning level 7050 if test "$enable_Werror" = "no" -a \ 7051 "$enable_compile_warnings" = "error"; then : 7052 7053 enable_compile_warnings="yes" 7054 7055fi 7056 7057 ax_enable_compile_warnings=$enable_compile_warnings 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 # Variable names 7069 7070 7071 ac_ext=c 7072ac_cpp='$CPP $CPPFLAGS' 7073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7075ac_compiler_gnu=$ac_cv_c_compiler_gnu 7076 7077 7078 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 7079 # flags, otherwise they are always appended to the warn_cflags variable, and 7080 # Clang warns on them for every compilation unit. 7081 # If this is passed to GCC, it will explode, so the flag must be enabled 7082 # conditionally. 7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 7084$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 7085if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 7086 $as_echo_n "(cached) " >&6 7087else 7088 7089 ax_check_save_flags=$CFLAGS 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092/* end confdefs.h. */ 7093 7094int 7095main () 7096{ 7097 7098 ; 7099 return 0; 7100} 7101_ACEOF 7102if ac_fn_c_try_compile "$LINENO"; then : 7103 ax_cv_check_cflags___Werror_unknown_warning_option=yes 7104else 7105 ax_cv_check_cflags___Werror_unknown_warning_option=no 7106fi 7107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7108 CFLAGS=$ax_check_save_flags 7109fi 7110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 7111$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 7112if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 7113 7114 ax_compiler_flags_test="-Werror=unknown-warning-option" 7115 7116else 7117 7118 ax_compiler_flags_test="" 7119 7120fi 7121 7122 7123 # Base flags 7124 7125 7126 7127 7128for flag in -fno-strict-aliasing ; do 7129 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 7131$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 7132if eval \${$as_CACHEVAR+:} false; then : 7133 $as_echo_n "(cached) " >&6 7134else 7135 7136 ax_check_save_flags=$CFLAGS 7137 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7139/* end confdefs.h. */ 7140 7141int 7142main () 7143{ 7144 7145 ; 7146 return 0; 7147} 7148_ACEOF 7149if ac_fn_c_try_compile "$LINENO"; then : 7150 eval "$as_CACHEVAR=yes" 7151else 7152 eval "$as_CACHEVAR=no" 7153fi 7154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7155 CFLAGS=$ax_check_save_flags 7156fi 7157eval ac_res=\$$as_CACHEVAR 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7159$as_echo "$ac_res" >&6; } 7160if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7161 7162if ${WARN_CFLAGS+:} false; then : 7163 7164 case " $WARN_CFLAGS " in #( 7165 *" $flag "*) : 7166 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 7167 (: WARN_CFLAGS already contains $flag) 2>&5 7168 ac_status=$? 7169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7170 test $ac_status = 0; } ;; #( 7171 *) : 7172 7173 as_fn_append WARN_CFLAGS " $flag" 7174 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7175 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7176 ac_status=$? 7177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7178 test $ac_status = 0; } 7179 ;; 7180esac 7181 7182else 7183 7184 WARN_CFLAGS=$flag 7185 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7186 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7187 ac_status=$? 7188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7189 test $ac_status = 0; } 7190 7191fi 7192 7193else 7194 : 7195fi 7196 7197done 7198 7199 7200 if test "$ax_enable_compile_warnings" != "no"; then : 7201 7202 # "yes" flags 7203 7204 7205 7206 7207for flag in -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default ; do 7208 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 7210$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 7211if eval \${$as_CACHEVAR+:} false; then : 7212 $as_echo_n "(cached) " >&6 7213else 7214 7215 ax_check_save_flags=$CFLAGS 7216 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7218/* end confdefs.h. */ 7219 7220int 7221main () 7222{ 7223 7224 ; 7225 return 0; 7226} 7227_ACEOF 7228if ac_fn_c_try_compile "$LINENO"; then : 7229 eval "$as_CACHEVAR=yes" 7230else 7231 eval "$as_CACHEVAR=no" 7232fi 7233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7234 CFLAGS=$ax_check_save_flags 7235fi 7236eval ac_res=\$$as_CACHEVAR 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7238$as_echo "$ac_res" >&6; } 7239if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7240 7241if ${WARN_CFLAGS+:} false; then : 7242 7243 case " $WARN_CFLAGS " in #( 7244 *" $flag "*) : 7245 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 7246 (: WARN_CFLAGS already contains $flag) 2>&5 7247 ac_status=$? 7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7249 test $ac_status = 0; } ;; #( 7250 *) : 7251 7252 as_fn_append WARN_CFLAGS " $flag" 7253 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7254 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7255 ac_status=$? 7256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7257 test $ac_status = 0; } 7258 ;; 7259esac 7260 7261else 7262 7263 WARN_CFLAGS=$flag 7264 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7265 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7266 ac_status=$? 7267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7268 test $ac_status = 0; } 7269 7270fi 7271 7272else 7273 : 7274fi 7275 7276done 7277 7278 7279fi 7280 if test "$ax_enable_compile_warnings" = "error"; then : 7281 7282 # "error" flags; -Werror has to be appended unconditionally because 7283 # it's not possible to test for 7284 # 7285 # suggest-attribute=format is disabled because it gives too many false 7286 # positives 7287 7288if ${WARN_CFLAGS+:} false; then : 7289 7290 case " $WARN_CFLAGS " in #( 7291 *" -Werror "*) : 7292 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5 7293 (: WARN_CFLAGS already contains -Werror) 2>&5 7294 ac_status=$? 7295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7296 test $ac_status = 0; } ;; #( 7297 *) : 7298 7299 as_fn_append WARN_CFLAGS " -Werror" 7300 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7301 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7302 ac_status=$? 7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7304 test $ac_status = 0; } 7305 ;; 7306esac 7307 7308else 7309 7310 WARN_CFLAGS=-Werror 7311 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7312 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7313 ac_status=$? 7314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7315 test $ac_status = 0; } 7316 7317fi 7318 7319 7320 7321 7322 7323 7324for flag in -Wno-suggest-attribute=format ; do 7325 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 7327$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 7328if eval \${$as_CACHEVAR+:} false; then : 7329 $as_echo_n "(cached) " >&6 7330else 7331 7332 ax_check_save_flags=$CFLAGS 7333 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7335/* end confdefs.h. */ 7336 7337int 7338main () 7339{ 7340 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_c_try_compile "$LINENO"; then : 7346 eval "$as_CACHEVAR=yes" 7347else 7348 eval "$as_CACHEVAR=no" 7349fi 7350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7351 CFLAGS=$ax_check_save_flags 7352fi 7353eval ac_res=\$$as_CACHEVAR 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7355$as_echo "$ac_res" >&6; } 7356if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7357 7358if ${WARN_CFLAGS+:} false; then : 7359 7360 case " $WARN_CFLAGS " in #( 7361 *" $flag "*) : 7362 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 7363 (: WARN_CFLAGS already contains $flag) 2>&5 7364 ac_status=$? 7365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7366 test $ac_status = 0; } ;; #( 7367 *) : 7368 7369 as_fn_append WARN_CFLAGS " $flag" 7370 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7371 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7372 ac_status=$? 7373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7374 test $ac_status = 0; } 7375 ;; 7376esac 7377 7378else 7379 7380 WARN_CFLAGS=$flag 7381 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7382 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7383 ac_status=$? 7384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7385 test $ac_status = 0; } 7386 7387fi 7388 7389else 7390 : 7391fi 7392 7393done 7394 7395 7396fi 7397 7398 # In the flags below, when disabling specific flags, always add *both* 7399 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example) 7400 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall, 7401 # which effectively turns that flag back on again as an error. 7402 for flag in $WARN_CFLAGS; do 7403 case $flag in #( 7404 -Wno-*=*) : 7405 ;; #( 7406 -Wno-*) : 7407 7408 7409 7410 7411 7412for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do 7413 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 7415$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 7416if eval \${$as_CACHEVAR+:} false; then : 7417 $as_echo_n "(cached) " >&6 7418else 7419 7420 ax_check_save_flags=$CFLAGS 7421 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag" 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424 7425int 7426main () 7427{ 7428 7429 ; 7430 return 0; 7431} 7432_ACEOF 7433if ac_fn_c_try_compile "$LINENO"; then : 7434 eval "$as_CACHEVAR=yes" 7435else 7436 eval "$as_CACHEVAR=no" 7437fi 7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7439 CFLAGS=$ax_check_save_flags 7440fi 7441eval ac_res=\$$as_CACHEVAR 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7443$as_echo "$ac_res" >&6; } 7444if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7445 7446if ${WARN_CFLAGS+:} false; then : 7447 7448 case " $WARN_CFLAGS " in #( 7449 *" $flag "*) : 7450 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5 7451 (: WARN_CFLAGS already contains $flag) 2>&5 7452 ac_status=$? 7453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7454 test $ac_status = 0; } ;; #( 7455 *) : 7456 7457 as_fn_append WARN_CFLAGS " $flag" 7458 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7459 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7460 ac_status=$? 7461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7462 test $ac_status = 0; } 7463 ;; 7464esac 7465 7466else 7467 7468 WARN_CFLAGS=$flag 7469 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5 7470 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5 7471 ac_status=$? 7472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7473 test $ac_status = 0; } 7474 7475fi 7476 7477else 7478 : 7479fi 7480 7481done 7482 7483 ;; #( 7484 *) : 7485 ;; 7486esac 7487 done 7488 7489 ac_ext=c 7490ac_cpp='$CPP $CPPFLAGS' 7491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7493ac_compiler_gnu=$ac_cv_c_compiler_gnu 7494 7495 7496 # Substitute the variables 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 # Variable names 7509 7510 7511 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad 7512 # flags, otherwise they are always appended to the warn_ldflags variable, 7513 # and Clang warns on them for every compilation unit. 7514 # If this is passed to GCC, it will explode, so the flag must be enabled 7515 # conditionally. 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5 7517$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; } 7518if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 7522 ax_check_save_flags=$CFLAGS 7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7525/* end confdefs.h. */ 7526 7527int 7528main () 7529{ 7530 7531 ; 7532 return 0; 7533} 7534_ACEOF 7535if ac_fn_c_try_compile "$LINENO"; then : 7536 ax_cv_check_cflags___Werror_unknown_warning_option=yes 7537else 7538 ax_cv_check_cflags___Werror_unknown_warning_option=no 7539fi 7540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7541 CFLAGS=$ax_check_save_flags 7542fi 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5 7544$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; } 7545if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then : 7546 7547 ax_compiler_flags_test="-Werror=unknown-warning-option" 7548 7549else 7550 7551 ax_compiler_flags_test="" 7552 7553fi 7554 7555 7556 # Base flags 7557 7558 7559 7560 7561for flag in -Wl,--no-as-needed ; do 7562 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 7564$as_echo_n "checking whether the linker accepts $flag... " >&6; } 7565if eval \${$as_CACHEVAR+:} false; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 7569 ax_check_save_flags=$LDFLAGS 7570 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7572/* end confdefs.h. */ 7573 7574int 7575main () 7576{ 7577 7578 ; 7579 return 0; 7580} 7581_ACEOF 7582if ac_fn_c_try_link "$LINENO"; then : 7583 eval "$as_CACHEVAR=yes" 7584else 7585 eval "$as_CACHEVAR=no" 7586fi 7587rm -f core conftest.err conftest.$ac_objext \ 7588 conftest$ac_exeext conftest.$ac_ext 7589 LDFLAGS=$ax_check_save_flags 7590fi 7591eval ac_res=\$$as_CACHEVAR 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7593$as_echo "$ac_res" >&6; } 7594if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7595 7596if ${WARN_LDFLAGS+:} false; then : 7597 7598 case " $WARN_LDFLAGS " in #( 7599 *" $flag "*) : 7600 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 7601 (: WARN_LDFLAGS already contains $flag) 2>&5 7602 ac_status=$? 7603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7604 test $ac_status = 0; } ;; #( 7605 *) : 7606 7607 as_fn_append WARN_LDFLAGS " $flag" 7608 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 7609 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 7610 ac_status=$? 7611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7612 test $ac_status = 0; } 7613 ;; 7614esac 7615 7616else 7617 7618 WARN_LDFLAGS=$flag 7619 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 7620 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 7621 ac_status=$? 7622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7623 test $ac_status = 0; } 7624 7625fi 7626 7627else 7628 : 7629fi 7630 7631done 7632 7633 7634 if test "$ax_enable_compile_warnings" != "no"; then : 7635 7636 # "yes" flags 7637 7638 7639 7640 7641for flag in ; do 7642 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 7643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 7644$as_echo_n "checking whether the linker accepts $flag... " >&6; } 7645if eval \${$as_CACHEVAR+:} false; then : 7646 $as_echo_n "(cached) " >&6 7647else 7648 7649 ax_check_save_flags=$LDFLAGS 7650 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7652/* end confdefs.h. */ 7653 7654int 7655main () 7656{ 7657 7658 ; 7659 return 0; 7660} 7661_ACEOF 7662if ac_fn_c_try_link "$LINENO"; then : 7663 eval "$as_CACHEVAR=yes" 7664else 7665 eval "$as_CACHEVAR=no" 7666fi 7667rm -f core conftest.err conftest.$ac_objext \ 7668 conftest$ac_exeext conftest.$ac_ext 7669 LDFLAGS=$ax_check_save_flags 7670fi 7671eval ac_res=\$$as_CACHEVAR 7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7673$as_echo "$ac_res" >&6; } 7674if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7675 7676if ${WARN_LDFLAGS+:} false; then : 7677 7678 case " $WARN_LDFLAGS " in #( 7679 *" $flag "*) : 7680 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 7681 (: WARN_LDFLAGS already contains $flag) 2>&5 7682 ac_status=$? 7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7684 test $ac_status = 0; } ;; #( 7685 *) : 7686 7687 as_fn_append WARN_LDFLAGS " $flag" 7688 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 7689 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 7690 ac_status=$? 7691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7692 test $ac_status = 0; } 7693 ;; 7694esac 7695 7696else 7697 7698 WARN_LDFLAGS=$flag 7699 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 7700 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 7701 ac_status=$? 7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7703 test $ac_status = 0; } 7704 7705fi 7706 7707else 7708 : 7709fi 7710 7711done 7712 7713 7714fi 7715 if test "$ax_enable_compile_warnings" = "error"; then : 7716 7717 # "error" flags; -Werror has to be appended unconditionally because 7718 # it's not possible to test for 7719 # 7720 # suggest-attribute=format is disabled because it gives too many false 7721 # positives 7722 7723 7724 7725 7726for flag in -Wl,--fatal-warnings ; do 7727 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh` 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 7729$as_echo_n "checking whether the linker accepts $flag... " >&6; } 7730if eval \${$as_CACHEVAR+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732else 7733 7734 ax_check_save_flags=$LDFLAGS 7735 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag" 7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737/* end confdefs.h. */ 7738 7739int 7740main () 7741{ 7742 7743 ; 7744 return 0; 7745} 7746_ACEOF 7747if ac_fn_c_try_link "$LINENO"; then : 7748 eval "$as_CACHEVAR=yes" 7749else 7750 eval "$as_CACHEVAR=no" 7751fi 7752rm -f core conftest.err conftest.$ac_objext \ 7753 conftest$ac_exeext conftest.$ac_ext 7754 LDFLAGS=$ax_check_save_flags 7755fi 7756eval ac_res=\$$as_CACHEVAR 7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7758$as_echo "$ac_res" >&6; } 7759if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7760 7761if ${WARN_LDFLAGS+:} false; then : 7762 7763 case " $WARN_LDFLAGS " in #( 7764 *" $flag "*) : 7765 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5 7766 (: WARN_LDFLAGS already contains $flag) 2>&5 7767 ac_status=$? 7768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7769 test $ac_status = 0; } ;; #( 7770 *) : 7771 7772 as_fn_append WARN_LDFLAGS " $flag" 7773 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 7774 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 7775 ac_status=$? 7776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7777 test $ac_status = 0; } 7778 ;; 7779esac 7780 7781else 7782 7783 WARN_LDFLAGS=$flag 7784 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5 7785 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5 7786 ac_status=$? 7787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7788 test $ac_status = 0; } 7789 7790fi 7791 7792else 7793 : 7794fi 7795 7796done 7797 7798 7799fi 7800 7801 # Substitute the variables 7802 7803 7804 7805 7806 7807 7808 # Variable names 7809 7810 7811 # Base flags 7812 7813if ${WARN_SCANNERFLAGS+:} false; then : 7814 7815 case " $WARN_SCANNERFLAGS " in #( 7816 *" "*) : 7817 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5 7818 (: WARN_SCANNERFLAGS already contains ) 2>&5 7819 ac_status=$? 7820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7821 test $ac_status = 0; } ;; #( 7822 *) : 7823 7824 as_fn_append WARN_SCANNERFLAGS " " 7825 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 7826 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 7827 ac_status=$? 7828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7829 test $ac_status = 0; } 7830 ;; 7831esac 7832 7833else 7834 7835 WARN_SCANNERFLAGS= 7836 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 7837 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 7838 ac_status=$? 7839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7840 test $ac_status = 0; } 7841 7842fi 7843 7844 7845 if test "$ax_enable_compile_warnings" != "no"; then : 7846 7847 # "yes" flags 7848 7849if ${WARN_SCANNERFLAGS+:} false; then : 7850 7851 case " $WARN_SCANNERFLAGS " in #( 7852 *" --warn-all "*) : 7853 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5 7854 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5 7855 ac_status=$? 7856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7857 test $ac_status = 0; } ;; #( 7858 *) : 7859 7860 as_fn_append WARN_SCANNERFLAGS " --warn-all " 7861 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 7862 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 7863 ac_status=$? 7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7865 test $ac_status = 0; } 7866 ;; 7867esac 7868 7869else 7870 7871 WARN_SCANNERFLAGS= --warn-all 7872 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 7873 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 7874 ac_status=$? 7875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7876 test $ac_status = 0; } 7877 7878fi 7879 7880 7881fi 7882 if test "$ax_enable_compile_warnings" = "error"; then : 7883 7884 # "error" flags 7885 7886if ${WARN_SCANNERFLAGS+:} false; then : 7887 7888 case " $WARN_SCANNERFLAGS " in #( 7889 *" --warn-error "*) : 7890 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5 7891 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5 7892 ac_status=$? 7893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7894 test $ac_status = 0; } ;; #( 7895 *) : 7896 7897 as_fn_append WARN_SCANNERFLAGS " --warn-error " 7898 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 7899 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 7900 ac_status=$? 7901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7902 test $ac_status = 0; } 7903 ;; 7904esac 7905 7906else 7907 7908 WARN_SCANNERFLAGS= --warn-error 7909 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5 7910 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5 7911 ac_status=$? 7912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7913 test $ac_status = 0; } 7914 7915fi 7916 7917 7918fi 7919 7920 # Substitute the variables 7921 7922 7923 7924 7925 # Enables many warnings (despite their names, all and extra do not turn on all warnings) 7926 7927 7928 7929 7930for flag in -pedantic; do 7931 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 7932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 7933$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 7934if eval \${$as_CACHEVAR+:} false; then : 7935 $as_echo_n "(cached) " >&6 7936else 7937 7938 ax_check_save_flags=$CFLAGS 7939 CFLAGS="$CFLAGS $flag" 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942 7943int 7944main () 7945{ 7946 7947 ; 7948 return 0; 7949} 7950_ACEOF 7951if ac_fn_c_try_compile "$LINENO"; then : 7952 eval "$as_CACHEVAR=yes" 7953else 7954 eval "$as_CACHEVAR=no" 7955fi 7956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7957 CFLAGS=$ax_check_save_flags 7958fi 7959eval ac_res=\$$as_CACHEVAR 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7961$as_echo "$ac_res" >&6; } 7962if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 7963 7964if ${EXTRA_CPPFLAGS+:} false; then : 7965 7966 case " $EXTRA_CPPFLAGS " in #( 7967 *" $flag "*) : 7968 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 7969 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 7970 ac_status=$? 7971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7972 test $ac_status = 0; } ;; #( 7973 *) : 7974 7975 as_fn_append EXTRA_CPPFLAGS " $flag" 7976 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 7977 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 7978 ac_status=$? 7979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7980 test $ac_status = 0; } 7981 ;; 7982esac 7983 7984else 7985 7986 EXTRA_CPPFLAGS=$flag 7987 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 7988 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 7989 ac_status=$? 7990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7991 test $ac_status = 0; } 7992 7993fi 7994 7995else 7996 : 7997fi 7998 7999done 8000 8001 8002 # MAINTAINER_MODE 8003 8004 8005 8006 8007for flag in -W; do 8008 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8010$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8011if eval \${$as_CACHEVAR+:} false; then : 8012 $as_echo_n "(cached) " >&6 8013else 8014 8015 ax_check_save_flags=$CFLAGS 8016 CFLAGS="$CFLAGS $flag" 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019 8020int 8021main () 8022{ 8023 8024 ; 8025 return 0; 8026} 8027_ACEOF 8028if ac_fn_c_try_compile "$LINENO"; then : 8029 eval "$as_CACHEVAR=yes" 8030else 8031 eval "$as_CACHEVAR=no" 8032fi 8033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8034 CFLAGS=$ax_check_save_flags 8035fi 8036eval ac_res=\$$as_CACHEVAR 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8038$as_echo "$ac_res" >&6; } 8039if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8040 8041if ${EXTRA_CPPFLAGS+:} false; then : 8042 8043 case " $EXTRA_CPPFLAGS " in #( 8044 *" $flag "*) : 8045 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8046 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8047 ac_status=$? 8048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8049 test $ac_status = 0; } ;; #( 8050 *) : 8051 8052 as_fn_append EXTRA_CPPFLAGS " $flag" 8053 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8054 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8055 ac_status=$? 8056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8057 test $ac_status = 0; } 8058 ;; 8059esac 8060 8061else 8062 8063 EXTRA_CPPFLAGS=$flag 8064 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8065 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8066 ac_status=$? 8067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8068 test $ac_status = 0; } 8069 8070fi 8071 8072else 8073 : 8074fi 8075 8076done 8077 8078 8079 8080 8081 8082for flag in -Wextra; do 8083 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8085$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8086if eval \${$as_CACHEVAR+:} false; then : 8087 $as_echo_n "(cached) " >&6 8088else 8089 8090 ax_check_save_flags=$CFLAGS 8091 CFLAGS="$CFLAGS $flag" 8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8093/* end confdefs.h. */ 8094 8095int 8096main () 8097{ 8098 8099 ; 8100 return 0; 8101} 8102_ACEOF 8103if ac_fn_c_try_compile "$LINENO"; then : 8104 eval "$as_CACHEVAR=yes" 8105else 8106 eval "$as_CACHEVAR=no" 8107fi 8108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8109 CFLAGS=$ax_check_save_flags 8110fi 8111eval ac_res=\$$as_CACHEVAR 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8113$as_echo "$ac_res" >&6; } 8114if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8115 8116if ${EXTRA_CPPFLAGS+:} false; then : 8117 8118 case " $EXTRA_CPPFLAGS " in #( 8119 *" $flag "*) : 8120 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8121 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8122 ac_status=$? 8123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8124 test $ac_status = 0; } ;; #( 8125 *) : 8126 8127 as_fn_append EXTRA_CPPFLAGS " $flag" 8128 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8129 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8130 ac_status=$? 8131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8132 test $ac_status = 0; } 8133 ;; 8134esac 8135 8136else 8137 8138 EXTRA_CPPFLAGS=$flag 8139 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8140 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8141 ac_status=$? 8142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8143 test $ac_status = 0; } 8144 8145fi 8146 8147else 8148 : 8149fi 8150 8151done 8152 8153 8154 8155 8156 8157for flag in -Wunused; do 8158 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8160$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8161if eval \${$as_CACHEVAR+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163else 8164 8165 ax_check_save_flags=$CFLAGS 8166 CFLAGS="$CFLAGS $flag" 8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8168/* end confdefs.h. */ 8169 8170int 8171main () 8172{ 8173 8174 ; 8175 return 0; 8176} 8177_ACEOF 8178if ac_fn_c_try_compile "$LINENO"; then : 8179 eval "$as_CACHEVAR=yes" 8180else 8181 eval "$as_CACHEVAR=no" 8182fi 8183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8184 CFLAGS=$ax_check_save_flags 8185fi 8186eval ac_res=\$$as_CACHEVAR 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8188$as_echo "$ac_res" >&6; } 8189if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8190 8191if ${EXTRA_CPPFLAGS+:} false; then : 8192 8193 case " $EXTRA_CPPFLAGS " in #( 8194 *" $flag "*) : 8195 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8196 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8197 ac_status=$? 8198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8199 test $ac_status = 0; } ;; #( 8200 *) : 8201 8202 as_fn_append EXTRA_CPPFLAGS " $flag" 8203 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8204 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8205 ac_status=$? 8206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8207 test $ac_status = 0; } 8208 ;; 8209esac 8210 8211else 8212 8213 EXTRA_CPPFLAGS=$flag 8214 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8215 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8216 ac_status=$? 8217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8218 test $ac_status = 0; } 8219 8220fi 8221 8222else 8223 : 8224fi 8225 8226done 8227 8228 8229 # Warn for implicit conversions that may alter a value (includes -Wsign-conversion) 8230 8231 8232 8233 8234for flag in -Wconversion; do 8235 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8237$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8238if eval \${$as_CACHEVAR+:} false; then : 8239 $as_echo_n "(cached) " >&6 8240else 8241 8242 ax_check_save_flags=$CFLAGS 8243 CFLAGS="$CFLAGS $flag" 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246 8247int 8248main () 8249{ 8250 8251 ; 8252 return 0; 8253} 8254_ACEOF 8255if ac_fn_c_try_compile "$LINENO"; then : 8256 eval "$as_CACHEVAR=yes" 8257else 8258 eval "$as_CACHEVAR=no" 8259fi 8260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8261 CFLAGS=$ax_check_save_flags 8262fi 8263eval ac_res=\$$as_CACHEVAR 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8265$as_echo "$ac_res" >&6; } 8266if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8267 8268if ${EXTRA_CPPFLAGS+:} false; then : 8269 8270 case " $EXTRA_CPPFLAGS " in #( 8271 *" $flag "*) : 8272 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8273 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8274 ac_status=$? 8275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8276 test $ac_status = 0; } ;; #( 8277 *) : 8278 8279 as_fn_append EXTRA_CPPFLAGS " $flag" 8280 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8281 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8282 ac_status=$? 8283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8284 test $ac_status = 0; } 8285 ;; 8286esac 8287 8288else 8289 8290 EXTRA_CPPFLAGS=$flag 8291 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8292 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8293 ac_status=$? 8294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8295 test $ac_status = 0; } 8296 8297fi 8298 8299else 8300 : 8301fi 8302 8303done 8304 8305 8306 # Warn for implicit conversions that may change the sign of an integer value, such 8307 # as assigning a signed integer to an unsigned integer (-1 > 1 after promotion!) 8308 8309 # Warn for a pointer cast to a type which has a different size, causing an invalid 8310 # alignment and subsequent bus error on ARM processors 8311 8312 8313 8314 8315for flag in -Wcast-align; do 8316 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8318$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8319if eval \${$as_CACHEVAR+:} false; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 8323 ax_check_save_flags=$CFLAGS 8324 CFLAGS="$CFLAGS $flag" 8325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8326/* end confdefs.h. */ 8327 8328int 8329main () 8330{ 8331 8332 ; 8333 return 0; 8334} 8335_ACEOF 8336if ac_fn_c_try_compile "$LINENO"; then : 8337 eval "$as_CACHEVAR=yes" 8338else 8339 eval "$as_CACHEVAR=no" 8340fi 8341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8342 CFLAGS=$ax_check_save_flags 8343fi 8344eval ac_res=\$$as_CACHEVAR 8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8346$as_echo "$ac_res" >&6; } 8347if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8348 8349if ${EXTRA_CPPFLAGS+:} false; then : 8350 8351 case " $EXTRA_CPPFLAGS " in #( 8352 *" $flag "*) : 8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8354 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8355 ac_status=$? 8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8357 test $ac_status = 0; } ;; #( 8358 *) : 8359 8360 as_fn_append EXTRA_CPPFLAGS " $flag" 8361 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8362 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8363 ac_status=$? 8364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8365 test $ac_status = 0; } 8366 ;; 8367esac 8368 8369else 8370 8371 EXTRA_CPPFLAGS=$flag 8372 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8373 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8374 ac_status=$? 8375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8376 test $ac_status = 0; } 8377 8378fi 8379 8380else 8381 : 8382fi 8383 8384done 8385 8386 8387 # Increases warnings related to possible security defects, including incorrect format 8388 # specifiers (includes -Wformat -Wformat-nonliteral -Wformat-security -Wformat-y2k) 8389 8390 8391 8392 8393for flag in -Wformat=2; do 8394 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8396$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8397if eval \${$as_CACHEVAR+:} false; then : 8398 $as_echo_n "(cached) " >&6 8399else 8400 8401 ax_check_save_flags=$CFLAGS 8402 CFLAGS="$CFLAGS $flag" 8403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8404/* end confdefs.h. */ 8405 8406int 8407main () 8408{ 8409 8410 ; 8411 return 0; 8412} 8413_ACEOF 8414if ac_fn_c_try_compile "$LINENO"; then : 8415 eval "$as_CACHEVAR=yes" 8416else 8417 eval "$as_CACHEVAR=no" 8418fi 8419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8420 CFLAGS=$ax_check_save_flags 8421fi 8422eval ac_res=\$$as_CACHEVAR 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8424$as_echo "$ac_res" >&6; } 8425if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8426 8427if ${EXTRA_CPPFLAGS+:} false; then : 8428 8429 case " $EXTRA_CPPFLAGS " in #( 8430 *" $flag "*) : 8431 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8432 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8433 ac_status=$? 8434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8435 test $ac_status = 0; } ;; #( 8436 *) : 8437 8438 as_fn_append EXTRA_CPPFLAGS " $flag" 8439 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8440 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8441 ac_status=$? 8442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8443 test $ac_status = 0; } 8444 ;; 8445esac 8446 8447else 8448 8449 EXTRA_CPPFLAGS=$flag 8450 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8451 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8452 ac_status=$? 8453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8454 test $ac_status = 0; } 8455 8456fi 8457 8458else 8459 : 8460fi 8461 8462done 8463 8464 8465 # Warn if a global function is defined without a prototype or declaration 8466 8467 8468 8469 8470for flag in -Wmissing-declarations; do 8471 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8473$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8474if eval \${$as_CACHEVAR+:} false; then : 8475 $as_echo_n "(cached) " >&6 8476else 8477 8478 ax_check_save_flags=$CFLAGS 8479 CFLAGS="$CFLAGS $flag" 8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8481/* end confdefs.h. */ 8482 8483int 8484main () 8485{ 8486 8487 ; 8488 return 0; 8489} 8490_ACEOF 8491if ac_fn_c_try_compile "$LINENO"; then : 8492 eval "$as_CACHEVAR=yes" 8493else 8494 eval "$as_CACHEVAR=no" 8495fi 8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8497 CFLAGS=$ax_check_save_flags 8498fi 8499eval ac_res=\$$as_CACHEVAR 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8501$as_echo "$ac_res" >&6; } 8502if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8503 8504if ${EXTRA_CPPFLAGS+:} false; then : 8505 8506 case " $EXTRA_CPPFLAGS " in #( 8507 *" $flag "*) : 8508 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8509 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8510 ac_status=$? 8511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8512 test $ac_status = 0; } ;; #( 8513 *) : 8514 8515 as_fn_append EXTRA_CPPFLAGS " $flag" 8516 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8517 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8518 ac_status=$? 8519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8520 test $ac_status = 0; } 8521 ;; 8522esac 8523 8524else 8525 8526 EXTRA_CPPFLAGS=$flag 8527 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8528 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8529 ac_status=$? 8530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8531 test $ac_status = 0; } 8532 8533fi 8534 8535else 8536 : 8537fi 8538 8539done 8540 8541 8542 # Warn if a function is declared or defined without specifying the argument types 8543 8544 8545 8546 8547for flag in -Wstrict-prototypes; do 8548 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8550$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8551if eval \${$as_CACHEVAR+:} false; then : 8552 $as_echo_n "(cached) " >&6 8553else 8554 8555 ax_check_save_flags=$CFLAGS 8556 CFLAGS="$CFLAGS $flag" 8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8558/* end confdefs.h. */ 8559 8560int 8561main () 8562{ 8563 8564 ; 8565 return 0; 8566} 8567_ACEOF 8568if ac_fn_c_try_compile "$LINENO"; then : 8569 eval "$as_CACHEVAR=yes" 8570else 8571 eval "$as_CACHEVAR=no" 8572fi 8573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8574 CFLAGS=$ax_check_save_flags 8575fi 8576eval ac_res=\$$as_CACHEVAR 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8578$as_echo "$ac_res" >&6; } 8579if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8580 8581if ${EXTRA_CPPFLAGS+:} false; then : 8582 8583 case " $EXTRA_CPPFLAGS " in #( 8584 *" $flag "*) : 8585 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8586 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8587 ac_status=$? 8588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8589 test $ac_status = 0; } ;; #( 8590 *) : 8591 8592 as_fn_append EXTRA_CPPFLAGS " $flag" 8593 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8594 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8595 ac_status=$? 8596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8597 test $ac_status = 0; } 8598 ;; 8599esac 8600 8601else 8602 8603 EXTRA_CPPFLAGS=$flag 8604 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8605 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8606 ac_status=$? 8607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8608 test $ac_status = 0; } 8609 8610fi 8611 8612else 8613 : 8614fi 8615 8616done 8617 8618 8619 # Warn about optimizations taken due to [undefined] signed integer overflow assumptions 8620 8621 8622 8623 8624for flag in -Wstrict-overflow; do 8625 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8627$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8628if eval \${$as_CACHEVAR+:} false; then : 8629 $as_echo_n "(cached) " >&6 8630else 8631 8632 ax_check_save_flags=$CFLAGS 8633 CFLAGS="$CFLAGS $flag" 8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8635/* end confdefs.h. */ 8636 8637int 8638main () 8639{ 8640 8641 ; 8642 return 0; 8643} 8644_ACEOF 8645if ac_fn_c_try_compile "$LINENO"; then : 8646 eval "$as_CACHEVAR=yes" 8647else 8648 eval "$as_CACHEVAR=no" 8649fi 8650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8651 CFLAGS=$ax_check_save_flags 8652fi 8653eval ac_res=\$$as_CACHEVAR 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8655$as_echo "$ac_res" >&6; } 8656if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8657 8658if ${EXTRA_CPPFLAGS+:} false; then : 8659 8660 case " $EXTRA_CPPFLAGS " in #( 8661 *" $flag "*) : 8662 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8663 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8664 ac_status=$? 8665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8666 test $ac_status = 0; } ;; #( 8667 *) : 8668 8669 as_fn_append EXTRA_CPPFLAGS " $flag" 8670 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8671 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8672 ac_status=$? 8673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8674 test $ac_status = 0; } 8675 ;; 8676esac 8677 8678else 8679 8680 EXTRA_CPPFLAGS=$flag 8681 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8682 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8683 ac_status=$? 8684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8685 test $ac_status = 0; } 8686 8687fi 8688 8689else 8690 : 8691fi 8692 8693done 8694 # gcc 4.2 8695 8696 # Enable exception handling. Generates extra code needed to propagate exceptions 8697 8698 8699 8700 8701for flag in -fexceptions; do 8702 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8704$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8705if eval \${$as_CACHEVAR+:} false; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 8709 ax_check_save_flags=$CFLAGS 8710 CFLAGS="$CFLAGS $flag" 8711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8712/* end confdefs.h. */ 8713 8714int 8715main () 8716{ 8717 8718 ; 8719 return 0; 8720} 8721_ACEOF 8722if ac_fn_c_try_compile "$LINENO"; then : 8723 eval "$as_CACHEVAR=yes" 8724else 8725 eval "$as_CACHEVAR=no" 8726fi 8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8728 CFLAGS=$ax_check_save_flags 8729fi 8730eval ac_res=\$$as_CACHEVAR 8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8732$as_echo "$ac_res" >&6; } 8733if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8734 8735if ${EXTRA_CFLAGS+:} false; then : 8736 8737 case " $EXTRA_CFLAGS " in #( 8738 *" $flag "*) : 8739 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains \$flag"; } >&5 8740 (: EXTRA_CFLAGS already contains $flag) 2>&5 8741 ac_status=$? 8742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8743 test $ac_status = 0; } ;; #( 8744 *) : 8745 8746 as_fn_append EXTRA_CFLAGS " $flag" 8747 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 8748 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 8749 ac_status=$? 8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8751 test $ac_status = 0; } 8752 ;; 8753esac 8754 8755else 8756 8757 EXTRA_CFLAGS=$flag 8758 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 8759 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 8760 ac_status=$? 8761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8762 test $ac_status = 0; } 8763 8764fi 8765 8766else 8767 : 8768fi 8769 8770done 8771 8772 8773 # Enable AddressSanitizer, a fast memory error detector. Memory access instructions 8774 # will be instrumented to help detect heap, stack, and global buffer overflows; 8775 # as well as use-after-free bugs 8776 8777 8778 8779 8780for flag in -fsanitize_not; do 8781 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8783$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8784if eval \${$as_CACHEVAR+:} false; then : 8785 $as_echo_n "(cached) " >&6 8786else 8787 8788 ax_check_save_flags=$CFLAGS 8789 CFLAGS="$CFLAGS $flag" 8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8791/* end confdefs.h. */ 8792 8793int 8794main () 8795{ 8796 8797 ; 8798 return 0; 8799} 8800_ACEOF 8801if ac_fn_c_try_compile "$LINENO"; then : 8802 eval "$as_CACHEVAR=yes" 8803else 8804 eval "$as_CACHEVAR=no" 8805fi 8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8807 CFLAGS=$ax_check_save_flags 8808fi 8809eval ac_res=\$$as_CACHEVAR 8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8811$as_echo "$ac_res" >&6; } 8812if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8813 8814if ${EXTRA_CFLAGS+:} false; then : 8815 8816 case " $EXTRA_CFLAGS " in #( 8817 *" $flag "*) : 8818 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains \$flag"; } >&5 8819 (: EXTRA_CFLAGS already contains $flag) 2>&5 8820 ac_status=$? 8821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8822 test $ac_status = 0; } ;; #( 8823 *) : 8824 8825 as_fn_append EXTRA_CFLAGS " $flag" 8826 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 8827 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 8828 ac_status=$? 8829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8830 test $ac_status = 0; } 8831 ;; 8832esac 8833 8834else 8835 8836 EXTRA_CFLAGS=$flag 8837 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 8838 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 8839 ac_status=$? 8840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8841 test $ac_status = 0; } 8842 8843fi 8844 8845else 8846 : 8847fi 8848 8849done 8850 # gcc 4.8 8851 8852 8853 8854 8855for flag in -static-libasan; do 8856 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8858$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8859if eval \${$as_CACHEVAR+:} false; then : 8860 $as_echo_n "(cached) " >&6 8861else 8862 8863 ax_check_save_flags=$CFLAGS 8864 CFLAGS="$CFLAGS $flag" 8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8866/* end confdefs.h. */ 8867 8868int 8869main () 8870{ 8871 8872 ; 8873 return 0; 8874} 8875_ACEOF 8876if ac_fn_c_try_compile "$LINENO"; then : 8877 eval "$as_CACHEVAR=yes" 8878else 8879 eval "$as_CACHEVAR=no" 8880fi 8881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8882 CFLAGS=$ax_check_save_flags 8883fi 8884eval ac_res=\$$as_CACHEVAR 8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8886$as_echo "$ac_res" >&6; } 8887if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8888 8889if ${EXTRA_CFLAGS+:} false; then : 8890 8891 case " $EXTRA_CFLAGS " in #( 8892 *" $flag "*) : 8893 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains \$flag"; } >&5 8894 (: EXTRA_CFLAGS already contains $flag) 2>&5 8895 ac_status=$? 8896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8897 test $ac_status = 0; } ;; #( 8898 *) : 8899 8900 as_fn_append EXTRA_CFLAGS " $flag" 8901 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 8902 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 8903 ac_status=$? 8904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8905 test $ac_status = 0; } 8906 ;; 8907esac 8908 8909else 8910 8911 EXTRA_CFLAGS=$flag 8912 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 8913 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 8914 ac_status=$? 8915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8916 test $ac_status = 0; } 8917 8918fi 8919 8920else 8921 : 8922fi 8923 8924done 8925 # gcc 4.8 8926 8927 # FORTIFY_SOURCE / buffer overflow 8928 8929 8930 8931 8932for flag in '-O1 -D_FORTIFY_SOURCE=2'; do 8933 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 8935$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 8936if eval \${$as_CACHEVAR+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 8940 ax_check_save_flags=$CFLAGS 8941 CFLAGS="$CFLAGS $flag" 8942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8943/* end confdefs.h. */ 8944 8945int 8946main () 8947{ 8948 8949 ; 8950 return 0; 8951} 8952_ACEOF 8953if ac_fn_c_try_compile "$LINENO"; then : 8954 eval "$as_CACHEVAR=yes" 8955else 8956 eval "$as_CACHEVAR=no" 8957fi 8958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8959 CFLAGS=$ax_check_save_flags 8960fi 8961eval ac_res=\$$as_CACHEVAR 8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8963$as_echo "$ac_res" >&6; } 8964if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 8965 8966if ${EXTRA_CPPFLAGS+:} false; then : 8967 8968 case " $EXTRA_CPPFLAGS " in #( 8969 *" $flag "*) : 8970 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS already contains \$flag"; } >&5 8971 (: EXTRA_CPPFLAGS already contains $flag) 2>&5 8972 ac_status=$? 8973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8974 test $ac_status = 0; } ;; #( 8975 *) : 8976 8977 as_fn_append EXTRA_CPPFLAGS " $flag" 8978 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8979 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8980 ac_status=$? 8981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8982 test $ac_status = 0; } 8983 ;; 8984esac 8985 8986else 8987 8988 EXTRA_CPPFLAGS=$flag 8989 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CPPFLAGS=\"\$EXTRA_CPPFLAGS\""; } >&5 8990 (: EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS") 2>&5 8991 ac_status=$? 8992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8993 test $ac_status = 0; } 8994 8995fi 8996 8997else 8998 : 8999fi 9000 9001done 9002 # gcc 4.1 9003 9004 9005 # Stack Smashing Protection 9006 # Improves stack layout and adds a guard to detect stack based buffer overflows 9007 case ${ac_cv_build} in #( 9008 *hpux*) : 9009 ;; #( 9010 *) : 9011 9012 9013 9014 9015 9016for flag in -fstack-protector-strong; do 9017 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9019$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9020if eval \${$as_CACHEVAR+:} false; then : 9021 $as_echo_n "(cached) " >&6 9022else 9023 9024 ax_check_save_flags=$CFLAGS 9025 CFLAGS="$CFLAGS $flag" 9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9027/* end confdefs.h. */ 9028 9029int 9030main () 9031{ 9032 9033 ; 9034 return 0; 9035} 9036_ACEOF 9037if ac_fn_c_try_compile "$LINENO"; then : 9038 eval "$as_CACHEVAR=yes" 9039else 9040 eval "$as_CACHEVAR=no" 9041fi 9042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9043 CFLAGS=$ax_check_save_flags 9044fi 9045eval ac_res=\$$as_CACHEVAR 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9047$as_echo "$ac_res" >&6; } 9048if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9049 9050if ${EXTRA_CFLAGS+:} false; then : 9051 9052 case " $EXTRA_CFLAGS " in #( 9053 *" $flag "*) : 9054 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains \$flag"; } >&5 9055 (: EXTRA_CFLAGS already contains $flag) 2>&5 9056 ac_status=$? 9057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9058 test $ac_status = 0; } ;; #( 9059 *) : 9060 9061 as_fn_append EXTRA_CFLAGS " $flag" 9062 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9063 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9064 ac_status=$? 9065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9066 test $ac_status = 0; } 9067 ;; 9068esac 9069 9070else 9071 9072 EXTRA_CFLAGS=$flag 9073 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9074 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9075 ac_status=$? 9076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9077 test $ac_status = 0; } 9078 9079fi 9080 9081else 9082 : 9083fi 9084 9085done 9086 # gcc 4.9 9087 9088 if test "_${ax_cv_check_cflags___fstack_protector_strong}" = _no; then : 9089 9090 9091 9092 9093 9094for flag in -fstack-protector-all; do 9095 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9097$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9098if eval \${$as_CACHEVAR+:} false; then : 9099 $as_echo_n "(cached) " >&6 9100else 9101 9102 ax_check_save_flags=$CFLAGS 9103 CFLAGS="$CFLAGS $flag" 9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9105/* end confdefs.h. */ 9106 9107int 9108main () 9109{ 9110 9111 ; 9112 return 0; 9113} 9114_ACEOF 9115if ac_fn_c_try_compile "$LINENO"; then : 9116 eval "$as_CACHEVAR=yes" 9117else 9118 eval "$as_CACHEVAR=no" 9119fi 9120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9121 CFLAGS=$ax_check_save_flags 9122fi 9123eval ac_res=\$$as_CACHEVAR 9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9125$as_echo "$ac_res" >&6; } 9126if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9127 9128if ${EXTRA_CFLAGS+:} false; then : 9129 9130 case " $EXTRA_CFLAGS " in #( 9131 *" $flag "*) : 9132 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains \$flag"; } >&5 9133 (: EXTRA_CFLAGS already contains $flag) 2>&5 9134 ac_status=$? 9135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9136 test $ac_status = 0; } ;; #( 9137 *) : 9138 9139 as_fn_append EXTRA_CFLAGS " $flag" 9140 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9141 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9142 ac_status=$? 9143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9144 test $ac_status = 0; } 9145 ;; 9146esac 9147 9148else 9149 9150 EXTRA_CFLAGS=$flag 9151 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9152 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9153 ac_status=$? 9154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9155 test $ac_status = 0; } 9156 9157fi 9158 9159else 9160 : 9161fi 9162 9163done 9164 # gcc 3.x 9165 9166fi 9167 9168 9169 9170 9171 9172for flag in '--param ssp-buffer-size=4'; do 9173 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 9174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9175$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9176if eval \${$as_CACHEVAR+:} false; then : 9177 $as_echo_n "(cached) " >&6 9178else 9179 9180 ax_check_save_flags=$CFLAGS 9181 CFLAGS="$CFLAGS $flag" 9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9183/* end confdefs.h. */ 9184 9185int 9186main () 9187{ 9188 9189 ; 9190 return 0; 9191} 9192_ACEOF 9193if ac_fn_c_try_compile "$LINENO"; then : 9194 eval "$as_CACHEVAR=yes" 9195else 9196 eval "$as_CACHEVAR=no" 9197fi 9198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9199 CFLAGS=$ax_check_save_flags 9200fi 9201eval ac_res=\$$as_CACHEVAR 9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9203$as_echo "$ac_res" >&6; } 9204if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9205 9206if ${EXTRA_CFLAGS+:} false; then : 9207 9208 case " $EXTRA_CFLAGS " in #( 9209 *" $flag "*) : 9210 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains \$flag"; } >&5 9211 (: EXTRA_CFLAGS already contains $flag) 2>&5 9212 ac_status=$? 9213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9214 test $ac_status = 0; } ;; #( 9215 *) : 9216 9217 as_fn_append EXTRA_CFLAGS " $flag" 9218 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9219 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9220 ac_status=$? 9221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9222 test $ac_status = 0; } 9223 ;; 9224esac 9225 9226else 9227 9228 EXTRA_CFLAGS=$flag 9229 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9230 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9231 ac_status=$? 9232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9233 test $ac_status = 0; } 9234 9235fi 9236 9237else 9238 : 9239fi 9240 9241done 9242 9243 ;; 9244esac 9245 9246 # Data Execution Prevention (DEP). ELF headers are marked with PT_GNU_STACK and PT_GNU_HEAP 9247 9248 9249 9250 9251for flag in -Wl,-z,noexecstack; do 9252 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh` 9253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 9254$as_echo_n "checking whether the linker accepts $flag... " >&6; } 9255if eval \${$as_CACHEVAR+:} false; then : 9256 $as_echo_n "(cached) " >&6 9257else 9258 9259 ax_check_save_flags=$LDFLAGS 9260 LDFLAGS="$LDFLAGS $flag" 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263 9264int 9265main () 9266{ 9267 9268 ; 9269 return 0; 9270} 9271_ACEOF 9272if ac_fn_c_try_link "$LINENO"; then : 9273 eval "$as_CACHEVAR=yes" 9274else 9275 eval "$as_CACHEVAR=no" 9276fi 9277rm -f core conftest.err conftest.$ac_objext \ 9278 conftest$ac_exeext conftest.$ac_ext 9279 LDFLAGS=$ax_check_save_flags 9280fi 9281eval ac_res=\$$as_CACHEVAR 9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9283$as_echo "$ac_res" >&6; } 9284if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9285 9286if ${EXTRA_LDFLAGS+:} false; then : 9287 9288 case " $EXTRA_LDFLAGS " in #( 9289 *" $flag "*) : 9290 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS already contains \$flag"; } >&5 9291 (: EXTRA_LDFLAGS already contains $flag) 2>&5 9292 ac_status=$? 9293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9294 test $ac_status = 0; } ;; #( 9295 *) : 9296 9297 as_fn_append EXTRA_LDFLAGS " $flag" 9298 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9299 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9300 ac_status=$? 9301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9302 test $ac_status = 0; } 9303 ;; 9304esac 9305 9306else 9307 9308 EXTRA_LDFLAGS=$flag 9309 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9310 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9311 ac_status=$? 9312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9313 test $ac_status = 0; } 9314 9315fi 9316 9317else 9318 : 9319fi 9320 9321done 9322 # ld 2.14 9323 9324 9325 9326 9327for flag in -Wl,-z,noexecheap; do 9328 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh` 9329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 9330$as_echo_n "checking whether the linker accepts $flag... " >&6; } 9331if eval \${$as_CACHEVAR+:} false; then : 9332 $as_echo_n "(cached) " >&6 9333else 9334 9335 ax_check_save_flags=$LDFLAGS 9336 LDFLAGS="$LDFLAGS $flag" 9337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9338/* end confdefs.h. */ 9339 9340int 9341main () 9342{ 9343 9344 ; 9345 return 0; 9346} 9347_ACEOF 9348if ac_fn_c_try_link "$LINENO"; then : 9349 eval "$as_CACHEVAR=yes" 9350else 9351 eval "$as_CACHEVAR=no" 9352fi 9353rm -f core conftest.err conftest.$ac_objext \ 9354 conftest$ac_exeext conftest.$ac_ext 9355 LDFLAGS=$ax_check_save_flags 9356fi 9357eval ac_res=\$$as_CACHEVAR 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9359$as_echo "$ac_res" >&6; } 9360if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9361 9362if ${EXTRA_LDFLAGS+:} false; then : 9363 9364 case " $EXTRA_LDFLAGS " in #( 9365 *" $flag "*) : 9366 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS already contains \$flag"; } >&5 9367 (: EXTRA_LDFLAGS already contains $flag) 2>&5 9368 ac_status=$? 9369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9370 test $ac_status = 0; } ;; #( 9371 *) : 9372 9373 as_fn_append EXTRA_LDFLAGS " $flag" 9374 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9375 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9376 ac_status=$? 9377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9378 test $ac_status = 0; } 9379 ;; 9380esac 9381 9382else 9383 9384 EXTRA_LDFLAGS=$flag 9385 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9386 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9387 ac_status=$? 9388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9389 test $ac_status = 0; } 9390 9391fi 9392 9393else 9394 : 9395fi 9396 9397done 9398 # ld 2.14 9399 9400 # RELocation Read-Only 9401 # Helps remediate Global Offset Table (GOT) attacks on executables 9402 # Helps remediate Procedure Linkage Table (PLT) attacks on executables 9403 9404 9405 9406 9407for flag in -Wl,-z,relro; do 9408 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh` 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 9410$as_echo_n "checking whether the linker accepts $flag... " >&6; } 9411if eval \${$as_CACHEVAR+:} false; then : 9412 $as_echo_n "(cached) " >&6 9413else 9414 9415 ax_check_save_flags=$LDFLAGS 9416 LDFLAGS="$LDFLAGS $flag" 9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418/* end confdefs.h. */ 9419 9420int 9421main () 9422{ 9423 9424 ; 9425 return 0; 9426} 9427_ACEOF 9428if ac_fn_c_try_link "$LINENO"; then : 9429 eval "$as_CACHEVAR=yes" 9430else 9431 eval "$as_CACHEVAR=no" 9432fi 9433rm -f core conftest.err conftest.$ac_objext \ 9434 conftest$ac_exeext conftest.$ac_ext 9435 LDFLAGS=$ax_check_save_flags 9436fi 9437eval ac_res=\$$as_CACHEVAR 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9439$as_echo "$ac_res" >&6; } 9440if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9441 9442if ${EXTRA_LDFLAGS+:} false; then : 9443 9444 case " $EXTRA_LDFLAGS " in #( 9445 *" $flag "*) : 9446 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS already contains \$flag"; } >&5 9447 (: EXTRA_LDFLAGS already contains $flag) 2>&5 9448 ac_status=$? 9449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9450 test $ac_status = 0; } ;; #( 9451 *) : 9452 9453 as_fn_append EXTRA_LDFLAGS " $flag" 9454 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9455 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9456 ac_status=$? 9457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9458 test $ac_status = 0; } 9459 ;; 9460esac 9461 9462else 9463 9464 EXTRA_LDFLAGS=$flag 9465 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9466 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9467 ac_status=$? 9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9469 test $ac_status = 0; } 9470 9471fi 9472 9473else 9474 : 9475fi 9476 9477done 9478 # ld 2.15 9479 9480 9481 9482 9483for flag in -Wl,-z,now; do 9484 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh` 9485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 9486$as_echo_n "checking whether the linker accepts $flag... " >&6; } 9487if eval \${$as_CACHEVAR+:} false; then : 9488 $as_echo_n "(cached) " >&6 9489else 9490 9491 ax_check_save_flags=$LDFLAGS 9492 LDFLAGS="$LDFLAGS $flag" 9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9494/* end confdefs.h. */ 9495 9496int 9497main () 9498{ 9499 9500 ; 9501 return 0; 9502} 9503_ACEOF 9504if ac_fn_c_try_link "$LINENO"; then : 9505 eval "$as_CACHEVAR=yes" 9506else 9507 eval "$as_CACHEVAR=no" 9508fi 9509rm -f core conftest.err conftest.$ac_objext \ 9510 conftest$ac_exeext conftest.$ac_ext 9511 LDFLAGS=$ax_check_save_flags 9512fi 9513eval ac_res=\$$as_CACHEVAR 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9515$as_echo "$ac_res" >&6; } 9516if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9517 9518if ${EXTRA_LDFLAGS+:} false; then : 9519 9520 case " $EXTRA_LDFLAGS " in #( 9521 *" $flag "*) : 9522 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS already contains \$flag"; } >&5 9523 (: EXTRA_LDFLAGS already contains $flag) 2>&5 9524 ac_status=$? 9525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9526 test $ac_status = 0; } ;; #( 9527 *) : 9528 9529 as_fn_append EXTRA_LDFLAGS " $flag" 9530 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9531 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9532 ac_status=$? 9533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9534 test $ac_status = 0; } 9535 ;; 9536esac 9537 9538else 9539 9540 EXTRA_LDFLAGS=$flag 9541 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9542 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9543 ac_status=$? 9544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9545 test $ac_status = 0; } 9546 9547fi 9548 9549else 9550 : 9551fi 9552 9553done 9554 # ld 2.15 9555 9556 case ${ac_cv_build} in #( 9557 *-aix*) : 9558 ;; #( 9559 *-solaris*) : 9560 ;; #( 9561 *) : 9562 9563 # Position Independent Executable (ASLR). Used for programs. 9564 # Both -fPIE (compiler) and -pie (linker) are required 9565 9566 9567 9568 9569for flag in -fPIE; do 9570 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh` 9571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5 9572$as_echo_n "checking whether C compiler accepts $flag... " >&6; } 9573if eval \${$as_CACHEVAR+:} false; then : 9574 $as_echo_n "(cached) " >&6 9575else 9576 9577 ax_check_save_flags=$CFLAGS 9578 CFLAGS="$CFLAGS $flag" 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581 9582int 9583main () 9584{ 9585 9586 ; 9587 return 0; 9588} 9589_ACEOF 9590if ac_fn_c_try_compile "$LINENO"; then : 9591 eval "$as_CACHEVAR=yes" 9592else 9593 eval "$as_CACHEVAR=no" 9594fi 9595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9596 CFLAGS=$ax_check_save_flags 9597fi 9598eval ac_res=\$$as_CACHEVAR 9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9600$as_echo "$ac_res" >&6; } 9601if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9602 9603if ${EXTRA_CFLAGS+:} false; then : 9604 9605 case " $EXTRA_CFLAGS " in #( 9606 *" $flag "*) : 9607 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS already contains \$flag"; } >&5 9608 (: EXTRA_CFLAGS already contains $flag) 2>&5 9609 ac_status=$? 9610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9611 test $ac_status = 0; } ;; #( 9612 *) : 9613 9614 as_fn_append EXTRA_CFLAGS " $flag" 9615 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9616 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9617 ac_status=$? 9618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9619 test $ac_status = 0; } 9620 ;; 9621esac 9622 9623else 9624 9625 EXTRA_CFLAGS=$flag 9626 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_CFLAGS=\"\$EXTRA_CFLAGS\""; } >&5 9627 (: EXTRA_CFLAGS="$EXTRA_CFLAGS") 2>&5 9628 ac_status=$? 9629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9630 test $ac_status = 0; } 9631 9632fi 9633 9634else 9635 : 9636fi 9637 9638done 9639 # gcc 3.x 9640 9641 9642 9643 9644for flag in -pie; do 9645 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags__$flag" | $as_tr_sh` 9646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5 9647$as_echo_n "checking whether the linker accepts $flag... " >&6; } 9648if eval \${$as_CACHEVAR+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 9652 ax_check_save_flags=$LDFLAGS 9653 LDFLAGS="$LDFLAGS $flag" 9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9655/* end confdefs.h. */ 9656 9657int 9658main () 9659{ 9660 9661 ; 9662 return 0; 9663} 9664_ACEOF 9665if ac_fn_c_try_link "$LINENO"; then : 9666 eval "$as_CACHEVAR=yes" 9667else 9668 eval "$as_CACHEVAR=no" 9669fi 9670rm -f core conftest.err conftest.$ac_objext \ 9671 conftest$ac_exeext conftest.$ac_ext 9672 LDFLAGS=$ax_check_save_flags 9673fi 9674eval ac_res=\$$as_CACHEVAR 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 9676$as_echo "$ac_res" >&6; } 9677if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then : 9678 9679if ${EXTRA_LDFLAGS+:} false; then : 9680 9681 case " $EXTRA_LDFLAGS " in #( 9682 *" $flag "*) : 9683 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS already contains \$flag"; } >&5 9684 (: EXTRA_LDFLAGS already contains $flag) 2>&5 9685 ac_status=$? 9686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9687 test $ac_status = 0; } ;; #( 9688 *) : 9689 9690 as_fn_append EXTRA_LDFLAGS " $flag" 9691 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9692 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9693 ac_status=$? 9694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9695 test $ac_status = 0; } 9696 ;; 9697esac 9698 9699else 9700 9701 EXTRA_LDFLAGS=$flag 9702 { { $as_echo "$as_me:${as_lineno-$LINENO}: : EXTRA_LDFLAGS=\"\$EXTRA_LDFLAGS\""; } >&5 9703 (: EXTRA_LDFLAGS="$EXTRA_LDFLAGS") 2>&5 9704 ac_status=$? 9705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9706 test $ac_status = 0; } 9707 9708fi 9709 9710else 9711 : 9712fi 9713 9714done 9715 # ld 2.16 9716 ;; 9717esac 9718 9719 CFLAGS=`echo "$CFLAGS" | sed 's/-O2//'` 9720 9721fi 9722 9723 9724 9725 9726 9727cat >confcache <<\_ACEOF 9728# This file is a shell script that caches the results of configure 9729# tests run on this system so they can be shared between configure 9730# scripts and configure runs, see configure's option --config-cache. 9731# It is not useful on other systems. If it contains results you don't 9732# want to keep, you may remove or edit it. 9733# 9734# config.status only pays attention to the cache file if you give it 9735# the --recheck option to rerun configure. 9736# 9737# `ac_cv_env_foo' variables (set or unset) will be overridden when 9738# loading this file, other *unset* `ac_cv_foo' will be assigned the 9739# following values. 9740 9741_ACEOF 9742 9743# The following way of writing the cache mishandles newlines in values, 9744# but we know of no workaround that is simple, portable, and efficient. 9745# So, we kill variables containing newlines. 9746# Ultrix sh set writes to stderr and can't be redirected directly, 9747# and sets the high bit in the cache file unless we assign to the vars. 9748( 9749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 9750 eval ac_val=\$$ac_var 9751 case $ac_val in #( 9752 *${as_nl}*) 9753 case $ac_var in #( 9754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 9755$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 9756 esac 9757 case $ac_var in #( 9758 _ | IFS | as_nl) ;; #( 9759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 9760 *) { eval $ac_var=; unset $ac_var;} ;; 9761 esac ;; 9762 esac 9763 done 9764 9765 (set) 2>&1 | 9766 case $as_nl`(ac_space=' '; set) 2>&1` in #( 9767 *${as_nl}ac_space=\ *) 9768 # `set' does not quote correctly, so add quotes: double-quote 9769 # substitution turns \\\\ into \\, and sed turns \\ into \. 9770 sed -n \ 9771 "s/'/'\\\\''/g; 9772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 9773 ;; #( 9774 *) 9775 # `set' quotes correctly as required by POSIX, so do not add quotes. 9776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 9777 ;; 9778 esac | 9779 sort 9780) | 9781 sed ' 9782 /^ac_cv_env_/b end 9783 t clear 9784 :clear 9785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 9786 t end 9787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 9788 :end' >>confcache 9789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 9790 if test -w "$cache_file"; then 9791 if test "x$cache_file" != "x/dev/null"; then 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 9793$as_echo "$as_me: updating cache $cache_file" >&6;} 9794 if test ! -f "$cache_file" || test -h "$cache_file"; then 9795 cat confcache >"$cache_file" 9796 else 9797 case $cache_file in #( 9798 */* | ?:*) 9799 mv -f confcache "$cache_file"$$ && 9800 mv -f "$cache_file"$$ "$cache_file" ;; #( 9801 *) 9802 mv -f confcache "$cache_file" ;; 9803 esac 9804 fi 9805 fi 9806 else 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 9808$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 9809 fi 9810fi 9811rm -f confcache 9812 9813test "x$prefix" = xNONE && prefix=$ac_default_prefix 9814# Let make expand exec_prefix. 9815test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 9816 9817DEFS=-DHAVE_CONFIG_H 9818 9819ac_libobjs= 9820ac_ltlibobjs= 9821U= 9822for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 9823 # 1. Remove the extension, and $U if already installed. 9824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 9825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 9826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 9827 # will be set to the directory where LIBOBJS objects are built. 9828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 9829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 9830done 9831LIBOBJS=$ac_libobjs 9832 9833LTLIBOBJS=$ac_ltlibobjs 9834 9835 9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 9837$as_echo_n "checking that generated files are newer than configure... " >&6; } 9838 if test -n "$am_sleep_pid"; then 9839 # Hide warnings about reused PIDs. 9840 wait $am_sleep_pid 2>/dev/null 9841 fi 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 9843$as_echo "done" >&6; } 9844 if test -n "$EXEEXT"; then 9845 am__EXEEXT_TRUE= 9846 am__EXEEXT_FALSE='#' 9847else 9848 am__EXEEXT_TRUE='#' 9849 am__EXEEXT_FALSE= 9850fi 9851 9852if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 9853 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 9854Usually this means the macro was only invoked conditionally." "$LINENO" 5 9855fi 9856if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 9857 as_fn_error $? "conditional \"AMDEP\" was never defined. 9858Usually this means the macro was only invoked conditionally." "$LINENO" 5 9859fi 9860if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 9861 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 9862Usually this means the macro was only invoked conditionally." "$LINENO" 5 9863fi 9864if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 9865 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 9866Usually this means the macro was only invoked conditionally." "$LINENO" 5 9867fi 9868 9869: "${CONFIG_STATUS=./config.status}" 9870ac_write_fail=0 9871ac_clean_files_save=$ac_clean_files 9872ac_clean_files="$ac_clean_files $CONFIG_STATUS" 9873{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 9874$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 9875as_write_fail=0 9876cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 9877#! $SHELL 9878# Generated by $as_me. 9879# Run this file to recreate the current configuration. 9880# Compiler output produced by configure, useful for debugging 9881# configure, is in config.log if it exists. 9882 9883debug=false 9884ac_cs_recheck=false 9885ac_cs_silent=false 9886 9887SHELL=\${CONFIG_SHELL-$SHELL} 9888export SHELL 9889_ASEOF 9890cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 9891## -------------------- ## 9892## M4sh Initialization. ## 9893## -------------------- ## 9894 9895# Be more Bourne compatible 9896DUALCASE=1; export DUALCASE # for MKS sh 9897if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 9898 emulate sh 9899 NULLCMD=: 9900 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 9901 # is contrary to our usage. Disable this feature. 9902 alias -g '${1+"$@"}'='"$@"' 9903 setopt NO_GLOB_SUBST 9904else 9905 case `(set -o) 2>/dev/null` in #( 9906 *posix*) : 9907 set -o posix ;; #( 9908 *) : 9909 ;; 9910esac 9911fi 9912 9913 9914as_nl=' 9915' 9916export as_nl 9917# Printing a long string crashes Solaris 7 /usr/bin/printf. 9918as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 9919as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 9920as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 9921# Prefer a ksh shell builtin over an external printf program on Solaris, 9922# but without wasting forks for bash or zsh. 9923if test -z "$BASH_VERSION$ZSH_VERSION" \ 9924 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 9925 as_echo='print -r --' 9926 as_echo_n='print -rn --' 9927elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 9928 as_echo='printf %s\n' 9929 as_echo_n='printf %s' 9930else 9931 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 9932 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 9933 as_echo_n='/usr/ucb/echo -n' 9934 else 9935 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 9936 as_echo_n_body='eval 9937 arg=$1; 9938 case $arg in #( 9939 *"$as_nl"*) 9940 expr "X$arg" : "X\\(.*\\)$as_nl"; 9941 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 9942 esac; 9943 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 9944 ' 9945 export as_echo_n_body 9946 as_echo_n='sh -c $as_echo_n_body as_echo' 9947 fi 9948 export as_echo_body 9949 as_echo='sh -c $as_echo_body as_echo' 9950fi 9951 9952# The user is always right. 9953if test "${PATH_SEPARATOR+set}" != set; then 9954 PATH_SEPARATOR=: 9955 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9956 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9957 PATH_SEPARATOR=';' 9958 } 9959fi 9960 9961 9962# IFS 9963# We need space, tab and new line, in precisely that order. Quoting is 9964# there to prevent editors from complaining about space-tab. 9965# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9966# splitting by setting IFS to empty value.) 9967IFS=" "" $as_nl" 9968 9969# Find who we are. Look in the path if we contain no directory separator. 9970as_myself= 9971case $0 in #(( 9972 *[\\/]* ) as_myself=$0 ;; 9973 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9974for as_dir in $PATH 9975do 9976 IFS=$as_save_IFS 9977 test -z "$as_dir" && as_dir=. 9978 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9979 done 9980IFS=$as_save_IFS 9981 9982 ;; 9983esac 9984# We did not find ourselves, most probably we were run as `sh COMMAND' 9985# in which case we are not to be found in the path. 9986if test "x$as_myself" = x; then 9987 as_myself=$0 9988fi 9989if test ! -f "$as_myself"; then 9990 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9991 exit 1 9992fi 9993 9994# Unset variables that we do not need and which cause bugs (e.g. in 9995# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9996# suppresses any "Segmentation fault" message there. '((' could 9997# trigger a bug in pdksh 5.2.14. 9998for as_var in BASH_ENV ENV MAIL MAILPATH 9999do eval test x\${$as_var+set} = xset \ 10000 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10001done 10002PS1='$ ' 10003PS2='> ' 10004PS4='+ ' 10005 10006# NLS nuisances. 10007LC_ALL=C 10008export LC_ALL 10009LANGUAGE=C 10010export LANGUAGE 10011 10012# CDPATH. 10013(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10014 10015 10016# as_fn_error STATUS ERROR [LINENO LOG_FD] 10017# ---------------------------------------- 10018# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10019# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10020# script with STATUS, using 1 if that was 0. 10021as_fn_error () 10022{ 10023 as_status=$1; test $as_status -eq 0 && as_status=1 10024 if test "$4"; then 10025 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10026 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10027 fi 10028 $as_echo "$as_me: error: $2" >&2 10029 as_fn_exit $as_status 10030} # as_fn_error 10031 10032 10033# as_fn_set_status STATUS 10034# ----------------------- 10035# Set $? to STATUS, without forking. 10036as_fn_set_status () 10037{ 10038 return $1 10039} # as_fn_set_status 10040 10041# as_fn_exit STATUS 10042# ----------------- 10043# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10044as_fn_exit () 10045{ 10046 set +e 10047 as_fn_set_status $1 10048 exit $1 10049} # as_fn_exit 10050 10051# as_fn_unset VAR 10052# --------------- 10053# Portably unset VAR. 10054as_fn_unset () 10055{ 10056 { eval $1=; unset $1;} 10057} 10058as_unset=as_fn_unset 10059# as_fn_append VAR VALUE 10060# ---------------------- 10061# Append the text in VALUE to the end of the definition contained in VAR. Take 10062# advantage of any shell optimizations that allow amortized linear growth over 10063# repeated appends, instead of the typical quadratic growth present in naive 10064# implementations. 10065if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10066 eval 'as_fn_append () 10067 { 10068 eval $1+=\$2 10069 }' 10070else 10071 as_fn_append () 10072 { 10073 eval $1=\$$1\$2 10074 } 10075fi # as_fn_append 10076 10077# as_fn_arith ARG... 10078# ------------------ 10079# Perform arithmetic evaluation on the ARGs, and store the result in the 10080# global $as_val. Take advantage of shells that can avoid forks. The arguments 10081# must be portable across $(()) and expr. 10082if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10083 eval 'as_fn_arith () 10084 { 10085 as_val=$(( $* )) 10086 }' 10087else 10088 as_fn_arith () 10089 { 10090 as_val=`expr "$@" || test $? -eq 1` 10091 } 10092fi # as_fn_arith 10093 10094 10095if expr a : '\(a\)' >/dev/null 2>&1 && 10096 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10097 as_expr=expr 10098else 10099 as_expr=false 10100fi 10101 10102if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10103 as_basename=basename 10104else 10105 as_basename=false 10106fi 10107 10108if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10109 as_dirname=dirname 10110else 10111 as_dirname=false 10112fi 10113 10114as_me=`$as_basename -- "$0" || 10115$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10116 X"$0" : 'X\(//\)$' \| \ 10117 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10118$as_echo X/"$0" | 10119 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10120 s//\1/ 10121 q 10122 } 10123 /^X\/\(\/\/\)$/{ 10124 s//\1/ 10125 q 10126 } 10127 /^X\/\(\/\).*/{ 10128 s//\1/ 10129 q 10130 } 10131 s/.*/./; q'` 10132 10133# Avoid depending upon Character Ranges. 10134as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10135as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10136as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10137as_cr_digits='0123456789' 10138as_cr_alnum=$as_cr_Letters$as_cr_digits 10139 10140ECHO_C= ECHO_N= ECHO_T= 10141case `echo -n x` in #((((( 10142-n*) 10143 case `echo 'xy\c'` in 10144 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10145 xy) ECHO_C='\c';; 10146 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10147 ECHO_T=' ';; 10148 esac;; 10149*) 10150 ECHO_N='-n';; 10151esac 10152 10153rm -f conf$$ conf$$.exe conf$$.file 10154if test -d conf$$.dir; then 10155 rm -f conf$$.dir/conf$$.file 10156else 10157 rm -f conf$$.dir 10158 mkdir conf$$.dir 2>/dev/null 10159fi 10160if (echo >conf$$.file) 2>/dev/null; then 10161 if ln -s conf$$.file conf$$ 2>/dev/null; then 10162 as_ln_s='ln -s' 10163 # ... but there are two gotchas: 10164 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10165 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10166 # In both cases, we have to default to `cp -pR'. 10167 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10168 as_ln_s='cp -pR' 10169 elif ln conf$$.file conf$$ 2>/dev/null; then 10170 as_ln_s=ln 10171 else 10172 as_ln_s='cp -pR' 10173 fi 10174else 10175 as_ln_s='cp -pR' 10176fi 10177rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10178rmdir conf$$.dir 2>/dev/null 10179 10180 10181# as_fn_mkdir_p 10182# ------------- 10183# Create "$as_dir" as a directory, including parents if necessary. 10184as_fn_mkdir_p () 10185{ 10186 10187 case $as_dir in #( 10188 -*) as_dir=./$as_dir;; 10189 esac 10190 test -d "$as_dir" || eval $as_mkdir_p || { 10191 as_dirs= 10192 while :; do 10193 case $as_dir in #( 10194 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10195 *) as_qdir=$as_dir;; 10196 esac 10197 as_dirs="'$as_qdir' $as_dirs" 10198 as_dir=`$as_dirname -- "$as_dir" || 10199$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10200 X"$as_dir" : 'X\(//\)[^/]' \| \ 10201 X"$as_dir" : 'X\(//\)$' \| \ 10202 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10203$as_echo X"$as_dir" | 10204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10205 s//\1/ 10206 q 10207 } 10208 /^X\(\/\/\)[^/].*/{ 10209 s//\1/ 10210 q 10211 } 10212 /^X\(\/\/\)$/{ 10213 s//\1/ 10214 q 10215 } 10216 /^X\(\/\).*/{ 10217 s//\1/ 10218 q 10219 } 10220 s/.*/./; q'` 10221 test -d "$as_dir" && break 10222 done 10223 test -z "$as_dirs" || eval "mkdir $as_dirs" 10224 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10225 10226 10227} # as_fn_mkdir_p 10228if mkdir -p . 2>/dev/null; then 10229 as_mkdir_p='mkdir -p "$as_dir"' 10230else 10231 test -d ./-p && rmdir ./-p 10232 as_mkdir_p=false 10233fi 10234 10235 10236# as_fn_executable_p FILE 10237# ----------------------- 10238# Test if FILE is an executable regular file. 10239as_fn_executable_p () 10240{ 10241 test -f "$1" && test -x "$1" 10242} # as_fn_executable_p 10243as_test_x='test -x' 10244as_executable_p=as_fn_executable_p 10245 10246# Sed expression to map a string onto a valid CPP name. 10247as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10248 10249# Sed expression to map a string onto a valid variable name. 10250as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10251 10252 10253exec 6>&1 10254## ----------------------------------- ## 10255## Main body of $CONFIG_STATUS script. ## 10256## ----------------------------------- ## 10257_ASEOF 10258test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10259 10260cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10261# Save the log message, to keep $0 and so on meaningful, and to 10262# report actual input values of CONFIG_FILES etc. instead of their 10263# values after options handling. 10264ac_log=" 10265This file was extended by op $as_me 1.34, which was 10266generated by GNU Autoconf 2.69. Invocation command line was 10267 10268 CONFIG_FILES = $CONFIG_FILES 10269 CONFIG_HEADERS = $CONFIG_HEADERS 10270 CONFIG_LINKS = $CONFIG_LINKS 10271 CONFIG_COMMANDS = $CONFIG_COMMANDS 10272 $ $0 $@ 10273 10274on `(hostname || uname -n) 2>/dev/null | sed 1q` 10275" 10276 10277_ACEOF 10278 10279case $ac_config_files in *" 10280"*) set x $ac_config_files; shift; ac_config_files=$*;; 10281esac 10282 10283case $ac_config_headers in *" 10284"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10285esac 10286 10287 10288cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10289# Files that config.status was made for. 10290config_files="$ac_config_files" 10291config_headers="$ac_config_headers" 10292config_commands="$ac_config_commands" 10293 10294_ACEOF 10295 10296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10297ac_cs_usage="\ 10298\`$as_me' instantiates files and other configuration actions 10299from templates according to the current configuration. Unless the files 10300and actions are specified as TAGs, all are instantiated by default. 10301 10302Usage: $0 [OPTION]... [TAG]... 10303 10304 -h, --help print this help, then exit 10305 -V, --version print version number and configuration settings, then exit 10306 --config print configuration, then exit 10307 -q, --quiet, --silent 10308 do not print progress messages 10309 -d, --debug don't remove temporary files 10310 --recheck update $as_me by reconfiguring in the same conditions 10311 --file=FILE[:TEMPLATE] 10312 instantiate the configuration file FILE 10313 --header=FILE[:TEMPLATE] 10314 instantiate the configuration header FILE 10315 10316Configuration files: 10317$config_files 10318 10319Configuration headers: 10320$config_headers 10321 10322Configuration commands: 10323$config_commands 10324 10325Report bugs to <alec@swapoff.org>." 10326 10327_ACEOF 10328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10329ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10330ac_cs_version="\\ 10331op config.status 1.34 10332configured by $0, generated by GNU Autoconf 2.69, 10333 with options \\"\$ac_cs_config\\" 10334 10335Copyright (C) 2012 Free Software Foundation, Inc. 10336This config.status script is free software; the Free Software Foundation 10337gives unlimited permission to copy, distribute and modify it." 10338 10339ac_pwd='$ac_pwd' 10340srcdir='$srcdir' 10341INSTALL='$INSTALL' 10342MKDIR_P='$MKDIR_P' 10343AWK='$AWK' 10344test -n "\$AWK" || AWK=awk 10345_ACEOF 10346 10347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10348# The default lists apply if the user does not specify any file. 10349ac_need_defaults=: 10350while test $# != 0 10351do 10352 case $1 in 10353 --*=?*) 10354 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10355 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10356 ac_shift=: 10357 ;; 10358 --*=) 10359 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10360 ac_optarg= 10361 ac_shift=: 10362 ;; 10363 *) 10364 ac_option=$1 10365 ac_optarg=$2 10366 ac_shift=shift 10367 ;; 10368 esac 10369 10370 case $ac_option in 10371 # Handling of the options. 10372 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10373 ac_cs_recheck=: ;; 10374 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10375 $as_echo "$ac_cs_version"; exit ;; 10376 --config | --confi | --conf | --con | --co | --c ) 10377 $as_echo "$ac_cs_config"; exit ;; 10378 --debug | --debu | --deb | --de | --d | -d ) 10379 debug=: ;; 10380 --file | --fil | --fi | --f ) 10381 $ac_shift 10382 case $ac_optarg in 10383 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10384 '') as_fn_error $? "missing file argument" ;; 10385 esac 10386 as_fn_append CONFIG_FILES " '$ac_optarg'" 10387 ac_need_defaults=false;; 10388 --header | --heade | --head | --hea ) 10389 $ac_shift 10390 case $ac_optarg in 10391 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10392 esac 10393 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10394 ac_need_defaults=false;; 10395 --he | --h) 10396 # Conflict between --help and --header 10397 as_fn_error $? "ambiguous option: \`$1' 10398Try \`$0 --help' for more information.";; 10399 --help | --hel | -h ) 10400 $as_echo "$ac_cs_usage"; exit ;; 10401 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10402 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10403 ac_cs_silent=: ;; 10404 10405 # This is an error. 10406 -*) as_fn_error $? "unrecognized option: \`$1' 10407Try \`$0 --help' for more information." ;; 10408 10409 *) as_fn_append ac_config_targets " $1" 10410 ac_need_defaults=false ;; 10411 10412 esac 10413 shift 10414done 10415 10416ac_configure_extra_args= 10417 10418if $ac_cs_silent; then 10419 exec 6>/dev/null 10420 ac_configure_extra_args="$ac_configure_extra_args --silent" 10421fi 10422 10423_ACEOF 10424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10425if \$ac_cs_recheck; then 10426 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10427 shift 10428 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10429 CONFIG_SHELL='$SHELL' 10430 export CONFIG_SHELL 10431 exec "\$@" 10432fi 10433 10434_ACEOF 10435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10436exec 5>>config.log 10437{ 10438 echo 10439 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10440## Running $as_me. ## 10441_ASBOX 10442 $as_echo "$ac_log" 10443} >&5 10444 10445_ACEOF 10446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10447# 10448# INIT-COMMANDS 10449# 10450AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10451 10452_ACEOF 10453 10454cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10455 10456# Handling of arguments. 10457for ac_config_target in $ac_config_targets 10458do 10459 case $ac_config_target in 10460 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 10461 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10462 "op.list") CONFIG_FILES="$CONFIG_FILES op.list" ;; 10463 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 10464 10465 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10466 esac 10467done 10468 10469 10470# If the user did not use the arguments to specify the items to instantiate, 10471# then the envvar interface is used. Set only those that are not. 10472# We use the long form for the default assignment because of an extremely 10473# bizarre bug on SunOS 4.1.3. 10474if $ac_need_defaults; then 10475 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 10476 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 10477 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 10478fi 10479 10480# Have a temporary directory for convenience. Make it in the build tree 10481# simply because there is no reason against having it here, and in addition, 10482# creating and moving files from /tmp can sometimes cause problems. 10483# Hook for its removal unless debugging. 10484# Note that there is a small window in which the directory will not be cleaned: 10485# after its creation but before its name has been assigned to `$tmp'. 10486$debug || 10487{ 10488 tmp= ac_tmp= 10489 trap 'exit_status=$? 10490 : "${ac_tmp:=$tmp}" 10491 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 10492' 0 10493 trap 'as_fn_exit 1' 1 2 13 15 10494} 10495# Create a (secure) tmp directory for tmp files. 10496 10497{ 10498 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 10499 test -d "$tmp" 10500} || 10501{ 10502 tmp=./conf$$-$RANDOM 10503 (umask 077 && mkdir "$tmp") 10504} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 10505ac_tmp=$tmp 10506 10507# Set up the scripts for CONFIG_FILES section. 10508# No need to generate them if there are no CONFIG_FILES. 10509# This happens for instance with `./config.status config.h'. 10510if test -n "$CONFIG_FILES"; then 10511 10512 10513ac_cr=`echo X | tr X '\015'` 10514# On cygwin, bash can eat \r inside `` if the user requested igncr. 10515# But we know of no other shell where ac_cr would be empty at this 10516# point, so we can use a bashism as a fallback. 10517if test "x$ac_cr" = x; then 10518 eval ac_cr=\$\'\\r\' 10519fi 10520ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 10521if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 10522 ac_cs_awk_cr='\\r' 10523else 10524 ac_cs_awk_cr=$ac_cr 10525fi 10526 10527echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 10528_ACEOF 10529 10530 10531{ 10532 echo "cat >conf$$subs.awk <<_ACEOF" && 10533 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 10534 echo "_ACEOF" 10535} >conf$$subs.sh || 10536 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10537ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 10538ac_delim='%!_!# ' 10539for ac_last_try in false false false false false :; do 10540 . ./conf$$subs.sh || 10541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10542 10543 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 10544 if test $ac_delim_n = $ac_delim_num; then 10545 break 10546 elif $ac_last_try; then 10547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 10548 else 10549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10550 fi 10551done 10552rm -f conf$$subs.sh 10553 10554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10555cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 10556_ACEOF 10557sed -n ' 10558h 10559s/^/S["/; s/!.*/"]=/ 10560p 10561g 10562s/^[^!]*!// 10563:repl 10564t repl 10565s/'"$ac_delim"'$// 10566t delim 10567:nl 10568h 10569s/\(.\{148\}\)..*/\1/ 10570t more1 10571s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 10572p 10573n 10574b repl 10575:more1 10576s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10577p 10578g 10579s/.\{148\}// 10580t nl 10581:delim 10582h 10583s/\(.\{148\}\)..*/\1/ 10584t more2 10585s/["\\]/\\&/g; s/^/"/; s/$/"/ 10586p 10587b 10588:more2 10589s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 10590p 10591g 10592s/.\{148\}// 10593t delim 10594' <conf$$subs.awk | sed ' 10595/^[^""]/{ 10596 N 10597 s/\n// 10598} 10599' >>$CONFIG_STATUS || ac_write_fail=1 10600rm -f conf$$subs.awk 10601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10602_ACAWK 10603cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 10604 for (key in S) S_is_set[key] = 1 10605 FS = "" 10606 10607} 10608{ 10609 line = $ 0 10610 nfields = split(line, field, "@") 10611 substed = 0 10612 len = length(field[1]) 10613 for (i = 2; i < nfields; i++) { 10614 key = field[i] 10615 keylen = length(key) 10616 if (S_is_set[key]) { 10617 value = S[key] 10618 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 10619 len += length(value) + length(field[++i]) 10620 substed = 1 10621 } else 10622 len += 1 + keylen 10623 } 10624 10625 print line 10626} 10627 10628_ACAWK 10629_ACEOF 10630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10631if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 10632 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 10633else 10634 cat 10635fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 10636 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 10637_ACEOF 10638 10639# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 10640# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 10641# trailing colons and then remove the whole line if VPATH becomes empty 10642# (actually we leave an empty line to preserve line numbers). 10643if test "x$srcdir" = x.; then 10644 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 10645h 10646s/// 10647s/^/:/ 10648s/[ ]*$/:/ 10649s/:\$(srcdir):/:/g 10650s/:\${srcdir}:/:/g 10651s/:@srcdir@:/:/g 10652s/^:*// 10653s/:*$// 10654x 10655s/\(=[ ]*\).*/\1/ 10656G 10657s/\n// 10658s/^[^=]*=[ ]*$// 10659}' 10660fi 10661 10662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10663fi # test -n "$CONFIG_FILES" 10664 10665# Set up the scripts for CONFIG_HEADERS section. 10666# No need to generate them if there are no CONFIG_HEADERS. 10667# This happens for instance with `./config.status Makefile'. 10668if test -n "$CONFIG_HEADERS"; then 10669cat >"$ac_tmp/defines.awk" <<\_ACAWK || 10670BEGIN { 10671_ACEOF 10672 10673# Transform confdefs.h into an awk script `defines.awk', embedded as 10674# here-document in config.status, that substitutes the proper values into 10675# config.h.in to produce config.h. 10676 10677# Create a delimiter string that does not exist in confdefs.h, to ease 10678# handling of long lines. 10679ac_delim='%!_!# ' 10680for ac_last_try in false false :; do 10681 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 10682 if test -z "$ac_tt"; then 10683 break 10684 elif $ac_last_try; then 10685 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 10686 else 10687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 10688 fi 10689done 10690 10691# For the awk script, D is an array of macro values keyed by name, 10692# likewise P contains macro parameters if any. Preserve backslash 10693# newline sequences. 10694 10695ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 10696sed -n ' 10697s/.\{148\}/&'"$ac_delim"'/g 10698t rset 10699:rset 10700s/^[ ]*#[ ]*define[ ][ ]*/ / 10701t def 10702d 10703:def 10704s/\\$// 10705t bsnl 10706s/["\\]/\\&/g 10707s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10708D["\1"]=" \3"/p 10709s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 10710d 10711:bsnl 10712s/["\\]/\\&/g 10713s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 10714D["\1"]=" \3\\\\\\n"\\/p 10715t cont 10716s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 10717t cont 10718d 10719:cont 10720n 10721s/.\{148\}/&'"$ac_delim"'/g 10722t clear 10723:clear 10724s/\\$// 10725t bsnlc 10726s/["\\]/\\&/g; s/^/"/; s/$/"/p 10727d 10728:bsnlc 10729s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 10730b cont 10731' <confdefs.h | sed ' 10732s/'"$ac_delim"'/"\\\ 10733"/g' >>$CONFIG_STATUS || ac_write_fail=1 10734 10735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10736 for (key in D) D_is_set[key] = 1 10737 FS = "" 10738} 10739/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 10740 line = \$ 0 10741 split(line, arg, " ") 10742 if (arg[1] == "#") { 10743 defundef = arg[2] 10744 mac1 = arg[3] 10745 } else { 10746 defundef = substr(arg[1], 2) 10747 mac1 = arg[2] 10748 } 10749 split(mac1, mac2, "(") #) 10750 macro = mac2[1] 10751 prefix = substr(line, 1, index(line, defundef) - 1) 10752 if (D_is_set[macro]) { 10753 # Preserve the white space surrounding the "#". 10754 print prefix "define", macro P[macro] D[macro] 10755 next 10756 } else { 10757 # Replace #undef with comments. This is necessary, for example, 10758 # in the case of _POSIX_SOURCE, which is predefined and required 10759 # on some systems where configure will not decide to define it. 10760 if (defundef == "undef") { 10761 print "/*", prefix defundef, macro, "*/" 10762 next 10763 } 10764 } 10765} 10766{ print } 10767_ACAWK 10768_ACEOF 10769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10770 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 10771fi # test -n "$CONFIG_HEADERS" 10772 10773 10774eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 10775shift 10776for ac_tag 10777do 10778 case $ac_tag in 10779 :[FHLC]) ac_mode=$ac_tag; continue;; 10780 esac 10781 case $ac_mode$ac_tag in 10782 :[FHL]*:*);; 10783 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 10784 :[FH]-) ac_tag=-:-;; 10785 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 10786 esac 10787 ac_save_IFS=$IFS 10788 IFS=: 10789 set x $ac_tag 10790 IFS=$ac_save_IFS 10791 shift 10792 ac_file=$1 10793 shift 10794 10795 case $ac_mode in 10796 :L) ac_source=$1;; 10797 :[FH]) 10798 ac_file_inputs= 10799 for ac_f 10800 do 10801 case $ac_f in 10802 -) ac_f="$ac_tmp/stdin";; 10803 *) # Look for the file first in the build tree, then in the source tree 10804 # (if the path is not absolute). The absolute path cannot be DOS-style, 10805 # because $ac_f cannot contain `:'. 10806 test -f "$ac_f" || 10807 case $ac_f in 10808 [\\/$]*) false;; 10809 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 10810 esac || 10811 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 10812 esac 10813 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 10814 as_fn_append ac_file_inputs " '$ac_f'" 10815 done 10816 10817 # Let's still pretend it is `configure' which instantiates (i.e., don't 10818 # use $as_me), people would be surprised to read: 10819 # /* config.h. Generated by config.status. */ 10820 configure_input='Generated from '` 10821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 10822 `' by configure.' 10823 if test x"$ac_file" != x-; then 10824 configure_input="$ac_file. $configure_input" 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 10826$as_echo "$as_me: creating $ac_file" >&6;} 10827 fi 10828 # Neutralize special characters interpreted by sed in replacement strings. 10829 case $configure_input in #( 10830 *\&* | *\|* | *\\* ) 10831 ac_sed_conf_input=`$as_echo "$configure_input" | 10832 sed 's/[\\\\&|]/\\\\&/g'`;; #( 10833 *) ac_sed_conf_input=$configure_input;; 10834 esac 10835 10836 case $ac_tag in 10837 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 10838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 10839 esac 10840 ;; 10841 esac 10842 10843 ac_dir=`$as_dirname -- "$ac_file" || 10844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10845 X"$ac_file" : 'X\(//\)[^/]' \| \ 10846 X"$ac_file" : 'X\(//\)$' \| \ 10847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 10848$as_echo X"$ac_file" | 10849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10850 s//\1/ 10851 q 10852 } 10853 /^X\(\/\/\)[^/].*/{ 10854 s//\1/ 10855 q 10856 } 10857 /^X\(\/\/\)$/{ 10858 s//\1/ 10859 q 10860 } 10861 /^X\(\/\).*/{ 10862 s//\1/ 10863 q 10864 } 10865 s/.*/./; q'` 10866 as_dir="$ac_dir"; as_fn_mkdir_p 10867 ac_builddir=. 10868 10869case "$ac_dir" in 10870.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 10871*) 10872 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 10873 # A ".." for each directory in $ac_dir_suffix. 10874 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 10875 case $ac_top_builddir_sub in 10876 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 10877 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 10878 esac ;; 10879esac 10880ac_abs_top_builddir=$ac_pwd 10881ac_abs_builddir=$ac_pwd$ac_dir_suffix 10882# for backward compatibility: 10883ac_top_builddir=$ac_top_build_prefix 10884 10885case $srcdir in 10886 .) # We are building in place. 10887 ac_srcdir=. 10888 ac_top_srcdir=$ac_top_builddir_sub 10889 ac_abs_top_srcdir=$ac_pwd ;; 10890 [\\/]* | ?:[\\/]* ) # Absolute name. 10891 ac_srcdir=$srcdir$ac_dir_suffix; 10892 ac_top_srcdir=$srcdir 10893 ac_abs_top_srcdir=$srcdir ;; 10894 *) # Relative name. 10895 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 10896 ac_top_srcdir=$ac_top_build_prefix$srcdir 10897 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 10898esac 10899ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 10900 10901 10902 case $ac_mode in 10903 :F) 10904 # 10905 # CONFIG_FILE 10906 # 10907 10908 case $INSTALL in 10909 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 10910 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 10911 esac 10912 ac_MKDIR_P=$MKDIR_P 10913 case $MKDIR_P in 10914 [\\/$]* | ?:[\\/]* ) ;; 10915 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 10916 esac 10917_ACEOF 10918 10919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10920# If the template does not know about datarootdir, expand it. 10921# FIXME: This hack should be removed a few years after 2.60. 10922ac_datarootdir_hack=; ac_datarootdir_seen= 10923ac_sed_dataroot=' 10924/datarootdir/ { 10925 p 10926 q 10927} 10928/@datadir@/p 10929/@docdir@/p 10930/@infodir@/p 10931/@localedir@/p 10932/@mandir@/p' 10933case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 10934*datarootdir*) ac_datarootdir_seen=yes;; 10935*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 10936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 10937$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 10938_ACEOF 10939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10940 ac_datarootdir_hack=' 10941 s&@datadir@&$datadir&g 10942 s&@docdir@&$docdir&g 10943 s&@infodir@&$infodir&g 10944 s&@localedir@&$localedir&g 10945 s&@mandir@&$mandir&g 10946 s&\\\${datarootdir}&$datarootdir&g' ;; 10947esac 10948_ACEOF 10949 10950# Neutralize VPATH when `$srcdir' = `.'. 10951# Shell code in configure.ac might set extrasub. 10952# FIXME: do we really want to maintain this feature? 10953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10954ac_sed_extra="$ac_vpsub 10955$extrasub 10956_ACEOF 10957cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10958:t 10959/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 10960s|@configure_input@|$ac_sed_conf_input|;t t 10961s&@top_builddir@&$ac_top_builddir_sub&;t t 10962s&@top_build_prefix@&$ac_top_build_prefix&;t t 10963s&@srcdir@&$ac_srcdir&;t t 10964s&@abs_srcdir@&$ac_abs_srcdir&;t t 10965s&@top_srcdir@&$ac_top_srcdir&;t t 10966s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10967s&@builddir@&$ac_builddir&;t t 10968s&@abs_builddir@&$ac_abs_builddir&;t t 10969s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10970s&@INSTALL@&$ac_INSTALL&;t t 10971s&@MKDIR_P@&$ac_MKDIR_P&;t t 10972$ac_datarootdir_hack 10973" 10974eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10975 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10976 10977test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10978 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10979 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10980 "$ac_tmp/out"`; test -z "$ac_out"; } && 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10982which seems to be undefined. Please make sure it is defined" >&5 10983$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10984which seems to be undefined. Please make sure it is defined" >&2;} 10985 10986 rm -f "$ac_tmp/stdin" 10987 case $ac_file in 10988 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10989 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10990 esac \ 10991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10992 ;; 10993 :H) 10994 # 10995 # CONFIG_HEADER 10996 # 10997 if test x"$ac_file" != x-; then 10998 { 10999 $as_echo "/* $configure_input */" \ 11000 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11001 } >"$ac_tmp/config.h" \ 11002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11003 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11004 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11005$as_echo "$as_me: $ac_file is unchanged" >&6;} 11006 else 11007 rm -f "$ac_file" 11008 mv "$ac_tmp/config.h" "$ac_file" \ 11009 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11010 fi 11011 else 11012 $as_echo "/* $configure_input */" \ 11013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11014 || as_fn_error $? "could not create -" "$LINENO" 5 11015 fi 11016# Compute "$ac_file"'s index in $config_headers. 11017_am_arg="$ac_file" 11018_am_stamp_count=1 11019for _am_header in $config_headers :; do 11020 case $_am_header in 11021 $_am_arg | $_am_arg:* ) 11022 break ;; 11023 * ) 11024 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 11025 esac 11026done 11027echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 11028$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11029 X"$_am_arg" : 'X\(//\)[^/]' \| \ 11030 X"$_am_arg" : 'X\(//\)$' \| \ 11031 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 11032$as_echo X"$_am_arg" | 11033 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11034 s//\1/ 11035 q 11036 } 11037 /^X\(\/\/\)[^/].*/{ 11038 s//\1/ 11039 q 11040 } 11041 /^X\(\/\/\)$/{ 11042 s//\1/ 11043 q 11044 } 11045 /^X\(\/\).*/{ 11046 s//\1/ 11047 q 11048 } 11049 s/.*/./; q'`/stamp-h$_am_stamp_count 11050 ;; 11051 11052 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11053$as_echo "$as_me: executing $ac_file commands" >&6;} 11054 ;; 11055 esac 11056 11057 11058 case $ac_file$ac_mode in 11059 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11060 # Older Autoconf quotes --file arguments for eval, but not when files 11061 # are listed without --file. Let's play safe and only enable the eval 11062 # if we detect the quoting. 11063 case $CONFIG_FILES in 11064 *\'*) eval set x "$CONFIG_FILES" ;; 11065 *) set x $CONFIG_FILES ;; 11066 esac 11067 shift 11068 for mf 11069 do 11070 # Strip MF so we end up with the name of the file. 11071 mf=`echo "$mf" | sed -e 's/:.*$//'` 11072 # Check whether this is an Automake generated Makefile or not. 11073 # We used to match only the files named 'Makefile.in', but 11074 # some people rename them; so instead we look at the file content. 11075 # Grep'ing the first line is not enough: some people post-process 11076 # each Makefile.in and add a new line on top of each file to say so. 11077 # Grep'ing the whole file is not good either: AIX grep has a line 11078 # limit of 2048, but all sed's we know have understand at least 4000. 11079 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11080 dirpart=`$as_dirname -- "$mf" || 11081$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11082 X"$mf" : 'X\(//\)[^/]' \| \ 11083 X"$mf" : 'X\(//\)$' \| \ 11084 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11085$as_echo X"$mf" | 11086 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11087 s//\1/ 11088 q 11089 } 11090 /^X\(\/\/\)[^/].*/{ 11091 s//\1/ 11092 q 11093 } 11094 /^X\(\/\/\)$/{ 11095 s//\1/ 11096 q 11097 } 11098 /^X\(\/\).*/{ 11099 s//\1/ 11100 q 11101 } 11102 s/.*/./; q'` 11103 else 11104 continue 11105 fi 11106 # Extract the definition of DEPDIR, am__include, and am__quote 11107 # from the Makefile without running 'make'. 11108 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11109 test -z "$DEPDIR" && continue 11110 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11111 test -z "$am__include" && continue 11112 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11113 # Find all dependency output files, they are included files with 11114 # $(DEPDIR) in their names. We invoke sed twice because it is the 11115 # simplest approach to changing $(DEPDIR) to its actual value in the 11116 # expansion. 11117 for file in `sed -n " 11118 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11119 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 11120 # Make sure the directory exists. 11121 test -f "$dirpart/$file" && continue 11122 fdir=`$as_dirname -- "$file" || 11123$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11124 X"$file" : 'X\(//\)[^/]' \| \ 11125 X"$file" : 'X\(//\)$' \| \ 11126 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11127$as_echo X"$file" | 11128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11129 s//\1/ 11130 q 11131 } 11132 /^X\(\/\/\)[^/].*/{ 11133 s//\1/ 11134 q 11135 } 11136 /^X\(\/\/\)$/{ 11137 s//\1/ 11138 q 11139 } 11140 /^X\(\/\).*/{ 11141 s//\1/ 11142 q 11143 } 11144 s/.*/./; q'` 11145 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11146 # echo "creating $dirpart/$file" 11147 echo '# dummy' > "$dirpart/$file" 11148 done 11149 done 11150} 11151 ;; 11152 11153 esac 11154done # for ac_tag 11155 11156 11157as_fn_exit 0 11158_ACEOF 11159ac_clean_files=$ac_clean_files_save 11160 11161test $ac_write_fail = 0 || 11162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11163 11164 11165# configure is writing to config.log, and then calls config.status. 11166# config.status does its own redirection, appending to config.log. 11167# Unfortunately, on DOS this fails, as config.log is still kept open 11168# by configure, so config.status won't be able to write to it; its 11169# output is simply discarded. So we exec the FD to /dev/null, 11170# effectively closing config.log, so it can be properly (re)opened and 11171# appended to by config.status. When coming back to configure, we 11172# need to make the FD available again. 11173if test "$no_create" != yes; then 11174 ac_cs_success=: 11175 ac_config_status_args= 11176 test "$silent" = yes && 11177 ac_config_status_args="$ac_config_status_args --quiet" 11178 exec 5>/dev/null 11179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11180 exec 5>>config.log 11181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11182 # would make configure fail if this is the last instruction. 11183 $ac_cs_success || as_fn_exit 1 11184fi 11185if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11187$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11188fi 11189 11190