1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for cocot 1.1-20120313. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 8# 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 137if test "x$CONFIG_SHELL" = x; then 138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 139 emulate sh 140 NULLCMD=: 141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 142 # is contrary to our usage. Disable this feature. 143 alias -g '\${1+\"\$@\"}'='\"\$@\"' 144 setopt NO_GLOB_SUBST 145else 146 case \`(set -o) 2>/dev/null\` in #( 147 *posix*) : 148 set -o posix ;; #( 149 *) : 150 ;; 151esac 152fi 153" 154 as_required="as_fn_return () { (exit \$1); } 155as_fn_success () { as_fn_return 0; } 156as_fn_failure () { as_fn_return 1; } 157as_fn_ret_success () { return 0; } 158as_fn_ret_failure () { return 1; } 159 160exitcode=0 161as_fn_success || { exitcode=1; echo as_fn_success failed.; } 162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 166 167else 168 exitcode=1; echo positional parameters were not saved. 169fi 170test x\$exitcode = x0 || exit 1" 171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 175test \$(( 1 + 1 )) = 2 || exit 1" 176 if (eval "$as_required") 2>/dev/null; then : 177 as_have_required=yes 178else 179 as_have_required=no 180fi 181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 182 183else 184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 185as_found=false 186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 187do 188 IFS=$as_save_IFS 189 test -z "$as_dir" && as_dir=. 190 as_found=: 191 case $as_dir in #( 192 /*) 193 for as_base in sh bash ksh sh5; do 194 # Try only shells that exist, to save several forks. 195 as_shell=$as_dir/$as_base 196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 198 CONFIG_SHELL=$as_shell as_have_required=yes 199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 200 break 2 201fi 202fi 203 done;; 204 esac 205 as_found=false 206done 207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 209 CONFIG_SHELL=$SHELL as_have_required=yes 210fi; } 211IFS=$as_save_IFS 212 213 214 if test "x$CONFIG_SHELL" != x; then : 215 # We cannot yet assume a decent shell, so we have to provide a 216 # neutralization value for shells without unset; and this also 217 # works around shells that cannot unset nonexistent variables. 218 # Preserve -v and -x to the replacement shell. 219 BASH_ENV=/dev/null 220 ENV=/dev/null 221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 222 export CONFIG_SHELL 223 case $- in # (((( 224 *v*x* | *x*v* ) as_opts=-vx ;; 225 *v* ) as_opts=-v ;; 226 *x* ) as_opts=-x ;; 227 * ) as_opts= ;; 228 esac 229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 230fi 231 232 if test x$as_have_required = xno; then : 233 $as_echo "$0: This script requires a shell more modern than all" 234 $as_echo "$0: the shells that I found on your system." 235 if test x${ZSH_VERSION+set} = xset ; then 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 238 else 239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 240$0: including any error possibly output before this 241$0: message. Then install a modern shell, or manually run 242$0: the script under such a shell if you do have one." 243 fi 244 exit 1 245fi 246fi 247fi 248SHELL=${CONFIG_SHELL-/bin/sh} 249export SHELL 250# Unset more variables known to interfere with behavior of common tools. 251CLICOLOR_FORCE= GREP_OPTIONS= 252unset CLICOLOR_FORCE GREP_OPTIONS 253 254## --------------------- ## 255## M4sh Shell Functions. ## 256## --------------------- ## 257# as_fn_unset VAR 258# --------------- 259# Portably unset VAR. 260as_fn_unset () 261{ 262 { eval $1=; unset $1;} 263} 264as_unset=as_fn_unset 265 266# as_fn_set_status STATUS 267# ----------------------- 268# Set $? to STATUS, without forking. 269as_fn_set_status () 270{ 271 return $1 272} # as_fn_set_status 273 274# as_fn_exit STATUS 275# ----------------- 276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 277as_fn_exit () 278{ 279 set +e 280 as_fn_set_status $1 281 exit $1 282} # as_fn_exit 283 284# as_fn_mkdir_p 285# ------------- 286# Create "$as_dir" as a directory, including parents if necessary. 287as_fn_mkdir_p () 288{ 289 290 case $as_dir in #( 291 -*) as_dir=./$as_dir;; 292 esac 293 test -d "$as_dir" || eval $as_mkdir_p || { 294 as_dirs= 295 while :; do 296 case $as_dir in #( 297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 298 *) as_qdir=$as_dir;; 299 esac 300 as_dirs="'$as_qdir' $as_dirs" 301 as_dir=`$as_dirname -- "$as_dir" || 302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 303 X"$as_dir" : 'X\(//\)[^/]' \| \ 304 X"$as_dir" : 'X\(//\)$' \| \ 305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 306$as_echo X"$as_dir" | 307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)[^/].*/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\).*/{ 320 s//\1/ 321 q 322 } 323 s/.*/./; q'` 324 test -d "$as_dir" && break 325 done 326 test -z "$as_dirs" || eval "mkdir $as_dirs" 327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 328 329 330} # as_fn_mkdir_p 331# as_fn_append VAR VALUE 332# ---------------------- 333# Append the text in VALUE to the end of the definition contained in VAR. Take 334# advantage of any shell optimizations that allow amortized linear growth over 335# repeated appends, instead of the typical quadratic growth present in naive 336# implementations. 337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 338 eval 'as_fn_append () 339 { 340 eval $1+=\$2 341 }' 342else 343 as_fn_append () 344 { 345 eval $1=\$$1\$2 346 } 347fi # as_fn_append 348 349# as_fn_arith ARG... 350# ------------------ 351# Perform arithmetic evaluation on the ARGs, and store the result in the 352# global $as_val. Take advantage of shells that can avoid forks. The arguments 353# must be portable across $(()) and expr. 354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 355 eval 'as_fn_arith () 356 { 357 as_val=$(( $* )) 358 }' 359else 360 as_fn_arith () 361 { 362 as_val=`expr "$@" || test $? -eq 1` 363 } 364fi # as_fn_arith 365 366 367# as_fn_error STATUS ERROR [LINENO LOG_FD] 368# ---------------------------------------- 369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 371# script with STATUS, using 1 if that was 0. 372as_fn_error () 373{ 374 as_status=$1; test $as_status -eq 0 && as_status=1 375 if test "$4"; then 376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 378 fi 379 $as_echo "$as_me: error: $2" >&2 380 as_fn_exit $as_status 381} # as_fn_error 382 383if expr a : '\(a\)' >/dev/null 2>&1 && 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then 385 as_expr=expr 386else 387 as_expr=false 388fi 389 390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 391 as_basename=basename 392else 393 as_basename=false 394fi 395 396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 397 as_dirname=dirname 398else 399 as_dirname=false 400fi 401 402as_me=`$as_basename -- "$0" || 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 404 X"$0" : 'X\(//\)$' \| \ 405 X"$0" : 'X\(/\)' \| . 2>/dev/null || 406$as_echo X/"$0" | 407 sed '/^.*\/\([^/][^/]*\)\/*$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\/\)$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\).*/{ 416 s//\1/ 417 q 418 } 419 s/.*/./; q'` 420 421# Avoid depending upon Character Ranges. 422as_cr_letters='abcdefghijklmnopqrstuvwxyz' 423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 424as_cr_Letters=$as_cr_letters$as_cr_LETTERS 425as_cr_digits='0123456789' 426as_cr_alnum=$as_cr_Letters$as_cr_digits 427 428 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO 430 as_lineno_2=$LINENO as_lineno_2a=$LINENO 431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 451 452 # Don't try to exec as it changes $[0], causing all sort of problems 453 # (the dirname of $[0] is not the place where we might find the 454 # original and so on. Autoconf is especially sensitive to this). 455 . "./$as_me.lineno" 456 # Exit status is that of the last command. 457 exit 458} 459 460ECHO_C= ECHO_N= ECHO_T= 461case `echo -n x` in #((((( 462-n*) 463 case `echo 'xy\c'` in 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 465 xy) ECHO_C='\c';; 466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 467 ECHO_T=' ';; 468 esac;; 469*) 470 ECHO_N='-n';; 471esac 472 473rm -f conf$$ conf$$.exe conf$$.file 474if test -d conf$$.dir; then 475 rm -f conf$$.dir/conf$$.file 476else 477 rm -f conf$$.dir 478 mkdir conf$$.dir 2>/dev/null 479fi 480if (echo >conf$$.file) 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s='ln -s' 483 # ... but there are two gotchas: 484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 486 # In both cases, we have to default to `cp -p'. 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 488 as_ln_s='cp -p' 489 elif ln conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s=ln 491 else 492 as_ln_s='cp -p' 493 fi 494else 495 as_ln_s='cp -p' 496fi 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 498rmdir conf$$.dir 2>/dev/null 499 500if mkdir -p . 2>/dev/null; then 501 as_mkdir_p='mkdir -p "$as_dir"' 502else 503 test -d ./-p && rmdir ./-p 504 as_mkdir_p=false 505fi 506 507if test -x / >/dev/null 2>&1; then 508 as_test_x='test -x' 509else 510 if ls -dL / >/dev/null 2>&1; then 511 as_ls_L_option=L 512 else 513 as_ls_L_option= 514 fi 515 as_test_x=' 516 eval sh -c '\'' 517 if test -d "$1"; then 518 test -d "$1/."; 519 else 520 case $1 in #( 521 -*)set "./$1";; 522 esac; 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 524 ???[sx]*):;;*)false;;esac;fi 525 '\'' sh 526 ' 527fi 528as_executable_p=$as_test_x 529 530# Sed expression to map a string onto a valid CPP name. 531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 532 533# Sed expression to map a string onto a valid variable name. 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 535 536 537test -n "$DJDIR" || exec 7<&0 </dev/null 538exec 6>&1 539 540# Name of the host. 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 542# so uname gets run too. 543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 544 545# 546# Initializations. 547# 548ac_default_prefix=/usr/local 549ac_clean_files= 550ac_config_libobj_dir=. 551LIBOBJS= 552cross_compiling=no 553subdirs= 554MFLAGS= 555MAKEFLAGS= 556 557# Identity of this package. 558PACKAGE_NAME='cocot' 559PACKAGE_TARNAME='cocot' 560PACKAGE_VERSION='1.1-20120313' 561PACKAGE_STRING='cocot 1.1-20120313' 562PACKAGE_BUGREPORT='' 563PACKAGE_URL='' 564 565ac_unique_file="cocot.c" 566# Factoring default headers for most tests. 567ac_includes_default="\ 568#include <stdio.h> 569#ifdef HAVE_SYS_TYPES_H 570# include <sys/types.h> 571#endif 572#ifdef HAVE_SYS_STAT_H 573# include <sys/stat.h> 574#endif 575#ifdef STDC_HEADERS 576# include <stdlib.h> 577# include <stddef.h> 578#else 579# ifdef HAVE_STDLIB_H 580# include <stdlib.h> 581# endif 582#endif 583#ifdef HAVE_STRING_H 584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 585# include <memory.h> 586# endif 587# include <string.h> 588#endif 589#ifdef HAVE_STRINGS_H 590# include <strings.h> 591#endif 592#ifdef HAVE_INTTYPES_H 593# include <inttypes.h> 594#endif 595#ifdef HAVE_STDINT_H 596# include <stdint.h> 597#endif 598#ifdef HAVE_UNISTD_H 599# include <unistd.h> 600#endif" 601 602ac_subst_vars='LTLIBOBJS 603LIBOBJS 604EGREP 605GREP 606CPP 607am__fastdepCC_FALSE 608am__fastdepCC_TRUE 609CCDEPMODE 610AMDEPBACKSLASH 611AMDEP_FALSE 612AMDEP_TRUE 613am__quote 614am__include 615DEPDIR 616OBJEXT 617EXEEXT 618ac_ct_CC 619CPPFLAGS 620LDFLAGS 621CFLAGS 622CC 623am__untar 624am__tar 625AMTAR 626am__leading_dot 627SET_MAKE 628AWK 629mkdir_p 630INSTALL_STRIP_PROGRAM 631STRIP 632install_sh 633MAKEINFO 634AUTOHEADER 635AUTOMAKE 636AUTOCONF 637ACLOCAL 638VERSION 639PACKAGE 640CYGPATH_W 641INSTALL_DATA 642INSTALL_SCRIPT 643INSTALL_PROGRAM 644target_alias 645host_alias 646build_alias 647LIBS 648ECHO_T 649ECHO_N 650ECHO_C 651DEFS 652mandir 653localedir 654libdir 655psdir 656pdfdir 657dvidir 658htmldir 659infodir 660docdir 661oldincludedir 662includedir 663localstatedir 664sharedstatedir 665sysconfdir 666datadir 667datarootdir 668libexecdir 669sbindir 670bindir 671program_transform_name 672prefix 673exec_prefix 674PACKAGE_URL 675PACKAGE_BUGREPORT 676PACKAGE_STRING 677PACKAGE_VERSION 678PACKAGE_TARNAME 679PACKAGE_NAME 680PATH_SEPARATOR 681SHELL' 682ac_subst_files='' 683ac_user_opts=' 684enable_option_checking 685enable_dependency_tracking 686with_default_term_code 687with_default_proc_code 688' 689 ac_precious_vars='build_alias 690host_alias 691target_alias 692CC 693CFLAGS 694LDFLAGS 695LIBS 696CPPFLAGS 697CPP' 698 699 700# Initialize some variables set by options. 701ac_init_help= 702ac_init_version=false 703ac_unrecognized_opts= 704ac_unrecognized_sep= 705# The variables have the same names as the options, with 706# dashes changed to underlines. 707cache_file=/dev/null 708exec_prefix=NONE 709no_create= 710no_recursion= 711prefix=NONE 712program_prefix=NONE 713program_suffix=NONE 714program_transform_name=s,x,x, 715silent= 716site= 717srcdir= 718verbose= 719x_includes=NONE 720x_libraries=NONE 721 722# Installation directory options. 723# These are left unexpanded so users can "make install exec_prefix=/foo" 724# and all the variables that are supposed to be based on exec_prefix 725# by default will actually change. 726# Use braces instead of parens because sh, perl, etc. also accept them. 727# (The list follows the same order as the GNU Coding Standards.) 728bindir='${exec_prefix}/bin' 729sbindir='${exec_prefix}/sbin' 730libexecdir='${exec_prefix}/libexec' 731datarootdir='${prefix}/share' 732datadir='${datarootdir}' 733sysconfdir='${prefix}/etc' 734sharedstatedir='${prefix}/com' 735localstatedir='${prefix}/var' 736includedir='${prefix}/include' 737oldincludedir='/usr/include' 738docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 739infodir='${datarootdir}/info' 740htmldir='${docdir}' 741dvidir='${docdir}' 742pdfdir='${docdir}' 743psdir='${docdir}' 744libdir='${exec_prefix}/lib' 745localedir='${datarootdir}/locale' 746mandir='${datarootdir}/man' 747 748ac_prev= 749ac_dashdash= 750for ac_option 751do 752 # If the previous option needs an argument, assign it. 753 if test -n "$ac_prev"; then 754 eval $ac_prev=\$ac_option 755 ac_prev= 756 continue 757 fi 758 759 case $ac_option in 760 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 761 *=) ac_optarg= ;; 762 *) ac_optarg=yes ;; 763 esac 764 765 # Accept the important Cygnus configure options, so we can diagnose typos. 766 767 case $ac_dashdash$ac_option in 768 --) 769 ac_dashdash=yes ;; 770 771 -bindir | --bindir | --bindi | --bind | --bin | --bi) 772 ac_prev=bindir ;; 773 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 774 bindir=$ac_optarg ;; 775 776 -build | --build | --buil | --bui | --bu) 777 ac_prev=build_alias ;; 778 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 779 build_alias=$ac_optarg ;; 780 781 -cache-file | --cache-file | --cache-fil | --cache-fi \ 782 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 783 ac_prev=cache_file ;; 784 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 785 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 786 cache_file=$ac_optarg ;; 787 788 --config-cache | -C) 789 cache_file=config.cache ;; 790 791 -datadir | --datadir | --datadi | --datad) 792 ac_prev=datadir ;; 793 -datadir=* | --datadir=* | --datadi=* | --datad=*) 794 datadir=$ac_optarg ;; 795 796 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 797 | --dataroo | --dataro | --datar) 798 ac_prev=datarootdir ;; 799 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 800 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 801 datarootdir=$ac_optarg ;; 802 803 -disable-* | --disable-*) 804 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 805 # Reject names that are not valid shell variable names. 806 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 807 as_fn_error $? "invalid feature name: $ac_useropt" 808 ac_useropt_orig=$ac_useropt 809 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 810 case $ac_user_opts in 811 *" 812"enable_$ac_useropt" 813"*) ;; 814 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 815 ac_unrecognized_sep=', ';; 816 esac 817 eval enable_$ac_useropt=no ;; 818 819 -docdir | --docdir | --docdi | --doc | --do) 820 ac_prev=docdir ;; 821 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 822 docdir=$ac_optarg ;; 823 824 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 825 ac_prev=dvidir ;; 826 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 827 dvidir=$ac_optarg ;; 828 829 -enable-* | --enable-*) 830 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 831 # Reject names that are not valid shell variable names. 832 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 833 as_fn_error $? "invalid feature name: $ac_useropt" 834 ac_useropt_orig=$ac_useropt 835 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 836 case $ac_user_opts in 837 *" 838"enable_$ac_useropt" 839"*) ;; 840 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 841 ac_unrecognized_sep=', ';; 842 esac 843 eval enable_$ac_useropt=\$ac_optarg ;; 844 845 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 846 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 847 | --exec | --exe | --ex) 848 ac_prev=exec_prefix ;; 849 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 850 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 851 | --exec=* | --exe=* | --ex=*) 852 exec_prefix=$ac_optarg ;; 853 854 -gas | --gas | --ga | --g) 855 # Obsolete; use --with-gas. 856 with_gas=yes ;; 857 858 -help | --help | --hel | --he | -h) 859 ac_init_help=long ;; 860 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 861 ac_init_help=recursive ;; 862 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 863 ac_init_help=short ;; 864 865 -host | --host | --hos | --ho) 866 ac_prev=host_alias ;; 867 -host=* | --host=* | --hos=* | --ho=*) 868 host_alias=$ac_optarg ;; 869 870 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 871 ac_prev=htmldir ;; 872 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 873 | --ht=*) 874 htmldir=$ac_optarg ;; 875 876 -includedir | --includedir | --includedi | --included | --include \ 877 | --includ | --inclu | --incl | --inc) 878 ac_prev=includedir ;; 879 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 880 | --includ=* | --inclu=* | --incl=* | --inc=*) 881 includedir=$ac_optarg ;; 882 883 -infodir | --infodir | --infodi | --infod | --info | --inf) 884 ac_prev=infodir ;; 885 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 886 infodir=$ac_optarg ;; 887 888 -libdir | --libdir | --libdi | --libd) 889 ac_prev=libdir ;; 890 -libdir=* | --libdir=* | --libdi=* | --libd=*) 891 libdir=$ac_optarg ;; 892 893 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 894 | --libexe | --libex | --libe) 895 ac_prev=libexecdir ;; 896 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 897 | --libexe=* | --libex=* | --libe=*) 898 libexecdir=$ac_optarg ;; 899 900 -localedir | --localedir | --localedi | --localed | --locale) 901 ac_prev=localedir ;; 902 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 903 localedir=$ac_optarg ;; 904 905 -localstatedir | --localstatedir | --localstatedi | --localstated \ 906 | --localstate | --localstat | --localsta | --localst | --locals) 907 ac_prev=localstatedir ;; 908 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 909 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 910 localstatedir=$ac_optarg ;; 911 912 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 913 ac_prev=mandir ;; 914 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 915 mandir=$ac_optarg ;; 916 917 -nfp | --nfp | --nf) 918 # Obsolete; use --without-fp. 919 with_fp=no ;; 920 921 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 922 | --no-cr | --no-c | -n) 923 no_create=yes ;; 924 925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 927 no_recursion=yes ;; 928 929 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 930 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 931 | --oldin | --oldi | --old | --ol | --o) 932 ac_prev=oldincludedir ;; 933 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 934 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 935 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 936 oldincludedir=$ac_optarg ;; 937 938 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 939 ac_prev=prefix ;; 940 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 941 prefix=$ac_optarg ;; 942 943 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 944 | --program-pre | --program-pr | --program-p) 945 ac_prev=program_prefix ;; 946 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 947 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 948 program_prefix=$ac_optarg ;; 949 950 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 951 | --program-suf | --program-su | --program-s) 952 ac_prev=program_suffix ;; 953 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 954 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 955 program_suffix=$ac_optarg ;; 956 957 -program-transform-name | --program-transform-name \ 958 | --program-transform-nam | --program-transform-na \ 959 | --program-transform-n | --program-transform- \ 960 | --program-transform | --program-transfor \ 961 | --program-transfo | --program-transf \ 962 | --program-trans | --program-tran \ 963 | --progr-tra | --program-tr | --program-t) 964 ac_prev=program_transform_name ;; 965 -program-transform-name=* | --program-transform-name=* \ 966 | --program-transform-nam=* | --program-transform-na=* \ 967 | --program-transform-n=* | --program-transform-=* \ 968 | --program-transform=* | --program-transfor=* \ 969 | --program-transfo=* | --program-transf=* \ 970 | --program-trans=* | --program-tran=* \ 971 | --progr-tra=* | --program-tr=* | --program-t=*) 972 program_transform_name=$ac_optarg ;; 973 974 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 975 ac_prev=pdfdir ;; 976 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 977 pdfdir=$ac_optarg ;; 978 979 -psdir | --psdir | --psdi | --psd | --ps) 980 ac_prev=psdir ;; 981 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 982 psdir=$ac_optarg ;; 983 984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 985 | -silent | --silent | --silen | --sile | --sil) 986 silent=yes ;; 987 988 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 989 ac_prev=sbindir ;; 990 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 991 | --sbi=* | --sb=*) 992 sbindir=$ac_optarg ;; 993 994 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 995 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 996 | --sharedst | --shareds | --shared | --share | --shar \ 997 | --sha | --sh) 998 ac_prev=sharedstatedir ;; 999 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1000 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1001 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1002 | --sha=* | --sh=*) 1003 sharedstatedir=$ac_optarg ;; 1004 1005 -site | --site | --sit) 1006 ac_prev=site ;; 1007 -site=* | --site=* | --sit=*) 1008 site=$ac_optarg ;; 1009 1010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1011 ac_prev=srcdir ;; 1012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1013 srcdir=$ac_optarg ;; 1014 1015 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1016 | --syscon | --sysco | --sysc | --sys | --sy) 1017 ac_prev=sysconfdir ;; 1018 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1019 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1020 sysconfdir=$ac_optarg ;; 1021 1022 -target | --target | --targe | --targ | --tar | --ta | --t) 1023 ac_prev=target_alias ;; 1024 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1025 target_alias=$ac_optarg ;; 1026 1027 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1028 verbose=yes ;; 1029 1030 -version | --version | --versio | --versi | --vers | -V) 1031 ac_init_version=: ;; 1032 1033 -with-* | --with-*) 1034 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1035 # Reject names that are not valid shell variable names. 1036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1037 as_fn_error $? "invalid package name: $ac_useropt" 1038 ac_useropt_orig=$ac_useropt 1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1040 case $ac_user_opts in 1041 *" 1042"with_$ac_useropt" 1043"*) ;; 1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1045 ac_unrecognized_sep=', ';; 1046 esac 1047 eval with_$ac_useropt=\$ac_optarg ;; 1048 1049 -without-* | --without-*) 1050 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1051 # Reject names that are not valid shell variable names. 1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1053 as_fn_error $? "invalid package name: $ac_useropt" 1054 ac_useropt_orig=$ac_useropt 1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1056 case $ac_user_opts in 1057 *" 1058"with_$ac_useropt" 1059"*) ;; 1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1061 ac_unrecognized_sep=', ';; 1062 esac 1063 eval with_$ac_useropt=no ;; 1064 1065 --x) 1066 # Obsolete; use --with-x. 1067 with_x=yes ;; 1068 1069 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1070 | --x-incl | --x-inc | --x-in | --x-i) 1071 ac_prev=x_includes ;; 1072 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1073 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1074 x_includes=$ac_optarg ;; 1075 1076 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1077 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1078 ac_prev=x_libraries ;; 1079 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1080 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1081 x_libraries=$ac_optarg ;; 1082 1083 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1084Try \`$0 --help' for more information" 1085 ;; 1086 1087 *=*) 1088 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1089 # Reject names that are not valid shell variable names. 1090 case $ac_envvar in #( 1091 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1092 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1093 esac 1094 eval $ac_envvar=\$ac_optarg 1095 export $ac_envvar ;; 1096 1097 *) 1098 # FIXME: should be removed in autoconf 3.0. 1099 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1100 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1101 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1102 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1103 ;; 1104 1105 esac 1106done 1107 1108if test -n "$ac_prev"; then 1109 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1110 as_fn_error $? "missing argument to $ac_option" 1111fi 1112 1113if test -n "$ac_unrecognized_opts"; then 1114 case $enable_option_checking in 1115 no) ;; 1116 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1117 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1118 esac 1119fi 1120 1121# Check all directory arguments for consistency. 1122for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1123 datadir sysconfdir sharedstatedir localstatedir includedir \ 1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1125 libdir localedir mandir 1126do 1127 eval ac_val=\$$ac_var 1128 # Remove trailing slashes. 1129 case $ac_val in 1130 */ ) 1131 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1132 eval $ac_var=\$ac_val;; 1133 esac 1134 # Be sure to have absolute directory names. 1135 case $ac_val in 1136 [\\/$]* | ?:[\\/]* ) continue;; 1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1138 esac 1139 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1140done 1141 1142# There might be people who depend on the old broken behavior: `$host' 1143# used to hold the argument of --host etc. 1144# FIXME: To remove some day. 1145build=$build_alias 1146host=$host_alias 1147target=$target_alias 1148 1149# FIXME: To remove some day. 1150if test "x$host_alias" != x; then 1151 if test "x$build_alias" = x; then 1152 cross_compiling=maybe 1153 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1154 If a cross compiler is detected then cross compile mode will be used" >&2 1155 elif test "x$build_alias" != "x$host_alias"; then 1156 cross_compiling=yes 1157 fi 1158fi 1159 1160ac_tool_prefix= 1161test -n "$host_alias" && ac_tool_prefix=$host_alias- 1162 1163test "$silent" = yes && exec 6>/dev/null 1164 1165 1166ac_pwd=`pwd` && test -n "$ac_pwd" && 1167ac_ls_di=`ls -di .` && 1168ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1169 as_fn_error $? "working directory cannot be determined" 1170test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1171 as_fn_error $? "pwd does not report name of working directory" 1172 1173 1174# Find the source files, if location was not specified. 1175if test -z "$srcdir"; then 1176 ac_srcdir_defaulted=yes 1177 # Try the directory containing this script, then the parent directory. 1178 ac_confdir=`$as_dirname -- "$as_myself" || 1179$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1180 X"$as_myself" : 'X\(//\)[^/]' \| \ 1181 X"$as_myself" : 'X\(//\)$' \| \ 1182 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1183$as_echo X"$as_myself" | 1184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1185 s//\1/ 1186 q 1187 } 1188 /^X\(\/\/\)[^/].*/{ 1189 s//\1/ 1190 q 1191 } 1192 /^X\(\/\/\)$/{ 1193 s//\1/ 1194 q 1195 } 1196 /^X\(\/\).*/{ 1197 s//\1/ 1198 q 1199 } 1200 s/.*/./; q'` 1201 srcdir=$ac_confdir 1202 if test ! -r "$srcdir/$ac_unique_file"; then 1203 srcdir=.. 1204 fi 1205else 1206 ac_srcdir_defaulted=no 1207fi 1208if test ! -r "$srcdir/$ac_unique_file"; then 1209 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1210 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1211fi 1212ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1213ac_abs_confdir=`( 1214 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1215 pwd)` 1216# When building in place, set srcdir=. 1217if test "$ac_abs_confdir" = "$ac_pwd"; then 1218 srcdir=. 1219fi 1220# Remove unnecessary trailing slashes from srcdir. 1221# Double slashes in file names in object file debugging info 1222# mess up M-x gdb in Emacs. 1223case $srcdir in 1224*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1225esac 1226for ac_var in $ac_precious_vars; do 1227 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1228 eval ac_env_${ac_var}_value=\$${ac_var} 1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1230 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1231done 1232 1233# 1234# Report the --help message. 1235# 1236if test "$ac_init_help" = "long"; then 1237 # Omit some internal or obsolete options to make the list less imposing. 1238 # This message is too long to be a string in the A/UX 3.1 sh. 1239 cat <<_ACEOF 1240\`configure' configures cocot 1.1-20120313 to adapt to many kinds of systems. 1241 1242Usage: $0 [OPTION]... [VAR=VALUE]... 1243 1244To assign environment variables (e.g., CC, CFLAGS...), specify them as 1245VAR=VALUE. See below for descriptions of some of the useful variables. 1246 1247Defaults for the options are specified in brackets. 1248 1249Configuration: 1250 -h, --help display this help and exit 1251 --help=short display options specific to this package 1252 --help=recursive display the short help of all the included packages 1253 -V, --version display version information and exit 1254 -q, --quiet, --silent do not print \`checking ...' messages 1255 --cache-file=FILE cache test results in FILE [disabled] 1256 -C, --config-cache alias for \`--cache-file=config.cache' 1257 -n, --no-create do not create output files 1258 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1259 1260Installation directories: 1261 --prefix=PREFIX install architecture-independent files in PREFIX 1262 [$ac_default_prefix] 1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1264 [PREFIX] 1265 1266By default, \`make install' will install all the files in 1267\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1268an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1269for instance \`--prefix=\$HOME'. 1270 1271For better control, use the options below. 1272 1273Fine tuning of the installation directories: 1274 --bindir=DIR user executables [EPREFIX/bin] 1275 --sbindir=DIR system admin executables [EPREFIX/sbin] 1276 --libexecdir=DIR program executables [EPREFIX/libexec] 1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1280 --libdir=DIR object code libraries [EPREFIX/lib] 1281 --includedir=DIR C header files [PREFIX/include] 1282 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1285 --infodir=DIR info documentation [DATAROOTDIR/info] 1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1287 --mandir=DIR man documentation [DATAROOTDIR/man] 1288 --docdir=DIR documentation root [DATAROOTDIR/doc/cocot] 1289 --htmldir=DIR html documentation [DOCDIR] 1290 --dvidir=DIR dvi documentation [DOCDIR] 1291 --pdfdir=DIR pdf documentation [DOCDIR] 1292 --psdir=DIR ps documentation [DOCDIR] 1293_ACEOF 1294 1295 cat <<\_ACEOF 1296 1297Program names: 1298 --program-prefix=PREFIX prepend PREFIX to installed program names 1299 --program-suffix=SUFFIX append SUFFIX to installed program names 1300 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1301_ACEOF 1302fi 1303 1304if test -n "$ac_init_help"; then 1305 case $ac_init_help in 1306 short | recursive ) echo "Configuration of cocot 1.1-20120313:";; 1307 esac 1308 cat <<\_ACEOF 1309 1310Optional Features: 1311 --disable-option-checking ignore unrecognized --enable/--with options 1312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1314 --disable-dependency-tracking speeds up one-time build 1315 --enable-dependency-tracking do not reject slow dependency extractors 1316 1317Optional Packages: 1318 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1319 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1320 --with-default-term-code=CODE specify default value for term code (default is UTF-8) 1321 --with-default-proc-code=CODE specify default value for proc code (default is CP932) 1322 1323Some influential environment variables: 1324 CC C compiler command 1325 CFLAGS C compiler flags 1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1327 nonstandard directory <lib dir> 1328 LIBS libraries to pass to the linker, e.g. -l<library> 1329 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1330 you have headers in a nonstandard directory <include dir> 1331 CPP C preprocessor 1332 1333Use these variables to override the choices made by `configure' or to help 1334it to find libraries and programs with nonstandard names/locations. 1335 1336Report bugs to the package provider. 1337_ACEOF 1338ac_status=$? 1339fi 1340 1341if test "$ac_init_help" = "recursive"; then 1342 # If there are subdirs, report their specific --help. 1343 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1344 test -d "$ac_dir" || 1345 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1346 continue 1347 ac_builddir=. 1348 1349case "$ac_dir" in 1350.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1351*) 1352 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1353 # A ".." for each directory in $ac_dir_suffix. 1354 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1355 case $ac_top_builddir_sub in 1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1358 esac ;; 1359esac 1360ac_abs_top_builddir=$ac_pwd 1361ac_abs_builddir=$ac_pwd$ac_dir_suffix 1362# for backward compatibility: 1363ac_top_builddir=$ac_top_build_prefix 1364 1365case $srcdir in 1366 .) # We are building in place. 1367 ac_srcdir=. 1368 ac_top_srcdir=$ac_top_builddir_sub 1369 ac_abs_top_srcdir=$ac_pwd ;; 1370 [\\/]* | ?:[\\/]* ) # Absolute name. 1371 ac_srcdir=$srcdir$ac_dir_suffix; 1372 ac_top_srcdir=$srcdir 1373 ac_abs_top_srcdir=$srcdir ;; 1374 *) # Relative name. 1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1376 ac_top_srcdir=$ac_top_build_prefix$srcdir 1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1378esac 1379ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1380 1381 cd "$ac_dir" || { ac_status=$?; continue; } 1382 # Check for guested configure. 1383 if test -f "$ac_srcdir/configure.gnu"; then 1384 echo && 1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1386 elif test -f "$ac_srcdir/configure"; then 1387 echo && 1388 $SHELL "$ac_srcdir/configure" --help=recursive 1389 else 1390 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1391 fi || ac_status=$? 1392 cd "$ac_pwd" || { ac_status=$?; break; } 1393 done 1394fi 1395 1396test -n "$ac_init_help" && exit $ac_status 1397if $ac_init_version; then 1398 cat <<\_ACEOF 1399cocot configure 1.1-20120313 1400generated by GNU Autoconf 2.68 1401 1402Copyright (C) 2010 Free Software Foundation, Inc. 1403This configure script is free software; the Free Software Foundation 1404gives unlimited permission to copy, distribute and modify it. 1405_ACEOF 1406 exit 1407fi 1408 1409## ------------------------ ## 1410## Autoconf initialization. ## 1411## ------------------------ ## 1412 1413# ac_fn_c_try_compile LINENO 1414# -------------------------- 1415# Try to compile conftest.$ac_ext, and return whether this succeeded. 1416ac_fn_c_try_compile () 1417{ 1418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1419 rm -f conftest.$ac_objext 1420 if { { ac_try="$ac_compile" 1421case "(($ac_try" in 1422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1423 *) ac_try_echo=$ac_try;; 1424esac 1425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1426$as_echo "$ac_try_echo"; } >&5 1427 (eval "$ac_compile") 2>conftest.err 1428 ac_status=$? 1429 if test -s conftest.err; then 1430 grep -v '^ *+' conftest.err >conftest.er1 1431 cat conftest.er1 >&5 1432 mv -f conftest.er1 conftest.err 1433 fi 1434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1435 test $ac_status = 0; } && { 1436 test -z "$ac_c_werror_flag" || 1437 test ! -s conftest.err 1438 } && test -s conftest.$ac_objext; then : 1439 ac_retval=0 1440else 1441 $as_echo "$as_me: failed program was:" >&5 1442sed 's/^/| /' conftest.$ac_ext >&5 1443 1444 ac_retval=1 1445fi 1446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1447 as_fn_set_status $ac_retval 1448 1449} # ac_fn_c_try_compile 1450 1451# ac_fn_c_try_link LINENO 1452# ----------------------- 1453# Try to link conftest.$ac_ext, and return whether this succeeded. 1454ac_fn_c_try_link () 1455{ 1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1457 rm -f conftest.$ac_objext conftest$ac_exeext 1458 if { { ac_try="$ac_link" 1459case "(($ac_try" in 1460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1461 *) ac_try_echo=$ac_try;; 1462esac 1463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1464$as_echo "$ac_try_echo"; } >&5 1465 (eval "$ac_link") 2>conftest.err 1466 ac_status=$? 1467 if test -s conftest.err; then 1468 grep -v '^ *+' conftest.err >conftest.er1 1469 cat conftest.er1 >&5 1470 mv -f conftest.er1 conftest.err 1471 fi 1472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1473 test $ac_status = 0; } && { 1474 test -z "$ac_c_werror_flag" || 1475 test ! -s conftest.err 1476 } && test -s conftest$ac_exeext && { 1477 test "$cross_compiling" = yes || 1478 $as_test_x conftest$ac_exeext 1479 }; then : 1480 ac_retval=0 1481else 1482 $as_echo "$as_me: failed program was:" >&5 1483sed 's/^/| /' conftest.$ac_ext >&5 1484 1485 ac_retval=1 1486fi 1487 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1488 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1489 # interfere with the next link command; also delete a directory that is 1490 # left behind by Apple's compiler. We do this before executing the actions. 1491 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1493 as_fn_set_status $ac_retval 1494 1495} # ac_fn_c_try_link 1496 1497# ac_fn_c_try_cpp LINENO 1498# ---------------------- 1499# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1500ac_fn_c_try_cpp () 1501{ 1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1503 if { { ac_try="$ac_cpp conftest.$ac_ext" 1504case "(($ac_try" in 1505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1506 *) ac_try_echo=$ac_try;; 1507esac 1508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1509$as_echo "$ac_try_echo"; } >&5 1510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1511 ac_status=$? 1512 if test -s conftest.err; then 1513 grep -v '^ *+' conftest.err >conftest.er1 1514 cat conftest.er1 >&5 1515 mv -f conftest.er1 conftest.err 1516 fi 1517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1518 test $ac_status = 0; } > conftest.i && { 1519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1520 test ! -s conftest.err 1521 }; then : 1522 ac_retval=0 1523else 1524 $as_echo "$as_me: failed program was:" >&5 1525sed 's/^/| /' conftest.$ac_ext >&5 1526 1527 ac_retval=1 1528fi 1529 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1530 as_fn_set_status $ac_retval 1531 1532} # ac_fn_c_try_cpp 1533 1534# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1535# ------------------------------------------------------- 1536# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1537# the include files in INCLUDES and setting the cache variable VAR 1538# accordingly. 1539ac_fn_c_check_header_mongrel () 1540{ 1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1542 if eval \${$3+:} false; then : 1543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1544$as_echo_n "checking for $2... " >&6; } 1545if eval \${$3+:} false; then : 1546 $as_echo_n "(cached) " >&6 1547fi 1548eval ac_res=\$$3 1549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1550$as_echo "$ac_res" >&6; } 1551else 1552 # Is the header compilable? 1553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1554$as_echo_n "checking $2 usability... " >&6; } 1555cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1556/* end confdefs.h. */ 1557$4 1558#include <$2> 1559_ACEOF 1560if ac_fn_c_try_compile "$LINENO"; then : 1561 ac_header_compiler=yes 1562else 1563 ac_header_compiler=no 1564fi 1565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1567$as_echo "$ac_header_compiler" >&6; } 1568 1569# Is the header present? 1570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1571$as_echo_n "checking $2 presence... " >&6; } 1572cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1573/* end confdefs.h. */ 1574#include <$2> 1575_ACEOF 1576if ac_fn_c_try_cpp "$LINENO"; then : 1577 ac_header_preproc=yes 1578else 1579 ac_header_preproc=no 1580fi 1581rm -f conftest.err conftest.i conftest.$ac_ext 1582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1583$as_echo "$ac_header_preproc" >&6; } 1584 1585# So? What about this header? 1586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1587 yes:no: ) 1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1589$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1591$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1592 ;; 1593 no:yes:* ) 1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1595$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1597$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1599$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1601$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1603$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1604 ;; 1605esac 1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1607$as_echo_n "checking for $2... " >&6; } 1608if eval \${$3+:} false; then : 1609 $as_echo_n "(cached) " >&6 1610else 1611 eval "$3=\$ac_header_compiler" 1612fi 1613eval ac_res=\$$3 1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1615$as_echo "$ac_res" >&6; } 1616fi 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 1619} # ac_fn_c_check_header_mongrel 1620 1621# ac_fn_c_try_run LINENO 1622# ---------------------- 1623# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1624# that executables *can* be run. 1625ac_fn_c_try_run () 1626{ 1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1628 if { { ac_try="$ac_link" 1629case "(($ac_try" in 1630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1631 *) ac_try_echo=$ac_try;; 1632esac 1633eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1634$as_echo "$ac_try_echo"; } >&5 1635 (eval "$ac_link") 2>&5 1636 ac_status=$? 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1639 { { case "(($ac_try" in 1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1641 *) ac_try_echo=$ac_try;; 1642esac 1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1644$as_echo "$ac_try_echo"; } >&5 1645 (eval "$ac_try") 2>&5 1646 ac_status=$? 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; }; }; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: program exited with status $ac_status" >&5 1652 $as_echo "$as_me: failed program was:" >&5 1653sed 's/^/| /' conftest.$ac_ext >&5 1654 1655 ac_retval=$ac_status 1656fi 1657 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1659 as_fn_set_status $ac_retval 1660 1661} # ac_fn_c_try_run 1662 1663# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1664# ------------------------------------------------------- 1665# Tests whether HEADER exists and can be compiled using the include files in 1666# INCLUDES, setting the cache variable VAR accordingly. 1667ac_fn_c_check_header_compile () 1668{ 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1671$as_echo_n "checking for $2... " >&6; } 1672if eval \${$3+:} false; then : 1673 $as_echo_n "(cached) " >&6 1674else 1675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1676/* end confdefs.h. */ 1677$4 1678#include <$2> 1679_ACEOF 1680if ac_fn_c_try_compile "$LINENO"; then : 1681 eval "$3=yes" 1682else 1683 eval "$3=no" 1684fi 1685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1686fi 1687eval ac_res=\$$3 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1689$as_echo "$ac_res" >&6; } 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1691 1692} # ac_fn_c_check_header_compile 1693 1694# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1695# ------------------------------------------- 1696# Tests whether TYPE exists after having included INCLUDES, setting cache 1697# variable VAR accordingly. 1698ac_fn_c_check_type () 1699{ 1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1702$as_echo_n "checking for $2... " >&6; } 1703if eval \${$3+:} false; then : 1704 $as_echo_n "(cached) " >&6 1705else 1706 eval "$3=no" 1707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1708/* end confdefs.h. */ 1709$4 1710int 1711main () 1712{ 1713if (sizeof ($2)) 1714 return 0; 1715 ; 1716 return 0; 1717} 1718_ACEOF 1719if ac_fn_c_try_compile "$LINENO"; then : 1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722$4 1723int 1724main () 1725{ 1726if (sizeof (($2))) 1727 return 0; 1728 ; 1729 return 0; 1730} 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 1734else 1735 eval "$3=yes" 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738fi 1739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1740fi 1741eval ac_res=\$$3 1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1743$as_echo "$ac_res" >&6; } 1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1745 1746} # ac_fn_c_check_type 1747 1748# ac_fn_c_check_func LINENO FUNC VAR 1749# ---------------------------------- 1750# Tests whether FUNC exists, setting the cache variable VAR accordingly 1751ac_fn_c_check_func () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1755$as_echo_n "checking for $2... " >&6; } 1756if eval \${$3+:} false; then : 1757 $as_echo_n "(cached) " >&6 1758else 1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1760/* end confdefs.h. */ 1761/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1762 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1763#define $2 innocuous_$2 1764 1765/* System header to define __stub macros and hopefully few prototypes, 1766 which can conflict with char $2 (); below. 1767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1768 <limits.h> exists even on freestanding compilers. */ 1769 1770#ifdef __STDC__ 1771# include <limits.h> 1772#else 1773# include <assert.h> 1774#endif 1775 1776#undef $2 1777 1778/* Override any GCC internal prototype to avoid an error. 1779 Use char because int might match the return type of a GCC 1780 builtin and then its argument prototype would still apply. */ 1781#ifdef __cplusplus 1782extern "C" 1783#endif 1784char $2 (); 1785/* The GNU C library defines this for functions which it implements 1786 to always fail with ENOSYS. Some functions are actually named 1787 something starting with __ and the normal name is an alias. */ 1788#if defined __stub_$2 || defined __stub___$2 1789choke me 1790#endif 1791 1792int 1793main () 1794{ 1795return $2 (); 1796 ; 1797 return 0; 1798} 1799_ACEOF 1800if ac_fn_c_try_link "$LINENO"; then : 1801 eval "$3=yes" 1802else 1803 eval "$3=no" 1804fi 1805rm -f core conftest.err conftest.$ac_objext \ 1806 conftest$ac_exeext conftest.$ac_ext 1807fi 1808eval ac_res=\$$3 1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1810$as_echo "$ac_res" >&6; } 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 1813} # ac_fn_c_check_func 1814cat >config.log <<_ACEOF 1815This file contains any messages produced by compilers while 1816running configure, to aid debugging if configure makes a mistake. 1817 1818It was created by cocot $as_me 1.1-20120313, which was 1819generated by GNU Autoconf 2.68. Invocation command line was 1820 1821 $ $0 $@ 1822 1823_ACEOF 1824exec 5>>config.log 1825{ 1826cat <<_ASUNAME 1827## --------- ## 1828## Platform. ## 1829## --------- ## 1830 1831hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1832uname -m = `(uname -m) 2>/dev/null || echo unknown` 1833uname -r = `(uname -r) 2>/dev/null || echo unknown` 1834uname -s = `(uname -s) 2>/dev/null || echo unknown` 1835uname -v = `(uname -v) 2>/dev/null || echo unknown` 1836 1837/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1838/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1839 1840/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1841/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1842/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1843/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1844/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1845/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1846/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1847 1848_ASUNAME 1849 1850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1851for as_dir in $PATH 1852do 1853 IFS=$as_save_IFS 1854 test -z "$as_dir" && as_dir=. 1855 $as_echo "PATH: $as_dir" 1856 done 1857IFS=$as_save_IFS 1858 1859} >&5 1860 1861cat >&5 <<_ACEOF 1862 1863 1864## ----------- ## 1865## Core tests. ## 1866## ----------- ## 1867 1868_ACEOF 1869 1870 1871# Keep a trace of the command line. 1872# Strip out --no-create and --no-recursion so they do not pile up. 1873# Strip out --silent because we don't want to record it for future runs. 1874# Also quote any args containing shell meta-characters. 1875# Make two passes to allow for proper duplicate-argument suppression. 1876ac_configure_args= 1877ac_configure_args0= 1878ac_configure_args1= 1879ac_must_keep_next=false 1880for ac_pass in 1 2 1881do 1882 for ac_arg 1883 do 1884 case $ac_arg in 1885 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1887 | -silent | --silent | --silen | --sile | --sil) 1888 continue ;; 1889 *\'*) 1890 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1891 esac 1892 case $ac_pass in 1893 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1894 2) 1895 as_fn_append ac_configure_args1 " '$ac_arg'" 1896 if test $ac_must_keep_next = true; then 1897 ac_must_keep_next=false # Got value, back to normal. 1898 else 1899 case $ac_arg in 1900 *=* | --config-cache | -C | -disable-* | --disable-* \ 1901 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1902 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1903 | -with-* | --with-* | -without-* | --without-* | --x) 1904 case "$ac_configure_args0 " in 1905 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1906 esac 1907 ;; 1908 -* ) ac_must_keep_next=true ;; 1909 esac 1910 fi 1911 as_fn_append ac_configure_args " '$ac_arg'" 1912 ;; 1913 esac 1914 done 1915done 1916{ ac_configure_args0=; unset ac_configure_args0;} 1917{ ac_configure_args1=; unset ac_configure_args1;} 1918 1919# When interrupted or exit'd, cleanup temporary files, and complete 1920# config.log. We remove comments because anyway the quotes in there 1921# would cause problems or look ugly. 1922# WARNING: Use '\'' to represent an apostrophe within the trap. 1923# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1924trap 'exit_status=$? 1925 # Save into config.log some information that might help in debugging. 1926 { 1927 echo 1928 1929 $as_echo "## ---------------- ## 1930## Cache variables. ## 1931## ---------------- ##" 1932 echo 1933 # The following way of writing the cache mishandles newlines in values, 1934( 1935 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1936 eval ac_val=\$$ac_var 1937 case $ac_val in #( 1938 *${as_nl}*) 1939 case $ac_var in #( 1940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1941$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1942 esac 1943 case $ac_var in #( 1944 _ | IFS | as_nl) ;; #( 1945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1946 *) { eval $ac_var=; unset $ac_var;} ;; 1947 esac ;; 1948 esac 1949 done 1950 (set) 2>&1 | 1951 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1952 *${as_nl}ac_space=\ *) 1953 sed -n \ 1954 "s/'\''/'\''\\\\'\'''\''/g; 1955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1956 ;; #( 1957 *) 1958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1959 ;; 1960 esac | 1961 sort 1962) 1963 echo 1964 1965 $as_echo "## ----------------- ## 1966## Output variables. ## 1967## ----------------- ##" 1968 echo 1969 for ac_var in $ac_subst_vars 1970 do 1971 eval ac_val=\$$ac_var 1972 case $ac_val in 1973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1974 esac 1975 $as_echo "$ac_var='\''$ac_val'\''" 1976 done | sort 1977 echo 1978 1979 if test -n "$ac_subst_files"; then 1980 $as_echo "## ------------------- ## 1981## File substitutions. ## 1982## ------------------- ##" 1983 echo 1984 for ac_var in $ac_subst_files 1985 do 1986 eval ac_val=\$$ac_var 1987 case $ac_val in 1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1989 esac 1990 $as_echo "$ac_var='\''$ac_val'\''" 1991 done | sort 1992 echo 1993 fi 1994 1995 if test -s confdefs.h; then 1996 $as_echo "## ----------- ## 1997## confdefs.h. ## 1998## ----------- ##" 1999 echo 2000 cat confdefs.h 2001 echo 2002 fi 2003 test "$ac_signal" != 0 && 2004 $as_echo "$as_me: caught signal $ac_signal" 2005 $as_echo "$as_me: exit $exit_status" 2006 } >&5 2007 rm -f core *.core core.conftest.* && 2008 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2009 exit $exit_status 2010' 0 2011for ac_signal in 1 2 13 15; do 2012 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2013done 2014ac_signal=0 2015 2016# confdefs.h avoids OS command line length limits that DEFS can exceed. 2017rm -f -r conftest* confdefs.h 2018 2019$as_echo "/* confdefs.h */" > confdefs.h 2020 2021# Predefined preprocessor variables. 2022 2023cat >>confdefs.h <<_ACEOF 2024#define PACKAGE_NAME "$PACKAGE_NAME" 2025_ACEOF 2026 2027cat >>confdefs.h <<_ACEOF 2028#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2029_ACEOF 2030 2031cat >>confdefs.h <<_ACEOF 2032#define PACKAGE_VERSION "$PACKAGE_VERSION" 2033_ACEOF 2034 2035cat >>confdefs.h <<_ACEOF 2036#define PACKAGE_STRING "$PACKAGE_STRING" 2037_ACEOF 2038 2039cat >>confdefs.h <<_ACEOF 2040#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2041_ACEOF 2042 2043cat >>confdefs.h <<_ACEOF 2044#define PACKAGE_URL "$PACKAGE_URL" 2045_ACEOF 2046 2047 2048# Let the site file select an alternate cache file if it wants to. 2049# Prefer an explicitly selected file to automatically selected ones. 2050ac_site_file1=NONE 2051ac_site_file2=NONE 2052if test -n "$CONFIG_SITE"; then 2053 # We do not want a PATH search for config.site. 2054 case $CONFIG_SITE in #(( 2055 -*) ac_site_file1=./$CONFIG_SITE;; 2056 */*) ac_site_file1=$CONFIG_SITE;; 2057 *) ac_site_file1=./$CONFIG_SITE;; 2058 esac 2059elif test "x$prefix" != xNONE; then 2060 ac_site_file1=$prefix/share/config.site 2061 ac_site_file2=$prefix/etc/config.site 2062else 2063 ac_site_file1=$ac_default_prefix/share/config.site 2064 ac_site_file2=$ac_default_prefix/etc/config.site 2065fi 2066for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2067do 2068 test "x$ac_site_file" = xNONE && continue 2069 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2071$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2072 sed 's/^/| /' "$ac_site_file" >&5 2073 . "$ac_site_file" \ 2074 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2076as_fn_error $? "failed to load site script $ac_site_file 2077See \`config.log' for more details" "$LINENO" 5 ; } 2078 fi 2079done 2080 2081if test -r "$cache_file"; then 2082 # Some versions of bash will fail to source /dev/null (special files 2083 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2086$as_echo "$as_me: loading cache $cache_file" >&6;} 2087 case $cache_file in 2088 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2089 *) . "./$cache_file";; 2090 esac 2091 fi 2092else 2093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2094$as_echo "$as_me: creating cache $cache_file" >&6;} 2095 >$cache_file 2096fi 2097 2098# Check that the precious variables saved in the cache have kept the same 2099# value. 2100ac_cache_corrupted=false 2101for ac_var in $ac_precious_vars; do 2102 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2103 eval ac_new_set=\$ac_env_${ac_var}_set 2104 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2105 eval ac_new_val=\$ac_env_${ac_var}_value 2106 case $ac_old_set,$ac_new_set in 2107 set,) 2108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2109$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2110 ac_cache_corrupted=: ;; 2111 ,set) 2112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2113$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2114 ac_cache_corrupted=: ;; 2115 ,);; 2116 *) 2117 if test "x$ac_old_val" != "x$ac_new_val"; then 2118 # differences in whitespace do not lead to failure. 2119 ac_old_val_w=`echo x $ac_old_val` 2120 ac_new_val_w=`echo x $ac_new_val` 2121 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2123$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2124 ac_cache_corrupted=: 2125 else 2126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2127$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2128 eval $ac_var=\$ac_old_val 2129 fi 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2131$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2133$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2134 fi;; 2135 esac 2136 # Pass precious variables to config.status. 2137 if test "$ac_new_set" = set; then 2138 case $ac_new_val in 2139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2140 *) ac_arg=$ac_var=$ac_new_val ;; 2141 esac 2142 case " $ac_configure_args " in 2143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2144 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2145 esac 2146 fi 2147done 2148if $ac_cache_corrupted; then 2149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2152$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2153 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2154fi 2155## -------------------- ## 2156## Main body of script. ## 2157## -------------------- ## 2158 2159ac_ext=c 2160ac_cpp='$CPP $CPPFLAGS' 2161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2163ac_compiler_gnu=$ac_cv_c_compiler_gnu 2164 2165 2166am__api_version="1.9" 2167ac_aux_dir= 2168for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2169 if test -f "$ac_dir/install-sh"; then 2170 ac_aux_dir=$ac_dir 2171 ac_install_sh="$ac_aux_dir/install-sh -c" 2172 break 2173 elif test -f "$ac_dir/install.sh"; then 2174 ac_aux_dir=$ac_dir 2175 ac_install_sh="$ac_aux_dir/install.sh -c" 2176 break 2177 elif test -f "$ac_dir/shtool"; then 2178 ac_aux_dir=$ac_dir 2179 ac_install_sh="$ac_aux_dir/shtool install -c" 2180 break 2181 fi 2182done 2183if test -z "$ac_aux_dir"; then 2184 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2185fi 2186 2187# These three variables are undocumented and unsupported, 2188# and are intended to be withdrawn in a future Autoconf release. 2189# They can cause serious problems if a builder's source tree is in a directory 2190# whose full name contains unusual characters. 2191ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2192ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2193ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2194 2195 2196# Find a good install program. We prefer a C program (faster), 2197# so one script is as good as another. But avoid the broken or 2198# incompatible versions: 2199# SysV /etc/install, /usr/sbin/install 2200# SunOS /usr/etc/install 2201# IRIX /sbin/install 2202# AIX /bin/install 2203# AmigaOS /C/install, which installs bootblocks on floppy discs 2204# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2205# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2206# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2207# OS/2's system install, which has a completely different semantic 2208# ./install, which can be erroneously created by make from ./install.sh. 2209# Reject install programs that cannot install multiple files. 2210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2211$as_echo_n "checking for a BSD-compatible install... " >&6; } 2212if test -z "$INSTALL"; then 2213if ${ac_cv_path_install+:} false; then : 2214 $as_echo_n "(cached) " >&6 2215else 2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2217for as_dir in $PATH 2218do 2219 IFS=$as_save_IFS 2220 test -z "$as_dir" && as_dir=. 2221 # Account for people who put trailing slashes in PATH elements. 2222case $as_dir/ in #(( 2223 ./ | .// | /[cC]/* | \ 2224 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2225 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2226 /usr/ucb/* ) ;; 2227 *) 2228 # OSF1 and SCO ODT 3.0 have their own names for install. 2229 # Don't use installbsd from OSF since it installs stuff as root 2230 # by default. 2231 for ac_prog in ginstall scoinst install; do 2232 for ac_exec_ext in '' $ac_executable_extensions; do 2233 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2234 if test $ac_prog = install && 2235 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2236 # AIX install. It has an incompatible calling convention. 2237 : 2238 elif test $ac_prog = install && 2239 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2240 # program-specific install script used by HP pwplus--don't use. 2241 : 2242 else 2243 rm -rf conftest.one conftest.two conftest.dir 2244 echo one > conftest.one 2245 echo two > conftest.two 2246 mkdir conftest.dir 2247 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2248 test -s conftest.one && test -s conftest.two && 2249 test -s conftest.dir/conftest.one && 2250 test -s conftest.dir/conftest.two 2251 then 2252 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2253 break 3 2254 fi 2255 fi 2256 fi 2257 done 2258 done 2259 ;; 2260esac 2261 2262 done 2263IFS=$as_save_IFS 2264 2265rm -rf conftest.one conftest.two conftest.dir 2266 2267fi 2268 if test "${ac_cv_path_install+set}" = set; then 2269 INSTALL=$ac_cv_path_install 2270 else 2271 # As a last resort, use the slow shell script. Don't cache a 2272 # value for INSTALL within a source directory, because that will 2273 # break other packages using the cache if that directory is 2274 # removed, or if the value is a relative name. 2275 INSTALL=$ac_install_sh 2276 fi 2277fi 2278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2279$as_echo "$INSTALL" >&6; } 2280 2281# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2282# It thinks the first close brace ends the variable substitution. 2283test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2284 2285test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2286 2287test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2288 2289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2290$as_echo_n "checking whether build environment is sane... " >&6; } 2291# Just in case 2292sleep 1 2293echo timestamp > conftest.file 2294# Do `set' in a subshell so we don't clobber the current shell's 2295# arguments. Must try -L first in case configure is actually a 2296# symlink; some systems play weird games with the mod time of symlinks 2297# (eg FreeBSD returns the mod time of the symlink's containing 2298# directory). 2299if ( 2300 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 2301 if test "$*" = "X"; then 2302 # -L didn't work. 2303 set X `ls -t $srcdir/configure conftest.file` 2304 fi 2305 rm -f conftest.file 2306 if test "$*" != "X $srcdir/configure conftest.file" \ 2307 && test "$*" != "X conftest.file $srcdir/configure"; then 2308 2309 # If neither matched, then we have a broken ls. This can happen 2310 # if, for instance, CONFIG_SHELL is bash and it inherits a 2311 # broken ls alias from the environment. This has actually 2312 # happened. Such a system could not be considered "sane". 2313 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2314alias in your environment" "$LINENO" 5 2315 fi 2316 2317 test "$2" = conftest.file 2318 ) 2319then 2320 # Ok. 2321 : 2322else 2323 as_fn_error $? "newly created file is older than distributed files! 2324Check your system clock" "$LINENO" 5 2325fi 2326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2327$as_echo "yes" >&6; } 2328test "$program_prefix" != NONE && 2329 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2330# Use a double $ so make ignores it. 2331test "$program_suffix" != NONE && 2332 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2333# Double any \ or $. 2334# By default was `s,x,x', remove it if useless. 2335ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2336program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2337 2338# expand $ac_aux_dir to an absolute path 2339am_aux_dir=`cd $ac_aux_dir && pwd` 2340 2341test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 2342# Use eval to expand $SHELL 2343if eval "$MISSING --run true"; then 2344 am_missing_run="$MISSING --run " 2345else 2346 am_missing_run= 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2348$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2349fi 2350 2351if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 2352 # We used to keeping the `.' as first argument, in order to 2353 # allow $(mkdir_p) to be used without argument. As in 2354 # $(mkdir_p) $(somedir) 2355 # where $(somedir) is conditionally defined. However this is wrong 2356 # for two reasons: 2357 # 1. if the package is installed by a user who cannot write `.' 2358 # make install will fail, 2359 # 2. the above comment should most certainly read 2360 # $(mkdir_p) $(DESTDIR)$(somedir) 2361 # so it does not work when $(somedir) is undefined and 2362 # $(DESTDIR) is not. 2363 # To support the latter case, we have to write 2364 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 2365 # so the `.' trick is pointless. 2366 mkdir_p='mkdir -p --' 2367else 2368 # On NextStep and OpenStep, the `mkdir' command does not 2369 # recognize any option. It will interpret all options as 2370 # directories to create, and then abort because `.' already 2371 # exists. 2372 for d in ./-p ./--version; 2373 do 2374 test -d $d && rmdir $d 2375 done 2376 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 2377 if test -f "$ac_aux_dir/mkinstalldirs"; then 2378 mkdir_p='$(mkinstalldirs)' 2379 else 2380 mkdir_p='$(install_sh) -d' 2381 fi 2382fi 2383 2384for ac_prog in gawk mawk nawk awk 2385do 2386 # Extract the first word of "$ac_prog", so it can be a program name with args. 2387set dummy $ac_prog; ac_word=$2 2388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2389$as_echo_n "checking for $ac_word... " >&6; } 2390if ${ac_cv_prog_AWK+:} false; then : 2391 $as_echo_n "(cached) " >&6 2392else 2393 if test -n "$AWK"; then 2394 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2395else 2396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2397for as_dir in $PATH 2398do 2399 IFS=$as_save_IFS 2400 test -z "$as_dir" && as_dir=. 2401 for ac_exec_ext in '' $ac_executable_extensions; do 2402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2403 ac_cv_prog_AWK="$ac_prog" 2404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2405 break 2 2406 fi 2407done 2408 done 2409IFS=$as_save_IFS 2410 2411fi 2412fi 2413AWK=$ac_cv_prog_AWK 2414if test -n "$AWK"; then 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2416$as_echo "$AWK" >&6; } 2417else 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2419$as_echo "no" >&6; } 2420fi 2421 2422 2423 test -n "$AWK" && break 2424done 2425 2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2427$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2428set x ${MAKE-make} 2429ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2430if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2431 $as_echo_n "(cached) " >&6 2432else 2433 cat >conftest.make <<\_ACEOF 2434SHELL = /bin/sh 2435all: 2436 @echo '@@@%%%=$(MAKE)=@@@%%%' 2437_ACEOF 2438# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2439case `${MAKE-make} -f conftest.make 2>/dev/null` in 2440 *@@@%%%=?*=@@@%%%*) 2441 eval ac_cv_prog_make_${ac_make}_set=yes;; 2442 *) 2443 eval ac_cv_prog_make_${ac_make}_set=no;; 2444esac 2445rm -f conftest.make 2446fi 2447if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2449$as_echo "yes" >&6; } 2450 SET_MAKE= 2451else 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2453$as_echo "no" >&6; } 2454 SET_MAKE="MAKE=${MAKE-make}" 2455fi 2456 2457rm -rf .tst 2>/dev/null 2458mkdir .tst 2>/dev/null 2459if test -d .tst; then 2460 am__leading_dot=. 2461else 2462 am__leading_dot=_ 2463fi 2464rmdir .tst 2>/dev/null 2465 2466# test to see if srcdir already configured 2467if test "`cd $srcdir && pwd`" != "`pwd`" && 2468 test -f $srcdir/config.status; then 2469 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2470fi 2471 2472# test whether we have cygpath 2473if test -z "$CYGPATH_W"; then 2474 if (cygpath --version) >/dev/null 2>/dev/null; then 2475 CYGPATH_W='cygpath -w' 2476 else 2477 CYGPATH_W=echo 2478 fi 2479fi 2480 2481 2482# Define the identity of the package. 2483 PACKAGE='cocot' 2484 VERSION='1.1-20120313' 2485 2486 2487cat >>confdefs.h <<_ACEOF 2488#define PACKAGE "$PACKAGE" 2489_ACEOF 2490 2491 2492cat >>confdefs.h <<_ACEOF 2493#define VERSION "$VERSION" 2494_ACEOF 2495 2496# Some tools Automake needs. 2497 2498ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2499 2500 2501AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2502 2503 2504AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2505 2506 2507AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2508 2509 2510MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2511 2512install_sh=${install_sh-"$am_aux_dir/install-sh"} 2513 2514# Installed binaries are usually stripped using `strip' when the user 2515# run `make install-strip'. However `strip' might not be the right 2516# tool to use in cross-compilation environments, therefore Automake 2517# will honor the `STRIP' environment variable to overrule this program. 2518if test "$cross_compiling" != no; then 2519 if test -n "$ac_tool_prefix"; then 2520 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2521set dummy ${ac_tool_prefix}strip; ac_word=$2 2522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2523$as_echo_n "checking for $ac_word... " >&6; } 2524if ${ac_cv_prog_STRIP+:} false; then : 2525 $as_echo_n "(cached) " >&6 2526else 2527 if test -n "$STRIP"; then 2528 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2529else 2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2531for as_dir in $PATH 2532do 2533 IFS=$as_save_IFS 2534 test -z "$as_dir" && as_dir=. 2535 for ac_exec_ext in '' $ac_executable_extensions; do 2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2537 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2539 break 2 2540 fi 2541done 2542 done 2543IFS=$as_save_IFS 2544 2545fi 2546fi 2547STRIP=$ac_cv_prog_STRIP 2548if test -n "$STRIP"; then 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2550$as_echo "$STRIP" >&6; } 2551else 2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2553$as_echo "no" >&6; } 2554fi 2555 2556 2557fi 2558if test -z "$ac_cv_prog_STRIP"; then 2559 ac_ct_STRIP=$STRIP 2560 # Extract the first word of "strip", so it can be a program name with args. 2561set dummy strip; ac_word=$2 2562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2563$as_echo_n "checking for $ac_word... " >&6; } 2564if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2565 $as_echo_n "(cached) " >&6 2566else 2567 if test -n "$ac_ct_STRIP"; then 2568 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2569else 2570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2571for as_dir in $PATH 2572do 2573 IFS=$as_save_IFS 2574 test -z "$as_dir" && as_dir=. 2575 for ac_exec_ext in '' $ac_executable_extensions; do 2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2577 ac_cv_prog_ac_ct_STRIP="strip" 2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2579 break 2 2580 fi 2581done 2582 done 2583IFS=$as_save_IFS 2584 2585fi 2586fi 2587ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2588if test -n "$ac_ct_STRIP"; then 2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2590$as_echo "$ac_ct_STRIP" >&6; } 2591else 2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2593$as_echo "no" >&6; } 2594fi 2595 2596 if test "x$ac_ct_STRIP" = x; then 2597 STRIP=":" 2598 else 2599 case $cross_compiling:$ac_tool_warned in 2600yes:) 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2602$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2603ac_tool_warned=yes ;; 2604esac 2605 STRIP=$ac_ct_STRIP 2606 fi 2607else 2608 STRIP="$ac_cv_prog_STRIP" 2609fi 2610 2611fi 2612INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2613 2614# We need awk for the "check" target. The system "awk" is bad on 2615# some platforms. 2616# Always define AMTAR for backward compatibility. 2617 2618AMTAR=${AMTAR-"${am_missing_run}tar"} 2619 2620am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2621 2622 2623 2624 2625 2626 2627ac_config_headers="$ac_config_headers config.h" 2628 2629 2630# Checks for programs. 2631ac_ext=c 2632ac_cpp='$CPP $CPPFLAGS' 2633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2635ac_compiler_gnu=$ac_cv_c_compiler_gnu 2636if test -n "$ac_tool_prefix"; then 2637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2638set dummy ${ac_tool_prefix}gcc; ac_word=$2 2639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2640$as_echo_n "checking for $ac_word... " >&6; } 2641if ${ac_cv_prog_CC+:} false; then : 2642 $as_echo_n "(cached) " >&6 2643else 2644 if test -n "$CC"; then 2645 ac_cv_prog_CC="$CC" # Let the user override the test. 2646else 2647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2648for as_dir in $PATH 2649do 2650 IFS=$as_save_IFS 2651 test -z "$as_dir" && as_dir=. 2652 for ac_exec_ext in '' $ac_executable_extensions; do 2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2654 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2656 break 2 2657 fi 2658done 2659 done 2660IFS=$as_save_IFS 2661 2662fi 2663fi 2664CC=$ac_cv_prog_CC 2665if test -n "$CC"; then 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2667$as_echo "$CC" >&6; } 2668else 2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2670$as_echo "no" >&6; } 2671fi 2672 2673 2674fi 2675if test -z "$ac_cv_prog_CC"; then 2676 ac_ct_CC=$CC 2677 # Extract the first word of "gcc", so it can be a program name with args. 2678set dummy gcc; ac_word=$2 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2680$as_echo_n "checking for $ac_word... " >&6; } 2681if ${ac_cv_prog_ac_ct_CC+:} false; then : 2682 $as_echo_n "(cached) " >&6 2683else 2684 if test -n "$ac_ct_CC"; then 2685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2686else 2687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2688for as_dir in $PATH 2689do 2690 IFS=$as_save_IFS 2691 test -z "$as_dir" && as_dir=. 2692 for ac_exec_ext in '' $ac_executable_extensions; do 2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2694 ac_cv_prog_ac_ct_CC="gcc" 2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2696 break 2 2697 fi 2698done 2699 done 2700IFS=$as_save_IFS 2701 2702fi 2703fi 2704ac_ct_CC=$ac_cv_prog_ac_ct_CC 2705if test -n "$ac_ct_CC"; then 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2707$as_echo "$ac_ct_CC" >&6; } 2708else 2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2710$as_echo "no" >&6; } 2711fi 2712 2713 if test "x$ac_ct_CC" = x; then 2714 CC="" 2715 else 2716 case $cross_compiling:$ac_tool_warned in 2717yes:) 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2720ac_tool_warned=yes ;; 2721esac 2722 CC=$ac_ct_CC 2723 fi 2724else 2725 CC="$ac_cv_prog_CC" 2726fi 2727 2728if test -z "$CC"; then 2729 if test -n "$ac_tool_prefix"; then 2730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2731set dummy ${ac_tool_prefix}cc; ac_word=$2 2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2733$as_echo_n "checking for $ac_word... " >&6; } 2734if ${ac_cv_prog_CC+:} false; then : 2735 $as_echo_n "(cached) " >&6 2736else 2737 if test -n "$CC"; then 2738 ac_cv_prog_CC="$CC" # Let the user override the test. 2739else 2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2741for as_dir in $PATH 2742do 2743 IFS=$as_save_IFS 2744 test -z "$as_dir" && as_dir=. 2745 for ac_exec_ext in '' $ac_executable_extensions; do 2746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2747 ac_cv_prog_CC="${ac_tool_prefix}cc" 2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2749 break 2 2750 fi 2751done 2752 done 2753IFS=$as_save_IFS 2754 2755fi 2756fi 2757CC=$ac_cv_prog_CC 2758if test -n "$CC"; then 2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2760$as_echo "$CC" >&6; } 2761else 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2763$as_echo "no" >&6; } 2764fi 2765 2766 2767 fi 2768fi 2769if test -z "$CC"; then 2770 # Extract the first word of "cc", so it can be a program name with args. 2771set dummy cc; ac_word=$2 2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2773$as_echo_n "checking for $ac_word... " >&6; } 2774if ${ac_cv_prog_CC+:} false; then : 2775 $as_echo_n "(cached) " >&6 2776else 2777 if test -n "$CC"; then 2778 ac_cv_prog_CC="$CC" # Let the user override the test. 2779else 2780 ac_prog_rejected=no 2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH 2783do 2784 IFS=$as_save_IFS 2785 test -z "$as_dir" && as_dir=. 2786 for ac_exec_ext in '' $ac_executable_extensions; do 2787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2789 ac_prog_rejected=yes 2790 continue 2791 fi 2792 ac_cv_prog_CC="cc" 2793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2794 break 2 2795 fi 2796done 2797 done 2798IFS=$as_save_IFS 2799 2800if test $ac_prog_rejected = yes; then 2801 # We found a bogon in the path, so make sure we never use it. 2802 set dummy $ac_cv_prog_CC 2803 shift 2804 if test $# != 0; then 2805 # We chose a different compiler from the bogus one. 2806 # However, it has the same basename, so the bogon will be chosen 2807 # first if we set CC to just the basename; use the full file name. 2808 shift 2809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2810 fi 2811fi 2812fi 2813fi 2814CC=$ac_cv_prog_CC 2815if test -n "$CC"; then 2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2817$as_echo "$CC" >&6; } 2818else 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2820$as_echo "no" >&6; } 2821fi 2822 2823 2824fi 2825if test -z "$CC"; then 2826 if test -n "$ac_tool_prefix"; then 2827 for ac_prog in cl.exe 2828 do 2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2830set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2832$as_echo_n "checking for $ac_word... " >&6; } 2833if ${ac_cv_prog_CC+:} false; then : 2834 $as_echo_n "(cached) " >&6 2835else 2836 if test -n "$CC"; then 2837 ac_cv_prog_CC="$CC" # Let the user override the test. 2838else 2839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2840for as_dir in $PATH 2841do 2842 IFS=$as_save_IFS 2843 test -z "$as_dir" && as_dir=. 2844 for ac_exec_ext in '' $ac_executable_extensions; do 2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2848 break 2 2849 fi 2850done 2851 done 2852IFS=$as_save_IFS 2853 2854fi 2855fi 2856CC=$ac_cv_prog_CC 2857if test -n "$CC"; then 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2859$as_echo "$CC" >&6; } 2860else 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2862$as_echo "no" >&6; } 2863fi 2864 2865 2866 test -n "$CC" && break 2867 done 2868fi 2869if test -z "$CC"; then 2870 ac_ct_CC=$CC 2871 for ac_prog in cl.exe 2872do 2873 # Extract the first word of "$ac_prog", so it can be a program name with args. 2874set dummy $ac_prog; ac_word=$2 2875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2876$as_echo_n "checking for $ac_word... " >&6; } 2877if ${ac_cv_prog_ac_ct_CC+:} false; then : 2878 $as_echo_n "(cached) " >&6 2879else 2880 if test -n "$ac_ct_CC"; then 2881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2882else 2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2884for as_dir in $PATH 2885do 2886 IFS=$as_save_IFS 2887 test -z "$as_dir" && as_dir=. 2888 for ac_exec_ext in '' $ac_executable_extensions; do 2889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2890 ac_cv_prog_ac_ct_CC="$ac_prog" 2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2892 break 2 2893 fi 2894done 2895 done 2896IFS=$as_save_IFS 2897 2898fi 2899fi 2900ac_ct_CC=$ac_cv_prog_ac_ct_CC 2901if test -n "$ac_ct_CC"; then 2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2903$as_echo "$ac_ct_CC" >&6; } 2904else 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2906$as_echo "no" >&6; } 2907fi 2908 2909 2910 test -n "$ac_ct_CC" && break 2911done 2912 2913 if test "x$ac_ct_CC" = x; then 2914 CC="" 2915 else 2916 case $cross_compiling:$ac_tool_warned in 2917yes:) 2918{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2919$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2920ac_tool_warned=yes ;; 2921esac 2922 CC=$ac_ct_CC 2923 fi 2924fi 2925 2926fi 2927 2928 2929test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2930$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2931as_fn_error $? "no acceptable C compiler found in \$PATH 2932See \`config.log' for more details" "$LINENO" 5 ; } 2933 2934# Provide some information about the compiler. 2935$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2936set X $ac_compile 2937ac_compiler=$2 2938for ac_option in --version -v -V -qversion; do 2939 { { ac_try="$ac_compiler $ac_option >&5" 2940case "(($ac_try" in 2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2942 *) ac_try_echo=$ac_try;; 2943esac 2944eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2945$as_echo "$ac_try_echo"; } >&5 2946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2947 ac_status=$? 2948 if test -s conftest.err; then 2949 sed '10a\ 2950... rest of stderr output deleted ... 2951 10q' conftest.err >conftest.er1 2952 cat conftest.er1 >&5 2953 fi 2954 rm -f conftest.er1 conftest.err 2955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2956 test $ac_status = 0; } 2957done 2958 2959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2960/* end confdefs.h. */ 2961 2962int 2963main () 2964{ 2965 2966 ; 2967 return 0; 2968} 2969_ACEOF 2970ac_clean_files_save=$ac_clean_files 2971ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2972# Try to create an executable without -o first, disregard a.out. 2973# It will help us diagnose broken compilers, and finding out an intuition 2974# of exeext. 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2976$as_echo_n "checking whether the C compiler works... " >&6; } 2977ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2978 2979# The possible output files: 2980ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2981 2982ac_rmfiles= 2983for ac_file in $ac_files 2984do 2985 case $ac_file in 2986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2987 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2988 esac 2989done 2990rm -f $ac_rmfiles 2991 2992if { { ac_try="$ac_link_default" 2993case "(($ac_try" in 2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2995 *) ac_try_echo=$ac_try;; 2996esac 2997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2998$as_echo "$ac_try_echo"; } >&5 2999 (eval "$ac_link_default") 2>&5 3000 ac_status=$? 3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3002 test $ac_status = 0; }; then : 3003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3004# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3005# in a Makefile. We should not override ac_cv_exeext if it was cached, 3006# so that the user can short-circuit this test for compilers unknown to 3007# Autoconf. 3008for ac_file in $ac_files '' 3009do 3010 test -f "$ac_file" || continue 3011 case $ac_file in 3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3013 ;; 3014 [ab].out ) 3015 # We found the default executable, but exeext='' is most 3016 # certainly right. 3017 break;; 3018 *.* ) 3019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3020 then :; else 3021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3022 fi 3023 # We set ac_cv_exeext here because the later test for it is not 3024 # safe: cross compilers may not add the suffix if given an `-o' 3025 # argument, so we may need to know it at that point already. 3026 # Even if this section looks crufty: it has the advantage of 3027 # actually working. 3028 break;; 3029 * ) 3030 break;; 3031 esac 3032done 3033test "$ac_cv_exeext" = no && ac_cv_exeext= 3034 3035else 3036 ac_file='' 3037fi 3038if test -z "$ac_file"; then : 3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3040$as_echo "no" >&6; } 3041$as_echo "$as_me: failed program was:" >&5 3042sed 's/^/| /' conftest.$ac_ext >&5 3043 3044{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3045$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3046as_fn_error 77 "C compiler cannot create executables 3047See \`config.log' for more details" "$LINENO" 5 ; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3050$as_echo "yes" >&6; } 3051fi 3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3053$as_echo_n "checking for C compiler default output file name... " >&6; } 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3055$as_echo "$ac_file" >&6; } 3056ac_exeext=$ac_cv_exeext 3057 3058rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3059ac_clean_files=$ac_clean_files_save 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3061$as_echo_n "checking for suffix of executables... " >&6; } 3062if { { ac_try="$ac_link" 3063case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3068$as_echo "$ac_try_echo"; } >&5 3069 (eval "$ac_link") 2>&5 3070 ac_status=$? 3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3072 test $ac_status = 0; }; then : 3073 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3074# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3075# work properly (i.e., refer to `conftest.exe'), while it won't with 3076# `rm'. 3077for ac_file in conftest.exe conftest conftest.*; do 3078 test -f "$ac_file" || continue 3079 case $ac_file in 3080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3082 break;; 3083 * ) break;; 3084 esac 3085done 3086else 3087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3089as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3090See \`config.log' for more details" "$LINENO" 5 ; } 3091fi 3092rm -f conftest conftest$ac_cv_exeext 3093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3094$as_echo "$ac_cv_exeext" >&6; } 3095 3096rm -f conftest.$ac_ext 3097EXEEXT=$ac_cv_exeext 3098ac_exeext=$EXEEXT 3099cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3100/* end confdefs.h. */ 3101#include <stdio.h> 3102int 3103main () 3104{ 3105FILE *f = fopen ("conftest.out", "w"); 3106 return ferror (f) || fclose (f) != 0; 3107 3108 ; 3109 return 0; 3110} 3111_ACEOF 3112ac_clean_files="$ac_clean_files conftest.out" 3113# Check that the compiler produces executables we can run. If not, either 3114# the compiler is broken, or we cross compile. 3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3116$as_echo_n "checking whether we are cross compiling... " >&6; } 3117if test "$cross_compiling" != yes; then 3118 { { ac_try="$ac_link" 3119case "(($ac_try" in 3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3121 *) ac_try_echo=$ac_try;; 3122esac 3123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3124$as_echo "$ac_try_echo"; } >&5 3125 (eval "$ac_link") 2>&5 3126 ac_status=$? 3127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3128 test $ac_status = 0; } 3129 if { ac_try='./conftest$ac_cv_exeext' 3130 { { case "(($ac_try" in 3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3132 *) ac_try_echo=$ac_try;; 3133esac 3134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3135$as_echo "$ac_try_echo"; } >&5 3136 (eval "$ac_try") 2>&5 3137 ac_status=$? 3138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3139 test $ac_status = 0; }; }; then 3140 cross_compiling=no 3141 else 3142 if test "$cross_compiling" = maybe; then 3143 cross_compiling=yes 3144 else 3145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3146$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3147as_fn_error $? "cannot run C compiled programs. 3148If you meant to cross compile, use \`--host'. 3149See \`config.log' for more details" "$LINENO" 5 ; } 3150 fi 3151 fi 3152fi 3153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3154$as_echo "$cross_compiling" >&6; } 3155 3156rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3157ac_clean_files=$ac_clean_files_save 3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3159$as_echo_n "checking for suffix of object files... " >&6; } 3160if ${ac_cv_objext+:} false; then : 3161 $as_echo_n "(cached) " >&6 3162else 3163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3164/* end confdefs.h. */ 3165 3166int 3167main () 3168{ 3169 3170 ; 3171 return 0; 3172} 3173_ACEOF 3174rm -f conftest.o conftest.obj 3175if { { ac_try="$ac_compile" 3176case "(($ac_try" in 3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3178 *) ac_try_echo=$ac_try;; 3179esac 3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3181$as_echo "$ac_try_echo"; } >&5 3182 (eval "$ac_compile") 2>&5 3183 ac_status=$? 3184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3185 test $ac_status = 0; }; then : 3186 for ac_file in conftest.o conftest.obj conftest.*; do 3187 test -f "$ac_file" || continue; 3188 case $ac_file in 3189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3191 break;; 3192 esac 3193done 3194else 3195 $as_echo "$as_me: failed program was:" >&5 3196sed 's/^/| /' conftest.$ac_ext >&5 3197 3198{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3200as_fn_error $? "cannot compute suffix of object files: cannot compile 3201See \`config.log' for more details" "$LINENO" 5 ; } 3202fi 3203rm -f conftest.$ac_cv_objext conftest.$ac_ext 3204fi 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3206$as_echo "$ac_cv_objext" >&6; } 3207OBJEXT=$ac_cv_objext 3208ac_objext=$OBJEXT 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3210$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3211if ${ac_cv_c_compiler_gnu+:} false; then : 3212 $as_echo_n "(cached) " >&6 3213else 3214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3215/* end confdefs.h. */ 3216 3217int 3218main () 3219{ 3220#ifndef __GNUC__ 3221 choke me 3222#endif 3223 3224 ; 3225 return 0; 3226} 3227_ACEOF 3228if ac_fn_c_try_compile "$LINENO"; then : 3229 ac_compiler_gnu=yes 3230else 3231 ac_compiler_gnu=no 3232fi 3233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3234ac_cv_c_compiler_gnu=$ac_compiler_gnu 3235 3236fi 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3238$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3239if test $ac_compiler_gnu = yes; then 3240 GCC=yes 3241else 3242 GCC= 3243fi 3244ac_test_CFLAGS=${CFLAGS+set} 3245ac_save_CFLAGS=$CFLAGS 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3247$as_echo_n "checking whether $CC accepts -g... " >&6; } 3248if ${ac_cv_prog_cc_g+:} false; then : 3249 $as_echo_n "(cached) " >&6 3250else 3251 ac_save_c_werror_flag=$ac_c_werror_flag 3252 ac_c_werror_flag=yes 3253 ac_cv_prog_cc_g=no 3254 CFLAGS="-g" 3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256/* end confdefs.h. */ 3257 3258int 3259main () 3260{ 3261 3262 ; 3263 return 0; 3264} 3265_ACEOF 3266if ac_fn_c_try_compile "$LINENO"; then : 3267 ac_cv_prog_cc_g=yes 3268else 3269 CFLAGS="" 3270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3271/* end confdefs.h. */ 3272 3273int 3274main () 3275{ 3276 3277 ; 3278 return 0; 3279} 3280_ACEOF 3281if ac_fn_c_try_compile "$LINENO"; then : 3282 3283else 3284 ac_c_werror_flag=$ac_save_c_werror_flag 3285 CFLAGS="-g" 3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3287/* end confdefs.h. */ 3288 3289int 3290main () 3291{ 3292 3293 ; 3294 return 0; 3295} 3296_ACEOF 3297if ac_fn_c_try_compile "$LINENO"; then : 3298 ac_cv_prog_cc_g=yes 3299fi 3300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3301fi 3302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3303fi 3304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3305 ac_c_werror_flag=$ac_save_c_werror_flag 3306fi 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3308$as_echo "$ac_cv_prog_cc_g" >&6; } 3309if test "$ac_test_CFLAGS" = set; then 3310 CFLAGS=$ac_save_CFLAGS 3311elif test $ac_cv_prog_cc_g = yes; then 3312 if test "$GCC" = yes; then 3313 CFLAGS="-g -O2" 3314 else 3315 CFLAGS="-g" 3316 fi 3317else 3318 if test "$GCC" = yes; then 3319 CFLAGS="-O2" 3320 else 3321 CFLAGS= 3322 fi 3323fi 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3325$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3326if ${ac_cv_prog_cc_c89+:} false; then : 3327 $as_echo_n "(cached) " >&6 3328else 3329 ac_cv_prog_cc_c89=no 3330ac_save_CC=$CC 3331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3332/* end confdefs.h. */ 3333#include <stdarg.h> 3334#include <stdio.h> 3335#include <sys/types.h> 3336#include <sys/stat.h> 3337/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3338struct buf { int x; }; 3339FILE * (*rcsopen) (struct buf *, struct stat *, int); 3340static char *e (p, i) 3341 char **p; 3342 int i; 3343{ 3344 return p[i]; 3345} 3346static char *f (char * (*g) (char **, int), char **p, ...) 3347{ 3348 char *s; 3349 va_list v; 3350 va_start (v,p); 3351 s = g (p, va_arg (v,int)); 3352 va_end (v); 3353 return s; 3354} 3355 3356/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3357 function prototypes and stuff, but not '\xHH' hex character constants. 3358 These don't provoke an error unfortunately, instead are silently treated 3359 as 'x'. The following induces an error, until -std is added to get 3360 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3361 array size at least. It's necessary to write '\x00'==0 to get something 3362 that's true only with -std. */ 3363int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3364 3365/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3366 inside strings and character constants. */ 3367#define FOO(x) 'x' 3368int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3369 3370int test (int i, double x); 3371struct s1 {int (*f) (int a);}; 3372struct s2 {int (*f) (double a);}; 3373int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3374int argc; 3375char **argv; 3376int 3377main () 3378{ 3379return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3380 ; 3381 return 0; 3382} 3383_ACEOF 3384for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3385 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3386do 3387 CC="$ac_save_CC $ac_arg" 3388 if ac_fn_c_try_compile "$LINENO"; then : 3389 ac_cv_prog_cc_c89=$ac_arg 3390fi 3391rm -f core conftest.err conftest.$ac_objext 3392 test "x$ac_cv_prog_cc_c89" != "xno" && break 3393done 3394rm -f conftest.$ac_ext 3395CC=$ac_save_CC 3396 3397fi 3398# AC_CACHE_VAL 3399case "x$ac_cv_prog_cc_c89" in 3400 x) 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3402$as_echo "none needed" >&6; } ;; 3403 xno) 3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3405$as_echo "unsupported" >&6; } ;; 3406 *) 3407 CC="$CC $ac_cv_prog_cc_c89" 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3409$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3410esac 3411if test "x$ac_cv_prog_cc_c89" != xno; then : 3412 3413fi 3414 3415ac_ext=c 3416ac_cpp='$CPP $CPPFLAGS' 3417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3419ac_compiler_gnu=$ac_cv_c_compiler_gnu 3420DEPDIR="${am__leading_dot}deps" 3421 3422ac_config_commands="$ac_config_commands depfiles" 3423 3424 3425am_make=${MAKE-make} 3426cat > confinc << 'END' 3427am__doit: 3428 @echo done 3429.PHONY: am__doit 3430END 3431# If we don't find an include directive, just comment out the code. 3432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3433$as_echo_n "checking for style of include used by $am_make... " >&6; } 3434am__include="#" 3435am__quote= 3436_am_result=none 3437# First try GNU make style include. 3438echo "include confinc" > confmf 3439# We grep out `Entering directory' and `Leaving directory' 3440# messages which can occur if `w' ends up in MAKEFLAGS. 3441# In particular we don't look at `^make:' because GNU make might 3442# be invoked under some other name (usually "gmake"), in which 3443# case it prints its new name instead of `make'. 3444if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3445 am__include=include 3446 am__quote= 3447 _am_result=GNU 3448fi 3449# Now try BSD make style include. 3450if test "$am__include" = "#"; then 3451 echo '.include "confinc"' > confmf 3452 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3453 am__include=.include 3454 am__quote="\"" 3455 _am_result=BSD 3456 fi 3457fi 3458 3459 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3461$as_echo "$_am_result" >&6; } 3462rm -f confinc confmf 3463 3464# Check whether --enable-dependency-tracking was given. 3465if test "${enable_dependency_tracking+set}" = set; then : 3466 enableval=$enable_dependency_tracking; 3467fi 3468 3469if test "x$enable_dependency_tracking" != xno; then 3470 am_depcomp="$ac_aux_dir/depcomp" 3471 AMDEPBACKSLASH='\' 3472fi 3473 3474 3475if test "x$enable_dependency_tracking" != xno; then 3476 AMDEP_TRUE= 3477 AMDEP_FALSE='#' 3478else 3479 AMDEP_TRUE='#' 3480 AMDEP_FALSE= 3481fi 3482 3483 3484 3485 3486depcc="$CC" am_compiler_list= 3487 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3489$as_echo_n "checking dependency style of $depcc... " >&6; } 3490if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3491 $as_echo_n "(cached) " >&6 3492else 3493 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3494 # We make a subdir and do the tests there. Otherwise we can end up 3495 # making bogus files that we don't know about and never remove. For 3496 # instance it was reported that on HP-UX the gcc test will end up 3497 # making a dummy file named `D' -- because `-MD' means `put the output 3498 # in D'. 3499 mkdir conftest.dir 3500 # Copy depcomp to subdir because otherwise we won't find it if we're 3501 # using a relative directory. 3502 cp "$am_depcomp" conftest.dir 3503 cd conftest.dir 3504 # We will build objects and dependencies in a subdirectory because 3505 # it helps to detect inapplicable dependency modes. For instance 3506 # both Tru64's cc and ICC support -MD to output dependencies as a 3507 # side effect of compilation, but ICC will put the dependencies in 3508 # the current directory while Tru64 will put them in the object 3509 # directory. 3510 mkdir sub 3511 3512 am_cv_CC_dependencies_compiler_type=none 3513 if test "$am_compiler_list" = ""; then 3514 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3515 fi 3516 for depmode in $am_compiler_list; do 3517 # Setup a source with many dependencies, because some compilers 3518 # like to wrap large dependency lists on column 80 (with \), and 3519 # we should not choose a depcomp mode which is confused by this. 3520 # 3521 # We need to recreate these files for each test, as the compiler may 3522 # overwrite some of them when testing with obscure command lines. 3523 # This happens at least with the AIX C compiler. 3524 : > sub/conftest.c 3525 for i in 1 2 3 4 5 6; do 3526 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3527 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3528 # Solaris 8's {/usr,}/bin/sh. 3529 touch sub/conftst$i.h 3530 done 3531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3532 3533 case $depmode in 3534 nosideeffect) 3535 # after this tag, mechanisms are not by side-effect, so they'll 3536 # only be used when explicitly requested 3537 if test "x$enable_dependency_tracking" = xyes; then 3538 continue 3539 else 3540 break 3541 fi 3542 ;; 3543 none) break ;; 3544 esac 3545 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3546 # mode. It turns out that the SunPro C++ compiler does not properly 3547 # handle `-M -o', and we need to detect this. 3548 if depmode=$depmode \ 3549 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3550 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3551 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3552 >/dev/null 2>conftest.err && 3553 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3554 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3555 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3556 # icc doesn't choke on unknown options, it will just issue warnings 3557 # or remarks (even with -Werror). So we grep stderr for any message 3558 # that says an option was ignored or not supported. 3559 # When given -MP, icc 7.0 and 7.1 complain thusly: 3560 # icc: Command line warning: ignoring option '-M'; no argument required 3561 # The diagnosis changed in icc 8.0: 3562 # icc: Command line remark: option '-MP' not supported 3563 if (grep 'ignoring option' conftest.err || 3564 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3565 am_cv_CC_dependencies_compiler_type=$depmode 3566 break 3567 fi 3568 fi 3569 done 3570 3571 cd .. 3572 rm -rf conftest.dir 3573else 3574 am_cv_CC_dependencies_compiler_type=none 3575fi 3576 3577fi 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3579$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3580CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3581 3582 3583 3584if 3585 test "x$enable_dependency_tracking" != xno \ 3586 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3587 am__fastdepCC_TRUE= 3588 am__fastdepCC_FALSE='#' 3589else 3590 am__fastdepCC_TRUE='#' 3591 am__fastdepCC_FALSE= 3592fi 3593 3594 3595 3596 3597# Checks for libraries. 3598# FIXME: Replace `main' with a function in `-liconv': 3599 3600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liconv" >&5 3601$as_echo_n "checking for main in -liconv... " >&6; } 3602if ${ac_cv_lib_iconv_main+:} false; then : 3603 $as_echo_n "(cached) " >&6 3604else 3605 ac_check_lib_save_LIBS=$LIBS 3606LIBS="-liconv $LIBS" 3607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3608/* end confdefs.h. */ 3609 3610 3611int 3612main () 3613{ 3614return main (); 3615 ; 3616 return 0; 3617} 3618_ACEOF 3619if ac_fn_c_try_link "$LINENO"; then : 3620 ac_cv_lib_iconv_main=yes 3621else 3622 ac_cv_lib_iconv_main=no 3623fi 3624rm -f core conftest.err conftest.$ac_objext \ 3625 conftest$ac_exeext conftest.$ac_ext 3626LIBS=$ac_check_lib_save_LIBS 3627fi 3628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_main" >&5 3629$as_echo "$ac_cv_lib_iconv_main" >&6; } 3630if test "x$ac_cv_lib_iconv_main" = xyes; then : 3631 cat >>confdefs.h <<_ACEOF 3632#define HAVE_LIBICONV 1 3633_ACEOF 3634 3635 LIBS="-liconv $LIBS" 3636 3637fi 3638 3639ac_ext=c 3640ac_cpp='$CPP $CPPFLAGS' 3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3643ac_compiler_gnu=$ac_cv_c_compiler_gnu 3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3645$as_echo_n "checking how to run the C preprocessor... " >&6; } 3646# On Suns, sometimes $CPP names a directory. 3647if test -n "$CPP" && test -d "$CPP"; then 3648 CPP= 3649fi 3650if test -z "$CPP"; then 3651 if ${ac_cv_prog_CPP+:} false; then : 3652 $as_echo_n "(cached) " >&6 3653else 3654 # Double quotes because CPP needs to be expanded 3655 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3656 do 3657 ac_preproc_ok=false 3658for ac_c_preproc_warn_flag in '' yes 3659do 3660 # Use a header file that comes with gcc, so configuring glibc 3661 # with a fresh cross-compiler works. 3662 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3663 # <limits.h> exists even on freestanding compilers. 3664 # On the NeXT, cc -E runs the code through the compiler's parser, 3665 # not just through cpp. "Syntax error" is here to catch this case. 3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3667/* end confdefs.h. */ 3668#ifdef __STDC__ 3669# include <limits.h> 3670#else 3671# include <assert.h> 3672#endif 3673 Syntax error 3674_ACEOF 3675if ac_fn_c_try_cpp "$LINENO"; then : 3676 3677else 3678 # Broken: fails on valid input. 3679continue 3680fi 3681rm -f conftest.err conftest.i conftest.$ac_ext 3682 3683 # OK, works on sane cases. Now check whether nonexistent headers 3684 # can be detected and how. 3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3686/* end confdefs.h. */ 3687#include <ac_nonexistent.h> 3688_ACEOF 3689if ac_fn_c_try_cpp "$LINENO"; then : 3690 # Broken: success on invalid input. 3691continue 3692else 3693 # Passes both tests. 3694ac_preproc_ok=: 3695break 3696fi 3697rm -f conftest.err conftest.i conftest.$ac_ext 3698 3699done 3700# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3701rm -f conftest.i conftest.err conftest.$ac_ext 3702if $ac_preproc_ok; then : 3703 break 3704fi 3705 3706 done 3707 ac_cv_prog_CPP=$CPP 3708 3709fi 3710 CPP=$ac_cv_prog_CPP 3711else 3712 ac_cv_prog_CPP=$CPP 3713fi 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3715$as_echo "$CPP" >&6; } 3716ac_preproc_ok=false 3717for ac_c_preproc_warn_flag in '' yes 3718do 3719 # Use a header file that comes with gcc, so configuring glibc 3720 # with a fresh cross-compiler works. 3721 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3722 # <limits.h> exists even on freestanding compilers. 3723 # On the NeXT, cc -E runs the code through the compiler's parser, 3724 # not just through cpp. "Syntax error" is here to catch this case. 3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3726/* end confdefs.h. */ 3727#ifdef __STDC__ 3728# include <limits.h> 3729#else 3730# include <assert.h> 3731#endif 3732 Syntax error 3733_ACEOF 3734if ac_fn_c_try_cpp "$LINENO"; then : 3735 3736else 3737 # Broken: fails on valid input. 3738continue 3739fi 3740rm -f conftest.err conftest.i conftest.$ac_ext 3741 3742 # OK, works on sane cases. Now check whether nonexistent headers 3743 # can be detected and how. 3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3745/* end confdefs.h. */ 3746#include <ac_nonexistent.h> 3747_ACEOF 3748if ac_fn_c_try_cpp "$LINENO"; then : 3749 # Broken: success on invalid input. 3750continue 3751else 3752 # Passes both tests. 3753ac_preproc_ok=: 3754break 3755fi 3756rm -f conftest.err conftest.i conftest.$ac_ext 3757 3758done 3759# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3760rm -f conftest.i conftest.err conftest.$ac_ext 3761if $ac_preproc_ok; then : 3762 3763else 3764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3766as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3767See \`config.log' for more details" "$LINENO" 5 ; } 3768fi 3769 3770ac_ext=c 3771ac_cpp='$CPP $CPPFLAGS' 3772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3774ac_compiler_gnu=$ac_cv_c_compiler_gnu 3775 3776 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3778$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3779if ${ac_cv_path_GREP+:} false; then : 3780 $as_echo_n "(cached) " >&6 3781else 3782 if test -z "$GREP"; then 3783 ac_path_GREP_found=false 3784 # Loop through the user's path and test for each of PROGNAME-LIST 3785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3786for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3787do 3788 IFS=$as_save_IFS 3789 test -z "$as_dir" && as_dir=. 3790 for ac_prog in grep ggrep; do 3791 for ac_exec_ext in '' $ac_executable_extensions; do 3792 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3793 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3794# Check for GNU ac_path_GREP and select it if it is found. 3795 # Check for GNU $ac_path_GREP 3796case `"$ac_path_GREP" --version 2>&1` in 3797*GNU*) 3798 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3799*) 3800 ac_count=0 3801 $as_echo_n 0123456789 >"conftest.in" 3802 while : 3803 do 3804 cat "conftest.in" "conftest.in" >"conftest.tmp" 3805 mv "conftest.tmp" "conftest.in" 3806 cp "conftest.in" "conftest.nl" 3807 $as_echo 'GREP' >> "conftest.nl" 3808 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3810 as_fn_arith $ac_count + 1 && ac_count=$as_val 3811 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3812 # Best one so far, save it but keep looking for a better one 3813 ac_cv_path_GREP="$ac_path_GREP" 3814 ac_path_GREP_max=$ac_count 3815 fi 3816 # 10*(2^10) chars as input seems more than enough 3817 test $ac_count -gt 10 && break 3818 done 3819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3820esac 3821 3822 $ac_path_GREP_found && break 3 3823 done 3824 done 3825 done 3826IFS=$as_save_IFS 3827 if test -z "$ac_cv_path_GREP"; then 3828 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3829 fi 3830else 3831 ac_cv_path_GREP=$GREP 3832fi 3833 3834fi 3835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3836$as_echo "$ac_cv_path_GREP" >&6; } 3837 GREP="$ac_cv_path_GREP" 3838 3839 3840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3841$as_echo_n "checking for egrep... " >&6; } 3842if ${ac_cv_path_EGREP+:} false; then : 3843 $as_echo_n "(cached) " >&6 3844else 3845 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3846 then ac_cv_path_EGREP="$GREP -E" 3847 else 3848 if test -z "$EGREP"; then 3849 ac_path_EGREP_found=false 3850 # Loop through the user's path and test for each of PROGNAME-LIST 3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3852for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3853do 3854 IFS=$as_save_IFS 3855 test -z "$as_dir" && as_dir=. 3856 for ac_prog in egrep; do 3857 for ac_exec_ext in '' $ac_executable_extensions; do 3858 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3859 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3860# Check for GNU ac_path_EGREP and select it if it is found. 3861 # Check for GNU $ac_path_EGREP 3862case `"$ac_path_EGREP" --version 2>&1` in 3863*GNU*) 3864 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3865*) 3866 ac_count=0 3867 $as_echo_n 0123456789 >"conftest.in" 3868 while : 3869 do 3870 cat "conftest.in" "conftest.in" >"conftest.tmp" 3871 mv "conftest.tmp" "conftest.in" 3872 cp "conftest.in" "conftest.nl" 3873 $as_echo 'EGREP' >> "conftest.nl" 3874 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3876 as_fn_arith $ac_count + 1 && ac_count=$as_val 3877 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3878 # Best one so far, save it but keep looking for a better one 3879 ac_cv_path_EGREP="$ac_path_EGREP" 3880 ac_path_EGREP_max=$ac_count 3881 fi 3882 # 10*(2^10) chars as input seems more than enough 3883 test $ac_count -gt 10 && break 3884 done 3885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3886esac 3887 3888 $ac_path_EGREP_found && break 3 3889 done 3890 done 3891 done 3892IFS=$as_save_IFS 3893 if test -z "$ac_cv_path_EGREP"; then 3894 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3895 fi 3896else 3897 ac_cv_path_EGREP=$EGREP 3898fi 3899 3900 fi 3901fi 3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3903$as_echo "$ac_cv_path_EGREP" >&6; } 3904 EGREP="$ac_cv_path_EGREP" 3905 3906 3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3908$as_echo_n "checking for ANSI C header files... " >&6; } 3909if ${ac_cv_header_stdc+:} false; then : 3910 $as_echo_n "(cached) " >&6 3911else 3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3913/* end confdefs.h. */ 3914#include <stdlib.h> 3915#include <stdarg.h> 3916#include <string.h> 3917#include <float.h> 3918 3919int 3920main () 3921{ 3922 3923 ; 3924 return 0; 3925} 3926_ACEOF 3927if ac_fn_c_try_compile "$LINENO"; then : 3928 ac_cv_header_stdc=yes 3929else 3930 ac_cv_header_stdc=no 3931fi 3932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3933 3934if test $ac_cv_header_stdc = yes; then 3935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3937/* end confdefs.h. */ 3938#include <string.h> 3939 3940_ACEOF 3941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3942 $EGREP "memchr" >/dev/null 2>&1; then : 3943 3944else 3945 ac_cv_header_stdc=no 3946fi 3947rm -f conftest* 3948 3949fi 3950 3951if test $ac_cv_header_stdc = yes; then 3952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3954/* end confdefs.h. */ 3955#include <stdlib.h> 3956 3957_ACEOF 3958if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3959 $EGREP "free" >/dev/null 2>&1; then : 3960 3961else 3962 ac_cv_header_stdc=no 3963fi 3964rm -f conftest* 3965 3966fi 3967 3968if test $ac_cv_header_stdc = yes; then 3969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3970 if test "$cross_compiling" = yes; then : 3971 : 3972else 3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974/* end confdefs.h. */ 3975#include <ctype.h> 3976#include <stdlib.h> 3977#if ((' ' & 0x0FF) == 0x020) 3978# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3979# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3980#else 3981# define ISLOWER(c) \ 3982 (('a' <= (c) && (c) <= 'i') \ 3983 || ('j' <= (c) && (c) <= 'r') \ 3984 || ('s' <= (c) && (c) <= 'z')) 3985# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3986#endif 3987 3988#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3989int 3990main () 3991{ 3992 int i; 3993 for (i = 0; i < 256; i++) 3994 if (XOR (islower (i), ISLOWER (i)) 3995 || toupper (i) != TOUPPER (i)) 3996 return 2; 3997 return 0; 3998} 3999_ACEOF 4000if ac_fn_c_try_run "$LINENO"; then : 4001 4002else 4003 ac_cv_header_stdc=no 4004fi 4005rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4006 conftest.$ac_objext conftest.beam conftest.$ac_ext 4007fi 4008 4009fi 4010fi 4011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4012$as_echo "$ac_cv_header_stdc" >&6; } 4013if test $ac_cv_header_stdc = yes; then 4014 4015$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4016 4017fi 4018 4019# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4020for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4021 inttypes.h stdint.h unistd.h 4022do : 4023 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4024ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4025" 4026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4027 cat >>confdefs.h <<_ACEOF 4028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4029_ACEOF 4030 4031fi 4032 4033done 4034 4035 4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 4037$as_echo_n "checking for openpty in -lutil... " >&6; } 4038if ${ac_cv_lib_util_openpty+:} false; then : 4039 $as_echo_n "(cached) " >&6 4040else 4041 ac_check_lib_save_LIBS=$LIBS 4042LIBS="-lutil $LIBS" 4043cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045 4046/* Override any GCC internal prototype to avoid an error. 4047 Use char because int might match the return type of a GCC 4048 builtin and then its argument prototype would still apply. */ 4049#ifdef __cplusplus 4050extern "C" 4051#endif 4052char openpty (); 4053int 4054main () 4055{ 4056return openpty (); 4057 ; 4058 return 0; 4059} 4060_ACEOF 4061if ac_fn_c_try_link "$LINENO"; then : 4062 ac_cv_lib_util_openpty=yes 4063else 4064 ac_cv_lib_util_openpty=no 4065fi 4066rm -f core conftest.err conftest.$ac_objext \ 4067 conftest$ac_exeext conftest.$ac_ext 4068LIBS=$ac_check_lib_save_LIBS 4069fi 4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 4071$as_echo "$ac_cv_lib_util_openpty" >&6; } 4072if test "x$ac_cv_lib_util_openpty" = xyes; then : 4073 cat >>confdefs.h <<_ACEOF 4074#define HAVE_LIBUTIL 1 4075_ACEOF 4076 4077 LIBS="-lutil $LIBS" 4078 4079else 4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 4081$as_echo_n "checking for /dev/ptmx... " >&6; } 4082if ${ac_cv_file__dev_ptmx+:} false; then : 4083 $as_echo_n "(cached) " >&6 4084else 4085 test "$cross_compiling" = yes && 4086 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 4087if test -r "/dev/ptmx"; then 4088 ac_cv_file__dev_ptmx=yes 4089else 4090 ac_cv_file__dev_ptmx=no 4091fi 4092fi 4093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 4094$as_echo "$ac_cv_file__dev_ptmx" >&6; } 4095if test "x$ac_cv_file__dev_ptmx" = xyes; then : 4096 for ac_header in stropts.h 4097do : 4098 ac_fn_c_check_header_mongrel "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 4099if test "x$ac_cv_header_stropts_h" = xyes; then : 4100 cat >>confdefs.h <<_ACEOF 4101#define HAVE_STROPTS_H 1 4102_ACEOF 4103 4104fi 4105 4106done 4107 4108fi 4109 4110fi 4111 4112 4113# Checks for header files. 4114for ac_header in iconv.h 4115do : 4116 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" 4117if test "x$ac_cv_header_iconv_h" = xyes; then : 4118 cat >>confdefs.h <<_ACEOF 4119#define HAVE_ICONV_H 1 4120_ACEOF 4121 4122else 4123 as_fn_error $? "iconv.h is not available" "$LINENO" 5 4124fi 4125 4126done 4127 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4129$as_echo_n "checking for ANSI C header files... " >&6; } 4130if ${ac_cv_header_stdc+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4134/* end confdefs.h. */ 4135#include <stdlib.h> 4136#include <stdarg.h> 4137#include <string.h> 4138#include <float.h> 4139 4140int 4141main () 4142{ 4143 4144 ; 4145 return 0; 4146} 4147_ACEOF 4148if ac_fn_c_try_compile "$LINENO"; then : 4149 ac_cv_header_stdc=yes 4150else 4151 ac_cv_header_stdc=no 4152fi 4153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4154 4155if test $ac_cv_header_stdc = yes; then 4156 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4158/* end confdefs.h. */ 4159#include <string.h> 4160 4161_ACEOF 4162if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4163 $EGREP "memchr" >/dev/null 2>&1; then : 4164 4165else 4166 ac_cv_header_stdc=no 4167fi 4168rm -f conftest* 4169 4170fi 4171 4172if test $ac_cv_header_stdc = yes; then 4173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4175/* end confdefs.h. */ 4176#include <stdlib.h> 4177 4178_ACEOF 4179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4180 $EGREP "free" >/dev/null 2>&1; then : 4181 4182else 4183 ac_cv_header_stdc=no 4184fi 4185rm -f conftest* 4186 4187fi 4188 4189if test $ac_cv_header_stdc = yes; then 4190 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4191 if test "$cross_compiling" = yes; then : 4192 : 4193else 4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195/* end confdefs.h. */ 4196#include <ctype.h> 4197#include <stdlib.h> 4198#if ((' ' & 0x0FF) == 0x020) 4199# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4200# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4201#else 4202# define ISLOWER(c) \ 4203 (('a' <= (c) && (c) <= 'i') \ 4204 || ('j' <= (c) && (c) <= 'r') \ 4205 || ('s' <= (c) && (c) <= 'z')) 4206# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4207#endif 4208 4209#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4210int 4211main () 4212{ 4213 int i; 4214 for (i = 0; i < 256; i++) 4215 if (XOR (islower (i), ISLOWER (i)) 4216 || toupper (i) != TOUPPER (i)) 4217 return 2; 4218 return 0; 4219} 4220_ACEOF 4221if ac_fn_c_try_run "$LINENO"; then : 4222 4223else 4224 ac_cv_header_stdc=no 4225fi 4226rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4227 conftest.$ac_objext conftest.beam conftest.$ac_ext 4228fi 4229 4230fi 4231fi 4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4233$as_echo "$ac_cv_header_stdc" >&6; } 4234if test $ac_cv_header_stdc = yes; then 4235 4236$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4237 4238fi 4239 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 4241$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 4242if ${ac_cv_header_sys_wait_h+:} false; then : 4243 $as_echo_n "(cached) " >&6 4244else 4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4246/* end confdefs.h. */ 4247#include <sys/types.h> 4248#include <sys/wait.h> 4249#ifndef WEXITSTATUS 4250# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 4251#endif 4252#ifndef WIFEXITED 4253# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 4254#endif 4255 4256int 4257main () 4258{ 4259 int s; 4260 wait (&s); 4261 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 4262 ; 4263 return 0; 4264} 4265_ACEOF 4266if ac_fn_c_try_compile "$LINENO"; then : 4267 ac_cv_header_sys_wait_h=yes 4268else 4269 ac_cv_header_sys_wait_h=no 4270fi 4271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4272fi 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 4274$as_echo "$ac_cv_header_sys_wait_h" >&6; } 4275if test $ac_cv_header_sys_wait_h = yes; then 4276 4277$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 4278 4279fi 4280 4281for ac_header in stdlib.h string.h sys/ioctl.h sys/time.h termios.h unistd.h utmp.h 4282do : 4283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4284ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4285if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4286 cat >>confdefs.h <<_ACEOF 4287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4288_ACEOF 4289 4290fi 4291 4292done 4293 4294for ac_header in libutil.h pty.h 4295do : 4296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4297ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4298if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4299 cat >>confdefs.h <<_ACEOF 4300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4301_ACEOF 4302 4303fi 4304 4305done 4306 4307 4308# Checks for typedefs, structures, and compiler characteristics. 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4310$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4311if ${ac_cv_c_const+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4315/* end confdefs.h. */ 4316 4317int 4318main () 4319{ 4320/* FIXME: Include the comments suggested by Paul. */ 4321#ifndef __cplusplus 4322 /* Ultrix mips cc rejects this. */ 4323 typedef int charset[2]; 4324 const charset cs; 4325 /* SunOS 4.1.1 cc rejects this. */ 4326 char const *const *pcpcc; 4327 char **ppc; 4328 /* NEC SVR4.0.2 mips cc rejects this. */ 4329 struct point {int x, y;}; 4330 static struct point const zero = {0,0}; 4331 /* AIX XL C 1.02.0.0 rejects this. 4332 It does not let you subtract one const X* pointer from another in 4333 an arm of an if-expression whose if-part is not a constant 4334 expression */ 4335 const char *g = "string"; 4336 pcpcc = &g + (g ? g-g : 0); 4337 /* HPUX 7.0 cc rejects these. */ 4338 ++pcpcc; 4339 ppc = (char**) pcpcc; 4340 pcpcc = (char const *const *) ppc; 4341 { /* SCO 3.2v4 cc rejects this. */ 4342 char *t; 4343 char const *s = 0 ? (char *) 0 : (char const *) 0; 4344 4345 *t++ = 0; 4346 if (s) return 0; 4347 } 4348 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4349 int x[] = {25, 17}; 4350 const int *foo = &x[0]; 4351 ++foo; 4352 } 4353 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4354 typedef const int *iptr; 4355 iptr p = 0; 4356 ++p; 4357 } 4358 { /* AIX XL C 1.02.0.0 rejects this saying 4359 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4360 struct s { int j; const int *ap[3]; }; 4361 struct s *b; b->j = 5; 4362 } 4363 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4364 const int foo = 10; 4365 if (!foo) return 0; 4366 } 4367 return !cs[0] && !zero.x; 4368#endif 4369 4370 ; 4371 return 0; 4372} 4373_ACEOF 4374if ac_fn_c_try_compile "$LINENO"; then : 4375 ac_cv_c_const=yes 4376else 4377 ac_cv_c_const=no 4378fi 4379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4380fi 4381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4382$as_echo "$ac_cv_c_const" >&6; } 4383if test $ac_cv_c_const = no; then 4384 4385$as_echo "#define const /**/" >>confdefs.h 4386 4387fi 4388 4389ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 4390if test "x$ac_cv_type_pid_t" = xyes; then : 4391 4392else 4393 4394cat >>confdefs.h <<_ACEOF 4395#define pid_t int 4396_ACEOF 4397 4398fi 4399 4400ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4401if test "x$ac_cv_type_size_t" = xyes; then : 4402 4403else 4404 4405cat >>confdefs.h <<_ACEOF 4406#define size_t unsigned int 4407_ACEOF 4408 4409fi 4410 4411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 4412$as_echo_n "checking for working volatile... " >&6; } 4413if ${ac_cv_c_volatile+:} false; then : 4414 $as_echo_n "(cached) " >&6 4415else 4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4417/* end confdefs.h. */ 4418 4419int 4420main () 4421{ 4422 4423volatile int x; 4424int * volatile y = (int *) 0; 4425return !x && !y; 4426 ; 4427 return 0; 4428} 4429_ACEOF 4430if ac_fn_c_try_compile "$LINENO"; then : 4431 ac_cv_c_volatile=yes 4432else 4433 ac_cv_c_volatile=no 4434fi 4435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4436fi 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 4438$as_echo "$ac_cv_c_volatile" >&6; } 4439if test $ac_cv_c_volatile = no; then 4440 4441$as_echo "#define volatile /**/" >>confdefs.h 4442 4443fi 4444 4445 4446# Checks for library functions. 4447for ac_header in vfork.h 4448do : 4449 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 4450if test "x$ac_cv_header_vfork_h" = xyes; then : 4451 cat >>confdefs.h <<_ACEOF 4452#define HAVE_VFORK_H 1 4453_ACEOF 4454 4455fi 4456 4457done 4458 4459for ac_func in fork vfork 4460do : 4461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4462ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4463if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4464 cat >>confdefs.h <<_ACEOF 4465#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4466_ACEOF 4467 4468fi 4469done 4470 4471if test "x$ac_cv_func_fork" = xyes; then 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 4473$as_echo_n "checking for working fork... " >&6; } 4474if ${ac_cv_func_fork_works+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476else 4477 if test "$cross_compiling" = yes; then : 4478 ac_cv_func_fork_works=cross 4479else 4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481/* end confdefs.h. */ 4482$ac_includes_default 4483int 4484main () 4485{ 4486 4487 /* By Ruediger Kuhlmann. */ 4488 return fork () < 0; 4489 4490 ; 4491 return 0; 4492} 4493_ACEOF 4494if ac_fn_c_try_run "$LINENO"; then : 4495 ac_cv_func_fork_works=yes 4496else 4497 ac_cv_func_fork_works=no 4498fi 4499rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4500 conftest.$ac_objext conftest.beam conftest.$ac_ext 4501fi 4502 4503fi 4504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 4505$as_echo "$ac_cv_func_fork_works" >&6; } 4506 4507else 4508 ac_cv_func_fork_works=$ac_cv_func_fork 4509fi 4510if test "x$ac_cv_func_fork_works" = xcross; then 4511 case $host in 4512 *-*-amigaos* | *-*-msdosdjgpp*) 4513 # Override, as these systems have only a dummy fork() stub 4514 ac_cv_func_fork_works=no 4515 ;; 4516 *) 4517 ac_cv_func_fork_works=yes 4518 ;; 4519 esac 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 4521$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 4522fi 4523ac_cv_func_vfork_works=$ac_cv_func_vfork 4524if test "x$ac_cv_func_vfork" = xyes; then 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 4526$as_echo_n "checking for working vfork... " >&6; } 4527if ${ac_cv_func_vfork_works+:} false; then : 4528 $as_echo_n "(cached) " >&6 4529else 4530 if test "$cross_compiling" = yes; then : 4531 ac_cv_func_vfork_works=cross 4532else 4533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4534/* end confdefs.h. */ 4535/* Thanks to Paul Eggert for this test. */ 4536$ac_includes_default 4537#include <sys/wait.h> 4538#ifdef HAVE_VFORK_H 4539# include <vfork.h> 4540#endif 4541/* On some sparc systems, changes by the child to local and incoming 4542 argument registers are propagated back to the parent. The compiler 4543 is told about this with #include <vfork.h>, but some compilers 4544 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 4545 static variable whose address is put into a register that is 4546 clobbered by the vfork. */ 4547static void 4548#ifdef __cplusplus 4549sparc_address_test (int arg) 4550# else 4551sparc_address_test (arg) int arg; 4552#endif 4553{ 4554 static pid_t child; 4555 if (!child) { 4556 child = vfork (); 4557 if (child < 0) { 4558 perror ("vfork"); 4559 _exit(2); 4560 } 4561 if (!child) { 4562 arg = getpid(); 4563 write(-1, "", 0); 4564 _exit (arg); 4565 } 4566 } 4567} 4568 4569int 4570main () 4571{ 4572 pid_t parent = getpid (); 4573 pid_t child; 4574 4575 sparc_address_test (0); 4576 4577 child = vfork (); 4578 4579 if (child == 0) { 4580 /* Here is another test for sparc vfork register problems. This 4581 test uses lots of local variables, at least as many local 4582 variables as main has allocated so far including compiler 4583 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4584 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 4585 reuse the register of parent for one of the local variables, 4586 since it will think that parent can't possibly be used any more 4587 in this routine. Assigning to the local variable will thus 4588 munge parent in the parent process. */ 4589 pid_t 4590 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 4591 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 4592 /* Convince the compiler that p..p7 are live; otherwise, it might 4593 use the same hardware register for all 8 local variables. */ 4594 if (p != p1 || p != p2 || p != p3 || p != p4 4595 || p != p5 || p != p6 || p != p7) 4596 _exit(1); 4597 4598 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 4599 from child file descriptors. If the child closes a descriptor 4600 before it execs or exits, this munges the parent's descriptor 4601 as well. Test for this by closing stdout in the child. */ 4602 _exit(close(fileno(stdout)) != 0); 4603 } else { 4604 int status; 4605 struct stat st; 4606 4607 while (wait(&status) != child) 4608 ; 4609 return ( 4610 /* Was there some problem with vforking? */ 4611 child < 0 4612 4613 /* Did the child fail? (This shouldn't happen.) */ 4614 || status 4615 4616 /* Did the vfork/compiler bug occur? */ 4617 || parent != getpid() 4618 4619 /* Did the file descriptor bug occur? */ 4620 || fstat(fileno(stdout), &st) != 0 4621 ); 4622 } 4623} 4624_ACEOF 4625if ac_fn_c_try_run "$LINENO"; then : 4626 ac_cv_func_vfork_works=yes 4627else 4628 ac_cv_func_vfork_works=no 4629fi 4630rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4631 conftest.$ac_objext conftest.beam conftest.$ac_ext 4632fi 4633 4634fi 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 4636$as_echo "$ac_cv_func_vfork_works" >&6; } 4637 4638fi; 4639if test "x$ac_cv_func_fork_works" = xcross; then 4640 ac_cv_func_vfork_works=$ac_cv_func_vfork 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 4642$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 4643fi 4644 4645if test "x$ac_cv_func_vfork_works" = xyes; then 4646 4647$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 4648 4649else 4650 4651$as_echo "#define vfork fork" >>confdefs.h 4652 4653fi 4654if test "x$ac_cv_func_fork_works" = xyes; then 4655 4656$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 4657 4658fi 4659 4660if test $ac_cv_c_compiler_gnu = yes; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 4662$as_echo_n "checking whether $CC needs -traditional... " >&6; } 4663if ${ac_cv_prog_gcc_traditional+:} false; then : 4664 $as_echo_n "(cached) " >&6 4665else 4666 ac_pattern="Autoconf.*'x'" 4667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4668/* end confdefs.h. */ 4669#include <sgtty.h> 4670Autoconf TIOCGETP 4671_ACEOF 4672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4673 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4674 ac_cv_prog_gcc_traditional=yes 4675else 4676 ac_cv_prog_gcc_traditional=no 4677fi 4678rm -f conftest* 4679 4680 4681 if test $ac_cv_prog_gcc_traditional = no; then 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683/* end confdefs.h. */ 4684#include <termio.h> 4685Autoconf TCGETA 4686_ACEOF 4687if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4688 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 4689 ac_cv_prog_gcc_traditional=yes 4690fi 4691rm -f conftest* 4692 4693 fi 4694fi 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 4696$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 4697 if test $ac_cv_prog_gcc_traditional = yes; then 4698 CC="$CC -traditional" 4699 fi 4700fi 4701 4702for ac_header in stdlib.h 4703do : 4704 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 4705if test "x$ac_cv_header_stdlib_h" = xyes; then : 4706 cat >>confdefs.h <<_ACEOF 4707#define HAVE_STDLIB_H 1 4708_ACEOF 4709 4710fi 4711 4712done 4713 4714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 4715$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 4716if ${ac_cv_func_malloc_0_nonnull+:} false; then : 4717 $as_echo_n "(cached) " >&6 4718else 4719 if test "$cross_compiling" = yes; then : 4720 ac_cv_func_malloc_0_nonnull=no 4721else 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4723/* end confdefs.h. */ 4724#if defined STDC_HEADERS || defined HAVE_STDLIB_H 4725# include <stdlib.h> 4726#else 4727char *malloc (); 4728#endif 4729 4730int 4731main () 4732{ 4733return ! malloc (0); 4734 ; 4735 return 0; 4736} 4737_ACEOF 4738if ac_fn_c_try_run "$LINENO"; then : 4739 ac_cv_func_malloc_0_nonnull=yes 4740else 4741 ac_cv_func_malloc_0_nonnull=no 4742fi 4743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4744 conftest.$ac_objext conftest.beam conftest.$ac_ext 4745fi 4746 4747fi 4748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 4749$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 4750if test $ac_cv_func_malloc_0_nonnull = yes; then : 4751 4752$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 4753 4754else 4755 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 4756 4757 case " $LIBOBJS " in 4758 *" malloc.$ac_objext "* ) ;; 4759 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 4760 ;; 4761esac 4762 4763 4764$as_echo "#define malloc rpl_malloc" >>confdefs.h 4765 4766fi 4767 4768 4769for ac_header in sys/select.h sys/socket.h 4770do : 4771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4772ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4774 cat >>confdefs.h <<_ACEOF 4775#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4776_ACEOF 4777 4778fi 4779 4780done 4781 4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5 4783$as_echo_n "checking types of arguments for select... " >&6; } 4784if ${ac_cv_func_select_args+:} false; then : 4785 $as_echo_n "(cached) " >&6 4786else 4787 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do 4788 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do 4789 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do 4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4791/* end confdefs.h. */ 4792$ac_includes_default 4793#ifdef HAVE_SYS_SELECT_H 4794# include <sys/select.h> 4795#endif 4796#ifdef HAVE_SYS_SOCKET_H 4797# include <sys/socket.h> 4798#endif 4799 4800int 4801main () 4802{ 4803extern int select ($ac_arg1, 4804 $ac_arg234, $ac_arg234, $ac_arg234, 4805 $ac_arg5); 4806 ; 4807 return 0; 4808} 4809_ACEOF 4810if ac_fn_c_try_compile "$LINENO"; then : 4811 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 4812fi 4813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4814 done 4815 done 4816done 4817# Provide a safe default value. 4818: "${ac_cv_func_select_args=int,int *,struct timeval *}" 4819 4820fi 4821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5 4822$as_echo "$ac_cv_func_select_args" >&6; } 4823ac_save_IFS=$IFS; IFS=',' 4824set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` 4825IFS=$ac_save_IFS 4826shift 4827 4828cat >>confdefs.h <<_ACEOF 4829#define SELECT_TYPE_ARG1 $1 4830_ACEOF 4831 4832 4833cat >>confdefs.h <<_ACEOF 4834#define SELECT_TYPE_ARG234 ($2) 4835_ACEOF 4836 4837 4838cat >>confdefs.h <<_ACEOF 4839#define SELECT_TYPE_ARG5 ($3) 4840_ACEOF 4841 4842rm -f conftest* 4843 4844if ${ac_cv_func_setvbuf_reversed+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 ac_cv_func_setvbuf_reversed=no 4848fi 4849 4850 4851for ac_func in vprintf 4852do : 4853 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 4854if test "x$ac_cv_func_vprintf" = xyes; then : 4855 cat >>confdefs.h <<_ACEOF 4856#define HAVE_VPRINTF 1 4857_ACEOF 4858 4859ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 4860if test "x$ac_cv_func__doprnt" = xyes; then : 4861 4862$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 4863 4864fi 4865 4866fi 4867done 4868 4869 4870for ac_func in memcpy memmove memset select strerror 4871do : 4872 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4873ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4874if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4875 cat >>confdefs.h <<_ACEOF 4876#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4877_ACEOF 4878 4879fi 4880done 4881 4882for ac_func in max cfmakeraw 4883do : 4884 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 4885ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 4886if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 4887 cat >>confdefs.h <<_ACEOF 4888#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 4889_ACEOF 4890 4891fi 4892done 4893 4894for ac_func in login_tty 4895do : 4896 ac_fn_c_check_func "$LINENO" "login_tty" "ac_cv_func_login_tty" 4897if test "x$ac_cv_func_login_tty" = xyes; then : 4898 cat >>confdefs.h <<_ACEOF 4899#define HAVE_LOGIN_TTY 1 4900_ACEOF 4901 4902fi 4903done 4904 4905 4906# DEFAULT_TERM_CODE 4907 4908# Check whether --with-default-term-code was given. 4909if test "${with_default_term_code+set}" = set; then : 4910 withval=$with_default_term_code; DEFAULT_TERM_CODE=$withval 4911else 4912 DEFAULT_TERM_CODE="UTF-8" 4913fi 4914 4915 4916cat >>confdefs.h <<_ACEOF 4917#define DEFAULT_TERM_CODE "$DEFAULT_TERM_CODE" 4918_ACEOF 4919 4920 4921# DEFAULT_PROC_CODE 4922 4923# Check whether --with-default-proc-code was given. 4924if test "${with_default_proc_code+set}" = set; then : 4925 withval=$with_default_proc_code; DEFAULT_PROC_CODE=$withval 4926else 4927 DEFAULT_PROC_CODE="CP932" 4928fi 4929 4930 4931cat >>confdefs.h <<_ACEOF 4932#define DEFAULT_PROC_CODE "$DEFAULT_PROC_CODE" 4933_ACEOF 4934 4935 4936ac_config_files="$ac_config_files Makefile" 4937 4938cat >confcache <<\_ACEOF 4939# This file is a shell script that caches the results of configure 4940# tests run on this system so they can be shared between configure 4941# scripts and configure runs, see configure's option --config-cache. 4942# It is not useful on other systems. If it contains results you don't 4943# want to keep, you may remove or edit it. 4944# 4945# config.status only pays attention to the cache file if you give it 4946# the --recheck option to rerun configure. 4947# 4948# `ac_cv_env_foo' variables (set or unset) will be overridden when 4949# loading this file, other *unset* `ac_cv_foo' will be assigned the 4950# following values. 4951 4952_ACEOF 4953 4954# The following way of writing the cache mishandles newlines in values, 4955# but we know of no workaround that is simple, portable, and efficient. 4956# So, we kill variables containing newlines. 4957# Ultrix sh set writes to stderr and can't be redirected directly, 4958# and sets the high bit in the cache file unless we assign to the vars. 4959( 4960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4961 eval ac_val=\$$ac_var 4962 case $ac_val in #( 4963 *${as_nl}*) 4964 case $ac_var in #( 4965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4966$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4967 esac 4968 case $ac_var in #( 4969 _ | IFS | as_nl) ;; #( 4970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4971 *) { eval $ac_var=; unset $ac_var;} ;; 4972 esac ;; 4973 esac 4974 done 4975 4976 (set) 2>&1 | 4977 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4978 *${as_nl}ac_space=\ *) 4979 # `set' does not quote correctly, so add quotes: double-quote 4980 # substitution turns \\\\ into \\, and sed turns \\ into \. 4981 sed -n \ 4982 "s/'/'\\\\''/g; 4983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4984 ;; #( 4985 *) 4986 # `set' quotes correctly as required by POSIX, so do not add quotes. 4987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4988 ;; 4989 esac | 4990 sort 4991) | 4992 sed ' 4993 /^ac_cv_env_/b end 4994 t clear 4995 :clear 4996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4997 t end 4998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4999 :end' >>confcache 5000if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5001 if test -w "$cache_file"; then 5002 if test "x$cache_file" != "x/dev/null"; then 5003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5004$as_echo "$as_me: updating cache $cache_file" >&6;} 5005 if test ! -f "$cache_file" || test -h "$cache_file"; then 5006 cat confcache >"$cache_file" 5007 else 5008 case $cache_file in #( 5009 */* | ?:*) 5010 mv -f confcache "$cache_file"$$ && 5011 mv -f "$cache_file"$$ "$cache_file" ;; #( 5012 *) 5013 mv -f confcache "$cache_file" ;; 5014 esac 5015 fi 5016 fi 5017 else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5019$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5020 fi 5021fi 5022rm -f confcache 5023 5024test "x$prefix" = xNONE && prefix=$ac_default_prefix 5025# Let make expand exec_prefix. 5026test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5027 5028DEFS=-DHAVE_CONFIG_H 5029 5030ac_libobjs= 5031ac_ltlibobjs= 5032U= 5033for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5034 # 1. Remove the extension, and $U if already installed. 5035 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5036 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5037 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5038 # will be set to the directory where LIBOBJS objects are built. 5039 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5040 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5041done 5042LIBOBJS=$ac_libobjs 5043 5044LTLIBOBJS=$ac_ltlibobjs 5045 5046 5047if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 5048 as_fn_error $? "conditional \"AMDEP\" was never defined. 5049Usually this means the macro was only invoked conditionally." "$LINENO" 5 5050fi 5051if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 5052 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 5053Usually this means the macro was only invoked conditionally." "$LINENO" 5 5054fi 5055 5056: "${CONFIG_STATUS=./config.status}" 5057ac_write_fail=0 5058ac_clean_files_save=$ac_clean_files 5059ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5060{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5061$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5062as_write_fail=0 5063cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5064#! $SHELL 5065# Generated by $as_me. 5066# Run this file to recreate the current configuration. 5067# Compiler output produced by configure, useful for debugging 5068# configure, is in config.log if it exists. 5069 5070debug=false 5071ac_cs_recheck=false 5072ac_cs_silent=false 5073 5074SHELL=\${CONFIG_SHELL-$SHELL} 5075export SHELL 5076_ASEOF 5077cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5078## -------------------- ## 5079## M4sh Initialization. ## 5080## -------------------- ## 5081 5082# Be more Bourne compatible 5083DUALCASE=1; export DUALCASE # for MKS sh 5084if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5085 emulate sh 5086 NULLCMD=: 5087 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5088 # is contrary to our usage. Disable this feature. 5089 alias -g '${1+"$@"}'='"$@"' 5090 setopt NO_GLOB_SUBST 5091else 5092 case `(set -o) 2>/dev/null` in #( 5093 *posix*) : 5094 set -o posix ;; #( 5095 *) : 5096 ;; 5097esac 5098fi 5099 5100 5101as_nl=' 5102' 5103export as_nl 5104# Printing a long string crashes Solaris 7 /usr/bin/printf. 5105as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5107as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5108# Prefer a ksh shell builtin over an external printf program on Solaris, 5109# but without wasting forks for bash or zsh. 5110if test -z "$BASH_VERSION$ZSH_VERSION" \ 5111 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5112 as_echo='print -r --' 5113 as_echo_n='print -rn --' 5114elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5115 as_echo='printf %s\n' 5116 as_echo_n='printf %s' 5117else 5118 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5119 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5120 as_echo_n='/usr/ucb/echo -n' 5121 else 5122 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5123 as_echo_n_body='eval 5124 arg=$1; 5125 case $arg in #( 5126 *"$as_nl"*) 5127 expr "X$arg" : "X\\(.*\\)$as_nl"; 5128 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5129 esac; 5130 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5131 ' 5132 export as_echo_n_body 5133 as_echo_n='sh -c $as_echo_n_body as_echo' 5134 fi 5135 export as_echo_body 5136 as_echo='sh -c $as_echo_body as_echo' 5137fi 5138 5139# The user is always right. 5140if test "${PATH_SEPARATOR+set}" != set; then 5141 PATH_SEPARATOR=: 5142 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5143 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5144 PATH_SEPARATOR=';' 5145 } 5146fi 5147 5148 5149# IFS 5150# We need space, tab and new line, in precisely that order. Quoting is 5151# there to prevent editors from complaining about space-tab. 5152# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5153# splitting by setting IFS to empty value.) 5154IFS=" "" $as_nl" 5155 5156# Find who we are. Look in the path if we contain no directory separator. 5157as_myself= 5158case $0 in #(( 5159 *[\\/]* ) as_myself=$0 ;; 5160 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5161for as_dir in $PATH 5162do 5163 IFS=$as_save_IFS 5164 test -z "$as_dir" && as_dir=. 5165 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5166 done 5167IFS=$as_save_IFS 5168 5169 ;; 5170esac 5171# We did not find ourselves, most probably we were run as `sh COMMAND' 5172# in which case we are not to be found in the path. 5173if test "x$as_myself" = x; then 5174 as_myself=$0 5175fi 5176if test ! -f "$as_myself"; then 5177 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5178 exit 1 5179fi 5180 5181# Unset variables that we do not need and which cause bugs (e.g. in 5182# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5183# suppresses any "Segmentation fault" message there. '((' could 5184# trigger a bug in pdksh 5.2.14. 5185for as_var in BASH_ENV ENV MAIL MAILPATH 5186do eval test x\${$as_var+set} = xset \ 5187 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5188done 5189PS1='$ ' 5190PS2='> ' 5191PS4='+ ' 5192 5193# NLS nuisances. 5194LC_ALL=C 5195export LC_ALL 5196LANGUAGE=C 5197export LANGUAGE 5198 5199# CDPATH. 5200(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5201 5202 5203# as_fn_error STATUS ERROR [LINENO LOG_FD] 5204# ---------------------------------------- 5205# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5206# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5207# script with STATUS, using 1 if that was 0. 5208as_fn_error () 5209{ 5210 as_status=$1; test $as_status -eq 0 && as_status=1 5211 if test "$4"; then 5212 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5213 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 5214 fi 5215 $as_echo "$as_me: error: $2" >&2 5216 as_fn_exit $as_status 5217} # as_fn_error 5218 5219 5220# as_fn_set_status STATUS 5221# ----------------------- 5222# Set $? to STATUS, without forking. 5223as_fn_set_status () 5224{ 5225 return $1 5226} # as_fn_set_status 5227 5228# as_fn_exit STATUS 5229# ----------------- 5230# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5231as_fn_exit () 5232{ 5233 set +e 5234 as_fn_set_status $1 5235 exit $1 5236} # as_fn_exit 5237 5238# as_fn_unset VAR 5239# --------------- 5240# Portably unset VAR. 5241as_fn_unset () 5242{ 5243 { eval $1=; unset $1;} 5244} 5245as_unset=as_fn_unset 5246# as_fn_append VAR VALUE 5247# ---------------------- 5248# Append the text in VALUE to the end of the definition contained in VAR. Take 5249# advantage of any shell optimizations that allow amortized linear growth over 5250# repeated appends, instead of the typical quadratic growth present in naive 5251# implementations. 5252if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5253 eval 'as_fn_append () 5254 { 5255 eval $1+=\$2 5256 }' 5257else 5258 as_fn_append () 5259 { 5260 eval $1=\$$1\$2 5261 } 5262fi # as_fn_append 5263 5264# as_fn_arith ARG... 5265# ------------------ 5266# Perform arithmetic evaluation on the ARGs, and store the result in the 5267# global $as_val. Take advantage of shells that can avoid forks. The arguments 5268# must be portable across $(()) and expr. 5269if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5270 eval 'as_fn_arith () 5271 { 5272 as_val=$(( $* )) 5273 }' 5274else 5275 as_fn_arith () 5276 { 5277 as_val=`expr "$@" || test $? -eq 1` 5278 } 5279fi # as_fn_arith 5280 5281 5282if expr a : '\(a\)' >/dev/null 2>&1 && 5283 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5284 as_expr=expr 5285else 5286 as_expr=false 5287fi 5288 5289if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5290 as_basename=basename 5291else 5292 as_basename=false 5293fi 5294 5295if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5296 as_dirname=dirname 5297else 5298 as_dirname=false 5299fi 5300 5301as_me=`$as_basename -- "$0" || 5302$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5303 X"$0" : 'X\(//\)$' \| \ 5304 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5305$as_echo X/"$0" | 5306 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5307 s//\1/ 5308 q 5309 } 5310 /^X\/\(\/\/\)$/{ 5311 s//\1/ 5312 q 5313 } 5314 /^X\/\(\/\).*/{ 5315 s//\1/ 5316 q 5317 } 5318 s/.*/./; q'` 5319 5320# Avoid depending upon Character Ranges. 5321as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5322as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5323as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5324as_cr_digits='0123456789' 5325as_cr_alnum=$as_cr_Letters$as_cr_digits 5326 5327ECHO_C= ECHO_N= ECHO_T= 5328case `echo -n x` in #((((( 5329-n*) 5330 case `echo 'xy\c'` in 5331 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5332 xy) ECHO_C='\c';; 5333 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5334 ECHO_T=' ';; 5335 esac;; 5336*) 5337 ECHO_N='-n';; 5338esac 5339 5340rm -f conf$$ conf$$.exe conf$$.file 5341if test -d conf$$.dir; then 5342 rm -f conf$$.dir/conf$$.file 5343else 5344 rm -f conf$$.dir 5345 mkdir conf$$.dir 2>/dev/null 5346fi 5347if (echo >conf$$.file) 2>/dev/null; then 5348 if ln -s conf$$.file conf$$ 2>/dev/null; then 5349 as_ln_s='ln -s' 5350 # ... but there are two gotchas: 5351 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5352 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5353 # In both cases, we have to default to `cp -p'. 5354 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5355 as_ln_s='cp -p' 5356 elif ln conf$$.file conf$$ 2>/dev/null; then 5357 as_ln_s=ln 5358 else 5359 as_ln_s='cp -p' 5360 fi 5361else 5362 as_ln_s='cp -p' 5363fi 5364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5365rmdir conf$$.dir 2>/dev/null 5366 5367 5368# as_fn_mkdir_p 5369# ------------- 5370# Create "$as_dir" as a directory, including parents if necessary. 5371as_fn_mkdir_p () 5372{ 5373 5374 case $as_dir in #( 5375 -*) as_dir=./$as_dir;; 5376 esac 5377 test -d "$as_dir" || eval $as_mkdir_p || { 5378 as_dirs= 5379 while :; do 5380 case $as_dir in #( 5381 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5382 *) as_qdir=$as_dir;; 5383 esac 5384 as_dirs="'$as_qdir' $as_dirs" 5385 as_dir=`$as_dirname -- "$as_dir" || 5386$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5387 X"$as_dir" : 'X\(//\)[^/]' \| \ 5388 X"$as_dir" : 'X\(//\)$' \| \ 5389 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5390$as_echo X"$as_dir" | 5391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5392 s//\1/ 5393 q 5394 } 5395 /^X\(\/\/\)[^/].*/{ 5396 s//\1/ 5397 q 5398 } 5399 /^X\(\/\/\)$/{ 5400 s//\1/ 5401 q 5402 } 5403 /^X\(\/\).*/{ 5404 s//\1/ 5405 q 5406 } 5407 s/.*/./; q'` 5408 test -d "$as_dir" && break 5409 done 5410 test -z "$as_dirs" || eval "mkdir $as_dirs" 5411 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 5412 5413 5414} # as_fn_mkdir_p 5415if mkdir -p . 2>/dev/null; then 5416 as_mkdir_p='mkdir -p "$as_dir"' 5417else 5418 test -d ./-p && rmdir ./-p 5419 as_mkdir_p=false 5420fi 5421 5422if test -x / >/dev/null 2>&1; then 5423 as_test_x='test -x' 5424else 5425 if ls -dL / >/dev/null 2>&1; then 5426 as_ls_L_option=L 5427 else 5428 as_ls_L_option= 5429 fi 5430 as_test_x=' 5431 eval sh -c '\'' 5432 if test -d "$1"; then 5433 test -d "$1/."; 5434 else 5435 case $1 in #( 5436 -*)set "./$1";; 5437 esac; 5438 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5439 ???[sx]*):;;*)false;;esac;fi 5440 '\'' sh 5441 ' 5442fi 5443as_executable_p=$as_test_x 5444 5445# Sed expression to map a string onto a valid CPP name. 5446as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5447 5448# Sed expression to map a string onto a valid variable name. 5449as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5450 5451 5452exec 6>&1 5453## ----------------------------------- ## 5454## Main body of $CONFIG_STATUS script. ## 5455## ----------------------------------- ## 5456_ASEOF 5457test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5458 5459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5460# Save the log message, to keep $0 and so on meaningful, and to 5461# report actual input values of CONFIG_FILES etc. instead of their 5462# values after options handling. 5463ac_log=" 5464This file was extended by cocot $as_me 1.1-20120313, which was 5465generated by GNU Autoconf 2.68. Invocation command line was 5466 5467 CONFIG_FILES = $CONFIG_FILES 5468 CONFIG_HEADERS = $CONFIG_HEADERS 5469 CONFIG_LINKS = $CONFIG_LINKS 5470 CONFIG_COMMANDS = $CONFIG_COMMANDS 5471 $ $0 $@ 5472 5473on `(hostname || uname -n) 2>/dev/null | sed 1q` 5474" 5475 5476_ACEOF 5477 5478case $ac_config_files in *" 5479"*) set x $ac_config_files; shift; ac_config_files=$*;; 5480esac 5481 5482case $ac_config_headers in *" 5483"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5484esac 5485 5486 5487cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5488# Files that config.status was made for. 5489config_files="$ac_config_files" 5490config_headers="$ac_config_headers" 5491config_commands="$ac_config_commands" 5492 5493_ACEOF 5494 5495cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5496ac_cs_usage="\ 5497\`$as_me' instantiates files and other configuration actions 5498from templates according to the current configuration. Unless the files 5499and actions are specified as TAGs, all are instantiated by default. 5500 5501Usage: $0 [OPTION]... [TAG]... 5502 5503 -h, --help print this help, then exit 5504 -V, --version print version number and configuration settings, then exit 5505 --config print configuration, then exit 5506 -q, --quiet, --silent 5507 do not print progress messages 5508 -d, --debug don't remove temporary files 5509 --recheck update $as_me by reconfiguring in the same conditions 5510 --file=FILE[:TEMPLATE] 5511 instantiate the configuration file FILE 5512 --header=FILE[:TEMPLATE] 5513 instantiate the configuration header FILE 5514 5515Configuration files: 5516$config_files 5517 5518Configuration headers: 5519$config_headers 5520 5521Configuration commands: 5522$config_commands 5523 5524Report bugs to the package provider." 5525 5526_ACEOF 5527cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5528ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5529ac_cs_version="\\ 5530cocot config.status 1.1-20120313 5531configured by $0, generated by GNU Autoconf 2.68, 5532 with options \\"\$ac_cs_config\\" 5533 5534Copyright (C) 2010 Free Software Foundation, Inc. 5535This config.status script is free software; the Free Software Foundation 5536gives unlimited permission to copy, distribute and modify it." 5537 5538ac_pwd='$ac_pwd' 5539srcdir='$srcdir' 5540INSTALL='$INSTALL' 5541AWK='$AWK' 5542test -n "\$AWK" || AWK=awk 5543_ACEOF 5544 5545cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5546# The default lists apply if the user does not specify any file. 5547ac_need_defaults=: 5548while test $# != 0 5549do 5550 case $1 in 5551 --*=?*) 5552 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5554 ac_shift=: 5555 ;; 5556 --*=) 5557 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5558 ac_optarg= 5559 ac_shift=: 5560 ;; 5561 *) 5562 ac_option=$1 5563 ac_optarg=$2 5564 ac_shift=shift 5565 ;; 5566 esac 5567 5568 case $ac_option in 5569 # Handling of the options. 5570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5571 ac_cs_recheck=: ;; 5572 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5573 $as_echo "$ac_cs_version"; exit ;; 5574 --config | --confi | --conf | --con | --co | --c ) 5575 $as_echo "$ac_cs_config"; exit ;; 5576 --debug | --debu | --deb | --de | --d | -d ) 5577 debug=: ;; 5578 --file | --fil | --fi | --f ) 5579 $ac_shift 5580 case $ac_optarg in 5581 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5582 '') as_fn_error $? "missing file argument" ;; 5583 esac 5584 as_fn_append CONFIG_FILES " '$ac_optarg'" 5585 ac_need_defaults=false;; 5586 --header | --heade | --head | --hea ) 5587 $ac_shift 5588 case $ac_optarg in 5589 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5590 esac 5591 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5592 ac_need_defaults=false;; 5593 --he | --h) 5594 # Conflict between --help and --header 5595 as_fn_error $? "ambiguous option: \`$1' 5596Try \`$0 --help' for more information.";; 5597 --help | --hel | -h ) 5598 $as_echo "$ac_cs_usage"; exit ;; 5599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5600 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5601 ac_cs_silent=: ;; 5602 5603 # This is an error. 5604 -*) as_fn_error $? "unrecognized option: \`$1' 5605Try \`$0 --help' for more information." ;; 5606 5607 *) as_fn_append ac_config_targets " $1" 5608 ac_need_defaults=false ;; 5609 5610 esac 5611 shift 5612done 5613 5614ac_configure_extra_args= 5615 5616if $ac_cs_silent; then 5617 exec 6>/dev/null 5618 ac_configure_extra_args="$ac_configure_extra_args --silent" 5619fi 5620 5621_ACEOF 5622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5623if \$ac_cs_recheck; then 5624 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5625 shift 5626 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5627 CONFIG_SHELL='$SHELL' 5628 export CONFIG_SHELL 5629 exec "\$@" 5630fi 5631 5632_ACEOF 5633cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5634exec 5>>config.log 5635{ 5636 echo 5637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5638## Running $as_me. ## 5639_ASBOX 5640 $as_echo "$ac_log" 5641} >&5 5642 5643_ACEOF 5644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5645# 5646# INIT-COMMANDS 5647# 5648AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 5649 5650_ACEOF 5651 5652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5653 5654# Handling of arguments. 5655for ac_config_target in $ac_config_targets 5656do 5657 case $ac_config_target in 5658 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5659 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 5660 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5661 5662 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;; 5663 esac 5664done 5665 5666 5667# If the user did not use the arguments to specify the items to instantiate, 5668# then the envvar interface is used. Set only those that are not. 5669# We use the long form for the default assignment because of an extremely 5670# bizarre bug on SunOS 4.1.3. 5671if $ac_need_defaults; then 5672 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5673 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5674 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 5675fi 5676 5677# Have a temporary directory for convenience. Make it in the build tree 5678# simply because there is no reason against having it here, and in addition, 5679# creating and moving files from /tmp can sometimes cause problems. 5680# Hook for its removal unless debugging. 5681# Note that there is a small window in which the directory will not be cleaned: 5682# after its creation but before its name has been assigned to `$tmp'. 5683$debug || 5684{ 5685 tmp= ac_tmp= 5686 trap 'exit_status=$? 5687 : "${ac_tmp:=$tmp}" 5688 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 5689' 0 5690 trap 'as_fn_exit 1' 1 2 13 15 5691} 5692# Create a (secure) tmp directory for tmp files. 5693 5694{ 5695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 5696 test -d "$tmp" 5697} || 5698{ 5699 tmp=./conf$$-$RANDOM 5700 (umask 077 && mkdir "$tmp") 5701} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 5702ac_tmp=$tmp 5703 5704# Set up the scripts for CONFIG_FILES section. 5705# No need to generate them if there are no CONFIG_FILES. 5706# This happens for instance with `./config.status config.h'. 5707if test -n "$CONFIG_FILES"; then 5708 5709 5710ac_cr=`echo X | tr X '\015'` 5711# On cygwin, bash can eat \r inside `` if the user requested igncr. 5712# But we know of no other shell where ac_cr would be empty at this 5713# point, so we can use a bashism as a fallback. 5714if test "x$ac_cr" = x; then 5715 eval ac_cr=\$\'\\r\' 5716fi 5717ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 5718if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 5719 ac_cs_awk_cr='\\r' 5720else 5721 ac_cs_awk_cr=$ac_cr 5722fi 5723 5724echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 5725_ACEOF 5726 5727 5728{ 5729 echo "cat >conf$$subs.awk <<_ACEOF" && 5730 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 5731 echo "_ACEOF" 5732} >conf$$subs.sh || 5733 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5734ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 5735ac_delim='%!_!# ' 5736for ac_last_try in false false false false false :; do 5737 . ./conf$$subs.sh || 5738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5739 5740 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 5741 if test $ac_delim_n = $ac_delim_num; then 5742 break 5743 elif $ac_last_try; then 5744 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 5745 else 5746 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5747 fi 5748done 5749rm -f conf$$subs.sh 5750 5751cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5752cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 5753_ACEOF 5754sed -n ' 5755h 5756s/^/S["/; s/!.*/"]=/ 5757p 5758g 5759s/^[^!]*!// 5760:repl 5761t repl 5762s/'"$ac_delim"'$// 5763t delim 5764:nl 5765h 5766s/\(.\{148\}\)..*/\1/ 5767t more1 5768s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 5769p 5770n 5771b repl 5772:more1 5773s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5774p 5775g 5776s/.\{148\}// 5777t nl 5778:delim 5779h 5780s/\(.\{148\}\)..*/\1/ 5781t more2 5782s/["\\]/\\&/g; s/^/"/; s/$/"/ 5783p 5784b 5785:more2 5786s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 5787p 5788g 5789s/.\{148\}// 5790t delim 5791' <conf$$subs.awk | sed ' 5792/^[^""]/{ 5793 N 5794 s/\n// 5795} 5796' >>$CONFIG_STATUS || ac_write_fail=1 5797rm -f conf$$subs.awk 5798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5799_ACAWK 5800cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 5801 for (key in S) S_is_set[key] = 1 5802 FS = "" 5803 5804} 5805{ 5806 line = $ 0 5807 nfields = split(line, field, "@") 5808 substed = 0 5809 len = length(field[1]) 5810 for (i = 2; i < nfields; i++) { 5811 key = field[i] 5812 keylen = length(key) 5813 if (S_is_set[key]) { 5814 value = S[key] 5815 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 5816 len += length(value) + length(field[++i]) 5817 substed = 1 5818 } else 5819 len += 1 + keylen 5820 } 5821 5822 print line 5823} 5824 5825_ACAWK 5826_ACEOF 5827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5828if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 5829 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 5830else 5831 cat 5832fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 5833 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 5834_ACEOF 5835 5836# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 5837# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 5838# trailing colons and then remove the whole line if VPATH becomes empty 5839# (actually we leave an empty line to preserve line numbers). 5840if test "x$srcdir" = x.; then 5841 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 5842h 5843s/// 5844s/^/:/ 5845s/[ ]*$/:/ 5846s/:\$(srcdir):/:/g 5847s/:\${srcdir}:/:/g 5848s/:@srcdir@:/:/g 5849s/^:*// 5850s/:*$// 5851x 5852s/\(=[ ]*\).*/\1/ 5853G 5854s/\n// 5855s/^[^=]*=[ ]*$// 5856}' 5857fi 5858 5859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5860fi # test -n "$CONFIG_FILES" 5861 5862# Set up the scripts for CONFIG_HEADERS section. 5863# No need to generate them if there are no CONFIG_HEADERS. 5864# This happens for instance with `./config.status Makefile'. 5865if test -n "$CONFIG_HEADERS"; then 5866cat >"$ac_tmp/defines.awk" <<\_ACAWK || 5867BEGIN { 5868_ACEOF 5869 5870# Transform confdefs.h into an awk script `defines.awk', embedded as 5871# here-document in config.status, that substitutes the proper values into 5872# config.h.in to produce config.h. 5873 5874# Create a delimiter string that does not exist in confdefs.h, to ease 5875# handling of long lines. 5876ac_delim='%!_!# ' 5877for ac_last_try in false false :; do 5878 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 5879 if test -z "$ac_tt"; then 5880 break 5881 elif $ac_last_try; then 5882 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 5883 else 5884 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5885 fi 5886done 5887 5888# For the awk script, D is an array of macro values keyed by name, 5889# likewise P contains macro parameters if any. Preserve backslash 5890# newline sequences. 5891 5892ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5893sed -n ' 5894s/.\{148\}/&'"$ac_delim"'/g 5895t rset 5896:rset 5897s/^[ ]*#[ ]*define[ ][ ]*/ / 5898t def 5899d 5900:def 5901s/\\$// 5902t bsnl 5903s/["\\]/\\&/g 5904s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5905D["\1"]=" \3"/p 5906s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 5907d 5908:bsnl 5909s/["\\]/\\&/g 5910s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 5911D["\1"]=" \3\\\\\\n"\\/p 5912t cont 5913s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 5914t cont 5915d 5916:cont 5917n 5918s/.\{148\}/&'"$ac_delim"'/g 5919t clear 5920:clear 5921s/\\$// 5922t bsnlc 5923s/["\\]/\\&/g; s/^/"/; s/$/"/p 5924d 5925:bsnlc 5926s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 5927b cont 5928' <confdefs.h | sed ' 5929s/'"$ac_delim"'/"\\\ 5930"/g' >>$CONFIG_STATUS || ac_write_fail=1 5931 5932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5933 for (key in D) D_is_set[key] = 1 5934 FS = "" 5935} 5936/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 5937 line = \$ 0 5938 split(line, arg, " ") 5939 if (arg[1] == "#") { 5940 defundef = arg[2] 5941 mac1 = arg[3] 5942 } else { 5943 defundef = substr(arg[1], 2) 5944 mac1 = arg[2] 5945 } 5946 split(mac1, mac2, "(") #) 5947 macro = mac2[1] 5948 prefix = substr(line, 1, index(line, defundef) - 1) 5949 if (D_is_set[macro]) { 5950 # Preserve the white space surrounding the "#". 5951 print prefix "define", macro P[macro] D[macro] 5952 next 5953 } else { 5954 # Replace #undef with comments. This is necessary, for example, 5955 # in the case of _POSIX_SOURCE, which is predefined and required 5956 # on some systems where configure will not decide to define it. 5957 if (defundef == "undef") { 5958 print "/*", prefix defundef, macro, "*/" 5959 next 5960 } 5961 } 5962} 5963{ print } 5964_ACAWK 5965_ACEOF 5966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5967 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 5968fi # test -n "$CONFIG_HEADERS" 5969 5970 5971eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 5972shift 5973for ac_tag 5974do 5975 case $ac_tag in 5976 :[FHLC]) ac_mode=$ac_tag; continue;; 5977 esac 5978 case $ac_mode$ac_tag in 5979 :[FHL]*:*);; 5980 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;; 5981 :[FH]-) ac_tag=-:-;; 5982 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5983 esac 5984 ac_save_IFS=$IFS 5985 IFS=: 5986 set x $ac_tag 5987 IFS=$ac_save_IFS 5988 shift 5989 ac_file=$1 5990 shift 5991 5992 case $ac_mode in 5993 :L) ac_source=$1;; 5994 :[FH]) 5995 ac_file_inputs= 5996 for ac_f 5997 do 5998 case $ac_f in 5999 -) ac_f="$ac_tmp/stdin";; 6000 *) # Look for the file first in the build tree, then in the source tree 6001 # (if the path is not absolute). The absolute path cannot be DOS-style, 6002 # because $ac_f cannot contain `:'. 6003 test -f "$ac_f" || 6004 case $ac_f in 6005 [\\/$]*) false;; 6006 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6007 esac || 6008 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;; 6009 esac 6010 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6011 as_fn_append ac_file_inputs " '$ac_f'" 6012 done 6013 6014 # Let's still pretend it is `configure' which instantiates (i.e., don't 6015 # use $as_me), people would be surprised to read: 6016 # /* config.h. Generated by config.status. */ 6017 configure_input='Generated from '` 6018 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6019 `' by configure.' 6020 if test x"$ac_file" != x-; then 6021 configure_input="$ac_file. $configure_input" 6022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6023$as_echo "$as_me: creating $ac_file" >&6;} 6024 fi 6025 # Neutralize special characters interpreted by sed in replacement strings. 6026 case $configure_input in #( 6027 *\&* | *\|* | *\\* ) 6028 ac_sed_conf_input=`$as_echo "$configure_input" | 6029 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6030 *) ac_sed_conf_input=$configure_input;; 6031 esac 6032 6033 case $ac_tag in 6034 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 6035 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 6036 esac 6037 ;; 6038 esac 6039 6040 ac_dir=`$as_dirname -- "$ac_file" || 6041$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6042 X"$ac_file" : 'X\(//\)[^/]' \| \ 6043 X"$ac_file" : 'X\(//\)$' \| \ 6044 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6045$as_echo X"$ac_file" | 6046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6047 s//\1/ 6048 q 6049 } 6050 /^X\(\/\/\)[^/].*/{ 6051 s//\1/ 6052 q 6053 } 6054 /^X\(\/\/\)$/{ 6055 s//\1/ 6056 q 6057 } 6058 /^X\(\/\).*/{ 6059 s//\1/ 6060 q 6061 } 6062 s/.*/./; q'` 6063 as_dir="$ac_dir"; as_fn_mkdir_p 6064 ac_builddir=. 6065 6066case "$ac_dir" in 6067.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6068*) 6069 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6070 # A ".." for each directory in $ac_dir_suffix. 6071 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6072 case $ac_top_builddir_sub in 6073 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6074 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6075 esac ;; 6076esac 6077ac_abs_top_builddir=$ac_pwd 6078ac_abs_builddir=$ac_pwd$ac_dir_suffix 6079# for backward compatibility: 6080ac_top_builddir=$ac_top_build_prefix 6081 6082case $srcdir in 6083 .) # We are building in place. 6084 ac_srcdir=. 6085 ac_top_srcdir=$ac_top_builddir_sub 6086 ac_abs_top_srcdir=$ac_pwd ;; 6087 [\\/]* | ?:[\\/]* ) # Absolute name. 6088 ac_srcdir=$srcdir$ac_dir_suffix; 6089 ac_top_srcdir=$srcdir 6090 ac_abs_top_srcdir=$srcdir ;; 6091 *) # Relative name. 6092 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6093 ac_top_srcdir=$ac_top_build_prefix$srcdir 6094 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6095esac 6096ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6097 6098 6099 case $ac_mode in 6100 :F) 6101 # 6102 # CONFIG_FILE 6103 # 6104 6105 case $INSTALL in 6106 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6107 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6108 esac 6109_ACEOF 6110 6111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6112# If the template does not know about datarootdir, expand it. 6113# FIXME: This hack should be removed a few years after 2.60. 6114ac_datarootdir_hack=; ac_datarootdir_seen= 6115ac_sed_dataroot=' 6116/datarootdir/ { 6117 p 6118 q 6119} 6120/@datadir@/p 6121/@docdir@/p 6122/@infodir@/p 6123/@localedir@/p 6124/@mandir@/p' 6125case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6126*datarootdir*) ac_datarootdir_seen=yes;; 6127*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6129$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6130_ACEOF 6131cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6132 ac_datarootdir_hack=' 6133 s&@datadir@&$datadir&g 6134 s&@docdir@&$docdir&g 6135 s&@infodir@&$infodir&g 6136 s&@localedir@&$localedir&g 6137 s&@mandir@&$mandir&g 6138 s&\\\${datarootdir}&$datarootdir&g' ;; 6139esac 6140_ACEOF 6141 6142# Neutralize VPATH when `$srcdir' = `.'. 6143# Shell code in configure.ac might set extrasub. 6144# FIXME: do we really want to maintain this feature? 6145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6146ac_sed_extra="$ac_vpsub 6147$extrasub 6148_ACEOF 6149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6150:t 6151/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6152s|@configure_input@|$ac_sed_conf_input|;t t 6153s&@top_builddir@&$ac_top_builddir_sub&;t t 6154s&@top_build_prefix@&$ac_top_build_prefix&;t t 6155s&@srcdir@&$ac_srcdir&;t t 6156s&@abs_srcdir@&$ac_abs_srcdir&;t t 6157s&@top_srcdir@&$ac_top_srcdir&;t t 6158s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6159s&@builddir@&$ac_builddir&;t t 6160s&@abs_builddir@&$ac_abs_builddir&;t t 6161s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6162s&@INSTALL@&$ac_INSTALL&;t t 6163$ac_datarootdir_hack 6164" 6165eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 6166 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6167 6168test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6169 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 6170 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 6171 "$ac_tmp/out"`; test -z "$ac_out"; } && 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6173which seems to be undefined. Please make sure it is defined" >&5 6174$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6175which seems to be undefined. Please make sure it is defined" >&2;} 6176 6177 rm -f "$ac_tmp/stdin" 6178 case $ac_file in 6179 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 6180 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 6181 esac \ 6182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6183 ;; 6184 :H) 6185 # 6186 # CONFIG_HEADER 6187 # 6188 if test x"$ac_file" != x-; then 6189 { 6190 $as_echo "/* $configure_input */" \ 6191 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 6192 } >"$ac_tmp/config.h" \ 6193 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6194 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 6195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6196$as_echo "$as_me: $ac_file is unchanged" >&6;} 6197 else 6198 rm -f "$ac_file" 6199 mv "$ac_tmp/config.h" "$ac_file" \ 6200 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 6201 fi 6202 else 6203 $as_echo "/* $configure_input */" \ 6204 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 6205 || as_fn_error $? "could not create -" "$LINENO" 5 6206 fi 6207# Compute "$ac_file"'s index in $config_headers. 6208_am_stamp_count=1 6209for _am_header in $config_headers :; do 6210 case $_am_header in 6211 "$ac_file" | "$ac_file":* ) 6212 break ;; 6213 * ) 6214 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 6215 esac 6216done 6217echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" || 6218$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6219 X"$ac_file" : 'X\(//\)[^/]' \| \ 6220 X"$ac_file" : 'X\(//\)$' \| \ 6221 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6222$as_echo X"$ac_file" | 6223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6224 s//\1/ 6225 q 6226 } 6227 /^X\(\/\/\)[^/].*/{ 6228 s//\1/ 6229 q 6230 } 6231 /^X\(\/\/\)$/{ 6232 s//\1/ 6233 q 6234 } 6235 /^X\(\/\).*/{ 6236 s//\1/ 6237 q 6238 } 6239 s/.*/./; q'`/stamp-h$_am_stamp_count 6240 ;; 6241 6242 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 6243$as_echo "$as_me: executing $ac_file commands" >&6;} 6244 ;; 6245 esac 6246 6247 6248 case $ac_file$ac_mode in 6249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 6250 # Strip MF so we end up with the name of the file. 6251 mf=`echo "$mf" | sed -e 's/:.*$//'` 6252 # Check whether this is an Automake generated Makefile or not. 6253 # We used to match only the files named `Makefile.in', but 6254 # some people rename them; so instead we look at the file content. 6255 # Grep'ing the first line is not enough: some people post-process 6256 # each Makefile.in and add a new line on top of each file to say so. 6257 # So let's grep whole file. 6258 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 6259 dirpart=`$as_dirname -- "$mf" || 6260$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6261 X"$mf" : 'X\(//\)[^/]' \| \ 6262 X"$mf" : 'X\(//\)$' \| \ 6263 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 6264$as_echo X"$mf" | 6265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6266 s//\1/ 6267 q 6268 } 6269 /^X\(\/\/\)[^/].*/{ 6270 s//\1/ 6271 q 6272 } 6273 /^X\(\/\/\)$/{ 6274 s//\1/ 6275 q 6276 } 6277 /^X\(\/\).*/{ 6278 s//\1/ 6279 q 6280 } 6281 s/.*/./; q'` 6282 else 6283 continue 6284 fi 6285 # Extract the definition of DEPDIR, am__include, and am__quote 6286 # from the Makefile without running `make'. 6287 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 6288 test -z "$DEPDIR" && continue 6289 am__include=`sed -n 's/^am__include = //p' < "$mf"` 6290 test -z "am__include" && continue 6291 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 6292 # When using ansi2knr, U may be empty or an underscore; expand it 6293 U=`sed -n 's/^U = //p' < "$mf"` 6294 # Find all dependency output files, they are included files with 6295 # $(DEPDIR) in their names. We invoke sed twice because it is the 6296 # simplest approach to changing $(DEPDIR) to its actual value in the 6297 # expansion. 6298 for file in `sed -n " 6299 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 6300 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 6301 # Make sure the directory exists. 6302 test -f "$dirpart/$file" && continue 6303 fdir=`$as_dirname -- "$file" || 6304$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6305 X"$file" : 'X\(//\)[^/]' \| \ 6306 X"$file" : 'X\(//\)$' \| \ 6307 X"$file" : 'X\(/\)' \| . 2>/dev/null || 6308$as_echo X"$file" | 6309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6310 s//\1/ 6311 q 6312 } 6313 /^X\(\/\/\)[^/].*/{ 6314 s//\1/ 6315 q 6316 } 6317 /^X\(\/\/\)$/{ 6318 s//\1/ 6319 q 6320 } 6321 /^X\(\/\).*/{ 6322 s//\1/ 6323 q 6324 } 6325 s/.*/./; q'` 6326 as_dir=$dirpart/$fdir; as_fn_mkdir_p 6327 # echo "creating $dirpart/$file" 6328 echo '# dummy' > "$dirpart/$file" 6329 done 6330done 6331 ;; 6332 6333 esac 6334done # for ac_tag 6335 6336 6337as_fn_exit 0 6338_ACEOF 6339ac_clean_files=$ac_clean_files_save 6340 6341test $ac_write_fail = 0 || 6342 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 6343 6344 6345# configure is writing to config.log, and then calls config.status. 6346# config.status does its own redirection, appending to config.log. 6347# Unfortunately, on DOS this fails, as config.log is still kept open 6348# by configure, so config.status won't be able to write to it; its 6349# output is simply discarded. So we exec the FD to /dev/null, 6350# effectively closing config.log, so it can be properly (re)opened and 6351# appended to by config.status. When coming back to configure, we 6352# need to make the FD available again. 6353if test "$no_create" != yes; then 6354 ac_cs_success=: 6355 ac_config_status_args= 6356 test "$silent" = yes && 6357 ac_config_status_args="$ac_config_status_args --quiet" 6358 exec 5>/dev/null 6359 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6360 exec 5>>config.log 6361 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6362 # would make configure fail if this is the last instruction. 6363 $ac_cs_success || as_fn_exit 1 6364fi 6365if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6367$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6368fi 6369 6370