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