158551Skris#! /bin/sh 258551Skris# Guess values for system-dependent variables and create Makefiles. 3230237Sbapt# Generated by GNU Autoconf 2.61. 458551Skris# 5230237Sbapt# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6230237Sbapt# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 758551Skris# This configure script is free software; the Free Software Foundation 858551Skris# gives unlimited permission to copy, distribute and modify it. 9230237Sbapt## --------------------- ## 10230237Sbapt## M4sh Initialization. ## 11230237Sbapt## --------------------- ## 1258551Skris 13230237Sbapt# Be more Bourne compatible 14230237SbaptDUALCASE=1; export DUALCASE # for MKS sh 15230237Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 16230237Sbapt emulate sh 17230237Sbapt NULLCMD=: 18230237Sbapt # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19230237Sbapt # is contrary to our usage. Disable this feature. 20230237Sbapt alias -g '${1+"$@"}'='"$@"' 21230237Sbapt setopt NO_GLOB_SUBST 22230237Sbaptelse 23230237Sbapt case `(set -o) 2>/dev/null` in 24230237Sbapt *posix*) set -o posix ;; 25230237Sbaptesac 26230237Sbapt 27230237Sbaptfi 28230237Sbapt 29230237Sbapt 30230237Sbapt 31230237Sbapt 32230237Sbapt# PATH needs CR 33230237Sbapt# Avoid depending upon Character Ranges. 34230237Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz' 35230237Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 36230237Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS 37230237Sbaptas_cr_digits='0123456789' 38230237Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits 39230237Sbapt 40230237Sbapt# The user is always right. 41230237Sbaptif test "${PATH_SEPARATOR+set}" != set; then 42230237Sbapt echo "#! /bin/sh" >conf$$.sh 43230237Sbapt echo "exit 0" >>conf$$.sh 44230237Sbapt chmod +x conf$$.sh 45230237Sbapt if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 46230237Sbapt PATH_SEPARATOR=';' 47230237Sbapt else 48230237Sbapt PATH_SEPARATOR=: 49230237Sbapt fi 50230237Sbapt rm -f conf$$.sh 51230237Sbaptfi 52230237Sbapt 53230237Sbapt# Support unset when possible. 54230237Sbaptif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55230237Sbapt as_unset=unset 56230237Sbaptelse 57230237Sbapt as_unset=false 58230237Sbaptfi 59230237Sbapt 60230237Sbapt 61230237Sbapt# IFS 62230237Sbapt# We need space, tab and new line, in precisely that order. Quoting is 63230237Sbapt# there to prevent editors from complaining about space-tab. 64230237Sbapt# (If _AS_PATH_WALK were called with IFS unset, it would disable word 65230237Sbapt# splitting by setting IFS to empty value.) 66230237Sbaptas_nl=' 67230237Sbapt' 68230237SbaptIFS=" "" $as_nl" 69230237Sbapt 70230237Sbapt# Find who we are. Look in the path if we contain no directory separator. 71230237Sbaptcase $0 in 72230237Sbapt *[\\/]* ) as_myself=$0 ;; 73230237Sbapt *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 74230237Sbaptfor as_dir in $PATH 75230237Sbaptdo 76230237Sbapt IFS=$as_save_IFS 77230237Sbapt test -z "$as_dir" && as_dir=. 78230237Sbapt test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 79230237Sbaptdone 80230237SbaptIFS=$as_save_IFS 81230237Sbapt 82230237Sbapt ;; 83230237Sbaptesac 84230237Sbapt# We did not find ourselves, most probably we were run as `sh COMMAND' 85230237Sbapt# in which case we are not to be found in the path. 86230237Sbaptif test "x$as_myself" = x; then 87230237Sbapt as_myself=$0 88230237Sbaptfi 89230237Sbaptif test ! -f "$as_myself"; then 90230237Sbapt echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91230237Sbapt { (exit 1); exit 1; } 92230237Sbaptfi 93230237Sbapt 94230237Sbapt# Work around bugs in pre-3.0 UWIN ksh. 95230237Sbaptfor as_var in ENV MAIL MAILPATH 96230237Sbaptdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97230237Sbaptdone 98230237SbaptPS1='$ ' 99230237SbaptPS2='> ' 100230237SbaptPS4='+ ' 101230237Sbapt 102230237Sbapt# NLS nuisances. 103230237Sbaptfor as_var in \ 104230237Sbapt LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105230237Sbapt LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106230237Sbapt LC_TELEPHONE LC_TIME 107230237Sbaptdo 108230237Sbapt if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109230237Sbapt eval $as_var=C; export $as_var 110230237Sbapt else 111230237Sbapt ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 112230237Sbapt fi 113230237Sbaptdone 114230237Sbapt 115230237Sbapt# Required to use basename. 116230237Sbaptif expr a : '\(a\)' >/dev/null 2>&1 && 117230237Sbapt test "X`expr 00001 : '.*\(...\)'`" = X001; then 118230237Sbapt as_expr=expr 119230237Sbaptelse 120230237Sbapt as_expr=false 121230237Sbaptfi 122230237Sbapt 123230237Sbaptif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124230237Sbapt as_basename=basename 125230237Sbaptelse 126230237Sbapt as_basename=false 127230237Sbaptfi 128230237Sbapt 129230237Sbapt 130230237Sbapt# Name of the executable. 131230237Sbaptas_me=`$as_basename -- "$0" || 132230237Sbapt$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133230237Sbapt X"$0" : 'X\(//\)$' \| \ 134230237Sbapt X"$0" : 'X\(/\)' \| . 2>/dev/null || 135230237Sbaptecho X/"$0" | 136230237Sbapt sed '/^.*\/\([^/][^/]*\)\/*$/{ 137230237Sbapt s//\1/ 138230237Sbapt q 139230237Sbapt } 140230237Sbapt /^X\/\(\/\/\)$/{ 141230237Sbapt s//\1/ 142230237Sbapt q 143230237Sbapt } 144230237Sbapt /^X\/\(\/\).*/{ 145230237Sbapt s//\1/ 146230237Sbapt q 147230237Sbapt } 148230237Sbapt s/.*/./; q'` 149230237Sbapt 150230237Sbapt# CDPATH. 151230237Sbapt$as_unset CDPATH 152230237Sbapt 153230237Sbapt 154230237Sbaptif test "x$CONFIG_SHELL" = x; then 155230237Sbapt if (eval ":") 2>/dev/null; then 156230237Sbapt as_have_required=yes 157230237Sbaptelse 158230237Sbapt as_have_required=no 159230237Sbaptfi 160230237Sbapt 161230237Sbapt if test $as_have_required = yes && (eval ": 162230237Sbapt(as_func_return () { 163230237Sbapt (exit \$1) 164230237Sbapt} 165230237Sbaptas_func_success () { 166230237Sbapt as_func_return 0 167230237Sbapt} 168230237Sbaptas_func_failure () { 169230237Sbapt as_func_return 1 170230237Sbapt} 171230237Sbaptas_func_ret_success () { 172230237Sbapt return 0 173230237Sbapt} 174230237Sbaptas_func_ret_failure () { 175230237Sbapt return 1 176230237Sbapt} 177230237Sbapt 178230237Sbaptexitcode=0 179230237Sbaptif as_func_success; then 180230237Sbapt : 181230237Sbaptelse 182230237Sbapt exitcode=1 183230237Sbapt echo as_func_success failed. 184230237Sbaptfi 185230237Sbapt 186230237Sbaptif as_func_failure; then 187230237Sbapt exitcode=1 188230237Sbapt echo as_func_failure succeeded. 189230237Sbaptfi 190230237Sbapt 191230237Sbaptif as_func_ret_success; then 192230237Sbapt : 193230237Sbaptelse 194230237Sbapt exitcode=1 195230237Sbapt echo as_func_ret_success failed. 196230237Sbaptfi 197230237Sbapt 198230237Sbaptif as_func_ret_failure; then 199230237Sbapt exitcode=1 200230237Sbapt echo as_func_ret_failure succeeded. 201230237Sbaptfi 202230237Sbapt 203230237Sbaptif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204230237Sbapt : 205230237Sbaptelse 206230237Sbapt exitcode=1 207230237Sbapt echo positional parameters were not saved. 208230237Sbaptfi 209230237Sbapt 210230237Sbapttest \$exitcode = 0) || { (exit 1); exit 1; } 211230237Sbapt 212230237Sbapt( 213230237Sbapt as_lineno_1=\$LINENO 214230237Sbapt as_lineno_2=\$LINENO 215230237Sbapt test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216230237Sbapt test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217230237Sbapt") 2> /dev/null; then 218230237Sbapt : 219230237Sbaptelse 220230237Sbapt as_candidate_shells= 221230237Sbapt as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 222230237Sbaptfor as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 223230237Sbaptdo 224230237Sbapt IFS=$as_save_IFS 225230237Sbapt test -z "$as_dir" && as_dir=. 226230237Sbapt case $as_dir in 227230237Sbapt /*) 228230237Sbapt for as_base in sh bash ksh sh5; do 229230237Sbapt as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230230237Sbapt done;; 231230237Sbapt esac 232230237Sbaptdone 233230237SbaptIFS=$as_save_IFS 234230237Sbapt 235230237Sbapt 236230237Sbapt for as_shell in $as_candidate_shells $SHELL; do 237230237Sbapt # Try only shells that exist, to save several forks. 238230237Sbapt if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239230237Sbapt { ("$as_shell") 2> /dev/null <<\_ASEOF 240230237Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241230237Sbapt emulate sh 242230237Sbapt NULLCMD=: 243230237Sbapt # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244230237Sbapt # is contrary to our usage. Disable this feature. 245230237Sbapt alias -g '${1+"$@"}'='"$@"' 246230237Sbapt setopt NO_GLOB_SUBST 247230237Sbaptelse 248230237Sbapt case `(set -o) 2>/dev/null` in 249230237Sbapt *posix*) set -o posix ;; 250230237Sbaptesac 251230237Sbapt 252230237Sbaptfi 253230237Sbapt 254230237Sbapt 255230237Sbapt: 256230237Sbapt_ASEOF 257230237Sbapt}; then 258230237Sbapt CONFIG_SHELL=$as_shell 259230237Sbapt as_have_required=yes 260230237Sbapt if { "$as_shell" 2> /dev/null <<\_ASEOF 261230237Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262230237Sbapt emulate sh 263230237Sbapt NULLCMD=: 264230237Sbapt # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265230237Sbapt # is contrary to our usage. Disable this feature. 266230237Sbapt alias -g '${1+"$@"}'='"$@"' 267230237Sbapt setopt NO_GLOB_SUBST 268230237Sbaptelse 269230237Sbapt case `(set -o) 2>/dev/null` in 270230237Sbapt *posix*) set -o posix ;; 271230237Sbaptesac 272230237Sbapt 273230237Sbaptfi 274230237Sbapt 275230237Sbapt 276230237Sbapt: 277230237Sbapt(as_func_return () { 278230237Sbapt (exit $1) 279230237Sbapt} 280230237Sbaptas_func_success () { 281230237Sbapt as_func_return 0 282230237Sbapt} 283230237Sbaptas_func_failure () { 284230237Sbapt as_func_return 1 285230237Sbapt} 286230237Sbaptas_func_ret_success () { 287230237Sbapt return 0 288230237Sbapt} 289230237Sbaptas_func_ret_failure () { 290230237Sbapt return 1 291230237Sbapt} 292230237Sbapt 293230237Sbaptexitcode=0 294230237Sbaptif as_func_success; then 295230237Sbapt : 296230237Sbaptelse 297230237Sbapt exitcode=1 298230237Sbapt echo as_func_success failed. 299230237Sbaptfi 300230237Sbapt 301230237Sbaptif as_func_failure; then 302230237Sbapt exitcode=1 303230237Sbapt echo as_func_failure succeeded. 304230237Sbaptfi 305230237Sbapt 306230237Sbaptif as_func_ret_success; then 307230237Sbapt : 308230237Sbaptelse 309230237Sbapt exitcode=1 310230237Sbapt echo as_func_ret_success failed. 311230237Sbaptfi 312230237Sbapt 313230237Sbaptif as_func_ret_failure; then 314230237Sbapt exitcode=1 315230237Sbapt echo as_func_ret_failure succeeded. 316230237Sbaptfi 317230237Sbapt 318230237Sbaptif ( set x; as_func_ret_success y && test x = "$1" ); then 319230237Sbapt : 320230237Sbaptelse 321230237Sbapt exitcode=1 322230237Sbapt echo positional parameters were not saved. 323230237Sbaptfi 324230237Sbapt 325230237Sbapttest $exitcode = 0) || { (exit 1); exit 1; } 326230237Sbapt 327230237Sbapt( 328230237Sbapt as_lineno_1=$LINENO 329230237Sbapt as_lineno_2=$LINENO 330230237Sbapt test "x$as_lineno_1" != "x$as_lineno_2" && 331230237Sbapt test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332230237Sbapt 333230237Sbapt_ASEOF 334230237Sbapt}; then 335230237Sbapt break 336230237Sbaptfi 337230237Sbapt 338230237Sbaptfi 339230237Sbapt 340230237Sbapt done 341230237Sbapt 342230237Sbapt if test "x$CONFIG_SHELL" != x; then 343230237Sbapt for as_var in BASH_ENV ENV 344230237Sbapt do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345230237Sbapt done 346230237Sbapt export CONFIG_SHELL 347230237Sbapt exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348230237Sbaptfi 349230237Sbapt 350230237Sbapt 351230237Sbapt if test $as_have_required = no; then 352230237Sbapt echo This script requires a shell more modern than all the 353230237Sbapt echo shells that I found on your system. Please install a 354230237Sbapt echo modern shell, or manually run the script under such a 355230237Sbapt echo shell if you do have one. 356230237Sbapt { (exit 1); exit 1; } 357230237Sbaptfi 358230237Sbapt 359230237Sbapt 360230237Sbaptfi 361230237Sbapt 362230237Sbaptfi 363230237Sbapt 364230237Sbapt 365230237Sbapt 366230237Sbapt(eval "as_func_return () { 367230237Sbapt (exit \$1) 368230237Sbapt} 369230237Sbaptas_func_success () { 370230237Sbapt as_func_return 0 371230237Sbapt} 372230237Sbaptas_func_failure () { 373230237Sbapt as_func_return 1 374230237Sbapt} 375230237Sbaptas_func_ret_success () { 376230237Sbapt return 0 377230237Sbapt} 378230237Sbaptas_func_ret_failure () { 379230237Sbapt return 1 380230237Sbapt} 381230237Sbapt 382230237Sbaptexitcode=0 383230237Sbaptif as_func_success; then 384230237Sbapt : 385230237Sbaptelse 386230237Sbapt exitcode=1 387230237Sbapt echo as_func_success failed. 388230237Sbaptfi 389230237Sbapt 390230237Sbaptif as_func_failure; then 391230237Sbapt exitcode=1 392230237Sbapt echo as_func_failure succeeded. 393230237Sbaptfi 394230237Sbapt 395230237Sbaptif as_func_ret_success; then 396230237Sbapt : 397230237Sbaptelse 398230237Sbapt exitcode=1 399230237Sbapt echo as_func_ret_success failed. 400230237Sbaptfi 401230237Sbapt 402230237Sbaptif as_func_ret_failure; then 403230237Sbapt exitcode=1 404230237Sbapt echo as_func_ret_failure succeeded. 405230237Sbaptfi 406230237Sbapt 407230237Sbaptif ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408230237Sbapt : 409230237Sbaptelse 410230237Sbapt exitcode=1 411230237Sbapt echo positional parameters were not saved. 412230237Sbaptfi 413230237Sbapt 414230237Sbapttest \$exitcode = 0") || { 415230237Sbapt echo No shell found that supports shell functions. 416230237Sbapt echo Please tell autoconf@gnu.org about your system, 417230237Sbapt echo including any error possibly output before this 418230237Sbapt echo message 419230237Sbapt} 420230237Sbapt 421230237Sbapt 422230237Sbapt 423230237Sbapt as_lineno_1=$LINENO 424230237Sbapt as_lineno_2=$LINENO 425230237Sbapt test "x$as_lineno_1" != "x$as_lineno_2" && 426230237Sbapt test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 427230237Sbapt 428230237Sbapt # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 429230237Sbapt # uniformly replaced by the line number. The first 'sed' inserts a 430230237Sbapt # line-number line after each line using $LINENO; the second 'sed' 431230237Sbapt # does the real work. The second script uses 'N' to pair each 432230237Sbapt # line-number line with the line containing $LINENO, and appends 433230237Sbapt # trailing '-' during substitution so that $LINENO is not a special 434230237Sbapt # case at line end. 435230237Sbapt # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 436230237Sbapt # scripts with optimization help from Paolo Bonzini. Blame Lee 437230237Sbapt # E. McMahon (1931-1989) for sed's syntax. :-) 438230237Sbapt sed -n ' 439230237Sbapt p 440230237Sbapt /[$]LINENO/= 441230237Sbapt ' <$as_myself | 442230237Sbapt sed ' 443230237Sbapt s/[$]LINENO.*/&-/ 444230237Sbapt t lineno 445230237Sbapt b 446230237Sbapt :lineno 447230237Sbapt N 448230237Sbapt :loop 449230237Sbapt s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 450230237Sbapt t loop 451230237Sbapt s/-\n.*// 452230237Sbapt ' >$as_me.lineno && 453230237Sbapt chmod +x "$as_me.lineno" || 454230237Sbapt { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 455230237Sbapt { (exit 1); exit 1; }; } 456230237Sbapt 457230237Sbapt # Don't try to exec as it changes $[0], causing all sort of problems 458230237Sbapt # (the dirname of $[0] is not the place where we might find the 459230237Sbapt # original and so on. Autoconf is especially sensitive to this). 460230237Sbapt . "./$as_me.lineno" 461230237Sbapt # Exit status is that of the last command. 462230237Sbapt exit 463230237Sbapt} 464230237Sbapt 465230237Sbapt 466230237Sbaptif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467230237Sbapt as_dirname=dirname 468230237Sbaptelse 469230237Sbapt as_dirname=false 470230237Sbaptfi 471230237Sbapt 472230237SbaptECHO_C= ECHO_N= ECHO_T= 473230237Sbaptcase `echo -n x` in 474230237Sbapt-n*) 475230237Sbapt case `echo 'x\c'` in 476230237Sbapt *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477230237Sbapt *) ECHO_C='\c';; 478230237Sbapt esac;; 479230237Sbapt*) 480230237Sbapt ECHO_N='-n';; 481230237Sbaptesac 482230237Sbapt 483230237Sbaptif expr a : '\(a\)' >/dev/null 2>&1 && 484230237Sbapt test "X`expr 00001 : '.*\(...\)'`" = X001; then 485230237Sbapt as_expr=expr 486230237Sbaptelse 487230237Sbapt as_expr=false 488230237Sbaptfi 489230237Sbapt 490230237Sbaptrm -f conf$$ conf$$.exe conf$$.file 491230237Sbaptif test -d conf$$.dir; then 492230237Sbapt rm -f conf$$.dir/conf$$.file 493230237Sbaptelse 494230237Sbapt rm -f conf$$.dir 495230237Sbapt mkdir conf$$.dir 496230237Sbaptfi 497230237Sbaptecho >conf$$.file 498230237Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then 499230237Sbapt as_ln_s='ln -s' 500230237Sbapt # ... but there are two gotchas: 501230237Sbapt # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502230237Sbapt # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503230237Sbapt # In both cases, we have to default to `cp -p'. 504230237Sbapt ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 505230237Sbapt as_ln_s='cp -p' 506230237Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then 507230237Sbapt as_ln_s=ln 508230237Sbaptelse 509230237Sbapt as_ln_s='cp -p' 510230237Sbaptfi 511230237Sbaptrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512230237Sbaptrmdir conf$$.dir 2>/dev/null 513230237Sbapt 514230237Sbaptif mkdir -p . 2>/dev/null; then 515230237Sbapt as_mkdir_p=: 516230237Sbaptelse 517230237Sbapt test -d ./-p && rmdir ./-p 518230237Sbapt as_mkdir_p=false 519230237Sbaptfi 520230237Sbapt 521230237Sbaptif test -x / >/dev/null 2>&1; then 522230237Sbapt as_test_x='test -x' 523230237Sbaptelse 524230237Sbapt if ls -dL / >/dev/null 2>&1; then 525230237Sbapt as_ls_L_option=L 526230237Sbapt else 527230237Sbapt as_ls_L_option= 528230237Sbapt fi 529230237Sbapt as_test_x=' 530230237Sbapt eval sh -c '\'' 531230237Sbapt if test -d "$1"; then 532230237Sbapt test -d "$1/."; 533230237Sbapt else 534230237Sbapt case $1 in 535230237Sbapt -*)set "./$1";; 536230237Sbapt esac; 537230237Sbapt case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538230237Sbapt ???[sx]*):;;*)false;;esac;fi 539230237Sbapt '\'' sh 540230237Sbapt ' 541230237Sbaptfi 542230237Sbaptas_executable_p=$as_test_x 543230237Sbapt 544230237Sbapt# Sed expression to map a string onto a valid CPP name. 545230237Sbaptas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 546230237Sbapt 547230237Sbapt# Sed expression to map a string onto a valid variable name. 548230237Sbaptas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 549230237Sbapt 550230237Sbapt 551230237Sbapt 552230237Sbaptexec 7<&0 </dev/null 6>&1 553230237Sbapt 554230237Sbapt# Name of the host. 555230237Sbapt# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 556230237Sbapt# so uname gets run too. 557230237Sbaptac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558230237Sbapt 559230237Sbapt# 560230237Sbapt# Initializations. 561230237Sbapt# 56258551Skrisac_default_prefix=/usr/local 563230237Sbaptac_clean_files= 564230237Sbaptac_config_libobj_dir=. 565230237SbaptLIBOBJS= 566230237Sbaptcross_compiling=no 567230237Sbaptsubdirs= 568230237SbaptMFLAGS= 569230237SbaptMAKEFLAGS= 570230237SbaptSHELL=${CONFIG_SHELL-/bin/sh} 57158551Skris 572230237Sbapt# Identity of this package. 573230237SbaptPACKAGE_NAME= 574230237SbaptPACKAGE_TARNAME= 575230237SbaptPACKAGE_VERSION= 576230237SbaptPACKAGE_STRING= 577230237SbaptPACKAGE_BUGREPORT= 578230237Sbapt 579230237Sbaptac_unique_file="hash.cc" 580230237Sbaptac_subst_vars='SHELL 581230237SbaptPATH_SEPARATOR 582230237SbaptPACKAGE_NAME 583230237SbaptPACKAGE_TARNAME 584230237SbaptPACKAGE_VERSION 585230237SbaptPACKAGE_STRING 586230237SbaptPACKAGE_BUGREPORT 587230237Sbaptexec_prefix 588230237Sbaptprefix 589230237Sbaptprogram_transform_name 590230237Sbaptbindir 591230237Sbaptsbindir 592230237Sbaptlibexecdir 593230237Sbaptdatarootdir 594230237Sbaptdatadir 595230237Sbaptsysconfdir 596230237Sbaptsharedstatedir 597230237Sbaptlocalstatedir 598230237Sbaptincludedir 599230237Sbaptoldincludedir 600230237Sbaptdocdir 601230237Sbaptinfodir 602230237Sbapthtmldir 603230237Sbaptdvidir 604230237Sbaptpdfdir 605230237Sbaptpsdir 606230237Sbaptlibdir 607230237Sbaptlocaledir 608230237Sbaptmandir 609230237SbaptDEFS 610230237SbaptECHO_C 611230237SbaptECHO_N 612230237SbaptECHO_T 613230237SbaptLIBS 614230237Sbaptbuild_alias 615230237Sbapthost_alias 616230237Sbapttarget_alias 617230237SbaptSET_MAKE 618230237SbaptCC 619230237SbaptCFLAGS 620230237SbaptLDFLAGS 621230237SbaptCPPFLAGS 622230237Sbaptac_ct_CC 623230237SbaptEXEEXT 624230237SbaptOBJEXT 625230237SbaptCPP 626230237SbaptCXX 627230237SbaptCXXFLAGS 628230237Sbaptac_ct_CXX 629230237SbaptCXXCPP 630230237SbaptRANLIB 631230237SbaptINSTALL 632230237SbaptINSTALL_PROGRAM 633230237SbaptINSTALL_DATA 634230237SbaptLIBOBJS 635230237SbaptLTLIBOBJS' 636230237Sbaptac_subst_files='' 637230237Sbapt ac_precious_vars='build_alias 638230237Sbapthost_alias 639230237Sbapttarget_alias 640230237SbaptCC 641230237SbaptCFLAGS 642230237SbaptLDFLAGS 643230237SbaptLIBS 644230237SbaptCPPFLAGS 645230237SbaptCPP 646230237SbaptCXX 647230237SbaptCXXFLAGS 648230237SbaptCCC 649230237SbaptCXXCPP' 650230237Sbapt 651230237Sbapt 65258551Skris# Initialize some variables set by options. 653230237Sbaptac_init_help= 654230237Sbaptac_init_version=false 65558551Skris# The variables have the same names as the options, with 65658551Skris# dashes changed to underlines. 657230237Sbaptcache_file=/dev/null 65858551Skrisexec_prefix=NONE 65958551Skrisno_create= 66058551Skrisno_recursion= 66158551Skrisprefix=NONE 66258551Skrisprogram_prefix=NONE 66358551Skrisprogram_suffix=NONE 66458551Skrisprogram_transform_name=s,x,x, 66558551Skrissilent= 66658551Skrissite= 66758551Skrissrcdir= 66858551Skrisverbose= 66958551Skrisx_includes=NONE 67058551Skrisx_libraries=NONE 671230237Sbapt 672230237Sbapt# Installation directory options. 673230237Sbapt# These are left unexpanded so users can "make install exec_prefix=/foo" 674230237Sbapt# and all the variables that are supposed to be based on exec_prefix 675230237Sbapt# by default will actually change. 676230237Sbapt# Use braces instead of parens because sh, perl, etc. also accept them. 677230237Sbapt# (The list follows the same order as the GNU Coding Standards.) 67858551Skrisbindir='${exec_prefix}/bin' 67958551Skrissbindir='${exec_prefix}/sbin' 68058551Skrislibexecdir='${exec_prefix}/libexec' 681230237Sbaptdatarootdir='${prefix}/share' 682230237Sbaptdatadir='${datarootdir}' 68358551Skrissysconfdir='${prefix}/etc' 68458551Skrissharedstatedir='${prefix}/com' 68558551Skrislocalstatedir='${prefix}/var' 68658551Skrisincludedir='${prefix}/include' 68758551Skrisoldincludedir='/usr/include' 688230237Sbaptdocdir='${datarootdir}/doc/${PACKAGE}' 689230237Sbaptinfodir='${datarootdir}/info' 690230237Sbapthtmldir='${docdir}' 691230237Sbaptdvidir='${docdir}' 692230237Sbaptpdfdir='${docdir}' 693230237Sbaptpsdir='${docdir}' 694230237Sbaptlibdir='${exec_prefix}/lib' 695230237Sbaptlocaledir='${datarootdir}/locale' 696230237Sbaptmandir='${datarootdir}/man' 69758551Skris 69858551Skrisac_prev= 699230237Sbaptac_dashdash= 70058551Skrisfor ac_option 70158551Skrisdo 70258551Skris # If the previous option needs an argument, assign it. 70358551Skris if test -n "$ac_prev"; then 704230237Sbapt eval $ac_prev=\$ac_option 70558551Skris ac_prev= 70658551Skris continue 70758551Skris fi 70858551Skris 709230237Sbapt case $ac_option in 710230237Sbapt *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 711230237Sbapt *) ac_optarg=yes ;; 71258551Skris esac 71358551Skris 71458551Skris # Accept the important Cygnus configure options, so we can diagnose typos. 71558551Skris 716230237Sbapt case $ac_dashdash$ac_option in 717230237Sbapt --) 718230237Sbapt ac_dashdash=yes ;; 71958551Skris 72058551Skris -bindir | --bindir | --bindi | --bind | --bin | --bi) 72158551Skris ac_prev=bindir ;; 72258551Skris -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 723230237Sbapt bindir=$ac_optarg ;; 72458551Skris 72558551Skris -build | --build | --buil | --bui | --bu) 726230237Sbapt ac_prev=build_alias ;; 72758551Skris -build=* | --build=* | --buil=* | --bui=* | --bu=*) 728230237Sbapt build_alias=$ac_optarg ;; 72958551Skris 73058551Skris -cache-file | --cache-file | --cache-fil | --cache-fi \ 73158551Skris | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 73258551Skris ac_prev=cache_file ;; 73358551Skris -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 73458551Skris | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 735230237Sbapt cache_file=$ac_optarg ;; 73658551Skris 737230237Sbapt --config-cache | -C) 738230237Sbapt cache_file=config.cache ;; 739230237Sbapt 740230237Sbapt -datadir | --datadir | --datadi | --datad) 74158551Skris ac_prev=datadir ;; 742230237Sbapt -datadir=* | --datadir=* | --datadi=* | --datad=*) 743230237Sbapt datadir=$ac_optarg ;; 74458551Skris 745230237Sbapt -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 746230237Sbapt | --dataroo | --dataro | --datar) 747230237Sbapt ac_prev=datarootdir ;; 748230237Sbapt -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 749230237Sbapt | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 750230237Sbapt datarootdir=$ac_optarg ;; 751230237Sbapt 75258551Skris -disable-* | --disable-*) 753230237Sbapt ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 75458551Skris # Reject names that are not valid shell variable names. 755230237Sbapt expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 756230237Sbapt { echo "$as_me: error: invalid feature name: $ac_feature" >&2 757230237Sbapt { (exit 1); exit 1; }; } 758230237Sbapt ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 759230237Sbapt eval enable_$ac_feature=no ;; 76058551Skris 761230237Sbapt -docdir | --docdir | --docdi | --doc | --do) 762230237Sbapt ac_prev=docdir ;; 763230237Sbapt -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 764230237Sbapt docdir=$ac_optarg ;; 765230237Sbapt 766230237Sbapt -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 767230237Sbapt ac_prev=dvidir ;; 768230237Sbapt -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 769230237Sbapt dvidir=$ac_optarg ;; 770230237Sbapt 77158551Skris -enable-* | --enable-*) 772230237Sbapt ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 77358551Skris # Reject names that are not valid shell variable names. 774230237Sbapt expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 775230237Sbapt { echo "$as_me: error: invalid feature name: $ac_feature" >&2 776230237Sbapt { (exit 1); exit 1; }; } 777230237Sbapt ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 778230237Sbapt eval enable_$ac_feature=\$ac_optarg ;; 77958551Skris 78058551Skris -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 78158551Skris | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 78258551Skris | --exec | --exe | --ex) 78358551Skris ac_prev=exec_prefix ;; 78458551Skris -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 78558551Skris | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 78658551Skris | --exec=* | --exe=* | --ex=*) 787230237Sbapt exec_prefix=$ac_optarg ;; 78858551Skris 78958551Skris -gas | --gas | --ga | --g) 79058551Skris # Obsolete; use --with-gas. 79158551Skris with_gas=yes ;; 79258551Skris 793230237Sbapt -help | --help | --hel | --he | -h) 794230237Sbapt ac_init_help=long ;; 795230237Sbapt -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 796230237Sbapt ac_init_help=recursive ;; 797230237Sbapt -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 798230237Sbapt ac_init_help=short ;; 79958551Skris 80058551Skris -host | --host | --hos | --ho) 801230237Sbapt ac_prev=host_alias ;; 80258551Skris -host=* | --host=* | --hos=* | --ho=*) 803230237Sbapt host_alias=$ac_optarg ;; 80458551Skris 805230237Sbapt -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 806230237Sbapt ac_prev=htmldir ;; 807230237Sbapt -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 808230237Sbapt | --ht=*) 809230237Sbapt htmldir=$ac_optarg ;; 810230237Sbapt 81158551Skris -includedir | --includedir | --includedi | --included | --include \ 81258551Skris | --includ | --inclu | --incl | --inc) 81358551Skris ac_prev=includedir ;; 81458551Skris -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 81558551Skris | --includ=* | --inclu=* | --incl=* | --inc=*) 816230237Sbapt includedir=$ac_optarg ;; 81758551Skris 81858551Skris -infodir | --infodir | --infodi | --infod | --info | --inf) 81958551Skris ac_prev=infodir ;; 82058551Skris -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 821230237Sbapt infodir=$ac_optarg ;; 82258551Skris 82358551Skris -libdir | --libdir | --libdi | --libd) 82458551Skris ac_prev=libdir ;; 82558551Skris -libdir=* | --libdir=* | --libdi=* | --libd=*) 826230237Sbapt libdir=$ac_optarg ;; 82758551Skris 82858551Skris -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 82958551Skris | --libexe | --libex | --libe) 83058551Skris ac_prev=libexecdir ;; 83158551Skris -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 83258551Skris | --libexe=* | --libex=* | --libe=*) 833230237Sbapt libexecdir=$ac_optarg ;; 83458551Skris 835230237Sbapt -localedir | --localedir | --localedi | --localed | --locale) 836230237Sbapt ac_prev=localedir ;; 837230237Sbapt -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 838230237Sbapt localedir=$ac_optarg ;; 839230237Sbapt 84058551Skris -localstatedir | --localstatedir | --localstatedi | --localstated \ 841230237Sbapt | --localstate | --localstat | --localsta | --localst | --locals) 84258551Skris ac_prev=localstatedir ;; 84358551Skris -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 844230237Sbapt | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 845230237Sbapt localstatedir=$ac_optarg ;; 84658551Skris 84758551Skris -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 84858551Skris ac_prev=mandir ;; 84958551Skris -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 850230237Sbapt mandir=$ac_optarg ;; 85158551Skris 85258551Skris -nfp | --nfp | --nf) 85358551Skris # Obsolete; use --without-fp. 85458551Skris with_fp=no ;; 85558551Skris 85658551Skris -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 857230237Sbapt | --no-cr | --no-c | -n) 85858551Skris no_create=yes ;; 85958551Skris 86058551Skris -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 86158551Skris | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 86258551Skris no_recursion=yes ;; 86358551Skris 86458551Skris -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 86558551Skris | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 86658551Skris | --oldin | --oldi | --old | --ol | --o) 86758551Skris ac_prev=oldincludedir ;; 86858551Skris -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 86958551Skris | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 87058551Skris | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 871230237Sbapt oldincludedir=$ac_optarg ;; 87258551Skris 87358551Skris -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 87458551Skris ac_prev=prefix ;; 87558551Skris -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 876230237Sbapt prefix=$ac_optarg ;; 87758551Skris 87858551Skris -program-prefix | --program-prefix | --program-prefi | --program-pref \ 87958551Skris | --program-pre | --program-pr | --program-p) 88058551Skris ac_prev=program_prefix ;; 88158551Skris -program-prefix=* | --program-prefix=* | --program-prefi=* \ 88258551Skris | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 883230237Sbapt program_prefix=$ac_optarg ;; 88458551Skris 88558551Skris -program-suffix | --program-suffix | --program-suffi | --program-suff \ 88658551Skris | --program-suf | --program-su | --program-s) 88758551Skris ac_prev=program_suffix ;; 88858551Skris -program-suffix=* | --program-suffix=* | --program-suffi=* \ 88958551Skris | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 890230237Sbapt program_suffix=$ac_optarg ;; 89158551Skris 89258551Skris -program-transform-name | --program-transform-name \ 89358551Skris | --program-transform-nam | --program-transform-na \ 89458551Skris | --program-transform-n | --program-transform- \ 89558551Skris | --program-transform | --program-transfor \ 89658551Skris | --program-transfo | --program-transf \ 89758551Skris | --program-trans | --program-tran \ 89858551Skris | --progr-tra | --program-tr | --program-t) 89958551Skris ac_prev=program_transform_name ;; 90058551Skris -program-transform-name=* | --program-transform-name=* \ 90158551Skris | --program-transform-nam=* | --program-transform-na=* \ 90258551Skris | --program-transform-n=* | --program-transform-=* \ 90358551Skris | --program-transform=* | --program-transfor=* \ 90458551Skris | --program-transfo=* | --program-transf=* \ 90558551Skris | --program-trans=* | --program-tran=* \ 90658551Skris | --progr-tra=* | --program-tr=* | --program-t=*) 907230237Sbapt program_transform_name=$ac_optarg ;; 90858551Skris 909230237Sbapt -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 910230237Sbapt ac_prev=pdfdir ;; 911230237Sbapt -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 912230237Sbapt pdfdir=$ac_optarg ;; 913230237Sbapt 914230237Sbapt -psdir | --psdir | --psdi | --psd | --ps) 915230237Sbapt ac_prev=psdir ;; 916230237Sbapt -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 917230237Sbapt psdir=$ac_optarg ;; 918230237Sbapt 91958551Skris -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 92058551Skris | -silent | --silent | --silen | --sile | --sil) 92158551Skris silent=yes ;; 92258551Skris 92358551Skris -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 92458551Skris ac_prev=sbindir ;; 92558551Skris -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 92658551Skris | --sbi=* | --sb=*) 927230237Sbapt sbindir=$ac_optarg ;; 92858551Skris 92958551Skris -sharedstatedir | --sharedstatedir | --sharedstatedi \ 93058551Skris | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 93158551Skris | --sharedst | --shareds | --shared | --share | --shar \ 93258551Skris | --sha | --sh) 93358551Skris ac_prev=sharedstatedir ;; 93458551Skris -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 93558551Skris | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 93658551Skris | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 93758551Skris | --sha=* | --sh=*) 938230237Sbapt sharedstatedir=$ac_optarg ;; 93958551Skris 94058551Skris -site | --site | --sit) 94158551Skris ac_prev=site ;; 94258551Skris -site=* | --site=* | --sit=*) 943230237Sbapt site=$ac_optarg ;; 94458551Skris 94558551Skris -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 94658551Skris ac_prev=srcdir ;; 94758551Skris -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 948230237Sbapt srcdir=$ac_optarg ;; 94958551Skris 95058551Skris -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 95158551Skris | --syscon | --sysco | --sysc | --sys | --sy) 95258551Skris ac_prev=sysconfdir ;; 95358551Skris -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 95458551Skris | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 955230237Sbapt sysconfdir=$ac_optarg ;; 95658551Skris 95758551Skris -target | --target | --targe | --targ | --tar | --ta | --t) 958230237Sbapt ac_prev=target_alias ;; 95958551Skris -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 960230237Sbapt target_alias=$ac_optarg ;; 96158551Skris 96258551Skris -v | -verbose | --verbose | --verbos | --verbo | --verb) 96358551Skris verbose=yes ;; 96458551Skris 965230237Sbapt -version | --version | --versio | --versi | --vers | -V) 966230237Sbapt ac_init_version=: ;; 96758551Skris 96858551Skris -with-* | --with-*) 969230237Sbapt ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 97058551Skris # Reject names that are not valid shell variable names. 971230237Sbapt expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 972230237Sbapt { echo "$as_me: error: invalid package name: $ac_package" >&2 973230237Sbapt { (exit 1); exit 1; }; } 974230237Sbapt ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 975230237Sbapt eval with_$ac_package=\$ac_optarg ;; 97658551Skris 97758551Skris -without-* | --without-*) 978230237Sbapt ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 97958551Skris # Reject names that are not valid shell variable names. 980230237Sbapt expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 981230237Sbapt { echo "$as_me: error: invalid package name: $ac_package" >&2 982230237Sbapt { (exit 1); exit 1; }; } 983230237Sbapt ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 984230237Sbapt eval with_$ac_package=no ;; 98558551Skris 98658551Skris --x) 98758551Skris # Obsolete; use --with-x. 98858551Skris with_x=yes ;; 98958551Skris 99058551Skris -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 99158551Skris | --x-incl | --x-inc | --x-in | --x-i) 99258551Skris ac_prev=x_includes ;; 99358551Skris -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 99458551Skris | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 995230237Sbapt x_includes=$ac_optarg ;; 99658551Skris 99758551Skris -x-libraries | --x-libraries | --x-librarie | --x-librari \ 99858551Skris | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 99958551Skris ac_prev=x_libraries ;; 100058551Skris -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 100158551Skris | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1002230237Sbapt x_libraries=$ac_optarg ;; 100358551Skris 1004230237Sbapt -*) { echo "$as_me: error: unrecognized option: $ac_option 1005230237SbaptTry \`$0 --help' for more information." >&2 1006230237Sbapt { (exit 1); exit 1; }; } 100758551Skris ;; 100858551Skris 1009230237Sbapt *=*) 1010230237Sbapt ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1011230237Sbapt # Reject names that are not valid shell variable names. 1012230237Sbapt expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1013230237Sbapt { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1014230237Sbapt { (exit 1); exit 1; }; } 1015230237Sbapt eval $ac_envvar=\$ac_optarg 1016230237Sbapt export $ac_envvar ;; 1017230237Sbapt 101858551Skris *) 1019230237Sbapt # FIXME: should be removed in autoconf 3.0. 1020230237Sbapt echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1021230237Sbapt expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1022230237Sbapt echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1023230237Sbapt : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 102458551Skris ;; 102558551Skris 102658551Skris esac 102758551Skrisdone 102858551Skris 102958551Skrisif test -n "$ac_prev"; then 1030230237Sbapt ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1031230237Sbapt { echo "$as_me: error: missing argument to $ac_option" >&2 1032230237Sbapt { (exit 1); exit 1; }; } 103358551Skrisfi 103458551Skris 1035230237Sbapt# Be sure to have absolute directory names. 1036230237Sbaptfor ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1037230237Sbapt datadir sysconfdir sharedstatedir localstatedir includedir \ 1038230237Sbapt oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1039230237Sbapt libdir localedir mandir 1040230237Sbaptdo 1041230237Sbapt eval ac_val=\$$ac_var 1042230237Sbapt case $ac_val in 1043230237Sbapt [\\/$]* | ?:[\\/]* ) continue;; 1044230237Sbapt NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1045230237Sbapt esac 1046230237Sbapt { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1047230237Sbapt { (exit 1); exit 1; }; } 1048230237Sbaptdone 104958551Skris 1050230237Sbapt# There might be people who depend on the old broken behavior: `$host' 1051230237Sbapt# used to hold the argument of --host etc. 1052230237Sbapt# FIXME: To remove some day. 1053230237Sbaptbuild=$build_alias 1054230237Sbapthost=$host_alias 1055230237Sbapttarget=$target_alias 1056230237Sbapt 1057230237Sbapt# FIXME: To remove some day. 1058230237Sbaptif test "x$host_alias" != x; then 1059230237Sbapt if test "x$build_alias" = x; then 1060230237Sbapt cross_compiling=maybe 1061230237Sbapt echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1062230237Sbapt If a cross compiler is detected then cross compile mode will be used." >&2 1063230237Sbapt elif test "x$build_alias" != "x$host_alias"; then 1064230237Sbapt cross_compiling=yes 1065230237Sbapt fi 106658551Skrisfi 106758551Skris 1068230237Sbaptac_tool_prefix= 1069230237Sbapttest -n "$host_alias" && ac_tool_prefix=$host_alias- 107058551Skris 1071230237Sbapttest "$silent" = yes && exec 6>/dev/null 107258551Skris 107358551Skris 1074230237Sbaptac_pwd=`pwd` && test -n "$ac_pwd" && 1075230237Sbaptac_ls_di=`ls -di .` && 1076230237Sbaptac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1077230237Sbapt { echo "$as_me: error: Working directory cannot be determined" >&2 1078230237Sbapt { (exit 1); exit 1; }; } 1079230237Sbapttest "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1080230237Sbapt { echo "$as_me: error: pwd does not report name of working directory" >&2 1081230237Sbapt { (exit 1); exit 1; }; } 108258551Skris 108358551Skris 108458551Skris# Find the source files, if location was not specified. 108558551Skrisif test -z "$srcdir"; then 108658551Skris ac_srcdir_defaulted=yes 1087230237Sbapt # Try the directory containing this script, then the parent directory. 1088230237Sbapt ac_confdir=`$as_dirname -- "$0" || 1089230237Sbapt$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1090230237Sbapt X"$0" : 'X\(//\)[^/]' \| \ 1091230237Sbapt X"$0" : 'X\(//\)$' \| \ 1092230237Sbapt X"$0" : 'X\(/\)' \| . 2>/dev/null || 1093230237Sbaptecho X"$0" | 1094230237Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1095230237Sbapt s//\1/ 1096230237Sbapt q 1097230237Sbapt } 1098230237Sbapt /^X\(\/\/\)[^/].*/{ 1099230237Sbapt s//\1/ 1100230237Sbapt q 1101230237Sbapt } 1102230237Sbapt /^X\(\/\/\)$/{ 1103230237Sbapt s//\1/ 1104230237Sbapt q 1105230237Sbapt } 1106230237Sbapt /^X\(\/\).*/{ 1107230237Sbapt s//\1/ 1108230237Sbapt q 1109230237Sbapt } 1110230237Sbapt s/.*/./; q'` 111158551Skris srcdir=$ac_confdir 1112230237Sbapt if test ! -r "$srcdir/$ac_unique_file"; then 111358551Skris srcdir=.. 111458551Skris fi 111558551Skriselse 111658551Skris ac_srcdir_defaulted=no 111758551Skrisfi 1118230237Sbaptif test ! -r "$srcdir/$ac_unique_file"; then 1119230237Sbapt test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1120230237Sbapt { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1121230237Sbapt { (exit 1); exit 1; }; } 112258551Skrisfi 1123230237Sbaptac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1124230237Sbaptac_abs_confdir=`( 1125230237Sbapt cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1126230237Sbapt { (exit 1); exit 1; }; } 1127230237Sbapt pwd)` 1128230237Sbapt# When building in place, set srcdir=. 1129230237Sbaptif test "$ac_abs_confdir" = "$ac_pwd"; then 1130230237Sbapt srcdir=. 1131230237Sbaptfi 1132230237Sbapt# Remove unnecessary trailing slashes from srcdir. 1133230237Sbapt# Double slashes in file names in object file debugging info 1134230237Sbapt# mess up M-x gdb in Emacs. 1135230237Sbaptcase $srcdir in 1136230237Sbapt*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1137230237Sbaptesac 1138230237Sbaptfor ac_var in $ac_precious_vars; do 1139230237Sbapt eval ac_env_${ac_var}_set=\${${ac_var}+set} 1140230237Sbapt eval ac_env_${ac_var}_value=\$${ac_var} 1141230237Sbapt eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1142230237Sbapt eval ac_cv_env_${ac_var}_value=\$${ac_var} 1143230237Sbaptdone 114458551Skris 1145230237Sbapt# 1146230237Sbapt# Report the --help message. 1147230237Sbapt# 1148230237Sbaptif test "$ac_init_help" = "long"; then 1149230237Sbapt # Omit some internal or obsolete options to make the list less imposing. 1150230237Sbapt # This message is too long to be a string in the A/UX 3.1 sh. 1151230237Sbapt cat <<_ACEOF 1152230237Sbapt\`configure' configures this package to adapt to many kinds of systems. 1153230237Sbapt 1154230237SbaptUsage: $0 [OPTION]... [VAR=VALUE]... 1155230237Sbapt 1156230237SbaptTo assign environment variables (e.g., CC, CFLAGS...), specify them as 1157230237SbaptVAR=VALUE. See below for descriptions of some of the useful variables. 1158230237Sbapt 1159230237SbaptDefaults for the options are specified in brackets. 1160230237Sbapt 1161230237SbaptConfiguration: 1162230237Sbapt -h, --help display this help and exit 1163230237Sbapt --help=short display options specific to this package 1164230237Sbapt --help=recursive display the short help of all the included packages 1165230237Sbapt -V, --version display version information and exit 1166230237Sbapt -q, --quiet, --silent do not print \`checking...' messages 1167230237Sbapt --cache-file=FILE cache test results in FILE [disabled] 1168230237Sbapt -C, --config-cache alias for \`--cache-file=config.cache' 1169230237Sbapt -n, --no-create do not create output files 1170230237Sbapt --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1171230237Sbapt 1172230237SbaptInstallation directories: 1173230237Sbapt --prefix=PREFIX install architecture-independent files in PREFIX 1174230237Sbapt [$ac_default_prefix] 1175230237Sbapt --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1176230237Sbapt [PREFIX] 1177230237Sbapt 1178230237SbaptBy default, \`make install' will install all the files in 1179230237Sbapt\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1180230237Sbaptan installation prefix other than \`$ac_default_prefix' using \`--prefix', 1181230237Sbaptfor instance \`--prefix=\$HOME'. 1182230237Sbapt 1183230237SbaptFor better control, use the options below. 1184230237Sbapt 1185230237SbaptFine tuning of the installation directories: 1186230237Sbapt --bindir=DIR user executables [EPREFIX/bin] 1187230237Sbapt --sbindir=DIR system admin executables [EPREFIX/sbin] 1188230237Sbapt --libexecdir=DIR program executables [EPREFIX/libexec] 1189230237Sbapt --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1190230237Sbapt --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1191230237Sbapt --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1192230237Sbapt --libdir=DIR object code libraries [EPREFIX/lib] 1193230237Sbapt --includedir=DIR C header files [PREFIX/include] 1194230237Sbapt --oldincludedir=DIR C header files for non-gcc [/usr/include] 1195230237Sbapt --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1196230237Sbapt --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1197230237Sbapt --infodir=DIR info documentation [DATAROOTDIR/info] 1198230237Sbapt --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1199230237Sbapt --mandir=DIR man documentation [DATAROOTDIR/man] 1200230237Sbapt --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1201230237Sbapt --htmldir=DIR html documentation [DOCDIR] 1202230237Sbapt --dvidir=DIR dvi documentation [DOCDIR] 1203230237Sbapt --pdfdir=DIR pdf documentation [DOCDIR] 1204230237Sbapt --psdir=DIR ps documentation [DOCDIR] 1205230237Sbapt_ACEOF 1206230237Sbapt 1207230237Sbapt cat <<\_ACEOF 1208230237Sbapt_ACEOF 1209230237Sbaptfi 1210230237Sbapt 1211230237Sbaptif test -n "$ac_init_help"; then 1212230237Sbapt 1213230237Sbapt cat <<\_ACEOF 1214230237Sbapt 1215230237SbaptSome influential environment variables: 1216230237Sbapt CC C compiler command 1217230237Sbapt CFLAGS C compiler flags 1218230237Sbapt LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1219230237Sbapt nonstandard directory <lib dir> 1220230237Sbapt LIBS libraries to pass to the linker, e.g. -l<library> 1221230237Sbapt CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1222230237Sbapt you have headers in a nonstandard directory <include dir> 1223230237Sbapt CPP C preprocessor 1224230237Sbapt CXX C++ compiler command 1225230237Sbapt CXXFLAGS C++ compiler flags 1226230237Sbapt CXXCPP C++ preprocessor 1227230237Sbapt 1228230237SbaptUse these variables to override the choices made by `configure' or to help 1229230237Sbaptit to find libraries and programs with nonstandard names/locations. 1230230237Sbapt 1231230237Sbapt_ACEOF 1232230237Sbaptac_status=$? 1233230237Sbaptfi 1234230237Sbapt 1235230237Sbaptif test "$ac_init_help" = "recursive"; then 1236230237Sbapt # If there are subdirs, report their specific --help. 1237230237Sbapt for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1238230237Sbapt test -d "$ac_dir" || continue 1239230237Sbapt ac_builddir=. 1240230237Sbapt 1241230237Sbaptcase "$ac_dir" in 1242230237Sbapt.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1243230237Sbapt*) 1244230237Sbapt ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1245230237Sbapt # A ".." for each directory in $ac_dir_suffix. 1246230237Sbapt ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1247230237Sbapt case $ac_top_builddir_sub in 1248230237Sbapt "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1249230237Sbapt *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1250230237Sbapt esac ;; 1251230237Sbaptesac 1252230237Sbaptac_abs_top_builddir=$ac_pwd 1253230237Sbaptac_abs_builddir=$ac_pwd$ac_dir_suffix 1254230237Sbapt# for backward compatibility: 1255230237Sbaptac_top_builddir=$ac_top_build_prefix 1256230237Sbapt 1257230237Sbaptcase $srcdir in 1258230237Sbapt .) # We are building in place. 1259230237Sbapt ac_srcdir=. 1260230237Sbapt ac_top_srcdir=$ac_top_builddir_sub 1261230237Sbapt ac_abs_top_srcdir=$ac_pwd ;; 1262230237Sbapt [\\/]* | ?:[\\/]* ) # Absolute name. 1263230237Sbapt ac_srcdir=$srcdir$ac_dir_suffix; 1264230237Sbapt ac_top_srcdir=$srcdir 1265230237Sbapt ac_abs_top_srcdir=$srcdir ;; 1266230237Sbapt *) # Relative name. 1267230237Sbapt ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1268230237Sbapt ac_top_srcdir=$ac_top_build_prefix$srcdir 1269230237Sbapt ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1270230237Sbaptesac 1271230237Sbaptac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1272230237Sbapt 1273230237Sbapt cd "$ac_dir" || { ac_status=$?; continue; } 1274230237Sbapt # Check for guested configure. 1275230237Sbapt if test -f "$ac_srcdir/configure.gnu"; then 1276230237Sbapt echo && 1277230237Sbapt $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1278230237Sbapt elif test -f "$ac_srcdir/configure"; then 1279230237Sbapt echo && 1280230237Sbapt $SHELL "$ac_srcdir/configure" --help=recursive 1281230237Sbapt else 1282230237Sbapt echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1283230237Sbapt fi || ac_status=$? 1284230237Sbapt cd "$ac_pwd" || { ac_status=$?; break; } 1285230237Sbapt done 1286230237Sbaptfi 1287230237Sbapt 1288230237Sbapttest -n "$ac_init_help" && exit $ac_status 1289230237Sbaptif $ac_init_version; then 1290230237Sbapt cat <<\_ACEOF 1291230237Sbaptconfigure 1292230237Sbaptgenerated by GNU Autoconf 2.61 1293230237Sbapt 1294230237SbaptCopyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1295230237Sbapt2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 1296230237SbaptThis configure script is free software; the Free Software Foundation 1297230237Sbaptgives unlimited permission to copy, distribute and modify it. 1298230237Sbapt_ACEOF 1299230237Sbapt exit 1300230237Sbaptfi 1301230237Sbaptcat >config.log <<_ACEOF 1302230237SbaptThis file contains any messages produced by compilers while 1303230237Sbaptrunning configure, to aid debugging if configure makes a mistake. 1304230237Sbapt 1305230237SbaptIt was created by $as_me, which was 1306230237Sbaptgenerated by GNU Autoconf 2.61. Invocation command line was 1307230237Sbapt 1308230237Sbapt $ $0 $@ 1309230237Sbapt 1310230237Sbapt_ACEOF 1311230237Sbaptexec 5>>config.log 1312230237Sbapt{ 1313230237Sbaptcat <<_ASUNAME 1314230237Sbapt## --------- ## 1315230237Sbapt## Platform. ## 1316230237Sbapt## --------- ## 1317230237Sbapt 1318230237Sbapthostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1319230237Sbaptuname -m = `(uname -m) 2>/dev/null || echo unknown` 1320230237Sbaptuname -r = `(uname -r) 2>/dev/null || echo unknown` 1321230237Sbaptuname -s = `(uname -s) 2>/dev/null || echo unknown` 1322230237Sbaptuname -v = `(uname -v) 2>/dev/null || echo unknown` 1323230237Sbapt 1324230237Sbapt/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1325230237Sbapt/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1326230237Sbapt 1327230237Sbapt/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1328230237Sbapt/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1329230237Sbapt/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1330230237Sbapt/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1331230237Sbapt/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1332230237Sbapt/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1333230237Sbapt/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1334230237Sbapt 1335230237Sbapt_ASUNAME 1336230237Sbapt 1337230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1338230237Sbaptfor as_dir in $PATH 1339230237Sbaptdo 1340230237Sbapt IFS=$as_save_IFS 1341230237Sbapt test -z "$as_dir" && as_dir=. 1342230237Sbapt echo "PATH: $as_dir" 1343230237Sbaptdone 1344230237SbaptIFS=$as_save_IFS 1345230237Sbapt 1346230237Sbapt} >&5 1347230237Sbapt 1348230237Sbaptcat >&5 <<_ACEOF 1349230237Sbapt 1350230237Sbapt 1351230237Sbapt## ----------- ## 1352230237Sbapt## Core tests. ## 1353230237Sbapt## ----------- ## 1354230237Sbapt 1355230237Sbapt_ACEOF 1356230237Sbapt 1357230237Sbapt 1358230237Sbapt# Keep a trace of the command line. 1359230237Sbapt# Strip out --no-create and --no-recursion so they do not pile up. 1360230237Sbapt# Strip out --silent because we don't want to record it for future runs. 1361230237Sbapt# Also quote any args containing shell meta-characters. 1362230237Sbapt# Make two passes to allow for proper duplicate-argument suppression. 1363230237Sbaptac_configure_args= 1364230237Sbaptac_configure_args0= 1365230237Sbaptac_configure_args1= 1366230237Sbaptac_must_keep_next=false 1367230237Sbaptfor ac_pass in 1 2 1368230237Sbaptdo 1369230237Sbapt for ac_arg 1370230237Sbapt do 1371230237Sbapt case $ac_arg in 1372230237Sbapt -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1373230237Sbapt -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1374230237Sbapt | -silent | --silent | --silen | --sile | --sil) 1375230237Sbapt continue ;; 1376230237Sbapt *\'*) 1377230237Sbapt ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1378230237Sbapt esac 1379230237Sbapt case $ac_pass in 1380230237Sbapt 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1381230237Sbapt 2) 1382230237Sbapt ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1383230237Sbapt if test $ac_must_keep_next = true; then 1384230237Sbapt ac_must_keep_next=false # Got value, back to normal. 1385230237Sbapt else 1386230237Sbapt case $ac_arg in 1387230237Sbapt *=* | --config-cache | -C | -disable-* | --disable-* \ 1388230237Sbapt | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1389230237Sbapt | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1390230237Sbapt | -with-* | --with-* | -without-* | --without-* | --x) 1391230237Sbapt case "$ac_configure_args0 " in 1392230237Sbapt "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1393230237Sbapt esac 1394230237Sbapt ;; 1395230237Sbapt -* ) ac_must_keep_next=true ;; 1396230237Sbapt esac 1397230237Sbapt fi 1398230237Sbapt ac_configure_args="$ac_configure_args '$ac_arg'" 1399230237Sbapt ;; 1400230237Sbapt esac 1401230237Sbapt done 1402230237Sbaptdone 1403230237Sbapt$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1404230237Sbapt$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1405230237Sbapt 1406230237Sbapt# When interrupted or exit'd, cleanup temporary files, and complete 1407230237Sbapt# config.log. We remove comments because anyway the quotes in there 1408230237Sbapt# would cause problems or look ugly. 1409230237Sbapt# WARNING: Use '\'' to represent an apostrophe within the trap. 1410230237Sbapt# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1411230237Sbapttrap 'exit_status=$? 1412230237Sbapt # Save into config.log some information that might help in debugging. 1413230237Sbapt { 1414230237Sbapt echo 1415230237Sbapt 1416230237Sbapt cat <<\_ASBOX 1417230237Sbapt## ---------------- ## 1418230237Sbapt## Cache variables. ## 1419230237Sbapt## ---------------- ## 1420230237Sbapt_ASBOX 1421230237Sbapt echo 1422230237Sbapt # The following way of writing the cache mishandles newlines in values, 1423230237Sbapt( 1424230237Sbapt for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1425230237Sbapt eval ac_val=\$$ac_var 1426230237Sbapt case $ac_val in #( 1427230237Sbapt *${as_nl}*) 1428230237Sbapt case $ac_var in #( 1429230237Sbapt *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1430230237Sbaptecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1431230237Sbapt esac 1432230237Sbapt case $ac_var in #( 1433230237Sbapt _ | IFS | as_nl) ;; #( 1434230237Sbapt *) $as_unset $ac_var ;; 1435230237Sbapt esac ;; 1436230237Sbapt esac 1437230237Sbapt done 1438230237Sbapt (set) 2>&1 | 1439230237Sbapt case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1440230237Sbapt *${as_nl}ac_space=\ *) 1441230237Sbapt sed -n \ 1442230237Sbapt "s/'\''/'\''\\\\'\'''\''/g; 1443230237Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1444230237Sbapt ;; #( 1445230237Sbapt *) 1446230237Sbapt sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1447230237Sbapt ;; 1448230237Sbapt esac | 1449230237Sbapt sort 1450230237Sbapt) 1451230237Sbapt echo 1452230237Sbapt 1453230237Sbapt cat <<\_ASBOX 1454230237Sbapt## ----------------- ## 1455230237Sbapt## Output variables. ## 1456230237Sbapt## ----------------- ## 1457230237Sbapt_ASBOX 1458230237Sbapt echo 1459230237Sbapt for ac_var in $ac_subst_vars 1460230237Sbapt do 1461230237Sbapt eval ac_val=\$$ac_var 1462230237Sbapt case $ac_val in 1463230237Sbapt *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1464230237Sbapt esac 1465230237Sbapt echo "$ac_var='\''$ac_val'\''" 1466230237Sbapt done | sort 1467230237Sbapt echo 1468230237Sbapt 1469230237Sbapt if test -n "$ac_subst_files"; then 1470230237Sbapt cat <<\_ASBOX 1471230237Sbapt## ------------------- ## 1472230237Sbapt## File substitutions. ## 1473230237Sbapt## ------------------- ## 1474230237Sbapt_ASBOX 1475230237Sbapt echo 1476230237Sbapt for ac_var in $ac_subst_files 1477230237Sbapt do 1478230237Sbapt eval ac_val=\$$ac_var 1479230237Sbapt case $ac_val in 1480230237Sbapt *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1481230237Sbapt esac 1482230237Sbapt echo "$ac_var='\''$ac_val'\''" 1483230237Sbapt done | sort 1484230237Sbapt echo 1485230237Sbapt fi 1486230237Sbapt 1487230237Sbapt if test -s confdefs.h; then 1488230237Sbapt cat <<\_ASBOX 1489230237Sbapt## ----------- ## 1490230237Sbapt## confdefs.h. ## 1491230237Sbapt## ----------- ## 1492230237Sbapt_ASBOX 1493230237Sbapt echo 1494230237Sbapt cat confdefs.h 1495230237Sbapt echo 1496230237Sbapt fi 1497230237Sbapt test "$ac_signal" != 0 && 1498230237Sbapt echo "$as_me: caught signal $ac_signal" 1499230237Sbapt echo "$as_me: exit $exit_status" 1500230237Sbapt } >&5 1501230237Sbapt rm -f core *.core core.conftest.* && 1502230237Sbapt rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1503230237Sbapt exit $exit_status 1504230237Sbapt' 0 1505230237Sbaptfor ac_signal in 1 2 13 15; do 1506230237Sbapt trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1507230237Sbaptdone 1508230237Sbaptac_signal=0 1509230237Sbapt 1510230237Sbapt# confdefs.h avoids OS command line length limits that DEFS can exceed. 1511230237Sbaptrm -f -r conftest* confdefs.h 1512230237Sbapt 1513230237Sbapt# Predefined preprocessor variables. 1514230237Sbapt 1515230237Sbaptcat >>confdefs.h <<_ACEOF 1516230237Sbapt#define PACKAGE_NAME "$PACKAGE_NAME" 1517230237Sbapt_ACEOF 1518230237Sbapt 1519230237Sbapt 1520230237Sbaptcat >>confdefs.h <<_ACEOF 1521230237Sbapt#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1522230237Sbapt_ACEOF 1523230237Sbapt 1524230237Sbapt 1525230237Sbaptcat >>confdefs.h <<_ACEOF 1526230237Sbapt#define PACKAGE_VERSION "$PACKAGE_VERSION" 1527230237Sbapt_ACEOF 1528230237Sbapt 1529230237Sbapt 1530230237Sbaptcat >>confdefs.h <<_ACEOF 1531230237Sbapt#define PACKAGE_STRING "$PACKAGE_STRING" 1532230237Sbapt_ACEOF 1533230237Sbapt 1534230237Sbapt 1535230237Sbaptcat >>confdefs.h <<_ACEOF 1536230237Sbapt#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1537230237Sbapt_ACEOF 1538230237Sbapt 1539230237Sbapt 1540230237Sbapt# Let the site file select an alternate cache file if it wants to. 154158551Skris# Prefer explicitly selected file to automatically selected ones. 1542230237Sbaptif test -n "$CONFIG_SITE"; then 1543230237Sbapt set x "$CONFIG_SITE" 1544230237Sbaptelif test "x$prefix" != xNONE; then 1545230237Sbapt set x "$prefix/share/config.site" "$prefix/etc/config.site" 1546230237Sbaptelse 1547230237Sbapt set x "$ac_default_prefix/share/config.site" \ 1548230237Sbapt "$ac_default_prefix/etc/config.site" 154958551Skrisfi 1550230237Sbaptshift 1551230237Sbaptfor ac_site_file 1552230237Sbaptdo 155358551Skris if test -r "$ac_site_file"; then 1554230237Sbapt { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1555230237Sbaptecho "$as_me: loading site script $ac_site_file" >&6;} 1556230237Sbapt sed 's/^/| /' "$ac_site_file" >&5 155758551Skris . "$ac_site_file" 155858551Skris fi 155958551Skrisdone 156058551Skris 156158551Skrisif test -r "$cache_file"; then 1562230237Sbapt # Some versions of bash will fail to source /dev/null (special 1563230237Sbapt # files actually), so we avoid doing that. 1564230237Sbapt if test -f "$cache_file"; then 1565230237Sbapt { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1566230237Sbaptecho "$as_me: loading cache $cache_file" >&6;} 1567230237Sbapt case $cache_file in 1568230237Sbapt [\\/]* | ?:[\\/]* ) . "$cache_file";; 1569230237Sbapt *) . "./$cache_file";; 1570230237Sbapt esac 1571230237Sbapt fi 157258551Skriselse 1573230237Sbapt { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1574230237Sbaptecho "$as_me: creating cache $cache_file" >&6;} 1575230237Sbapt >$cache_file 157658551Skrisfi 157758551Skris 1578230237Sbapt# Check that the precious variables saved in the cache have kept the same 1579230237Sbapt# value. 1580230237Sbaptac_cache_corrupted=false 1581230237Sbaptfor ac_var in $ac_precious_vars; do 1582230237Sbapt eval ac_old_set=\$ac_cv_env_${ac_var}_set 1583230237Sbapt eval ac_new_set=\$ac_env_${ac_var}_set 1584230237Sbapt eval ac_old_val=\$ac_cv_env_${ac_var}_value 1585230237Sbapt eval ac_new_val=\$ac_env_${ac_var}_value 1586230237Sbapt case $ac_old_set,$ac_new_set in 1587230237Sbapt set,) 1588230237Sbapt { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1589230237Sbaptecho "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1590230237Sbapt ac_cache_corrupted=: ;; 1591230237Sbapt ,set) 1592230237Sbapt { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1593230237Sbaptecho "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1594230237Sbapt ac_cache_corrupted=: ;; 1595230237Sbapt ,);; 1596230237Sbapt *) 1597230237Sbapt if test "x$ac_old_val" != "x$ac_new_val"; then 1598230237Sbapt { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1599230237Sbaptecho "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1600230237Sbapt { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1601230237Sbaptecho "$as_me: former value: $ac_old_val" >&2;} 1602230237Sbapt { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1603230237Sbaptecho "$as_me: current value: $ac_new_val" >&2;} 1604230237Sbapt ac_cache_corrupted=: 1605230237Sbapt fi;; 1606230237Sbapt esac 1607230237Sbapt # Pass precious variables to config.status. 1608230237Sbapt if test "$ac_new_set" = set; then 1609230237Sbapt case $ac_new_val in 1610230237Sbapt *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1611230237Sbapt *) ac_arg=$ac_var=$ac_new_val ;; 1612230237Sbapt esac 1613230237Sbapt case " $ac_configure_args " in 1614230237Sbapt *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1615230237Sbapt *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1616230237Sbapt esac 1617230237Sbapt fi 1618230237Sbaptdone 1619230237Sbaptif $ac_cache_corrupted; then 1620230237Sbapt { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1621230237Sbaptecho "$as_me: error: changes in the environment can compromise the build" >&2;} 1622230237Sbapt { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1623230237Sbaptecho "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1624230237Sbapt { (exit 1); exit 1; }; } 1625230237Sbaptfi 1626230237Sbapt 1627230237Sbapt 1628230237Sbapt 1629230237Sbapt 1630230237Sbapt 1631230237Sbapt 1632230237Sbapt 1633230237Sbapt 1634230237Sbapt 1635230237Sbapt 1636230237Sbapt 1637230237Sbapt 1638230237Sbapt 1639230237Sbapt 1640230237Sbapt 1641230237Sbapt 1642230237Sbapt 164358551Skrisac_ext=c 164458551Skrisac_cpp='$CPP $CPPFLAGS' 1645230237Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1646230237Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1647230237Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 164858551Skris 1649230237Sbapt 1650230237Sbapt{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1651230237Sbaptecho $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } 1652230237Sbaptset x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 1653230237Sbaptif { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 1654230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1655230237Sbaptelse 1656230237Sbapt cat >conftest.make <<\_ACEOF 1657230237SbaptSHELL = /bin/sh 1658230237Sbaptall: 1659230237Sbapt @echo '@@@%%%=$(MAKE)=@@@%%%' 1660230237Sbapt_ACEOF 1661230237Sbapt# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1662230237Sbaptcase `${MAKE-make} -f conftest.make 2>/dev/null` in 1663230237Sbapt *@@@%%%=?*=@@@%%%*) 1664230237Sbapt eval ac_cv_prog_make_${ac_make}_set=yes;; 1665230237Sbapt *) 1666230237Sbapt eval ac_cv_prog_make_${ac_make}_set=no;; 1667230237Sbaptesac 1668230237Sbaptrm -f conftest.make 1669230237Sbaptfi 1670230237Sbaptif eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 1671230237Sbapt { echo "$as_me:$LINENO: result: yes" >&5 1672230237Sbaptecho "${ECHO_T}yes" >&6; } 1673230237Sbapt SET_MAKE= 1674230237Sbaptelse 1675230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 1676230237Sbaptecho "${ECHO_T}no" >&6; } 1677230237Sbapt SET_MAKE="MAKE=${MAKE-make}" 1678230237Sbaptfi 1679230237Sbapt 1680230237Sbaptac_ext=c 1681230237Sbaptac_cpp='$CPP $CPPFLAGS' 1682230237Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1683230237Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1684230237Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 1685230237Sbaptif test -n "$ac_tool_prefix"; then 1686230237Sbapt # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1687230237Sbaptset dummy ${ac_tool_prefix}gcc; ac_word=$2 1688230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1689230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1690230237Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1691230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1692230237Sbaptelse 1693230237Sbapt if test -n "$CC"; then 1694230237Sbapt ac_cv_prog_CC="$CC" # Let the user override the test. 1695230237Sbaptelse 1696230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1697230237Sbaptfor as_dir in $PATH 1698230237Sbaptdo 1699230237Sbapt IFS=$as_save_IFS 1700230237Sbapt test -z "$as_dir" && as_dir=. 1701230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 1702230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1703230237Sbapt ac_cv_prog_CC="${ac_tool_prefix}gcc" 1704230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1705230237Sbapt break 2 170658551Skris fi 1707230237Sbaptdone 1708230237Sbaptdone 1709230237SbaptIFS=$as_save_IFS 1710230237Sbapt 1711230237Sbaptfi 1712230237Sbaptfi 1713230237SbaptCC=$ac_cv_prog_CC 1714230237Sbaptif test -n "$CC"; then 1715230237Sbapt { echo "$as_me:$LINENO: result: $CC" >&5 1716230237Sbaptecho "${ECHO_T}$CC" >&6; } 171758551Skriselse 1718230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 1719230237Sbaptecho "${ECHO_T}no" >&6; } 172058551Skrisfi 172158551Skris 172258551Skris 1723230237Sbaptfi 1724230237Sbaptif test -z "$ac_cv_prog_CC"; then 1725230237Sbapt ac_ct_CC=$CC 1726230237Sbapt # Extract the first word of "gcc", so it can be a program name with args. 1727230237Sbaptset dummy gcc; ac_word=$2 1728230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1729230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1730230237Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1731230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 173258551Skriselse 1733230237Sbapt if test -n "$ac_ct_CC"; then 1734230237Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 173558551Skriselse 1736230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1737230237Sbaptfor as_dir in $PATH 1738230237Sbaptdo 1739230237Sbapt IFS=$as_save_IFS 1740230237Sbapt test -z "$as_dir" && as_dir=. 1741230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 1742230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1743230237Sbapt ac_cv_prog_ac_ct_CC="gcc" 1744230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1745230237Sbapt break 2 1746230237Sbapt fi 1747230237Sbaptdone 1748230237Sbaptdone 1749230237SbaptIFS=$as_save_IFS 1750230237Sbapt 175158551Skrisfi 175258551Skrisfi 1753230237Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1754230237Sbaptif test -n "$ac_ct_CC"; then 1755230237Sbapt { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1756230237Sbaptecho "${ECHO_T}$ac_ct_CC" >&6; } 175758551Skriselse 1758230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 1759230237Sbaptecho "${ECHO_T}no" >&6; } 176058551Skrisfi 176158551Skris 1762230237Sbapt if test "x$ac_ct_CC" = x; then 1763230237Sbapt CC="" 1764230237Sbapt else 1765230237Sbapt case $cross_compiling:$ac_tool_warned in 1766230237Sbaptyes:) 1767230237Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1768230237Sbaptwhose name does not start with the host triplet. If you think this 1769230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5 1770230237Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1771230237Sbaptwhose name does not start with the host triplet. If you think this 1772230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;} 1773230237Sbaptac_tool_warned=yes ;; 1774230237Sbaptesac 1775230237Sbapt CC=$ac_ct_CC 1776230237Sbapt fi 177758551Skriselse 1778230237Sbapt CC="$ac_cv_prog_CC" 1779230237Sbaptfi 1780230237Sbapt 1781230237Sbaptif test -z "$CC"; then 1782230237Sbapt if test -n "$ac_tool_prefix"; then 1783230237Sbapt # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1784230237Sbaptset dummy ${ac_tool_prefix}cc; ac_word=$2 1785230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1786230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1787230237Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1788230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1789230237Sbaptelse 179058551Skris if test -n "$CC"; then 179158551Skris ac_cv_prog_CC="$CC" # Let the user override the test. 179258551Skriselse 1793230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1794230237Sbaptfor as_dir in $PATH 1795230237Sbaptdo 1796230237Sbapt IFS=$as_save_IFS 1797230237Sbapt test -z "$as_dir" && as_dir=. 1798230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 1799230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1800230237Sbapt ac_cv_prog_CC="${ac_tool_prefix}cc" 1801230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1802230237Sbapt break 2 1803230237Sbapt fi 1804230237Sbaptdone 1805230237Sbaptdone 1806230237SbaptIFS=$as_save_IFS 1807230237Sbapt 180858551Skrisfi 180958551Skrisfi 1810230237SbaptCC=$ac_cv_prog_CC 181158551Skrisif test -n "$CC"; then 1812230237Sbapt { echo "$as_me:$LINENO: result: $CC" >&5 1813230237Sbaptecho "${ECHO_T}$CC" >&6; } 181458551Skriselse 1815230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 1816230237Sbaptecho "${ECHO_T}no" >&6; } 181758551Skrisfi 181858551Skris 1819230237Sbapt 1820230237Sbapt fi 1821230237Sbaptfi 182258551Skrisif test -z "$CC"; then 182358551Skris # Extract the first word of "cc", so it can be a program name with args. 182458551Skrisset dummy cc; ac_word=$2 1825230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1826230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1827230237Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1828230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 182958551Skriselse 183058551Skris if test -n "$CC"; then 183158551Skris ac_cv_prog_CC="$CC" # Let the user override the test. 183258551Skriselse 183358551Skris ac_prog_rejected=no 1834230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1835230237Sbaptfor as_dir in $PATH 1836230237Sbaptdo 1837230237Sbapt IFS=$as_save_IFS 1838230237Sbapt test -z "$as_dir" && as_dir=. 1839230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 1840230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1841230237Sbapt if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1842230237Sbapt ac_prog_rejected=yes 1843230237Sbapt continue 1844230237Sbapt fi 1845230237Sbapt ac_cv_prog_CC="cc" 1846230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1847230237Sbapt break 2 1848230237Sbapt fi 1849230237Sbaptdone 1850230237Sbaptdone 1851230237SbaptIFS=$as_save_IFS 1852230237Sbapt 185358551Skrisif test $ac_prog_rejected = yes; then 185458551Skris # We found a bogon in the path, so make sure we never use it. 185558551Skris set dummy $ac_cv_prog_CC 185658551Skris shift 1857230237Sbapt if test $# != 0; then 185858551Skris # We chose a different compiler from the bogus one. 185958551Skris # However, it has the same basename, so the bogon will be chosen 186058551Skris # first if we set CC to just the basename; use the full file name. 186158551Skris shift 1862230237Sbapt ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 186358551Skris fi 186458551Skrisfi 186558551Skrisfi 186658551Skrisfi 1867230237SbaptCC=$ac_cv_prog_CC 186858551Skrisif test -n "$CC"; then 1869230237Sbapt { echo "$as_me:$LINENO: result: $CC" >&5 1870230237Sbaptecho "${ECHO_T}$CC" >&6; } 187158551Skriselse 1872230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 1873230237Sbaptecho "${ECHO_T}no" >&6; } 187458551Skrisfi 187558551Skris 1876230237Sbapt 1877230237Sbaptfi 1878230237Sbaptif test -z "$CC"; then 1879230237Sbapt if test -n "$ac_tool_prefix"; then 1880230237Sbapt for ac_prog in cl.exe 1881230237Sbapt do 1882230237Sbapt # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1883230237Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2 1884230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1885230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1886230237Sbaptif test "${ac_cv_prog_CC+set}" = set; then 1887230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 188867064Sobrienelse 188967064Sobrien if test -n "$CC"; then 189067064Sobrien ac_cv_prog_CC="$CC" # Let the user override the test. 189167064Sobrienelse 1892230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893230237Sbaptfor as_dir in $PATH 1894230237Sbaptdo 1895230237Sbapt IFS=$as_save_IFS 1896230237Sbapt test -z "$as_dir" && as_dir=. 1897230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 1898230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1899230237Sbapt ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1900230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1901230237Sbapt break 2 1902230237Sbapt fi 1903230237Sbaptdone 1904230237Sbaptdone 1905230237SbaptIFS=$as_save_IFS 1906230237Sbapt 190767064Sobrienfi 190867064Sobrienfi 1909230237SbaptCC=$ac_cv_prog_CC 191067064Sobrienif test -n "$CC"; then 1911230237Sbapt { echo "$as_me:$LINENO: result: $CC" >&5 1912230237Sbaptecho "${ECHO_T}$CC" >&6; } 191367064Sobrienelse 1914230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 1915230237Sbaptecho "${ECHO_T}no" >&6; } 191667064Sobrienfi 1917230237Sbapt 1918230237Sbapt 1919230237Sbapt test -n "$CC" && break 1920230237Sbapt done 1921230237Sbaptfi 1922230237Sbaptif test -z "$CC"; then 1923230237Sbapt ac_ct_CC=$CC 1924230237Sbapt for ac_prog in cl.exe 1925230237Sbaptdo 1926230237Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 1927230237Sbaptset dummy $ac_prog; ac_word=$2 1928230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 1929230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1930230237Sbaptif test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1931230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 1932230237Sbaptelse 1933230237Sbapt if test -n "$ac_ct_CC"; then 1934230237Sbapt ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1935230237Sbaptelse 1936230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1937230237Sbaptfor as_dir in $PATH 1938230237Sbaptdo 1939230237Sbapt IFS=$as_save_IFS 1940230237Sbapt test -z "$as_dir" && as_dir=. 1941230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 1942230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1943230237Sbapt ac_cv_prog_ac_ct_CC="$ac_prog" 1944230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1945230237Sbapt break 2 194667064Sobrien fi 1947230237Sbaptdone 1948230237Sbaptdone 1949230237SbaptIFS=$as_save_IFS 1950230237Sbapt 195158551Skrisfi 1952230237Sbaptfi 1953230237Sbaptac_ct_CC=$ac_cv_prog_ac_ct_CC 1954230237Sbaptif test -n "$ac_ct_CC"; then 1955230237Sbapt { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1956230237Sbaptecho "${ECHO_T}$ac_ct_CC" >&6; } 1957230237Sbaptelse 1958230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 1959230237Sbaptecho "${ECHO_T}no" >&6; } 1960230237Sbaptfi 196158551Skris 196258551Skris 1963230237Sbapt test -n "$ac_ct_CC" && break 1964230237Sbaptdone 196558551Skris 1966230237Sbapt if test "x$ac_ct_CC" = x; then 1967230237Sbapt CC="" 1968230237Sbapt else 1969230237Sbapt case $cross_compiling:$ac_tool_warned in 1970230237Sbaptyes:) 1971230237Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1972230237Sbaptwhose name does not start with the host triplet. If you think this 1973230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5 1974230237Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1975230237Sbaptwhose name does not start with the host triplet. If you think this 1976230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;} 1977230237Sbaptac_tool_warned=yes ;; 1978230237Sbaptesac 1979230237Sbapt CC=$ac_ct_CC 1980230237Sbapt fi 1981230237Sbaptfi 198267064Sobrien 1983230237Sbaptfi 198467064Sobrien 1985230237Sbapt 1986230237Sbapttest -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 1987230237SbaptSee \`config.log' for more details." >&5 1988230237Sbaptecho "$as_me: error: no acceptable C compiler found in \$PATH 1989230237SbaptSee \`config.log' for more details." >&2;} 1990230237Sbapt { (exit 1); exit 1; }; } 1991230237Sbapt 1992230237Sbapt# Provide some information about the compiler. 1993230237Sbaptecho "$as_me:$LINENO: checking for C compiler version" >&5 1994230237Sbaptac_compiler=`set X $ac_compile; echo $2` 1995230237Sbapt{ (ac_try="$ac_compiler --version >&5" 1996230237Sbaptcase "(($ac_try" in 1997230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1998230237Sbapt *) ac_try_echo=$ac_try;; 1999230237Sbaptesac 2000230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2001230237Sbapt (eval "$ac_compiler --version >&5") 2>&5 2002230237Sbapt ac_status=$? 2003230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2004230237Sbapt (exit $ac_status); } 2005230237Sbapt{ (ac_try="$ac_compiler -v >&5" 2006230237Sbaptcase "(($ac_try" in 2007230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2008230237Sbapt *) ac_try_echo=$ac_try;; 2009230237Sbaptesac 2010230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2011230237Sbapt (eval "$ac_compiler -v >&5") 2>&5 2012230237Sbapt ac_status=$? 2013230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2014230237Sbapt (exit $ac_status); } 2015230237Sbapt{ (ac_try="$ac_compiler -V >&5" 2016230237Sbaptcase "(($ac_try" in 2017230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2018230237Sbapt *) ac_try_echo=$ac_try;; 2019230237Sbaptesac 2020230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2021230237Sbapt (eval "$ac_compiler -V >&5") 2>&5 2022230237Sbapt ac_status=$? 2023230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2024230237Sbapt (exit $ac_status); } 2025230237Sbapt 2026230237Sbaptcat >conftest.$ac_ext <<_ACEOF 2027230237Sbapt/* confdefs.h. */ 2028230237Sbapt_ACEOF 2029230237Sbaptcat confdefs.h >>conftest.$ac_ext 2030230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2031230237Sbapt/* end confdefs.h. */ 2032230237Sbapt 2033230237Sbaptint 2034230237Sbaptmain () 2035230237Sbapt{ 2036230237Sbapt 2037230237Sbapt ; 2038230237Sbapt return 0; 2039230237Sbapt} 2040230237Sbapt_ACEOF 2041230237Sbaptac_clean_files_save=$ac_clean_files 2042230237Sbaptac_clean_files="$ac_clean_files a.out a.exe b.out" 2043230237Sbapt# Try to create an executable without -o first, disregard a.out. 2044230237Sbapt# It will help us diagnose broken compilers, and finding out an intuition 2045230237Sbapt# of exeext. 2046230237Sbapt{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2047230237Sbaptecho $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 2048230237Sbaptac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2049230237Sbapt# 2050230237Sbapt# List of possible output files, starting from the most likely. 2051230237Sbapt# The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2052230237Sbapt# only as a last resort. b.out is created by i960 compilers. 2053230237Sbaptac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2054230237Sbapt# 2055230237Sbapt# The IRIX 6 linker writes into existing files which may not be 2056230237Sbapt# executable, retaining their permissions. Remove them first so a 2057230237Sbapt# subsequent execution test works. 2058230237Sbaptac_rmfiles= 2059230237Sbaptfor ac_file in $ac_files 2060230237Sbaptdo 2061230237Sbapt case $ac_file in 2062230237Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2063230237Sbapt * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2064230237Sbapt esac 2065230237Sbaptdone 2066230237Sbaptrm -f $ac_rmfiles 2067230237Sbapt 2068230237Sbaptif { (ac_try="$ac_link_default" 2069230237Sbaptcase "(($ac_try" in 2070230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2071230237Sbapt *) ac_try_echo=$ac_try;; 2072230237Sbaptesac 2073230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2074230237Sbapt (eval "$ac_link_default") 2>&5 2075230237Sbapt ac_status=$? 2076230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2077230237Sbapt (exit $ac_status); }; then 2078230237Sbapt # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2079230237Sbapt# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2080230237Sbapt# in a Makefile. We should not override ac_cv_exeext if it was cached, 2081230237Sbapt# so that the user can short-circuit this test for compilers unknown to 2082230237Sbapt# Autoconf. 2083230237Sbaptfor ac_file in $ac_files '' 2084230237Sbaptdo 2085230237Sbapt test -f "$ac_file" || continue 2086230237Sbapt case $ac_file in 2087230237Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 2088230237Sbapt ;; 2089230237Sbapt [ab].out ) 2090230237Sbapt # We found the default executable, but exeext='' is most 2091230237Sbapt # certainly right. 2092230237Sbapt break;; 2093230237Sbapt *.* ) 2094230237Sbapt if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2095230237Sbapt then :; else 2096230237Sbapt ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2097230237Sbapt fi 2098230237Sbapt # We set ac_cv_exeext here because the later test for it is not 2099230237Sbapt # safe: cross compilers may not add the suffix if given an `-o' 2100230237Sbapt # argument, so we may need to know it at that point already. 2101230237Sbapt # Even if this section looks crufty: it has the advantage of 2102230237Sbapt # actually working. 2103230237Sbapt break;; 2104230237Sbapt * ) 2105230237Sbapt break;; 2106230237Sbapt esac 2107230237Sbaptdone 2108230237Sbapttest "$ac_cv_exeext" = no && ac_cv_exeext= 2109230237Sbapt 2110230237Sbaptelse 2111230237Sbapt ac_file='' 2112230237Sbaptfi 2113230237Sbapt 2114230237Sbapt{ echo "$as_me:$LINENO: result: $ac_file" >&5 2115230237Sbaptecho "${ECHO_T}$ac_file" >&6; } 2116230237Sbaptif test -z "$ac_file"; then 2117230237Sbapt echo "$as_me: failed program was:" >&5 2118230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2119230237Sbapt 2120230237Sbapt{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2121230237SbaptSee \`config.log' for more details." >&5 2122230237Sbaptecho "$as_me: error: C compiler cannot create executables 2123230237SbaptSee \`config.log' for more details." >&2;} 2124230237Sbapt { (exit 77); exit 77; }; } 2125230237Sbaptfi 2126230237Sbapt 2127230237Sbaptac_exeext=$ac_cv_exeext 2128230237Sbapt 2129230237Sbapt# Check that the compiler produces executables we can run. If not, either 2130230237Sbapt# the compiler is broken, or we cross compile. 2131230237Sbapt{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2132230237Sbaptecho $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 2133230237Sbapt# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2134230237Sbapt# If not cross compiling, check that we can run a simple program. 2135230237Sbaptif test "$cross_compiling" != yes; then 2136230237Sbapt if { ac_try='./$ac_file' 2137230237Sbapt { (case "(($ac_try" in 2138230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2139230237Sbapt *) ac_try_echo=$ac_try;; 2140230237Sbaptesac 2141230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2142230237Sbapt (eval "$ac_try") 2>&5 2143230237Sbapt ac_status=$? 2144230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2145230237Sbapt (exit $ac_status); }; }; then 2146230237Sbapt cross_compiling=no 214758551Skris else 2148230237Sbapt if test "$cross_compiling" = maybe; then 2149230237Sbapt cross_compiling=yes 2150230237Sbapt else 2151230237Sbapt { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2152230237SbaptIf you meant to cross compile, use \`--host'. 2153230237SbaptSee \`config.log' for more details." >&5 2154230237Sbaptecho "$as_me: error: cannot run C compiled programs. 2155230237SbaptIf you meant to cross compile, use \`--host'. 2156230237SbaptSee \`config.log' for more details." >&2;} 2157230237Sbapt { (exit 1); exit 1; }; } 2158230237Sbapt fi 215958551Skris fi 2160230237Sbaptfi 2161230237Sbapt{ echo "$as_me:$LINENO: result: yes" >&5 2162230237Sbaptecho "${ECHO_T}yes" >&6; } 2163230237Sbapt 2164230237Sbaptrm -f a.out a.exe conftest$ac_cv_exeext b.out 2165230237Sbaptac_clean_files=$ac_clean_files_save 2166230237Sbapt# Check that the compiler produces executables we can run. If not, either 2167230237Sbapt# the compiler is broken, or we cross compile. 2168230237Sbapt{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2169230237Sbaptecho $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2170230237Sbapt{ echo "$as_me:$LINENO: result: $cross_compiling" >&5 2171230237Sbaptecho "${ECHO_T}$cross_compiling" >&6; } 2172230237Sbapt 2173230237Sbapt{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 2174230237Sbaptecho $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2175230237Sbaptif { (ac_try="$ac_link" 2176230237Sbaptcase "(($ac_try" in 2177230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2178230237Sbapt *) ac_try_echo=$ac_try;; 2179230237Sbaptesac 2180230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2181230237Sbapt (eval "$ac_link") 2>&5 2182230237Sbapt ac_status=$? 2183230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2184230237Sbapt (exit $ac_status); }; then 2185230237Sbapt # If both `conftest.exe' and `conftest' are `present' (well, observable) 2186230237Sbapt# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2187230237Sbapt# work properly (i.e., refer to `conftest.exe'), while it won't with 2188230237Sbapt# `rm'. 2189230237Sbaptfor ac_file in conftest.exe conftest conftest.*; do 2190230237Sbapt test -f "$ac_file" || continue 2191230237Sbapt case $ac_file in 2192230237Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2193230237Sbapt *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2194230237Sbapt break;; 2195230237Sbapt * ) break;; 2196230237Sbapt esac 2197230237Sbaptdone 219858551Skriselse 2199230237Sbapt { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2200230237SbaptSee \`config.log' for more details." >&5 2201230237Sbaptecho "$as_me: error: cannot compute suffix of executables: cannot compile and link 2202230237SbaptSee \`config.log' for more details." >&2;} 2203230237Sbapt { (exit 1); exit 1; }; } 220458551Skrisfi 220558551Skris 2206230237Sbaptrm -f conftest$ac_cv_exeext 2207230237Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2208230237Sbaptecho "${ECHO_T}$ac_cv_exeext" >&6; } 2209230237Sbapt 2210230237Sbaptrm -f conftest.$ac_ext 2211230237SbaptEXEEXT=$ac_cv_exeext 2212230237Sbaptac_exeext=$EXEEXT 2213230237Sbapt{ echo "$as_me:$LINENO: checking for suffix of object files" >&5 2214230237Sbaptecho $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 2215230237Sbaptif test "${ac_cv_objext+set}" = set; then 2216230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2217230237Sbaptelse 2218230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2219230237Sbapt/* confdefs.h. */ 2220230237Sbapt_ACEOF 2221230237Sbaptcat confdefs.h >>conftest.$ac_ext 2222230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2223230237Sbapt/* end confdefs.h. */ 2224230237Sbapt 2225230237Sbaptint 2226230237Sbaptmain () 2227230237Sbapt{ 2228230237Sbapt 2229230237Sbapt ; 2230230237Sbapt return 0; 2231230237Sbapt} 2232230237Sbapt_ACEOF 2233230237Sbaptrm -f conftest.o conftest.obj 2234230237Sbaptif { (ac_try="$ac_compile" 2235230237Sbaptcase "(($ac_try" in 2236230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2237230237Sbapt *) ac_try_echo=$ac_try;; 2238230237Sbaptesac 2239230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2240230237Sbapt (eval "$ac_compile") 2>&5 2241230237Sbapt ac_status=$? 2242230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2243230237Sbapt (exit $ac_status); }; then 2244230237Sbapt for ac_file in conftest.o conftest.obj conftest.*; do 2245230237Sbapt test -f "$ac_file" || continue; 2246230237Sbapt case $ac_file in 2247230237Sbapt *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 2248230237Sbapt *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2249230237Sbapt break;; 2250230237Sbapt esac 2251230237Sbaptdone 2252230237Sbaptelse 2253230237Sbapt echo "$as_me: failed program was:" >&5 2254230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2255230237Sbapt 2256230237Sbapt{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2257230237SbaptSee \`config.log' for more details." >&5 2258230237Sbaptecho "$as_me: error: cannot compute suffix of object files: cannot compile 2259230237SbaptSee \`config.log' for more details." >&2;} 2260230237Sbapt { (exit 1); exit 1; }; } 226158551Skrisfi 226258551Skris 2263230237Sbaptrm -f conftest.$ac_cv_objext conftest.$ac_ext 2264230237Sbaptfi 2265230237Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2266230237Sbaptecho "${ECHO_T}$ac_cv_objext" >&6; } 2267230237SbaptOBJEXT=$ac_cv_objext 2268230237Sbaptac_objext=$OBJEXT 2269230237Sbapt{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2270230237Sbaptecho $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 2271230237Sbaptif test "${ac_cv_c_compiler_gnu+set}" = set; then 2272230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 227358551Skriselse 2274230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2275230237Sbapt/* confdefs.h. */ 2276230237Sbapt_ACEOF 2277230237Sbaptcat confdefs.h >>conftest.$ac_ext 2278230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2279230237Sbapt/* end confdefs.h. */ 2280230237Sbapt 2281230237Sbaptint 2282230237Sbaptmain () 2283230237Sbapt{ 2284230237Sbapt#ifndef __GNUC__ 2285230237Sbapt choke me 228658551Skris#endif 2287230237Sbapt 2288230237Sbapt ; 2289230237Sbapt return 0; 2290230237Sbapt} 2291230237Sbapt_ACEOF 2292230237Sbaptrm -f conftest.$ac_objext 2293230237Sbaptif { (ac_try="$ac_compile" 2294230237Sbaptcase "(($ac_try" in 2295230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2296230237Sbapt *) ac_try_echo=$ac_try;; 2297230237Sbaptesac 2298230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2299230237Sbapt (eval "$ac_compile") 2>conftest.er1 2300230237Sbapt ac_status=$? 2301230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2302230237Sbapt rm -f conftest.er1 2303230237Sbapt cat conftest.err >&5 2304230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2305230237Sbapt (exit $ac_status); } && { 2306230237Sbapt test -z "$ac_c_werror_flag" || 2307230237Sbapt test ! -s conftest.err 2308230237Sbapt } && test -s conftest.$ac_objext; then 2309230237Sbapt ac_compiler_gnu=yes 231058551Skriselse 2311230237Sbapt echo "$as_me: failed program was:" >&5 2312230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2313230237Sbapt 2314230237Sbapt ac_compiler_gnu=no 231558551Skrisfi 2316230237Sbapt 2317230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2318230237Sbaptac_cv_c_compiler_gnu=$ac_compiler_gnu 2319230237Sbapt 232058551Skrisfi 2321230237Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2322230237Sbaptecho "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 2323230237SbaptGCC=`test $ac_compiler_gnu = yes && echo yes` 2324230237Sbaptac_test_CFLAGS=${CFLAGS+set} 2325230237Sbaptac_save_CFLAGS=$CFLAGS 2326230237Sbapt{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2327230237Sbaptecho $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 2328230237Sbaptif test "${ac_cv_prog_cc_g+set}" = set; then 2329230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2330230237Sbaptelse 2331230237Sbapt ac_save_c_werror_flag=$ac_c_werror_flag 2332230237Sbapt ac_c_werror_flag=yes 2333230237Sbapt ac_cv_prog_cc_g=no 2334230237Sbapt CFLAGS="-g" 2335230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2336230237Sbapt/* confdefs.h. */ 2337230237Sbapt_ACEOF 2338230237Sbaptcat confdefs.h >>conftest.$ac_ext 2339230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2340230237Sbapt/* end confdefs.h. */ 234158551Skris 2342230237Sbaptint 2343230237Sbaptmain () 2344230237Sbapt{ 234558551Skris 2346230237Sbapt ; 2347230237Sbapt return 0; 2348230237Sbapt} 2349230237Sbapt_ACEOF 2350230237Sbaptrm -f conftest.$ac_objext 2351230237Sbaptif { (ac_try="$ac_compile" 2352230237Sbaptcase "(($ac_try" in 2353230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2354230237Sbapt *) ac_try_echo=$ac_try;; 2355230237Sbaptesac 2356230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2357230237Sbapt (eval "$ac_compile") 2>conftest.er1 2358230237Sbapt ac_status=$? 2359230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2360230237Sbapt rm -f conftest.er1 2361230237Sbapt cat conftest.err >&5 2362230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2363230237Sbapt (exit $ac_status); } && { 2364230237Sbapt test -z "$ac_c_werror_flag" || 2365230237Sbapt test ! -s conftest.err 2366230237Sbapt } && test -s conftest.$ac_objext; then 2367230237Sbapt ac_cv_prog_cc_g=yes 236867064Sobrienelse 2369230237Sbapt echo "$as_me: failed program was:" >&5 2370230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 237167064Sobrien 2372230237Sbapt CFLAGS="" 2373230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2374230237Sbapt/* confdefs.h. */ 2375230237Sbapt_ACEOF 2376230237Sbaptcat confdefs.h >>conftest.$ac_ext 2377230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2378230237Sbapt/* end confdefs.h. */ 2379230237Sbapt 2380230237Sbaptint 2381230237Sbaptmain () 2382230237Sbapt{ 2383230237Sbapt 2384230237Sbapt ; 2385230237Sbapt return 0; 2386230237Sbapt} 2387230237Sbapt_ACEOF 2388230237Sbaptrm -f conftest.$ac_objext 2389230237Sbaptif { (ac_try="$ac_compile" 2390230237Sbaptcase "(($ac_try" in 2391230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2392230237Sbapt *) ac_try_echo=$ac_try;; 2393230237Sbaptesac 2394230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2395230237Sbapt (eval "$ac_compile") 2>conftest.er1 2396230237Sbapt ac_status=$? 2397230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2398230237Sbapt rm -f conftest.er1 2399230237Sbapt cat conftest.err >&5 2400230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2401230237Sbapt (exit $ac_status); } && { 2402230237Sbapt test -z "$ac_c_werror_flag" || 2403230237Sbapt test ! -s conftest.err 2404230237Sbapt } && test -s conftest.$ac_objext; then 2405230237Sbapt : 240658551Skriselse 2407230237Sbapt echo "$as_me: failed program was:" >&5 2408230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2409230237Sbapt 2410230237Sbapt ac_c_werror_flag=$ac_save_c_werror_flag 2411230237Sbapt CFLAGS="-g" 2412230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2413230237Sbapt/* confdefs.h. */ 2414230237Sbapt_ACEOF 2415230237Sbaptcat confdefs.h >>conftest.$ac_ext 2416230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2417230237Sbapt/* end confdefs.h. */ 2418230237Sbapt 2419230237Sbaptint 2420230237Sbaptmain () 2421230237Sbapt{ 2422230237Sbapt 2423230237Sbapt ; 2424230237Sbapt return 0; 2425230237Sbapt} 2426230237Sbapt_ACEOF 2427230237Sbaptrm -f conftest.$ac_objext 2428230237Sbaptif { (ac_try="$ac_compile" 2429230237Sbaptcase "(($ac_try" in 2430230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2431230237Sbapt *) ac_try_echo=$ac_try;; 2432230237Sbaptesac 2433230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2434230237Sbapt (eval "$ac_compile") 2>conftest.er1 2435230237Sbapt ac_status=$? 2436230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2437230237Sbapt rm -f conftest.er1 2438230237Sbapt cat conftest.err >&5 2439230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2440230237Sbapt (exit $ac_status); } && { 2441230237Sbapt test -z "$ac_c_werror_flag" || 2442230237Sbapt test ! -s conftest.err 2443230237Sbapt } && test -s conftest.$ac_objext; then 244458551Skris ac_cv_prog_cc_g=yes 244558551Skriselse 2446230237Sbapt echo "$as_me: failed program was:" >&5 2447230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2448230237Sbapt 2449230237Sbapt 245058551Skrisfi 245158551Skris 2452230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 245358551Skrisfi 245458551Skris 2455230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2456230237Sbaptfi 2457230237Sbapt 2458230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2459230237Sbapt ac_c_werror_flag=$ac_save_c_werror_flag 2460230237Sbaptfi 2461230237Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2462230237Sbaptecho "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 246367064Sobrienif test "$ac_test_CFLAGS" = set; then 2464230237Sbapt CFLAGS=$ac_save_CFLAGS 246567064Sobrienelif test $ac_cv_prog_cc_g = yes; then 246667064Sobrien if test "$GCC" = yes; then 246758551Skris CFLAGS="-g -O2" 246858551Skris else 246967064Sobrien CFLAGS="-g" 247067064Sobrien fi 247167064Sobrienelse 247267064Sobrien if test "$GCC" = yes; then 247358551Skris CFLAGS="-O2" 247467064Sobrien else 247567064Sobrien CFLAGS= 247658551Skris fi 247758551Skrisfi 2478230237Sbapt{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2479230237Sbaptecho $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2480230237Sbaptif test "${ac_cv_prog_cc_c89+set}" = set; then 2481230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2482230237Sbaptelse 2483230237Sbapt ac_cv_prog_cc_c89=no 2484230237Sbaptac_save_CC=$CC 2485230237Sbaptcat >conftest.$ac_ext <<_ACEOF 2486230237Sbapt/* confdefs.h. */ 2487230237Sbapt_ACEOF 2488230237Sbaptcat confdefs.h >>conftest.$ac_ext 2489230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2490230237Sbapt/* end confdefs.h. */ 2491230237Sbapt#include <stdarg.h> 2492230237Sbapt#include <stdio.h> 2493230237Sbapt#include <sys/types.h> 2494230237Sbapt#include <sys/stat.h> 2495230237Sbapt/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2496230237Sbaptstruct buf { int x; }; 2497230237SbaptFILE * (*rcsopen) (struct buf *, struct stat *, int); 2498230237Sbaptstatic char *e (p, i) 2499230237Sbapt char **p; 2500230237Sbapt int i; 2501230237Sbapt{ 2502230237Sbapt return p[i]; 2503230237Sbapt} 2504230237Sbaptstatic char *f (char * (*g) (char **, int), char **p, ...) 2505230237Sbapt{ 2506230237Sbapt char *s; 2507230237Sbapt va_list v; 2508230237Sbapt va_start (v,p); 2509230237Sbapt s = g (p, va_arg (v,int)); 2510230237Sbapt va_end (v); 2511230237Sbapt return s; 2512230237Sbapt} 251358551Skris 2514230237Sbapt/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2515230237Sbapt function prototypes and stuff, but not '\xHH' hex character constants. 2516230237Sbapt These don't provoke an error unfortunately, instead are silently treated 2517230237Sbapt as 'x'. The following induces an error, until -std is added to get 2518230237Sbapt proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2519230237Sbapt array size at least. It's necessary to write '\x00'==0 to get something 2520230237Sbapt that's true only with -std. */ 2521230237Sbaptint osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2522230237Sbapt 2523230237Sbapt/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2524230237Sbapt inside strings and character constants. */ 2525230237Sbapt#define FOO(x) 'x' 2526230237Sbaptint xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2527230237Sbapt 2528230237Sbaptint test (int i, double x); 2529230237Sbaptstruct s1 {int (*f) (int a);}; 2530230237Sbaptstruct s2 {int (*f) (double a);}; 2531230237Sbaptint pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2532230237Sbaptint argc; 2533230237Sbaptchar **argv; 2534230237Sbaptint 2535230237Sbaptmain () 2536230237Sbapt{ 2537230237Sbaptreturn f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2538230237Sbapt ; 2539230237Sbapt return 0; 2540230237Sbapt} 2541230237Sbapt_ACEOF 2542230237Sbaptfor ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2543230237Sbapt -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2544230237Sbaptdo 2545230237Sbapt CC="$ac_save_CC $ac_arg" 2546230237Sbapt rm -f conftest.$ac_objext 2547230237Sbaptif { (ac_try="$ac_compile" 2548230237Sbaptcase "(($ac_try" in 2549230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2550230237Sbapt *) ac_try_echo=$ac_try;; 2551230237Sbaptesac 2552230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2553230237Sbapt (eval "$ac_compile") 2>conftest.er1 2554230237Sbapt ac_status=$? 2555230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2556230237Sbapt rm -f conftest.er1 2557230237Sbapt cat conftest.err >&5 2558230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2559230237Sbapt (exit $ac_status); } && { 2560230237Sbapt test -z "$ac_c_werror_flag" || 2561230237Sbapt test ! -s conftest.err 2562230237Sbapt } && test -s conftest.$ac_objext; then 2563230237Sbapt ac_cv_prog_cc_c89=$ac_arg 2564230237Sbaptelse 2565230237Sbapt echo "$as_me: failed program was:" >&5 2566230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2567230237Sbapt 2568230237Sbapt 2569230237Sbaptfi 2570230237Sbapt 2571230237Sbaptrm -f core conftest.err conftest.$ac_objext 2572230237Sbapt test "x$ac_cv_prog_cc_c89" != "xno" && break 2573230237Sbaptdone 2574230237Sbaptrm -f conftest.$ac_ext 2575230237SbaptCC=$ac_save_CC 2576230237Sbapt 2577230237Sbaptfi 2578230237Sbapt# AC_CACHE_VAL 2579230237Sbaptcase "x$ac_cv_prog_cc_c89" in 2580230237Sbapt x) 2581230237Sbapt { echo "$as_me:$LINENO: result: none needed" >&5 2582230237Sbaptecho "${ECHO_T}none needed" >&6; } ;; 2583230237Sbapt xno) 2584230237Sbapt { echo "$as_me:$LINENO: result: unsupported" >&5 2585230237Sbaptecho "${ECHO_T}unsupported" >&6; } ;; 2586230237Sbapt *) 2587230237Sbapt CC="$CC $ac_cv_prog_cc_c89" 2588230237Sbapt { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2589230237Sbaptecho "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2590230237Sbaptesac 2591230237Sbapt 2592230237Sbapt 2593230237Sbaptac_ext=c 2594230237Sbaptac_cpp='$CPP $CPPFLAGS' 2595230237Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2596230237Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2597230237Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 2598230237Sbapt 2599230237Sbapt ac_ext=c 2600230237Sbaptac_cpp='$CPP $CPPFLAGS' 2601230237Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2602230237Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2603230237Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 2604230237Sbapt{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 2605230237Sbaptecho $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 260658551Skris# On Suns, sometimes $CPP names a directory. 260758551Skrisif test -n "$CPP" && test -d "$CPP"; then 260858551Skris CPP= 260958551Skrisfi 261058551Skrisif test -z "$CPP"; then 2611230237Sbapt if test "${ac_cv_prog_CPP+set}" = set; then 2612230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 261358551Skriselse 2614230237Sbapt # Double quotes because CPP needs to be expanded 2615230237Sbapt for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 2616230237Sbapt do 2617230237Sbapt ac_preproc_ok=false 2618230237Sbaptfor ac_c_preproc_warn_flag in '' yes 2619230237Sbaptdo 2620230237Sbapt # Use a header file that comes with gcc, so configuring glibc 2621230237Sbapt # with a fresh cross-compiler works. 2622230237Sbapt # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2623230237Sbapt # <limits.h> exists even on freestanding compilers. 262458551Skris # On the NeXT, cc -E runs the code through the compiler's parser, 2625230237Sbapt # not just through cpp. "Syntax error" is here to catch this case. 2626230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2627230237Sbapt/* confdefs.h. */ 2628230237Sbapt_ACEOF 2629230237Sbaptcat confdefs.h >>conftest.$ac_ext 2630230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2631230237Sbapt/* end confdefs.h. */ 2632230237Sbapt#ifdef __STDC__ 2633230237Sbapt# include <limits.h> 2634230237Sbapt#else 2635230237Sbapt# include <assert.h> 2636230237Sbapt#endif 2637230237Sbapt Syntax error 2638230237Sbapt_ACEOF 2639230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 2640230237Sbaptcase "(($ac_try" in 2641230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2642230237Sbapt *) ac_try_echo=$ac_try;; 2643230237Sbaptesac 2644230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2645230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2646230237Sbapt ac_status=$? 2647230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2648230237Sbapt rm -f conftest.er1 2649230237Sbapt cat conftest.err >&5 2650230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2651230237Sbapt (exit $ac_status); } >/dev/null && { 2652230237Sbapt test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2653230237Sbapt test ! -s conftest.err 2654230237Sbapt }; then 265558551Skris : 265658551Skriselse 2657230237Sbapt echo "$as_me: failed program was:" >&5 2658230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2659230237Sbapt 2660230237Sbapt # Broken: fails on valid input. 2661230237Sbaptcontinue 2662230237Sbaptfi 2663230237Sbapt 2664230237Sbaptrm -f conftest.err conftest.$ac_ext 2665230237Sbapt 2666230237Sbapt # OK, works on sane cases. Now check whether nonexistent headers 2667230237Sbapt # can be detected and how. 2668230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2669230237Sbapt/* confdefs.h. */ 2670230237Sbapt_ACEOF 2671230237Sbaptcat confdefs.h >>conftest.$ac_ext 2672230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2673230237Sbapt/* end confdefs.h. */ 2674230237Sbapt#include <ac_nonexistent.h> 2675230237Sbapt_ACEOF 2676230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 2677230237Sbaptcase "(($ac_try" in 2678230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2679230237Sbapt *) ac_try_echo=$ac_try;; 2680230237Sbaptesac 2681230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2682230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2683230237Sbapt ac_status=$? 2684230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2685230237Sbapt rm -f conftest.er1 2686230237Sbapt cat conftest.err >&5 2687230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2688230237Sbapt (exit $ac_status); } >/dev/null && { 2689230237Sbapt test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2690230237Sbapt test ! -s conftest.err 2691230237Sbapt }; then 2692230237Sbapt # Broken: success on invalid input. 2693230237Sbaptcontinue 269458551Skriselse 2695230237Sbapt echo "$as_me: failed program was:" >&5 2696230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2697230237Sbapt 2698230237Sbapt # Passes both tests. 2699230237Sbaptac_preproc_ok=: 2700230237Sbaptbreak 270158551Skrisfi 2702230237Sbapt 2703230237Sbaptrm -f conftest.err conftest.$ac_ext 2704230237Sbapt 2705230237Sbaptdone 2706230237Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2707230237Sbaptrm -f conftest.err conftest.$ac_ext 2708230237Sbaptif $ac_preproc_ok; then 2709230237Sbapt break 271058551Skrisfi 2711230237Sbapt 2712230237Sbapt done 2713230237Sbapt ac_cv_prog_CPP=$CPP 2714230237Sbapt 271567064Sobrienfi 2716230237Sbapt CPP=$ac_cv_prog_CPP 2717230237Sbaptelse 2718230237Sbapt ac_cv_prog_CPP=$CPP 271958551Skrisfi 2720230237Sbapt{ echo "$as_me:$LINENO: result: $CPP" >&5 2721230237Sbaptecho "${ECHO_T}$CPP" >&6; } 2722230237Sbaptac_preproc_ok=false 2723230237Sbaptfor ac_c_preproc_warn_flag in '' yes 2724230237Sbaptdo 2725230237Sbapt # Use a header file that comes with gcc, so configuring glibc 2726230237Sbapt # with a fresh cross-compiler works. 2727230237Sbapt # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2728230237Sbapt # <limits.h> exists even on freestanding compilers. 2729230237Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 2730230237Sbapt # not just through cpp. "Syntax error" is here to catch this case. 2731230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2732230237Sbapt/* confdefs.h. */ 2733230237Sbapt_ACEOF 2734230237Sbaptcat confdefs.h >>conftest.$ac_ext 2735230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2736230237Sbapt/* end confdefs.h. */ 2737230237Sbapt#ifdef __STDC__ 2738230237Sbapt# include <limits.h> 2739230237Sbapt#else 2740230237Sbapt# include <assert.h> 2741230237Sbapt#endif 2742230237Sbapt Syntax error 2743230237Sbapt_ACEOF 2744230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 2745230237Sbaptcase "(($ac_try" in 2746230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2747230237Sbapt *) ac_try_echo=$ac_try;; 2748230237Sbaptesac 2749230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2750230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2751230237Sbapt ac_status=$? 2752230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2753230237Sbapt rm -f conftest.er1 2754230237Sbapt cat conftest.err >&5 2755230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2756230237Sbapt (exit $ac_status); } >/dev/null && { 2757230237Sbapt test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2758230237Sbapt test ! -s conftest.err 2759230237Sbapt }; then 2760230237Sbapt : 276158551Skriselse 2762230237Sbapt echo "$as_me: failed program was:" >&5 2763230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2764230237Sbapt 2765230237Sbapt # Broken: fails on valid input. 2766230237Sbaptcontinue 276758551Skrisfi 276858551Skris 2769230237Sbaptrm -f conftest.err conftest.$ac_ext 2770230237Sbapt 2771230237Sbapt # OK, works on sane cases. Now check whether nonexistent headers 2772230237Sbapt # can be detected and how. 2773230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2774230237Sbapt/* confdefs.h. */ 2775230237Sbapt_ACEOF 2776230237Sbaptcat confdefs.h >>conftest.$ac_ext 2777230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2778230237Sbapt/* end confdefs.h. */ 2779230237Sbapt#include <ac_nonexistent.h> 2780230237Sbapt_ACEOF 2781230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 2782230237Sbaptcase "(($ac_try" in 2783230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2784230237Sbapt *) ac_try_echo=$ac_try;; 2785230237Sbaptesac 2786230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2787230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 2788230237Sbapt ac_status=$? 2789230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 2790230237Sbapt rm -f conftest.er1 2791230237Sbapt cat conftest.err >&5 2792230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2793230237Sbapt (exit $ac_status); } >/dev/null && { 2794230237Sbapt test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2795230237Sbapt test ! -s conftest.err 2796230237Sbapt }; then 2797230237Sbapt # Broken: success on invalid input. 2798230237Sbaptcontinue 279958551Skriselse 2800230237Sbapt echo "$as_me: failed program was:" >&5 2801230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 2802230237Sbapt 2803230237Sbapt # Passes both tests. 2804230237Sbaptac_preproc_ok=: 2805230237Sbaptbreak 2806230237Sbaptfi 2807230237Sbapt 2808230237Sbaptrm -f conftest.err conftest.$ac_ext 2809230237Sbapt 2810230237Sbaptdone 2811230237Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 2812230237Sbaptrm -f conftest.err conftest.$ac_ext 2813230237Sbaptif $ac_preproc_ok; then 2814230237Sbapt : 2815230237Sbaptelse 2816230237Sbapt { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 2817230237SbaptSee \`config.log' for more details." >&5 2818230237Sbaptecho "$as_me: error: C preprocessor \"$CPP\" fails sanity check 2819230237SbaptSee \`config.log' for more details." >&2;} 2820230237Sbapt { (exit 1); exit 1; }; } 2821230237Sbaptfi 2822230237Sbapt 2823230237Sbaptac_ext=c 2824230237Sbaptac_cpp='$CPP $CPPFLAGS' 2825230237Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2826230237Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2827230237Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 2828230237Sbapt 2829230237Sbapt ac_ext=cpp 2830230237Sbaptac_cpp='$CXXCPP $CPPFLAGS' 2831230237Sbaptac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2832230237Sbaptac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2833230237Sbaptac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2834230237Sbaptif test -z "$CXX"; then 2835230237Sbapt if test -n "$CCC"; then 2836230237Sbapt CXX=$CCC 2837230237Sbapt else 2838230237Sbapt if test -n "$ac_tool_prefix"; then 2839230237Sbapt for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2840230237Sbapt do 2841230237Sbapt # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2842230237Sbaptset dummy $ac_tool_prefix$ac_prog; ac_word=$2 2843230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2844230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2845230237Sbaptif test "${ac_cv_prog_CXX+set}" = set; then 2846230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2847230237Sbaptelse 284858551Skris if test -n "$CXX"; then 284958551Skris ac_cv_prog_CXX="$CXX" # Let the user override the test. 285058551Skriselse 2851230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2852230237Sbaptfor as_dir in $PATH 2853230237Sbaptdo 2854230237Sbapt IFS=$as_save_IFS 2855230237Sbapt test -z "$as_dir" && as_dir=. 2856230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2857230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2858230237Sbapt ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2859230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2860230237Sbapt break 2 2861230237Sbapt fi 2862230237Sbaptdone 2863230237Sbaptdone 2864230237SbaptIFS=$as_save_IFS 2865230237Sbapt 286658551Skrisfi 286758551Skrisfi 2868230237SbaptCXX=$ac_cv_prog_CXX 286958551Skrisif test -n "$CXX"; then 2870230237Sbapt { echo "$as_me:$LINENO: result: $CXX" >&5 2871230237Sbaptecho "${ECHO_T}$CXX" >&6; } 287258551Skriselse 2873230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 2874230237Sbaptecho "${ECHO_T}no" >&6; } 287558551Skrisfi 287658551Skris 2877230237Sbapt 2878230237Sbapt test -n "$CXX" && break 2879230237Sbapt done 2880230237Sbaptfi 2881230237Sbaptif test -z "$CXX"; then 2882230237Sbapt ac_ct_CXX=$CXX 2883230237Sbapt for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2884230237Sbaptdo 2885230237Sbapt # Extract the first word of "$ac_prog", so it can be a program name with args. 2886230237Sbaptset dummy $ac_prog; ac_word=$2 2887230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2888230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2889230237Sbaptif test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2890230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 2891230237Sbaptelse 2892230237Sbapt if test -n "$ac_ct_CXX"; then 2893230237Sbapt ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2894230237Sbaptelse 2895230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2896230237Sbaptfor as_dir in $PATH 2897230237Sbaptdo 2898230237Sbapt IFS=$as_save_IFS 2899230237Sbapt test -z "$as_dir" && as_dir=. 2900230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 2901230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2902230237Sbapt ac_cv_prog_ac_ct_CXX="$ac_prog" 2903230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2904230237Sbapt break 2 2905230237Sbapt fi 290658551Skrisdone 2907230237Sbaptdone 2908230237SbaptIFS=$as_save_IFS 290958551Skris 2910230237Sbaptfi 2911230237Sbaptfi 2912230237Sbaptac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2913230237Sbaptif test -n "$ac_ct_CXX"; then 2914230237Sbapt { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2915230237Sbaptecho "${ECHO_T}$ac_ct_CXX" >&6; } 2916230237Sbaptelse 2917230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 2918230237Sbaptecho "${ECHO_T}no" >&6; } 2919230237Sbaptfi 292058551Skris 292158551Skris 2922230237Sbapt test -n "$ac_ct_CXX" && break 2923230237Sbaptdone 292458551Skris 2925230237Sbapt if test "x$ac_ct_CXX" = x; then 2926230237Sbapt CXX="g++" 292758551Skris else 2928230237Sbapt case $cross_compiling:$ac_tool_warned in 2929230237Sbaptyes:) 2930230237Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2931230237Sbaptwhose name does not start with the host triplet. If you think this 2932230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5 2933230237Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2934230237Sbaptwhose name does not start with the host triplet. If you think this 2935230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;} 2936230237Sbaptac_tool_warned=yes ;; 2937230237Sbaptesac 2938230237Sbapt CXX=$ac_ct_CXX 293958551Skris fi 294058551Skrisfi 294158551Skris 2942230237Sbapt fi 294358551Skrisfi 2944230237Sbapt# Provide some information about the compiler. 2945230237Sbaptecho "$as_me:$LINENO: checking for C++ compiler version" >&5 2946230237Sbaptac_compiler=`set X $ac_compile; echo $2` 2947230237Sbapt{ (ac_try="$ac_compiler --version >&5" 2948230237Sbaptcase "(($ac_try" in 2949230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2950230237Sbapt *) ac_try_echo=$ac_try;; 2951230237Sbaptesac 2952230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2953230237Sbapt (eval "$ac_compiler --version >&5") 2>&5 2954230237Sbapt ac_status=$? 2955230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2956230237Sbapt (exit $ac_status); } 2957230237Sbapt{ (ac_try="$ac_compiler -v >&5" 2958230237Sbaptcase "(($ac_try" in 2959230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2960230237Sbapt *) ac_try_echo=$ac_try;; 2961230237Sbaptesac 2962230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2963230237Sbapt (eval "$ac_compiler -v >&5") 2>&5 2964230237Sbapt ac_status=$? 2965230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2966230237Sbapt (exit $ac_status); } 2967230237Sbapt{ (ac_try="$ac_compiler -V >&5" 2968230237Sbaptcase "(($ac_try" in 2969230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2970230237Sbapt *) ac_try_echo=$ac_try;; 2971230237Sbaptesac 2972230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2973230237Sbapt (eval "$ac_compiler -V >&5") 2>&5 2974230237Sbapt ac_status=$? 2975230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 2976230237Sbapt (exit $ac_status); } 297758551Skris 2978230237Sbapt{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2979230237Sbaptecho $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 2980230237Sbaptif test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2981230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 298258551Skriselse 2983230237Sbapt cat >conftest.$ac_ext <<_ACEOF 2984230237Sbapt/* confdefs.h. */ 2985230237Sbapt_ACEOF 2986230237Sbaptcat confdefs.h >>conftest.$ac_ext 2987230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 2988230237Sbapt/* end confdefs.h. */ 2989230237Sbapt 2990230237Sbaptint 2991230237Sbaptmain () 2992230237Sbapt{ 2993230237Sbapt#ifndef __GNUC__ 2994230237Sbapt choke me 299558551Skris#endif 2996230237Sbapt 2997230237Sbapt ; 2998230237Sbapt return 0; 2999230237Sbapt} 3000230237Sbapt_ACEOF 3001230237Sbaptrm -f conftest.$ac_objext 3002230237Sbaptif { (ac_try="$ac_compile" 3003230237Sbaptcase "(($ac_try" in 3004230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3005230237Sbapt *) ac_try_echo=$ac_try;; 3006230237Sbaptesac 3007230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3008230237Sbapt (eval "$ac_compile") 2>conftest.er1 3009230237Sbapt ac_status=$? 3010230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3011230237Sbapt rm -f conftest.er1 3012230237Sbapt cat conftest.err >&5 3013230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3014230237Sbapt (exit $ac_status); } && { 3015230237Sbapt test -z "$ac_cxx_werror_flag" || 3016230237Sbapt test ! -s conftest.err 3017230237Sbapt } && test -s conftest.$ac_objext; then 3018230237Sbapt ac_compiler_gnu=yes 301958551Skriselse 3020230237Sbapt echo "$as_me: failed program was:" >&5 3021230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3022230237Sbapt 3023230237Sbapt ac_compiler_gnu=no 302458551Skrisfi 3025230237Sbapt 3026230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3027230237Sbaptac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3028230237Sbapt 302958551Skrisfi 3030230237Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3031230237Sbaptecho "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3032230237SbaptGXX=`test $ac_compiler_gnu = yes && echo yes` 3033230237Sbaptac_test_CXXFLAGS=${CXXFLAGS+set} 3034230237Sbaptac_save_CXXFLAGS=$CXXFLAGS 3035230237Sbapt{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3036230237Sbaptecho $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3037230237Sbaptif test "${ac_cv_prog_cxx_g+set}" = set; then 3038230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3039230237Sbaptelse 3040230237Sbapt ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3041230237Sbapt ac_cxx_werror_flag=yes 3042230237Sbapt ac_cv_prog_cxx_g=no 3043230237Sbapt CXXFLAGS="-g" 3044230237Sbapt cat >conftest.$ac_ext <<_ACEOF 3045230237Sbapt/* confdefs.h. */ 3046230237Sbapt_ACEOF 3047230237Sbaptcat confdefs.h >>conftest.$ac_ext 3048230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 3049230237Sbapt/* end confdefs.h. */ 305058551Skris 3051230237Sbaptint 3052230237Sbaptmain () 3053230237Sbapt{ 305458551Skris 3055230237Sbapt ; 3056230237Sbapt return 0; 3057230237Sbapt} 3058230237Sbapt_ACEOF 3059230237Sbaptrm -f conftest.$ac_objext 3060230237Sbaptif { (ac_try="$ac_compile" 3061230237Sbaptcase "(($ac_try" in 3062230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3063230237Sbapt *) ac_try_echo=$ac_try;; 3064230237Sbaptesac 3065230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3066230237Sbapt (eval "$ac_compile") 2>conftest.er1 3067230237Sbapt ac_status=$? 3068230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3069230237Sbapt rm -f conftest.er1 3070230237Sbapt cat conftest.err >&5 3071230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3072230237Sbapt (exit $ac_status); } && { 3073230237Sbapt test -z "$ac_cxx_werror_flag" || 3074230237Sbapt test ! -s conftest.err 3075230237Sbapt } && test -s conftest.$ac_objext; then 3076230237Sbapt ac_cv_prog_cxx_g=yes 307767064Sobrienelse 3078230237Sbapt echo "$as_me: failed program was:" >&5 3079230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 308067064Sobrien 3081230237Sbapt CXXFLAGS="" 3082230237Sbapt cat >conftest.$ac_ext <<_ACEOF 3083230237Sbapt/* confdefs.h. */ 3084230237Sbapt_ACEOF 3085230237Sbaptcat confdefs.h >>conftest.$ac_ext 3086230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 3087230237Sbapt/* end confdefs.h. */ 3088230237Sbapt 3089230237Sbaptint 3090230237Sbaptmain () 3091230237Sbapt{ 3092230237Sbapt 3093230237Sbapt ; 3094230237Sbapt return 0; 3095230237Sbapt} 3096230237Sbapt_ACEOF 3097230237Sbaptrm -f conftest.$ac_objext 3098230237Sbaptif { (ac_try="$ac_compile" 3099230237Sbaptcase "(($ac_try" in 3100230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3101230237Sbapt *) ac_try_echo=$ac_try;; 3102230237Sbaptesac 3103230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3104230237Sbapt (eval "$ac_compile") 2>conftest.er1 3105230237Sbapt ac_status=$? 3106230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3107230237Sbapt rm -f conftest.er1 3108230237Sbapt cat conftest.err >&5 3109230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3110230237Sbapt (exit $ac_status); } && { 3111230237Sbapt test -z "$ac_cxx_werror_flag" || 3112230237Sbapt test ! -s conftest.err 3113230237Sbapt } && test -s conftest.$ac_objext; then 3114230237Sbapt : 311558551Skriselse 3116230237Sbapt echo "$as_me: failed program was:" >&5 3117230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3118230237Sbapt 3119230237Sbapt ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3120230237Sbapt CXXFLAGS="-g" 3121230237Sbapt cat >conftest.$ac_ext <<_ACEOF 3122230237Sbapt/* confdefs.h. */ 3123230237Sbapt_ACEOF 3124230237Sbaptcat confdefs.h >>conftest.$ac_ext 3125230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 3126230237Sbapt/* end confdefs.h. */ 3127230237Sbapt 3128230237Sbaptint 3129230237Sbaptmain () 3130230237Sbapt{ 3131230237Sbapt 3132230237Sbapt ; 3133230237Sbapt return 0; 3134230237Sbapt} 3135230237Sbapt_ACEOF 3136230237Sbaptrm -f conftest.$ac_objext 3137230237Sbaptif { (ac_try="$ac_compile" 3138230237Sbaptcase "(($ac_try" in 3139230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140230237Sbapt *) ac_try_echo=$ac_try;; 3141230237Sbaptesac 3142230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3143230237Sbapt (eval "$ac_compile") 2>conftest.er1 3144230237Sbapt ac_status=$? 3145230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3146230237Sbapt rm -f conftest.er1 3147230237Sbapt cat conftest.err >&5 3148230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3149230237Sbapt (exit $ac_status); } && { 3150230237Sbapt test -z "$ac_cxx_werror_flag" || 3151230237Sbapt test ! -s conftest.err 3152230237Sbapt } && test -s conftest.$ac_objext; then 315358551Skris ac_cv_prog_cxx_g=yes 315458551Skriselse 3155230237Sbapt echo "$as_me: failed program was:" >&5 3156230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3157230237Sbapt 3158230237Sbapt 315958551Skrisfi 316058551Skris 3161230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 316258551Skrisfi 316358551Skris 3164230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3165230237Sbaptfi 3166230237Sbapt 3167230237Sbaptrm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3168230237Sbapt ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3169230237Sbaptfi 3170230237Sbapt{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3171230237Sbaptecho "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 317267064Sobrienif test "$ac_test_CXXFLAGS" = set; then 3173230237Sbapt CXXFLAGS=$ac_save_CXXFLAGS 317467064Sobrienelif test $ac_cv_prog_cxx_g = yes; then 317567064Sobrien if test "$GXX" = yes; then 317658551Skris CXXFLAGS="-g -O2" 317758551Skris else 317867064Sobrien CXXFLAGS="-g" 317967064Sobrien fi 318067064Sobrienelse 318167064Sobrien if test "$GXX" = yes; then 318258551Skris CXXFLAGS="-O2" 318367064Sobrien else 318467064Sobrien CXXFLAGS= 318558551Skris fi 318658551Skrisfi 3187230237Sbaptac_ext=c 3188230237Sbaptac_cpp='$CPP $CPPFLAGS' 3189230237Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3190230237Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3191230237Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 319258551Skris 3193230237Sbapt ac_ext=cpp 3194230237Sbaptac_cpp='$CXXCPP $CPPFLAGS' 3195230237Sbaptac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3196230237Sbaptac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3197230237Sbaptac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3198230237Sbapt{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 3199230237Sbaptecho $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 320058551Skrisif test -z "$CXXCPP"; then 3201230237Sbapt if test "${ac_cv_prog_CXXCPP+set}" = set; then 3202230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 320358551Skriselse 3204230237Sbapt # Double quotes because CXXCPP needs to be expanded 3205230237Sbapt for CXXCPP in "$CXX -E" "/lib/cpp" 3206230237Sbapt do 3207230237Sbapt ac_preproc_ok=false 3208230237Sbaptfor ac_cxx_preproc_warn_flag in '' yes 3209230237Sbaptdo 3210230237Sbapt # Use a header file that comes with gcc, so configuring glibc 3211230237Sbapt # with a fresh cross-compiler works. 3212230237Sbapt # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3213230237Sbapt # <limits.h> exists even on freestanding compilers. 3214230237Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3215230237Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3216230237Sbapt cat >conftest.$ac_ext <<_ACEOF 3217230237Sbapt/* confdefs.h. */ 3218230237Sbapt_ACEOF 3219230237Sbaptcat confdefs.h >>conftest.$ac_ext 3220230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 3221230237Sbapt/* end confdefs.h. */ 3222230237Sbapt#ifdef __STDC__ 3223230237Sbapt# include <limits.h> 3224230237Sbapt#else 3225230237Sbapt# include <assert.h> 3226230237Sbapt#endif 3227230237Sbapt Syntax error 3228230237Sbapt_ACEOF 3229230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 3230230237Sbaptcase "(($ac_try" in 3231230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3232230237Sbapt *) ac_try_echo=$ac_try;; 3233230237Sbaptesac 3234230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3235230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3236230237Sbapt ac_status=$? 3237230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3238230237Sbapt rm -f conftest.er1 3239230237Sbapt cat conftest.err >&5 3240230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3241230237Sbapt (exit $ac_status); } >/dev/null && { 3242230237Sbapt test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3243230237Sbapt test ! -s conftest.err 3244230237Sbapt }; then 324558551Skris : 324658551Skriselse 3247230237Sbapt echo "$as_me: failed program was:" >&5 3248230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3249230237Sbapt 3250230237Sbapt # Broken: fails on valid input. 3251230237Sbaptcontinue 325258551Skrisfi 3253230237Sbapt 3254230237Sbaptrm -f conftest.err conftest.$ac_ext 3255230237Sbapt 3256230237Sbapt # OK, works on sane cases. Now check whether nonexistent headers 3257230237Sbapt # can be detected and how. 3258230237Sbapt cat >conftest.$ac_ext <<_ACEOF 3259230237Sbapt/* confdefs.h. */ 3260230237Sbapt_ACEOF 3261230237Sbaptcat confdefs.h >>conftest.$ac_ext 3262230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 3263230237Sbapt/* end confdefs.h. */ 3264230237Sbapt#include <ac_nonexistent.h> 3265230237Sbapt_ACEOF 3266230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 3267230237Sbaptcase "(($ac_try" in 3268230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3269230237Sbapt *) ac_try_echo=$ac_try;; 3270230237Sbaptesac 3271230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3272230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3273230237Sbapt ac_status=$? 3274230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3275230237Sbapt rm -f conftest.er1 3276230237Sbapt cat conftest.err >&5 3277230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3278230237Sbapt (exit $ac_status); } >/dev/null && { 3279230237Sbapt test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3280230237Sbapt test ! -s conftest.err 3281230237Sbapt }; then 3282230237Sbapt # Broken: success on invalid input. 3283230237Sbaptcontinue 3284230237Sbaptelse 3285230237Sbapt echo "$as_me: failed program was:" >&5 3286230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3287230237Sbapt 3288230237Sbapt # Passes both tests. 3289230237Sbaptac_preproc_ok=: 3290230237Sbaptbreak 329158551Skrisfi 3292230237Sbapt 3293230237Sbaptrm -f conftest.err conftest.$ac_ext 3294230237Sbapt 3295230237Sbaptdone 3296230237Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3297230237Sbaptrm -f conftest.err conftest.$ac_ext 3298230237Sbaptif $ac_preproc_ok; then 3299230237Sbapt break 330058551Skrisfi 330158551Skris 3302230237Sbapt done 3303230237Sbapt ac_cv_prog_CXXCPP=$CXXCPP 3304230237Sbapt 3305230237Sbaptfi 3306230237Sbapt CXXCPP=$ac_cv_prog_CXXCPP 330758551Skriselse 3308230237Sbapt ac_cv_prog_CXXCPP=$CXXCPP 3309230237Sbaptfi 3310230237Sbapt{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 3311230237Sbaptecho "${ECHO_T}$CXXCPP" >&6; } 3312230237Sbaptac_preproc_ok=false 3313230237Sbaptfor ac_cxx_preproc_warn_flag in '' yes 3314230237Sbaptdo 3315230237Sbapt # Use a header file that comes with gcc, so configuring glibc 3316230237Sbapt # with a fresh cross-compiler works. 3317230237Sbapt # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3318230237Sbapt # <limits.h> exists even on freestanding compilers. 3319230237Sbapt # On the NeXT, cc -E runs the code through the compiler's parser, 3320230237Sbapt # not just through cpp. "Syntax error" is here to catch this case. 3321230237Sbapt cat >conftest.$ac_ext <<_ACEOF 3322230237Sbapt/* confdefs.h. */ 3323230237Sbapt_ACEOF 3324230237Sbaptcat confdefs.h >>conftest.$ac_ext 3325230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 3326230237Sbapt/* end confdefs.h. */ 3327230237Sbapt#ifdef __STDC__ 3328230237Sbapt# include <limits.h> 3329230237Sbapt#else 3330230237Sbapt# include <assert.h> 3331230237Sbapt#endif 3332230237Sbapt Syntax error 3333230237Sbapt_ACEOF 3334230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 3335230237Sbaptcase "(($ac_try" in 3336230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3337230237Sbapt *) ac_try_echo=$ac_try;; 3338230237Sbaptesac 3339230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3340230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3341230237Sbapt ac_status=$? 3342230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3343230237Sbapt rm -f conftest.er1 3344230237Sbapt cat conftest.err >&5 3345230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3346230237Sbapt (exit $ac_status); } >/dev/null && { 3347230237Sbapt test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3348230237Sbapt test ! -s conftest.err 3349230237Sbapt }; then 3350230237Sbapt : 3351230237Sbaptelse 3352230237Sbapt echo "$as_me: failed program was:" >&5 3353230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3354230237Sbapt 3355230237Sbapt # Broken: fails on valid input. 3356230237Sbaptcontinue 3357230237Sbaptfi 3358230237Sbapt 3359230237Sbaptrm -f conftest.err conftest.$ac_ext 3360230237Sbapt 3361230237Sbapt # OK, works on sane cases. Now check whether nonexistent headers 3362230237Sbapt # can be detected and how. 3363230237Sbapt cat >conftest.$ac_ext <<_ACEOF 3364230237Sbapt/* confdefs.h. */ 3365230237Sbapt_ACEOF 3366230237Sbaptcat confdefs.h >>conftest.$ac_ext 3367230237Sbaptcat >>conftest.$ac_ext <<_ACEOF 3368230237Sbapt/* end confdefs.h. */ 3369230237Sbapt#include <ac_nonexistent.h> 3370230237Sbapt_ACEOF 3371230237Sbaptif { (ac_try="$ac_cpp conftest.$ac_ext" 3372230237Sbaptcase "(($ac_try" in 3373230237Sbapt *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3374230237Sbapt *) ac_try_echo=$ac_try;; 3375230237Sbaptesac 3376230237Sbapteval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3377230237Sbapt (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3378230237Sbapt ac_status=$? 3379230237Sbapt grep -v '^ *+' conftest.er1 >conftest.err 3380230237Sbapt rm -f conftest.er1 3381230237Sbapt cat conftest.err >&5 3382230237Sbapt echo "$as_me:$LINENO: \$? = $ac_status" >&5 3383230237Sbapt (exit $ac_status); } >/dev/null && { 3384230237Sbapt test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 3385230237Sbapt test ! -s conftest.err 3386230237Sbapt }; then 3387230237Sbapt # Broken: success on invalid input. 3388230237Sbaptcontinue 3389230237Sbaptelse 3390230237Sbapt echo "$as_me: failed program was:" >&5 3391230237Sbaptsed 's/^/| /' conftest.$ac_ext >&5 3392230237Sbapt 3393230237Sbapt # Passes both tests. 3394230237Sbaptac_preproc_ok=: 3395230237Sbaptbreak 3396230237Sbaptfi 3397230237Sbapt 3398230237Sbaptrm -f conftest.err conftest.$ac_ext 3399230237Sbapt 3400230237Sbaptdone 3401230237Sbapt# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3402230237Sbaptrm -f conftest.err conftest.$ac_ext 3403230237Sbaptif $ac_preproc_ok; then 3404230237Sbapt : 3405230237Sbaptelse 3406230237Sbapt { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 3407230237SbaptSee \`config.log' for more details." >&5 3408230237Sbaptecho "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 3409230237SbaptSee \`config.log' for more details." >&2;} 3410230237Sbapt { (exit 1); exit 1; }; } 3411230237Sbaptfi 3412230237Sbapt 3413230237Sbaptac_ext=c 3414230237Sbaptac_cpp='$CPP $CPPFLAGS' 3415230237Sbaptac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3416230237Sbaptac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3417230237Sbaptac_compiler_gnu=$ac_cv_c_compiler_gnu 3418230237Sbapt 3419230237Sbapt if test -n "$ac_tool_prefix"; then 3420230237Sbapt # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3421230237Sbaptset dummy ${ac_tool_prefix}ranlib; ac_word=$2 3422230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3423230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3424230237Sbaptif test "${ac_cv_prog_RANLIB+set}" = set; then 3425230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3426230237Sbaptelse 342758551Skris if test -n "$RANLIB"; then 342858551Skris ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 342958551Skriselse 3430230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3431230237Sbaptfor as_dir in $PATH 3432230237Sbaptdo 3433230237Sbapt IFS=$as_save_IFS 3434230237Sbapt test -z "$as_dir" && as_dir=. 3435230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 3436230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3437230237Sbapt ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3438230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3439230237Sbapt break 2 3440230237Sbapt fi 3441230237Sbaptdone 3442230237Sbaptdone 3443230237SbaptIFS=$as_save_IFS 3444230237Sbapt 344558551Skrisfi 344658551Skrisfi 3447230237SbaptRANLIB=$ac_cv_prog_RANLIB 344858551Skrisif test -n "$RANLIB"; then 3449230237Sbapt { echo "$as_me:$LINENO: result: $RANLIB" >&5 3450230237Sbaptecho "${ECHO_T}$RANLIB" >&6; } 345158551Skriselse 3452230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 3453230237Sbaptecho "${ECHO_T}no" >&6; } 345458551Skrisfi 345558551Skris 3456230237Sbapt 3457230237Sbaptfi 3458230237Sbaptif test -z "$ac_cv_prog_RANLIB"; then 3459230237Sbapt ac_ct_RANLIB=$RANLIB 3460230237Sbapt # Extract the first word of "ranlib", so it can be a program name with args. 3461230237Sbaptset dummy ranlib; ac_word=$2 3462230237Sbapt{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3463230237Sbaptecho $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3464230237Sbaptif test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3465230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 3466230237Sbaptelse 3467230237Sbapt if test -n "$ac_ct_RANLIB"; then 3468230237Sbapt ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3469230237Sbaptelse 3470230237Sbaptas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3471230237Sbaptfor as_dir in $PATH 3472230237Sbaptdo 3473230237Sbapt IFS=$as_save_IFS 3474230237Sbapt test -z "$as_dir" && as_dir=. 3475230237Sbapt for ac_exec_ext in '' $ac_executable_extensions; do 3476230237Sbapt if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3477230237Sbapt ac_cv_prog_ac_ct_RANLIB="ranlib" 3478230237Sbapt echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3479230237Sbapt break 2 3480230237Sbapt fi 3481230237Sbaptdone 3482230237Sbaptdone 3483230237SbaptIFS=$as_save_IFS 3484230237Sbapt 3485230237Sbaptfi 3486230237Sbaptfi 3487230237Sbaptac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3488230237Sbaptif test -n "$ac_ct_RANLIB"; then 3489230237Sbapt { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3490230237Sbaptecho "${ECHO_T}$ac_ct_RANLIB" >&6; } 3491230237Sbaptelse 3492230237Sbapt { echo "$as_me:$LINENO: result: no" >&5 3493230237Sbaptecho "${ECHO_T}no" >&6; } 3494230237Sbaptfi 3495230237Sbapt 3496230237Sbapt if test "x$ac_ct_RANLIB" = x; then 3497230237Sbapt RANLIB=":" 3498230237Sbapt else 3499230237Sbapt case $cross_compiling:$ac_tool_warned in 3500230237Sbaptyes:) 3501230237Sbapt{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3502230237Sbaptwhose name does not start with the host triplet. If you think this 3503230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&5 3504230237Sbaptecho "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 3505230237Sbaptwhose name does not start with the host triplet. If you think this 3506230237Sbaptconfiguration is useful to you, please write to autoconf@gnu.org." >&2;} 3507230237Sbaptac_tool_warned=yes ;; 3508230237Sbaptesac 3509230237Sbapt RANLIB=$ac_ct_RANLIB 3510230237Sbapt fi 3511230237Sbaptelse 3512230237Sbapt RANLIB="$ac_cv_prog_RANLIB" 3513230237Sbaptfi 3514230237Sbapt 351558551Skris # Find a good install program. We prefer a C program (faster), 351658551Skris# so one script is as good as another. But avoid the broken or 351758551Skris# incompatible versions: 351858551Skris# SysV /etc/install, /usr/sbin/install 351958551Skris# SunOS /usr/etc/install 352058551Skris# IRIX /sbin/install 352158551Skris# AIX /bin/install 352258551Skris# AFS /usr/afsws/bin/install, which mishandles nonexistent args 352358551Skris# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 352458551Skris# ./install, which can be erroneously created by make from ./install.sh. 3525230237Sbapt{ echo "$as_me:$LINENO: checking for a BSD compatible install" >&5 3526230237Sbaptecho $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6; } 352758551Skrisif test -z "$INSTALL"; then 3528230237Sbaptif test "${cl_cv_path_install+set}" = set; then 3529230237Sbapt echo $ECHO_N "(cached) $ECHO_C" >&6 353058551Skriselse 353158551Skris IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 353258551Skris for ac_dir in $PATH; do 353358551Skris # Account for people who put trailing slashes in PATH elements. 353458551Skris case "$ac_dir/" in 353558551Skris /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; 353658551Skris *) 353758551Skris # OSF1 and SCO ODT 3.0 have their own names for install. 353858551Skris for ac_prog in ginstall installbsd scoinst install; do 353958551Skris if test -f $ac_dir/$ac_prog; then 354058551Skris if test $ac_prog = install && 354158551Skris grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then 354258551Skris # AIX install. It has an incompatible calling convention. 354358551Skris # OSF/1 installbsd also uses dspmsg, but is usable. 354458551Skris : 354558551Skris else 354658551Skris if test $ac_prog = installbsd && 354758551Skris grep src/bos $ac_dir/$ac_prog >/dev/null 2>&1; then 354858551Skris # AIX installbsd doesn't work without option "-g". 354958551Skris : 355058551Skris else 355167064Sobrien cl_cv_path_install="$ac_dir/$ac_prog -c" 355258551Skris break 2 355358551Skris fi 355458551Skris fi 355558551Skris fi 355658551Skris done 355758551Skris ;; 355858551Skris esac 355958551Skris done 356058551Skris IFS="$ac_save_ifs" 356158551Skris # As a last resort, use cp. 356258551Skris test -z "$cl_cv_path_install" && cl_cv_path_install="cp" 356358551Skris 356458551Skrisfi 356558551Skris INSTALL="$cl_cv_path_install" 356658551Skrisfi 3567230237Sbapt{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3568230237Sbaptecho "${ECHO_T}$INSTALL" >&6; } 356958551Skris# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 357058551Skris# It thinks the first close brace ends the variable substitution. 357158551Skristest -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='$(INSTALL)' 357258551Skrisif test -z "$INSTALL_DATA"; then 357358551Skris case "$INSTALL" in 357458551Skris cp | */cp ) INSTALL_DATA='$(INSTALL)' ;; 357558551Skris * ) INSTALL_DATA='$(INSTALL) -m 644' ;; 357658551Skris esac 357758551Skrisfi 357858551Skris 3579230237Sbapt ac_config_files="$ac_config_files Makefile" 3580230237Sbapt 3581230237Sbaptcat >confcache <<\_ACEOF 358258551Skris# This file is a shell script that caches the results of configure 358358551Skris# tests run on this system so they can be shared between configure 3584230237Sbapt# scripts and configure runs, see configure's option --config-cache. 3585230237Sbapt# It is not useful on other systems. If it contains results you don't 3586230237Sbapt# want to keep, you may remove or edit it. 358758551Skris# 3588230237Sbapt# config.status only pays attention to the cache file if you give it 3589230237Sbapt# the --recheck option to rerun configure. 359058551Skris# 3591230237Sbapt# `ac_cv_env_foo' variables (set or unset) will be overridden when 3592230237Sbapt# loading this file, other *unset* `ac_cv_foo' will be assigned the 3593230237Sbapt# following values. 3594230237Sbapt 3595230237Sbapt_ACEOF 3596230237Sbapt 359758551Skris# The following way of writing the cache mishandles newlines in values, 359858551Skris# but we know of no workaround that is simple, portable, and efficient. 3599230237Sbapt# So, we kill variables containing newlines. 360058551Skris# Ultrix sh set writes to stderr and can't be redirected directly, 360158551Skris# and sets the high bit in the cache file unless we assign to the vars. 3602230237Sbapt( 3603230237Sbapt for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 3604230237Sbapt eval ac_val=\$$ac_var 3605230237Sbapt case $ac_val in #( 3606230237Sbapt *${as_nl}*) 3607230237Sbapt case $ac_var in #( 3608230237Sbapt *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 3609230237Sbaptecho "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 3610230237Sbapt esac 3611230237Sbapt case $ac_var in #( 3612230237Sbapt _ | IFS | as_nl) ;; #( 3613230237Sbapt *) $as_unset $ac_var ;; 3614230237Sbapt esac ;; 3615230237Sbapt esac 3616230237Sbapt done 3617230237Sbapt 3618230237Sbapt (set) 2>&1 | 3619230237Sbapt case $as_nl`(ac_space=' '; set) 2>&1` in #( 3620230237Sbapt *${as_nl}ac_space=\ *) 3621230237Sbapt # `set' does not quote correctly, so add quotes (double-quote 3622230237Sbapt # substitution turns \\\\ into \\, and sed turns \\ into \). 3623230237Sbapt sed -n \ 3624230237Sbapt "s/'/'\\\\''/g; 3625230237Sbapt s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 3626230237Sbapt ;; #( 3627230237Sbapt *) 3628230237Sbapt # `set' quotes correctly as required by POSIX, so do not add quotes. 3629230237Sbapt sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3630230237Sbapt ;; 3631230237Sbapt esac | 3632230237Sbapt sort 3633230237Sbapt) | 3634230237Sbapt sed ' 3635230237Sbapt /^ac_cv_env_/b end 3636230237Sbapt t clear 3637230237Sbapt :clear 3638230237Sbapt s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 3639230237Sbapt t end 3640230237Sbapt s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 3641230237Sbapt :end' >>confcache 3642230237Sbaptif diff "$cache_file" confcache >/dev/null 2>&1; then :; else 3643230237Sbapt if test -w "$cache_file"; then 3644230237Sbapt test "x$cache_file" != "x/dev/null" && 3645230237Sbapt { echo "$as_me:$LINENO: updating cache $cache_file" >&5 3646230237Sbaptecho "$as_me: updating cache $cache_file" >&6;} 3647230237Sbapt cat confcache >$cache_file 364858551Skris else 3649230237Sbapt { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 3650230237Sbaptecho "$as_me: not updating unwritable cache $cache_file" >&6;} 365158551Skris fi 365258551Skrisfi 365358551Skrisrm -f confcache 365458551Skris 365558551Skristest "x$prefix" = xNONE && prefix=$ac_default_prefix 365658551Skris# Let make expand exec_prefix. 365758551Skristest "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 365858551Skris 365958551Skris# Transform confdefs.h into DEFS. 366058551Skris# Protect against shell expansion while executing Makefile rules. 366158551Skris# Protect against Makefile macro expansion. 3662230237Sbapt# 3663230237Sbapt# If the first sed substitution is executed (which looks for macros that 3664230237Sbapt# take arguments), then branch to the quote section. Otherwise, 3665230237Sbapt# look for a macro that doesn't take arguments. 3666230237Sbaptac_script=' 3667230237Sbaptt clear 3668230237Sbapt:clear 3669230237Sbapts/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 3670230237Sbaptt quote 3671230237Sbapts/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 3672230237Sbaptt quote 3673230237Sbaptb any 3674230237Sbapt:quote 3675230237Sbapts/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 3676230237Sbapts/\[/\\&/g 3677230237Sbapts/\]/\\&/g 3678230237Sbapts/\$/$$/g 3679230237SbaptH 3680230237Sbapt:any 3681230237Sbapt${ 3682230237Sbapt g 3683230237Sbapt s/^\n// 3684230237Sbapt s/\n/ /g 3685230237Sbapt p 3686230237Sbapt} 3687230237Sbapt' 3688230237SbaptDEFS=`sed -n "$ac_script" confdefs.h` 368958551Skris 369058551Skris 3691230237Sbaptac_libobjs= 3692230237Sbaptac_ltlibobjs= 3693230237Sbaptfor ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3694230237Sbapt # 1. Remove the extension, and $U if already installed. 3695230237Sbapt ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 3696230237Sbapt ac_i=`echo "$ac_i" | sed "$ac_script"` 3697230237Sbapt # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 3698230237Sbapt # will be set to the directory where LIBOBJS objects are built. 3699230237Sbapt ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 3700230237Sbapt ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 3701230237Sbaptdone 3702230237SbaptLIBOBJS=$ac_libobjs 3703230237Sbapt 3704230237SbaptLTLIBOBJS=$ac_ltlibobjs 3705230237Sbapt 3706230237Sbapt 3707230237Sbapt 370858551Skris: ${CONFIG_STATUS=./config.status} 3709230237Sbaptac_clean_files_save=$ac_clean_files 3710230237Sbaptac_clean_files="$ac_clean_files $CONFIG_STATUS" 3711230237Sbapt{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 3712230237Sbaptecho "$as_me: creating $CONFIG_STATUS" >&6;} 3713230237Sbaptcat >$CONFIG_STATUS <<_ACEOF 3714230237Sbapt#! $SHELL 3715230237Sbapt# Generated by $as_me. 371658551Skris# Run this file to recreate the current configuration. 371758551Skris# Compiler output produced by configure, useful for debugging 3718230237Sbapt# configure, is in config.log if it exists. 371958551Skris 3720230237Sbaptdebug=false 3721230237Sbaptac_cs_recheck=false 3722230237Sbaptac_cs_silent=false 3723230237SbaptSHELL=\${CONFIG_SHELL-$SHELL} 3724230237Sbapt_ACEOF 372558551Skris 3726230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 3727230237Sbapt## --------------------- ## 3728230237Sbapt## M4sh Initialization. ## 3729230237Sbapt## --------------------- ## 373058551Skris 3731230237Sbapt# Be more Bourne compatible 3732230237SbaptDUALCASE=1; export DUALCASE # for MKS sh 3733230237Sbaptif test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 3734230237Sbapt emulate sh 3735230237Sbapt NULLCMD=: 3736230237Sbapt # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 3737230237Sbapt # is contrary to our usage. Disable this feature. 3738230237Sbapt alias -g '${1+"$@"}'='"$@"' 3739230237Sbapt setopt NO_GLOB_SUBST 3740230237Sbaptelse 3741230237Sbapt case `(set -o) 2>/dev/null` in 3742230237Sbapt *posix*) set -o posix ;; 3743230237Sbaptesac 374458551Skris 3745230237Sbaptfi 374658551Skris 374758551Skris 374858551Skris 3749230237Sbapt 3750230237Sbapt# PATH needs CR 3751230237Sbapt# Avoid depending upon Character Ranges. 3752230237Sbaptas_cr_letters='abcdefghijklmnopqrstuvwxyz' 3753230237Sbaptas_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3754230237Sbaptas_cr_Letters=$as_cr_letters$as_cr_LETTERS 3755230237Sbaptas_cr_digits='0123456789' 3756230237Sbaptas_cr_alnum=$as_cr_Letters$as_cr_digits 3757230237Sbapt 3758230237Sbapt# The user is always right. 3759230237Sbaptif test "${PATH_SEPARATOR+set}" != set; then 3760230237Sbapt echo "#! /bin/sh" >conf$$.sh 3761230237Sbapt echo "exit 0" >>conf$$.sh 3762230237Sbapt chmod +x conf$$.sh 3763230237Sbapt if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 3764230237Sbapt PATH_SEPARATOR=';' 376558551Skris else 3766230237Sbapt PATH_SEPARATOR=: 376758551Skris fi 3768230237Sbapt rm -f conf$$.sh 3769230237Sbaptfi 3770230237Sbapt 3771230237Sbapt# Support unset when possible. 3772230237Sbaptif ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 3773230237Sbapt as_unset=unset 3774230237Sbaptelse 3775230237Sbapt as_unset=false 3776230237Sbaptfi 3777230237Sbapt 3778230237Sbapt 3779230237Sbapt# IFS 3780230237Sbapt# We need space, tab and new line, in precisely that order. Quoting is 3781230237Sbapt# there to prevent editors from complaining about space-tab. 3782230237Sbapt# (If _AS_PATH_WALK were called with IFS unset, it would disable word 3783230237Sbapt# splitting by setting IFS to empty value.) 3784230237Sbaptas_nl=' 3785230237Sbapt' 3786230237SbaptIFS=" "" $as_nl" 3787230237Sbapt 3788230237Sbapt# Find who we are. Look in the path if we contain no directory separator. 3789230237Sbaptcase $0 in 3790230237Sbapt *[\\/]* ) as_myself=$0 ;; 3791230237Sbapt *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3792230237Sbaptfor as_dir in $PATH 3793230237Sbaptdo 3794230237Sbapt IFS=$as_save_IFS 3795230237Sbapt test -z "$as_dir" && as_dir=. 3796230237Sbapt test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3797230237Sbaptdone 3798230237SbaptIFS=$as_save_IFS 3799230237Sbapt 3800230237Sbapt ;; 3801230237Sbaptesac 3802230237Sbapt# We did not find ourselves, most probably we were run as `sh COMMAND' 3803230237Sbapt# in which case we are not to be found in the path. 3804230237Sbaptif test "x$as_myself" = x; then 3805230237Sbapt as_myself=$0 3806230237Sbaptfi 3807230237Sbaptif test ! -f "$as_myself"; then 3808230237Sbapt echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 3809230237Sbapt { (exit 1); exit 1; } 3810230237Sbaptfi 3811230237Sbapt 3812230237Sbapt# Work around bugs in pre-3.0 UWIN ksh. 3813230237Sbaptfor as_var in ENV MAIL MAILPATH 3814230237Sbaptdo ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 3815230237Sbaptdone 3816230237SbaptPS1='$ ' 3817230237SbaptPS2='> ' 3818230237SbaptPS4='+ ' 3819230237Sbapt 3820230237Sbapt# NLS nuisances. 3821230237Sbaptfor as_var in \ 3822230237Sbapt LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 3823230237Sbapt LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 3824230237Sbapt LC_TELEPHONE LC_TIME 3825230237Sbaptdo 3826230237Sbapt if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 3827230237Sbapt eval $as_var=C; export $as_var 382858551Skris else 3829230237Sbapt ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 383058551Skris fi 383158551Skrisdone 3832230237Sbapt 3833230237Sbapt# Required to use basename. 3834230237Sbaptif expr a : '\(a\)' >/dev/null 2>&1 && 3835230237Sbapt test "X`expr 00001 : '.*\(...\)'`" = X001; then 3836230237Sbapt as_expr=expr 3837230237Sbaptelse 3838230237Sbapt as_expr=false 383958551Skrisfi 384058551Skris 3841230237Sbaptif (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3842230237Sbapt as_basename=basename 3843230237Sbaptelse 3844230237Sbapt as_basename=false 3845230237Sbaptfi 384658551Skris 3847230237Sbapt 3848230237Sbapt# Name of the executable. 3849230237Sbaptas_me=`$as_basename -- "$0" || 3850230237Sbapt$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3851230237Sbapt X"$0" : 'X\(//\)$' \| \ 3852230237Sbapt X"$0" : 'X\(/\)' \| . 2>/dev/null || 3853230237Sbaptecho X/"$0" | 3854230237Sbapt sed '/^.*\/\([^/][^/]*\)\/*$/{ 3855230237Sbapt s//\1/ 3856230237Sbapt q 3857230237Sbapt } 3858230237Sbapt /^X\/\(\/\/\)$/{ 3859230237Sbapt s//\1/ 3860230237Sbapt q 3861230237Sbapt } 3862230237Sbapt /^X\/\(\/\).*/{ 3863230237Sbapt s//\1/ 3864230237Sbapt q 3865230237Sbapt } 3866230237Sbapt s/.*/./; q'` 3867230237Sbapt 3868230237Sbapt# CDPATH. 3869230237Sbapt$as_unset CDPATH 3870230237Sbapt 3871230237Sbapt 3872230237Sbapt 3873230237Sbapt as_lineno_1=$LINENO 3874230237Sbapt as_lineno_2=$LINENO 3875230237Sbapt test "x$as_lineno_1" != "x$as_lineno_2" && 3876230237Sbapt test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 3877230237Sbapt 3878230237Sbapt # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 3879230237Sbapt # uniformly replaced by the line number. The first 'sed' inserts a 3880230237Sbapt # line-number line after each line using $LINENO; the second 'sed' 3881230237Sbapt # does the real work. The second script uses 'N' to pair each 3882230237Sbapt # line-number line with the line containing $LINENO, and appends 3883230237Sbapt # trailing '-' during substitution so that $LINENO is not a special 3884230237Sbapt # case at line end. 3885230237Sbapt # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 3886230237Sbapt # scripts with optimization help from Paolo Bonzini. Blame Lee 3887230237Sbapt # E. McMahon (1931-1989) for sed's syntax. :-) 3888230237Sbapt sed -n ' 3889230237Sbapt p 3890230237Sbapt /[$]LINENO/= 3891230237Sbapt ' <$as_myself | 3892230237Sbapt sed ' 3893230237Sbapt s/[$]LINENO.*/&-/ 3894230237Sbapt t lineno 3895230237Sbapt b 3896230237Sbapt :lineno 3897230237Sbapt N 3898230237Sbapt :loop 3899230237Sbapt s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 3900230237Sbapt t loop 3901230237Sbapt s/-\n.*// 3902230237Sbapt ' >$as_me.lineno && 3903230237Sbapt chmod +x "$as_me.lineno" || 3904230237Sbapt { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 3905230237Sbapt { (exit 1); exit 1; }; } 3906230237Sbapt 3907230237Sbapt # Don't try to exec as it changes $[0], causing all sort of problems 3908230237Sbapt # (the dirname of $[0] is not the place where we might find the 3909230237Sbapt # original and so on. Autoconf is especially sensitive to this). 3910230237Sbapt . "./$as_me.lineno" 3911230237Sbapt # Exit status is that of the last command. 3912230237Sbapt exit 3913230237Sbapt} 3914230237Sbapt 3915230237Sbapt 3916230237Sbaptif (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 3917230237Sbapt as_dirname=dirname 3918230237Sbaptelse 3919230237Sbapt as_dirname=false 3920230237Sbaptfi 3921230237Sbapt 3922230237SbaptECHO_C= ECHO_N= ECHO_T= 3923230237Sbaptcase `echo -n x` in 3924230237Sbapt-n*) 3925230237Sbapt case `echo 'x\c'` in 3926230237Sbapt *c*) ECHO_T=' ';; # ECHO_T is single tab character. 3927230237Sbapt *) ECHO_C='\c';; 3928230237Sbapt esac;; 3929230237Sbapt*) 3930230237Sbapt ECHO_N='-n';; 3931230237Sbaptesac 3932230237Sbapt 3933230237Sbaptif expr a : '\(a\)' >/dev/null 2>&1 && 3934230237Sbapt test "X`expr 00001 : '.*\(...\)'`" = X001; then 3935230237Sbapt as_expr=expr 3936230237Sbaptelse 3937230237Sbapt as_expr=false 3938230237Sbaptfi 3939230237Sbapt 3940230237Sbaptrm -f conf$$ conf$$.exe conf$$.file 3941230237Sbaptif test -d conf$$.dir; then 3942230237Sbapt rm -f conf$$.dir/conf$$.file 3943230237Sbaptelse 3944230237Sbapt rm -f conf$$.dir 3945230237Sbapt mkdir conf$$.dir 3946230237Sbaptfi 3947230237Sbaptecho >conf$$.file 3948230237Sbaptif ln -s conf$$.file conf$$ 2>/dev/null; then 3949230237Sbapt as_ln_s='ln -s' 3950230237Sbapt # ... but there are two gotchas: 3951230237Sbapt # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 3952230237Sbapt # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 3953230237Sbapt # In both cases, we have to default to `cp -p'. 3954230237Sbapt ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 3955230237Sbapt as_ln_s='cp -p' 3956230237Sbaptelif ln conf$$.file conf$$ 2>/dev/null; then 3957230237Sbapt as_ln_s=ln 3958230237Sbaptelse 3959230237Sbapt as_ln_s='cp -p' 3960230237Sbaptfi 3961230237Sbaptrm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 3962230237Sbaptrmdir conf$$.dir 2>/dev/null 3963230237Sbapt 3964230237Sbaptif mkdir -p . 2>/dev/null; then 3965230237Sbapt as_mkdir_p=: 3966230237Sbaptelse 3967230237Sbapt test -d ./-p && rmdir ./-p 3968230237Sbapt as_mkdir_p=false 3969230237Sbaptfi 3970230237Sbapt 3971230237Sbaptif test -x / >/dev/null 2>&1; then 3972230237Sbapt as_test_x='test -x' 3973230237Sbaptelse 3974230237Sbapt if ls -dL / >/dev/null 2>&1; then 3975230237Sbapt as_ls_L_option=L 3976230237Sbapt else 3977230237Sbapt as_ls_L_option= 3978230237Sbapt fi 3979230237Sbapt as_test_x=' 3980230237Sbapt eval sh -c '\'' 3981230237Sbapt if test -d "$1"; then 3982230237Sbapt test -d "$1/."; 3983230237Sbapt else 3984230237Sbapt case $1 in 3985230237Sbapt -*)set "./$1";; 3986230237Sbapt esac; 3987230237Sbapt case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 3988230237Sbapt ???[sx]*):;;*)false;;esac;fi 3989230237Sbapt '\'' sh 3990230237Sbapt ' 3991230237Sbaptfi 3992230237Sbaptas_executable_p=$as_test_x 3993230237Sbapt 3994230237Sbapt# Sed expression to map a string onto a valid CPP name. 3995230237Sbaptas_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 3996230237Sbapt 3997230237Sbapt# Sed expression to map a string onto a valid variable name. 3998230237Sbaptas_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3999230237Sbapt 4000230237Sbapt 4001230237Sbaptexec 6>&1 4002230237Sbapt 4003230237Sbapt# Save the log message, to keep $[0] and so on meaningful, and to 4004230237Sbapt# report actual input values of CONFIG_FILES etc. instead of their 4005230237Sbapt# values after options handling. 4006230237Sbaptac_log=" 4007230237SbaptThis file was extended by $as_me, which was 4008230237Sbaptgenerated by GNU Autoconf 2.61. Invocation command line was 4009230237Sbapt 4010230237Sbapt CONFIG_FILES = $CONFIG_FILES 4011230237Sbapt CONFIG_HEADERS = $CONFIG_HEADERS 4012230237Sbapt CONFIG_LINKS = $CONFIG_LINKS 4013230237Sbapt CONFIG_COMMANDS = $CONFIG_COMMANDS 4014230237Sbapt $ $0 $@ 4015230237Sbapt 4016230237Sbapton `(hostname || uname -n) 2>/dev/null | sed 1q` 4017230237Sbapt" 4018230237Sbapt 4019230237Sbapt_ACEOF 4020230237Sbapt 4021230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4022230237Sbapt# Files that config.status was made for. 4023230237Sbaptconfig_files="$ac_config_files" 4024230237Sbapt 4025230237Sbapt_ACEOF 4026230237Sbapt 4027230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 4028230237Sbaptac_cs_usage="\ 4029230237Sbapt\`$as_me' instantiates files from templates according to the 4030230237Sbaptcurrent configuration. 4031230237Sbapt 4032230237SbaptUsage: $0 [OPTIONS] [FILE]... 4033230237Sbapt 4034230237Sbapt -h, --help print this help, then exit 4035230237Sbapt -V, --version print version number and configuration settings, then exit 4036230237Sbapt -q, --quiet do not print progress messages 4037230237Sbapt -d, --debug don't remove temporary files 4038230237Sbapt --recheck update $as_me by reconfiguring in the same conditions 4039230237Sbapt --file=FILE[:TEMPLATE] 4040230237Sbapt instantiate the configuration file FILE 4041230237Sbapt 4042230237SbaptConfiguration files: 4043230237Sbapt$config_files 4044230237Sbapt 4045230237SbaptReport bugs to <bug-autoconf@gnu.org>." 4046230237Sbapt 4047230237Sbapt_ACEOF 4048230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4049230237Sbaptac_cs_version="\\ 4050230237Sbaptconfig.status 4051230237Sbaptconfigured by $0, generated by GNU Autoconf 2.61, 4052230237Sbapt with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 4053230237Sbapt 4054230237SbaptCopyright (C) 2006 Free Software Foundation, Inc. 4055230237SbaptThis config.status script is free software; the Free Software Foundation 4056230237Sbaptgives unlimited permission to copy, distribute and modify it." 4057230237Sbapt 4058230237Sbaptac_pwd='$ac_pwd' 4059230237Sbaptsrcdir='$srcdir' 4060230237Sbapt_ACEOF 4061230237Sbapt 4062230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 4063230237Sbapt# If no file are specified by the user, then we need to provide default 4064230237Sbapt# value. By we need to know if files were specified by the user. 4065230237Sbaptac_need_defaults=: 4066230237Sbaptwhile test $# != 0 4067230237Sbaptdo 4068230237Sbapt case $1 in 4069230237Sbapt --*=*) 4070230237Sbapt ac_option=`expr "X$1" : 'X\([^=]*\)='` 4071230237Sbapt ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4072230237Sbapt ac_shift=: 4073230237Sbapt ;; 4074230237Sbapt *) 4075230237Sbapt ac_option=$1 4076230237Sbapt ac_optarg=$2 4077230237Sbapt ac_shift=shift 4078230237Sbapt ;; 407958551Skris esac 408058551Skris 4081230237Sbapt case $ac_option in 4082230237Sbapt # Handling of the options. 4083230237Sbapt -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4084230237Sbapt ac_cs_recheck=: ;; 4085230237Sbapt --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4086230237Sbapt echo "$ac_cs_version"; exit ;; 4087230237Sbapt --debug | --debu | --deb | --de | --d | -d ) 4088230237Sbapt debug=: ;; 4089230237Sbapt --file | --fil | --fi | --f ) 4090230237Sbapt $ac_shift 4091230237Sbapt CONFIG_FILES="$CONFIG_FILES $ac_optarg" 4092230237Sbapt ac_need_defaults=false;; 4093230237Sbapt --he | --h | --help | --hel | -h ) 4094230237Sbapt echo "$ac_cs_usage"; exit ;; 4095230237Sbapt -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4096230237Sbapt | -silent | --silent | --silen | --sile | --sil | --si | --s) 4097230237Sbapt ac_cs_silent=: ;; 409858551Skris 4099230237Sbapt # This is an error. 4100230237Sbapt -*) { echo "$as_me: error: unrecognized option: $1 4101230237SbaptTry \`$0 --help' for more information." >&2 4102230237Sbapt { (exit 1); exit 1; }; } ;; 4103230237Sbapt 4104230237Sbapt *) ac_config_targets="$ac_config_targets $1" 4105230237Sbapt ac_need_defaults=false ;; 4106230237Sbapt 4107230237Sbapt esac 4108230237Sbapt shift 4109230237Sbaptdone 4110230237Sbapt 4111230237Sbaptac_configure_extra_args= 4112230237Sbapt 4113230237Sbaptif $ac_cs_silent; then 4114230237Sbapt exec 6>/dev/null 4115230237Sbapt ac_configure_extra_args="$ac_configure_extra_args --silent" 4116230237Sbaptfi 4117230237Sbapt 4118230237Sbapt_ACEOF 4119230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4120230237Sbaptif \$ac_cs_recheck; then 4121230237Sbapt echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4122230237Sbapt CONFIG_SHELL=$SHELL 4123230237Sbapt export CONFIG_SHELL 4124230237Sbapt exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4125230237Sbaptfi 4126230237Sbapt 4127230237Sbapt_ACEOF 4128230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 4129230237Sbaptexec 5>>config.log 4130230237Sbapt{ 4131230237Sbapt echo 4132230237Sbapt sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4133230237Sbapt## Running $as_me. ## 4134230237Sbapt_ASBOX 4135230237Sbapt echo "$ac_log" 4136230237Sbapt} >&5 4137230237Sbapt 4138230237Sbapt_ACEOF 4139230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4140230237Sbapt_ACEOF 4141230237Sbapt 4142230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 4143230237Sbapt 4144230237Sbapt# Handling of arguments. 4145230237Sbaptfor ac_config_target in $ac_config_targets 4146230237Sbaptdo 4147230237Sbapt case $ac_config_target in 4148230237Sbapt "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4149230237Sbapt 4150230237Sbapt *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4151230237Sbaptecho "$as_me: error: invalid argument: $ac_config_target" >&2;} 4152230237Sbapt { (exit 1); exit 1; }; };; 4153230237Sbapt esac 4154230237Sbaptdone 4155230237Sbapt 4156230237Sbapt 4157230237Sbapt# If the user did not use the arguments to specify the items to instantiate, 4158230237Sbapt# then the envvar interface is used. Set only those that are not. 4159230237Sbapt# We use the long form for the default assignment because of an extremely 4160230237Sbapt# bizarre bug on SunOS 4.1.3. 4161230237Sbaptif $ac_need_defaults; then 4162230237Sbapt test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4163230237Sbaptfi 4164230237Sbapt 4165230237Sbapt# Have a temporary directory for convenience. Make it in the build tree 4166230237Sbapt# simply because there is no reason against having it here, and in addition, 4167230237Sbapt# creating and moving files from /tmp can sometimes cause problems. 4168230237Sbapt# Hook for its removal unless debugging. 4169230237Sbapt# Note that there is a small window in which the directory will not be cleaned: 4170230237Sbapt# after its creation but before its name has been assigned to `$tmp'. 4171230237Sbapt$debug || 4172230237Sbapt{ 4173230237Sbapt tmp= 4174230237Sbapt trap 'exit_status=$? 4175230237Sbapt { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 4176230237Sbapt' 0 4177230237Sbapt trap '{ (exit 1); exit 1; }' 1 2 13 15 4178230237Sbapt} 4179230237Sbapt# Create a (secure) tmp directory for tmp files. 4180230237Sbapt 4181230237Sbapt{ 4182230237Sbapt tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4183230237Sbapt test -n "$tmp" && test -d "$tmp" 4184230237Sbapt} || 4185230237Sbapt{ 4186230237Sbapt tmp=./conf$$-$RANDOM 4187230237Sbapt (umask 077 && mkdir "$tmp") 4188230237Sbapt} || 4189230237Sbapt{ 4190230237Sbapt echo "$me: cannot create a temporary directory in ." >&2 4191230237Sbapt { (exit 1); exit 1; } 4192230237Sbapt} 4193230237Sbapt 4194230237Sbapt# 4195230237Sbapt# Set up the sed scripts for CONFIG_FILES section. 4196230237Sbapt# 4197230237Sbapt 4198230237Sbapt# No need to generate the scripts if there are no CONFIG_FILES. 4199230237Sbapt# This happens for instance when ./config.status config.h 4200230237Sbaptif test -n "$CONFIG_FILES"; then 4201230237Sbapt 4202230237Sbapt_ACEOF 4203230237Sbapt 4204230237Sbapt 4205230237Sbapt 4206230237Sbaptac_delim='%!_!# ' 4207230237Sbaptfor ac_last_try in false false false false false :; do 4208230237Sbapt cat >conf$$subs.sed <<_ACEOF 4209230237SbaptSHELL!$SHELL$ac_delim 4210230237SbaptPATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 4211230237SbaptPACKAGE_NAME!$PACKAGE_NAME$ac_delim 4212230237SbaptPACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 4213230237SbaptPACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 4214230237SbaptPACKAGE_STRING!$PACKAGE_STRING$ac_delim 4215230237SbaptPACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 4216230237Sbaptexec_prefix!$exec_prefix$ac_delim 4217230237Sbaptprefix!$prefix$ac_delim 4218230237Sbaptprogram_transform_name!$program_transform_name$ac_delim 4219230237Sbaptbindir!$bindir$ac_delim 4220230237Sbaptsbindir!$sbindir$ac_delim 4221230237Sbaptlibexecdir!$libexecdir$ac_delim 4222230237Sbaptdatarootdir!$datarootdir$ac_delim 4223230237Sbaptdatadir!$datadir$ac_delim 4224230237Sbaptsysconfdir!$sysconfdir$ac_delim 4225230237Sbaptsharedstatedir!$sharedstatedir$ac_delim 4226230237Sbaptlocalstatedir!$localstatedir$ac_delim 4227230237Sbaptincludedir!$includedir$ac_delim 4228230237Sbaptoldincludedir!$oldincludedir$ac_delim 4229230237Sbaptdocdir!$docdir$ac_delim 4230230237Sbaptinfodir!$infodir$ac_delim 4231230237Sbapthtmldir!$htmldir$ac_delim 4232230237Sbaptdvidir!$dvidir$ac_delim 4233230237Sbaptpdfdir!$pdfdir$ac_delim 4234230237Sbaptpsdir!$psdir$ac_delim 4235230237Sbaptlibdir!$libdir$ac_delim 4236230237Sbaptlocaledir!$localedir$ac_delim 4237230237Sbaptmandir!$mandir$ac_delim 4238230237SbaptDEFS!$DEFS$ac_delim 4239230237SbaptECHO_C!$ECHO_C$ac_delim 4240230237SbaptECHO_N!$ECHO_N$ac_delim 4241230237SbaptECHO_T!$ECHO_T$ac_delim 4242230237SbaptLIBS!$LIBS$ac_delim 4243230237Sbaptbuild_alias!$build_alias$ac_delim 4244230237Sbapthost_alias!$host_alias$ac_delim 4245230237Sbapttarget_alias!$target_alias$ac_delim 4246230237SbaptSET_MAKE!$SET_MAKE$ac_delim 4247230237SbaptCC!$CC$ac_delim 4248230237SbaptCFLAGS!$CFLAGS$ac_delim 4249230237SbaptLDFLAGS!$LDFLAGS$ac_delim 4250230237SbaptCPPFLAGS!$CPPFLAGS$ac_delim 4251230237Sbaptac_ct_CC!$ac_ct_CC$ac_delim 4252230237SbaptEXEEXT!$EXEEXT$ac_delim 4253230237SbaptOBJEXT!$OBJEXT$ac_delim 4254230237SbaptCPP!$CPP$ac_delim 4255230237SbaptCXX!$CXX$ac_delim 4256230237SbaptCXXFLAGS!$CXXFLAGS$ac_delim 4257230237Sbaptac_ct_CXX!$ac_ct_CXX$ac_delim 4258230237SbaptCXXCPP!$CXXCPP$ac_delim 4259230237SbaptRANLIB!$RANLIB$ac_delim 4260230237SbaptINSTALL!$INSTALL$ac_delim 4261230237SbaptINSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 4262230237SbaptINSTALL_DATA!$INSTALL_DATA$ac_delim 4263230237SbaptLIBOBJS!$LIBOBJS$ac_delim 4264230237SbaptLTLIBOBJS!$LTLIBOBJS$ac_delim 4265230237Sbapt_ACEOF 4266230237Sbapt 4267230237Sbapt if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then 4268230237Sbapt break 4269230237Sbapt elif $ac_last_try; then 4270230237Sbapt { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 4271230237Sbaptecho "$as_me: error: could not make $CONFIG_STATUS" >&2;} 4272230237Sbapt { (exit 1); exit 1; }; } 427358551Skris else 4274230237Sbapt ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 427558551Skris fi 4276230237Sbaptdone 427758551Skris 4278230237Sbaptac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 4279230237Sbaptif test -n "$ac_eof"; then 4280230237Sbapt ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 4281230237Sbapt ac_eof=`expr $ac_eof + 1` 4282230237Sbaptfi 4283230237Sbapt 4284230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4285230237Sbaptcat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 4286230237Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 4287230237Sbapt_ACEOF 4288230237Sbaptsed ' 4289230237Sbapts/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 4290230237Sbapts/^/s,@/; s/!/@,|#_!!_#|/ 4291230237Sbapt:n 4292230237Sbaptt n 4293230237Sbapts/'"$ac_delim"'$/,g/; t 4294230237Sbapts/$/\\/; p 4295230237SbaptN; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 4296230237Sbapt' >>$CONFIG_STATUS <conf$$subs.sed 4297230237Sbaptrm -f conf$$subs.sed 4298230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4299230237Sbapt:end 4300230237Sbapts/|#_!!_#|//g 4301230237SbaptCEOF$ac_eof 4302230237Sbapt_ACEOF 4303230237Sbapt 4304230237Sbapt 4305230237Sbapt# VPATH may cause trouble with some makes, so we remove $(srcdir), 4306230237Sbapt# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 4307230237Sbapt# trailing colons and then remove the whole line if VPATH becomes empty 4308230237Sbapt# (actually we leave an empty line to preserve line numbers). 4309230237Sbaptif test "x$srcdir" = x.; then 4310230237Sbapt ac_vpsub='/^[ ]*VPATH[ ]*=/{ 4311230237Sbapts/:*\$(srcdir):*/:/ 4312230237Sbapts/:*\${srcdir}:*/:/ 4313230237Sbapts/:*@srcdir@:*/:/ 4314230237Sbapts/^\([^=]*=[ ]*\):*/\1/ 4315230237Sbapts/:*$// 4316230237Sbapts/^[^=]*=[ ]*$// 4317230237Sbapt}' 4318230237Sbaptfi 4319230237Sbapt 4320230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 4321230237Sbaptfi # test -n "$CONFIG_FILES" 4322230237Sbapt 4323230237Sbapt 4324230237Sbaptfor ac_tag in :F $CONFIG_FILES 4325230237Sbaptdo 4326230237Sbapt case $ac_tag in 4327230237Sbapt :[FHLC]) ac_mode=$ac_tag; continue;; 432858551Skris esac 4329230237Sbapt case $ac_mode$ac_tag in 4330230237Sbapt :[FHL]*:*);; 4331230237Sbapt :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 4332230237Sbaptecho "$as_me: error: Invalid tag $ac_tag." >&2;} 4333230237Sbapt { (exit 1); exit 1; }; };; 4334230237Sbapt :[FH]-) ac_tag=-:-;; 4335230237Sbapt :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4336230237Sbapt esac 4337230237Sbapt ac_save_IFS=$IFS 4338230237Sbapt IFS=: 4339230237Sbapt set x $ac_tag 4340230237Sbapt IFS=$ac_save_IFS 4341230237Sbapt shift 4342230237Sbapt ac_file=$1 4343230237Sbapt shift 434458551Skris 4345230237Sbapt case $ac_mode in 4346230237Sbapt :L) ac_source=$1;; 4347230237Sbapt :[FH]) 4348230237Sbapt ac_file_inputs= 4349230237Sbapt for ac_f 4350230237Sbapt do 4351230237Sbapt case $ac_f in 4352230237Sbapt -) ac_f="$tmp/stdin";; 4353230237Sbapt *) # Look for the file first in the build tree, then in the source tree 4354230237Sbapt # (if the path is not absolute). The absolute path cannot be DOS-style, 4355230237Sbapt # because $ac_f cannot contain `:'. 4356230237Sbapt test -f "$ac_f" || 4357230237Sbapt case $ac_f in 4358230237Sbapt [\\/$]*) false;; 4359230237Sbapt *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4360230237Sbapt esac || 4361230237Sbapt { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 4362230237Sbaptecho "$as_me: error: cannot find input file: $ac_f" >&2;} 4363230237Sbapt { (exit 1); exit 1; }; };; 4364230237Sbapt esac 4365230237Sbapt ac_file_inputs="$ac_file_inputs $ac_f" 4366230237Sbapt done 436758551Skris 4368230237Sbapt # Let's still pretend it is `configure' which instantiates (i.e., don't 4369230237Sbapt # use $as_me), people would be surprised to read: 4370230237Sbapt # /* config.h. Generated by config.status. */ 4371230237Sbapt configure_input="Generated from "`IFS=: 4372230237Sbapt echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 4373230237Sbapt if test x"$ac_file" != x-; then 4374230237Sbapt configure_input="$ac_file. $configure_input" 4375230237Sbapt { echo "$as_me:$LINENO: creating $ac_file" >&5 4376230237Sbaptecho "$as_me: creating $ac_file" >&6;} 4377230237Sbapt fi 4378230237Sbapt 4379230237Sbapt case $ac_tag in 4380230237Sbapt *:-:* | *:-) cat >"$tmp/stdin";; 4381230237Sbapt esac 4382230237Sbapt ;; 438358551Skris esac 438458551Skris 4385230237Sbapt ac_dir=`$as_dirname -- "$ac_file" || 4386230237Sbapt$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4387230237Sbapt X"$ac_file" : 'X\(//\)[^/]' \| \ 4388230237Sbapt X"$ac_file" : 'X\(//\)$' \| \ 4389230237Sbapt X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4390230237Sbaptecho X"$ac_file" | 4391230237Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4392230237Sbapt s//\1/ 4393230237Sbapt q 4394230237Sbapt } 4395230237Sbapt /^X\(\/\/\)[^/].*/{ 4396230237Sbapt s//\1/ 4397230237Sbapt q 4398230237Sbapt } 4399230237Sbapt /^X\(\/\/\)$/{ 4400230237Sbapt s//\1/ 4401230237Sbapt q 4402230237Sbapt } 4403230237Sbapt /^X\(\/\).*/{ 4404230237Sbapt s//\1/ 4405230237Sbapt q 4406230237Sbapt } 4407230237Sbapt s/.*/./; q'` 4408230237Sbapt { as_dir="$ac_dir" 4409230237Sbapt case $as_dir in #( 4410230237Sbapt -*) as_dir=./$as_dir;; 4411230237Sbapt esac 4412230237Sbapt test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 4413230237Sbapt as_dirs= 4414230237Sbapt while :; do 4415230237Sbapt case $as_dir in #( 4416230237Sbapt *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 4417230237Sbapt *) as_qdir=$as_dir;; 4418230237Sbapt esac 4419230237Sbapt as_dirs="'$as_qdir' $as_dirs" 4420230237Sbapt as_dir=`$as_dirname -- "$as_dir" || 4421230237Sbapt$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4422230237Sbapt X"$as_dir" : 'X\(//\)[^/]' \| \ 4423230237Sbapt X"$as_dir" : 'X\(//\)$' \| \ 4424230237Sbapt X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4425230237Sbaptecho X"$as_dir" | 4426230237Sbapt sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4427230237Sbapt s//\1/ 4428230237Sbapt q 4429230237Sbapt } 4430230237Sbapt /^X\(\/\/\)[^/].*/{ 4431230237Sbapt s//\1/ 4432230237Sbapt q 4433230237Sbapt } 4434230237Sbapt /^X\(\/\/\)$/{ 4435230237Sbapt s//\1/ 4436230237Sbapt q 4437230237Sbapt } 4438230237Sbapt /^X\(\/\).*/{ 4439230237Sbapt s//\1/ 4440230237Sbapt q 4441230237Sbapt } 4442230237Sbapt s/.*/./; q'` 4443230237Sbapt test -d "$as_dir" && break 4444230237Sbapt done 4445230237Sbapt test -z "$as_dirs" || eval "mkdir $as_dirs" 4446230237Sbapt } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 4447230237Sbaptecho "$as_me: error: cannot create directory $as_dir" >&2;} 4448230237Sbapt { (exit 1); exit 1; }; }; } 4449230237Sbapt ac_builddir=. 445058551Skris 4451230237Sbaptcase "$ac_dir" in 4452230237Sbapt.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 4453230237Sbapt*) 4454230237Sbapt ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 4455230237Sbapt # A ".." for each directory in $ac_dir_suffix. 4456230237Sbapt ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 4457230237Sbapt case $ac_top_builddir_sub in 4458230237Sbapt "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 4459230237Sbapt *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 4460230237Sbapt esac ;; 4461230237Sbaptesac 4462230237Sbaptac_abs_top_builddir=$ac_pwd 4463230237Sbaptac_abs_builddir=$ac_pwd$ac_dir_suffix 4464230237Sbapt# for backward compatibility: 4465230237Sbaptac_top_builddir=$ac_top_build_prefix 446658551Skris 4467230237Sbaptcase $srcdir in 4468230237Sbapt .) # We are building in place. 4469230237Sbapt ac_srcdir=. 4470230237Sbapt ac_top_srcdir=$ac_top_builddir_sub 4471230237Sbapt ac_abs_top_srcdir=$ac_pwd ;; 4472230237Sbapt [\\/]* | ?:[\\/]* ) # Absolute name. 4473230237Sbapt ac_srcdir=$srcdir$ac_dir_suffix; 4474230237Sbapt ac_top_srcdir=$srcdir 4475230237Sbapt ac_abs_top_srcdir=$srcdir ;; 4476230237Sbapt *) # Relative name. 4477230237Sbapt ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 4478230237Sbapt ac_top_srcdir=$ac_top_build_prefix$srcdir 4479230237Sbapt ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 4480230237Sbaptesac 4481230237Sbaptac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 448258551Skris 4483230237Sbapt 4484230237Sbapt case $ac_mode in 4485230237Sbapt :F) 4486230237Sbapt # 4487230237Sbapt # CONFIG_FILE 4488230237Sbapt # 4489230237Sbapt 4490230237Sbapt_ACEOF 4491230237Sbapt 4492230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 4493230237Sbapt# If the template does not know about datarootdir, expand it. 4494230237Sbapt# FIXME: This hack should be removed a few years after 2.60. 4495230237Sbaptac_datarootdir_hack=; ac_datarootdir_seen= 4496230237Sbapt 4497230237Sbaptcase `sed -n '/datarootdir/ { 4498230237Sbapt p 4499230237Sbapt q 4500230237Sbapt} 4501230237Sbapt/@datadir@/p 4502230237Sbapt/@docdir@/p 4503230237Sbapt/@infodir@/p 4504230237Sbapt/@localedir@/p 4505230237Sbapt/@mandir@/p 4506230237Sbapt' $ac_file_inputs` in 4507230237Sbapt*datarootdir*) ac_datarootdir_seen=yes;; 4508230237Sbapt*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 4509230237Sbapt { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 4510230237Sbaptecho "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 4511230237Sbapt_ACEOF 4512230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4513230237Sbapt ac_datarootdir_hack=' 4514230237Sbapt s&@datadir@&$datadir&g 4515230237Sbapt s&@docdir@&$docdir&g 4516230237Sbapt s&@infodir@&$infodir&g 4517230237Sbapt s&@localedir@&$localedir&g 4518230237Sbapt s&@mandir@&$mandir&g 4519230237Sbapt s&\\\${datarootdir}&$datarootdir&g' ;; 4520230237Sbaptesac 4521230237Sbapt_ACEOF 4522230237Sbapt 4523230237Sbapt# Neutralize VPATH when `$srcdir' = `.'. 4524230237Sbapt# Shell code in configure.ac might set extrasub. 4525230237Sbapt# FIXME: do we really want to maintain this feature? 4526230237Sbaptcat >>$CONFIG_STATUS <<_ACEOF 4527230237Sbapt sed "$ac_vpsub 4528230237Sbapt$extrasub 4529230237Sbapt_ACEOF 4530230237Sbaptcat >>$CONFIG_STATUS <<\_ACEOF 4531230237Sbapt:t 4532230237Sbapt/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4533230237Sbapts&@configure_input@&$configure_input&;t t 4534230237Sbapts&@top_builddir@&$ac_top_builddir_sub&;t t 4535230237Sbapts&@srcdir@&$ac_srcdir&;t t 4536230237Sbapts&@abs_srcdir@&$ac_abs_srcdir&;t t 4537230237Sbapts&@top_srcdir@&$ac_top_srcdir&;t t 4538230237Sbapts&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 4539230237Sbapts&@builddir@&$ac_builddir&;t t 4540230237Sbapts&@abs_builddir@&$ac_abs_builddir&;t t 4541230237Sbapts&@abs_top_builddir@&$ac_abs_top_builddir&;t t 4542230237Sbapt$ac_datarootdir_hack 4543230237Sbapt" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 4544230237Sbapt 4545230237Sbapttest -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 4546230237Sbapt { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 4547230237Sbapt { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 4548230237Sbapt { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4549230237Sbaptwhich seems to be undefined. Please make sure it is defined." >&5 4550230237Sbaptecho "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4551230237Sbaptwhich seems to be undefined. Please make sure it is defined." >&2;} 4552230237Sbapt 4553230237Sbapt rm -f "$tmp/stdin" 4554230237Sbapt case $ac_file in 4555230237Sbapt -) cat "$tmp/out"; rm -f "$tmp/out";; 4556230237Sbapt *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 4557230237Sbapt esac 4558230237Sbapt ;; 4559230237Sbapt 4560230237Sbapt 4561230237Sbapt 4562230237Sbapt esac 4563230237Sbapt 4564230237Sbaptdone # for ac_tag 4565230237Sbapt 4566230237Sbapt 4567230237Sbapt{ (exit 0); exit 0; } 4568230237Sbapt_ACEOF 456958551Skrischmod +x $CONFIG_STATUS 4570230237Sbaptac_clean_files=$ac_clean_files_save 457158551Skris 4572230237Sbapt 4573230237Sbapt# configure is writing to config.log, and then calls config.status. 4574230237Sbapt# config.status does its own redirection, appending to config.log. 4575230237Sbapt# Unfortunately, on DOS this fails, as config.log is still kept open 4576230237Sbapt# by configure, so config.status won't be able to write to it; its 4577230237Sbapt# output is simply discarded. So we exec the FD to /dev/null, 4578230237Sbapt# effectively closing config.log, so it can be properly (re)opened and 4579230237Sbapt# appended to by config.status. When coming back to configure, we 4580230237Sbapt# need to make the FD available again. 4581230237Sbaptif test "$no_create" != yes; then 4582230237Sbapt ac_cs_success=: 4583230237Sbapt ac_config_status_args= 4584230237Sbapt test "$silent" = yes && 4585230237Sbapt ac_config_status_args="$ac_config_status_args --quiet" 4586230237Sbapt exec 5>/dev/null 4587230237Sbapt $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4588230237Sbapt exec 5>>config.log 4589230237Sbapt # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4590230237Sbapt # would make configure fail if this is the last instruction. 4591230237Sbapt $ac_cs_success || { (exit 1); exit 1; } 4592230237Sbaptfi 4593230237Sbapt 4594