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