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