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