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