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