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