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