configure revision e96acad6
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-sunffb 1.2.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-video-sunffb' 593PACKAGE_TARNAME='xf86-video-sunffb' 594PACKAGE_VERSION='1.2.2' 595PACKAGE_STRING='xf86-video-sunffb 1.2.2' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641moduledir 642SPARC_FALSE 643SPARC_TRUE 644XAA_FALSE 645XAA_TRUE 646HAVE_XEXTPROTO_71_FALSE 647HAVE_XEXTPROTO_71_TRUE 648XEXT_LIBS 649XEXT_CFLAGS 650XORG_LIBS 651XORG_CFLAGS 652am__fastdepCCAS_FALSE 653am__fastdepCCAS_TRUE 654CCASDEPMODE 655CCASFLAGS 656CCAS 657OTOOL64 658OTOOL 659LIPO 660NMEDIT 661DSYMUTIL 662MANIFEST_TOOL 663RANLIB 664ac_ct_AR 665AR 666DLLTOOL 667OBJDUMP 668LN_S 669NM 670ac_ct_DUMPBIN 671DUMPBIN 672LD 673FGREP 674LIBTOOL 675AM_BACKSLASH 676AM_DEFAULT_VERBOSITY 677AM_DEFAULT_V 678AM_V 679MAN_SUBSTS 680XORG_MAN_PAGE 681ADMIN_MAN_DIR 682DRIVER_MAN_DIR 683MISC_MAN_DIR 684FILE_MAN_DIR 685LIB_MAN_DIR 686APP_MAN_DIR 687ADMIN_MAN_SUFFIX 688DRIVER_MAN_SUFFIX 689MISC_MAN_SUFFIX 690FILE_MAN_SUFFIX 691LIB_MAN_SUFFIX 692APP_MAN_SUFFIX 693SED 694host_os 695host_vendor 696host_cpu 697host 698build_os 699build_vendor 700build_cpu 701build 702INSTALL_CMD 703PKG_CONFIG_LIBDIR 704PKG_CONFIG_PATH 705PKG_CONFIG 706CHANGELOG_CMD 707STRICT_CFLAGS 708CWARNFLAGS 709BASE_CFLAGS 710EGREP 711GREP 712CPP 713am__fastdepCC_FALSE 714am__fastdepCC_TRUE 715CCDEPMODE 716am__nodep 717AMDEPBACKSLASH 718AMDEP_FALSE 719AMDEP_TRUE 720am__quote 721am__include 722DEPDIR 723OBJEXT 724EXEEXT 725ac_ct_CC 726CPPFLAGS 727LDFLAGS 728CFLAGS 729CC 730MAINT 731MAINTAINER_MODE_FALSE 732MAINTAINER_MODE_TRUE 733am__untar 734am__tar 735AMTAR 736am__leading_dot 737SET_MAKE 738AWK 739mkdir_p 740MKDIR_P 741INSTALL_STRIP_PROGRAM 742STRIP 743install_sh 744MAKEINFO 745AUTOHEADER 746AUTOMAKE 747AUTOCONF 748ACLOCAL 749VERSION 750PACKAGE 751CYGPATH_W 752am__isrc 753INSTALL_DATA 754INSTALL_SCRIPT 755INSTALL_PROGRAM 756target_alias 757host_alias 758build_alias 759LIBS 760ECHO_T 761ECHO_N 762ECHO_C 763DEFS 764mandir 765localedir 766libdir 767psdir 768pdfdir 769dvidir 770htmldir 771infodir 772docdir 773oldincludedir 774includedir 775localstatedir 776sharedstatedir 777sysconfdir 778datadir 779datarootdir 780libexecdir 781sbindir 782bindir 783program_transform_name 784prefix 785exec_prefix 786PACKAGE_URL 787PACKAGE_BUGREPORT 788PACKAGE_STRING 789PACKAGE_VERSION 790PACKAGE_TARNAME 791PACKAGE_NAME 792PATH_SEPARATOR 793SHELL' 794ac_subst_files='' 795ac_user_opts=' 796enable_option_checking 797enable_maintainer_mode 798enable_dependency_tracking 799enable_selective_werror 800enable_strict_compilation 801enable_silent_rules 802enable_static 803enable_shared 804with_pic 805enable_fast_install 806with_gnu_ld 807with_sysroot 808enable_libtool_lock 809with_xorg_module_dir 810enable_xaa 811' 812 ac_precious_vars='build_alias 813host_alias 814target_alias 815CC 816CFLAGS 817LDFLAGS 818LIBS 819CPPFLAGS 820CPP 821PKG_CONFIG 822PKG_CONFIG_PATH 823PKG_CONFIG_LIBDIR 824CCAS 825CCASFLAGS 826XORG_CFLAGS 827XORG_LIBS 828XEXT_CFLAGS 829XEXT_LIBS' 830 831 832# Initialize some variables set by options. 833ac_init_help= 834ac_init_version=false 835ac_unrecognized_opts= 836ac_unrecognized_sep= 837# The variables have the same names as the options, with 838# dashes changed to underlines. 839cache_file=/dev/null 840exec_prefix=NONE 841no_create= 842no_recursion= 843prefix=NONE 844program_prefix=NONE 845program_suffix=NONE 846program_transform_name=s,x,x, 847silent= 848site= 849srcdir= 850verbose= 851x_includes=NONE 852x_libraries=NONE 853 854# Installation directory options. 855# These are left unexpanded so users can "make install exec_prefix=/foo" 856# and all the variables that are supposed to be based on exec_prefix 857# by default will actually change. 858# Use braces instead of parens because sh, perl, etc. also accept them. 859# (The list follows the same order as the GNU Coding Standards.) 860bindir='${exec_prefix}/bin' 861sbindir='${exec_prefix}/sbin' 862libexecdir='${exec_prefix}/libexec' 863datarootdir='${prefix}/share' 864datadir='${datarootdir}' 865sysconfdir='${prefix}/etc' 866sharedstatedir='${prefix}/com' 867localstatedir='${prefix}/var' 868includedir='${prefix}/include' 869oldincludedir='/usr/include' 870docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 871infodir='${datarootdir}/info' 872htmldir='${docdir}' 873dvidir='${docdir}' 874pdfdir='${docdir}' 875psdir='${docdir}' 876libdir='${exec_prefix}/lib' 877localedir='${datarootdir}/locale' 878mandir='${datarootdir}/man' 879 880ac_prev= 881ac_dashdash= 882for ac_option 883do 884 # If the previous option needs an argument, assign it. 885 if test -n "$ac_prev"; then 886 eval $ac_prev=\$ac_option 887 ac_prev= 888 continue 889 fi 890 891 case $ac_option in 892 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 893 *=) ac_optarg= ;; 894 *) ac_optarg=yes ;; 895 esac 896 897 # Accept the important Cygnus configure options, so we can diagnose typos. 898 899 case $ac_dashdash$ac_option in 900 --) 901 ac_dashdash=yes ;; 902 903 -bindir | --bindir | --bindi | --bind | --bin | --bi) 904 ac_prev=bindir ;; 905 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 906 bindir=$ac_optarg ;; 907 908 -build | --build | --buil | --bui | --bu) 909 ac_prev=build_alias ;; 910 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 911 build_alias=$ac_optarg ;; 912 913 -cache-file | --cache-file | --cache-fil | --cache-fi \ 914 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 915 ac_prev=cache_file ;; 916 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 917 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 918 cache_file=$ac_optarg ;; 919 920 --config-cache | -C) 921 cache_file=config.cache ;; 922 923 -datadir | --datadir | --datadi | --datad) 924 ac_prev=datadir ;; 925 -datadir=* | --datadir=* | --datadi=* | --datad=*) 926 datadir=$ac_optarg ;; 927 928 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 929 | --dataroo | --dataro | --datar) 930 ac_prev=datarootdir ;; 931 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 932 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 933 datarootdir=$ac_optarg ;; 934 935 -disable-* | --disable-*) 936 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 937 # Reject names that are not valid shell variable names. 938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 939 as_fn_error $? "invalid feature name: $ac_useropt" 940 ac_useropt_orig=$ac_useropt 941 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 942 case $ac_user_opts in 943 *" 944"enable_$ac_useropt" 945"*) ;; 946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 947 ac_unrecognized_sep=', ';; 948 esac 949 eval enable_$ac_useropt=no ;; 950 951 -docdir | --docdir | --docdi | --doc | --do) 952 ac_prev=docdir ;; 953 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 954 docdir=$ac_optarg ;; 955 956 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 957 ac_prev=dvidir ;; 958 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 959 dvidir=$ac_optarg ;; 960 961 -enable-* | --enable-*) 962 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 963 # Reject names that are not valid shell variable names. 964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 as_fn_error $? "invalid feature name: $ac_useropt" 966 ac_useropt_orig=$ac_useropt 967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 case $ac_user_opts in 969 *" 970"enable_$ac_useropt" 971"*) ;; 972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 973 ac_unrecognized_sep=', ';; 974 esac 975 eval enable_$ac_useropt=\$ac_optarg ;; 976 977 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 978 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 979 | --exec | --exe | --ex) 980 ac_prev=exec_prefix ;; 981 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 982 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 983 | --exec=* | --exe=* | --ex=*) 984 exec_prefix=$ac_optarg ;; 985 986 -gas | --gas | --ga | --g) 987 # Obsolete; use --with-gas. 988 with_gas=yes ;; 989 990 -help | --help | --hel | --he | -h) 991 ac_init_help=long ;; 992 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 993 ac_init_help=recursive ;; 994 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 995 ac_init_help=short ;; 996 997 -host | --host | --hos | --ho) 998 ac_prev=host_alias ;; 999 -host=* | --host=* | --hos=* | --ho=*) 1000 host_alias=$ac_optarg ;; 1001 1002 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1003 ac_prev=htmldir ;; 1004 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1005 | --ht=*) 1006 htmldir=$ac_optarg ;; 1007 1008 -includedir | --includedir | --includedi | --included | --include \ 1009 | --includ | --inclu | --incl | --inc) 1010 ac_prev=includedir ;; 1011 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1012 | --includ=* | --inclu=* | --incl=* | --inc=*) 1013 includedir=$ac_optarg ;; 1014 1015 -infodir | --infodir | --infodi | --infod | --info | --inf) 1016 ac_prev=infodir ;; 1017 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1018 infodir=$ac_optarg ;; 1019 1020 -libdir | --libdir | --libdi | --libd) 1021 ac_prev=libdir ;; 1022 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1023 libdir=$ac_optarg ;; 1024 1025 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1026 | --libexe | --libex | --libe) 1027 ac_prev=libexecdir ;; 1028 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1029 | --libexe=* | --libex=* | --libe=*) 1030 libexecdir=$ac_optarg ;; 1031 1032 -localedir | --localedir | --localedi | --localed | --locale) 1033 ac_prev=localedir ;; 1034 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1035 localedir=$ac_optarg ;; 1036 1037 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1038 | --localstate | --localstat | --localsta | --localst | --locals) 1039 ac_prev=localstatedir ;; 1040 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1041 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1042 localstatedir=$ac_optarg ;; 1043 1044 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1045 ac_prev=mandir ;; 1046 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1047 mandir=$ac_optarg ;; 1048 1049 -nfp | --nfp | --nf) 1050 # Obsolete; use --without-fp. 1051 with_fp=no ;; 1052 1053 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1054 | --no-cr | --no-c | -n) 1055 no_create=yes ;; 1056 1057 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1058 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1059 no_recursion=yes ;; 1060 1061 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1062 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1063 | --oldin | --oldi | --old | --ol | --o) 1064 ac_prev=oldincludedir ;; 1065 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1066 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1067 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1068 oldincludedir=$ac_optarg ;; 1069 1070 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1071 ac_prev=prefix ;; 1072 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1073 prefix=$ac_optarg ;; 1074 1075 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1076 | --program-pre | --program-pr | --program-p) 1077 ac_prev=program_prefix ;; 1078 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1079 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1080 program_prefix=$ac_optarg ;; 1081 1082 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1083 | --program-suf | --program-su | --program-s) 1084 ac_prev=program_suffix ;; 1085 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1086 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1087 program_suffix=$ac_optarg ;; 1088 1089 -program-transform-name | --program-transform-name \ 1090 | --program-transform-nam | --program-transform-na \ 1091 | --program-transform-n | --program-transform- \ 1092 | --program-transform | --program-transfor \ 1093 | --program-transfo | --program-transf \ 1094 | --program-trans | --program-tran \ 1095 | --progr-tra | --program-tr | --program-t) 1096 ac_prev=program_transform_name ;; 1097 -program-transform-name=* | --program-transform-name=* \ 1098 | --program-transform-nam=* | --program-transform-na=* \ 1099 | --program-transform-n=* | --program-transform-=* \ 1100 | --program-transform=* | --program-transfor=* \ 1101 | --program-transfo=* | --program-transf=* \ 1102 | --program-trans=* | --program-tran=* \ 1103 | --progr-tra=* | --program-tr=* | --program-t=*) 1104 program_transform_name=$ac_optarg ;; 1105 1106 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1107 ac_prev=pdfdir ;; 1108 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1109 pdfdir=$ac_optarg ;; 1110 1111 -psdir | --psdir | --psdi | --psd | --ps) 1112 ac_prev=psdir ;; 1113 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1114 psdir=$ac_optarg ;; 1115 1116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1117 | -silent | --silent | --silen | --sile | --sil) 1118 silent=yes ;; 1119 1120 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1121 ac_prev=sbindir ;; 1122 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1123 | --sbi=* | --sb=*) 1124 sbindir=$ac_optarg ;; 1125 1126 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1127 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1128 | --sharedst | --shareds | --shared | --share | --shar \ 1129 | --sha | --sh) 1130 ac_prev=sharedstatedir ;; 1131 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1132 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1133 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1134 | --sha=* | --sh=*) 1135 sharedstatedir=$ac_optarg ;; 1136 1137 -site | --site | --sit) 1138 ac_prev=site ;; 1139 -site=* | --site=* | --sit=*) 1140 site=$ac_optarg ;; 1141 1142 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1143 ac_prev=srcdir ;; 1144 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1145 srcdir=$ac_optarg ;; 1146 1147 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1148 | --syscon | --sysco | --sysc | --sys | --sy) 1149 ac_prev=sysconfdir ;; 1150 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1151 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1152 sysconfdir=$ac_optarg ;; 1153 1154 -target | --target | --targe | --targ | --tar | --ta | --t) 1155 ac_prev=target_alias ;; 1156 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1157 target_alias=$ac_optarg ;; 1158 1159 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1160 verbose=yes ;; 1161 1162 -version | --version | --versio | --versi | --vers | -V) 1163 ac_init_version=: ;; 1164 1165 -with-* | --with-*) 1166 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1167 # Reject names that are not valid shell variable names. 1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1169 as_fn_error $? "invalid package name: $ac_useropt" 1170 ac_useropt_orig=$ac_useropt 1171 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1172 case $ac_user_opts in 1173 *" 1174"with_$ac_useropt" 1175"*) ;; 1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1177 ac_unrecognized_sep=', ';; 1178 esac 1179 eval with_$ac_useropt=\$ac_optarg ;; 1180 1181 -without-* | --without-*) 1182 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1183 # Reject names that are not valid shell variable names. 1184 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1185 as_fn_error $? "invalid package name: $ac_useropt" 1186 ac_useropt_orig=$ac_useropt 1187 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1188 case $ac_user_opts in 1189 *" 1190"with_$ac_useropt" 1191"*) ;; 1192 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1193 ac_unrecognized_sep=', ';; 1194 esac 1195 eval with_$ac_useropt=no ;; 1196 1197 --x) 1198 # Obsolete; use --with-x. 1199 with_x=yes ;; 1200 1201 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1202 | --x-incl | --x-inc | --x-in | --x-i) 1203 ac_prev=x_includes ;; 1204 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1205 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1206 x_includes=$ac_optarg ;; 1207 1208 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1209 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1210 ac_prev=x_libraries ;; 1211 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1212 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1213 x_libraries=$ac_optarg ;; 1214 1215 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1216Try \`$0 --help' for more information" 1217 ;; 1218 1219 *=*) 1220 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1221 # Reject names that are not valid shell variable names. 1222 case $ac_envvar in #( 1223 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1224 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1225 esac 1226 eval $ac_envvar=\$ac_optarg 1227 export $ac_envvar ;; 1228 1229 *) 1230 # FIXME: should be removed in autoconf 3.0. 1231 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1232 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1233 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1234 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1235 ;; 1236 1237 esac 1238done 1239 1240if test -n "$ac_prev"; then 1241 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1242 as_fn_error $? "missing argument to $ac_option" 1243fi 1244 1245if test -n "$ac_unrecognized_opts"; then 1246 case $enable_option_checking in 1247 no) ;; 1248 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1249 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1250 esac 1251fi 1252 1253# Check all directory arguments for consistency. 1254for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1255 datadir sysconfdir sharedstatedir localstatedir includedir \ 1256 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1257 libdir localedir mandir 1258do 1259 eval ac_val=\$$ac_var 1260 # Remove trailing slashes. 1261 case $ac_val in 1262 */ ) 1263 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1264 eval $ac_var=\$ac_val;; 1265 esac 1266 # Be sure to have absolute directory names. 1267 case $ac_val in 1268 [\\/$]* | ?:[\\/]* ) continue;; 1269 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1270 esac 1271 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1272done 1273 1274# There might be people who depend on the old broken behavior: `$host' 1275# used to hold the argument of --host etc. 1276# FIXME: To remove some day. 1277build=$build_alias 1278host=$host_alias 1279target=$target_alias 1280 1281# FIXME: To remove some day. 1282if test "x$host_alias" != x; then 1283 if test "x$build_alias" = x; then 1284 cross_compiling=maybe 1285 elif test "x$build_alias" != "x$host_alias"; then 1286 cross_compiling=yes 1287 fi 1288fi 1289 1290ac_tool_prefix= 1291test -n "$host_alias" && ac_tool_prefix=$host_alias- 1292 1293test "$silent" = yes && exec 6>/dev/null 1294 1295 1296ac_pwd=`pwd` && test -n "$ac_pwd" && 1297ac_ls_di=`ls -di .` && 1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1299 as_fn_error $? "working directory cannot be determined" 1300test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1301 as_fn_error $? "pwd does not report name of working directory" 1302 1303 1304# Find the source files, if location was not specified. 1305if test -z "$srcdir"; then 1306 ac_srcdir_defaulted=yes 1307 # Try the directory containing this script, then the parent directory. 1308 ac_confdir=`$as_dirname -- "$as_myself" || 1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1310 X"$as_myself" : 'X\(//\)[^/]' \| \ 1311 X"$as_myself" : 'X\(//\)$' \| \ 1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1313$as_echo X"$as_myself" | 1314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1315 s//\1/ 1316 q 1317 } 1318 /^X\(\/\/\)[^/].*/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)$/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\).*/{ 1327 s//\1/ 1328 q 1329 } 1330 s/.*/./; q'` 1331 srcdir=$ac_confdir 1332 if test ! -r "$srcdir/$ac_unique_file"; then 1333 srcdir=.. 1334 fi 1335else 1336 ac_srcdir_defaulted=no 1337fi 1338if test ! -r "$srcdir/$ac_unique_file"; then 1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1340 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1341fi 1342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1343ac_abs_confdir=`( 1344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1345 pwd)` 1346# When building in place, set srcdir=. 1347if test "$ac_abs_confdir" = "$ac_pwd"; then 1348 srcdir=. 1349fi 1350# Remove unnecessary trailing slashes from srcdir. 1351# Double slashes in file names in object file debugging info 1352# mess up M-x gdb in Emacs. 1353case $srcdir in 1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1355esac 1356for ac_var in $ac_precious_vars; do 1357 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1358 eval ac_env_${ac_var}_value=\$${ac_var} 1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1360 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1361done 1362 1363# 1364# Report the --help message. 1365# 1366if test "$ac_init_help" = "long"; then 1367 # Omit some internal or obsolete options to make the list less imposing. 1368 # This message is too long to be a string in the A/UX 3.1 sh. 1369 cat <<_ACEOF 1370\`configure' configures xf86-video-sunffb 1.2.2 to adapt to many kinds of systems. 1371 1372Usage: $0 [OPTION]... [VAR=VALUE]... 1373 1374To assign environment variables (e.g., CC, CFLAGS...), specify them as 1375VAR=VALUE. See below for descriptions of some of the useful variables. 1376 1377Defaults for the options are specified in brackets. 1378 1379Configuration: 1380 -h, --help display this help and exit 1381 --help=short display options specific to this package 1382 --help=recursive display the short help of all the included packages 1383 -V, --version display version information and exit 1384 -q, --quiet, --silent do not print \`checking ...' messages 1385 --cache-file=FILE cache test results in FILE [disabled] 1386 -C, --config-cache alias for \`--cache-file=config.cache' 1387 -n, --no-create do not create output files 1388 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1389 1390Installation directories: 1391 --prefix=PREFIX install architecture-independent files in PREFIX 1392 [$ac_default_prefix] 1393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1394 [PREFIX] 1395 1396By default, \`make install' will install all the files in 1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1398an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1399for instance \`--prefix=\$HOME'. 1400 1401For better control, use the options below. 1402 1403Fine tuning of the installation directories: 1404 --bindir=DIR user executables [EPREFIX/bin] 1405 --sbindir=DIR system admin executables [EPREFIX/sbin] 1406 --libexecdir=DIR program executables [EPREFIX/libexec] 1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1410 --libdir=DIR object code libraries [EPREFIX/lib] 1411 --includedir=DIR C header files [PREFIX/include] 1412 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1415 --infodir=DIR info documentation [DATAROOTDIR/info] 1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1417 --mandir=DIR man documentation [DATAROOTDIR/man] 1418 --docdir=DIR documentation root 1419 [DATAROOTDIR/doc/xf86-video-sunffb] 1420 --htmldir=DIR html documentation [DOCDIR] 1421 --dvidir=DIR dvi documentation [DOCDIR] 1422 --pdfdir=DIR pdf documentation [DOCDIR] 1423 --psdir=DIR ps documentation [DOCDIR] 1424_ACEOF 1425 1426 cat <<\_ACEOF 1427 1428Program names: 1429 --program-prefix=PREFIX prepend PREFIX to installed program names 1430 --program-suffix=SUFFIX append SUFFIX to installed program names 1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1432 1433System types: 1434 --build=BUILD configure for building on BUILD [guessed] 1435 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1436_ACEOF 1437fi 1438 1439if test -n "$ac_init_help"; then 1440 case $ac_init_help in 1441 short | recursive ) echo "Configuration of xf86-video-sunffb 1.2.2:";; 1442 esac 1443 cat <<\_ACEOF 1444 1445Optional Features: 1446 --disable-option-checking ignore unrecognized --enable/--with options 1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1449 --enable-maintainer-mode 1450 enable make rules and dependencies not useful (and 1451 sometimes confusing) to the casual installer 1452 --enable-dependency-tracking 1453 do not reject slow dependency extractors 1454 --disable-dependency-tracking 1455 speeds up one-time build 1456 --disable-selective-werror 1457 Turn off selective compiler errors. (default: 1458 enabled) 1459 --enable-strict-compilation 1460 Enable all warnings from compiler and make them 1461 errors (default: disabled) 1462 --enable-silent-rules less verbose build output (undo: "make V=1") 1463 --disable-silent-rules verbose build output (undo: "make V=0") 1464 --enable-static[=PKGS] build static libraries [default=no] 1465 --enable-shared[=PKGS] build shared libraries [default=yes] 1466 --enable-fast-install[=PKGS] 1467 optimize for fast installation [default=yes] 1468 --disable-libtool-lock avoid locking (might break parallel builds) 1469 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1470 [default=auto] 1471 1472Optional Packages: 1473 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1474 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1475 --with-pic try to use only PIC/non-PIC objects [default=use 1476 both] 1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1478 --with-sysroot=DIR Search for dependent libraries within DIR 1479 (or the compiler's sysroot if not specified). 1480 --with-xorg-module-dir=DIR 1481 Default xorg module directory 1482 [[default=$libdir/xorg/modules]] 1483 1484Some influential environment variables: 1485 CC C compiler command 1486 CFLAGS C compiler flags 1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1488 nonstandard directory <lib dir> 1489 LIBS libraries to pass to the linker, e.g. -l<library> 1490 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1491 you have headers in a nonstandard directory <include dir> 1492 CPP C preprocessor 1493 PKG_CONFIG path to pkg-config utility 1494 PKG_CONFIG_PATH 1495 directories to add to pkg-config's search path 1496 PKG_CONFIG_LIBDIR 1497 path overriding pkg-config's built-in search path 1498 CCAS assembler compiler command (defaults to CC) 1499 CCASFLAGS assembler compiler flags (defaults to CFLAGS) 1500 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1501 XORG_LIBS linker flags for XORG, overriding pkg-config 1502 XEXT_CFLAGS C compiler flags for XEXT, overriding pkg-config 1503 XEXT_LIBS linker flags for XEXT, overriding pkg-config 1504 1505Use these variables to override the choices made by `configure' or to help 1506it to find libraries and programs with nonstandard names/locations. 1507 1508Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1509_ACEOF 1510ac_status=$? 1511fi 1512 1513if test "$ac_init_help" = "recursive"; then 1514 # If there are subdirs, report their specific --help. 1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1516 test -d "$ac_dir" || 1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1518 continue 1519 ac_builddir=. 1520 1521case "$ac_dir" in 1522.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1523*) 1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1525 # A ".." for each directory in $ac_dir_suffix. 1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1527 case $ac_top_builddir_sub in 1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1530 esac ;; 1531esac 1532ac_abs_top_builddir=$ac_pwd 1533ac_abs_builddir=$ac_pwd$ac_dir_suffix 1534# for backward compatibility: 1535ac_top_builddir=$ac_top_build_prefix 1536 1537case $srcdir in 1538 .) # We are building in place. 1539 ac_srcdir=. 1540 ac_top_srcdir=$ac_top_builddir_sub 1541 ac_abs_top_srcdir=$ac_pwd ;; 1542 [\\/]* | ?:[\\/]* ) # Absolute name. 1543 ac_srcdir=$srcdir$ac_dir_suffix; 1544 ac_top_srcdir=$srcdir 1545 ac_abs_top_srcdir=$srcdir ;; 1546 *) # Relative name. 1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1548 ac_top_srcdir=$ac_top_build_prefix$srcdir 1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1550esac 1551ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1552 1553 cd "$ac_dir" || { ac_status=$?; continue; } 1554 # Check for guested configure. 1555 if test -f "$ac_srcdir/configure.gnu"; then 1556 echo && 1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1558 elif test -f "$ac_srcdir/configure"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure" --help=recursive 1561 else 1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1563 fi || ac_status=$? 1564 cd "$ac_pwd" || { ac_status=$?; break; } 1565 done 1566fi 1567 1568test -n "$ac_init_help" && exit $ac_status 1569if $ac_init_version; then 1570 cat <<\_ACEOF 1571xf86-video-sunffb configure 1.2.2 1572generated by GNU Autoconf 2.69 1573 1574Copyright (C) 2012 Free Software Foundation, Inc. 1575This configure script is free software; the Free Software Foundation 1576gives unlimited permission to copy, distribute and modify it. 1577_ACEOF 1578 exit 1579fi 1580 1581## ------------------------ ## 1582## Autoconf initialization. ## 1583## ------------------------ ## 1584 1585# ac_fn_c_try_compile LINENO 1586# -------------------------- 1587# Try to compile conftest.$ac_ext, and return whether this succeeded. 1588ac_fn_c_try_compile () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 rm -f conftest.$ac_objext 1592 if { { ac_try="$ac_compile" 1593case "(($ac_try" in 1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1595 *) ac_try_echo=$ac_try;; 1596esac 1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1598$as_echo "$ac_try_echo"; } >&5 1599 (eval "$ac_compile") 2>conftest.err 1600 ac_status=$? 1601 if test -s conftest.err; then 1602 grep -v '^ *+' conftest.err >conftest.er1 1603 cat conftest.er1 >&5 1604 mv -f conftest.er1 conftest.err 1605 fi 1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607 test $ac_status = 0; } && { 1608 test -z "$ac_c_werror_flag" || 1609 test ! -s conftest.err 1610 } && test -s conftest.$ac_objext; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 as_fn_set_status $ac_retval 1620 1621} # ac_fn_c_try_compile 1622 1623# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1624# --------------------------------------------- 1625# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1626# accordingly. 1627ac_fn_c_check_decl () 1628{ 1629 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1630 as_decl_name=`echo $2|sed 's/ *(.*//'` 1631 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1633$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1634if eval \${$3+:} false; then : 1635 $as_echo_n "(cached) " >&6 1636else 1637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1638/* end confdefs.h. */ 1639$4 1640int 1641main () 1642{ 1643#ifndef $as_decl_name 1644#ifdef __cplusplus 1645 (void) $as_decl_use; 1646#else 1647 (void) $as_decl_name; 1648#endif 1649#endif 1650 1651 ; 1652 return 0; 1653} 1654_ACEOF 1655if ac_fn_c_try_compile "$LINENO"; then : 1656 eval "$3=yes" 1657else 1658 eval "$3=no" 1659fi 1660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1661fi 1662eval ac_res=\$$3 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1664$as_echo "$ac_res" >&6; } 1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1666 1667} # ac_fn_c_check_decl 1668 1669# ac_fn_c_try_cpp LINENO 1670# ---------------------- 1671# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1672ac_fn_c_try_cpp () 1673{ 1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1675 if { { ac_try="$ac_cpp conftest.$ac_ext" 1676case "(($ac_try" in 1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1678 *) ac_try_echo=$ac_try;; 1679esac 1680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1681$as_echo "$ac_try_echo"; } >&5 1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1683 ac_status=$? 1684 if test -s conftest.err; then 1685 grep -v '^ *+' conftest.err >conftest.er1 1686 cat conftest.er1 >&5 1687 mv -f conftest.er1 conftest.err 1688 fi 1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1690 test $ac_status = 0; } > conftest.i && { 1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1692 test ! -s conftest.err 1693 }; then : 1694 ac_retval=0 1695else 1696 $as_echo "$as_me: failed program was:" >&5 1697sed 's/^/| /' conftest.$ac_ext >&5 1698 1699 ac_retval=1 1700fi 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_cpp 1705 1706# ac_fn_c_try_run LINENO 1707# ---------------------- 1708# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1709# that executables *can* be run. 1710ac_fn_c_try_run () 1711{ 1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1713 if { { ac_try="$ac_link" 1714case "(($ac_try" in 1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1716 *) ac_try_echo=$ac_try;; 1717esac 1718eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1719$as_echo "$ac_try_echo"; } >&5 1720 (eval "$ac_link") 2>&5 1721 ac_status=$? 1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1724 { { case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_try") 2>&5 1731 ac_status=$? 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; }; }; then : 1734 ac_retval=0 1735else 1736 $as_echo "$as_me: program exited with status $ac_status" >&5 1737 $as_echo "$as_me: failed program was:" >&5 1738sed 's/^/| /' conftest.$ac_ext >&5 1739 1740 ac_retval=$ac_status 1741fi 1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 as_fn_set_status $ac_retval 1745 1746} # ac_fn_c_try_run 1747 1748# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1749# ------------------------------------------------------- 1750# Tests whether HEADER exists and can be compiled using the include files in 1751# INCLUDES, setting the cache variable VAR accordingly. 1752ac_fn_c_check_header_compile () 1753{ 1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1756$as_echo_n "checking for $2... " >&6; } 1757if eval \${$3+:} false; then : 1758 $as_echo_n "(cached) " >&6 1759else 1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761/* end confdefs.h. */ 1762$4 1763#include <$2> 1764_ACEOF 1765if ac_fn_c_try_compile "$LINENO"; then : 1766 eval "$3=yes" 1767else 1768 eval "$3=no" 1769fi 1770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1771fi 1772eval ac_res=\$$3 1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1774$as_echo "$ac_res" >&6; } 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 1777} # ac_fn_c_check_header_compile 1778 1779# ac_fn_c_try_link LINENO 1780# ----------------------- 1781# Try to link conftest.$ac_ext, and return whether this succeeded. 1782ac_fn_c_try_link () 1783{ 1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1785 rm -f conftest.$ac_objext conftest$ac_exeext 1786 if { { ac_try="$ac_link" 1787case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_link") 2>conftest.err 1794 ac_status=$? 1795 if test -s conftest.err; then 1796 grep -v '^ *+' conftest.err >conftest.er1 1797 cat conftest.er1 >&5 1798 mv -f conftest.er1 conftest.err 1799 fi 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } && { 1802 test -z "$ac_c_werror_flag" || 1803 test ! -s conftest.err 1804 } && test -s conftest$ac_exeext && { 1805 test "$cross_compiling" = yes || 1806 test -x conftest$ac_exeext 1807 }; then : 1808 ac_retval=0 1809else 1810 $as_echo "$as_me: failed program was:" >&5 1811sed 's/^/| /' conftest.$ac_ext >&5 1812 1813 ac_retval=1 1814fi 1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1817 # interfere with the next link command; also delete a directory that is 1818 # left behind by Apple's compiler. We do this before executing the actions. 1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 as_fn_set_status $ac_retval 1822 1823} # ac_fn_c_try_link 1824 1825# ac_fn_c_check_func LINENO FUNC VAR 1826# ---------------------------------- 1827# Tests whether FUNC exists, setting the cache variable VAR accordingly 1828ac_fn_c_check_func () 1829{ 1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832$as_echo_n "checking for $2... " >&6; } 1833if eval \${$3+:} false; then : 1834 $as_echo_n "(cached) " >&6 1835else 1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1837/* end confdefs.h. */ 1838/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1840#define $2 innocuous_$2 1841 1842/* System header to define __stub macros and hopefully few prototypes, 1843 which can conflict with char $2 (); below. 1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1845 <limits.h> exists even on freestanding compilers. */ 1846 1847#ifdef __STDC__ 1848# include <limits.h> 1849#else 1850# include <assert.h> 1851#endif 1852 1853#undef $2 1854 1855/* Override any GCC internal prototype to avoid an error. 1856 Use char because int might match the return type of a GCC 1857 builtin and then its argument prototype would still apply. */ 1858#ifdef __cplusplus 1859extern "C" 1860#endif 1861char $2 (); 1862/* The GNU C library defines this for functions which it implements 1863 to always fail with ENOSYS. Some functions are actually named 1864 something starting with __ and the normal name is an alias. */ 1865#if defined __stub_$2 || defined __stub___$2 1866choke me 1867#endif 1868 1869int 1870main () 1871{ 1872return $2 (); 1873 ; 1874 return 0; 1875} 1876_ACEOF 1877if ac_fn_c_try_link "$LINENO"; then : 1878 eval "$3=yes" 1879else 1880 eval "$3=no" 1881fi 1882rm -f core conftest.err conftest.$ac_objext \ 1883 conftest$ac_exeext conftest.$ac_ext 1884fi 1885eval ac_res=\$$3 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1887$as_echo "$ac_res" >&6; } 1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1889 1890} # ac_fn_c_check_func 1891 1892# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1893# ------------------------------------------------------- 1894# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1895# the include files in INCLUDES and setting the cache variable VAR 1896# accordingly. 1897ac_fn_c_check_header_mongrel () 1898{ 1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1900 if eval \${$3+:} false; then : 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1902$as_echo_n "checking for $2... " >&6; } 1903if eval \${$3+:} false; then : 1904 $as_echo_n "(cached) " >&6 1905fi 1906eval ac_res=\$$3 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1908$as_echo "$ac_res" >&6; } 1909else 1910 # Is the header compilable? 1911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1912$as_echo_n "checking $2 usability... " >&6; } 1913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916#include <$2> 1917_ACEOF 1918if ac_fn_c_try_compile "$LINENO"; then : 1919 ac_header_compiler=yes 1920else 1921 ac_header_compiler=no 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1925$as_echo "$ac_header_compiler" >&6; } 1926 1927# Is the header present? 1928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1929$as_echo_n "checking $2 presence... " >&6; } 1930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1931/* end confdefs.h. */ 1932#include <$2> 1933_ACEOF 1934if ac_fn_c_try_cpp "$LINENO"; then : 1935 ac_header_preproc=yes 1936else 1937 ac_header_preproc=no 1938fi 1939rm -f conftest.err conftest.i conftest.$ac_ext 1940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1941$as_echo "$ac_header_preproc" >&6; } 1942 1943# So? What about this header? 1944case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1945 yes:no: ) 1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1947$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1949$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1950 ;; 1951 no:yes:* ) 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1953$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1955$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1957$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1959$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1962( $as_echo "## ---------------------------------------------------------------------- ## 1963## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1964## ---------------------------------------------------------------------- ##" 1965 ) | sed "s/^/$as_me: WARNING: /" >&2 1966 ;; 1967esac 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1969$as_echo_n "checking for $2... " >&6; } 1970if eval \${$3+:} false; then : 1971 $as_echo_n "(cached) " >&6 1972else 1973 eval "$3=\$ac_header_compiler" 1974fi 1975eval ac_res=\$$3 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1977$as_echo "$ac_res" >&6; } 1978fi 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1980 1981} # ac_fn_c_check_header_mongrel 1982cat >config.log <<_ACEOF 1983This file contains any messages produced by compilers while 1984running configure, to aid debugging if configure makes a mistake. 1985 1986It was created by xf86-video-sunffb $as_me 1.2.2, which was 1987generated by GNU Autoconf 2.69. Invocation command line was 1988 1989 $ $0 $@ 1990 1991_ACEOF 1992exec 5>>config.log 1993{ 1994cat <<_ASUNAME 1995## --------- ## 1996## Platform. ## 1997## --------- ## 1998 1999hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2000uname -m = `(uname -m) 2>/dev/null || echo unknown` 2001uname -r = `(uname -r) 2>/dev/null || echo unknown` 2002uname -s = `(uname -s) 2>/dev/null || echo unknown` 2003uname -v = `(uname -v) 2>/dev/null || echo unknown` 2004 2005/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2006/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2007 2008/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2009/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2010/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2011/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2012/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2013/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2014/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2015 2016_ASUNAME 2017 2018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2019for as_dir in $PATH 2020do 2021 IFS=$as_save_IFS 2022 test -z "$as_dir" && as_dir=. 2023 $as_echo "PATH: $as_dir" 2024 done 2025IFS=$as_save_IFS 2026 2027} >&5 2028 2029cat >&5 <<_ACEOF 2030 2031 2032## ----------- ## 2033## Core tests. ## 2034## ----------- ## 2035 2036_ACEOF 2037 2038 2039# Keep a trace of the command line. 2040# Strip out --no-create and --no-recursion so they do not pile up. 2041# Strip out --silent because we don't want to record it for future runs. 2042# Also quote any args containing shell meta-characters. 2043# Make two passes to allow for proper duplicate-argument suppression. 2044ac_configure_args= 2045ac_configure_args0= 2046ac_configure_args1= 2047ac_must_keep_next=false 2048for ac_pass in 1 2 2049do 2050 for ac_arg 2051 do 2052 case $ac_arg in 2053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2055 | -silent | --silent | --silen | --sile | --sil) 2056 continue ;; 2057 *\'*) 2058 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2059 esac 2060 case $ac_pass in 2061 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2062 2) 2063 as_fn_append ac_configure_args1 " '$ac_arg'" 2064 if test $ac_must_keep_next = true; then 2065 ac_must_keep_next=false # Got value, back to normal. 2066 else 2067 case $ac_arg in 2068 *=* | --config-cache | -C | -disable-* | --disable-* \ 2069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2071 | -with-* | --with-* | -without-* | --without-* | --x) 2072 case "$ac_configure_args0 " in 2073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2074 esac 2075 ;; 2076 -* ) ac_must_keep_next=true ;; 2077 esac 2078 fi 2079 as_fn_append ac_configure_args " '$ac_arg'" 2080 ;; 2081 esac 2082 done 2083done 2084{ ac_configure_args0=; unset ac_configure_args0;} 2085{ ac_configure_args1=; unset ac_configure_args1;} 2086 2087# When interrupted or exit'd, cleanup temporary files, and complete 2088# config.log. We remove comments because anyway the quotes in there 2089# would cause problems or look ugly. 2090# WARNING: Use '\'' to represent an apostrophe within the trap. 2091# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2092trap 'exit_status=$? 2093 # Save into config.log some information that might help in debugging. 2094 { 2095 echo 2096 2097 $as_echo "## ---------------- ## 2098## Cache variables. ## 2099## ---------------- ##" 2100 echo 2101 # The following way of writing the cache mishandles newlines in values, 2102( 2103 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2104 eval ac_val=\$$ac_var 2105 case $ac_val in #( 2106 *${as_nl}*) 2107 case $ac_var in #( 2108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2109$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2110 esac 2111 case $ac_var in #( 2112 _ | IFS | as_nl) ;; #( 2113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2114 *) { eval $ac_var=; unset $ac_var;} ;; 2115 esac ;; 2116 esac 2117 done 2118 (set) 2>&1 | 2119 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2120 *${as_nl}ac_space=\ *) 2121 sed -n \ 2122 "s/'\''/'\''\\\\'\'''\''/g; 2123 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2124 ;; #( 2125 *) 2126 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2127 ;; 2128 esac | 2129 sort 2130) 2131 echo 2132 2133 $as_echo "## ----------------- ## 2134## Output variables. ## 2135## ----------------- ##" 2136 echo 2137 for ac_var in $ac_subst_vars 2138 do 2139 eval ac_val=\$$ac_var 2140 case $ac_val in 2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2142 esac 2143 $as_echo "$ac_var='\''$ac_val'\''" 2144 done | sort 2145 echo 2146 2147 if test -n "$ac_subst_files"; then 2148 $as_echo "## ------------------- ## 2149## File substitutions. ## 2150## ------------------- ##" 2151 echo 2152 for ac_var in $ac_subst_files 2153 do 2154 eval ac_val=\$$ac_var 2155 case $ac_val in 2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2157 esac 2158 $as_echo "$ac_var='\''$ac_val'\''" 2159 done | sort 2160 echo 2161 fi 2162 2163 if test -s confdefs.h; then 2164 $as_echo "## ----------- ## 2165## confdefs.h. ## 2166## ----------- ##" 2167 echo 2168 cat confdefs.h 2169 echo 2170 fi 2171 test "$ac_signal" != 0 && 2172 $as_echo "$as_me: caught signal $ac_signal" 2173 $as_echo "$as_me: exit $exit_status" 2174 } >&5 2175 rm -f core *.core core.conftest.* && 2176 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2177 exit $exit_status 2178' 0 2179for ac_signal in 1 2 13 15; do 2180 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2181done 2182ac_signal=0 2183 2184# confdefs.h avoids OS command line length limits that DEFS can exceed. 2185rm -f -r conftest* confdefs.h 2186 2187$as_echo "/* confdefs.h */" > confdefs.h 2188 2189# Predefined preprocessor variables. 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_NAME "$PACKAGE_NAME" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_VERSION "$PACKAGE_VERSION" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_STRING "$PACKAGE_STRING" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2209_ACEOF 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_URL "$PACKAGE_URL" 2213_ACEOF 2214 2215 2216# Let the site file select an alternate cache file if it wants to. 2217# Prefer an explicitly selected file to automatically selected ones. 2218ac_site_file1=NONE 2219ac_site_file2=NONE 2220if test -n "$CONFIG_SITE"; then 2221 # We do not want a PATH search for config.site. 2222 case $CONFIG_SITE in #(( 2223 -*) ac_site_file1=./$CONFIG_SITE;; 2224 */*) ac_site_file1=$CONFIG_SITE;; 2225 *) ac_site_file1=./$CONFIG_SITE;; 2226 esac 2227elif test "x$prefix" != xNONE; then 2228 ac_site_file1=$prefix/share/config.site 2229 ac_site_file2=$prefix/etc/config.site 2230else 2231 ac_site_file1=$ac_default_prefix/share/config.site 2232 ac_site_file2=$ac_default_prefix/etc/config.site 2233fi 2234for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2235do 2236 test "x$ac_site_file" = xNONE && continue 2237 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2239$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2240 sed 's/^/| /' "$ac_site_file" >&5 2241 . "$ac_site_file" \ 2242 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2243$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2244as_fn_error $? "failed to load site script $ac_site_file 2245See \`config.log' for more details" "$LINENO" 5; } 2246 fi 2247done 2248 2249if test -r "$cache_file"; then 2250 # Some versions of bash will fail to source /dev/null (special files 2251 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2252 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2254$as_echo "$as_me: loading cache $cache_file" >&6;} 2255 case $cache_file in 2256 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2257 *) . "./$cache_file";; 2258 esac 2259 fi 2260else 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2262$as_echo "$as_me: creating cache $cache_file" >&6;} 2263 >$cache_file 2264fi 2265 2266# Check that the precious variables saved in the cache have kept the same 2267# value. 2268ac_cache_corrupted=false 2269for ac_var in $ac_precious_vars; do 2270 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2271 eval ac_new_set=\$ac_env_${ac_var}_set 2272 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2273 eval ac_new_val=\$ac_env_${ac_var}_value 2274 case $ac_old_set,$ac_new_set in 2275 set,) 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2277$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2278 ac_cache_corrupted=: ;; 2279 ,set) 2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2281$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2282 ac_cache_corrupted=: ;; 2283 ,);; 2284 *) 2285 if test "x$ac_old_val" != "x$ac_new_val"; then 2286 # differences in whitespace do not lead to failure. 2287 ac_old_val_w=`echo x $ac_old_val` 2288 ac_new_val_w=`echo x $ac_new_val` 2289 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2291$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2292 ac_cache_corrupted=: 2293 else 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2295$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2296 eval $ac_var=\$ac_old_val 2297 fi 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2299$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2301$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2302 fi;; 2303 esac 2304 # Pass precious variables to config.status. 2305 if test "$ac_new_set" = set; then 2306 case $ac_new_val in 2307 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2308 *) ac_arg=$ac_var=$ac_new_val ;; 2309 esac 2310 case " $ac_configure_args " in 2311 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2312 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2313 esac 2314 fi 2315done 2316if $ac_cache_corrupted; then 2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2320$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2321 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2322fi 2323## -------------------- ## 2324## Main body of script. ## 2325## -------------------- ## 2326 2327ac_ext=c 2328ac_cpp='$CPP $CPPFLAGS' 2329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2331ac_compiler_gnu=$ac_cv_c_compiler_gnu 2332 2333 2334 2335ac_config_headers="$ac_config_headers config.h" 2336 2337ac_aux_dir= 2338for ac_dir in . "$srcdir"/.; do 2339 if test -f "$ac_dir/install-sh"; then 2340 ac_aux_dir=$ac_dir 2341 ac_install_sh="$ac_aux_dir/install-sh -c" 2342 break 2343 elif test -f "$ac_dir/install.sh"; then 2344 ac_aux_dir=$ac_dir 2345 ac_install_sh="$ac_aux_dir/install.sh -c" 2346 break 2347 elif test -f "$ac_dir/shtool"; then 2348 ac_aux_dir=$ac_dir 2349 ac_install_sh="$ac_aux_dir/shtool install -c" 2350 break 2351 fi 2352done 2353if test -z "$ac_aux_dir"; then 2354 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2355fi 2356 2357# These three variables are undocumented and unsupported, 2358# and are intended to be withdrawn in a future Autoconf release. 2359# They can cause serious problems if a builder's source tree is in a directory 2360# whose full name contains unusual characters. 2361ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2362ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2363ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2364 2365 2366 2367# Initialize Automake 2368am__api_version='1.12' 2369 2370# Find a good install program. We prefer a C program (faster), 2371# so one script is as good as another. But avoid the broken or 2372# incompatible versions: 2373# SysV /etc/install, /usr/sbin/install 2374# SunOS /usr/etc/install 2375# IRIX /sbin/install 2376# AIX /bin/install 2377# AmigaOS /C/install, which installs bootblocks on floppy discs 2378# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2379# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2380# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2381# OS/2's system install, which has a completely different semantic 2382# ./install, which can be erroneously created by make from ./install.sh. 2383# Reject install programs that cannot install multiple files. 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2385$as_echo_n "checking for a BSD-compatible install... " >&6; } 2386if test -z "$INSTALL"; then 2387if ${ac_cv_path_install+:} false; then : 2388 $as_echo_n "(cached) " >&6 2389else 2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2391for as_dir in $PATH 2392do 2393 IFS=$as_save_IFS 2394 test -z "$as_dir" && as_dir=. 2395 # Account for people who put trailing slashes in PATH elements. 2396case $as_dir/ in #(( 2397 ./ | .// | /[cC]/* | \ 2398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2399 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2400 /usr/ucb/* ) ;; 2401 *) 2402 # OSF1 and SCO ODT 3.0 have their own names for install. 2403 # Don't use installbsd from OSF since it installs stuff as root 2404 # by default. 2405 for ac_prog in ginstall scoinst install; do 2406 for ac_exec_ext in '' $ac_executable_extensions; do 2407 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2408 if test $ac_prog = install && 2409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2410 # AIX install. It has an incompatible calling convention. 2411 : 2412 elif test $ac_prog = install && 2413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2414 # program-specific install script used by HP pwplus--don't use. 2415 : 2416 else 2417 rm -rf conftest.one conftest.two conftest.dir 2418 echo one > conftest.one 2419 echo two > conftest.two 2420 mkdir conftest.dir 2421 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2422 test -s conftest.one && test -s conftest.two && 2423 test -s conftest.dir/conftest.one && 2424 test -s conftest.dir/conftest.two 2425 then 2426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2427 break 3 2428 fi 2429 fi 2430 fi 2431 done 2432 done 2433 ;; 2434esac 2435 2436 done 2437IFS=$as_save_IFS 2438 2439rm -rf conftest.one conftest.two conftest.dir 2440 2441fi 2442 if test "${ac_cv_path_install+set}" = set; then 2443 INSTALL=$ac_cv_path_install 2444 else 2445 # As a last resort, use the slow shell script. Don't cache a 2446 # value for INSTALL within a source directory, because that will 2447 # break other packages using the cache if that directory is 2448 # removed, or if the value is a relative name. 2449 INSTALL=$ac_install_sh 2450 fi 2451fi 2452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2453$as_echo "$INSTALL" >&6; } 2454 2455# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2456# It thinks the first close brace ends the variable substitution. 2457test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2458 2459test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2460 2461test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2462 2463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2464$as_echo_n "checking whether build environment is sane... " >&6; } 2465# Reject unsafe characters in $srcdir or the absolute working directory 2466# name. Accept space and tab only in the latter. 2467am_lf=' 2468' 2469case `pwd` in 2470 *[\\\"\#\$\&\'\`$am_lf]*) 2471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2472esac 2473case $srcdir in 2474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2475 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2476esac 2477 2478# Do 'set' in a subshell so we don't clobber the current shell's 2479# arguments. Must try -L first in case configure is actually a 2480# symlink; some systems play weird games with the mod time of symlinks 2481# (eg FreeBSD returns the mod time of the symlink's containing 2482# directory). 2483if ( 2484 am_has_slept=no 2485 for am_try in 1 2; do 2486 echo "timestamp, slept: $am_has_slept" > conftest.file 2487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2488 if test "$*" = "X"; then 2489 # -L didn't work. 2490 set X `ls -t "$srcdir/configure" conftest.file` 2491 fi 2492 if test "$*" != "X $srcdir/configure conftest.file" \ 2493 && test "$*" != "X conftest.file $srcdir/configure"; then 2494 2495 # If neither matched, then we have a broken ls. This can happen 2496 # if, for instance, CONFIG_SHELL is bash and it inherits a 2497 # broken ls alias from the environment. This has actually 2498 # happened. Such a system could not be considered "sane". 2499 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2500 alias in your environment" "$LINENO" 5 2501 fi 2502 if test "$2" = conftest.file || test $am_try -eq 2; then 2503 break 2504 fi 2505 # Just in case. 2506 sleep 1 2507 am_has_slept=yes 2508 done 2509 test "$2" = conftest.file 2510 ) 2511then 2512 # Ok. 2513 : 2514else 2515 as_fn_error $? "newly created file is older than distributed files! 2516Check your system clock" "$LINENO" 5 2517fi 2518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2519$as_echo "yes" >&6; } 2520# If we didn't sleep, we still need to ensure time stamps of config.status and 2521# generated files are strictly newer. 2522am_sleep_pid= 2523if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2524 ( sleep 1 ) & 2525 am_sleep_pid=$! 2526fi 2527 2528rm -f conftest.file 2529 2530test "$program_prefix" != NONE && 2531 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2532# Use a double $ so make ignores it. 2533test "$program_suffix" != NONE && 2534 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2535# Double any \ or $. 2536# By default was `s,x,x', remove it if useless. 2537ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2538program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2539 2540# expand $ac_aux_dir to an absolute path 2541am_aux_dir=`cd $ac_aux_dir && pwd` 2542 2543if test x"${MISSING+set}" != xset; then 2544 case $am_aux_dir in 2545 *\ * | *\ *) 2546 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2547 *) 2548 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2549 esac 2550fi 2551# Use eval to expand $SHELL 2552if eval "$MISSING --run true"; then 2553 am_missing_run="$MISSING --run " 2554else 2555 am_missing_run= 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2557$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2558fi 2559 2560if test x"${install_sh}" != xset; then 2561 case $am_aux_dir in 2562 *\ * | *\ *) 2563 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2564 *) 2565 install_sh="\${SHELL} $am_aux_dir/install-sh" 2566 esac 2567fi 2568 2569# Installed binaries are usually stripped using 'strip' when the user 2570# run "make install-strip". However 'strip' might not be the right 2571# tool to use in cross-compilation environments, therefore Automake 2572# will honor the 'STRIP' environment variable to overrule this program. 2573if test "$cross_compiling" != no; then 2574 if test -n "$ac_tool_prefix"; then 2575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2576set dummy ${ac_tool_prefix}strip; ac_word=$2 2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2578$as_echo_n "checking for $ac_word... " >&6; } 2579if ${ac_cv_prog_STRIP+:} false; then : 2580 $as_echo_n "(cached) " >&6 2581else 2582 if test -n "$STRIP"; then 2583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2584else 2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2586for as_dir in $PATH 2587do 2588 IFS=$as_save_IFS 2589 test -z "$as_dir" && as_dir=. 2590 for ac_exec_ext in '' $ac_executable_extensions; do 2591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2592 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2594 break 2 2595 fi 2596done 2597 done 2598IFS=$as_save_IFS 2599 2600fi 2601fi 2602STRIP=$ac_cv_prog_STRIP 2603if test -n "$STRIP"; then 2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2605$as_echo "$STRIP" >&6; } 2606else 2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2608$as_echo "no" >&6; } 2609fi 2610 2611 2612fi 2613if test -z "$ac_cv_prog_STRIP"; then 2614 ac_ct_STRIP=$STRIP 2615 # Extract the first word of "strip", so it can be a program name with args. 2616set dummy strip; ac_word=$2 2617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2618$as_echo_n "checking for $ac_word... " >&6; } 2619if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2620 $as_echo_n "(cached) " >&6 2621else 2622 if test -n "$ac_ct_STRIP"; then 2623 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2624else 2625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2626for as_dir in $PATH 2627do 2628 IFS=$as_save_IFS 2629 test -z "$as_dir" && as_dir=. 2630 for ac_exec_ext in '' $ac_executable_extensions; do 2631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2632 ac_cv_prog_ac_ct_STRIP="strip" 2633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2634 break 2 2635 fi 2636done 2637 done 2638IFS=$as_save_IFS 2639 2640fi 2641fi 2642ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2643if test -n "$ac_ct_STRIP"; then 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2645$as_echo "$ac_ct_STRIP" >&6; } 2646else 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2648$as_echo "no" >&6; } 2649fi 2650 2651 if test "x$ac_ct_STRIP" = x; then 2652 STRIP=":" 2653 else 2654 case $cross_compiling:$ac_tool_warned in 2655yes:) 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2657$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2658ac_tool_warned=yes ;; 2659esac 2660 STRIP=$ac_ct_STRIP 2661 fi 2662else 2663 STRIP="$ac_cv_prog_STRIP" 2664fi 2665 2666fi 2667INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2668 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2670$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2671if test -z "$MKDIR_P"; then 2672 if ${ac_cv_path_mkdir+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2676for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2677do 2678 IFS=$as_save_IFS 2679 test -z "$as_dir" && as_dir=. 2680 for ac_prog in mkdir gmkdir; do 2681 for ac_exec_ext in '' $ac_executable_extensions; do 2682 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2683 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2684 'mkdir (GNU coreutils) '* | \ 2685 'mkdir (coreutils) '* | \ 2686 'mkdir (fileutils) '4.1*) 2687 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2688 break 3;; 2689 esac 2690 done 2691 done 2692 done 2693IFS=$as_save_IFS 2694 2695fi 2696 2697 test -d ./--version && rmdir ./--version 2698 if test "${ac_cv_path_mkdir+set}" = set; then 2699 MKDIR_P="$ac_cv_path_mkdir -p" 2700 else 2701 # As a last resort, use the slow shell script. Don't cache a 2702 # value for MKDIR_P within a source directory, because that will 2703 # break other packages using the cache if that directory is 2704 # removed, or if the value is a relative name. 2705 MKDIR_P="$ac_install_sh -d" 2706 fi 2707fi 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2709$as_echo "$MKDIR_P" >&6; } 2710 2711for ac_prog in gawk mawk nawk awk 2712do 2713 # Extract the first word of "$ac_prog", so it can be a program name with args. 2714set dummy $ac_prog; ac_word=$2 2715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2716$as_echo_n "checking for $ac_word... " >&6; } 2717if ${ac_cv_prog_AWK+:} false; then : 2718 $as_echo_n "(cached) " >&6 2719else 2720 if test -n "$AWK"; then 2721 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2722else 2723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2724for as_dir in $PATH 2725do 2726 IFS=$as_save_IFS 2727 test -z "$as_dir" && as_dir=. 2728 for ac_exec_ext in '' $ac_executable_extensions; do 2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2730 ac_cv_prog_AWK="$ac_prog" 2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2732 break 2 2733 fi 2734done 2735 done 2736IFS=$as_save_IFS 2737 2738fi 2739fi 2740AWK=$ac_cv_prog_AWK 2741if test -n "$AWK"; then 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2743$as_echo "$AWK" >&6; } 2744else 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2746$as_echo "no" >&6; } 2747fi 2748 2749 2750 test -n "$AWK" && break 2751done 2752 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2754$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2755set x ${MAKE-make} 2756ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2757if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2758 $as_echo_n "(cached) " >&6 2759else 2760 cat >conftest.make <<\_ACEOF 2761SHELL = /bin/sh 2762all: 2763 @echo '@@@%%%=$(MAKE)=@@@%%%' 2764_ACEOF 2765# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2766case `${MAKE-make} -f conftest.make 2>/dev/null` in 2767 *@@@%%%=?*=@@@%%%*) 2768 eval ac_cv_prog_make_${ac_make}_set=yes;; 2769 *) 2770 eval ac_cv_prog_make_${ac_make}_set=no;; 2771esac 2772rm -f conftest.make 2773fi 2774if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2776$as_echo "yes" >&6; } 2777 SET_MAKE= 2778else 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2780$as_echo "no" >&6; } 2781 SET_MAKE="MAKE=${MAKE-make}" 2782fi 2783 2784rm -rf .tst 2>/dev/null 2785mkdir .tst 2>/dev/null 2786if test -d .tst; then 2787 am__leading_dot=. 2788else 2789 am__leading_dot=_ 2790fi 2791rmdir .tst 2>/dev/null 2792 2793if test "`cd $srcdir && pwd`" != "`pwd`"; then 2794 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2795 # is not polluted with repeated "-I." 2796 am__isrc=' -I$(srcdir)' 2797 # test to see if srcdir already configured 2798 if test -f $srcdir/config.status; then 2799 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2800 fi 2801fi 2802 2803# test whether we have cygpath 2804if test -z "$CYGPATH_W"; then 2805 if (cygpath --version) >/dev/null 2>/dev/null; then 2806 CYGPATH_W='cygpath -w' 2807 else 2808 CYGPATH_W=echo 2809 fi 2810fi 2811 2812 2813# Define the identity of the package. 2814 PACKAGE='xf86-video-sunffb' 2815 VERSION='1.2.2' 2816 2817 2818cat >>confdefs.h <<_ACEOF 2819#define PACKAGE "$PACKAGE" 2820_ACEOF 2821 2822 2823cat >>confdefs.h <<_ACEOF 2824#define VERSION "$VERSION" 2825_ACEOF 2826 2827# Some tools Automake needs. 2828 2829ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2830 2831 2832AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2833 2834 2835AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2836 2837 2838AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2839 2840 2841MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2842 2843# For better backward compatibility. To be removed once Automake 1.9.x 2844# dies out for good. For more background, see: 2845# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2846# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2847mkdir_p='$(MKDIR_P)' 2848 2849# We need awk for the "check" target. The system "awk" is bad on 2850# some platforms. 2851# Always define AMTAR for backward compatibility. Yes, it's still used 2852# in the wild :-( We should find a proper way to deprecate it ... 2853AMTAR='$${TAR-tar}' 2854 2855am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2856 2857 2858 2859 2860 2861 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2863$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2864 # Check whether --enable-maintainer-mode was given. 2865if test "${enable_maintainer_mode+set}" = set; then : 2866 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2867else 2868 USE_MAINTAINER_MODE=no 2869fi 2870 2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2872$as_echo "$USE_MAINTAINER_MODE" >&6; } 2873 if test $USE_MAINTAINER_MODE = yes; then 2874 MAINTAINER_MODE_TRUE= 2875 MAINTAINER_MODE_FALSE='#' 2876else 2877 MAINTAINER_MODE_TRUE='#' 2878 MAINTAINER_MODE_FALSE= 2879fi 2880 2881 MAINT=$MAINTAINER_MODE_TRUE 2882 2883 2884 2885# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897DEPDIR="${am__leading_dot}deps" 2898 2899ac_config_commands="$ac_config_commands depfiles" 2900 2901 2902am_make=${MAKE-make} 2903cat > confinc << 'END' 2904am__doit: 2905 @echo this is the am__doit target 2906.PHONY: am__doit 2907END 2908# If we don't find an include directive, just comment out the code. 2909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2910$as_echo_n "checking for style of include used by $am_make... " >&6; } 2911am__include="#" 2912am__quote= 2913_am_result=none 2914# First try GNU make style include. 2915echo "include confinc" > confmf 2916# Ignore all kinds of additional output from 'make'. 2917case `$am_make -s -f confmf 2> /dev/null` in #( 2918*the\ am__doit\ target*) 2919 am__include=include 2920 am__quote= 2921 _am_result=GNU 2922 ;; 2923esac 2924# Now try BSD make style include. 2925if test "$am__include" = "#"; then 2926 echo '.include "confinc"' > confmf 2927 case `$am_make -s -f confmf 2> /dev/null` in #( 2928 *the\ am__doit\ target*) 2929 am__include=.include 2930 am__quote="\"" 2931 _am_result=BSD 2932 ;; 2933 esac 2934fi 2935 2936 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2938$as_echo "$_am_result" >&6; } 2939rm -f confinc confmf 2940 2941# Check whether --enable-dependency-tracking was given. 2942if test "${enable_dependency_tracking+set}" = set; then : 2943 enableval=$enable_dependency_tracking; 2944fi 2945 2946if test "x$enable_dependency_tracking" != xno; then 2947 am_depcomp="$ac_aux_dir/depcomp" 2948 AMDEPBACKSLASH='\' 2949 am__nodep='_no' 2950fi 2951 if test "x$enable_dependency_tracking" != xno; then 2952 AMDEP_TRUE= 2953 AMDEP_FALSE='#' 2954else 2955 AMDEP_TRUE='#' 2956 AMDEP_FALSE= 2957fi 2958 2959 2960ac_ext=c 2961ac_cpp='$CPP $CPPFLAGS' 2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2964ac_compiler_gnu=$ac_cv_c_compiler_gnu 2965if test -n "$ac_tool_prefix"; then 2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2967set dummy ${ac_tool_prefix}gcc; ac_word=$2 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969$as_echo_n "checking for $ac_word... " >&6; } 2970if ${ac_cv_prog_CC+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 if test -n "$CC"; then 2974 ac_cv_prog_CC="$CC" # Let the user override the test. 2975else 2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 test -z "$as_dir" && as_dir=. 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2983 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987done 2988 done 2989IFS=$as_save_IFS 2990 2991fi 2992fi 2993CC=$ac_cv_prog_CC 2994if test -n "$CC"; then 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2996$as_echo "$CC" >&6; } 2997else 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2999$as_echo "no" >&6; } 3000fi 3001 3002 3003fi 3004if test -z "$ac_cv_prog_CC"; then 3005 ac_ct_CC=$CC 3006 # Extract the first word of "gcc", so it can be a program name with args. 3007set dummy gcc; ac_word=$2 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3009$as_echo_n "checking for $ac_word... " >&6; } 3010if ${ac_cv_prog_ac_ct_CC+:} false; then : 3011 $as_echo_n "(cached) " >&6 3012else 3013 if test -n "$ac_ct_CC"; then 3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3015else 3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3017for as_dir in $PATH 3018do 3019 IFS=$as_save_IFS 3020 test -z "$as_dir" && as_dir=. 3021 for ac_exec_ext in '' $ac_executable_extensions; do 3022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3023 ac_cv_prog_ac_ct_CC="gcc" 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3025 break 2 3026 fi 3027done 3028 done 3029IFS=$as_save_IFS 3030 3031fi 3032fi 3033ac_ct_CC=$ac_cv_prog_ac_ct_CC 3034if test -n "$ac_ct_CC"; then 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3036$as_echo "$ac_ct_CC" >&6; } 3037else 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3039$as_echo "no" >&6; } 3040fi 3041 3042 if test "x$ac_ct_CC" = x; then 3043 CC="" 3044 else 3045 case $cross_compiling:$ac_tool_warned in 3046yes:) 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3049ac_tool_warned=yes ;; 3050esac 3051 CC=$ac_ct_CC 3052 fi 3053else 3054 CC="$ac_cv_prog_CC" 3055fi 3056 3057if test -z "$CC"; then 3058 if test -n "$ac_tool_prefix"; then 3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3060set dummy ${ac_tool_prefix}cc; ac_word=$2 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062$as_echo_n "checking for $ac_word... " >&6; } 3063if ${ac_cv_prog_CC+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 if test -n "$CC"; then 3067 ac_cv_prog_CC="$CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 test -z "$as_dir" && as_dir=. 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3076 ac_cv_prog_CC="${ac_tool_prefix}cc" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086CC=$ac_cv_prog_CC 3087if test -n "$CC"; then 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3089$as_echo "$CC" >&6; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092$as_echo "no" >&6; } 3093fi 3094 3095 3096 fi 3097fi 3098if test -z "$CC"; then 3099 # Extract the first word of "cc", so it can be a program name with args. 3100set dummy cc; ac_word=$2 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3102$as_echo_n "checking for $ac_word... " >&6; } 3103if ${ac_cv_prog_CC+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 if test -n "$CC"; then 3107 ac_cv_prog_CC="$CC" # Let the user override the test. 3108else 3109 ac_prog_rejected=no 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3118 ac_prog_rejected=yes 3119 continue 3120 fi 3121 ac_cv_prog_CC="cc" 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125done 3126 done 3127IFS=$as_save_IFS 3128 3129if test $ac_prog_rejected = yes; then 3130 # We found a bogon in the path, so make sure we never use it. 3131 set dummy $ac_cv_prog_CC 3132 shift 3133 if test $# != 0; then 3134 # We chose a different compiler from the bogus one. 3135 # However, it has the same basename, so the bogon will be chosen 3136 # first if we set CC to just the basename; use the full file name. 3137 shift 3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3139 fi 3140fi 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153fi 3154if test -z "$CC"; then 3155 if test -n "$ac_tool_prefix"; then 3156 for ac_prog in cl.exe 3157 do 3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3159set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if ${ac_cv_prog_CC+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195 test -n "$CC" && break 3196 done 3197fi 3198if test -z "$CC"; then 3199 ac_ct_CC=$CC 3200 for ac_prog in cl.exe 3201do 3202 # Extract the first word of "$ac_prog", so it can be a program name with args. 3203set dummy $ac_prog; ac_word=$2 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3205$as_echo_n "checking for $ac_word... " >&6; } 3206if ${ac_cv_prog_ac_ct_CC+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 if test -n "$ac_ct_CC"; then 3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3211else 3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213for as_dir in $PATH 3214do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_exec_ext in '' $ac_executable_extensions; do 3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3219 ac_cv_prog_ac_ct_CC="$ac_prog" 3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3221 break 2 3222 fi 3223done 3224 done 3225IFS=$as_save_IFS 3226 3227fi 3228fi 3229ac_ct_CC=$ac_cv_prog_ac_ct_CC 3230if test -n "$ac_ct_CC"; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3232$as_echo "$ac_ct_CC" >&6; } 3233else 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3235$as_echo "no" >&6; } 3236fi 3237 3238 3239 test -n "$ac_ct_CC" && break 3240done 3241 3242 if test "x$ac_ct_CC" = x; then 3243 CC="" 3244 else 3245 case $cross_compiling:$ac_tool_warned in 3246yes:) 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3249ac_tool_warned=yes ;; 3250esac 3251 CC=$ac_ct_CC 3252 fi 3253fi 3254 3255fi 3256 3257 3258test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3260as_fn_error $? "no acceptable C compiler found in \$PATH 3261See \`config.log' for more details" "$LINENO" 5; } 3262 3263# Provide some information about the compiler. 3264$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3265set X $ac_compile 3266ac_compiler=$2 3267for ac_option in --version -v -V -qversion; do 3268 { { ac_try="$ac_compiler $ac_option >&5" 3269case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3274$as_echo "$ac_try_echo"; } >&5 3275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3276 ac_status=$? 3277 if test -s conftest.err; then 3278 sed '10a\ 3279... rest of stderr output deleted ... 3280 10q' conftest.err >conftest.er1 3281 cat conftest.er1 >&5 3282 fi 3283 rm -f conftest.er1 conftest.err 3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; } 3286done 3287 3288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299ac_clean_files_save=$ac_clean_files 3300ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3301# Try to create an executable without -o first, disregard a.out. 3302# It will help us diagnose broken compilers, and finding out an intuition 3303# of exeext. 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3305$as_echo_n "checking whether the C compiler works... " >&6; } 3306ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3307 3308# The possible output files: 3309ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3310 3311ac_rmfiles= 3312for ac_file in $ac_files 3313do 3314 case $ac_file in 3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3317 esac 3318done 3319rm -f $ac_rmfiles 3320 3321if { { ac_try="$ac_link_default" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3327$as_echo "$ac_try_echo"; } >&5 3328 (eval "$ac_link_default") 2>&5 3329 ac_status=$? 3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3331 test $ac_status = 0; }; then : 3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3333# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3334# in a Makefile. We should not override ac_cv_exeext if it was cached, 3335# so that the user can short-circuit this test for compilers unknown to 3336# Autoconf. 3337for ac_file in $ac_files '' 3338do 3339 test -f "$ac_file" || continue 3340 case $ac_file in 3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3342 ;; 3343 [ab].out ) 3344 # We found the default executable, but exeext='' is most 3345 # certainly right. 3346 break;; 3347 *.* ) 3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3349 then :; else 3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3351 fi 3352 # We set ac_cv_exeext here because the later test for it is not 3353 # safe: cross compilers may not add the suffix if given an `-o' 3354 # argument, so we may need to know it at that point already. 3355 # Even if this section looks crufty: it has the advantage of 3356 # actually working. 3357 break;; 3358 * ) 3359 break;; 3360 esac 3361done 3362test "$ac_cv_exeext" = no && ac_cv_exeext= 3363 3364else 3365 ac_file='' 3366fi 3367if test -z "$ac_file"; then : 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3369$as_echo "no" >&6; } 3370$as_echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3375as_fn_error 77 "C compiler cannot create executables 3376See \`config.log' for more details" "$LINENO" 5; } 3377else 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3379$as_echo "yes" >&6; } 3380fi 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3382$as_echo_n "checking for C compiler default output file name... " >&6; } 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3384$as_echo "$ac_file" >&6; } 3385ac_exeext=$ac_cv_exeext 3386 3387rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3388ac_clean_files=$ac_clean_files_save 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3390$as_echo_n "checking for suffix of executables... " >&6; } 3391if { { ac_try="$ac_link" 3392case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397$as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_link") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; then : 3402 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3403# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3404# work properly (i.e., refer to `conftest.exe'), while it won't with 3405# `rm'. 3406for ac_file in conftest.exe conftest conftest.*; do 3407 test -f "$ac_file" || continue 3408 case $ac_file in 3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3411 break;; 3412 * ) break;; 3413 esac 3414done 3415else 3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3418as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3419See \`config.log' for more details" "$LINENO" 5; } 3420fi 3421rm -f conftest conftest$ac_cv_exeext 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3423$as_echo "$ac_cv_exeext" >&6; } 3424 3425rm -f conftest.$ac_ext 3426EXEEXT=$ac_cv_exeext 3427ac_exeext=$EXEEXT 3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430#include <stdio.h> 3431int 3432main () 3433{ 3434FILE *f = fopen ("conftest.out", "w"); 3435 return ferror (f) || fclose (f) != 0; 3436 3437 ; 3438 return 0; 3439} 3440_ACEOF 3441ac_clean_files="$ac_clean_files conftest.out" 3442# Check that the compiler produces executables we can run. If not, either 3443# the compiler is broken, or we cross compile. 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3445$as_echo_n "checking whether we are cross compiling... " >&6; } 3446if test "$cross_compiling" != yes; then 3447 { { ac_try="$ac_link" 3448case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451esac 3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3453$as_echo "$ac_try_echo"; } >&5 3454 (eval "$ac_link") 2>&5 3455 ac_status=$? 3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3457 test $ac_status = 0; } 3458 if { ac_try='./conftest$ac_cv_exeext' 3459 { { case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3464$as_echo "$ac_try_echo"; } >&5 3465 (eval "$ac_try") 2>&5 3466 ac_status=$? 3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3468 test $ac_status = 0; }; }; then 3469 cross_compiling=no 3470 else 3471 if test "$cross_compiling" = maybe; then 3472 cross_compiling=yes 3473 else 3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3476as_fn_error $? "cannot run C compiled programs. 3477If you meant to cross compile, use \`--host'. 3478See \`config.log' for more details" "$LINENO" 5; } 3479 fi 3480 fi 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3483$as_echo "$cross_compiling" >&6; } 3484 3485rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3486ac_clean_files=$ac_clean_files_save 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3488$as_echo_n "checking for suffix of object files... " >&6; } 3489if ${ac_cv_objext+:} false; then : 3490 $as_echo_n "(cached) " >&6 3491else 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503rm -f conftest.o conftest.obj 3504if { { ac_try="$ac_compile" 3505case "(($ac_try" in 3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3507 *) ac_try_echo=$ac_try;; 3508esac 3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3510$as_echo "$ac_try_echo"; } >&5 3511 (eval "$ac_compile") 2>&5 3512 ac_status=$? 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; }; then : 3515 for ac_file in conftest.o conftest.obj conftest.*; do 3516 test -f "$ac_file" || continue; 3517 case $ac_file in 3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3520 break;; 3521 esac 3522done 3523else 3524 $as_echo "$as_me: failed program was:" >&5 3525sed 's/^/| /' conftest.$ac_ext >&5 3526 3527{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "cannot compute suffix of object files: cannot compile 3530See \`config.log' for more details" "$LINENO" 5; } 3531fi 3532rm -f conftest.$ac_cv_objext conftest.$ac_ext 3533fi 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3535$as_echo "$ac_cv_objext" >&6; } 3536OBJEXT=$ac_cv_objext 3537ac_objext=$OBJEXT 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3539$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3540if ${ac_cv_c_compiler_gnu+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545 3546int 3547main () 3548{ 3549#ifndef __GNUC__ 3550 choke me 3551#endif 3552 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557if ac_fn_c_try_compile "$LINENO"; then : 3558 ac_compiler_gnu=yes 3559else 3560 ac_compiler_gnu=no 3561fi 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3563ac_cv_c_compiler_gnu=$ac_compiler_gnu 3564 3565fi 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3567$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3568if test $ac_compiler_gnu = yes; then 3569 GCC=yes 3570else 3571 GCC= 3572fi 3573ac_test_CFLAGS=${CFLAGS+set} 3574ac_save_CFLAGS=$CFLAGS 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3576$as_echo_n "checking whether $CC accepts -g... " >&6; } 3577if ${ac_cv_prog_cc_g+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 ac_save_c_werror_flag=$ac_c_werror_flag 3581 ac_c_werror_flag=yes 3582 ac_cv_prog_cc_g=no 3583 CFLAGS="-g" 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_compile "$LINENO"; then : 3596 ac_cv_prog_cc_g=yes 3597else 3598 CFLAGS="" 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601 3602int 3603main () 3604{ 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610if ac_fn_c_try_compile "$LINENO"; then : 3611 3612else 3613 ac_c_werror_flag=$ac_save_c_werror_flag 3614 CFLAGS="-g" 3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616/* end confdefs.h. */ 3617 3618int 3619main () 3620{ 3621 3622 ; 3623 return 0; 3624} 3625_ACEOF 3626if ac_fn_c_try_compile "$LINENO"; then : 3627 ac_cv_prog_cc_g=yes 3628fi 3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3630fi 3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632fi 3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3634 ac_c_werror_flag=$ac_save_c_werror_flag 3635fi 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3637$as_echo "$ac_cv_prog_cc_g" >&6; } 3638if test "$ac_test_CFLAGS" = set; then 3639 CFLAGS=$ac_save_CFLAGS 3640elif test $ac_cv_prog_cc_g = yes; then 3641 if test "$GCC" = yes; then 3642 CFLAGS="-g -O2" 3643 else 3644 CFLAGS="-g" 3645 fi 3646else 3647 if test "$GCC" = yes; then 3648 CFLAGS="-O2" 3649 else 3650 CFLAGS= 3651 fi 3652fi 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3654$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3655if ${ac_cv_prog_cc_c89+:} false; then : 3656 $as_echo_n "(cached) " >&6 3657else 3658 ac_cv_prog_cc_c89=no 3659ac_save_CC=$CC 3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662#include <stdarg.h> 3663#include <stdio.h> 3664struct stat; 3665/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3666struct buf { int x; }; 3667FILE * (*rcsopen) (struct buf *, struct stat *, int); 3668static char *e (p, i) 3669 char **p; 3670 int i; 3671{ 3672 return p[i]; 3673} 3674static char *f (char * (*g) (char **, int), char **p, ...) 3675{ 3676 char *s; 3677 va_list v; 3678 va_start (v,p); 3679 s = g (p, va_arg (v,int)); 3680 va_end (v); 3681 return s; 3682} 3683 3684/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3685 function prototypes and stuff, but not '\xHH' hex character constants. 3686 These don't provoke an error unfortunately, instead are silently treated 3687 as 'x'. The following induces an error, until -std is added to get 3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3689 array size at least. It's necessary to write '\x00'==0 to get something 3690 that's true only with -std. */ 3691int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3692 3693/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3694 inside strings and character constants. */ 3695#define FOO(x) 'x' 3696int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3697 3698int test (int i, double x); 3699struct s1 {int (*f) (int a);}; 3700struct s2 {int (*f) (double a);}; 3701int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3702int argc; 3703char **argv; 3704int 3705main () 3706{ 3707return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3714do 3715 CC="$ac_save_CC $ac_arg" 3716 if ac_fn_c_try_compile "$LINENO"; then : 3717 ac_cv_prog_cc_c89=$ac_arg 3718fi 3719rm -f core conftest.err conftest.$ac_objext 3720 test "x$ac_cv_prog_cc_c89" != "xno" && break 3721done 3722rm -f conftest.$ac_ext 3723CC=$ac_save_CC 3724 3725fi 3726# AC_CACHE_VAL 3727case "x$ac_cv_prog_cc_c89" in 3728 x) 3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3730$as_echo "none needed" >&6; } ;; 3731 xno) 3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3733$as_echo "unsupported" >&6; } ;; 3734 *) 3735 CC="$CC $ac_cv_prog_cc_c89" 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3737$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3738esac 3739if test "x$ac_cv_prog_cc_c89" != xno; then : 3740 3741fi 3742 3743ac_ext=c 3744ac_cpp='$CPP $CPPFLAGS' 3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3747ac_compiler_gnu=$ac_cv_c_compiler_gnu 3748 3749depcc="$CC" am_compiler_list= 3750 3751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3752$as_echo_n "checking dependency style of $depcc... " >&6; } 3753if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3754 $as_echo_n "(cached) " >&6 3755else 3756 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3757 # We make a subdir and do the tests there. Otherwise we can end up 3758 # making bogus files that we don't know about and never remove. For 3759 # instance it was reported that on HP-UX the gcc test will end up 3760 # making a dummy file named 'D' -- because '-MD' means "put the output 3761 # in D". 3762 rm -rf conftest.dir 3763 mkdir conftest.dir 3764 # Copy depcomp to subdir because otherwise we won't find it if we're 3765 # using a relative directory. 3766 cp "$am_depcomp" conftest.dir 3767 cd conftest.dir 3768 # We will build objects and dependencies in a subdirectory because 3769 # it helps to detect inapplicable dependency modes. For instance 3770 # both Tru64's cc and ICC support -MD to output dependencies as a 3771 # side effect of compilation, but ICC will put the dependencies in 3772 # the current directory while Tru64 will put them in the object 3773 # directory. 3774 mkdir sub 3775 3776 am_cv_CC_dependencies_compiler_type=none 3777 if test "$am_compiler_list" = ""; then 3778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3779 fi 3780 am__universal=false 3781 case " $depcc " in #( 3782 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3783 esac 3784 3785 for depmode in $am_compiler_list; do 3786 # Setup a source with many dependencies, because some compilers 3787 # like to wrap large dependency lists on column 80 (with \), and 3788 # we should not choose a depcomp mode which is confused by this. 3789 # 3790 # We need to recreate these files for each test, as the compiler may 3791 # overwrite some of them when testing with obscure command lines. 3792 # This happens at least with the AIX C compiler. 3793 : > sub/conftest.c 3794 for i in 1 2 3 4 5 6; do 3795 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3796 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3797 # Solaris 10 /bin/sh. 3798 echo '/* dummy */' > sub/conftst$i.h 3799 done 3800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3801 3802 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3803 # mode. It turns out that the SunPro C++ compiler does not properly 3804 # handle '-M -o', and we need to detect this. Also, some Intel 3805 # versions had trouble with output in subdirs. 3806 am__obj=sub/conftest.${OBJEXT-o} 3807 am__minus_obj="-o $am__obj" 3808 case $depmode in 3809 gcc) 3810 # This depmode causes a compiler race in universal mode. 3811 test "$am__universal" = false || continue 3812 ;; 3813 nosideeffect) 3814 # After this tag, mechanisms are not by side-effect, so they'll 3815 # only be used when explicitly requested. 3816 if test "x$enable_dependency_tracking" = xyes; then 3817 continue 3818 else 3819 break 3820 fi 3821 ;; 3822 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3823 # This compiler won't grok '-c -o', but also, the minuso test has 3824 # not run yet. These depmodes are late enough in the game, and 3825 # so weak that their functioning should not be impacted. 3826 am__obj=conftest.${OBJEXT-o} 3827 am__minus_obj= 3828 ;; 3829 none) break ;; 3830 esac 3831 if depmode=$depmode \ 3832 source=sub/conftest.c object=$am__obj \ 3833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3835 >/dev/null 2>conftest.err && 3836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3840 # icc doesn't choke on unknown options, it will just issue warnings 3841 # or remarks (even with -Werror). So we grep stderr for any message 3842 # that says an option was ignored or not supported. 3843 # When given -MP, icc 7.0 and 7.1 complain thusly: 3844 # icc: Command line warning: ignoring option '-M'; no argument required 3845 # The diagnosis changed in icc 8.0: 3846 # icc: Command line remark: option '-MP' not supported 3847 if (grep 'ignoring option' conftest.err || 3848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3849 am_cv_CC_dependencies_compiler_type=$depmode 3850 break 3851 fi 3852 fi 3853 done 3854 3855 cd .. 3856 rm -rf conftest.dir 3857else 3858 am_cv_CC_dependencies_compiler_type=none 3859fi 3860 3861fi 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3863$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3864CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3865 3866 if 3867 test "x$enable_dependency_tracking" != xno \ 3868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3869 am__fastdepCC_TRUE= 3870 am__fastdepCC_FALSE='#' 3871else 3872 am__fastdepCC_TRUE='#' 3873 am__fastdepCC_FALSE= 3874fi 3875 3876 3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3878$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3879if ${ac_cv_prog_cc_c99+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 ac_cv_prog_cc_c99=no 3883ac_save_CC=$CC 3884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3885/* end confdefs.h. */ 3886#include <stdarg.h> 3887#include <stdbool.h> 3888#include <stdlib.h> 3889#include <wchar.h> 3890#include <stdio.h> 3891 3892// Check varargs macros. These examples are taken from C99 6.10.3.5. 3893#define debug(...) fprintf (stderr, __VA_ARGS__) 3894#define showlist(...) puts (#__VA_ARGS__) 3895#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3896static void 3897test_varargs_macros (void) 3898{ 3899 int x = 1234; 3900 int y = 5678; 3901 debug ("Flag"); 3902 debug ("X = %d\n", x); 3903 showlist (The first, second, and third items.); 3904 report (x>y, "x is %d but y is %d", x, y); 3905} 3906 3907// Check long long types. 3908#define BIG64 18446744073709551615ull 3909#define BIG32 4294967295ul 3910#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3911#if !BIG_OK 3912 your preprocessor is broken; 3913#endif 3914#if BIG_OK 3915#else 3916 your preprocessor is broken; 3917#endif 3918static long long int bignum = -9223372036854775807LL; 3919static unsigned long long int ubignum = BIG64; 3920 3921struct incomplete_array 3922{ 3923 int datasize; 3924 double data[]; 3925}; 3926 3927struct named_init { 3928 int number; 3929 const wchar_t *name; 3930 double average; 3931}; 3932 3933typedef const char *ccp; 3934 3935static inline int 3936test_restrict (ccp restrict text) 3937{ 3938 // See if C++-style comments work. 3939 // Iterate through items via the restricted pointer. 3940 // Also check for declarations in for loops. 3941 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3942 continue; 3943 return 0; 3944} 3945 3946// Check varargs and va_copy. 3947static void 3948test_varargs (const char *format, ...) 3949{ 3950 va_list args; 3951 va_start (args, format); 3952 va_list args_copy; 3953 va_copy (args_copy, args); 3954 3955 const char *str; 3956 int number; 3957 float fnumber; 3958 3959 while (*format) 3960 { 3961 switch (*format++) 3962 { 3963 case 's': // string 3964 str = va_arg (args_copy, const char *); 3965 break; 3966 case 'd': // int 3967 number = va_arg (args_copy, int); 3968 break; 3969 case 'f': // float 3970 fnumber = va_arg (args_copy, double); 3971 break; 3972 default: 3973 break; 3974 } 3975 } 3976 va_end (args_copy); 3977 va_end (args); 3978} 3979 3980int 3981main () 3982{ 3983 3984 // Check bool. 3985 _Bool success = false; 3986 3987 // Check restrict. 3988 if (test_restrict ("String literal") == 0) 3989 success = true; 3990 char *restrict newvar = "Another string"; 3991 3992 // Check varargs. 3993 test_varargs ("s, d' f .", "string", 65, 34.234); 3994 test_varargs_macros (); 3995 3996 // Check flexible array members. 3997 struct incomplete_array *ia = 3998 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3999 ia->datasize = 10; 4000 for (int i = 0; i < ia->datasize; ++i) 4001 ia->data[i] = i * 1.234; 4002 4003 // Check named initializers. 4004 struct named_init ni = { 4005 .number = 34, 4006 .name = L"Test wide string", 4007 .average = 543.34343, 4008 }; 4009 4010 ni.number = 58; 4011 4012 int dynamic_array[ni.number]; 4013 dynamic_array[ni.number - 1] = 543; 4014 4015 // work around unused variable warnings 4016 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4017 || dynamic_array[ni.number - 1] != 543); 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4024do 4025 CC="$ac_save_CC $ac_arg" 4026 if ac_fn_c_try_compile "$LINENO"; then : 4027 ac_cv_prog_cc_c99=$ac_arg 4028fi 4029rm -f core conftest.err conftest.$ac_objext 4030 test "x$ac_cv_prog_cc_c99" != "xno" && break 4031done 4032rm -f conftest.$ac_ext 4033CC=$ac_save_CC 4034 4035fi 4036# AC_CACHE_VAL 4037case "x$ac_cv_prog_cc_c99" in 4038 x) 4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4040$as_echo "none needed" >&6; } ;; 4041 xno) 4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4043$as_echo "unsupported" >&6; } ;; 4044 *) 4045 CC="$CC $ac_cv_prog_cc_c99" 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4047$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4048esac 4049if test "x$ac_cv_prog_cc_c99" != xno; then : 4050 4051fi 4052 4053 4054 4055ac_ext=c 4056ac_cpp='$CPP $CPPFLAGS' 4057ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4058ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4059ac_compiler_gnu=$ac_cv_c_compiler_gnu 4060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4061$as_echo_n "checking how to run the C preprocessor... " >&6; } 4062# On Suns, sometimes $CPP names a directory. 4063if test -n "$CPP" && test -d "$CPP"; then 4064 CPP= 4065fi 4066if test -z "$CPP"; then 4067 if ${ac_cv_prog_CPP+:} false; then : 4068 $as_echo_n "(cached) " >&6 4069else 4070 # Double quotes because CPP needs to be expanded 4071 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4072 do 4073 ac_preproc_ok=false 4074for ac_c_preproc_warn_flag in '' yes 4075do 4076 # Use a header file that comes with gcc, so configuring glibc 4077 # with a fresh cross-compiler works. 4078 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4079 # <limits.h> exists even on freestanding compilers. 4080 # On the NeXT, cc -E runs the code through the compiler's parser, 4081 # not just through cpp. "Syntax error" is here to catch this case. 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#ifdef __STDC__ 4085# include <limits.h> 4086#else 4087# include <assert.h> 4088#endif 4089 Syntax error 4090_ACEOF 4091if ac_fn_c_try_cpp "$LINENO"; then : 4092 4093else 4094 # Broken: fails on valid input. 4095continue 4096fi 4097rm -f conftest.err conftest.i conftest.$ac_ext 4098 4099 # OK, works on sane cases. Now check whether nonexistent headers 4100 # can be detected and how. 4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4102/* end confdefs.h. */ 4103#include <ac_nonexistent.h> 4104_ACEOF 4105if ac_fn_c_try_cpp "$LINENO"; then : 4106 # Broken: success on invalid input. 4107continue 4108else 4109 # Passes both tests. 4110ac_preproc_ok=: 4111break 4112fi 4113rm -f conftest.err conftest.i conftest.$ac_ext 4114 4115done 4116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4117rm -f conftest.i conftest.err conftest.$ac_ext 4118if $ac_preproc_ok; then : 4119 break 4120fi 4121 4122 done 4123 ac_cv_prog_CPP=$CPP 4124 4125fi 4126 CPP=$ac_cv_prog_CPP 4127else 4128 ac_cv_prog_CPP=$CPP 4129fi 4130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4131$as_echo "$CPP" >&6; } 4132ac_preproc_ok=false 4133for ac_c_preproc_warn_flag in '' yes 4134do 4135 # Use a header file that comes with gcc, so configuring glibc 4136 # with a fresh cross-compiler works. 4137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4138 # <limits.h> exists even on freestanding compilers. 4139 # On the NeXT, cc -E runs the code through the compiler's parser, 4140 # not just through cpp. "Syntax error" is here to catch this case. 4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4142/* end confdefs.h. */ 4143#ifdef __STDC__ 4144# include <limits.h> 4145#else 4146# include <assert.h> 4147#endif 4148 Syntax error 4149_ACEOF 4150if ac_fn_c_try_cpp "$LINENO"; then : 4151 4152else 4153 # Broken: fails on valid input. 4154continue 4155fi 4156rm -f conftest.err conftest.i conftest.$ac_ext 4157 4158 # OK, works on sane cases. Now check whether nonexistent headers 4159 # can be detected and how. 4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4161/* end confdefs.h. */ 4162#include <ac_nonexistent.h> 4163_ACEOF 4164if ac_fn_c_try_cpp "$LINENO"; then : 4165 # Broken: success on invalid input. 4166continue 4167else 4168 # Passes both tests. 4169ac_preproc_ok=: 4170break 4171fi 4172rm -f conftest.err conftest.i conftest.$ac_ext 4173 4174done 4175# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4176rm -f conftest.i conftest.err conftest.$ac_ext 4177if $ac_preproc_ok; then : 4178 4179else 4180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4182as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4183See \`config.log' for more details" "$LINENO" 5; } 4184fi 4185 4186ac_ext=c 4187ac_cpp='$CPP $CPPFLAGS' 4188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4190ac_compiler_gnu=$ac_cv_c_compiler_gnu 4191 4192 4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4194$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4195if ${ac_cv_path_GREP+:} false; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 if test -z "$GREP"; then 4199 ac_path_GREP_found=false 4200 # Loop through the user's path and test for each of PROGNAME-LIST 4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4203do 4204 IFS=$as_save_IFS 4205 test -z "$as_dir" && as_dir=. 4206 for ac_prog in grep ggrep; do 4207 for ac_exec_ext in '' $ac_executable_extensions; do 4208 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4209 as_fn_executable_p "$ac_path_GREP" || continue 4210# Check for GNU ac_path_GREP and select it if it is found. 4211 # Check for GNU $ac_path_GREP 4212case `"$ac_path_GREP" --version 2>&1` in 4213*GNU*) 4214 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4215*) 4216 ac_count=0 4217 $as_echo_n 0123456789 >"conftest.in" 4218 while : 4219 do 4220 cat "conftest.in" "conftest.in" >"conftest.tmp" 4221 mv "conftest.tmp" "conftest.in" 4222 cp "conftest.in" "conftest.nl" 4223 $as_echo 'GREP' >> "conftest.nl" 4224 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4225 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4226 as_fn_arith $ac_count + 1 && ac_count=$as_val 4227 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4228 # Best one so far, save it but keep looking for a better one 4229 ac_cv_path_GREP="$ac_path_GREP" 4230 ac_path_GREP_max=$ac_count 4231 fi 4232 # 10*(2^10) chars as input seems more than enough 4233 test $ac_count -gt 10 && break 4234 done 4235 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4236esac 4237 4238 $ac_path_GREP_found && break 3 4239 done 4240 done 4241 done 4242IFS=$as_save_IFS 4243 if test -z "$ac_cv_path_GREP"; then 4244 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4245 fi 4246else 4247 ac_cv_path_GREP=$GREP 4248fi 4249 4250fi 4251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4252$as_echo "$ac_cv_path_GREP" >&6; } 4253 GREP="$ac_cv_path_GREP" 4254 4255 4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4257$as_echo_n "checking for egrep... " >&6; } 4258if ${ac_cv_path_EGREP+:} false; then : 4259 $as_echo_n "(cached) " >&6 4260else 4261 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4262 then ac_cv_path_EGREP="$GREP -E" 4263 else 4264 if test -z "$EGREP"; then 4265 ac_path_EGREP_found=false 4266 # Loop through the user's path and test for each of PROGNAME-LIST 4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4268for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4269do 4270 IFS=$as_save_IFS 4271 test -z "$as_dir" && as_dir=. 4272 for ac_prog in egrep; do 4273 for ac_exec_ext in '' $ac_executable_extensions; do 4274 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4275 as_fn_executable_p "$ac_path_EGREP" || continue 4276# Check for GNU ac_path_EGREP and select it if it is found. 4277 # Check for GNU $ac_path_EGREP 4278case `"$ac_path_EGREP" --version 2>&1` in 4279*GNU*) 4280 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4281*) 4282 ac_count=0 4283 $as_echo_n 0123456789 >"conftest.in" 4284 while : 4285 do 4286 cat "conftest.in" "conftest.in" >"conftest.tmp" 4287 mv "conftest.tmp" "conftest.in" 4288 cp "conftest.in" "conftest.nl" 4289 $as_echo 'EGREP' >> "conftest.nl" 4290 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4291 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4292 as_fn_arith $ac_count + 1 && ac_count=$as_val 4293 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4294 # Best one so far, save it but keep looking for a better one 4295 ac_cv_path_EGREP="$ac_path_EGREP" 4296 ac_path_EGREP_max=$ac_count 4297 fi 4298 # 10*(2^10) chars as input seems more than enough 4299 test $ac_count -gt 10 && break 4300 done 4301 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4302esac 4303 4304 $ac_path_EGREP_found && break 3 4305 done 4306 done 4307 done 4308IFS=$as_save_IFS 4309 if test -z "$ac_cv_path_EGREP"; then 4310 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4311 fi 4312else 4313 ac_cv_path_EGREP=$EGREP 4314fi 4315 4316 fi 4317fi 4318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4319$as_echo "$ac_cv_path_EGREP" >&6; } 4320 EGREP="$ac_cv_path_EGREP" 4321 4322 4323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4324$as_echo_n "checking for ANSI C header files... " >&6; } 4325if ${ac_cv_header_stdc+:} false; then : 4326 $as_echo_n "(cached) " >&6 4327else 4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4329/* end confdefs.h. */ 4330#include <stdlib.h> 4331#include <stdarg.h> 4332#include <string.h> 4333#include <float.h> 4334 4335int 4336main () 4337{ 4338 4339 ; 4340 return 0; 4341} 4342_ACEOF 4343if ac_fn_c_try_compile "$LINENO"; then : 4344 ac_cv_header_stdc=yes 4345else 4346 ac_cv_header_stdc=no 4347fi 4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4349 4350if test $ac_cv_header_stdc = yes; then 4351 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4353/* end confdefs.h. */ 4354#include <string.h> 4355 4356_ACEOF 4357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4358 $EGREP "memchr" >/dev/null 2>&1; then : 4359 4360else 4361 ac_cv_header_stdc=no 4362fi 4363rm -f conftest* 4364 4365fi 4366 4367if test $ac_cv_header_stdc = yes; then 4368 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370/* end confdefs.h. */ 4371#include <stdlib.h> 4372 4373_ACEOF 4374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4375 $EGREP "free" >/dev/null 2>&1; then : 4376 4377else 4378 ac_cv_header_stdc=no 4379fi 4380rm -f conftest* 4381 4382fi 4383 4384if test $ac_cv_header_stdc = yes; then 4385 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4386 if test "$cross_compiling" = yes; then : 4387 : 4388else 4389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4390/* end confdefs.h. */ 4391#include <ctype.h> 4392#include <stdlib.h> 4393#if ((' ' & 0x0FF) == 0x020) 4394# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4395# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4396#else 4397# define ISLOWER(c) \ 4398 (('a' <= (c) && (c) <= 'i') \ 4399 || ('j' <= (c) && (c) <= 'r') \ 4400 || ('s' <= (c) && (c) <= 'z')) 4401# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4402#endif 4403 4404#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4405int 4406main () 4407{ 4408 int i; 4409 for (i = 0; i < 256; i++) 4410 if (XOR (islower (i), ISLOWER (i)) 4411 || toupper (i) != TOUPPER (i)) 4412 return 2; 4413 return 0; 4414} 4415_ACEOF 4416if ac_fn_c_try_run "$LINENO"; then : 4417 4418else 4419 ac_cv_header_stdc=no 4420fi 4421rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4422 conftest.$ac_objext conftest.beam conftest.$ac_ext 4423fi 4424 4425fi 4426fi 4427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4428$as_echo "$ac_cv_header_stdc" >&6; } 4429if test $ac_cv_header_stdc = yes; then 4430 4431$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4432 4433fi 4434 4435# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4436for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4437 inttypes.h stdint.h unistd.h 4438do : 4439 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4440ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4441" 4442if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4443 cat >>confdefs.h <<_ACEOF 4444#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4445_ACEOF 4446 4447fi 4448 4449done 4450 4451 4452 4453 4454 4455 4456ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4457if test "x$ac_cv_have_decl___clang__" = xyes; then : 4458 CLANGCC="yes" 4459else 4460 CLANGCC="no" 4461fi 4462 4463ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4464if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4465 INTELCC="yes" 4466else 4467 INTELCC="no" 4468fi 4469 4470ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4471if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4472 SUNCC="yes" 4473else 4474 SUNCC="no" 4475fi 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4486 if test -n "$ac_tool_prefix"; then 4487 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4488set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4490$as_echo_n "checking for $ac_word... " >&6; } 4491if ${ac_cv_path_PKG_CONFIG+:} false; then : 4492 $as_echo_n "(cached) " >&6 4493else 4494 case $PKG_CONFIG in 4495 [\\/]* | ?:[\\/]*) 4496 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4497 ;; 4498 *) 4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4500for as_dir in $PATH 4501do 4502 IFS=$as_save_IFS 4503 test -z "$as_dir" && as_dir=. 4504 for ac_exec_ext in '' $ac_executable_extensions; do 4505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4508 break 2 4509 fi 4510done 4511 done 4512IFS=$as_save_IFS 4513 4514 ;; 4515esac 4516fi 4517PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4518if test -n "$PKG_CONFIG"; then 4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4520$as_echo "$PKG_CONFIG" >&6; } 4521else 4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4523$as_echo "no" >&6; } 4524fi 4525 4526 4527fi 4528if test -z "$ac_cv_path_PKG_CONFIG"; then 4529 ac_pt_PKG_CONFIG=$PKG_CONFIG 4530 # Extract the first word of "pkg-config", so it can be a program name with args. 4531set dummy pkg-config; ac_word=$2 4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4533$as_echo_n "checking for $ac_word... " >&6; } 4534if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4535 $as_echo_n "(cached) " >&6 4536else 4537 case $ac_pt_PKG_CONFIG in 4538 [\\/]* | ?:[\\/]*) 4539 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4540 ;; 4541 *) 4542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4543for as_dir in $PATH 4544do 4545 IFS=$as_save_IFS 4546 test -z "$as_dir" && as_dir=. 4547 for ac_exec_ext in '' $ac_executable_extensions; do 4548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4549 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4551 break 2 4552 fi 4553done 4554 done 4555IFS=$as_save_IFS 4556 4557 ;; 4558esac 4559fi 4560ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4561if test -n "$ac_pt_PKG_CONFIG"; then 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4563$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4564else 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4566$as_echo "no" >&6; } 4567fi 4568 4569 if test "x$ac_pt_PKG_CONFIG" = x; then 4570 PKG_CONFIG="" 4571 else 4572 case $cross_compiling:$ac_tool_warned in 4573yes:) 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4576ac_tool_warned=yes ;; 4577esac 4578 PKG_CONFIG=$ac_pt_PKG_CONFIG 4579 fi 4580else 4581 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4582fi 4583 4584fi 4585if test -n "$PKG_CONFIG"; then 4586 _pkg_min_version=0.9.0 4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4588$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4589 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4591$as_echo "yes" >&6; } 4592 else 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4594$as_echo "no" >&6; } 4595 PKG_CONFIG="" 4596 fi 4597fi 4598# Make sure we can run config.sub. 4599$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4600 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4601 4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4603$as_echo_n "checking build system type... " >&6; } 4604if ${ac_cv_build+:} false; then : 4605 $as_echo_n "(cached) " >&6 4606else 4607 ac_build_alias=$build_alias 4608test "x$ac_build_alias" = x && 4609 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4610test "x$ac_build_alias" = x && 4611 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4612ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4613 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4614 4615fi 4616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4617$as_echo "$ac_cv_build" >&6; } 4618case $ac_cv_build in 4619*-*-*) ;; 4620*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4621esac 4622build=$ac_cv_build 4623ac_save_IFS=$IFS; IFS='-' 4624set x $ac_cv_build 4625shift 4626build_cpu=$1 4627build_vendor=$2 4628shift; shift 4629# Remember, the first character of IFS is used to create $*, 4630# except with old shells: 4631build_os=$* 4632IFS=$ac_save_IFS 4633case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4634 4635 4636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4637$as_echo_n "checking host system type... " >&6; } 4638if ${ac_cv_host+:} false; then : 4639 $as_echo_n "(cached) " >&6 4640else 4641 if test "x$host_alias" = x; then 4642 ac_cv_host=$ac_cv_build 4643else 4644 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4645 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4646fi 4647 4648fi 4649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4650$as_echo "$ac_cv_host" >&6; } 4651case $ac_cv_host in 4652*-*-*) ;; 4653*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4654esac 4655host=$ac_cv_host 4656ac_save_IFS=$IFS; IFS='-' 4657set x $ac_cv_host 4658shift 4659host_cpu=$1 4660host_vendor=$2 4661shift; shift 4662# Remember, the first character of IFS is used to create $*, 4663# except with old shells: 4664host_os=$* 4665IFS=$ac_save_IFS 4666case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4667 4668 4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4670$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4671if ${ac_cv_path_SED+:} false; then : 4672 $as_echo_n "(cached) " >&6 4673else 4674 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4675 for ac_i in 1 2 3 4 5 6 7; do 4676 ac_script="$ac_script$as_nl$ac_script" 4677 done 4678 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4679 { ac_script=; unset ac_script;} 4680 if test -z "$SED"; then 4681 ac_path_SED_found=false 4682 # Loop through the user's path and test for each of PROGNAME-LIST 4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4684for as_dir in $PATH 4685do 4686 IFS=$as_save_IFS 4687 test -z "$as_dir" && as_dir=. 4688 for ac_prog in sed gsed; do 4689 for ac_exec_ext in '' $ac_executable_extensions; do 4690 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4691 as_fn_executable_p "$ac_path_SED" || continue 4692# Check for GNU ac_path_SED and select it if it is found. 4693 # Check for GNU $ac_path_SED 4694case `"$ac_path_SED" --version 2>&1` in 4695*GNU*) 4696 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4697*) 4698 ac_count=0 4699 $as_echo_n 0123456789 >"conftest.in" 4700 while : 4701 do 4702 cat "conftest.in" "conftest.in" >"conftest.tmp" 4703 mv "conftest.tmp" "conftest.in" 4704 cp "conftest.in" "conftest.nl" 4705 $as_echo '' >> "conftest.nl" 4706 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4707 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4708 as_fn_arith $ac_count + 1 && ac_count=$as_val 4709 if test $ac_count -gt ${ac_path_SED_max-0}; then 4710 # Best one so far, save it but keep looking for a better one 4711 ac_cv_path_SED="$ac_path_SED" 4712 ac_path_SED_max=$ac_count 4713 fi 4714 # 10*(2^10) chars as input seems more than enough 4715 test $ac_count -gt 10 && break 4716 done 4717 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4718esac 4719 4720 $ac_path_SED_found && break 3 4721 done 4722 done 4723 done 4724IFS=$as_save_IFS 4725 if test -z "$ac_cv_path_SED"; then 4726 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4727 fi 4728else 4729 ac_cv_path_SED=$SED 4730fi 4731 4732fi 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4734$as_echo "$ac_cv_path_SED" >&6; } 4735 SED="$ac_cv_path_SED" 4736 rm -f conftest.sed 4737 4738 4739 4740 4741 4742 4743# Check whether --enable-selective-werror was given. 4744if test "${enable_selective_werror+set}" = set; then : 4745 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4746else 4747 SELECTIVE_WERROR=yes 4748fi 4749 4750 4751 4752 4753 4754# -v is too short to test reliably with XORG_TESTSET_CFLAG 4755if test "x$SUNCC" = "xyes"; then 4756 BASE_CFLAGS="-v" 4757else 4758 BASE_CFLAGS="" 4759fi 4760 4761# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775xorg_testset_save_CFLAGS="$CFLAGS" 4776 4777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4785/* end confdefs.h. */ 4786int i; 4787_ACEOF 4788if ac_fn_c_try_compile "$LINENO"; then : 4789 xorg_cv_cc_flag_unknown_warning_option=yes 4790else 4791 xorg_cv_cc_flag_unknown_warning_option=no 4792fi 4793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4794fi 4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4798 CFLAGS="$xorg_testset_save_CFLAGS" 4799fi 4800 4801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4804 fi 4805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4809 $as_echo_n "(cached) " >&6 4810else 4811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4812/* end confdefs.h. */ 4813int i; 4814_ACEOF 4815if ac_fn_c_try_compile "$LINENO"; then : 4816 xorg_cv_cc_flag_unused_command_line_argument=yes 4817else 4818 xorg_cv_cc_flag_unused_command_line_argument=no 4819fi 4820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4821fi 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4825 CFLAGS="$xorg_testset_save_CFLAGS" 4826fi 4827 4828found="no" 4829 4830 if test $found = "no" ; then 4831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4833 fi 4834 4835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4837 fi 4838 4839 CFLAGS="$CFLAGS -Wall" 4840 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4842$as_echo_n "checking if $CC supports -Wall... " >&6; } 4843 cacheid=xorg_cv_cc_flag__Wall 4844 if eval \${$cacheid+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4848/* end confdefs.h. */ 4849int i; 4850int 4851main () 4852{ 4853 4854 ; 4855 return 0; 4856} 4857_ACEOF 4858if ac_fn_c_try_link "$LINENO"; then : 4859 eval $cacheid=yes 4860else 4861 eval $cacheid=no 4862fi 4863rm -f core conftest.err conftest.$ac_objext \ 4864 conftest$ac_exeext conftest.$ac_ext 4865fi 4866 4867 4868 CFLAGS="$xorg_testset_save_CFLAGS" 4869 4870 eval supported=\$$cacheid 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4872$as_echo "$supported" >&6; } 4873 if test "$supported" = "yes" ; then 4874 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4875 found="yes" 4876 fi 4877 fi 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893xorg_testset_save_CFLAGS="$CFLAGS" 4894 4895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4900 $as_echo_n "(cached) " >&6 4901else 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903/* end confdefs.h. */ 4904int i; 4905_ACEOF 4906if ac_fn_c_try_compile "$LINENO"; then : 4907 xorg_cv_cc_flag_unknown_warning_option=yes 4908else 4909 xorg_cv_cc_flag_unknown_warning_option=no 4910fi 4911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4912fi 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4916 CFLAGS="$xorg_testset_save_CFLAGS" 4917fi 4918 4919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4922 fi 4923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4927 $as_echo_n "(cached) " >&6 4928else 4929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4930/* end confdefs.h. */ 4931int i; 4932_ACEOF 4933if ac_fn_c_try_compile "$LINENO"; then : 4934 xorg_cv_cc_flag_unused_command_line_argument=yes 4935else 4936 xorg_cv_cc_flag_unused_command_line_argument=no 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939fi 4940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4943 CFLAGS="$xorg_testset_save_CFLAGS" 4944fi 4945 4946found="no" 4947 4948 if test $found = "no" ; then 4949 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 4950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4951 fi 4952 4953 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 4954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4955 fi 4956 4957 CFLAGS="$CFLAGS -Wpointer-arith" 4958 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4960$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4961 cacheid=xorg_cv_cc_flag__Wpointer_arith 4962 if eval \${$cacheid+:} false; then : 4963 $as_echo_n "(cached) " >&6 4964else 4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966/* end confdefs.h. */ 4967int i; 4968int 4969main () 4970{ 4971 4972 ; 4973 return 0; 4974} 4975_ACEOF 4976if ac_fn_c_try_link "$LINENO"; then : 4977 eval $cacheid=yes 4978else 4979 eval $cacheid=no 4980fi 4981rm -f core conftest.err conftest.$ac_objext \ 4982 conftest$ac_exeext conftest.$ac_ext 4983fi 4984 4985 4986 CFLAGS="$xorg_testset_save_CFLAGS" 4987 4988 eval supported=\$$cacheid 4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4990$as_echo "$supported" >&6; } 4991 if test "$supported" = "yes" ; then 4992 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 4993 found="yes" 4994 fi 4995 fi 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011xorg_testset_save_CFLAGS="$CFLAGS" 5012 5013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5018 $as_echo_n "(cached) " >&6 5019else 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5021/* end confdefs.h. */ 5022int i; 5023_ACEOF 5024if ac_fn_c_try_compile "$LINENO"; then : 5025 xorg_cv_cc_flag_unknown_warning_option=yes 5026else 5027 xorg_cv_cc_flag_unknown_warning_option=no 5028fi 5029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5030fi 5031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5034 CFLAGS="$xorg_testset_save_CFLAGS" 5035fi 5036 5037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5040 fi 5041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049int i; 5050_ACEOF 5051if ac_fn_c_try_compile "$LINENO"; then : 5052 xorg_cv_cc_flag_unused_command_line_argument=yes 5053else 5054 xorg_cv_cc_flag_unused_command_line_argument=no 5055fi 5056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5057fi 5058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5061 CFLAGS="$xorg_testset_save_CFLAGS" 5062fi 5063 5064found="no" 5065 5066 if test $found = "no" ; then 5067 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5069 fi 5070 5071 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5073 fi 5074 5075 CFLAGS="$CFLAGS -Wmissing-declarations" 5076 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5078$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5079 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5080 if eval \${$cacheid+:} false; then : 5081 $as_echo_n "(cached) " >&6 5082else 5083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5084/* end confdefs.h. */ 5085int i; 5086int 5087main () 5088{ 5089 5090 ; 5091 return 0; 5092} 5093_ACEOF 5094if ac_fn_c_try_link "$LINENO"; then : 5095 eval $cacheid=yes 5096else 5097 eval $cacheid=no 5098fi 5099rm -f core conftest.err conftest.$ac_objext \ 5100 conftest$ac_exeext conftest.$ac_ext 5101fi 5102 5103 5104 CFLAGS="$xorg_testset_save_CFLAGS" 5105 5106 eval supported=\$$cacheid 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5108$as_echo "$supported" >&6; } 5109 if test "$supported" = "yes" ; then 5110 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5111 found="yes" 5112 fi 5113 fi 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129xorg_testset_save_CFLAGS="$CFLAGS" 5130 5131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5136 $as_echo_n "(cached) " >&6 5137else 5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5139/* end confdefs.h. */ 5140int i; 5141_ACEOF 5142if ac_fn_c_try_compile "$LINENO"; then : 5143 xorg_cv_cc_flag_unknown_warning_option=yes 5144else 5145 xorg_cv_cc_flag_unknown_warning_option=no 5146fi 5147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5148fi 5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5152 CFLAGS="$xorg_testset_save_CFLAGS" 5153fi 5154 5155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5158 fi 5159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5163 $as_echo_n "(cached) " >&6 5164else 5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5166/* end confdefs.h. */ 5167int i; 5168_ACEOF 5169if ac_fn_c_try_compile "$LINENO"; then : 5170 xorg_cv_cc_flag_unused_command_line_argument=yes 5171else 5172 xorg_cv_cc_flag_unused_command_line_argument=no 5173fi 5174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5175fi 5176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5179 CFLAGS="$xorg_testset_save_CFLAGS" 5180fi 5181 5182found="no" 5183 5184 if test $found = "no" ; then 5185 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5187 fi 5188 5189 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5191 fi 5192 5193 CFLAGS="$CFLAGS -Wformat=2" 5194 5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5196$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5197 cacheid=xorg_cv_cc_flag__Wformat_2 5198 if eval \${$cacheid+:} false; then : 5199 $as_echo_n "(cached) " >&6 5200else 5201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5202/* end confdefs.h. */ 5203int i; 5204int 5205main () 5206{ 5207 5208 ; 5209 return 0; 5210} 5211_ACEOF 5212if ac_fn_c_try_link "$LINENO"; then : 5213 eval $cacheid=yes 5214else 5215 eval $cacheid=no 5216fi 5217rm -f core conftest.err conftest.$ac_objext \ 5218 conftest$ac_exeext conftest.$ac_ext 5219fi 5220 5221 5222 CFLAGS="$xorg_testset_save_CFLAGS" 5223 5224 eval supported=\$$cacheid 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5226$as_echo "$supported" >&6; } 5227 if test "$supported" = "yes" ; then 5228 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5229 found="yes" 5230 fi 5231 fi 5232 5233 if test $found = "no" ; then 5234 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5235 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5236 fi 5237 5238 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5240 fi 5241 5242 CFLAGS="$CFLAGS -Wformat" 5243 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5245$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5246 cacheid=xorg_cv_cc_flag__Wformat 5247 if eval \${$cacheid+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249else 5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5251/* end confdefs.h. */ 5252int i; 5253int 5254main () 5255{ 5256 5257 ; 5258 return 0; 5259} 5260_ACEOF 5261if ac_fn_c_try_link "$LINENO"; then : 5262 eval $cacheid=yes 5263else 5264 eval $cacheid=no 5265fi 5266rm -f core conftest.err conftest.$ac_objext \ 5267 conftest$ac_exeext conftest.$ac_ext 5268fi 5269 5270 5271 CFLAGS="$xorg_testset_save_CFLAGS" 5272 5273 eval supported=\$$cacheid 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5275$as_echo "$supported" >&6; } 5276 if test "$supported" = "yes" ; then 5277 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5278 found="yes" 5279 fi 5280 fi 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298xorg_testset_save_CFLAGS="$CFLAGS" 5299 5300if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5303$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5304if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306else 5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5308/* end confdefs.h. */ 5309int i; 5310_ACEOF 5311if ac_fn_c_try_compile "$LINENO"; then : 5312 xorg_cv_cc_flag_unknown_warning_option=yes 5313else 5314 xorg_cv_cc_flag_unknown_warning_option=no 5315fi 5316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5317fi 5318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5319$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5321 CFLAGS="$xorg_testset_save_CFLAGS" 5322fi 5323 5324if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5327 fi 5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5330$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5331if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5332 $as_echo_n "(cached) " >&6 5333else 5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5335/* end confdefs.h. */ 5336int i; 5337_ACEOF 5338if ac_fn_c_try_compile "$LINENO"; then : 5339 xorg_cv_cc_flag_unused_command_line_argument=yes 5340else 5341 xorg_cv_cc_flag_unused_command_line_argument=no 5342fi 5343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5344fi 5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5346$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5347 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5348 CFLAGS="$xorg_testset_save_CFLAGS" 5349fi 5350 5351found="no" 5352 5353 if test $found = "no" ; then 5354 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5355 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5356 fi 5357 5358 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5360 fi 5361 5362 CFLAGS="$CFLAGS -Wstrict-prototypes" 5363 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5365$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5366 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5367 if eval \${$cacheid+:} false; then : 5368 $as_echo_n "(cached) " >&6 5369else 5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5371/* end confdefs.h. */ 5372int i; 5373int 5374main () 5375{ 5376 5377 ; 5378 return 0; 5379} 5380_ACEOF 5381if ac_fn_c_try_link "$LINENO"; then : 5382 eval $cacheid=yes 5383else 5384 eval $cacheid=no 5385fi 5386rm -f core conftest.err conftest.$ac_objext \ 5387 conftest$ac_exeext conftest.$ac_ext 5388fi 5389 5390 5391 CFLAGS="$xorg_testset_save_CFLAGS" 5392 5393 eval supported=\$$cacheid 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5395$as_echo "$supported" >&6; } 5396 if test "$supported" = "yes" ; then 5397 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5398 found="yes" 5399 fi 5400 fi 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416xorg_testset_save_CFLAGS="$CFLAGS" 5417 5418if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5421$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5422if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5423 $as_echo_n "(cached) " >&6 5424else 5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5426/* end confdefs.h. */ 5427int i; 5428_ACEOF 5429if ac_fn_c_try_compile "$LINENO"; then : 5430 xorg_cv_cc_flag_unknown_warning_option=yes 5431else 5432 xorg_cv_cc_flag_unknown_warning_option=no 5433fi 5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5435fi 5436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5437$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5439 CFLAGS="$xorg_testset_save_CFLAGS" 5440fi 5441 5442if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5445 fi 5446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5448$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5449if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5450 $as_echo_n "(cached) " >&6 5451else 5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5453/* end confdefs.h. */ 5454int i; 5455_ACEOF 5456if ac_fn_c_try_compile "$LINENO"; then : 5457 xorg_cv_cc_flag_unused_command_line_argument=yes 5458else 5459 xorg_cv_cc_flag_unused_command_line_argument=no 5460fi 5461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5462fi 5463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5464$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5465 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5466 CFLAGS="$xorg_testset_save_CFLAGS" 5467fi 5468 5469found="no" 5470 5471 if test $found = "no" ; then 5472 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5473 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5474 fi 5475 5476 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5478 fi 5479 5480 CFLAGS="$CFLAGS -Wmissing-prototypes" 5481 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5483$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5484 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5485 if eval \${$cacheid+:} false; then : 5486 $as_echo_n "(cached) " >&6 5487else 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489/* end confdefs.h. */ 5490int i; 5491int 5492main () 5493{ 5494 5495 ; 5496 return 0; 5497} 5498_ACEOF 5499if ac_fn_c_try_link "$LINENO"; then : 5500 eval $cacheid=yes 5501else 5502 eval $cacheid=no 5503fi 5504rm -f core conftest.err conftest.$ac_objext \ 5505 conftest$ac_exeext conftest.$ac_ext 5506fi 5507 5508 5509 CFLAGS="$xorg_testset_save_CFLAGS" 5510 5511 eval supported=\$$cacheid 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5513$as_echo "$supported" >&6; } 5514 if test "$supported" = "yes" ; then 5515 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5516 found="yes" 5517 fi 5518 fi 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534xorg_testset_save_CFLAGS="$CFLAGS" 5535 5536if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5539$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5540if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5541 $as_echo_n "(cached) " >&6 5542else 5543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5544/* end confdefs.h. */ 5545int i; 5546_ACEOF 5547if ac_fn_c_try_compile "$LINENO"; then : 5548 xorg_cv_cc_flag_unknown_warning_option=yes 5549else 5550 xorg_cv_cc_flag_unknown_warning_option=no 5551fi 5552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5553fi 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5555$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5557 CFLAGS="$xorg_testset_save_CFLAGS" 5558fi 5559 5560if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5563 fi 5564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5566$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5567if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5568 $as_echo_n "(cached) " >&6 5569else 5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5571/* end confdefs.h. */ 5572int i; 5573_ACEOF 5574if ac_fn_c_try_compile "$LINENO"; then : 5575 xorg_cv_cc_flag_unused_command_line_argument=yes 5576else 5577 xorg_cv_cc_flag_unused_command_line_argument=no 5578fi 5579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5580fi 5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5582$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5584 CFLAGS="$xorg_testset_save_CFLAGS" 5585fi 5586 5587found="no" 5588 5589 if test $found = "no" ; then 5590 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5592 fi 5593 5594 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5596 fi 5597 5598 CFLAGS="$CFLAGS -Wnested-externs" 5599 5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5601$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5602 cacheid=xorg_cv_cc_flag__Wnested_externs 5603 if eval \${$cacheid+:} false; then : 5604 $as_echo_n "(cached) " >&6 5605else 5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5607/* end confdefs.h. */ 5608int i; 5609int 5610main () 5611{ 5612 5613 ; 5614 return 0; 5615} 5616_ACEOF 5617if ac_fn_c_try_link "$LINENO"; then : 5618 eval $cacheid=yes 5619else 5620 eval $cacheid=no 5621fi 5622rm -f core conftest.err conftest.$ac_objext \ 5623 conftest$ac_exeext conftest.$ac_ext 5624fi 5625 5626 5627 CFLAGS="$xorg_testset_save_CFLAGS" 5628 5629 eval supported=\$$cacheid 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5631$as_echo "$supported" >&6; } 5632 if test "$supported" = "yes" ; then 5633 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5634 found="yes" 5635 fi 5636 fi 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652xorg_testset_save_CFLAGS="$CFLAGS" 5653 5654if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5657$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5658if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660else 5661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5662/* end confdefs.h. */ 5663int i; 5664_ACEOF 5665if ac_fn_c_try_compile "$LINENO"; then : 5666 xorg_cv_cc_flag_unknown_warning_option=yes 5667else 5668 xorg_cv_cc_flag_unknown_warning_option=no 5669fi 5670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5671fi 5672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5673$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5675 CFLAGS="$xorg_testset_save_CFLAGS" 5676fi 5677 5678if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5681 fi 5682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5684$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5685if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5686 $as_echo_n "(cached) " >&6 5687else 5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5689/* end confdefs.h. */ 5690int i; 5691_ACEOF 5692if ac_fn_c_try_compile "$LINENO"; then : 5693 xorg_cv_cc_flag_unused_command_line_argument=yes 5694else 5695 xorg_cv_cc_flag_unused_command_line_argument=no 5696fi 5697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5698fi 5699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5700$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5702 CFLAGS="$xorg_testset_save_CFLAGS" 5703fi 5704 5705found="no" 5706 5707 if test $found = "no" ; then 5708 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5710 fi 5711 5712 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5714 fi 5715 5716 CFLAGS="$CFLAGS -Wbad-function-cast" 5717 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5719$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5720 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5721 if eval \${$cacheid+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5725/* end confdefs.h. */ 5726int i; 5727int 5728main () 5729{ 5730 5731 ; 5732 return 0; 5733} 5734_ACEOF 5735if ac_fn_c_try_link "$LINENO"; then : 5736 eval $cacheid=yes 5737else 5738 eval $cacheid=no 5739fi 5740rm -f core conftest.err conftest.$ac_objext \ 5741 conftest$ac_exeext conftest.$ac_ext 5742fi 5743 5744 5745 CFLAGS="$xorg_testset_save_CFLAGS" 5746 5747 eval supported=\$$cacheid 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5749$as_echo "$supported" >&6; } 5750 if test "$supported" = "yes" ; then 5751 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5752 found="yes" 5753 fi 5754 fi 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770xorg_testset_save_CFLAGS="$CFLAGS" 5771 5772if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5775$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5776if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5777 $as_echo_n "(cached) " >&6 5778else 5779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5780/* end confdefs.h. */ 5781int i; 5782_ACEOF 5783if ac_fn_c_try_compile "$LINENO"; then : 5784 xorg_cv_cc_flag_unknown_warning_option=yes 5785else 5786 xorg_cv_cc_flag_unknown_warning_option=no 5787fi 5788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5789fi 5790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5791$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5793 CFLAGS="$xorg_testset_save_CFLAGS" 5794fi 5795 5796if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5799 fi 5800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5802$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5803if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5804 $as_echo_n "(cached) " >&6 5805else 5806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5807/* end confdefs.h. */ 5808int i; 5809_ACEOF 5810if ac_fn_c_try_compile "$LINENO"; then : 5811 xorg_cv_cc_flag_unused_command_line_argument=yes 5812else 5813 xorg_cv_cc_flag_unused_command_line_argument=no 5814fi 5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5816fi 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5818$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5820 CFLAGS="$xorg_testset_save_CFLAGS" 5821fi 5822 5823found="no" 5824 5825 if test $found = "no" ; then 5826 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5828 fi 5829 5830 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5832 fi 5833 5834 CFLAGS="$CFLAGS -Wold-style-definition" 5835 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5837$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5838 cacheid=xorg_cv_cc_flag__Wold_style_definition 5839 if eval \${$cacheid+:} false; then : 5840 $as_echo_n "(cached) " >&6 5841else 5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5843/* end confdefs.h. */ 5844int i; 5845int 5846main () 5847{ 5848 5849 ; 5850 return 0; 5851} 5852_ACEOF 5853if ac_fn_c_try_link "$LINENO"; then : 5854 eval $cacheid=yes 5855else 5856 eval $cacheid=no 5857fi 5858rm -f core conftest.err conftest.$ac_objext \ 5859 conftest$ac_exeext conftest.$ac_ext 5860fi 5861 5862 5863 CFLAGS="$xorg_testset_save_CFLAGS" 5864 5865 eval supported=\$$cacheid 5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5867$as_echo "$supported" >&6; } 5868 if test "$supported" = "yes" ; then 5869 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5870 found="yes" 5871 fi 5872 fi 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888xorg_testset_save_CFLAGS="$CFLAGS" 5889 5890if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5893$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5894if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5895 $as_echo_n "(cached) " >&6 5896else 5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5898/* end confdefs.h. */ 5899int i; 5900_ACEOF 5901if ac_fn_c_try_compile "$LINENO"; then : 5902 xorg_cv_cc_flag_unknown_warning_option=yes 5903else 5904 xorg_cv_cc_flag_unknown_warning_option=no 5905fi 5906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5907fi 5908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5909$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5910 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5911 CFLAGS="$xorg_testset_save_CFLAGS" 5912fi 5913 5914if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5917 fi 5918 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5920$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5921if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5922 $as_echo_n "(cached) " >&6 5923else 5924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5925/* end confdefs.h. */ 5926int i; 5927_ACEOF 5928if ac_fn_c_try_compile "$LINENO"; then : 5929 xorg_cv_cc_flag_unused_command_line_argument=yes 5930else 5931 xorg_cv_cc_flag_unused_command_line_argument=no 5932fi 5933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5934fi 5935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5936$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5937 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5938 CFLAGS="$xorg_testset_save_CFLAGS" 5939fi 5940 5941found="no" 5942 5943 if test $found = "no" ; then 5944 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 5945 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5946 fi 5947 5948 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 5949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5950 fi 5951 5952 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 5953 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 5955$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 5956 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 5957 if eval \${$cacheid+:} false; then : 5958 $as_echo_n "(cached) " >&6 5959else 5960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5961/* end confdefs.h. */ 5962int i; 5963int 5964main () 5965{ 5966 5967 ; 5968 return 0; 5969} 5970_ACEOF 5971if ac_fn_c_try_link "$LINENO"; then : 5972 eval $cacheid=yes 5973else 5974 eval $cacheid=no 5975fi 5976rm -f core conftest.err conftest.$ac_objext \ 5977 conftest$ac_exeext conftest.$ac_ext 5978fi 5979 5980 5981 CFLAGS="$xorg_testset_save_CFLAGS" 5982 5983 eval supported=\$$cacheid 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5985$as_echo "$supported" >&6; } 5986 if test "$supported" = "yes" ; then 5987 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 5988 found="yes" 5989 fi 5990 fi 5991 5992 5993 5994 5995 5996# This chunk adds additional warnings that could catch undesired effects. 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010xorg_testset_save_CFLAGS="$CFLAGS" 6011 6012if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6013 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6015$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6016if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6017 $as_echo_n "(cached) " >&6 6018else 6019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6020/* end confdefs.h. */ 6021int i; 6022_ACEOF 6023if ac_fn_c_try_compile "$LINENO"; then : 6024 xorg_cv_cc_flag_unknown_warning_option=yes 6025else 6026 xorg_cv_cc_flag_unknown_warning_option=no 6027fi 6028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6029fi 6030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6031$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6033 CFLAGS="$xorg_testset_save_CFLAGS" 6034fi 6035 6036if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6038 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6039 fi 6040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6042$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6043if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6044 $as_echo_n "(cached) " >&6 6045else 6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6047/* end confdefs.h. */ 6048int i; 6049_ACEOF 6050if ac_fn_c_try_compile "$LINENO"; then : 6051 xorg_cv_cc_flag_unused_command_line_argument=yes 6052else 6053 xorg_cv_cc_flag_unused_command_line_argument=no 6054fi 6055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6056fi 6057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6058$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6060 CFLAGS="$xorg_testset_save_CFLAGS" 6061fi 6062 6063found="no" 6064 6065 if test $found = "no" ; then 6066 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6068 fi 6069 6070 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6072 fi 6073 6074 CFLAGS="$CFLAGS -Wunused" 6075 6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6077$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6078 cacheid=xorg_cv_cc_flag__Wunused 6079 if eval \${$cacheid+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084int i; 6085int 6086main () 6087{ 6088 6089 ; 6090 return 0; 6091} 6092_ACEOF 6093if ac_fn_c_try_link "$LINENO"; then : 6094 eval $cacheid=yes 6095else 6096 eval $cacheid=no 6097fi 6098rm -f core conftest.err conftest.$ac_objext \ 6099 conftest$ac_exeext conftest.$ac_ext 6100fi 6101 6102 6103 CFLAGS="$xorg_testset_save_CFLAGS" 6104 6105 eval supported=\$$cacheid 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6107$as_echo "$supported" >&6; } 6108 if test "$supported" = "yes" ; then 6109 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6110 found="yes" 6111 fi 6112 fi 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128xorg_testset_save_CFLAGS="$CFLAGS" 6129 6130if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6131 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6133$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6134if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6135 $as_echo_n "(cached) " >&6 6136else 6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138/* end confdefs.h. */ 6139int i; 6140_ACEOF 6141if ac_fn_c_try_compile "$LINENO"; then : 6142 xorg_cv_cc_flag_unknown_warning_option=yes 6143else 6144 xorg_cv_cc_flag_unknown_warning_option=no 6145fi 6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6147fi 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6149$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6150 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6151 CFLAGS="$xorg_testset_save_CFLAGS" 6152fi 6153 6154if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6157 fi 6158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6160$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6161if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6162 $as_echo_n "(cached) " >&6 6163else 6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6165/* end confdefs.h. */ 6166int i; 6167_ACEOF 6168if ac_fn_c_try_compile "$LINENO"; then : 6169 xorg_cv_cc_flag_unused_command_line_argument=yes 6170else 6171 xorg_cv_cc_flag_unused_command_line_argument=no 6172fi 6173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6174fi 6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6176$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6178 CFLAGS="$xorg_testset_save_CFLAGS" 6179fi 6180 6181found="no" 6182 6183 if test $found = "no" ; then 6184 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6186 fi 6187 6188 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6190 fi 6191 6192 CFLAGS="$CFLAGS -Wuninitialized" 6193 6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6195$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6196 cacheid=xorg_cv_cc_flag__Wuninitialized 6197 if eval \${$cacheid+:} false; then : 6198 $as_echo_n "(cached) " >&6 6199else 6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6201/* end confdefs.h. */ 6202int i; 6203int 6204main () 6205{ 6206 6207 ; 6208 return 0; 6209} 6210_ACEOF 6211if ac_fn_c_try_link "$LINENO"; then : 6212 eval $cacheid=yes 6213else 6214 eval $cacheid=no 6215fi 6216rm -f core conftest.err conftest.$ac_objext \ 6217 conftest$ac_exeext conftest.$ac_ext 6218fi 6219 6220 6221 CFLAGS="$xorg_testset_save_CFLAGS" 6222 6223 eval supported=\$$cacheid 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6225$as_echo "$supported" >&6; } 6226 if test "$supported" = "yes" ; then 6227 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6228 found="yes" 6229 fi 6230 fi 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246xorg_testset_save_CFLAGS="$CFLAGS" 6247 6248if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6249 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6251$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6252if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257int i; 6258_ACEOF 6259if ac_fn_c_try_compile "$LINENO"; then : 6260 xorg_cv_cc_flag_unknown_warning_option=yes 6261else 6262 xorg_cv_cc_flag_unknown_warning_option=no 6263fi 6264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6265fi 6266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6267$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6268 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6269 CFLAGS="$xorg_testset_save_CFLAGS" 6270fi 6271 6272if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6275 fi 6276 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6278$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6279if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6280 $as_echo_n "(cached) " >&6 6281else 6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6283/* end confdefs.h. */ 6284int i; 6285_ACEOF 6286if ac_fn_c_try_compile "$LINENO"; then : 6287 xorg_cv_cc_flag_unused_command_line_argument=yes 6288else 6289 xorg_cv_cc_flag_unused_command_line_argument=no 6290fi 6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6292fi 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6294$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6296 CFLAGS="$xorg_testset_save_CFLAGS" 6297fi 6298 6299found="no" 6300 6301 if test $found = "no" ; then 6302 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6304 fi 6305 6306 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6308 fi 6309 6310 CFLAGS="$CFLAGS -Wshadow" 6311 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6313$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6314 cacheid=xorg_cv_cc_flag__Wshadow 6315 if eval \${$cacheid+:} false; then : 6316 $as_echo_n "(cached) " >&6 6317else 6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6319/* end confdefs.h. */ 6320int i; 6321int 6322main () 6323{ 6324 6325 ; 6326 return 0; 6327} 6328_ACEOF 6329if ac_fn_c_try_link "$LINENO"; then : 6330 eval $cacheid=yes 6331else 6332 eval $cacheid=no 6333fi 6334rm -f core conftest.err conftest.$ac_objext \ 6335 conftest$ac_exeext conftest.$ac_ext 6336fi 6337 6338 6339 CFLAGS="$xorg_testset_save_CFLAGS" 6340 6341 eval supported=\$$cacheid 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6343$as_echo "$supported" >&6; } 6344 if test "$supported" = "yes" ; then 6345 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6346 found="yes" 6347 fi 6348 fi 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364xorg_testset_save_CFLAGS="$CFLAGS" 6365 6366if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6367 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6369$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6370if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6371 $as_echo_n "(cached) " >&6 6372else 6373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6374/* end confdefs.h. */ 6375int i; 6376_ACEOF 6377if ac_fn_c_try_compile "$LINENO"; then : 6378 xorg_cv_cc_flag_unknown_warning_option=yes 6379else 6380 xorg_cv_cc_flag_unknown_warning_option=no 6381fi 6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6383fi 6384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6385$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6387 CFLAGS="$xorg_testset_save_CFLAGS" 6388fi 6389 6390if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6392 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6393 fi 6394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6396$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6397if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402int i; 6403_ACEOF 6404if ac_fn_c_try_compile "$LINENO"; then : 6405 xorg_cv_cc_flag_unused_command_line_argument=yes 6406else 6407 xorg_cv_cc_flag_unused_command_line_argument=no 6408fi 6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6410fi 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6412$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6413 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6414 CFLAGS="$xorg_testset_save_CFLAGS" 6415fi 6416 6417found="no" 6418 6419 if test $found = "no" ; then 6420 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6421 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6422 fi 6423 6424 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6426 fi 6427 6428 CFLAGS="$CFLAGS -Wcast-qual" 6429 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5 6431$as_echo_n "checking if $CC supports -Wcast-qual... " >&6; } 6432 cacheid=xorg_cv_cc_flag__Wcast_qual 6433 if eval \${$cacheid+:} false; then : 6434 $as_echo_n "(cached) " >&6 6435else 6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6437/* end confdefs.h. */ 6438int i; 6439int 6440main () 6441{ 6442 6443 ; 6444 return 0; 6445} 6446_ACEOF 6447if ac_fn_c_try_link "$LINENO"; then : 6448 eval $cacheid=yes 6449else 6450 eval $cacheid=no 6451fi 6452rm -f core conftest.err conftest.$ac_objext \ 6453 conftest$ac_exeext conftest.$ac_ext 6454fi 6455 6456 6457 CFLAGS="$xorg_testset_save_CFLAGS" 6458 6459 eval supported=\$$cacheid 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6461$as_echo "$supported" >&6; } 6462 if test "$supported" = "yes" ; then 6463 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual" 6464 found="yes" 6465 fi 6466 fi 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482xorg_testset_save_CFLAGS="$CFLAGS" 6483 6484if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6485 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6487$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6488if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490else 6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6492/* end confdefs.h. */ 6493int i; 6494_ACEOF 6495if ac_fn_c_try_compile "$LINENO"; then : 6496 xorg_cv_cc_flag_unknown_warning_option=yes 6497else 6498 xorg_cv_cc_flag_unknown_warning_option=no 6499fi 6500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6501fi 6502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6503$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6505 CFLAGS="$xorg_testset_save_CFLAGS" 6506fi 6507 6508if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6511 fi 6512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6514$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6515if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6516 $as_echo_n "(cached) " >&6 6517else 6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6519/* end confdefs.h. */ 6520int i; 6521_ACEOF 6522if ac_fn_c_try_compile "$LINENO"; then : 6523 xorg_cv_cc_flag_unused_command_line_argument=yes 6524else 6525 xorg_cv_cc_flag_unused_command_line_argument=no 6526fi 6527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6528fi 6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6530$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6532 CFLAGS="$xorg_testset_save_CFLAGS" 6533fi 6534 6535found="no" 6536 6537 if test $found = "no" ; then 6538 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6539 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6540 fi 6541 6542 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6544 fi 6545 6546 CFLAGS="$CFLAGS -Wmissing-noreturn" 6547 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6549$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6550 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6551 if eval \${$cacheid+:} false; then : 6552 $as_echo_n "(cached) " >&6 6553else 6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6555/* end confdefs.h. */ 6556int i; 6557int 6558main () 6559{ 6560 6561 ; 6562 return 0; 6563} 6564_ACEOF 6565if ac_fn_c_try_link "$LINENO"; then : 6566 eval $cacheid=yes 6567else 6568 eval $cacheid=no 6569fi 6570rm -f core conftest.err conftest.$ac_objext \ 6571 conftest$ac_exeext conftest.$ac_ext 6572fi 6573 6574 6575 CFLAGS="$xorg_testset_save_CFLAGS" 6576 6577 eval supported=\$$cacheid 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6579$as_echo "$supported" >&6; } 6580 if test "$supported" = "yes" ; then 6581 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6582 found="yes" 6583 fi 6584 fi 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600xorg_testset_save_CFLAGS="$CFLAGS" 6601 6602if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6605$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6606if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608else 6609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6610/* end confdefs.h. */ 6611int i; 6612_ACEOF 6613if ac_fn_c_try_compile "$LINENO"; then : 6614 xorg_cv_cc_flag_unknown_warning_option=yes 6615else 6616 xorg_cv_cc_flag_unknown_warning_option=no 6617fi 6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6619fi 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6621$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6622 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6623 CFLAGS="$xorg_testset_save_CFLAGS" 6624fi 6625 6626if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6629 fi 6630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6632$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6633if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6634 $as_echo_n "(cached) " >&6 6635else 6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6637/* end confdefs.h. */ 6638int i; 6639_ACEOF 6640if ac_fn_c_try_compile "$LINENO"; then : 6641 xorg_cv_cc_flag_unused_command_line_argument=yes 6642else 6643 xorg_cv_cc_flag_unused_command_line_argument=no 6644fi 6645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6646fi 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6648$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6649 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6650 CFLAGS="$xorg_testset_save_CFLAGS" 6651fi 6652 6653found="no" 6654 6655 if test $found = "no" ; then 6656 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6658 fi 6659 6660 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6662 fi 6663 6664 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6665 6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6667$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6668 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6669 if eval \${$cacheid+:} false; then : 6670 $as_echo_n "(cached) " >&6 6671else 6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6673/* end confdefs.h. */ 6674int i; 6675int 6676main () 6677{ 6678 6679 ; 6680 return 0; 6681} 6682_ACEOF 6683if ac_fn_c_try_link "$LINENO"; then : 6684 eval $cacheid=yes 6685else 6686 eval $cacheid=no 6687fi 6688rm -f core conftest.err conftest.$ac_objext \ 6689 conftest$ac_exeext conftest.$ac_ext 6690fi 6691 6692 6693 CFLAGS="$xorg_testset_save_CFLAGS" 6694 6695 eval supported=\$$cacheid 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6697$as_echo "$supported" >&6; } 6698 if test "$supported" = "yes" ; then 6699 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6700 found="yes" 6701 fi 6702 fi 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718xorg_testset_save_CFLAGS="$CFLAGS" 6719 6720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6728/* end confdefs.h. */ 6729int i; 6730_ACEOF 6731if ac_fn_c_try_compile "$LINENO"; then : 6732 xorg_cv_cc_flag_unknown_warning_option=yes 6733else 6734 xorg_cv_cc_flag_unknown_warning_option=no 6735fi 6736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6737fi 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6741 CFLAGS="$xorg_testset_save_CFLAGS" 6742fi 6743 6744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6747 fi 6748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6752 $as_echo_n "(cached) " >&6 6753else 6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6755/* end confdefs.h. */ 6756int i; 6757_ACEOF 6758if ac_fn_c_try_compile "$LINENO"; then : 6759 xorg_cv_cc_flag_unused_command_line_argument=yes 6760else 6761 xorg_cv_cc_flag_unused_command_line_argument=no 6762fi 6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6764fi 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6768 CFLAGS="$xorg_testset_save_CFLAGS" 6769fi 6770 6771found="no" 6772 6773 if test $found = "no" ; then 6774 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6776 fi 6777 6778 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6780 fi 6781 6782 CFLAGS="$CFLAGS -Wredundant-decls" 6783 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6785$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6786 cacheid=xorg_cv_cc_flag__Wredundant_decls 6787 if eval \${$cacheid+:} false; then : 6788 $as_echo_n "(cached) " >&6 6789else 6790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6791/* end confdefs.h. */ 6792int i; 6793int 6794main () 6795{ 6796 6797 ; 6798 return 0; 6799} 6800_ACEOF 6801if ac_fn_c_try_link "$LINENO"; then : 6802 eval $cacheid=yes 6803else 6804 eval $cacheid=no 6805fi 6806rm -f core conftest.err conftest.$ac_objext \ 6807 conftest$ac_exeext conftest.$ac_ext 6808fi 6809 6810 6811 CFLAGS="$xorg_testset_save_CFLAGS" 6812 6813 eval supported=\$$cacheid 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6815$as_echo "$supported" >&6; } 6816 if test "$supported" = "yes" ; then 6817 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6818 found="yes" 6819 fi 6820 fi 6821 6822 6823 6824# These are currently disabled because they are noisy. They will be enabled 6825# in the future once the codebase is sufficiently modernized to silence 6826# them. For now, I don't want them to drown out the other warnings. 6827# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op]) 6828# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6829# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6830 6831# Turn some warnings into errors, so we don't accidently get successful builds 6832# when there are problems that should be fixed. 6833 6834if test "x$SELECTIVE_WERROR" = "xyes" ; then 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848xorg_testset_save_CFLAGS="$CFLAGS" 6849 6850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859int i; 6860_ACEOF 6861if ac_fn_c_try_compile "$LINENO"; then : 6862 xorg_cv_cc_flag_unknown_warning_option=yes 6863else 6864 xorg_cv_cc_flag_unknown_warning_option=no 6865fi 6866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6867fi 6868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6871 CFLAGS="$xorg_testset_save_CFLAGS" 6872fi 6873 6874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6877 fi 6878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6882 $as_echo_n "(cached) " >&6 6883else 6884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6885/* end confdefs.h. */ 6886int i; 6887_ACEOF 6888if ac_fn_c_try_compile "$LINENO"; then : 6889 xorg_cv_cc_flag_unused_command_line_argument=yes 6890else 6891 xorg_cv_cc_flag_unused_command_line_argument=no 6892fi 6893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6894fi 6895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6898 CFLAGS="$xorg_testset_save_CFLAGS" 6899fi 6900 6901found="no" 6902 6903 if test $found = "no" ; then 6904 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 fi 6907 6908 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6910 fi 6911 6912 CFLAGS="$CFLAGS -Werror=implicit" 6913 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6915$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6916 cacheid=xorg_cv_cc_flag__Werror_implicit 6917 if eval \${$cacheid+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919else 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921/* end confdefs.h. */ 6922int i; 6923int 6924main () 6925{ 6926 6927 ; 6928 return 0; 6929} 6930_ACEOF 6931if ac_fn_c_try_link "$LINENO"; then : 6932 eval $cacheid=yes 6933else 6934 eval $cacheid=no 6935fi 6936rm -f core conftest.err conftest.$ac_objext \ 6937 conftest$ac_exeext conftest.$ac_ext 6938fi 6939 6940 6941 CFLAGS="$xorg_testset_save_CFLAGS" 6942 6943 eval supported=\$$cacheid 6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6945$as_echo "$supported" >&6; } 6946 if test "$supported" = "yes" ; then 6947 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 6948 found="yes" 6949 fi 6950 fi 6951 6952 if test $found = "no" ; then 6953 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 6954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6955 fi 6956 6957 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 6958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6959 fi 6960 6961 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6962 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 6964$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 6965 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 6966 if eval \${$cacheid+:} false; then : 6967 $as_echo_n "(cached) " >&6 6968else 6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6970/* end confdefs.h. */ 6971int i; 6972int 6973main () 6974{ 6975 6976 ; 6977 return 0; 6978} 6979_ACEOF 6980if ac_fn_c_try_link "$LINENO"; then : 6981 eval $cacheid=yes 6982else 6983 eval $cacheid=no 6984fi 6985rm -f core conftest.err conftest.$ac_objext \ 6986 conftest$ac_exeext conftest.$ac_ext 6987fi 6988 6989 6990 CFLAGS="$xorg_testset_save_CFLAGS" 6991 6992 eval supported=\$$cacheid 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6994$as_echo "$supported" >&6; } 6995 if test "$supported" = "yes" ; then 6996 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 6997 found="yes" 6998 fi 6999 fi 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015xorg_testset_save_CFLAGS="$CFLAGS" 7016 7017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7022 $as_echo_n "(cached) " >&6 7023else 7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7025/* end confdefs.h. */ 7026int i; 7027_ACEOF 7028if ac_fn_c_try_compile "$LINENO"; then : 7029 xorg_cv_cc_flag_unknown_warning_option=yes 7030else 7031 xorg_cv_cc_flag_unknown_warning_option=no 7032fi 7033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7038 CFLAGS="$xorg_testset_save_CFLAGS" 7039fi 7040 7041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7044 fi 7045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7049 $as_echo_n "(cached) " >&6 7050else 7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7052/* end confdefs.h. */ 7053int i; 7054_ACEOF 7055if ac_fn_c_try_compile "$LINENO"; then : 7056 xorg_cv_cc_flag_unused_command_line_argument=yes 7057else 7058 xorg_cv_cc_flag_unused_command_line_argument=no 7059fi 7060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7061fi 7062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7065 CFLAGS="$xorg_testset_save_CFLAGS" 7066fi 7067 7068found="no" 7069 7070 if test $found = "no" ; then 7071 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7073 fi 7074 7075 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7077 fi 7078 7079 CFLAGS="$CFLAGS -Werror=nonnull" 7080 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7082$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7083 cacheid=xorg_cv_cc_flag__Werror_nonnull 7084 if eval \${$cacheid+:} false; then : 7085 $as_echo_n "(cached) " >&6 7086else 7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7088/* end confdefs.h. */ 7089int i; 7090int 7091main () 7092{ 7093 7094 ; 7095 return 0; 7096} 7097_ACEOF 7098if ac_fn_c_try_link "$LINENO"; then : 7099 eval $cacheid=yes 7100else 7101 eval $cacheid=no 7102fi 7103rm -f core conftest.err conftest.$ac_objext \ 7104 conftest$ac_exeext conftest.$ac_ext 7105fi 7106 7107 7108 CFLAGS="$xorg_testset_save_CFLAGS" 7109 7110 eval supported=\$$cacheid 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7112$as_echo "$supported" >&6; } 7113 if test "$supported" = "yes" ; then 7114 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7115 found="yes" 7116 fi 7117 fi 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133xorg_testset_save_CFLAGS="$CFLAGS" 7134 7135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7140 $as_echo_n "(cached) " >&6 7141else 7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7143/* end confdefs.h. */ 7144int i; 7145_ACEOF 7146if ac_fn_c_try_compile "$LINENO"; then : 7147 xorg_cv_cc_flag_unknown_warning_option=yes 7148else 7149 xorg_cv_cc_flag_unknown_warning_option=no 7150fi 7151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7152fi 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7156 CFLAGS="$xorg_testset_save_CFLAGS" 7157fi 7158 7159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7162 fi 7163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7167 $as_echo_n "(cached) " >&6 7168else 7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7170/* end confdefs.h. */ 7171int i; 7172_ACEOF 7173if ac_fn_c_try_compile "$LINENO"; then : 7174 xorg_cv_cc_flag_unused_command_line_argument=yes 7175else 7176 xorg_cv_cc_flag_unused_command_line_argument=no 7177fi 7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7179fi 7180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7183 CFLAGS="$xorg_testset_save_CFLAGS" 7184fi 7185 7186found="no" 7187 7188 if test $found = "no" ; then 7189 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7191 fi 7192 7193 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7195 fi 7196 7197 CFLAGS="$CFLAGS -Werror=init-self" 7198 7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7200$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7201 cacheid=xorg_cv_cc_flag__Werror_init_self 7202 if eval \${$cacheid+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204else 7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7206/* end confdefs.h. */ 7207int i; 7208int 7209main () 7210{ 7211 7212 ; 7213 return 0; 7214} 7215_ACEOF 7216if ac_fn_c_try_link "$LINENO"; then : 7217 eval $cacheid=yes 7218else 7219 eval $cacheid=no 7220fi 7221rm -f core conftest.err conftest.$ac_objext \ 7222 conftest$ac_exeext conftest.$ac_ext 7223fi 7224 7225 7226 CFLAGS="$xorg_testset_save_CFLAGS" 7227 7228 eval supported=\$$cacheid 7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7230$as_echo "$supported" >&6; } 7231 if test "$supported" = "yes" ; then 7232 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7233 found="yes" 7234 fi 7235 fi 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251xorg_testset_save_CFLAGS="$CFLAGS" 7252 7253if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7254 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7256$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7257if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7258 $as_echo_n "(cached) " >&6 7259else 7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7261/* end confdefs.h. */ 7262int i; 7263_ACEOF 7264if ac_fn_c_try_compile "$LINENO"; then : 7265 xorg_cv_cc_flag_unknown_warning_option=yes 7266else 7267 xorg_cv_cc_flag_unknown_warning_option=no 7268fi 7269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7270fi 7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7272$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7274 CFLAGS="$xorg_testset_save_CFLAGS" 7275fi 7276 7277if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7280 fi 7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7283$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7284if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7288/* end confdefs.h. */ 7289int i; 7290_ACEOF 7291if ac_fn_c_try_compile "$LINENO"; then : 7292 xorg_cv_cc_flag_unused_command_line_argument=yes 7293else 7294 xorg_cv_cc_flag_unused_command_line_argument=no 7295fi 7296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7297fi 7298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7299$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7301 CFLAGS="$xorg_testset_save_CFLAGS" 7302fi 7303 7304found="no" 7305 7306 if test $found = "no" ; then 7307 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7308 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7309 fi 7310 7311 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7313 fi 7314 7315 CFLAGS="$CFLAGS -Werror=main" 7316 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7318$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7319 cacheid=xorg_cv_cc_flag__Werror_main 7320 if eval \${$cacheid+:} false; then : 7321 $as_echo_n "(cached) " >&6 7322else 7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7324/* end confdefs.h. */ 7325int i; 7326int 7327main () 7328{ 7329 7330 ; 7331 return 0; 7332} 7333_ACEOF 7334if ac_fn_c_try_link "$LINENO"; then : 7335 eval $cacheid=yes 7336else 7337 eval $cacheid=no 7338fi 7339rm -f core conftest.err conftest.$ac_objext \ 7340 conftest$ac_exeext conftest.$ac_ext 7341fi 7342 7343 7344 CFLAGS="$xorg_testset_save_CFLAGS" 7345 7346 eval supported=\$$cacheid 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7348$as_echo "$supported" >&6; } 7349 if test "$supported" = "yes" ; then 7350 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7351 found="yes" 7352 fi 7353 fi 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369xorg_testset_save_CFLAGS="$CFLAGS" 7370 7371if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7372 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7374$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7375if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7376 $as_echo_n "(cached) " >&6 7377else 7378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7379/* end confdefs.h. */ 7380int i; 7381_ACEOF 7382if ac_fn_c_try_compile "$LINENO"; then : 7383 xorg_cv_cc_flag_unknown_warning_option=yes 7384else 7385 xorg_cv_cc_flag_unknown_warning_option=no 7386fi 7387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7388fi 7389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7390$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7392 CFLAGS="$xorg_testset_save_CFLAGS" 7393fi 7394 7395if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7398 fi 7399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7401$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7402if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7403 $as_echo_n "(cached) " >&6 7404else 7405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7406/* end confdefs.h. */ 7407int i; 7408_ACEOF 7409if ac_fn_c_try_compile "$LINENO"; then : 7410 xorg_cv_cc_flag_unused_command_line_argument=yes 7411else 7412 xorg_cv_cc_flag_unused_command_line_argument=no 7413fi 7414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7415fi 7416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7417$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7419 CFLAGS="$xorg_testset_save_CFLAGS" 7420fi 7421 7422found="no" 7423 7424 if test $found = "no" ; then 7425 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7426 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7427 fi 7428 7429 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7431 fi 7432 7433 CFLAGS="$CFLAGS -Werror=missing-braces" 7434 7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7436$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7437 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7438 if eval \${$cacheid+:} false; then : 7439 $as_echo_n "(cached) " >&6 7440else 7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443int i; 7444int 7445main () 7446{ 7447 7448 ; 7449 return 0; 7450} 7451_ACEOF 7452if ac_fn_c_try_link "$LINENO"; then : 7453 eval $cacheid=yes 7454else 7455 eval $cacheid=no 7456fi 7457rm -f core conftest.err conftest.$ac_objext \ 7458 conftest$ac_exeext conftest.$ac_ext 7459fi 7460 7461 7462 CFLAGS="$xorg_testset_save_CFLAGS" 7463 7464 eval supported=\$$cacheid 7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7466$as_echo "$supported" >&6; } 7467 if test "$supported" = "yes" ; then 7468 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7469 found="yes" 7470 fi 7471 fi 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487xorg_testset_save_CFLAGS="$CFLAGS" 7488 7489if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7490 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7492$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7493if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7497/* end confdefs.h. */ 7498int i; 7499_ACEOF 7500if ac_fn_c_try_compile "$LINENO"; then : 7501 xorg_cv_cc_flag_unknown_warning_option=yes 7502else 7503 xorg_cv_cc_flag_unknown_warning_option=no 7504fi 7505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7506fi 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7508$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7510 CFLAGS="$xorg_testset_save_CFLAGS" 7511fi 7512 7513if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7515 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7516 fi 7517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7519$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7520if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7521 $as_echo_n "(cached) " >&6 7522else 7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7524/* end confdefs.h. */ 7525int i; 7526_ACEOF 7527if ac_fn_c_try_compile "$LINENO"; then : 7528 xorg_cv_cc_flag_unused_command_line_argument=yes 7529else 7530 xorg_cv_cc_flag_unused_command_line_argument=no 7531fi 7532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7533fi 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7535$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7537 CFLAGS="$xorg_testset_save_CFLAGS" 7538fi 7539 7540found="no" 7541 7542 if test $found = "no" ; then 7543 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7544 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7545 fi 7546 7547 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7549 fi 7550 7551 CFLAGS="$CFLAGS -Werror=sequence-point" 7552 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7554$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7555 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7556 if eval \${$cacheid+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7560/* end confdefs.h. */ 7561int i; 7562int 7563main () 7564{ 7565 7566 ; 7567 return 0; 7568} 7569_ACEOF 7570if ac_fn_c_try_link "$LINENO"; then : 7571 eval $cacheid=yes 7572else 7573 eval $cacheid=no 7574fi 7575rm -f core conftest.err conftest.$ac_objext \ 7576 conftest$ac_exeext conftest.$ac_ext 7577fi 7578 7579 7580 CFLAGS="$xorg_testset_save_CFLAGS" 7581 7582 eval supported=\$$cacheid 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7584$as_echo "$supported" >&6; } 7585 if test "$supported" = "yes" ; then 7586 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7587 found="yes" 7588 fi 7589 fi 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605xorg_testset_save_CFLAGS="$CFLAGS" 7606 7607if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7608 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7610$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7611if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7612 $as_echo_n "(cached) " >&6 7613else 7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7615/* end confdefs.h. */ 7616int i; 7617_ACEOF 7618if ac_fn_c_try_compile "$LINENO"; then : 7619 xorg_cv_cc_flag_unknown_warning_option=yes 7620else 7621 xorg_cv_cc_flag_unknown_warning_option=no 7622fi 7623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7624fi 7625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7626$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7628 CFLAGS="$xorg_testset_save_CFLAGS" 7629fi 7630 7631if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7633 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7634 fi 7635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7637$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7638if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7639 $as_echo_n "(cached) " >&6 7640else 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643int i; 7644_ACEOF 7645if ac_fn_c_try_compile "$LINENO"; then : 7646 xorg_cv_cc_flag_unused_command_line_argument=yes 7647else 7648 xorg_cv_cc_flag_unused_command_line_argument=no 7649fi 7650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7651fi 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7653$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7655 CFLAGS="$xorg_testset_save_CFLAGS" 7656fi 7657 7658found="no" 7659 7660 if test $found = "no" ; then 7661 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7663 fi 7664 7665 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7667 fi 7668 7669 CFLAGS="$CFLAGS -Werror=return-type" 7670 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7672$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7673 cacheid=xorg_cv_cc_flag__Werror_return_type 7674 if eval \${$cacheid+:} false; then : 7675 $as_echo_n "(cached) " >&6 7676else 7677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7678/* end confdefs.h. */ 7679int i; 7680int 7681main () 7682{ 7683 7684 ; 7685 return 0; 7686} 7687_ACEOF 7688if ac_fn_c_try_link "$LINENO"; then : 7689 eval $cacheid=yes 7690else 7691 eval $cacheid=no 7692fi 7693rm -f core conftest.err conftest.$ac_objext \ 7694 conftest$ac_exeext conftest.$ac_ext 7695fi 7696 7697 7698 CFLAGS="$xorg_testset_save_CFLAGS" 7699 7700 eval supported=\$$cacheid 7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7702$as_echo "$supported" >&6; } 7703 if test "$supported" = "yes" ; then 7704 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7705 found="yes" 7706 fi 7707 fi 7708 7709 if test $found = "no" ; then 7710 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7712 fi 7713 7714 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7716 fi 7717 7718 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7719 7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7721$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7722 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7723 if eval \${$cacheid+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7727/* end confdefs.h. */ 7728int i; 7729int 7730main () 7731{ 7732 7733 ; 7734 return 0; 7735} 7736_ACEOF 7737if ac_fn_c_try_link "$LINENO"; then : 7738 eval $cacheid=yes 7739else 7740 eval $cacheid=no 7741fi 7742rm -f core conftest.err conftest.$ac_objext \ 7743 conftest$ac_exeext conftest.$ac_ext 7744fi 7745 7746 7747 CFLAGS="$xorg_testset_save_CFLAGS" 7748 7749 eval supported=\$$cacheid 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7751$as_echo "$supported" >&6; } 7752 if test "$supported" = "yes" ; then 7753 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7754 found="yes" 7755 fi 7756 fi 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772xorg_testset_save_CFLAGS="$CFLAGS" 7773 7774if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7777$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7778if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7779 $as_echo_n "(cached) " >&6 7780else 7781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783int i; 7784_ACEOF 7785if ac_fn_c_try_compile "$LINENO"; then : 7786 xorg_cv_cc_flag_unknown_warning_option=yes 7787else 7788 xorg_cv_cc_flag_unknown_warning_option=no 7789fi 7790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7791fi 7792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7793$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7794 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7795 CFLAGS="$xorg_testset_save_CFLAGS" 7796fi 7797 7798if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7800 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7801 fi 7802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7804$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7805if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7809/* end confdefs.h. */ 7810int i; 7811_ACEOF 7812if ac_fn_c_try_compile "$LINENO"; then : 7813 xorg_cv_cc_flag_unused_command_line_argument=yes 7814else 7815 xorg_cv_cc_flag_unused_command_line_argument=no 7816fi 7817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7818fi 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7820$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7822 CFLAGS="$xorg_testset_save_CFLAGS" 7823fi 7824 7825found="no" 7826 7827 if test $found = "no" ; then 7828 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7830 fi 7831 7832 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7834 fi 7835 7836 CFLAGS="$CFLAGS -Werror=trigraphs" 7837 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7839$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7840 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7841 if eval \${$cacheid+:} false; then : 7842 $as_echo_n "(cached) " >&6 7843else 7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7845/* end confdefs.h. */ 7846int i; 7847int 7848main () 7849{ 7850 7851 ; 7852 return 0; 7853} 7854_ACEOF 7855if ac_fn_c_try_link "$LINENO"; then : 7856 eval $cacheid=yes 7857else 7858 eval $cacheid=no 7859fi 7860rm -f core conftest.err conftest.$ac_objext \ 7861 conftest$ac_exeext conftest.$ac_ext 7862fi 7863 7864 7865 CFLAGS="$xorg_testset_save_CFLAGS" 7866 7867 eval supported=\$$cacheid 7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7869$as_echo "$supported" >&6; } 7870 if test "$supported" = "yes" ; then 7871 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7872 found="yes" 7873 fi 7874 fi 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890xorg_testset_save_CFLAGS="$CFLAGS" 7891 7892if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7895$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7896if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7897 $as_echo_n "(cached) " >&6 7898else 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900/* end confdefs.h. */ 7901int i; 7902_ACEOF 7903if ac_fn_c_try_compile "$LINENO"; then : 7904 xorg_cv_cc_flag_unknown_warning_option=yes 7905else 7906 xorg_cv_cc_flag_unknown_warning_option=no 7907fi 7908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7909fi 7910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7911$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7913 CFLAGS="$xorg_testset_save_CFLAGS" 7914fi 7915 7916if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7918 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7919 fi 7920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7922$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7923if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7924 $as_echo_n "(cached) " >&6 7925else 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927/* end confdefs.h. */ 7928int i; 7929_ACEOF 7930if ac_fn_c_try_compile "$LINENO"; then : 7931 xorg_cv_cc_flag_unused_command_line_argument=yes 7932else 7933 xorg_cv_cc_flag_unused_command_line_argument=no 7934fi 7935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7936fi 7937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7938$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7940 CFLAGS="$xorg_testset_save_CFLAGS" 7941fi 7942 7943found="no" 7944 7945 if test $found = "no" ; then 7946 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 7947 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7948 fi 7949 7950 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 7951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7952 fi 7953 7954 CFLAGS="$CFLAGS -Werror=array-bounds" 7955 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 7957$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 7958 cacheid=xorg_cv_cc_flag__Werror_array_bounds 7959 if eval \${$cacheid+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961else 7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7963/* end confdefs.h. */ 7964int i; 7965int 7966main () 7967{ 7968 7969 ; 7970 return 0; 7971} 7972_ACEOF 7973if ac_fn_c_try_link "$LINENO"; then : 7974 eval $cacheid=yes 7975else 7976 eval $cacheid=no 7977fi 7978rm -f core conftest.err conftest.$ac_objext \ 7979 conftest$ac_exeext conftest.$ac_ext 7980fi 7981 7982 7983 CFLAGS="$xorg_testset_save_CFLAGS" 7984 7985 eval supported=\$$cacheid 7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7987$as_echo "$supported" >&6; } 7988 if test "$supported" = "yes" ; then 7989 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 7990 found="yes" 7991 fi 7992 fi 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008xorg_testset_save_CFLAGS="$CFLAGS" 8009 8010if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8013$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8014if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8018/* end confdefs.h. */ 8019int i; 8020_ACEOF 8021if ac_fn_c_try_compile "$LINENO"; then : 8022 xorg_cv_cc_flag_unknown_warning_option=yes 8023else 8024 xorg_cv_cc_flag_unknown_warning_option=no 8025fi 8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8027fi 8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8029$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8031 CFLAGS="$xorg_testset_save_CFLAGS" 8032fi 8033 8034if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8037 fi 8038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8040$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8041if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8042 $as_echo_n "(cached) " >&6 8043else 8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8045/* end confdefs.h. */ 8046int i; 8047_ACEOF 8048if ac_fn_c_try_compile "$LINENO"; then : 8049 xorg_cv_cc_flag_unused_command_line_argument=yes 8050else 8051 xorg_cv_cc_flag_unused_command_line_argument=no 8052fi 8053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8054fi 8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8056$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8058 CFLAGS="$xorg_testset_save_CFLAGS" 8059fi 8060 8061found="no" 8062 8063 if test $found = "no" ; then 8064 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8066 fi 8067 8068 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8070 fi 8071 8072 CFLAGS="$CFLAGS -Werror=write-strings" 8073 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8075$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8076 cacheid=xorg_cv_cc_flag__Werror_write_strings 8077 if eval \${$cacheid+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8081/* end confdefs.h. */ 8082int i; 8083int 8084main () 8085{ 8086 8087 ; 8088 return 0; 8089} 8090_ACEOF 8091if ac_fn_c_try_link "$LINENO"; then : 8092 eval $cacheid=yes 8093else 8094 eval $cacheid=no 8095fi 8096rm -f core conftest.err conftest.$ac_objext \ 8097 conftest$ac_exeext conftest.$ac_ext 8098fi 8099 8100 8101 CFLAGS="$xorg_testset_save_CFLAGS" 8102 8103 eval supported=\$$cacheid 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8105$as_echo "$supported" >&6; } 8106 if test "$supported" = "yes" ; then 8107 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8108 found="yes" 8109 fi 8110 fi 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126xorg_testset_save_CFLAGS="$CFLAGS" 8127 8128if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8131$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8132if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8133 $as_echo_n "(cached) " >&6 8134else 8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8136/* end confdefs.h. */ 8137int i; 8138_ACEOF 8139if ac_fn_c_try_compile "$LINENO"; then : 8140 xorg_cv_cc_flag_unknown_warning_option=yes 8141else 8142 xorg_cv_cc_flag_unknown_warning_option=no 8143fi 8144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8145fi 8146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8147$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8149 CFLAGS="$xorg_testset_save_CFLAGS" 8150fi 8151 8152if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8155 fi 8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8158$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8159if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8160 $as_echo_n "(cached) " >&6 8161else 8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8163/* end confdefs.h. */ 8164int i; 8165_ACEOF 8166if ac_fn_c_try_compile "$LINENO"; then : 8167 xorg_cv_cc_flag_unused_command_line_argument=yes 8168else 8169 xorg_cv_cc_flag_unused_command_line_argument=no 8170fi 8171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8172fi 8173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8174$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8176 CFLAGS="$xorg_testset_save_CFLAGS" 8177fi 8178 8179found="no" 8180 8181 if test $found = "no" ; then 8182 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8184 fi 8185 8186 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8188 fi 8189 8190 CFLAGS="$CFLAGS -Werror=address" 8191 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8193$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8194 cacheid=xorg_cv_cc_flag__Werror_address 8195 if eval \${$cacheid+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200int i; 8201int 8202main () 8203{ 8204 8205 ; 8206 return 0; 8207} 8208_ACEOF 8209if ac_fn_c_try_link "$LINENO"; then : 8210 eval $cacheid=yes 8211else 8212 eval $cacheid=no 8213fi 8214rm -f core conftest.err conftest.$ac_objext \ 8215 conftest$ac_exeext conftest.$ac_ext 8216fi 8217 8218 8219 CFLAGS="$xorg_testset_save_CFLAGS" 8220 8221 eval supported=\$$cacheid 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8223$as_echo "$supported" >&6; } 8224 if test "$supported" = "yes" ; then 8225 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8226 found="yes" 8227 fi 8228 fi 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244xorg_testset_save_CFLAGS="$CFLAGS" 8245 8246if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8249$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8250if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8254/* end confdefs.h. */ 8255int i; 8256_ACEOF 8257if ac_fn_c_try_compile "$LINENO"; then : 8258 xorg_cv_cc_flag_unknown_warning_option=yes 8259else 8260 xorg_cv_cc_flag_unknown_warning_option=no 8261fi 8262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8263fi 8264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8265$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8266 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8267 CFLAGS="$xorg_testset_save_CFLAGS" 8268fi 8269 8270if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8271 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8273 fi 8274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8276$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8277if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8278 $as_echo_n "(cached) " >&6 8279else 8280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8281/* end confdefs.h. */ 8282int i; 8283_ACEOF 8284if ac_fn_c_try_compile "$LINENO"; then : 8285 xorg_cv_cc_flag_unused_command_line_argument=yes 8286else 8287 xorg_cv_cc_flag_unused_command_line_argument=no 8288fi 8289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8290fi 8291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8292$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8294 CFLAGS="$xorg_testset_save_CFLAGS" 8295fi 8296 8297found="no" 8298 8299 if test $found = "no" ; then 8300 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8301 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8302 fi 8303 8304 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8306 fi 8307 8308 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8309 8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8311$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8312 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8313 if eval \${$cacheid+:} false; then : 8314 $as_echo_n "(cached) " >&6 8315else 8316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8317/* end confdefs.h. */ 8318int i; 8319int 8320main () 8321{ 8322 8323 ; 8324 return 0; 8325} 8326_ACEOF 8327if ac_fn_c_try_link "$LINENO"; then : 8328 eval $cacheid=yes 8329else 8330 eval $cacheid=no 8331fi 8332rm -f core conftest.err conftest.$ac_objext \ 8333 conftest$ac_exeext conftest.$ac_ext 8334fi 8335 8336 8337 CFLAGS="$xorg_testset_save_CFLAGS" 8338 8339 eval supported=\$$cacheid 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8341$as_echo "$supported" >&6; } 8342 if test "$supported" = "yes" ; then 8343 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8344 found="yes" 8345 fi 8346 fi 8347 8348 if test $found = "no" ; then 8349 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8350 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8351 fi 8352 8353 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8355 fi 8356 8357 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8358 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8360$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8361 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8362 if eval \${$cacheid+:} false; then : 8363 $as_echo_n "(cached) " >&6 8364else 8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8366/* end confdefs.h. */ 8367int i; 8368int 8369main () 8370{ 8371 8372 ; 8373 return 0; 8374} 8375_ACEOF 8376if ac_fn_c_try_link "$LINENO"; then : 8377 eval $cacheid=yes 8378else 8379 eval $cacheid=no 8380fi 8381rm -f core conftest.err conftest.$ac_objext \ 8382 conftest$ac_exeext conftest.$ac_ext 8383fi 8384 8385 8386 CFLAGS="$xorg_testset_save_CFLAGS" 8387 8388 eval supported=\$$cacheid 8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8390$as_echo "$supported" >&6; } 8391 if test "$supported" = "yes" ; then 8392 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8393 found="yes" 8394 fi 8395 fi 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411xorg_testset_save_CFLAGS="$CFLAGS" 8412 8413if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8416$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8417if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8418 $as_echo_n "(cached) " >&6 8419else 8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8421/* end confdefs.h. */ 8422int i; 8423_ACEOF 8424if ac_fn_c_try_compile "$LINENO"; then : 8425 xorg_cv_cc_flag_unknown_warning_option=yes 8426else 8427 xorg_cv_cc_flag_unknown_warning_option=no 8428fi 8429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8430fi 8431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8432$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8434 CFLAGS="$xorg_testset_save_CFLAGS" 8435fi 8436 8437if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8440 fi 8441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8443$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8444if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449int i; 8450_ACEOF 8451if ac_fn_c_try_compile "$LINENO"; then : 8452 xorg_cv_cc_flag_unused_command_line_argument=yes 8453else 8454 xorg_cv_cc_flag_unused_command_line_argument=no 8455fi 8456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8457fi 8458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8459$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8461 CFLAGS="$xorg_testset_save_CFLAGS" 8462fi 8463 8464found="no" 8465 8466 if test $found = "no" ; then 8467 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8469 fi 8470 8471 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8473 fi 8474 8475 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8476 8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8478$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8479 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8480 if eval \${$cacheid+:} false; then : 8481 $as_echo_n "(cached) " >&6 8482else 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485int i; 8486int 8487main () 8488{ 8489 8490 ; 8491 return 0; 8492} 8493_ACEOF 8494if ac_fn_c_try_link "$LINENO"; then : 8495 eval $cacheid=yes 8496else 8497 eval $cacheid=no 8498fi 8499rm -f core conftest.err conftest.$ac_objext \ 8500 conftest$ac_exeext conftest.$ac_ext 8501fi 8502 8503 8504 CFLAGS="$xorg_testset_save_CFLAGS" 8505 8506 eval supported=\$$cacheid 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8508$as_echo "$supported" >&6; } 8509 if test "$supported" = "yes" ; then 8510 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8511 found="yes" 8512 fi 8513 fi 8514 8515 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8516else 8517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8518$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532xorg_testset_save_CFLAGS="$CFLAGS" 8533 8534if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8537$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8538if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8539 $as_echo_n "(cached) " >&6 8540else 8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8542/* end confdefs.h. */ 8543int i; 8544_ACEOF 8545if ac_fn_c_try_compile "$LINENO"; then : 8546 xorg_cv_cc_flag_unknown_warning_option=yes 8547else 8548 xorg_cv_cc_flag_unknown_warning_option=no 8549fi 8550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8551fi 8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8553$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8554 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8555 CFLAGS="$xorg_testset_save_CFLAGS" 8556fi 8557 8558if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8559 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8560 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8561 fi 8562 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8564$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8565if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8566 $as_echo_n "(cached) " >&6 8567else 8568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8569/* end confdefs.h. */ 8570int i; 8571_ACEOF 8572if ac_fn_c_try_compile "$LINENO"; then : 8573 xorg_cv_cc_flag_unused_command_line_argument=yes 8574else 8575 xorg_cv_cc_flag_unused_command_line_argument=no 8576fi 8577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8578fi 8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8580$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8581 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8582 CFLAGS="$xorg_testset_save_CFLAGS" 8583fi 8584 8585found="no" 8586 8587 if test $found = "no" ; then 8588 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8589 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8590 fi 8591 8592 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8594 fi 8595 8596 CFLAGS="$CFLAGS -Wimplicit" 8597 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8599$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8600 cacheid=xorg_cv_cc_flag__Wimplicit 8601 if eval \${$cacheid+:} false; then : 8602 $as_echo_n "(cached) " >&6 8603else 8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8605/* end confdefs.h. */ 8606int i; 8607int 8608main () 8609{ 8610 8611 ; 8612 return 0; 8613} 8614_ACEOF 8615if ac_fn_c_try_link "$LINENO"; then : 8616 eval $cacheid=yes 8617else 8618 eval $cacheid=no 8619fi 8620rm -f core conftest.err conftest.$ac_objext \ 8621 conftest$ac_exeext conftest.$ac_ext 8622fi 8623 8624 8625 CFLAGS="$xorg_testset_save_CFLAGS" 8626 8627 eval supported=\$$cacheid 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8629$as_echo "$supported" >&6; } 8630 if test "$supported" = "yes" ; then 8631 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8632 found="yes" 8633 fi 8634 fi 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650xorg_testset_save_CFLAGS="$CFLAGS" 8651 8652if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8655$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8656if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8657 $as_echo_n "(cached) " >&6 8658else 8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8660/* end confdefs.h. */ 8661int i; 8662_ACEOF 8663if ac_fn_c_try_compile "$LINENO"; then : 8664 xorg_cv_cc_flag_unknown_warning_option=yes 8665else 8666 xorg_cv_cc_flag_unknown_warning_option=no 8667fi 8668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8669fi 8670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8671$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8672 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8673 CFLAGS="$xorg_testset_save_CFLAGS" 8674fi 8675 8676if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8679 fi 8680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8682$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8683if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8684 $as_echo_n "(cached) " >&6 8685else 8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8687/* end confdefs.h. */ 8688int i; 8689_ACEOF 8690if ac_fn_c_try_compile "$LINENO"; then : 8691 xorg_cv_cc_flag_unused_command_line_argument=yes 8692else 8693 xorg_cv_cc_flag_unused_command_line_argument=no 8694fi 8695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8696fi 8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8698$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8699 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8700 CFLAGS="$xorg_testset_save_CFLAGS" 8701fi 8702 8703found="no" 8704 8705 if test $found = "no" ; then 8706 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8707 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8708 fi 8709 8710 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8711 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8712 fi 8713 8714 CFLAGS="$CFLAGS -Wnonnull" 8715 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8717$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8718 cacheid=xorg_cv_cc_flag__Wnonnull 8719 if eval \${$cacheid+:} false; then : 8720 $as_echo_n "(cached) " >&6 8721else 8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8723/* end confdefs.h. */ 8724int i; 8725int 8726main () 8727{ 8728 8729 ; 8730 return 0; 8731} 8732_ACEOF 8733if ac_fn_c_try_link "$LINENO"; then : 8734 eval $cacheid=yes 8735else 8736 eval $cacheid=no 8737fi 8738rm -f core conftest.err conftest.$ac_objext \ 8739 conftest$ac_exeext conftest.$ac_ext 8740fi 8741 8742 8743 CFLAGS="$xorg_testset_save_CFLAGS" 8744 8745 eval supported=\$$cacheid 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8747$as_echo "$supported" >&6; } 8748 if test "$supported" = "yes" ; then 8749 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8750 found="yes" 8751 fi 8752 fi 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768xorg_testset_save_CFLAGS="$CFLAGS" 8769 8770if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8771 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8773$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8774if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8778/* end confdefs.h. */ 8779int i; 8780_ACEOF 8781if ac_fn_c_try_compile "$LINENO"; then : 8782 xorg_cv_cc_flag_unknown_warning_option=yes 8783else 8784 xorg_cv_cc_flag_unknown_warning_option=no 8785fi 8786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8787fi 8788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8789$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8790 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8791 CFLAGS="$xorg_testset_save_CFLAGS" 8792fi 8793 8794if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8796 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8797 fi 8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8800$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8801if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8802 $as_echo_n "(cached) " >&6 8803else 8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8805/* end confdefs.h. */ 8806int i; 8807_ACEOF 8808if ac_fn_c_try_compile "$LINENO"; then : 8809 xorg_cv_cc_flag_unused_command_line_argument=yes 8810else 8811 xorg_cv_cc_flag_unused_command_line_argument=no 8812fi 8813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8814fi 8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8816$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8817 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8818 CFLAGS="$xorg_testset_save_CFLAGS" 8819fi 8820 8821found="no" 8822 8823 if test $found = "no" ; then 8824 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8825 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8826 fi 8827 8828 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8829 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8830 fi 8831 8832 CFLAGS="$CFLAGS -Winit-self" 8833 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8835$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8836 cacheid=xorg_cv_cc_flag__Winit_self 8837 if eval \${$cacheid+:} false; then : 8838 $as_echo_n "(cached) " >&6 8839else 8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8841/* end confdefs.h. */ 8842int i; 8843int 8844main () 8845{ 8846 8847 ; 8848 return 0; 8849} 8850_ACEOF 8851if ac_fn_c_try_link "$LINENO"; then : 8852 eval $cacheid=yes 8853else 8854 eval $cacheid=no 8855fi 8856rm -f core conftest.err conftest.$ac_objext \ 8857 conftest$ac_exeext conftest.$ac_ext 8858fi 8859 8860 8861 CFLAGS="$xorg_testset_save_CFLAGS" 8862 8863 eval supported=\$$cacheid 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8865$as_echo "$supported" >&6; } 8866 if test "$supported" = "yes" ; then 8867 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8868 found="yes" 8869 fi 8870 fi 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886xorg_testset_save_CFLAGS="$CFLAGS" 8887 8888if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8889 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8891$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8892if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8893 $as_echo_n "(cached) " >&6 8894else 8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8896/* end confdefs.h. */ 8897int i; 8898_ACEOF 8899if ac_fn_c_try_compile "$LINENO"; then : 8900 xorg_cv_cc_flag_unknown_warning_option=yes 8901else 8902 xorg_cv_cc_flag_unknown_warning_option=no 8903fi 8904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8905fi 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8907$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8909 CFLAGS="$xorg_testset_save_CFLAGS" 8910fi 8911 8912if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8915 fi 8916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8918$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8919if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8920 $as_echo_n "(cached) " >&6 8921else 8922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8923/* end confdefs.h. */ 8924int i; 8925_ACEOF 8926if ac_fn_c_try_compile "$LINENO"; then : 8927 xorg_cv_cc_flag_unused_command_line_argument=yes 8928else 8929 xorg_cv_cc_flag_unused_command_line_argument=no 8930fi 8931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8932fi 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8934$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8936 CFLAGS="$xorg_testset_save_CFLAGS" 8937fi 8938 8939found="no" 8940 8941 if test $found = "no" ; then 8942 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 8943 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8944 fi 8945 8946 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 8947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8948 fi 8949 8950 CFLAGS="$CFLAGS -Wmain" 8951 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 8953$as_echo_n "checking if $CC supports -Wmain... " >&6; } 8954 cacheid=xorg_cv_cc_flag__Wmain 8955 if eval \${$cacheid+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957else 8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8959/* end confdefs.h. */ 8960int i; 8961int 8962main () 8963{ 8964 8965 ; 8966 return 0; 8967} 8968_ACEOF 8969if ac_fn_c_try_link "$LINENO"; then : 8970 eval $cacheid=yes 8971else 8972 eval $cacheid=no 8973fi 8974rm -f core conftest.err conftest.$ac_objext \ 8975 conftest$ac_exeext conftest.$ac_ext 8976fi 8977 8978 8979 CFLAGS="$xorg_testset_save_CFLAGS" 8980 8981 eval supported=\$$cacheid 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8983$as_echo "$supported" >&6; } 8984 if test "$supported" = "yes" ; then 8985 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 8986 found="yes" 8987 fi 8988 fi 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004xorg_testset_save_CFLAGS="$CFLAGS" 9005 9006if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9007 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9009$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9010if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9011 $as_echo_n "(cached) " >&6 9012else 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015int i; 9016_ACEOF 9017if ac_fn_c_try_compile "$LINENO"; then : 9018 xorg_cv_cc_flag_unknown_warning_option=yes 9019else 9020 xorg_cv_cc_flag_unknown_warning_option=no 9021fi 9022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9023fi 9024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9025$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9027 CFLAGS="$xorg_testset_save_CFLAGS" 9028fi 9029 9030if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9033 fi 9034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9036$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9037if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9038 $as_echo_n "(cached) " >&6 9039else 9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9041/* end confdefs.h. */ 9042int i; 9043_ACEOF 9044if ac_fn_c_try_compile "$LINENO"; then : 9045 xorg_cv_cc_flag_unused_command_line_argument=yes 9046else 9047 xorg_cv_cc_flag_unused_command_line_argument=no 9048fi 9049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9050fi 9051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9052$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9054 CFLAGS="$xorg_testset_save_CFLAGS" 9055fi 9056 9057found="no" 9058 9059 if test $found = "no" ; then 9060 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9062 fi 9063 9064 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9066 fi 9067 9068 CFLAGS="$CFLAGS -Wmissing-braces" 9069 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9071$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9072 cacheid=xorg_cv_cc_flag__Wmissing_braces 9073 if eval \${$cacheid+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9077/* end confdefs.h. */ 9078int i; 9079int 9080main () 9081{ 9082 9083 ; 9084 return 0; 9085} 9086_ACEOF 9087if ac_fn_c_try_link "$LINENO"; then : 9088 eval $cacheid=yes 9089else 9090 eval $cacheid=no 9091fi 9092rm -f core conftest.err conftest.$ac_objext \ 9093 conftest$ac_exeext conftest.$ac_ext 9094fi 9095 9096 9097 CFLAGS="$xorg_testset_save_CFLAGS" 9098 9099 eval supported=\$$cacheid 9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9101$as_echo "$supported" >&6; } 9102 if test "$supported" = "yes" ; then 9103 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9104 found="yes" 9105 fi 9106 fi 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122xorg_testset_save_CFLAGS="$CFLAGS" 9123 9124if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9125 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9127$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9128if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9129 $as_echo_n "(cached) " >&6 9130else 9131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9132/* end confdefs.h. */ 9133int i; 9134_ACEOF 9135if ac_fn_c_try_compile "$LINENO"; then : 9136 xorg_cv_cc_flag_unknown_warning_option=yes 9137else 9138 xorg_cv_cc_flag_unknown_warning_option=no 9139fi 9140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9141fi 9142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9143$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9145 CFLAGS="$xorg_testset_save_CFLAGS" 9146fi 9147 9148if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9151 fi 9152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9154$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9155if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9156 $as_echo_n "(cached) " >&6 9157else 9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9159/* end confdefs.h. */ 9160int i; 9161_ACEOF 9162if ac_fn_c_try_compile "$LINENO"; then : 9163 xorg_cv_cc_flag_unused_command_line_argument=yes 9164else 9165 xorg_cv_cc_flag_unused_command_line_argument=no 9166fi 9167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9168fi 9169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9170$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9172 CFLAGS="$xorg_testset_save_CFLAGS" 9173fi 9174 9175found="no" 9176 9177 if test $found = "no" ; then 9178 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9180 fi 9181 9182 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9184 fi 9185 9186 CFLAGS="$CFLAGS -Wsequence-point" 9187 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9189$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9190 cacheid=xorg_cv_cc_flag__Wsequence_point 9191 if eval \${$cacheid+:} false; then : 9192 $as_echo_n "(cached) " >&6 9193else 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196int i; 9197int 9198main () 9199{ 9200 9201 ; 9202 return 0; 9203} 9204_ACEOF 9205if ac_fn_c_try_link "$LINENO"; then : 9206 eval $cacheid=yes 9207else 9208 eval $cacheid=no 9209fi 9210rm -f core conftest.err conftest.$ac_objext \ 9211 conftest$ac_exeext conftest.$ac_ext 9212fi 9213 9214 9215 CFLAGS="$xorg_testset_save_CFLAGS" 9216 9217 eval supported=\$$cacheid 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9219$as_echo "$supported" >&6; } 9220 if test "$supported" = "yes" ; then 9221 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9222 found="yes" 9223 fi 9224 fi 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240xorg_testset_save_CFLAGS="$CFLAGS" 9241 9242if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9243 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9245$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9246if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9247 $as_echo_n "(cached) " >&6 9248else 9249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9250/* end confdefs.h. */ 9251int i; 9252_ACEOF 9253if ac_fn_c_try_compile "$LINENO"; then : 9254 xorg_cv_cc_flag_unknown_warning_option=yes 9255else 9256 xorg_cv_cc_flag_unknown_warning_option=no 9257fi 9258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9259fi 9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9261$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9262 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9263 CFLAGS="$xorg_testset_save_CFLAGS" 9264fi 9265 9266if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9269 fi 9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9272$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9273if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9274 $as_echo_n "(cached) " >&6 9275else 9276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9277/* end confdefs.h. */ 9278int i; 9279_ACEOF 9280if ac_fn_c_try_compile "$LINENO"; then : 9281 xorg_cv_cc_flag_unused_command_line_argument=yes 9282else 9283 xorg_cv_cc_flag_unused_command_line_argument=no 9284fi 9285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9286fi 9287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9288$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9290 CFLAGS="$xorg_testset_save_CFLAGS" 9291fi 9292 9293found="no" 9294 9295 if test $found = "no" ; then 9296 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9298 fi 9299 9300 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9302 fi 9303 9304 CFLAGS="$CFLAGS -Wreturn-type" 9305 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9307$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9308 cacheid=xorg_cv_cc_flag__Wreturn_type 9309 if eval \${$cacheid+:} false; then : 9310 $as_echo_n "(cached) " >&6 9311else 9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9313/* end confdefs.h. */ 9314int i; 9315int 9316main () 9317{ 9318 9319 ; 9320 return 0; 9321} 9322_ACEOF 9323if ac_fn_c_try_link "$LINENO"; then : 9324 eval $cacheid=yes 9325else 9326 eval $cacheid=no 9327fi 9328rm -f core conftest.err conftest.$ac_objext \ 9329 conftest$ac_exeext conftest.$ac_ext 9330fi 9331 9332 9333 CFLAGS="$xorg_testset_save_CFLAGS" 9334 9335 eval supported=\$$cacheid 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9337$as_echo "$supported" >&6; } 9338 if test "$supported" = "yes" ; then 9339 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9340 found="yes" 9341 fi 9342 fi 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358xorg_testset_save_CFLAGS="$CFLAGS" 9359 9360if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9361 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9363$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9364if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9365 $as_echo_n "(cached) " >&6 9366else 9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9368/* end confdefs.h. */ 9369int i; 9370_ACEOF 9371if ac_fn_c_try_compile "$LINENO"; then : 9372 xorg_cv_cc_flag_unknown_warning_option=yes 9373else 9374 xorg_cv_cc_flag_unknown_warning_option=no 9375fi 9376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9377fi 9378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9379$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9381 CFLAGS="$xorg_testset_save_CFLAGS" 9382fi 9383 9384if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9387 fi 9388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9390$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9391if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9392 $as_echo_n "(cached) " >&6 9393else 9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9395/* end confdefs.h. */ 9396int i; 9397_ACEOF 9398if ac_fn_c_try_compile "$LINENO"; then : 9399 xorg_cv_cc_flag_unused_command_line_argument=yes 9400else 9401 xorg_cv_cc_flag_unused_command_line_argument=no 9402fi 9403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9404fi 9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9406$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9408 CFLAGS="$xorg_testset_save_CFLAGS" 9409fi 9410 9411found="no" 9412 9413 if test $found = "no" ; then 9414 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9416 fi 9417 9418 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9420 fi 9421 9422 CFLAGS="$CFLAGS -Wtrigraphs" 9423 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9425$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9426 cacheid=xorg_cv_cc_flag__Wtrigraphs 9427 if eval \${$cacheid+:} false; then : 9428 $as_echo_n "(cached) " >&6 9429else 9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9431/* end confdefs.h. */ 9432int i; 9433int 9434main () 9435{ 9436 9437 ; 9438 return 0; 9439} 9440_ACEOF 9441if ac_fn_c_try_link "$LINENO"; then : 9442 eval $cacheid=yes 9443else 9444 eval $cacheid=no 9445fi 9446rm -f core conftest.err conftest.$ac_objext \ 9447 conftest$ac_exeext conftest.$ac_ext 9448fi 9449 9450 9451 CFLAGS="$xorg_testset_save_CFLAGS" 9452 9453 eval supported=\$$cacheid 9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9455$as_echo "$supported" >&6; } 9456 if test "$supported" = "yes" ; then 9457 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9458 found="yes" 9459 fi 9460 fi 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476xorg_testset_save_CFLAGS="$CFLAGS" 9477 9478if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9479 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9481$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9482if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9483 $as_echo_n "(cached) " >&6 9484else 9485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9486/* end confdefs.h. */ 9487int i; 9488_ACEOF 9489if ac_fn_c_try_compile "$LINENO"; then : 9490 xorg_cv_cc_flag_unknown_warning_option=yes 9491else 9492 xorg_cv_cc_flag_unknown_warning_option=no 9493fi 9494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9495fi 9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9497$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9498 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9499 CFLAGS="$xorg_testset_save_CFLAGS" 9500fi 9501 9502if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9505 fi 9506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9508$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9509if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9510 $as_echo_n "(cached) " >&6 9511else 9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9513/* end confdefs.h. */ 9514int i; 9515_ACEOF 9516if ac_fn_c_try_compile "$LINENO"; then : 9517 xorg_cv_cc_flag_unused_command_line_argument=yes 9518else 9519 xorg_cv_cc_flag_unused_command_line_argument=no 9520fi 9521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9522fi 9523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9524$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9525 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9526 CFLAGS="$xorg_testset_save_CFLAGS" 9527fi 9528 9529found="no" 9530 9531 if test $found = "no" ; then 9532 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9534 fi 9535 9536 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9538 fi 9539 9540 CFLAGS="$CFLAGS -Warray-bounds" 9541 9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9543$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9544 cacheid=xorg_cv_cc_flag__Warray_bounds 9545 if eval \${$cacheid+:} false; then : 9546 $as_echo_n "(cached) " >&6 9547else 9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9549/* end confdefs.h. */ 9550int i; 9551int 9552main () 9553{ 9554 9555 ; 9556 return 0; 9557} 9558_ACEOF 9559if ac_fn_c_try_link "$LINENO"; then : 9560 eval $cacheid=yes 9561else 9562 eval $cacheid=no 9563fi 9564rm -f core conftest.err conftest.$ac_objext \ 9565 conftest$ac_exeext conftest.$ac_ext 9566fi 9567 9568 9569 CFLAGS="$xorg_testset_save_CFLAGS" 9570 9571 eval supported=\$$cacheid 9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9573$as_echo "$supported" >&6; } 9574 if test "$supported" = "yes" ; then 9575 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9576 found="yes" 9577 fi 9578 fi 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594xorg_testset_save_CFLAGS="$CFLAGS" 9595 9596if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9599$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9600if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9601 $as_echo_n "(cached) " >&6 9602else 9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605int i; 9606_ACEOF 9607if ac_fn_c_try_compile "$LINENO"; then : 9608 xorg_cv_cc_flag_unknown_warning_option=yes 9609else 9610 xorg_cv_cc_flag_unknown_warning_option=no 9611fi 9612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9613fi 9614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9615$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9616 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9617 CFLAGS="$xorg_testset_save_CFLAGS" 9618fi 9619 9620if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9623 fi 9624 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9626$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9627if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9628 $as_echo_n "(cached) " >&6 9629else 9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9631/* end confdefs.h. */ 9632int i; 9633_ACEOF 9634if ac_fn_c_try_compile "$LINENO"; then : 9635 xorg_cv_cc_flag_unused_command_line_argument=yes 9636else 9637 xorg_cv_cc_flag_unused_command_line_argument=no 9638fi 9639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9640fi 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9642$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9643 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9644 CFLAGS="$xorg_testset_save_CFLAGS" 9645fi 9646 9647found="no" 9648 9649 if test $found = "no" ; then 9650 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9652 fi 9653 9654 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9656 fi 9657 9658 CFLAGS="$CFLAGS -Wwrite-strings" 9659 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9661$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9662 cacheid=xorg_cv_cc_flag__Wwrite_strings 9663 if eval \${$cacheid+:} false; then : 9664 $as_echo_n "(cached) " >&6 9665else 9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9667/* end confdefs.h. */ 9668int i; 9669int 9670main () 9671{ 9672 9673 ; 9674 return 0; 9675} 9676_ACEOF 9677if ac_fn_c_try_link "$LINENO"; then : 9678 eval $cacheid=yes 9679else 9680 eval $cacheid=no 9681fi 9682rm -f core conftest.err conftest.$ac_objext \ 9683 conftest$ac_exeext conftest.$ac_ext 9684fi 9685 9686 9687 CFLAGS="$xorg_testset_save_CFLAGS" 9688 9689 eval supported=\$$cacheid 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9691$as_echo "$supported" >&6; } 9692 if test "$supported" = "yes" ; then 9693 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9694 found="yes" 9695 fi 9696 fi 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712xorg_testset_save_CFLAGS="$CFLAGS" 9713 9714if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9717$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9718if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9722/* end confdefs.h. */ 9723int i; 9724_ACEOF 9725if ac_fn_c_try_compile "$LINENO"; then : 9726 xorg_cv_cc_flag_unknown_warning_option=yes 9727else 9728 xorg_cv_cc_flag_unknown_warning_option=no 9729fi 9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9731fi 9732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9733$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9734 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9735 CFLAGS="$xorg_testset_save_CFLAGS" 9736fi 9737 9738if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9741 fi 9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9744$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9745if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9746 $as_echo_n "(cached) " >&6 9747else 9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9749/* end confdefs.h. */ 9750int i; 9751_ACEOF 9752if ac_fn_c_try_compile "$LINENO"; then : 9753 xorg_cv_cc_flag_unused_command_line_argument=yes 9754else 9755 xorg_cv_cc_flag_unused_command_line_argument=no 9756fi 9757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9758fi 9759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9760$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9761 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9762 CFLAGS="$xorg_testset_save_CFLAGS" 9763fi 9764 9765found="no" 9766 9767 if test $found = "no" ; then 9768 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9770 fi 9771 9772 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9774 fi 9775 9776 CFLAGS="$CFLAGS -Waddress" 9777 9778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9779$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9780 cacheid=xorg_cv_cc_flag__Waddress 9781 if eval \${$cacheid+:} false; then : 9782 $as_echo_n "(cached) " >&6 9783else 9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9785/* end confdefs.h. */ 9786int i; 9787int 9788main () 9789{ 9790 9791 ; 9792 return 0; 9793} 9794_ACEOF 9795if ac_fn_c_try_link "$LINENO"; then : 9796 eval $cacheid=yes 9797else 9798 eval $cacheid=no 9799fi 9800rm -f core conftest.err conftest.$ac_objext \ 9801 conftest$ac_exeext conftest.$ac_ext 9802fi 9803 9804 9805 CFLAGS="$xorg_testset_save_CFLAGS" 9806 9807 eval supported=\$$cacheid 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9809$as_echo "$supported" >&6; } 9810 if test "$supported" = "yes" ; then 9811 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9812 found="yes" 9813 fi 9814 fi 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830xorg_testset_save_CFLAGS="$CFLAGS" 9831 9832if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9835$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9836if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838else 9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841int i; 9842_ACEOF 9843if ac_fn_c_try_compile "$LINENO"; then : 9844 xorg_cv_cc_flag_unknown_warning_option=yes 9845else 9846 xorg_cv_cc_flag_unknown_warning_option=no 9847fi 9848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9849fi 9850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9851$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9853 CFLAGS="$xorg_testset_save_CFLAGS" 9854fi 9855 9856if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9859 fi 9860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9862$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9863if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9864 $as_echo_n "(cached) " >&6 9865else 9866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9867/* end confdefs.h. */ 9868int i; 9869_ACEOF 9870if ac_fn_c_try_compile "$LINENO"; then : 9871 xorg_cv_cc_flag_unused_command_line_argument=yes 9872else 9873 xorg_cv_cc_flag_unused_command_line_argument=no 9874fi 9875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9876fi 9877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9878$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9879 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9880 CFLAGS="$xorg_testset_save_CFLAGS" 9881fi 9882 9883found="no" 9884 9885 if test $found = "no" ; then 9886 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 9887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9888 fi 9889 9890 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 9891 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9892 fi 9893 9894 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9895 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9897$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9898 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9899 if eval \${$cacheid+:} false; then : 9900 $as_echo_n "(cached) " >&6 9901else 9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9903/* end confdefs.h. */ 9904int i; 9905int 9906main () 9907{ 9908 9909 ; 9910 return 0; 9911} 9912_ACEOF 9913if ac_fn_c_try_link "$LINENO"; then : 9914 eval $cacheid=yes 9915else 9916 eval $cacheid=no 9917fi 9918rm -f core conftest.err conftest.$ac_objext \ 9919 conftest$ac_exeext conftest.$ac_ext 9920fi 9921 9922 9923 CFLAGS="$xorg_testset_save_CFLAGS" 9924 9925 eval supported=\$$cacheid 9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9927$as_echo "$supported" >&6; } 9928 if test "$supported" = "yes" ; then 9929 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 9930 found="yes" 9931 fi 9932 fi 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948xorg_testset_save_CFLAGS="$CFLAGS" 9949 9950if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9953$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9954if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9958/* end confdefs.h. */ 9959int i; 9960_ACEOF 9961if ac_fn_c_try_compile "$LINENO"; then : 9962 xorg_cv_cc_flag_unknown_warning_option=yes 9963else 9964 xorg_cv_cc_flag_unknown_warning_option=no 9965fi 9966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9967fi 9968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9969$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9970 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9971 CFLAGS="$xorg_testset_save_CFLAGS" 9972fi 9973 9974if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9975 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9976 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9977 fi 9978 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9980$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9981if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9982 $as_echo_n "(cached) " >&6 9983else 9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9985/* end confdefs.h. */ 9986int i; 9987_ACEOF 9988if ac_fn_c_try_compile "$LINENO"; then : 9989 xorg_cv_cc_flag_unused_command_line_argument=yes 9990else 9991 xorg_cv_cc_flag_unused_command_line_argument=no 9992fi 9993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9994fi 9995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9996$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9997 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9998 CFLAGS="$xorg_testset_save_CFLAGS" 9999fi 10000 10001found="no" 10002 10003 if test $found = "no" ; then 10004 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10006 fi 10007 10008 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10010 fi 10011 10012 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10013 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10015$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10016 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10017 if eval \${$cacheid+:} false; then : 10018 $as_echo_n "(cached) " >&6 10019else 10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10021/* end confdefs.h. */ 10022int i; 10023int 10024main () 10025{ 10026 10027 ; 10028 return 0; 10029} 10030_ACEOF 10031if ac_fn_c_try_link "$LINENO"; then : 10032 eval $cacheid=yes 10033else 10034 eval $cacheid=no 10035fi 10036rm -f core conftest.err conftest.$ac_objext \ 10037 conftest$ac_exeext conftest.$ac_ext 10038fi 10039 10040 10041 CFLAGS="$xorg_testset_save_CFLAGS" 10042 10043 eval supported=\$$cacheid 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10045$as_echo "$supported" >&6; } 10046 if test "$supported" = "yes" ; then 10047 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10048 found="yes" 10049 fi 10050 fi 10051 10052 10053fi 10054 10055 10056 10057 10058 10059 10060 10061 CWARNFLAGS="$BASE_CFLAGS" 10062 if test "x$GCC" = xyes ; then 10063 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10064 fi 10065 10066 10067 10068 10069 10070 10071 10072 10073# Check whether --enable-strict-compilation was given. 10074if test "${enable_strict_compilation+set}" = set; then : 10075 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10076else 10077 STRICT_COMPILE=no 10078fi 10079 10080 10081 10082 10083 10084 10085STRICT_CFLAGS="" 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099xorg_testset_save_CFLAGS="$CFLAGS" 10100 10101if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10104$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10105if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10106 $as_echo_n "(cached) " >&6 10107else 10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10109/* end confdefs.h. */ 10110int i; 10111_ACEOF 10112if ac_fn_c_try_compile "$LINENO"; then : 10113 xorg_cv_cc_flag_unknown_warning_option=yes 10114else 10115 xorg_cv_cc_flag_unknown_warning_option=no 10116fi 10117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10118fi 10119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10120$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10121 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10122 CFLAGS="$xorg_testset_save_CFLAGS" 10123fi 10124 10125if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10127 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10128 fi 10129 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10131$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10132if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10133 $as_echo_n "(cached) " >&6 10134else 10135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10136/* end confdefs.h. */ 10137int i; 10138_ACEOF 10139if ac_fn_c_try_compile "$LINENO"; then : 10140 xorg_cv_cc_flag_unused_command_line_argument=yes 10141else 10142 xorg_cv_cc_flag_unused_command_line_argument=no 10143fi 10144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10145fi 10146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10147$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10149 CFLAGS="$xorg_testset_save_CFLAGS" 10150fi 10151 10152found="no" 10153 10154 if test $found = "no" ; then 10155 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10156 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10157 fi 10158 10159 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10161 fi 10162 10163 CFLAGS="$CFLAGS -pedantic" 10164 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10166$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10167 cacheid=xorg_cv_cc_flag__pedantic 10168 if eval \${$cacheid+:} false; then : 10169 $as_echo_n "(cached) " >&6 10170else 10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10172/* end confdefs.h. */ 10173int i; 10174int 10175main () 10176{ 10177 10178 ; 10179 return 0; 10180} 10181_ACEOF 10182if ac_fn_c_try_link "$LINENO"; then : 10183 eval $cacheid=yes 10184else 10185 eval $cacheid=no 10186fi 10187rm -f core conftest.err conftest.$ac_objext \ 10188 conftest$ac_exeext conftest.$ac_ext 10189fi 10190 10191 10192 CFLAGS="$xorg_testset_save_CFLAGS" 10193 10194 eval supported=\$$cacheid 10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10196$as_echo "$supported" >&6; } 10197 if test "$supported" = "yes" ; then 10198 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10199 found="yes" 10200 fi 10201 fi 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217xorg_testset_save_CFLAGS="$CFLAGS" 10218 10219if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10222$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10223if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10224 $as_echo_n "(cached) " >&6 10225else 10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10227/* end confdefs.h. */ 10228int i; 10229_ACEOF 10230if ac_fn_c_try_compile "$LINENO"; then : 10231 xorg_cv_cc_flag_unknown_warning_option=yes 10232else 10233 xorg_cv_cc_flag_unknown_warning_option=no 10234fi 10235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10236fi 10237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10238$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10240 CFLAGS="$xorg_testset_save_CFLAGS" 10241fi 10242 10243if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10245 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10246 fi 10247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10249$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10250if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10251 $as_echo_n "(cached) " >&6 10252else 10253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10254/* end confdefs.h. */ 10255int i; 10256_ACEOF 10257if ac_fn_c_try_compile "$LINENO"; then : 10258 xorg_cv_cc_flag_unused_command_line_argument=yes 10259else 10260 xorg_cv_cc_flag_unused_command_line_argument=no 10261fi 10262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10263fi 10264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10265$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10267 CFLAGS="$xorg_testset_save_CFLAGS" 10268fi 10269 10270found="no" 10271 10272 if test $found = "no" ; then 10273 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10274 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10275 fi 10276 10277 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10279 fi 10280 10281 CFLAGS="$CFLAGS -Werror" 10282 10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10284$as_echo_n "checking if $CC supports -Werror... " >&6; } 10285 cacheid=xorg_cv_cc_flag__Werror 10286 if eval \${$cacheid+:} false; then : 10287 $as_echo_n "(cached) " >&6 10288else 10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10290/* end confdefs.h. */ 10291int i; 10292int 10293main () 10294{ 10295 10296 ; 10297 return 0; 10298} 10299_ACEOF 10300if ac_fn_c_try_link "$LINENO"; then : 10301 eval $cacheid=yes 10302else 10303 eval $cacheid=no 10304fi 10305rm -f core conftest.err conftest.$ac_objext \ 10306 conftest$ac_exeext conftest.$ac_ext 10307fi 10308 10309 10310 CFLAGS="$xorg_testset_save_CFLAGS" 10311 10312 eval supported=\$$cacheid 10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10314$as_echo "$supported" >&6; } 10315 if test "$supported" = "yes" ; then 10316 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10317 found="yes" 10318 fi 10319 fi 10320 10321 if test $found = "no" ; then 10322 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10324 fi 10325 10326 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10328 fi 10329 10330 CFLAGS="$CFLAGS -errwarn" 10331 10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10333$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10334 cacheid=xorg_cv_cc_flag__errwarn 10335 if eval \${$cacheid+:} false; then : 10336 $as_echo_n "(cached) " >&6 10337else 10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10339/* end confdefs.h. */ 10340int i; 10341int 10342main () 10343{ 10344 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349if ac_fn_c_try_link "$LINENO"; then : 10350 eval $cacheid=yes 10351else 10352 eval $cacheid=no 10353fi 10354rm -f core conftest.err conftest.$ac_objext \ 10355 conftest$ac_exeext conftest.$ac_ext 10356fi 10357 10358 10359 CFLAGS="$xorg_testset_save_CFLAGS" 10360 10361 eval supported=\$$cacheid 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10363$as_echo "$supported" >&6; } 10364 if test "$supported" = "yes" ; then 10365 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10366 found="yes" 10367 fi 10368 fi 10369 10370 10371 10372# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10373# activate it with -Werror, so we add it here explicitly. 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387xorg_testset_save_CFLAGS="$CFLAGS" 10388 10389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10394 $as_echo_n "(cached) " >&6 10395else 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10397/* end confdefs.h. */ 10398int i; 10399_ACEOF 10400if ac_fn_c_try_compile "$LINENO"; then : 10401 xorg_cv_cc_flag_unknown_warning_option=yes 10402else 10403 xorg_cv_cc_flag_unknown_warning_option=no 10404fi 10405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10406fi 10407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10410 CFLAGS="$xorg_testset_save_CFLAGS" 10411fi 10412 10413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10416 fi 10417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10421 $as_echo_n "(cached) " >&6 10422else 10423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10424/* end confdefs.h. */ 10425int i; 10426_ACEOF 10427if ac_fn_c_try_compile "$LINENO"; then : 10428 xorg_cv_cc_flag_unused_command_line_argument=yes 10429else 10430 xorg_cv_cc_flag_unused_command_line_argument=no 10431fi 10432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10433fi 10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10437 CFLAGS="$xorg_testset_save_CFLAGS" 10438fi 10439 10440found="no" 10441 10442 if test $found = "no" ; then 10443 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then 10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10445 fi 10446 10447 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then 10448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10449 fi 10450 10451 CFLAGS="$CFLAGS -Werror=attributes" 10452 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10454$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10455 cacheid=xorg_cv_cc_flag__Werror_attributes 10456 if eval \${$cacheid+:} false; then : 10457 $as_echo_n "(cached) " >&6 10458else 10459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10460/* end confdefs.h. */ 10461int i; 10462int 10463main () 10464{ 10465 10466 ; 10467 return 0; 10468} 10469_ACEOF 10470if ac_fn_c_try_link "$LINENO"; then : 10471 eval $cacheid=yes 10472else 10473 eval $cacheid=no 10474fi 10475rm -f core conftest.err conftest.$ac_objext \ 10476 conftest$ac_exeext conftest.$ac_ext 10477fi 10478 10479 10480 CFLAGS="$xorg_testset_save_CFLAGS" 10481 10482 eval supported=\$$cacheid 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10484$as_echo "$supported" >&6; } 10485 if test "$supported" = "yes" ; then 10486 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10487 found="yes" 10488 fi 10489 fi 10490 10491 10492 10493if test "x$STRICT_COMPILE" = "xyes"; then 10494 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10495 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10496fi 10497 10498 10499 10500 10501 10502 10503cat >>confdefs.h <<_ACEOF 10504#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10505_ACEOF 10506 10507 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10508 if test "x$PVM" = "x"; then 10509 PVM="0" 10510 fi 10511 10512cat >>confdefs.h <<_ACEOF 10513#define PACKAGE_VERSION_MINOR $PVM 10514_ACEOF 10515 10516 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10517 if test "x$PVP" = "x"; then 10518 PVP="0" 10519 fi 10520 10521cat >>confdefs.h <<_ACEOF 10522#define PACKAGE_VERSION_PATCHLEVEL $PVP 10523_ACEOF 10524 10525 10526 10527CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10528mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10529|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10530echo 'git directory not found: installing possibly empty changelog.' >&2)" 10531 10532 10533 10534 10535macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10536INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10537mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10538|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10539echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10540 10541 10542 10543 10544 10545 10546if test x$APP_MAN_SUFFIX = x ; then 10547 APP_MAN_SUFFIX=1 10548fi 10549if test x$APP_MAN_DIR = x ; then 10550 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10551fi 10552 10553if test x$LIB_MAN_SUFFIX = x ; then 10554 LIB_MAN_SUFFIX=3 10555fi 10556if test x$LIB_MAN_DIR = x ; then 10557 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10558fi 10559 10560if test x$FILE_MAN_SUFFIX = x ; then 10561 case $host_os in 10562 solaris*) FILE_MAN_SUFFIX=4 ;; 10563 *) FILE_MAN_SUFFIX=5 ;; 10564 esac 10565fi 10566if test x$FILE_MAN_DIR = x ; then 10567 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10568fi 10569 10570if test x$MISC_MAN_SUFFIX = x ; then 10571 case $host_os in 10572 solaris*) MISC_MAN_SUFFIX=5 ;; 10573 *) MISC_MAN_SUFFIX=7 ;; 10574 esac 10575fi 10576if test x$MISC_MAN_DIR = x ; then 10577 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10578fi 10579 10580if test x$DRIVER_MAN_SUFFIX = x ; then 10581 case $host_os in 10582 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10583 *) DRIVER_MAN_SUFFIX=4 ;; 10584 esac 10585fi 10586if test x$DRIVER_MAN_DIR = x ; then 10587 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10588fi 10589 10590if test x$ADMIN_MAN_SUFFIX = x ; then 10591 case $host_os in 10592 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10593 *) ADMIN_MAN_SUFFIX=8 ;; 10594 esac 10595fi 10596if test x$ADMIN_MAN_DIR = x ; then 10597 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10598fi 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614XORG_MAN_PAGE="X Version 11" 10615 10616MAN_SUBSTS="\ 10617 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10618 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10619 -e 's|__xservername__|Xorg|g' \ 10620 -e 's|__xconfigfile__|xorg.conf|g' \ 10621 -e 's|__projectroot__|\$(prefix)|g' \ 10622 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10623 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10624 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10625 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10626 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10627 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10628 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10629 10630 10631 10632# Check whether --enable-silent-rules was given. 10633if test "${enable_silent_rules+set}" = set; then : 10634 enableval=$enable_silent_rules; 10635fi 10636 10637case $enable_silent_rules in # ((( 10638 yes) AM_DEFAULT_VERBOSITY=0;; 10639 no) AM_DEFAULT_VERBOSITY=1;; 10640 *) AM_DEFAULT_VERBOSITY=0;; 10641esac 10642am_make=${MAKE-make} 10643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10644$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10645if ${am_cv_make_support_nested_variables+:} false; then : 10646 $as_echo_n "(cached) " >&6 10647else 10648 if $as_echo 'TRUE=$(BAR$(V)) 10649BAR0=false 10650BAR1=true 10651V=1 10652am__doit: 10653 @$(TRUE) 10654.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10655 am_cv_make_support_nested_variables=yes 10656else 10657 am_cv_make_support_nested_variables=no 10658fi 10659fi 10660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10661$as_echo "$am_cv_make_support_nested_variables" >&6; } 10662if test $am_cv_make_support_nested_variables = yes; then 10663 AM_V='$(V)' 10664 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10665else 10666 AM_V=$AM_DEFAULT_VERBOSITY 10667 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10668fi 10669AM_BACKSLASH='\' 10670 10671 10672 10673# Initialize libtool 10674# Check whether --enable-static was given. 10675if test "${enable_static+set}" = set; then : 10676 enableval=$enable_static; p=${PACKAGE-default} 10677 case $enableval in 10678 yes) enable_static=yes ;; 10679 no) enable_static=no ;; 10680 *) 10681 enable_static=no 10682 # Look at the argument we got. We use all the common list separators. 10683 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10684 for pkg in $enableval; do 10685 IFS="$lt_save_ifs" 10686 if test "X$pkg" = "X$p"; then 10687 enable_static=yes 10688 fi 10689 done 10690 IFS="$lt_save_ifs" 10691 ;; 10692 esac 10693else 10694 enable_static=no 10695fi 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705case `pwd` in 10706 *\ * | *\ *) 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10708$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10709esac 10710 10711 10712 10713macro_version='2.4' 10714macro_revision='1.3293' 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728ltmain="$ac_aux_dir/ltmain.sh" 10729 10730# Backslashify metacharacters that are still active within 10731# double-quoted strings. 10732sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10733 10734# Same as above, but do not quote variable references. 10735double_quote_subst='s/\(["`\\]\)/\\\1/g' 10736 10737# Sed substitution to delay expansion of an escaped shell variable in a 10738# double_quote_subst'ed string. 10739delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10740 10741# Sed substitution to delay expansion of an escaped single quote. 10742delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10743 10744# Sed substitution to avoid accidental globbing in evaled expressions 10745no_glob_subst='s/\*/\\\*/g' 10746 10747ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10748ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10749ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10750 10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10752$as_echo_n "checking how to print strings... " >&6; } 10753# Test print first, because it will be a builtin if present. 10754if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10755 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10756 ECHO='print -r --' 10757elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10758 ECHO='printf %s\n' 10759else 10760 # Use this function as a fallback that always works. 10761 func_fallback_echo () 10762 { 10763 eval 'cat <<_LTECHO_EOF 10764$1 10765_LTECHO_EOF' 10766 } 10767 ECHO='func_fallback_echo' 10768fi 10769 10770# func_echo_all arg... 10771# Invoke $ECHO with all args, space-separated. 10772func_echo_all () 10773{ 10774 $ECHO "" 10775} 10776 10777case "$ECHO" in 10778 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10779$as_echo "printf" >&6; } ;; 10780 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10781$as_echo "print -r" >&6; } ;; 10782 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10783$as_echo "cat" >&6; } ;; 10784esac 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10800$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10801if ${ac_cv_path_SED+:} false; then : 10802 $as_echo_n "(cached) " >&6 10803else 10804 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10805 for ac_i in 1 2 3 4 5 6 7; do 10806 ac_script="$ac_script$as_nl$ac_script" 10807 done 10808 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10809 { ac_script=; unset ac_script;} 10810 if test -z "$SED"; then 10811 ac_path_SED_found=false 10812 # Loop through the user's path and test for each of PROGNAME-LIST 10813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10814for as_dir in $PATH 10815do 10816 IFS=$as_save_IFS 10817 test -z "$as_dir" && as_dir=. 10818 for ac_prog in sed gsed; do 10819 for ac_exec_ext in '' $ac_executable_extensions; do 10820 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 10821 as_fn_executable_p "$ac_path_SED" || continue 10822# Check for GNU ac_path_SED and select it if it is found. 10823 # Check for GNU $ac_path_SED 10824case `"$ac_path_SED" --version 2>&1` in 10825*GNU*) 10826 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 10827*) 10828 ac_count=0 10829 $as_echo_n 0123456789 >"conftest.in" 10830 while : 10831 do 10832 cat "conftest.in" "conftest.in" >"conftest.tmp" 10833 mv "conftest.tmp" "conftest.in" 10834 cp "conftest.in" "conftest.nl" 10835 $as_echo '' >> "conftest.nl" 10836 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 10837 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10838 as_fn_arith $ac_count + 1 && ac_count=$as_val 10839 if test $ac_count -gt ${ac_path_SED_max-0}; then 10840 # Best one so far, save it but keep looking for a better one 10841 ac_cv_path_SED="$ac_path_SED" 10842 ac_path_SED_max=$ac_count 10843 fi 10844 # 10*(2^10) chars as input seems more than enough 10845 test $ac_count -gt 10 && break 10846 done 10847 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10848esac 10849 10850 $ac_path_SED_found && break 3 10851 done 10852 done 10853 done 10854IFS=$as_save_IFS 10855 if test -z "$ac_cv_path_SED"; then 10856 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 10857 fi 10858else 10859 ac_cv_path_SED=$SED 10860fi 10861 10862fi 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 10864$as_echo "$ac_cv_path_SED" >&6; } 10865 SED="$ac_cv_path_SED" 10866 rm -f conftest.sed 10867 10868test -z "$SED" && SED=sed 10869Xsed="$SED -e 1s/^X//" 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 10882$as_echo_n "checking for fgrep... " >&6; } 10883if ${ac_cv_path_FGREP+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885else 10886 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 10887 then ac_cv_path_FGREP="$GREP -F" 10888 else 10889 if test -z "$FGREP"; then 10890 ac_path_FGREP_found=false 10891 # Loop through the user's path and test for each of PROGNAME-LIST 10892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10893for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10894do 10895 IFS=$as_save_IFS 10896 test -z "$as_dir" && as_dir=. 10897 for ac_prog in fgrep; do 10898 for ac_exec_ext in '' $ac_executable_extensions; do 10899 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 10900 as_fn_executable_p "$ac_path_FGREP" || continue 10901# Check for GNU ac_path_FGREP and select it if it is found. 10902 # Check for GNU $ac_path_FGREP 10903case `"$ac_path_FGREP" --version 2>&1` in 10904*GNU*) 10905 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 10906*) 10907 ac_count=0 10908 $as_echo_n 0123456789 >"conftest.in" 10909 while : 10910 do 10911 cat "conftest.in" "conftest.in" >"conftest.tmp" 10912 mv "conftest.tmp" "conftest.in" 10913 cp "conftest.in" "conftest.nl" 10914 $as_echo 'FGREP' >> "conftest.nl" 10915 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 10916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10917 as_fn_arith $ac_count + 1 && ac_count=$as_val 10918 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 10919 # Best one so far, save it but keep looking for a better one 10920 ac_cv_path_FGREP="$ac_path_FGREP" 10921 ac_path_FGREP_max=$ac_count 10922 fi 10923 # 10*(2^10) chars as input seems more than enough 10924 test $ac_count -gt 10 && break 10925 done 10926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10927esac 10928 10929 $ac_path_FGREP_found && break 3 10930 done 10931 done 10932 done 10933IFS=$as_save_IFS 10934 if test -z "$ac_cv_path_FGREP"; then 10935 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10936 fi 10937else 10938 ac_cv_path_FGREP=$FGREP 10939fi 10940 10941 fi 10942fi 10943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 10944$as_echo "$ac_cv_path_FGREP" >&6; } 10945 FGREP="$ac_cv_path_FGREP" 10946 10947 10948test -z "$GREP" && GREP=grep 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968# Check whether --with-gnu-ld was given. 10969if test "${with_gnu_ld+set}" = set; then : 10970 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 10971else 10972 with_gnu_ld=no 10973fi 10974 10975ac_prog=ld 10976if test "$GCC" = yes; then 10977 # Check if gcc -print-prog-name=ld gives a path. 10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 10979$as_echo_n "checking for ld used by $CC... " >&6; } 10980 case $host in 10981 *-*-mingw*) 10982 # gcc leaves a trailing carriage return which upsets mingw 10983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10984 *) 10985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10986 esac 10987 case $ac_prog in 10988 # Accept absolute paths. 10989 [\\/]* | ?:[\\/]*) 10990 re_direlt='/[^/][^/]*/\.\./' 10991 # Canonicalize the pathname of ld 10992 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 10993 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 10994 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 10995 done 10996 test -z "$LD" && LD="$ac_prog" 10997 ;; 10998 "") 10999 # If it fails, then pretend we aren't using GCC. 11000 ac_prog=ld 11001 ;; 11002 *) 11003 # If it is relative, then search for the first ld in PATH. 11004 with_gnu_ld=unknown 11005 ;; 11006 esac 11007elif test "$with_gnu_ld" = yes; then 11008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11009$as_echo_n "checking for GNU ld... " >&6; } 11010else 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11012$as_echo_n "checking for non-GNU ld... " >&6; } 11013fi 11014if ${lt_cv_path_LD+:} false; then : 11015 $as_echo_n "(cached) " >&6 11016else 11017 if test -z "$LD"; then 11018 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11019 for ac_dir in $PATH; do 11020 IFS="$lt_save_ifs" 11021 test -z "$ac_dir" && ac_dir=. 11022 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11023 lt_cv_path_LD="$ac_dir/$ac_prog" 11024 # Check to see if the program is GNU ld. I'd rather use --version, 11025 # but apparently some variants of GNU ld only accept -v. 11026 # Break only if it was the GNU/non-GNU ld that we prefer. 11027 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11028 *GNU* | *'with BFD'*) 11029 test "$with_gnu_ld" != no && break 11030 ;; 11031 *) 11032 test "$with_gnu_ld" != yes && break 11033 ;; 11034 esac 11035 fi 11036 done 11037 IFS="$lt_save_ifs" 11038else 11039 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11040fi 11041fi 11042 11043LD="$lt_cv_path_LD" 11044if test -n "$LD"; then 11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11046$as_echo "$LD" >&6; } 11047else 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11049$as_echo "no" >&6; } 11050fi 11051test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11053$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11054if ${lt_cv_prog_gnu_ld+:} false; then : 11055 $as_echo_n "(cached) " >&6 11056else 11057 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11058case `$LD -v 2>&1 </dev/null` in 11059*GNU* | *'with BFD'*) 11060 lt_cv_prog_gnu_ld=yes 11061 ;; 11062*) 11063 lt_cv_prog_gnu_ld=no 11064 ;; 11065esac 11066fi 11067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11068$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11069with_gnu_ld=$lt_cv_prog_gnu_ld 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11080$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11081if ${lt_cv_path_NM+:} false; then : 11082 $as_echo_n "(cached) " >&6 11083else 11084 if test -n "$NM"; then 11085 # Let the user override the test. 11086 lt_cv_path_NM="$NM" 11087else 11088 lt_nm_to_check="${ac_tool_prefix}nm" 11089 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11090 lt_nm_to_check="$lt_nm_to_check nm" 11091 fi 11092 for lt_tmp_nm in $lt_nm_to_check; do 11093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11094 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11095 IFS="$lt_save_ifs" 11096 test -z "$ac_dir" && ac_dir=. 11097 tmp_nm="$ac_dir/$lt_tmp_nm" 11098 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11099 # Check to see if the nm accepts a BSD-compat flag. 11100 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11101 # nm: unknown option "B" ignored 11102 # Tru64's nm complains that /dev/null is an invalid object file 11103 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11104 */dev/null* | *'Invalid file or object type'*) 11105 lt_cv_path_NM="$tmp_nm -B" 11106 break 11107 ;; 11108 *) 11109 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11110 */dev/null*) 11111 lt_cv_path_NM="$tmp_nm -p" 11112 break 11113 ;; 11114 *) 11115 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11116 continue # so that we can try to find one that supports BSD flags 11117 ;; 11118 esac 11119 ;; 11120 esac 11121 fi 11122 done 11123 IFS="$lt_save_ifs" 11124 done 11125 : ${lt_cv_path_NM=no} 11126fi 11127fi 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11129$as_echo "$lt_cv_path_NM" >&6; } 11130if test "$lt_cv_path_NM" != "no"; then 11131 NM="$lt_cv_path_NM" 11132else 11133 # Didn't find any BSD compatible name lister, look for dumpbin. 11134 if test -n "$DUMPBIN"; then : 11135 # Let the user override the test. 11136 else 11137 if test -n "$ac_tool_prefix"; then 11138 for ac_prog in dumpbin "link -dump" 11139 do 11140 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11141set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11143$as_echo_n "checking for $ac_word... " >&6; } 11144if ${ac_cv_prog_DUMPBIN+:} false; then : 11145 $as_echo_n "(cached) " >&6 11146else 11147 if test -n "$DUMPBIN"; then 11148 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11149else 11150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11151for as_dir in $PATH 11152do 11153 IFS=$as_save_IFS 11154 test -z "$as_dir" && as_dir=. 11155 for ac_exec_ext in '' $ac_executable_extensions; do 11156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11157 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11159 break 2 11160 fi 11161done 11162 done 11163IFS=$as_save_IFS 11164 11165fi 11166fi 11167DUMPBIN=$ac_cv_prog_DUMPBIN 11168if test -n "$DUMPBIN"; then 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11170$as_echo "$DUMPBIN" >&6; } 11171else 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11173$as_echo "no" >&6; } 11174fi 11175 11176 11177 test -n "$DUMPBIN" && break 11178 done 11179fi 11180if test -z "$DUMPBIN"; then 11181 ac_ct_DUMPBIN=$DUMPBIN 11182 for ac_prog in dumpbin "link -dump" 11183do 11184 # Extract the first word of "$ac_prog", so it can be a program name with args. 11185set dummy $ac_prog; ac_word=$2 11186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11187$as_echo_n "checking for $ac_word... " >&6; } 11188if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11189 $as_echo_n "(cached) " >&6 11190else 11191 if test -n "$ac_ct_DUMPBIN"; then 11192 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11193else 11194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11195for as_dir in $PATH 11196do 11197 IFS=$as_save_IFS 11198 test -z "$as_dir" && as_dir=. 11199 for ac_exec_ext in '' $ac_executable_extensions; do 11200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11201 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11203 break 2 11204 fi 11205done 11206 done 11207IFS=$as_save_IFS 11208 11209fi 11210fi 11211ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11212if test -n "$ac_ct_DUMPBIN"; then 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11214$as_echo "$ac_ct_DUMPBIN" >&6; } 11215else 11216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11217$as_echo "no" >&6; } 11218fi 11219 11220 11221 test -n "$ac_ct_DUMPBIN" && break 11222done 11223 11224 if test "x$ac_ct_DUMPBIN" = x; then 11225 DUMPBIN=":" 11226 else 11227 case $cross_compiling:$ac_tool_warned in 11228yes:) 11229{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11230$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11231ac_tool_warned=yes ;; 11232esac 11233 DUMPBIN=$ac_ct_DUMPBIN 11234 fi 11235fi 11236 11237 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11238 *COFF*) 11239 DUMPBIN="$DUMPBIN -symbols" 11240 ;; 11241 *) 11242 DUMPBIN=: 11243 ;; 11244 esac 11245 fi 11246 11247 if test "$DUMPBIN" != ":"; then 11248 NM="$DUMPBIN" 11249 fi 11250fi 11251test -z "$NM" && NM=nm 11252 11253 11254 11255 11256 11257 11258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11259$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11260if ${lt_cv_nm_interface+:} false; then : 11261 $as_echo_n "(cached) " >&6 11262else 11263 lt_cv_nm_interface="BSD nm" 11264 echo "int some_variable = 0;" > conftest.$ac_ext 11265 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11266 (eval "$ac_compile" 2>conftest.err) 11267 cat conftest.err >&5 11268 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11269 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11270 cat conftest.err >&5 11271 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11272 cat conftest.out >&5 11273 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11274 lt_cv_nm_interface="MS dumpbin" 11275 fi 11276 rm -f conftest* 11277fi 11278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11279$as_echo "$lt_cv_nm_interface" >&6; } 11280 11281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11282$as_echo_n "checking whether ln -s works... " >&6; } 11283LN_S=$as_ln_s 11284if test "$LN_S" = "ln -s"; then 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11286$as_echo "yes" >&6; } 11287else 11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11289$as_echo "no, using $LN_S" >&6; } 11290fi 11291 11292# find the maximum length of command line arguments 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11294$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11295if ${lt_cv_sys_max_cmd_len+:} false; then : 11296 $as_echo_n "(cached) " >&6 11297else 11298 i=0 11299 teststring="ABCD" 11300 11301 case $build_os in 11302 msdosdjgpp*) 11303 # On DJGPP, this test can blow up pretty badly due to problems in libc 11304 # (any single argument exceeding 2000 bytes causes a buffer overrun 11305 # during glob expansion). Even if it were fixed, the result of this 11306 # check would be larger than it should be. 11307 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11308 ;; 11309 11310 gnu*) 11311 # Under GNU Hurd, this test is not required because there is 11312 # no limit to the length of command line arguments. 11313 # Libtool will interpret -1 as no limit whatsoever 11314 lt_cv_sys_max_cmd_len=-1; 11315 ;; 11316 11317 cygwin* | mingw* | cegcc*) 11318 # On Win9x/ME, this test blows up -- it succeeds, but takes 11319 # about 5 minutes as the teststring grows exponentially. 11320 # Worse, since 9x/ME are not pre-emptively multitasking, 11321 # you end up with a "frozen" computer, even though with patience 11322 # the test eventually succeeds (with a max line length of 256k). 11323 # Instead, let's just punt: use the minimum linelength reported by 11324 # all of the supported platforms: 8192 (on NT/2K/XP). 11325 lt_cv_sys_max_cmd_len=8192; 11326 ;; 11327 11328 mint*) 11329 # On MiNT this can take a long time and run out of memory. 11330 lt_cv_sys_max_cmd_len=8192; 11331 ;; 11332 11333 amigaos*) 11334 # On AmigaOS with pdksh, this test takes hours, literally. 11335 # So we just punt and use a minimum line length of 8192. 11336 lt_cv_sys_max_cmd_len=8192; 11337 ;; 11338 11339 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11340 # This has been around since 386BSD, at least. Likely further. 11341 if test -x /sbin/sysctl; then 11342 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11343 elif test -x /usr/sbin/sysctl; then 11344 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11345 else 11346 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11347 fi 11348 # And add a safety zone 11349 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11351 ;; 11352 11353 interix*) 11354 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11355 lt_cv_sys_max_cmd_len=196608 11356 ;; 11357 11358 osf*) 11359 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11360 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11361 # nice to cause kernel panics so lets avoid the loop below. 11362 # First set a reasonable default. 11363 lt_cv_sys_max_cmd_len=16384 11364 # 11365 if test -x /sbin/sysconfig; then 11366 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11367 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11368 esac 11369 fi 11370 ;; 11371 sco3.2v5*) 11372 lt_cv_sys_max_cmd_len=102400 11373 ;; 11374 sysv5* | sco5v6* | sysv4.2uw2*) 11375 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11376 if test -n "$kargmax"; then 11377 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11378 else 11379 lt_cv_sys_max_cmd_len=32768 11380 fi 11381 ;; 11382 *) 11383 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11384 if test -n "$lt_cv_sys_max_cmd_len"; then 11385 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11386 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11387 else 11388 # Make teststring a little bigger before we do anything with it. 11389 # a 1K string should be a reasonable start. 11390 for i in 1 2 3 4 5 6 7 8 ; do 11391 teststring=$teststring$teststring 11392 done 11393 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11394 # If test is not a shell built-in, we'll probably end up computing a 11395 # maximum length that is only half of the actual maximum length, but 11396 # we can't tell. 11397 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 11398 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11399 test $i != 17 # 1/2 MB should be enough 11400 do 11401 i=`expr $i + 1` 11402 teststring=$teststring$teststring 11403 done 11404 # Only check the string length outside the loop. 11405 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11406 teststring= 11407 # Add a significant safety factor because C++ compilers can tack on 11408 # massive amounts of additional arguments before passing them to the 11409 # linker. It appears as though 1/2 is a usable value. 11410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11411 fi 11412 ;; 11413 esac 11414 11415fi 11416 11417if test -n $lt_cv_sys_max_cmd_len ; then 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11419$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11420else 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11422$as_echo "none" >&6; } 11423fi 11424max_cmd_len=$lt_cv_sys_max_cmd_len 11425 11426 11427 11428 11429 11430 11431: ${CP="cp -f"} 11432: ${MV="mv -f"} 11433: ${RM="rm -f"} 11434 11435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11436$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11437# Try some XSI features 11438xsi_shell=no 11439( _lt_dummy="a/b/c" 11440 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11441 = c,a/b,b/c, \ 11442 && eval 'test $(( 1 + 1 )) -eq 2 \ 11443 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11444 && xsi_shell=yes 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11446$as_echo "$xsi_shell" >&6; } 11447 11448 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11450$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11451lt_shell_append=no 11452( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11453 >/dev/null 2>&1 \ 11454 && lt_shell_append=yes 11455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11456$as_echo "$lt_shell_append" >&6; } 11457 11458 11459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11460 lt_unset=unset 11461else 11462 lt_unset=false 11463fi 11464 11465 11466 11467 11468 11469# test EBCDIC or ASCII 11470case `echo X|tr X '\101'` in 11471 A) # ASCII based system 11472 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11473 lt_SP2NL='tr \040 \012' 11474 lt_NL2SP='tr \015\012 \040\040' 11475 ;; 11476 *) # EBCDIC based system 11477 lt_SP2NL='tr \100 \n' 11478 lt_NL2SP='tr \r\n \100\100' 11479 ;; 11480esac 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11491$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11492if ${lt_cv_to_host_file_cmd+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494else 11495 case $host in 11496 *-*-mingw* ) 11497 case $build in 11498 *-*-mingw* ) # actually msys 11499 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11500 ;; 11501 *-*-cygwin* ) 11502 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11503 ;; 11504 * ) # otherwise, assume *nix 11505 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11506 ;; 11507 esac 11508 ;; 11509 *-*-cygwin* ) 11510 case $build in 11511 *-*-mingw* ) # actually msys 11512 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11513 ;; 11514 *-*-cygwin* ) 11515 lt_cv_to_host_file_cmd=func_convert_file_noop 11516 ;; 11517 * ) # otherwise, assume *nix 11518 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11519 ;; 11520 esac 11521 ;; 11522 * ) # unhandled hosts (and "normal" native builds) 11523 lt_cv_to_host_file_cmd=func_convert_file_noop 11524 ;; 11525esac 11526 11527fi 11528 11529to_host_file_cmd=$lt_cv_to_host_file_cmd 11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11531$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11532 11533 11534 11535 11536 11537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11538$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11539if ${lt_cv_to_tool_file_cmd+:} false; then : 11540 $as_echo_n "(cached) " >&6 11541else 11542 #assume ordinary cross tools, or native build. 11543lt_cv_to_tool_file_cmd=func_convert_file_noop 11544case $host in 11545 *-*-mingw* ) 11546 case $build in 11547 *-*-mingw* ) # actually msys 11548 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11549 ;; 11550 esac 11551 ;; 11552esac 11553 11554fi 11555 11556to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11558$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11559 11560 11561 11562 11563 11564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11565$as_echo_n "checking for $LD option to reload object files... " >&6; } 11566if ${lt_cv_ld_reload_flag+:} false; then : 11567 $as_echo_n "(cached) " >&6 11568else 11569 lt_cv_ld_reload_flag='-r' 11570fi 11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11572$as_echo "$lt_cv_ld_reload_flag" >&6; } 11573reload_flag=$lt_cv_ld_reload_flag 11574case $reload_flag in 11575"" | " "*) ;; 11576*) reload_flag=" $reload_flag" ;; 11577esac 11578reload_cmds='$LD$reload_flag -o $output$reload_objs' 11579case $host_os in 11580 cygwin* | mingw* | pw32* | cegcc*) 11581 if test "$GCC" != yes; then 11582 reload_cmds=false 11583 fi 11584 ;; 11585 darwin*) 11586 if test "$GCC" = yes; then 11587 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11588 else 11589 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11590 fi 11591 ;; 11592esac 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602if test -n "$ac_tool_prefix"; then 11603 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11604set dummy ${ac_tool_prefix}objdump; ac_word=$2 11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11606$as_echo_n "checking for $ac_word... " >&6; } 11607if ${ac_cv_prog_OBJDUMP+:} false; then : 11608 $as_echo_n "(cached) " >&6 11609else 11610 if test -n "$OBJDUMP"; then 11611 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11612else 11613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11614for as_dir in $PATH 11615do 11616 IFS=$as_save_IFS 11617 test -z "$as_dir" && as_dir=. 11618 for ac_exec_ext in '' $ac_executable_extensions; do 11619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11620 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11622 break 2 11623 fi 11624done 11625 done 11626IFS=$as_save_IFS 11627 11628fi 11629fi 11630OBJDUMP=$ac_cv_prog_OBJDUMP 11631if test -n "$OBJDUMP"; then 11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11633$as_echo "$OBJDUMP" >&6; } 11634else 11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11636$as_echo "no" >&6; } 11637fi 11638 11639 11640fi 11641if test -z "$ac_cv_prog_OBJDUMP"; then 11642 ac_ct_OBJDUMP=$OBJDUMP 11643 # Extract the first word of "objdump", so it can be a program name with args. 11644set dummy objdump; ac_word=$2 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11646$as_echo_n "checking for $ac_word... " >&6; } 11647if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11648 $as_echo_n "(cached) " >&6 11649else 11650 if test -n "$ac_ct_OBJDUMP"; then 11651 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11652else 11653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11654for as_dir in $PATH 11655do 11656 IFS=$as_save_IFS 11657 test -z "$as_dir" && as_dir=. 11658 for ac_exec_ext in '' $ac_executable_extensions; do 11659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11660 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11662 break 2 11663 fi 11664done 11665 done 11666IFS=$as_save_IFS 11667 11668fi 11669fi 11670ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11671if test -n "$ac_ct_OBJDUMP"; then 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11673$as_echo "$ac_ct_OBJDUMP" >&6; } 11674else 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11676$as_echo "no" >&6; } 11677fi 11678 11679 if test "x$ac_ct_OBJDUMP" = x; then 11680 OBJDUMP="false" 11681 else 11682 case $cross_compiling:$ac_tool_warned in 11683yes:) 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11686ac_tool_warned=yes ;; 11687esac 11688 OBJDUMP=$ac_ct_OBJDUMP 11689 fi 11690else 11691 OBJDUMP="$ac_cv_prog_OBJDUMP" 11692fi 11693 11694test -z "$OBJDUMP" && OBJDUMP=objdump 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11705$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11706if ${lt_cv_deplibs_check_method+:} false; then : 11707 $as_echo_n "(cached) " >&6 11708else 11709 lt_cv_file_magic_cmd='$MAGIC_CMD' 11710lt_cv_file_magic_test_file= 11711lt_cv_deplibs_check_method='unknown' 11712# Need to set the preceding variable on all platforms that support 11713# interlibrary dependencies. 11714# 'none' -- dependencies not supported. 11715# `unknown' -- same as none, but documents that we really don't know. 11716# 'pass_all' -- all dependencies passed with no checks. 11717# 'test_compile' -- check by making test program. 11718# 'file_magic [[regex]]' -- check by looking for files in library path 11719# which responds to the $file_magic_cmd with a given extended regex. 11720# If you have `file' or equivalent on your system and you're not sure 11721# whether `pass_all' will *always* work, you probably want this one. 11722 11723case $host_os in 11724aix[4-9]*) 11725 lt_cv_deplibs_check_method=pass_all 11726 ;; 11727 11728beos*) 11729 lt_cv_deplibs_check_method=pass_all 11730 ;; 11731 11732bsdi[45]*) 11733 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11734 lt_cv_file_magic_cmd='/usr/bin/file -L' 11735 lt_cv_file_magic_test_file=/shlib/libc.so 11736 ;; 11737 11738cygwin*) 11739 # func_win32_libid is a shell function defined in ltmain.sh 11740 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11741 lt_cv_file_magic_cmd='func_win32_libid' 11742 ;; 11743 11744mingw* | pw32*) 11745 # Base MSYS/MinGW do not provide the 'file' command needed by 11746 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11747 # unless we find 'file', for example because we are cross-compiling. 11748 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11749 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11750 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11751 lt_cv_file_magic_cmd='func_win32_libid' 11752 else 11753 # Keep this pattern in sync with the one in func_win32_libid. 11754 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11755 lt_cv_file_magic_cmd='$OBJDUMP -f' 11756 fi 11757 ;; 11758 11759cegcc*) 11760 # use the weaker test based on 'objdump'. See mingw*. 11761 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11762 lt_cv_file_magic_cmd='$OBJDUMP -f' 11763 ;; 11764 11765darwin* | rhapsody*) 11766 lt_cv_deplibs_check_method=pass_all 11767 ;; 11768 11769freebsd* | dragonfly*) 11770 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11771 case $host_cpu in 11772 i*86 ) 11773 # Not sure whether the presence of OpenBSD here was a mistake. 11774 # Let's accept both of them until this is cleared up. 11775 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11776 lt_cv_file_magic_cmd=/usr/bin/file 11777 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11778 ;; 11779 esac 11780 else 11781 lt_cv_deplibs_check_method=pass_all 11782 fi 11783 ;; 11784 11785gnu*) 11786 lt_cv_deplibs_check_method=pass_all 11787 ;; 11788 11789haiku*) 11790 lt_cv_deplibs_check_method=pass_all 11791 ;; 11792 11793hpux10.20* | hpux11*) 11794 lt_cv_file_magic_cmd=/usr/bin/file 11795 case $host_cpu in 11796 ia64*) 11797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11798 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11799 ;; 11800 hppa*64*) 11801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 11802 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11803 ;; 11804 *) 11805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11806 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11807 ;; 11808 esac 11809 ;; 11810 11811interix[3-9]*) 11812 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 11813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 11814 ;; 11815 11816irix5* | irix6* | nonstopux*) 11817 case $LD in 11818 *-32|*"-32 ") libmagic=32-bit;; 11819 *-n32|*"-n32 ") libmagic=N32;; 11820 *-64|*"-64 ") libmagic=64-bit;; 11821 *) libmagic=never-match;; 11822 esac 11823 lt_cv_deplibs_check_method=pass_all 11824 ;; 11825 11826# This must be Linux ELF. 11827linux* | k*bsd*-gnu | kopensolaris*-gnu) 11828 lt_cv_deplibs_check_method=pass_all 11829 ;; 11830 11831netbsd*) 11832 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11834 else 11835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 11836 fi 11837 ;; 11838 11839newos6*) 11840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 11841 lt_cv_file_magic_cmd=/usr/bin/file 11842 lt_cv_file_magic_test_file=/usr/lib/libnls.so 11843 ;; 11844 11845*nto* | *qnx*) 11846 lt_cv_deplibs_check_method=pass_all 11847 ;; 11848 11849openbsd*) 11850 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 11852 else 11853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 11854 fi 11855 ;; 11856 11857osf3* | osf4* | osf5*) 11858 lt_cv_deplibs_check_method=pass_all 11859 ;; 11860 11861rdos*) 11862 lt_cv_deplibs_check_method=pass_all 11863 ;; 11864 11865solaris*) 11866 lt_cv_deplibs_check_method=pass_all 11867 ;; 11868 11869sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11870 lt_cv_deplibs_check_method=pass_all 11871 ;; 11872 11873sysv4 | sysv4.3*) 11874 case $host_vendor in 11875 motorola) 11876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' 11877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 11878 ;; 11879 ncr) 11880 lt_cv_deplibs_check_method=pass_all 11881 ;; 11882 sequent) 11883 lt_cv_file_magic_cmd='/bin/file' 11884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 11885 ;; 11886 sni) 11887 lt_cv_file_magic_cmd='/bin/file' 11888 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 11889 lt_cv_file_magic_test_file=/lib/libc.so 11890 ;; 11891 siemens) 11892 lt_cv_deplibs_check_method=pass_all 11893 ;; 11894 pc) 11895 lt_cv_deplibs_check_method=pass_all 11896 ;; 11897 esac 11898 ;; 11899 11900tpf*) 11901 lt_cv_deplibs_check_method=pass_all 11902 ;; 11903esac 11904 11905fi 11906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 11907$as_echo "$lt_cv_deplibs_check_method" >&6; } 11908 11909file_magic_glob= 11910want_nocaseglob=no 11911if test "$build" = "$host"; then 11912 case $host_os in 11913 mingw* | pw32*) 11914 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 11915 want_nocaseglob=yes 11916 else 11917 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 11918 fi 11919 ;; 11920 esac 11921fi 11922 11923file_magic_cmd=$lt_cv_file_magic_cmd 11924deplibs_check_method=$lt_cv_deplibs_check_method 11925test -z "$deplibs_check_method" && deplibs_check_method=unknown 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948if test -n "$ac_tool_prefix"; then 11949 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11950set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11952$as_echo_n "checking for $ac_word... " >&6; } 11953if ${ac_cv_prog_DLLTOOL+:} false; then : 11954 $as_echo_n "(cached) " >&6 11955else 11956 if test -n "$DLLTOOL"; then 11957 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11958else 11959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11960for as_dir in $PATH 11961do 11962 IFS=$as_save_IFS 11963 test -z "$as_dir" && as_dir=. 11964 for ac_exec_ext in '' $ac_executable_extensions; do 11965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11966 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11968 break 2 11969 fi 11970done 11971 done 11972IFS=$as_save_IFS 11973 11974fi 11975fi 11976DLLTOOL=$ac_cv_prog_DLLTOOL 11977if test -n "$DLLTOOL"; then 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11979$as_echo "$DLLTOOL" >&6; } 11980else 11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11982$as_echo "no" >&6; } 11983fi 11984 11985 11986fi 11987if test -z "$ac_cv_prog_DLLTOOL"; then 11988 ac_ct_DLLTOOL=$DLLTOOL 11989 # Extract the first word of "dlltool", so it can be a program name with args. 11990set dummy dlltool; ac_word=$2 11991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11992$as_echo_n "checking for $ac_word... " >&6; } 11993if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 11994 $as_echo_n "(cached) " >&6 11995else 11996 if test -n "$ac_ct_DLLTOOL"; then 11997 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11998else 11999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12000for as_dir in $PATH 12001do 12002 IFS=$as_save_IFS 12003 test -z "$as_dir" && as_dir=. 12004 for ac_exec_ext in '' $ac_executable_extensions; do 12005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12006 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12008 break 2 12009 fi 12010done 12011 done 12012IFS=$as_save_IFS 12013 12014fi 12015fi 12016ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12017if test -n "$ac_ct_DLLTOOL"; then 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12019$as_echo "$ac_ct_DLLTOOL" >&6; } 12020else 12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12022$as_echo "no" >&6; } 12023fi 12024 12025 if test "x$ac_ct_DLLTOOL" = x; then 12026 DLLTOOL="false" 12027 else 12028 case $cross_compiling:$ac_tool_warned in 12029yes:) 12030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12032ac_tool_warned=yes ;; 12033esac 12034 DLLTOOL=$ac_ct_DLLTOOL 12035 fi 12036else 12037 DLLTOOL="$ac_cv_prog_DLLTOOL" 12038fi 12039 12040test -z "$DLLTOOL" && DLLTOOL=dlltool 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12052$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12053if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12054 $as_echo_n "(cached) " >&6 12055else 12056 lt_cv_sharedlib_from_linklib_cmd='unknown' 12057 12058case $host_os in 12059cygwin* | mingw* | pw32* | cegcc*) 12060 # two different shell functions defined in ltmain.sh 12061 # decide which to use based on capabilities of $DLLTOOL 12062 case `$DLLTOOL --help 2>&1` in 12063 *--identify-strict*) 12064 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12065 ;; 12066 *) 12067 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12068 ;; 12069 esac 12070 ;; 12071*) 12072 # fallback: assume linklib IS sharedlib 12073 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12074 ;; 12075esac 12076 12077fi 12078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12079$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12080sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12081test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12082 12083 12084 12085 12086 12087 12088 12089if test -n "$ac_tool_prefix"; then 12090 for ac_prog in ar 12091 do 12092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12093set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12095$as_echo_n "checking for $ac_word... " >&6; } 12096if ${ac_cv_prog_AR+:} false; then : 12097 $as_echo_n "(cached) " >&6 12098else 12099 if test -n "$AR"; then 12100 ac_cv_prog_AR="$AR" # Let the user override the test. 12101else 12102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12103for as_dir in $PATH 12104do 12105 IFS=$as_save_IFS 12106 test -z "$as_dir" && as_dir=. 12107 for ac_exec_ext in '' $ac_executable_extensions; do 12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12109 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12111 break 2 12112 fi 12113done 12114 done 12115IFS=$as_save_IFS 12116 12117fi 12118fi 12119AR=$ac_cv_prog_AR 12120if test -n "$AR"; then 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12122$as_echo "$AR" >&6; } 12123else 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12125$as_echo "no" >&6; } 12126fi 12127 12128 12129 test -n "$AR" && break 12130 done 12131fi 12132if test -z "$AR"; then 12133 ac_ct_AR=$AR 12134 for ac_prog in ar 12135do 12136 # Extract the first word of "$ac_prog", so it can be a program name with args. 12137set dummy $ac_prog; ac_word=$2 12138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12139$as_echo_n "checking for $ac_word... " >&6; } 12140if ${ac_cv_prog_ac_ct_AR+:} false; then : 12141 $as_echo_n "(cached) " >&6 12142else 12143 if test -n "$ac_ct_AR"; then 12144 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12145else 12146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12147for as_dir in $PATH 12148do 12149 IFS=$as_save_IFS 12150 test -z "$as_dir" && as_dir=. 12151 for ac_exec_ext in '' $ac_executable_extensions; do 12152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12153 ac_cv_prog_ac_ct_AR="$ac_prog" 12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12155 break 2 12156 fi 12157done 12158 done 12159IFS=$as_save_IFS 12160 12161fi 12162fi 12163ac_ct_AR=$ac_cv_prog_ac_ct_AR 12164if test -n "$ac_ct_AR"; then 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12166$as_echo "$ac_ct_AR" >&6; } 12167else 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12169$as_echo "no" >&6; } 12170fi 12171 12172 12173 test -n "$ac_ct_AR" && break 12174done 12175 12176 if test "x$ac_ct_AR" = x; then 12177 AR="false" 12178 else 12179 case $cross_compiling:$ac_tool_warned in 12180yes:) 12181{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12182$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12183ac_tool_warned=yes ;; 12184esac 12185 AR=$ac_ct_AR 12186 fi 12187fi 12188 12189: ${AR=ar} 12190: ${AR_FLAGS=cru} 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12203$as_echo_n "checking for archiver @FILE support... " >&6; } 12204if ${lt_cv_ar_at_file+:} false; then : 12205 $as_echo_n "(cached) " >&6 12206else 12207 lt_cv_ar_at_file=no 12208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12209/* end confdefs.h. */ 12210 12211int 12212main () 12213{ 12214 12215 ; 12216 return 0; 12217} 12218_ACEOF 12219if ac_fn_c_try_compile "$LINENO"; then : 12220 echo conftest.$ac_objext > conftest.lst 12221 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12223 (eval $lt_ar_try) 2>&5 12224 ac_status=$? 12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12226 test $ac_status = 0; } 12227 if test "$ac_status" -eq 0; then 12228 # Ensure the archiver fails upon bogus file names. 12229 rm -f conftest.$ac_objext libconftest.a 12230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12231 (eval $lt_ar_try) 2>&5 12232 ac_status=$? 12233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12234 test $ac_status = 0; } 12235 if test "$ac_status" -ne 0; then 12236 lt_cv_ar_at_file=@ 12237 fi 12238 fi 12239 rm -f conftest.* libconftest.a 12240 12241fi 12242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12243 12244fi 12245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12246$as_echo "$lt_cv_ar_at_file" >&6; } 12247 12248if test "x$lt_cv_ar_at_file" = xno; then 12249 archiver_list_spec= 12250else 12251 archiver_list_spec=$lt_cv_ar_at_file 12252fi 12253 12254 12255 12256 12257 12258 12259 12260if test -n "$ac_tool_prefix"; then 12261 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12262set dummy ${ac_tool_prefix}strip; ac_word=$2 12263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12264$as_echo_n "checking for $ac_word... " >&6; } 12265if ${ac_cv_prog_STRIP+:} false; then : 12266 $as_echo_n "(cached) " >&6 12267else 12268 if test -n "$STRIP"; then 12269 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12270else 12271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12272for as_dir in $PATH 12273do 12274 IFS=$as_save_IFS 12275 test -z "$as_dir" && as_dir=. 12276 for ac_exec_ext in '' $ac_executable_extensions; do 12277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12278 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12280 break 2 12281 fi 12282done 12283 done 12284IFS=$as_save_IFS 12285 12286fi 12287fi 12288STRIP=$ac_cv_prog_STRIP 12289if test -n "$STRIP"; then 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12291$as_echo "$STRIP" >&6; } 12292else 12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12294$as_echo "no" >&6; } 12295fi 12296 12297 12298fi 12299if test -z "$ac_cv_prog_STRIP"; then 12300 ac_ct_STRIP=$STRIP 12301 # Extract the first word of "strip", so it can be a program name with args. 12302set dummy strip; ac_word=$2 12303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12304$as_echo_n "checking for $ac_word... " >&6; } 12305if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12306 $as_echo_n "(cached) " >&6 12307else 12308 if test -n "$ac_ct_STRIP"; then 12309 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12310else 12311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12312for as_dir in $PATH 12313do 12314 IFS=$as_save_IFS 12315 test -z "$as_dir" && as_dir=. 12316 for ac_exec_ext in '' $ac_executable_extensions; do 12317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12318 ac_cv_prog_ac_ct_STRIP="strip" 12319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12320 break 2 12321 fi 12322done 12323 done 12324IFS=$as_save_IFS 12325 12326fi 12327fi 12328ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12329if test -n "$ac_ct_STRIP"; then 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12331$as_echo "$ac_ct_STRIP" >&6; } 12332else 12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12334$as_echo "no" >&6; } 12335fi 12336 12337 if test "x$ac_ct_STRIP" = x; then 12338 STRIP=":" 12339 else 12340 case $cross_compiling:$ac_tool_warned in 12341yes:) 12342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12344ac_tool_warned=yes ;; 12345esac 12346 STRIP=$ac_ct_STRIP 12347 fi 12348else 12349 STRIP="$ac_cv_prog_STRIP" 12350fi 12351 12352test -z "$STRIP" && STRIP=: 12353 12354 12355 12356 12357 12358 12359if test -n "$ac_tool_prefix"; then 12360 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12361set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12363$as_echo_n "checking for $ac_word... " >&6; } 12364if ${ac_cv_prog_RANLIB+:} false; then : 12365 $as_echo_n "(cached) " >&6 12366else 12367 if test -n "$RANLIB"; then 12368 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12369else 12370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12371for as_dir in $PATH 12372do 12373 IFS=$as_save_IFS 12374 test -z "$as_dir" && as_dir=. 12375 for ac_exec_ext in '' $ac_executable_extensions; do 12376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12377 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12379 break 2 12380 fi 12381done 12382 done 12383IFS=$as_save_IFS 12384 12385fi 12386fi 12387RANLIB=$ac_cv_prog_RANLIB 12388if test -n "$RANLIB"; then 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12390$as_echo "$RANLIB" >&6; } 12391else 12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12393$as_echo "no" >&6; } 12394fi 12395 12396 12397fi 12398if test -z "$ac_cv_prog_RANLIB"; then 12399 ac_ct_RANLIB=$RANLIB 12400 # Extract the first word of "ranlib", so it can be a program name with args. 12401set dummy ranlib; ac_word=$2 12402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12403$as_echo_n "checking for $ac_word... " >&6; } 12404if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12405 $as_echo_n "(cached) " >&6 12406else 12407 if test -n "$ac_ct_RANLIB"; then 12408 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12409else 12410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12411for as_dir in $PATH 12412do 12413 IFS=$as_save_IFS 12414 test -z "$as_dir" && as_dir=. 12415 for ac_exec_ext in '' $ac_executable_extensions; do 12416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12417 ac_cv_prog_ac_ct_RANLIB="ranlib" 12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12419 break 2 12420 fi 12421done 12422 done 12423IFS=$as_save_IFS 12424 12425fi 12426fi 12427ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12428if test -n "$ac_ct_RANLIB"; then 12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12430$as_echo "$ac_ct_RANLIB" >&6; } 12431else 12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12433$as_echo "no" >&6; } 12434fi 12435 12436 if test "x$ac_ct_RANLIB" = x; then 12437 RANLIB=":" 12438 else 12439 case $cross_compiling:$ac_tool_warned in 12440yes:) 12441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12443ac_tool_warned=yes ;; 12444esac 12445 RANLIB=$ac_ct_RANLIB 12446 fi 12447else 12448 RANLIB="$ac_cv_prog_RANLIB" 12449fi 12450 12451test -z "$RANLIB" && RANLIB=: 12452 12453 12454 12455 12456 12457 12458# Determine commands to create old-style static archives. 12459old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12460old_postinstall_cmds='chmod 644 $oldlib' 12461old_postuninstall_cmds= 12462 12463if test -n "$RANLIB"; then 12464 case $host_os in 12465 openbsd*) 12466 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 12467 ;; 12468 *) 12469 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 12470 ;; 12471 esac 12472 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 12473fi 12474 12475case $host_os in 12476 darwin*) 12477 lock_old_archive_extraction=yes ;; 12478 *) 12479 lock_old_archive_extraction=no ;; 12480esac 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520# If no C compiler was specified, use CC. 12521LTCC=${LTCC-"$CC"} 12522 12523# If no C compiler flags were specified, use CFLAGS. 12524LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12525 12526# Allow CC to be a program name with arguments. 12527compiler=$CC 12528 12529 12530# Check for command to grab the raw symbol name followed by C symbol from nm. 12531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12532$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12533if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12534 $as_echo_n "(cached) " >&6 12535else 12536 12537# These are sane defaults that work on at least a few old systems. 12538# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12539 12540# Character class describing NM global symbol codes. 12541symcode='[BCDEGRST]' 12542 12543# Regexp to match symbols that can be accessed directly from C. 12544sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12545 12546# Define system-specific variables. 12547case $host_os in 12548aix*) 12549 symcode='[BCDT]' 12550 ;; 12551cygwin* | mingw* | pw32* | cegcc*) 12552 symcode='[ABCDGISTW]' 12553 ;; 12554hpux*) 12555 if test "$host_cpu" = ia64; then 12556 symcode='[ABCDEGRST]' 12557 fi 12558 ;; 12559irix* | nonstopux*) 12560 symcode='[BCDEGRST]' 12561 ;; 12562osf*) 12563 symcode='[BCDEGQRST]' 12564 ;; 12565solaris*) 12566 symcode='[BDRT]' 12567 ;; 12568sco3.2v5*) 12569 symcode='[DT]' 12570 ;; 12571sysv4.2uw2*) 12572 symcode='[DT]' 12573 ;; 12574sysv5* | sco5v6* | unixware* | OpenUNIX*) 12575 symcode='[ABDT]' 12576 ;; 12577sysv4) 12578 symcode='[DFNSTU]' 12579 ;; 12580esac 12581 12582# If we're using GNU nm, then use its standard symbol codes. 12583case `$NM -V 2>&1` in 12584*GNU* | *'with BFD'*) 12585 symcode='[ABCDGIRSTW]' ;; 12586esac 12587 12588# Transform an extracted symbol line into a proper C declaration. 12589# Some systems (esp. on ia64) link data and code symbols differently, 12590# so use this general approach. 12591lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12592 12593# Transform an extracted symbol line into symbol name and symbol address 12594lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12595lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 12596 12597# Handle CRLF in mingw tool chain 12598opt_cr= 12599case $build_os in 12600mingw*) 12601 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12602 ;; 12603esac 12604 12605# Try without a prefix underscore, then with it. 12606for ac_symprfx in "" "_"; do 12607 12608 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12609 symxfrm="\\1 $ac_symprfx\\2 \\2" 12610 12611 # Write the raw and C identifiers. 12612 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12613 # Fake it for dumpbin and say T for any non-static function 12614 # and D for any global variable. 12615 # Also find C++ and __fastcall symbols from MSVC++, 12616 # which start with @ or ?. 12617 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12618" {last_section=section; section=\$ 3};"\ 12619" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12620" \$ 0!~/External *\|/{next};"\ 12621" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12622" {if(hide[section]) next};"\ 12623" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12624" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12625" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12626" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12627" ' prfx=^$ac_symprfx" 12628 else 12629 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12630 fi 12631 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12632 12633 # Check to see that the pipe works correctly. 12634 pipe_works=no 12635 12636 rm -f conftest* 12637 cat > conftest.$ac_ext <<_LT_EOF 12638#ifdef __cplusplus 12639extern "C" { 12640#endif 12641char nm_test_var; 12642void nm_test_func(void); 12643void nm_test_func(void){} 12644#ifdef __cplusplus 12645} 12646#endif 12647int main(){nm_test_var='a';nm_test_func();return(0);} 12648_LT_EOF 12649 12650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12651 (eval $ac_compile) 2>&5 12652 ac_status=$? 12653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12654 test $ac_status = 0; }; then 12655 # Now try to grab the symbols. 12656 nlist=conftest.nm 12657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12658 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12659 ac_status=$? 12660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12661 test $ac_status = 0; } && test -s "$nlist"; then 12662 # Try sorting and uniquifying the output. 12663 if sort "$nlist" | uniq > "$nlist"T; then 12664 mv -f "$nlist"T "$nlist" 12665 else 12666 rm -f "$nlist"T 12667 fi 12668 12669 # Make sure that we snagged all the symbols we need. 12670 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12671 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12672 cat <<_LT_EOF > conftest.$ac_ext 12673/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12674#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12675/* DATA imports from DLLs on WIN32 con't be const, because runtime 12676 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12677# define LT_DLSYM_CONST 12678#elif defined(__osf__) 12679/* This system does not cope well with relocations in const data. */ 12680# define LT_DLSYM_CONST 12681#else 12682# define LT_DLSYM_CONST const 12683#endif 12684 12685#ifdef __cplusplus 12686extern "C" { 12687#endif 12688 12689_LT_EOF 12690 # Now generate the symbol file. 12691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12692 12693 cat <<_LT_EOF >> conftest.$ac_ext 12694 12695/* The mapping between symbol names and symbols. */ 12696LT_DLSYM_CONST struct { 12697 const char *name; 12698 void *address; 12699} 12700lt__PROGRAM__LTX_preloaded_symbols[] = 12701{ 12702 { "@PROGRAM@", (void *) 0 }, 12703_LT_EOF 12704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12705 cat <<\_LT_EOF >> conftest.$ac_ext 12706 {0, (void *) 0} 12707}; 12708 12709/* This works around a problem in FreeBSD linker */ 12710#ifdef FREEBSD_WORKAROUND 12711static const void *lt_preloaded_setup() { 12712 return lt__PROGRAM__LTX_preloaded_symbols; 12713} 12714#endif 12715 12716#ifdef __cplusplus 12717} 12718#endif 12719_LT_EOF 12720 # Now try linking the two files. 12721 mv conftest.$ac_objext conftstm.$ac_objext 12722 lt_globsym_save_LIBS=$LIBS 12723 lt_globsym_save_CFLAGS=$CFLAGS 12724 LIBS="conftstm.$ac_objext" 12725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12727 (eval $ac_link) 2>&5 12728 ac_status=$? 12729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12731 pipe_works=yes 12732 fi 12733 LIBS=$lt_globsym_save_LIBS 12734 CFLAGS=$lt_globsym_save_CFLAGS 12735 else 12736 echo "cannot find nm_test_func in $nlist" >&5 12737 fi 12738 else 12739 echo "cannot find nm_test_var in $nlist" >&5 12740 fi 12741 else 12742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12743 fi 12744 else 12745 echo "$progname: failed program was:" >&5 12746 cat conftest.$ac_ext >&5 12747 fi 12748 rm -rf conftest* conftst* 12749 12750 # Do not use the global_symbol_pipe unless it works. 12751 if test "$pipe_works" = yes; then 12752 break 12753 else 12754 lt_cv_sys_global_symbol_pipe= 12755 fi 12756done 12757 12758fi 12759 12760if test -z "$lt_cv_sys_global_symbol_pipe"; then 12761 lt_cv_sys_global_symbol_to_cdecl= 12762fi 12763if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12765$as_echo "failed" >&6; } 12766else 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12768$as_echo "ok" >&6; } 12769fi 12770 12771# Response file support. 12772if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12773 nm_file_list_spec='@' 12774elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12775 nm_file_list_spec='@' 12776fi 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12805$as_echo_n "checking for sysroot... " >&6; } 12806 12807# Check whether --with-sysroot was given. 12808if test "${with_sysroot+set}" = set; then : 12809 withval=$with_sysroot; 12810else 12811 with_sysroot=no 12812fi 12813 12814 12815lt_sysroot= 12816case ${with_sysroot} in #( 12817 yes) 12818 if test "$GCC" = yes; then 12819 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 12820 fi 12821 ;; #( 12822 /*) 12823 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 12824 ;; #( 12825 no|'') 12826 ;; #( 12827 *) 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 12829$as_echo "${with_sysroot}" >&6; } 12830 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 12831 ;; 12832esac 12833 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 12835$as_echo "${lt_sysroot:-no}" >&6; } 12836 12837 12838 12839 12840 12841# Check whether --enable-libtool-lock was given. 12842if test "${enable_libtool_lock+set}" = set; then : 12843 enableval=$enable_libtool_lock; 12844fi 12845 12846test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 12847 12848# Some flags need to be propagated to the compiler or linker for good 12849# libtool support. 12850case $host in 12851ia64-*-hpux*) 12852 # Find out which ABI we are using. 12853 echo 'int i;' > conftest.$ac_ext 12854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12855 (eval $ac_compile) 2>&5 12856 ac_status=$? 12857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12858 test $ac_status = 0; }; then 12859 case `/usr/bin/file conftest.$ac_objext` in 12860 *ELF-32*) 12861 HPUX_IA64_MODE="32" 12862 ;; 12863 *ELF-64*) 12864 HPUX_IA64_MODE="64" 12865 ;; 12866 esac 12867 fi 12868 rm -rf conftest* 12869 ;; 12870*-*-irix6*) 12871 # Find out which ABI we are using. 12872 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 12873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12874 (eval $ac_compile) 2>&5 12875 ac_status=$? 12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12877 test $ac_status = 0; }; then 12878 if test "$lt_cv_prog_gnu_ld" = yes; then 12879 case `/usr/bin/file conftest.$ac_objext` in 12880 *32-bit*) 12881 LD="${LD-ld} -melf32bsmip" 12882 ;; 12883 *N32*) 12884 LD="${LD-ld} -melf32bmipn32" 12885 ;; 12886 *64-bit*) 12887 LD="${LD-ld} -melf64bmip" 12888 ;; 12889 esac 12890 else 12891 case `/usr/bin/file conftest.$ac_objext` in 12892 *32-bit*) 12893 LD="${LD-ld} -32" 12894 ;; 12895 *N32*) 12896 LD="${LD-ld} -n32" 12897 ;; 12898 *64-bit*) 12899 LD="${LD-ld} -64" 12900 ;; 12901 esac 12902 fi 12903 fi 12904 rm -rf conftest* 12905 ;; 12906 12907x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 12908s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 12909 # Find out which ABI we are using. 12910 echo 'int i;' > conftest.$ac_ext 12911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12912 (eval $ac_compile) 2>&5 12913 ac_status=$? 12914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12915 test $ac_status = 0; }; then 12916 case `/usr/bin/file conftest.o` in 12917 *32-bit*) 12918 case $host in 12919 x86_64-*kfreebsd*-gnu) 12920 LD="${LD-ld} -m elf_i386_fbsd" 12921 ;; 12922 x86_64-*linux*) 12923 LD="${LD-ld} -m elf_i386" 12924 ;; 12925 ppc64-*linux*|powerpc64-*linux*) 12926 LD="${LD-ld} -m elf32ppclinux" 12927 ;; 12928 s390x-*linux*) 12929 LD="${LD-ld} -m elf_s390" 12930 ;; 12931 sparc64-*linux*) 12932 LD="${LD-ld} -m elf32_sparc" 12933 ;; 12934 esac 12935 ;; 12936 *64-bit*) 12937 case $host in 12938 x86_64-*kfreebsd*-gnu) 12939 LD="${LD-ld} -m elf_x86_64_fbsd" 12940 ;; 12941 x86_64-*linux*) 12942 LD="${LD-ld} -m elf_x86_64" 12943 ;; 12944 ppc*-*linux*|powerpc*-*linux*) 12945 LD="${LD-ld} -m elf64ppc" 12946 ;; 12947 s390*-*linux*|s390*-*tpf*) 12948 LD="${LD-ld} -m elf64_s390" 12949 ;; 12950 sparc*-*linux*) 12951 LD="${LD-ld} -m elf64_sparc" 12952 ;; 12953 esac 12954 ;; 12955 esac 12956 fi 12957 rm -rf conftest* 12958 ;; 12959 12960*-*-sco3.2v5*) 12961 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 12962 SAVE_CFLAGS="$CFLAGS" 12963 CFLAGS="$CFLAGS -belf" 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 12965$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 12966if ${lt_cv_cc_needs_belf+:} false; then : 12967 $as_echo_n "(cached) " >&6 12968else 12969 ac_ext=c 12970ac_cpp='$CPP $CPPFLAGS' 12971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12973ac_compiler_gnu=$ac_cv_c_compiler_gnu 12974 12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12976/* end confdefs.h. */ 12977 12978int 12979main () 12980{ 12981 12982 ; 12983 return 0; 12984} 12985_ACEOF 12986if ac_fn_c_try_link "$LINENO"; then : 12987 lt_cv_cc_needs_belf=yes 12988else 12989 lt_cv_cc_needs_belf=no 12990fi 12991rm -f core conftest.err conftest.$ac_objext \ 12992 conftest$ac_exeext conftest.$ac_ext 12993 ac_ext=c 12994ac_cpp='$CPP $CPPFLAGS' 12995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12997ac_compiler_gnu=$ac_cv_c_compiler_gnu 12998 12999fi 13000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13001$as_echo "$lt_cv_cc_needs_belf" >&6; } 13002 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13003 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13004 CFLAGS="$SAVE_CFLAGS" 13005 fi 13006 ;; 13007sparc*-*solaris*) 13008 # Find out which ABI we are using. 13009 echo 'int i;' > conftest.$ac_ext 13010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13011 (eval $ac_compile) 2>&5 13012 ac_status=$? 13013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13014 test $ac_status = 0; }; then 13015 case `/usr/bin/file conftest.o` in 13016 *64-bit*) 13017 case $lt_cv_prog_gnu_ld in 13018 yes*) LD="${LD-ld} -m elf64_sparc" ;; 13019 *) 13020 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13021 LD="${LD-ld} -64" 13022 fi 13023 ;; 13024 esac 13025 ;; 13026 esac 13027 fi 13028 rm -rf conftest* 13029 ;; 13030esac 13031 13032need_locks="$enable_libtool_lock" 13033 13034if test -n "$ac_tool_prefix"; then 13035 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13036set dummy ${ac_tool_prefix}mt; ac_word=$2 13037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13038$as_echo_n "checking for $ac_word... " >&6; } 13039if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13040 $as_echo_n "(cached) " >&6 13041else 13042 if test -n "$MANIFEST_TOOL"; then 13043 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13044else 13045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13046for as_dir in $PATH 13047do 13048 IFS=$as_save_IFS 13049 test -z "$as_dir" && as_dir=. 13050 for ac_exec_ext in '' $ac_executable_extensions; do 13051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13052 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13054 break 2 13055 fi 13056done 13057 done 13058IFS=$as_save_IFS 13059 13060fi 13061fi 13062MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13063if test -n "$MANIFEST_TOOL"; then 13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13065$as_echo "$MANIFEST_TOOL" >&6; } 13066else 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13068$as_echo "no" >&6; } 13069fi 13070 13071 13072fi 13073if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13074 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13075 # Extract the first word of "mt", so it can be a program name with args. 13076set dummy mt; ac_word=$2 13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13078$as_echo_n "checking for $ac_word... " >&6; } 13079if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13080 $as_echo_n "(cached) " >&6 13081else 13082 if test -n "$ac_ct_MANIFEST_TOOL"; then 13083 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13084else 13085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13086for as_dir in $PATH 13087do 13088 IFS=$as_save_IFS 13089 test -z "$as_dir" && as_dir=. 13090 for ac_exec_ext in '' $ac_executable_extensions; do 13091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13092 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13094 break 2 13095 fi 13096done 13097 done 13098IFS=$as_save_IFS 13099 13100fi 13101fi 13102ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13103if test -n "$ac_ct_MANIFEST_TOOL"; then 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13105$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13106else 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13108$as_echo "no" >&6; } 13109fi 13110 13111 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13112 MANIFEST_TOOL=":" 13113 else 13114 case $cross_compiling:$ac_tool_warned in 13115yes:) 13116{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13118ac_tool_warned=yes ;; 13119esac 13120 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13121 fi 13122else 13123 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13124fi 13125 13126test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13128$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13129if ${lt_cv_path_mainfest_tool+:} false; then : 13130 $as_echo_n "(cached) " >&6 13131else 13132 lt_cv_path_mainfest_tool=no 13133 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13134 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13135 cat conftest.err >&5 13136 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13137 lt_cv_path_mainfest_tool=yes 13138 fi 13139 rm -f conftest* 13140fi 13141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13142$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13143if test "x$lt_cv_path_mainfest_tool" != xyes; then 13144 MANIFEST_TOOL=: 13145fi 13146 13147 13148 13149 13150 13151 13152 case $host_os in 13153 rhapsody* | darwin*) 13154 if test -n "$ac_tool_prefix"; then 13155 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13156set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13158$as_echo_n "checking for $ac_word... " >&6; } 13159if ${ac_cv_prog_DSYMUTIL+:} false; then : 13160 $as_echo_n "(cached) " >&6 13161else 13162 if test -n "$DSYMUTIL"; then 13163 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13164else 13165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13166for as_dir in $PATH 13167do 13168 IFS=$as_save_IFS 13169 test -z "$as_dir" && as_dir=. 13170 for ac_exec_ext in '' $ac_executable_extensions; do 13171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13172 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13174 break 2 13175 fi 13176done 13177 done 13178IFS=$as_save_IFS 13179 13180fi 13181fi 13182DSYMUTIL=$ac_cv_prog_DSYMUTIL 13183if test -n "$DSYMUTIL"; then 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13185$as_echo "$DSYMUTIL" >&6; } 13186else 13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13188$as_echo "no" >&6; } 13189fi 13190 13191 13192fi 13193if test -z "$ac_cv_prog_DSYMUTIL"; then 13194 ac_ct_DSYMUTIL=$DSYMUTIL 13195 # Extract the first word of "dsymutil", so it can be a program name with args. 13196set dummy dsymutil; ac_word=$2 13197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13198$as_echo_n "checking for $ac_word... " >&6; } 13199if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 13202 if test -n "$ac_ct_DSYMUTIL"; then 13203 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13204else 13205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13206for as_dir in $PATH 13207do 13208 IFS=$as_save_IFS 13209 test -z "$as_dir" && as_dir=. 13210 for ac_exec_ext in '' $ac_executable_extensions; do 13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13212 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13214 break 2 13215 fi 13216done 13217 done 13218IFS=$as_save_IFS 13219 13220fi 13221fi 13222ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13223if test -n "$ac_ct_DSYMUTIL"; then 13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13225$as_echo "$ac_ct_DSYMUTIL" >&6; } 13226else 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13228$as_echo "no" >&6; } 13229fi 13230 13231 if test "x$ac_ct_DSYMUTIL" = x; then 13232 DSYMUTIL=":" 13233 else 13234 case $cross_compiling:$ac_tool_warned in 13235yes:) 13236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13238ac_tool_warned=yes ;; 13239esac 13240 DSYMUTIL=$ac_ct_DSYMUTIL 13241 fi 13242else 13243 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13244fi 13245 13246 if test -n "$ac_tool_prefix"; then 13247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13248set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13250$as_echo_n "checking for $ac_word... " >&6; } 13251if ${ac_cv_prog_NMEDIT+:} false; then : 13252 $as_echo_n "(cached) " >&6 13253else 13254 if test -n "$NMEDIT"; then 13255 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13256else 13257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13258for as_dir in $PATH 13259do 13260 IFS=$as_save_IFS 13261 test -z "$as_dir" && as_dir=. 13262 for ac_exec_ext in '' $ac_executable_extensions; do 13263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13266 break 2 13267 fi 13268done 13269 done 13270IFS=$as_save_IFS 13271 13272fi 13273fi 13274NMEDIT=$ac_cv_prog_NMEDIT 13275if test -n "$NMEDIT"; then 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13277$as_echo "$NMEDIT" >&6; } 13278else 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13280$as_echo "no" >&6; } 13281fi 13282 13283 13284fi 13285if test -z "$ac_cv_prog_NMEDIT"; then 13286 ac_ct_NMEDIT=$NMEDIT 13287 # Extract the first word of "nmedit", so it can be a program name with args. 13288set dummy nmedit; ac_word=$2 13289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13290$as_echo_n "checking for $ac_word... " >&6; } 13291if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 if test -n "$ac_ct_NMEDIT"; then 13295 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13296else 13297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13298for as_dir in $PATH 13299do 13300 IFS=$as_save_IFS 13301 test -z "$as_dir" && as_dir=. 13302 for ac_exec_ext in '' $ac_executable_extensions; do 13303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13304 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13306 break 2 13307 fi 13308done 13309 done 13310IFS=$as_save_IFS 13311 13312fi 13313fi 13314ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13315if test -n "$ac_ct_NMEDIT"; then 13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13317$as_echo "$ac_ct_NMEDIT" >&6; } 13318else 13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13320$as_echo "no" >&6; } 13321fi 13322 13323 if test "x$ac_ct_NMEDIT" = x; then 13324 NMEDIT=":" 13325 else 13326 case $cross_compiling:$ac_tool_warned in 13327yes:) 13328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13330ac_tool_warned=yes ;; 13331esac 13332 NMEDIT=$ac_ct_NMEDIT 13333 fi 13334else 13335 NMEDIT="$ac_cv_prog_NMEDIT" 13336fi 13337 13338 if test -n "$ac_tool_prefix"; then 13339 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13340set dummy ${ac_tool_prefix}lipo; ac_word=$2 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13342$as_echo_n "checking for $ac_word... " >&6; } 13343if ${ac_cv_prog_LIPO+:} false; then : 13344 $as_echo_n "(cached) " >&6 13345else 13346 if test -n "$LIPO"; then 13347 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13348else 13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13350for as_dir in $PATH 13351do 13352 IFS=$as_save_IFS 13353 test -z "$as_dir" && as_dir=. 13354 for ac_exec_ext in '' $ac_executable_extensions; do 13355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13356 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13358 break 2 13359 fi 13360done 13361 done 13362IFS=$as_save_IFS 13363 13364fi 13365fi 13366LIPO=$ac_cv_prog_LIPO 13367if test -n "$LIPO"; then 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13369$as_echo "$LIPO" >&6; } 13370else 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13372$as_echo "no" >&6; } 13373fi 13374 13375 13376fi 13377if test -z "$ac_cv_prog_LIPO"; then 13378 ac_ct_LIPO=$LIPO 13379 # Extract the first word of "lipo", so it can be a program name with args. 13380set dummy lipo; ac_word=$2 13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13382$as_echo_n "checking for $ac_word... " >&6; } 13383if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13384 $as_echo_n "(cached) " >&6 13385else 13386 if test -n "$ac_ct_LIPO"; then 13387 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13388else 13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13390for as_dir in $PATH 13391do 13392 IFS=$as_save_IFS 13393 test -z "$as_dir" && as_dir=. 13394 for ac_exec_ext in '' $ac_executable_extensions; do 13395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13396 ac_cv_prog_ac_ct_LIPO="lipo" 13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13398 break 2 13399 fi 13400done 13401 done 13402IFS=$as_save_IFS 13403 13404fi 13405fi 13406ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13407if test -n "$ac_ct_LIPO"; then 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13409$as_echo "$ac_ct_LIPO" >&6; } 13410else 13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13412$as_echo "no" >&6; } 13413fi 13414 13415 if test "x$ac_ct_LIPO" = x; then 13416 LIPO=":" 13417 else 13418 case $cross_compiling:$ac_tool_warned in 13419yes:) 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13422ac_tool_warned=yes ;; 13423esac 13424 LIPO=$ac_ct_LIPO 13425 fi 13426else 13427 LIPO="$ac_cv_prog_LIPO" 13428fi 13429 13430 if test -n "$ac_tool_prefix"; then 13431 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13432set dummy ${ac_tool_prefix}otool; ac_word=$2 13433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13434$as_echo_n "checking for $ac_word... " >&6; } 13435if ${ac_cv_prog_OTOOL+:} false; then : 13436 $as_echo_n "(cached) " >&6 13437else 13438 if test -n "$OTOOL"; then 13439 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13440else 13441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13442for as_dir in $PATH 13443do 13444 IFS=$as_save_IFS 13445 test -z "$as_dir" && as_dir=. 13446 for ac_exec_ext in '' $ac_executable_extensions; do 13447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13448 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13450 break 2 13451 fi 13452done 13453 done 13454IFS=$as_save_IFS 13455 13456fi 13457fi 13458OTOOL=$ac_cv_prog_OTOOL 13459if test -n "$OTOOL"; then 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13461$as_echo "$OTOOL" >&6; } 13462else 13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13464$as_echo "no" >&6; } 13465fi 13466 13467 13468fi 13469if test -z "$ac_cv_prog_OTOOL"; then 13470 ac_ct_OTOOL=$OTOOL 13471 # Extract the first word of "otool", so it can be a program name with args. 13472set dummy otool; ac_word=$2 13473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13474$as_echo_n "checking for $ac_word... " >&6; } 13475if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13476 $as_echo_n "(cached) " >&6 13477else 13478 if test -n "$ac_ct_OTOOL"; then 13479 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13480else 13481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13482for as_dir in $PATH 13483do 13484 IFS=$as_save_IFS 13485 test -z "$as_dir" && as_dir=. 13486 for ac_exec_ext in '' $ac_executable_extensions; do 13487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13488 ac_cv_prog_ac_ct_OTOOL="otool" 13489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13490 break 2 13491 fi 13492done 13493 done 13494IFS=$as_save_IFS 13495 13496fi 13497fi 13498ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13499if test -n "$ac_ct_OTOOL"; then 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13501$as_echo "$ac_ct_OTOOL" >&6; } 13502else 13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13504$as_echo "no" >&6; } 13505fi 13506 13507 if test "x$ac_ct_OTOOL" = x; then 13508 OTOOL=":" 13509 else 13510 case $cross_compiling:$ac_tool_warned in 13511yes:) 13512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13514ac_tool_warned=yes ;; 13515esac 13516 OTOOL=$ac_ct_OTOOL 13517 fi 13518else 13519 OTOOL="$ac_cv_prog_OTOOL" 13520fi 13521 13522 if test -n "$ac_tool_prefix"; then 13523 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13524set dummy ${ac_tool_prefix}otool64; ac_word=$2 13525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13526$as_echo_n "checking for $ac_word... " >&6; } 13527if ${ac_cv_prog_OTOOL64+:} false; then : 13528 $as_echo_n "(cached) " >&6 13529else 13530 if test -n "$OTOOL64"; then 13531 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13532else 13533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13534for as_dir in $PATH 13535do 13536 IFS=$as_save_IFS 13537 test -z "$as_dir" && as_dir=. 13538 for ac_exec_ext in '' $ac_executable_extensions; do 13539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13540 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13542 break 2 13543 fi 13544done 13545 done 13546IFS=$as_save_IFS 13547 13548fi 13549fi 13550OTOOL64=$ac_cv_prog_OTOOL64 13551if test -n "$OTOOL64"; then 13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13553$as_echo "$OTOOL64" >&6; } 13554else 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13556$as_echo "no" >&6; } 13557fi 13558 13559 13560fi 13561if test -z "$ac_cv_prog_OTOOL64"; then 13562 ac_ct_OTOOL64=$OTOOL64 13563 # Extract the first word of "otool64", so it can be a program name with args. 13564set dummy otool64; ac_word=$2 13565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13566$as_echo_n "checking for $ac_word... " >&6; } 13567if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13568 $as_echo_n "(cached) " >&6 13569else 13570 if test -n "$ac_ct_OTOOL64"; then 13571 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13572else 13573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13574for as_dir in $PATH 13575do 13576 IFS=$as_save_IFS 13577 test -z "$as_dir" && as_dir=. 13578 for ac_exec_ext in '' $ac_executable_extensions; do 13579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13580 ac_cv_prog_ac_ct_OTOOL64="otool64" 13581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13582 break 2 13583 fi 13584done 13585 done 13586IFS=$as_save_IFS 13587 13588fi 13589fi 13590ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13591if test -n "$ac_ct_OTOOL64"; then 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13593$as_echo "$ac_ct_OTOOL64" >&6; } 13594else 13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13596$as_echo "no" >&6; } 13597fi 13598 13599 if test "x$ac_ct_OTOOL64" = x; then 13600 OTOOL64=":" 13601 else 13602 case $cross_compiling:$ac_tool_warned in 13603yes:) 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13606ac_tool_warned=yes ;; 13607esac 13608 OTOOL64=$ac_ct_OTOOL64 13609 fi 13610else 13611 OTOOL64="$ac_cv_prog_OTOOL64" 13612fi 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13641$as_echo_n "checking for -single_module linker flag... " >&6; } 13642if ${lt_cv_apple_cc_single_mod+:} false; then : 13643 $as_echo_n "(cached) " >&6 13644else 13645 lt_cv_apple_cc_single_mod=no 13646 if test -z "${LT_MULTI_MODULE}"; then 13647 # By default we will add the -single_module flag. You can override 13648 # by either setting the environment variable LT_MULTI_MODULE 13649 # non-empty at configure time, or by adding -multi_module to the 13650 # link flags. 13651 rm -rf libconftest.dylib* 13652 echo "int foo(void){return 1;}" > conftest.c 13653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13654-dynamiclib -Wl,-single_module conftest.c" >&5 13655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13657 _lt_result=$? 13658 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 13659 lt_cv_apple_cc_single_mod=yes 13660 else 13661 cat conftest.err >&5 13662 fi 13663 rm -rf libconftest.dylib* 13664 rm -f conftest.* 13665 fi 13666fi 13667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13668$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13670$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13671if ${lt_cv_ld_exported_symbols_list+:} false; then : 13672 $as_echo_n "(cached) " >&6 13673else 13674 lt_cv_ld_exported_symbols_list=no 13675 save_LDFLAGS=$LDFLAGS 13676 echo "_main" > conftest.sym 13677 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13679/* end confdefs.h. */ 13680 13681int 13682main () 13683{ 13684 13685 ; 13686 return 0; 13687} 13688_ACEOF 13689if ac_fn_c_try_link "$LINENO"; then : 13690 lt_cv_ld_exported_symbols_list=yes 13691else 13692 lt_cv_ld_exported_symbols_list=no 13693fi 13694rm -f core conftest.err conftest.$ac_objext \ 13695 conftest$ac_exeext conftest.$ac_ext 13696 LDFLAGS="$save_LDFLAGS" 13697 13698fi 13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13700$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13702$as_echo_n "checking for -force_load linker flag... " >&6; } 13703if ${lt_cv_ld_force_load+:} false; then : 13704 $as_echo_n "(cached) " >&6 13705else 13706 lt_cv_ld_force_load=no 13707 cat > conftest.c << _LT_EOF 13708int forced_loaded() { return 2;} 13709_LT_EOF 13710 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13711 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13712 echo "$AR cru libconftest.a conftest.o" >&5 13713 $AR cru libconftest.a conftest.o 2>&5 13714 echo "$RANLIB libconftest.a" >&5 13715 $RANLIB libconftest.a 2>&5 13716 cat > conftest.c << _LT_EOF 13717int main() { return 0;} 13718_LT_EOF 13719 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13720 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13721 _lt_result=$? 13722 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 13723 lt_cv_ld_force_load=yes 13724 else 13725 cat conftest.err >&5 13726 fi 13727 rm -f conftest.err libconftest.a conftest conftest.c 13728 rm -rf conftest.dSYM 13729 13730fi 13731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13732$as_echo "$lt_cv_ld_force_load" >&6; } 13733 case $host_os in 13734 rhapsody* | darwin1.[012]) 13735 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13736 darwin1.*) 13737 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13738 darwin*) # darwin 5.x on 13739 # if running on 10.5 or later, the deployment target defaults 13740 # to the OS version, if on x86, and 10.4, the deployment 13741 # target defaults to 10.4. Don't you love it? 13742 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13743 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13744 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13745 10.[012]*) 13746 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13747 10.*) 13748 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13749 esac 13750 ;; 13751 esac 13752 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13753 _lt_dar_single_mod='$single_module' 13754 fi 13755 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13756 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13757 else 13758 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13759 fi 13760 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13761 _lt_dsymutil='~$DSYMUTIL $lib || :' 13762 else 13763 _lt_dsymutil= 13764 fi 13765 ;; 13766 esac 13767 13768for ac_header in dlfcn.h 13769do : 13770 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13771" 13772if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13773 cat >>confdefs.h <<_ACEOF 13774#define HAVE_DLFCN_H 1 13775_ACEOF 13776 13777fi 13778 13779done 13780 13781 13782 13783 13784 13785# Set options 13786 13787 13788 13789 enable_dlopen=no 13790 13791 13792 enable_win32_dll=no 13793 13794 13795 # Check whether --enable-shared was given. 13796if test "${enable_shared+set}" = set; then : 13797 enableval=$enable_shared; p=${PACKAGE-default} 13798 case $enableval in 13799 yes) enable_shared=yes ;; 13800 no) enable_shared=no ;; 13801 *) 13802 enable_shared=no 13803 # Look at the argument we got. We use all the common list separators. 13804 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13805 for pkg in $enableval; do 13806 IFS="$lt_save_ifs" 13807 if test "X$pkg" = "X$p"; then 13808 enable_shared=yes 13809 fi 13810 done 13811 IFS="$lt_save_ifs" 13812 ;; 13813 esac 13814else 13815 enable_shared=yes 13816fi 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828# Check whether --with-pic was given. 13829if test "${with_pic+set}" = set; then : 13830 withval=$with_pic; pic_mode="$withval" 13831else 13832 pic_mode=default 13833fi 13834 13835 13836test -z "$pic_mode" && pic_mode=default 13837 13838 13839 13840 13841 13842 13843 13844 # Check whether --enable-fast-install was given. 13845if test "${enable_fast_install+set}" = set; then : 13846 enableval=$enable_fast_install; p=${PACKAGE-default} 13847 case $enableval in 13848 yes) enable_fast_install=yes ;; 13849 no) enable_fast_install=no ;; 13850 *) 13851 enable_fast_install=no 13852 # Look at the argument we got. We use all the common list separators. 13853 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 13854 for pkg in $enableval; do 13855 IFS="$lt_save_ifs" 13856 if test "X$pkg" = "X$p"; then 13857 enable_fast_install=yes 13858 fi 13859 done 13860 IFS="$lt_save_ifs" 13861 ;; 13862 esac 13863else 13864 enable_fast_install=yes 13865fi 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877# This can be used to rebuild libtool when needed 13878LIBTOOL_DEPS="$ltmain" 13879 13880# Always use our own libtool. 13881LIBTOOL='$(SHELL) $(top_builddir)/libtool' 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908test -z "$LN_S" && LN_S="ln -s" 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923if test -n "${ZSH_VERSION+set}" ; then 13924 setopt NO_GLOB_SUBST 13925fi 13926 13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 13928$as_echo_n "checking for objdir... " >&6; } 13929if ${lt_cv_objdir+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 rm -f .libs 2>/dev/null 13933mkdir .libs 2>/dev/null 13934if test -d .libs; then 13935 lt_cv_objdir=.libs 13936else 13937 # MS-DOS does not allow filenames that begin with a dot. 13938 lt_cv_objdir=_libs 13939fi 13940rmdir .libs 2>/dev/null 13941fi 13942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 13943$as_echo "$lt_cv_objdir" >&6; } 13944objdir=$lt_cv_objdir 13945 13946 13947 13948 13949 13950cat >>confdefs.h <<_ACEOF 13951#define LT_OBJDIR "$lt_cv_objdir/" 13952_ACEOF 13953 13954 13955 13956 13957case $host_os in 13958aix3*) 13959 # AIX sometimes has problems with the GCC collect2 program. For some 13960 # reason, if we set the COLLECT_NAMES environment variable, the problems 13961 # vanish in a puff of smoke. 13962 if test "X${COLLECT_NAMES+set}" != Xset; then 13963 COLLECT_NAMES= 13964 export COLLECT_NAMES 13965 fi 13966 ;; 13967esac 13968 13969# Global variables: 13970ofile=libtool 13971can_build_shared=yes 13972 13973# All known linkers require a `.a' archive for static linking (except MSVC, 13974# which needs '.lib'). 13975libext=a 13976 13977with_gnu_ld="$lt_cv_prog_gnu_ld" 13978 13979old_CC="$CC" 13980old_CFLAGS="$CFLAGS" 13981 13982# Set sane defaults for various variables 13983test -z "$CC" && CC=cc 13984test -z "$LTCC" && LTCC=$CC 13985test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 13986test -z "$LD" && LD=ld 13987test -z "$ac_objext" && ac_objext=o 13988 13989for cc_temp in $compiler""; do 13990 case $cc_temp in 13991 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 13992 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 13993 \-*) ;; 13994 *) break;; 13995 esac 13996done 13997cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 13998 13999 14000# Only perform the check for file, if the check method requires it 14001test -z "$MAGIC_CMD" && MAGIC_CMD=file 14002case $deplibs_check_method in 14003file_magic*) 14004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14006$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14007if ${lt_cv_path_MAGIC_CMD+:} false; then : 14008 $as_echo_n "(cached) " >&6 14009else 14010 case $MAGIC_CMD in 14011[\\/*] | ?:[\\/]*) 14012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14013 ;; 14014*) 14015 lt_save_MAGIC_CMD="$MAGIC_CMD" 14016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14018 for ac_dir in $ac_dummy; do 14019 IFS="$lt_save_ifs" 14020 test -z "$ac_dir" && ac_dir=. 14021 if test -f $ac_dir/${ac_tool_prefix}file; then 14022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14023 if test -n "$file_magic_test_file"; then 14024 case $deplibs_check_method in 14025 "file_magic "*) 14026 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14029 $EGREP "$file_magic_regex" > /dev/null; then 14030 : 14031 else 14032 cat <<_LT_EOF 1>&2 14033 14034*** Warning: the command libtool uses to detect shared libraries, 14035*** $file_magic_cmd, produces output that libtool cannot recognize. 14036*** The result is that libtool may fail to recognize shared libraries 14037*** as such. This will affect the creation of libtool libraries that 14038*** depend on shared libraries, but programs linked with such libtool 14039*** libraries will work regardless of this problem. Nevertheless, you 14040*** may want to report the problem to your system manager and/or to 14041*** bug-libtool@gnu.org 14042 14043_LT_EOF 14044 fi ;; 14045 esac 14046 fi 14047 break 14048 fi 14049 done 14050 IFS="$lt_save_ifs" 14051 MAGIC_CMD="$lt_save_MAGIC_CMD" 14052 ;; 14053esac 14054fi 14055 14056MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14057if test -n "$MAGIC_CMD"; then 14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14059$as_echo "$MAGIC_CMD" >&6; } 14060else 14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14062$as_echo "no" >&6; } 14063fi 14064 14065 14066 14067 14068 14069if test -z "$lt_cv_path_MAGIC_CMD"; then 14070 if test -n "$ac_tool_prefix"; then 14071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14072$as_echo_n "checking for file... " >&6; } 14073if ${lt_cv_path_MAGIC_CMD+:} false; then : 14074 $as_echo_n "(cached) " >&6 14075else 14076 case $MAGIC_CMD in 14077[\\/*] | ?:[\\/]*) 14078 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14079 ;; 14080*) 14081 lt_save_MAGIC_CMD="$MAGIC_CMD" 14082 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14083 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14084 for ac_dir in $ac_dummy; do 14085 IFS="$lt_save_ifs" 14086 test -z "$ac_dir" && ac_dir=. 14087 if test -f $ac_dir/file; then 14088 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14089 if test -n "$file_magic_test_file"; then 14090 case $deplibs_check_method in 14091 "file_magic "*) 14092 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14094 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14095 $EGREP "$file_magic_regex" > /dev/null; then 14096 : 14097 else 14098 cat <<_LT_EOF 1>&2 14099 14100*** Warning: the command libtool uses to detect shared libraries, 14101*** $file_magic_cmd, produces output that libtool cannot recognize. 14102*** The result is that libtool may fail to recognize shared libraries 14103*** as such. This will affect the creation of libtool libraries that 14104*** depend on shared libraries, but programs linked with such libtool 14105*** libraries will work regardless of this problem. Nevertheless, you 14106*** may want to report the problem to your system manager and/or to 14107*** bug-libtool@gnu.org 14108 14109_LT_EOF 14110 fi ;; 14111 esac 14112 fi 14113 break 14114 fi 14115 done 14116 IFS="$lt_save_ifs" 14117 MAGIC_CMD="$lt_save_MAGIC_CMD" 14118 ;; 14119esac 14120fi 14121 14122MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14123if test -n "$MAGIC_CMD"; then 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14125$as_echo "$MAGIC_CMD" >&6; } 14126else 14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14128$as_echo "no" >&6; } 14129fi 14130 14131 14132 else 14133 MAGIC_CMD=: 14134 fi 14135fi 14136 14137 fi 14138 ;; 14139esac 14140 14141# Use C for the default configuration in the libtool script 14142 14143lt_save_CC="$CC" 14144ac_ext=c 14145ac_cpp='$CPP $CPPFLAGS' 14146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14148ac_compiler_gnu=$ac_cv_c_compiler_gnu 14149 14150 14151# Source file extension for C test sources. 14152ac_ext=c 14153 14154# Object file extension for compiled C test sources. 14155objext=o 14156objext=$objext 14157 14158# Code to be used in simple compile tests 14159lt_simple_compile_test_code="int some_variable = 0;" 14160 14161# Code to be used in simple link tests 14162lt_simple_link_test_code='int main(){return(0);}' 14163 14164 14165 14166 14167 14168 14169 14170# If no C compiler was specified, use CC. 14171LTCC=${LTCC-"$CC"} 14172 14173# If no C compiler flags were specified, use CFLAGS. 14174LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14175 14176# Allow CC to be a program name with arguments. 14177compiler=$CC 14178 14179# Save the default compiler, since it gets overwritten when the other 14180# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14181compiler_DEFAULT=$CC 14182 14183# save warnings/boilerplate of simple test code 14184ac_outfile=conftest.$ac_objext 14185echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14186eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14187_lt_compiler_boilerplate=`cat conftest.err` 14188$RM conftest* 14189 14190ac_outfile=conftest.$ac_objext 14191echo "$lt_simple_link_test_code" >conftest.$ac_ext 14192eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14193_lt_linker_boilerplate=`cat conftest.err` 14194$RM -r conftest* 14195 14196 14197if test -n "$compiler"; then 14198 14199lt_prog_compiler_no_builtin_flag= 14200 14201if test "$GCC" = yes; then 14202 case $cc_basename in 14203 nvcc*) 14204 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14205 *) 14206 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14207 esac 14208 14209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14210$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14211if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14212 $as_echo_n "(cached) " >&6 14213else 14214 lt_cv_prog_compiler_rtti_exceptions=no 14215 ac_outfile=conftest.$ac_objext 14216 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14217 lt_compiler_flag="-fno-rtti -fno-exceptions" 14218 # Insert the option either (1) after the last *FLAGS variable, or 14219 # (2) before a word containing "conftest.", or (3) at the end. 14220 # Note that $ac_compile itself does not contain backslashes and begins 14221 # with a dollar sign (not a hyphen), so the echo should work correctly. 14222 # The option is referenced via a variable to avoid confusing sed. 14223 lt_compile=`echo "$ac_compile" | $SED \ 14224 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14225 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14226 -e 's:$: $lt_compiler_flag:'` 14227 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14228 (eval "$lt_compile" 2>conftest.err) 14229 ac_status=$? 14230 cat conftest.err >&5 14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14232 if (exit $ac_status) && test -s "$ac_outfile"; then 14233 # The compiler can only warn and ignore the option if not recognized 14234 # So say no if there are warnings other than the usual output. 14235 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14236 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14237 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14238 lt_cv_prog_compiler_rtti_exceptions=yes 14239 fi 14240 fi 14241 $RM conftest* 14242 14243fi 14244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14245$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14246 14247if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14248 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14249else 14250 : 14251fi 14252 14253fi 14254 14255 14256 14257 14258 14259 14260 lt_prog_compiler_wl= 14261lt_prog_compiler_pic= 14262lt_prog_compiler_static= 14263 14264 14265 if test "$GCC" = yes; then 14266 lt_prog_compiler_wl='-Wl,' 14267 lt_prog_compiler_static='-static' 14268 14269 case $host_os in 14270 aix*) 14271 # All AIX code is PIC. 14272 if test "$host_cpu" = ia64; then 14273 # AIX 5 now supports IA64 processor 14274 lt_prog_compiler_static='-Bstatic' 14275 fi 14276 ;; 14277 14278 amigaos*) 14279 case $host_cpu in 14280 powerpc) 14281 # see comment about AmigaOS4 .so support 14282 lt_prog_compiler_pic='-fPIC' 14283 ;; 14284 m68k) 14285 # FIXME: we need at least 68020 code to build shared libraries, but 14286 # adding the `-m68020' flag to GCC prevents building anything better, 14287 # like `-m68040'. 14288 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14289 ;; 14290 esac 14291 ;; 14292 14293 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14294 # PIC is the default for these OSes. 14295 ;; 14296 14297 mingw* | cygwin* | pw32* | os2* | cegcc*) 14298 # This hack is so that the source file can tell whether it is being 14299 # built for inclusion in a dll (and should export symbols for example). 14300 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14301 # (--disable-auto-import) libraries 14302 lt_prog_compiler_pic='-DDLL_EXPORT' 14303 ;; 14304 14305 darwin* | rhapsody*) 14306 # PIC is the default on this platform 14307 # Common symbols not allowed in MH_DYLIB files 14308 lt_prog_compiler_pic='-fno-common' 14309 ;; 14310 14311 haiku*) 14312 # PIC is the default for Haiku. 14313 # The "-static" flag exists, but is broken. 14314 lt_prog_compiler_static= 14315 ;; 14316 14317 hpux*) 14318 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14319 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14320 # sets the default TLS model and affects inlining. 14321 case $host_cpu in 14322 hppa*64*) 14323 # +Z the default 14324 ;; 14325 *) 14326 lt_prog_compiler_pic='-fPIC' 14327 ;; 14328 esac 14329 ;; 14330 14331 interix[3-9]*) 14332 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14333 # Instead, we relocate shared libraries at runtime. 14334 ;; 14335 14336 msdosdjgpp*) 14337 # Just because we use GCC doesn't mean we suddenly get shared libraries 14338 # on systems that don't support them. 14339 lt_prog_compiler_can_build_shared=no 14340 enable_shared=no 14341 ;; 14342 14343 *nto* | *qnx*) 14344 # QNX uses GNU C++, but need to define -shared option too, otherwise 14345 # it will coredump. 14346 lt_prog_compiler_pic='-fPIC -shared' 14347 ;; 14348 14349 sysv4*MP*) 14350 if test -d /usr/nec; then 14351 lt_prog_compiler_pic=-Kconform_pic 14352 fi 14353 ;; 14354 14355 *) 14356 lt_prog_compiler_pic='-fPIC' 14357 ;; 14358 esac 14359 14360 case $cc_basename in 14361 nvcc*) # Cuda Compiler Driver 2.2 14362 lt_prog_compiler_wl='-Xlinker ' 14363 lt_prog_compiler_pic='-Xcompiler -fPIC' 14364 ;; 14365 esac 14366 else 14367 # PORTME Check for flag to pass linker flags through the system compiler. 14368 case $host_os in 14369 aix*) 14370 lt_prog_compiler_wl='-Wl,' 14371 if test "$host_cpu" = ia64; then 14372 # AIX 5 now supports IA64 processor 14373 lt_prog_compiler_static='-Bstatic' 14374 else 14375 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14376 fi 14377 ;; 14378 14379 mingw* | cygwin* | pw32* | os2* | cegcc*) 14380 # This hack is so that the source file can tell whether it is being 14381 # built for inclusion in a dll (and should export symbols for example). 14382 lt_prog_compiler_pic='-DDLL_EXPORT' 14383 ;; 14384 14385 hpux9* | hpux10* | hpux11*) 14386 lt_prog_compiler_wl='-Wl,' 14387 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14388 # not for PA HP-UX. 14389 case $host_cpu in 14390 hppa*64*|ia64*) 14391 # +Z the default 14392 ;; 14393 *) 14394 lt_prog_compiler_pic='+Z' 14395 ;; 14396 esac 14397 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14398 lt_prog_compiler_static='${wl}-a ${wl}archive' 14399 ;; 14400 14401 irix5* | irix6* | nonstopux*) 14402 lt_prog_compiler_wl='-Wl,' 14403 # PIC (with -KPIC) is the default. 14404 lt_prog_compiler_static='-non_shared' 14405 ;; 14406 14407 linux* | k*bsd*-gnu | kopensolaris*-gnu) 14408 case $cc_basename in 14409 # old Intel for x86_64 which still supported -KPIC. 14410 ecc*) 14411 lt_prog_compiler_wl='-Wl,' 14412 lt_prog_compiler_pic='-KPIC' 14413 lt_prog_compiler_static='-static' 14414 ;; 14415 # icc used to be incompatible with GCC. 14416 # ICC 10 doesn't accept -KPIC any more. 14417 icc* | ifort*) 14418 lt_prog_compiler_wl='-Wl,' 14419 lt_prog_compiler_pic='-fPIC' 14420 lt_prog_compiler_static='-static' 14421 ;; 14422 # Lahey Fortran 8.1. 14423 lf95*) 14424 lt_prog_compiler_wl='-Wl,' 14425 lt_prog_compiler_pic='--shared' 14426 lt_prog_compiler_static='--static' 14427 ;; 14428 nagfor*) 14429 # NAG Fortran compiler 14430 lt_prog_compiler_wl='-Wl,-Wl,,' 14431 lt_prog_compiler_pic='-PIC' 14432 lt_prog_compiler_static='-Bstatic' 14433 ;; 14434 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14435 # Portland Group compilers (*not* the Pentium gcc compiler, 14436 # which looks to be a dead project) 14437 lt_prog_compiler_wl='-Wl,' 14438 lt_prog_compiler_pic='-fpic' 14439 lt_prog_compiler_static='-Bstatic' 14440 ;; 14441 ccc*) 14442 lt_prog_compiler_wl='-Wl,' 14443 # All Alpha code is PIC. 14444 lt_prog_compiler_static='-non_shared' 14445 ;; 14446 xl* | bgxl* | bgf* | mpixl*) 14447 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14448 lt_prog_compiler_wl='-Wl,' 14449 lt_prog_compiler_pic='-qpic' 14450 lt_prog_compiler_static='-qstaticlink' 14451 ;; 14452 *) 14453 case `$CC -V 2>&1 | sed 5q` in 14454 *Sun\ F* | *Sun*Fortran*) 14455 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14456 lt_prog_compiler_pic='-KPIC' 14457 lt_prog_compiler_static='-Bstatic' 14458 lt_prog_compiler_wl='' 14459 ;; 14460 *Sun\ C*) 14461 # Sun C 5.9 14462 lt_prog_compiler_pic='-KPIC' 14463 lt_prog_compiler_static='-Bstatic' 14464 lt_prog_compiler_wl='-Wl,' 14465 ;; 14466 esac 14467 ;; 14468 esac 14469 ;; 14470 14471 newsos6) 14472 lt_prog_compiler_pic='-KPIC' 14473 lt_prog_compiler_static='-Bstatic' 14474 ;; 14475 14476 *nto* | *qnx*) 14477 # QNX uses GNU C++, but need to define -shared option too, otherwise 14478 # it will coredump. 14479 lt_prog_compiler_pic='-fPIC -shared' 14480 ;; 14481 14482 osf3* | osf4* | osf5*) 14483 lt_prog_compiler_wl='-Wl,' 14484 # All OSF/1 code is PIC. 14485 lt_prog_compiler_static='-non_shared' 14486 ;; 14487 14488 rdos*) 14489 lt_prog_compiler_static='-non_shared' 14490 ;; 14491 14492 solaris*) 14493 lt_prog_compiler_pic='-KPIC' 14494 lt_prog_compiler_static='-Bstatic' 14495 case $cc_basename in 14496 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14497 lt_prog_compiler_wl='-Qoption ld ';; 14498 *) 14499 lt_prog_compiler_wl='-Wl,';; 14500 esac 14501 ;; 14502 14503 sunos4*) 14504 lt_prog_compiler_wl='-Qoption ld ' 14505 lt_prog_compiler_pic='-PIC' 14506 lt_prog_compiler_static='-Bstatic' 14507 ;; 14508 14509 sysv4 | sysv4.2uw2* | sysv4.3*) 14510 lt_prog_compiler_wl='-Wl,' 14511 lt_prog_compiler_pic='-KPIC' 14512 lt_prog_compiler_static='-Bstatic' 14513 ;; 14514 14515 sysv4*MP*) 14516 if test -d /usr/nec ;then 14517 lt_prog_compiler_pic='-Kconform_pic' 14518 lt_prog_compiler_static='-Bstatic' 14519 fi 14520 ;; 14521 14522 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14523 lt_prog_compiler_wl='-Wl,' 14524 lt_prog_compiler_pic='-KPIC' 14525 lt_prog_compiler_static='-Bstatic' 14526 ;; 14527 14528 unicos*) 14529 lt_prog_compiler_wl='-Wl,' 14530 lt_prog_compiler_can_build_shared=no 14531 ;; 14532 14533 uts4*) 14534 lt_prog_compiler_pic='-pic' 14535 lt_prog_compiler_static='-Bstatic' 14536 ;; 14537 14538 *) 14539 lt_prog_compiler_can_build_shared=no 14540 ;; 14541 esac 14542 fi 14543 14544case $host_os in 14545 # For platforms which do not support PIC, -DPIC is meaningless: 14546 *djgpp*) 14547 lt_prog_compiler_pic= 14548 ;; 14549 *) 14550 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14551 ;; 14552esac 14553 14554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14555$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14556if ${lt_cv_prog_compiler_pic+:} false; then : 14557 $as_echo_n "(cached) " >&6 14558else 14559 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14560fi 14561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14562$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14563lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14564 14565# 14566# Check to make sure the PIC flag actually works. 14567# 14568if test -n "$lt_prog_compiler_pic"; then 14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14570$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14571if ${lt_cv_prog_compiler_pic_works+:} false; then : 14572 $as_echo_n "(cached) " >&6 14573else 14574 lt_cv_prog_compiler_pic_works=no 14575 ac_outfile=conftest.$ac_objext 14576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14577 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14578 # Insert the option either (1) after the last *FLAGS variable, or 14579 # (2) before a word containing "conftest.", or (3) at the end. 14580 # Note that $ac_compile itself does not contain backslashes and begins 14581 # with a dollar sign (not a hyphen), so the echo should work correctly. 14582 # The option is referenced via a variable to avoid confusing sed. 14583 lt_compile=`echo "$ac_compile" | $SED \ 14584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14586 -e 's:$: $lt_compiler_flag:'` 14587 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14588 (eval "$lt_compile" 2>conftest.err) 14589 ac_status=$? 14590 cat conftest.err >&5 14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14592 if (exit $ac_status) && test -s "$ac_outfile"; then 14593 # The compiler can only warn and ignore the option if not recognized 14594 # So say no if there are warnings other than the usual output. 14595 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14598 lt_cv_prog_compiler_pic_works=yes 14599 fi 14600 fi 14601 $RM conftest* 14602 14603fi 14604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14605$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14606 14607if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14608 case $lt_prog_compiler_pic in 14609 "" | " "*) ;; 14610 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14611 esac 14612else 14613 lt_prog_compiler_pic= 14614 lt_prog_compiler_can_build_shared=no 14615fi 14616 14617fi 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629# 14630# Check to make sure the static flag actually works. 14631# 14632wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14634$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14635if ${lt_cv_prog_compiler_static_works+:} false; then : 14636 $as_echo_n "(cached) " >&6 14637else 14638 lt_cv_prog_compiler_static_works=no 14639 save_LDFLAGS="$LDFLAGS" 14640 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14641 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14642 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14643 # The linker can only warn and ignore the option if not recognized 14644 # So say no if there are warnings 14645 if test -s conftest.err; then 14646 # Append any errors to the config.log. 14647 cat conftest.err 1>&5 14648 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14650 if diff conftest.exp conftest.er2 >/dev/null; then 14651 lt_cv_prog_compiler_static_works=yes 14652 fi 14653 else 14654 lt_cv_prog_compiler_static_works=yes 14655 fi 14656 fi 14657 $RM -r conftest* 14658 LDFLAGS="$save_LDFLAGS" 14659 14660fi 14661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14662$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14663 14664if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14665 : 14666else 14667 lt_prog_compiler_static= 14668fi 14669 14670 14671 14672 14673 14674 14675 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14677$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14678if ${lt_cv_prog_compiler_c_o+:} false; then : 14679 $as_echo_n "(cached) " >&6 14680else 14681 lt_cv_prog_compiler_c_o=no 14682 $RM -r conftest 2>/dev/null 14683 mkdir conftest 14684 cd conftest 14685 mkdir out 14686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14687 14688 lt_compiler_flag="-o out/conftest2.$ac_objext" 14689 # Insert the option either (1) after the last *FLAGS variable, or 14690 # (2) before a word containing "conftest.", or (3) at the end. 14691 # Note that $ac_compile itself does not contain backslashes and begins 14692 # with a dollar sign (not a hyphen), so the echo should work correctly. 14693 lt_compile=`echo "$ac_compile" | $SED \ 14694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14695 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14696 -e 's:$: $lt_compiler_flag:'` 14697 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14698 (eval "$lt_compile" 2>out/conftest.err) 14699 ac_status=$? 14700 cat out/conftest.err >&5 14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14702 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14703 then 14704 # The compiler can only warn and ignore the option if not recognized 14705 # So say no if there are warnings 14706 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14707 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14708 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14709 lt_cv_prog_compiler_c_o=yes 14710 fi 14711 fi 14712 chmod u+w . 2>&5 14713 $RM conftest* 14714 # SGI C++ compiler will create directory out/ii_files/ for 14715 # template instantiation 14716 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14717 $RM out/* && rmdir out 14718 cd .. 14719 $RM -r conftest 14720 $RM conftest* 14721 14722fi 14723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14724$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14725 14726 14727 14728 14729 14730 14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14732$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14733if ${lt_cv_prog_compiler_c_o+:} false; then : 14734 $as_echo_n "(cached) " >&6 14735else 14736 lt_cv_prog_compiler_c_o=no 14737 $RM -r conftest 2>/dev/null 14738 mkdir conftest 14739 cd conftest 14740 mkdir out 14741 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14742 14743 lt_compiler_flag="-o out/conftest2.$ac_objext" 14744 # Insert the option either (1) after the last *FLAGS variable, or 14745 # (2) before a word containing "conftest.", or (3) at the end. 14746 # Note that $ac_compile itself does not contain backslashes and begins 14747 # with a dollar sign (not a hyphen), so the echo should work correctly. 14748 lt_compile=`echo "$ac_compile" | $SED \ 14749 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14750 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14751 -e 's:$: $lt_compiler_flag:'` 14752 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14753 (eval "$lt_compile" 2>out/conftest.err) 14754 ac_status=$? 14755 cat out/conftest.err >&5 14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14757 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14758 then 14759 # The compiler can only warn and ignore the option if not recognized 14760 # So say no if there are warnings 14761 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14762 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14763 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14764 lt_cv_prog_compiler_c_o=yes 14765 fi 14766 fi 14767 chmod u+w . 2>&5 14768 $RM conftest* 14769 # SGI C++ compiler will create directory out/ii_files/ for 14770 # template instantiation 14771 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14772 $RM out/* && rmdir out 14773 cd .. 14774 $RM -r conftest 14775 $RM conftest* 14776 14777fi 14778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14779$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14780 14781 14782 14783 14784hard_links="nottested" 14785if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 14786 # do not overwrite the value of need_locks provided by the user 14787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 14788$as_echo_n "checking if we can lock with hard links... " >&6; } 14789 hard_links=yes 14790 $RM conftest* 14791 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14792 touch conftest.a 14793 ln conftest.a conftest.b 2>&5 || hard_links=no 14794 ln conftest.a conftest.b 2>/dev/null && hard_links=no 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 14796$as_echo "$hard_links" >&6; } 14797 if test "$hard_links" = no; then 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 14799$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 14800 need_locks=warn 14801 fi 14802else 14803 need_locks=no 14804fi 14805 14806 14807 14808 14809 14810 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 14812$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 14813 14814 runpath_var= 14815 allow_undefined_flag= 14816 always_export_symbols=no 14817 archive_cmds= 14818 archive_expsym_cmds= 14819 compiler_needs_object=no 14820 enable_shared_with_static_runtimes=no 14821 export_dynamic_flag_spec= 14822 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 14823 hardcode_automatic=no 14824 hardcode_direct=no 14825 hardcode_direct_absolute=no 14826 hardcode_libdir_flag_spec= 14827 hardcode_libdir_flag_spec_ld= 14828 hardcode_libdir_separator= 14829 hardcode_minus_L=no 14830 hardcode_shlibpath_var=unsupported 14831 inherit_rpath=no 14832 link_all_deplibs=unknown 14833 module_cmds= 14834 module_expsym_cmds= 14835 old_archive_from_new_cmds= 14836 old_archive_from_expsyms_cmds= 14837 thread_safe_flag_spec= 14838 whole_archive_flag_spec= 14839 # include_expsyms should be a list of space-separated symbols to be *always* 14840 # included in the symbol list 14841 include_expsyms= 14842 # exclude_expsyms can be an extended regexp of symbols to exclude 14843 # it will be wrapped by ` (' and `)$', so one must not match beginning or 14844 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 14845 # as well as any symbol that contains `d'. 14846 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 14847 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 14848 # platforms (ab)use it in PIC code, but their linkers get confused if 14849 # the symbol is explicitly referenced. Since portable code cannot 14850 # rely on this symbol name, it's probably fine to never include it in 14851 # preloaded symbol tables. 14852 # Exclude shared library initialization/finalization symbols. 14853 extract_expsyms_cmds= 14854 14855 case $host_os in 14856 cygwin* | mingw* | pw32* | cegcc*) 14857 # FIXME: the MSVC++ port hasn't been tested in a loooong time 14858 # When not using gcc, we currently assume that we are using 14859 # Microsoft Visual C++. 14860 if test "$GCC" != yes; then 14861 with_gnu_ld=no 14862 fi 14863 ;; 14864 interix*) 14865 # we just hope/assume this is gcc and not c89 (= MSVC++) 14866 with_gnu_ld=yes 14867 ;; 14868 openbsd*) 14869 with_gnu_ld=no 14870 ;; 14871 esac 14872 14873 ld_shlibs=yes 14874 14875 # On some targets, GNU ld is compatible enough with the native linker 14876 # that we're better off using the native interface for both. 14877 lt_use_gnu_ld_interface=no 14878 if test "$with_gnu_ld" = yes; then 14879 case $host_os in 14880 aix*) 14881 # The AIX port of GNU ld has always aspired to compatibility 14882 # with the native linker. However, as the warning in the GNU ld 14883 # block says, versions before 2.19.5* couldn't really create working 14884 # shared libraries, regardless of the interface used. 14885 case `$LD -v 2>&1` in 14886 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 14887 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 14888 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 14889 *) 14890 lt_use_gnu_ld_interface=yes 14891 ;; 14892 esac 14893 ;; 14894 *) 14895 lt_use_gnu_ld_interface=yes 14896 ;; 14897 esac 14898 fi 14899 14900 if test "$lt_use_gnu_ld_interface" = yes; then 14901 # If archive_cmds runs LD, not CC, wlarc should be empty 14902 wlarc='${wl}' 14903 14904 # Set some defaults for GNU ld with shared library support. These 14905 # are reset later if shared libraries are not supported. Putting them 14906 # here allows them to be overridden if necessary. 14907 runpath_var=LD_RUN_PATH 14908 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 14909 export_dynamic_flag_spec='${wl}--export-dynamic' 14910 # ancient GNU ld didn't support --whole-archive et. al. 14911 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 14912 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 14913 else 14914 whole_archive_flag_spec= 14915 fi 14916 supports_anon_versioning=no 14917 case `$LD -v 2>&1` in 14918 *GNU\ gold*) supports_anon_versioning=yes ;; 14919 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 14920 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 14921 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 14922 *\ 2.11.*) ;; # other 2.11 versions 14923 *) supports_anon_versioning=yes ;; 14924 esac 14925 14926 # See if GNU ld supports shared libraries. 14927 case $host_os in 14928 aix[3-9]*) 14929 # On AIX/PPC, the GNU linker is very broken 14930 if test "$host_cpu" != ia64; then 14931 ld_shlibs=no 14932 cat <<_LT_EOF 1>&2 14933 14934*** Warning: the GNU linker, at least up to release 2.19, is reported 14935*** to be unable to reliably create shared libraries on AIX. 14936*** Therefore, libtool is disabling shared libraries support. If you 14937*** really care for shared libraries, you may want to install binutils 14938*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 14939*** You will then need to restart the configuration process. 14940 14941_LT_EOF 14942 fi 14943 ;; 14944 14945 amigaos*) 14946 case $host_cpu in 14947 powerpc) 14948 # see comment about AmigaOS4 .so support 14949 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14950 archive_expsym_cmds='' 14951 ;; 14952 m68k) 14953 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 14954 hardcode_libdir_flag_spec='-L$libdir' 14955 hardcode_minus_L=yes 14956 ;; 14957 esac 14958 ;; 14959 14960 beos*) 14961 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14962 allow_undefined_flag=unsupported 14963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14964 # support --undefined. This deserves some investigation. FIXME 14965 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 14966 else 14967 ld_shlibs=no 14968 fi 14969 ;; 14970 14971 cygwin* | mingw* | pw32* | cegcc*) 14972 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 14973 # as there is no search path for DLLs. 14974 hardcode_libdir_flag_spec='-L$libdir' 14975 export_dynamic_flag_spec='${wl}--export-all-symbols' 14976 allow_undefined_flag=unsupported 14977 always_export_symbols=no 14978 enable_shared_with_static_runtimes=yes 14979 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 14980 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 14981 14982 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14984 # If the export-symbols file already is a .def file (1st line 14985 # is EXPORTS), use it as is; otherwise, prepend... 14986 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 14987 cp $export_symbols $output_objdir/$soname.def; 14988 else 14989 echo EXPORTS > $output_objdir/$soname.def; 14990 cat $export_symbols >> $output_objdir/$soname.def; 14991 fi~ 14992 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14993 else 14994 ld_shlibs=no 14995 fi 14996 ;; 14997 14998 haiku*) 14999 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15000 link_all_deplibs=yes 15001 ;; 15002 15003 interix[3-9]*) 15004 hardcode_direct=no 15005 hardcode_shlibpath_var=no 15006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15007 export_dynamic_flag_spec='${wl}-E' 15008 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15009 # Instead, shared libraries are loaded at an image base (0x10000000 by 15010 # default) and relocated if they conflict, which is a slow very memory 15011 # consuming and fragmenting process. To avoid this, we pick a random, 15012 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15013 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15014 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15015 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15016 ;; 15017 15018 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15019 tmp_diet=no 15020 if test "$host_os" = linux-dietlibc; then 15021 case $cc_basename in 15022 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15023 esac 15024 fi 15025 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15026 && test "$tmp_diet" = no 15027 then 15028 tmp_addflag=' $pic_flag' 15029 tmp_sharedflag='-shared' 15030 case $cc_basename,$host_cpu in 15031 pgcc*) # Portland Group C compiler 15032 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 15033 tmp_addflag=' $pic_flag' 15034 ;; 15035 pgf77* | pgf90* | pgf95* | pgfortran*) 15036 # Portland Group f77 and f90 compilers 15037 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 15038 tmp_addflag=' $pic_flag -Mnomain' ;; 15039 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15040 tmp_addflag=' -i_dynamic' ;; 15041 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15042 tmp_addflag=' -i_dynamic -nofor_main' ;; 15043 ifc* | ifort*) # Intel Fortran compiler 15044 tmp_addflag=' -nofor_main' ;; 15045 lf95*) # Lahey Fortran 8.1 15046 whole_archive_flag_spec= 15047 tmp_sharedflag='--shared' ;; 15048 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15049 tmp_sharedflag='-qmkshrobj' 15050 tmp_addflag= ;; 15051 nvcc*) # Cuda Compiler Driver 2.2 15052 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 15053 compiler_needs_object=yes 15054 ;; 15055 esac 15056 case `$CC -V 2>&1 | sed 5q` in 15057 *Sun\ C*) # Sun C 5.9 15058 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 15059 compiler_needs_object=yes 15060 tmp_sharedflag='-G' ;; 15061 *Sun\ F*) # Sun Fortran 8.3 15062 tmp_sharedflag='-G' ;; 15063 esac 15064 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15065 15066 if test "x$supports_anon_versioning" = xyes; then 15067 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15068 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15069 echo "local: *; };" >> $output_objdir/$libname.ver~ 15070 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15071 fi 15072 15073 case $cc_basename in 15074 xlf* | bgf* | bgxlf* | mpixlf*) 15075 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15076 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15077 hardcode_libdir_flag_spec= 15078 hardcode_libdir_flag_spec_ld='-rpath $libdir' 15079 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15080 if test "x$supports_anon_versioning" = xyes; then 15081 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15082 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15083 echo "local: *; };" >> $output_objdir/$libname.ver~ 15084 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15085 fi 15086 ;; 15087 esac 15088 else 15089 ld_shlibs=no 15090 fi 15091 ;; 15092 15093 netbsd*) 15094 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15095 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15096 wlarc= 15097 else 15098 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15099 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15100 fi 15101 ;; 15102 15103 solaris*) 15104 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15105 ld_shlibs=no 15106 cat <<_LT_EOF 1>&2 15107 15108*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15109*** create shared libraries on Solaris systems. Therefore, libtool 15110*** is disabling shared libraries support. We urge you to upgrade GNU 15111*** binutils to release 2.9.1 or newer. Another option is to modify 15112*** your PATH or compiler configuration so that the native linker is 15113*** used, and then restart. 15114 15115_LT_EOF 15116 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15117 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15118 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15119 else 15120 ld_shlibs=no 15121 fi 15122 ;; 15123 15124 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15125 case `$LD -v 2>&1` in 15126 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15127 ld_shlibs=no 15128 cat <<_LT_EOF 1>&2 15129 15130*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15131*** reliably create shared libraries on SCO systems. Therefore, libtool 15132*** is disabling shared libraries support. We urge you to upgrade GNU 15133*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15134*** your PATH or compiler configuration so that the native linker is 15135*** used, and then restart. 15136 15137_LT_EOF 15138 ;; 15139 *) 15140 # For security reasons, it is highly recommended that you always 15141 # use absolute paths for naming shared libraries, and exclude the 15142 # DT_RUNPATH tag from executables and libraries. But doing so 15143 # requires that you compile everything twice, which is a pain. 15144 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15147 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15148 else 15149 ld_shlibs=no 15150 fi 15151 ;; 15152 esac 15153 ;; 15154 15155 sunos4*) 15156 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15157 wlarc= 15158 hardcode_direct=yes 15159 hardcode_shlibpath_var=no 15160 ;; 15161 15162 *) 15163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15164 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15165 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15166 else 15167 ld_shlibs=no 15168 fi 15169 ;; 15170 esac 15171 15172 if test "$ld_shlibs" = no; then 15173 runpath_var= 15174 hardcode_libdir_flag_spec= 15175 export_dynamic_flag_spec= 15176 whole_archive_flag_spec= 15177 fi 15178 else 15179 # PORTME fill in a description of your system's linker (not GNU ld) 15180 case $host_os in 15181 aix3*) 15182 allow_undefined_flag=unsupported 15183 always_export_symbols=yes 15184 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15185 # Note: this linker hardcodes the directories in LIBPATH if there 15186 # are no directories specified by -L. 15187 hardcode_minus_L=yes 15188 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15189 # Neither direct hardcoding nor static linking is supported with a 15190 # broken collect2. 15191 hardcode_direct=unsupported 15192 fi 15193 ;; 15194 15195 aix[4-9]*) 15196 if test "$host_cpu" = ia64; then 15197 # On IA64, the linker does run time linking by default, so we don't 15198 # have to do anything special. 15199 aix_use_runtimelinking=no 15200 exp_sym_flag='-Bexport' 15201 no_entry_flag="" 15202 else 15203 # If we're using GNU nm, then we don't want the "-C" option. 15204 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15205 # Also, AIX nm treats weak defined symbols like other global 15206 # defined symbols, whereas GNU nm marks them as "W". 15207 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15208 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15209 else 15210 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 15211 fi 15212 aix_use_runtimelinking=no 15213 15214 # Test if we are trying to use run time linking or normal 15215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15216 # need to do runtime linking. 15217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15218 for ld_flag in $LDFLAGS; do 15219 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15220 aix_use_runtimelinking=yes 15221 break 15222 fi 15223 done 15224 ;; 15225 esac 15226 15227 exp_sym_flag='-bexport' 15228 no_entry_flag='-bnoentry' 15229 fi 15230 15231 # When large executables or shared objects are built, AIX ld can 15232 # have problems creating the table of contents. If linking a library 15233 # or program results in "error TOC overflow" add -mminimal-toc to 15234 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15235 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15236 15237 archive_cmds='' 15238 hardcode_direct=yes 15239 hardcode_direct_absolute=yes 15240 hardcode_libdir_separator=':' 15241 link_all_deplibs=yes 15242 file_list_spec='${wl}-f,' 15243 15244 if test "$GCC" = yes; then 15245 case $host_os in aix4.[012]|aix4.[012].*) 15246 # We only want to do this on AIX 4.2 and lower, the check 15247 # below for broken collect2 doesn't work under 4.3+ 15248 collect2name=`${CC} -print-prog-name=collect2` 15249 if test -f "$collect2name" && 15250 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15251 then 15252 # We have reworked collect2 15253 : 15254 else 15255 # We have old collect2 15256 hardcode_direct=unsupported 15257 # It fails to find uninstalled libraries when the uninstalled 15258 # path is not listed in the libpath. Setting hardcode_minus_L 15259 # to unsupported forces relinking 15260 hardcode_minus_L=yes 15261 hardcode_libdir_flag_spec='-L$libdir' 15262 hardcode_libdir_separator= 15263 fi 15264 ;; 15265 esac 15266 shared_flag='-shared' 15267 if test "$aix_use_runtimelinking" = yes; then 15268 shared_flag="$shared_flag "'${wl}-G' 15269 fi 15270 else 15271 # not using gcc 15272 if test "$host_cpu" = ia64; then 15273 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15274 # chokes on -Wl,-G. The following line is correct: 15275 shared_flag='-G' 15276 else 15277 if test "$aix_use_runtimelinking" = yes; then 15278 shared_flag='${wl}-G' 15279 else 15280 shared_flag='${wl}-bM:SRE' 15281 fi 15282 fi 15283 fi 15284 15285 export_dynamic_flag_spec='${wl}-bexpall' 15286 # It seems that -bexpall does not export symbols beginning with 15287 # underscore (_), so it is better to generate a list of symbols to export. 15288 always_export_symbols=yes 15289 if test "$aix_use_runtimelinking" = yes; then 15290 # Warning - without using the other runtime loading flags (-brtl), 15291 # -berok will link without error, but may produce a broken library. 15292 allow_undefined_flag='-berok' 15293 # Determine the default libpath from the value encoded in an 15294 # empty executable. 15295 if test "${lt_cv_aix_libpath+set}" = set; then 15296 aix_libpath=$lt_cv_aix_libpath 15297else 15298 if ${lt_cv_aix_libpath_+:} false; then : 15299 $as_echo_n "(cached) " >&6 15300else 15301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15302/* end confdefs.h. */ 15303 15304int 15305main () 15306{ 15307 15308 ; 15309 return 0; 15310} 15311_ACEOF 15312if ac_fn_c_try_link "$LINENO"; then : 15313 15314 lt_aix_libpath_sed=' 15315 /Import File Strings/,/^$/ { 15316 /^0/ { 15317 s/^0 *\([^ ]*\) *$/\1/ 15318 p 15319 } 15320 }' 15321 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15322 # Check for a 64-bit object if we didn't find anything. 15323 if test -z "$lt_cv_aix_libpath_"; then 15324 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15325 fi 15326fi 15327rm -f core conftest.err conftest.$ac_objext \ 15328 conftest$ac_exeext conftest.$ac_ext 15329 if test -z "$lt_cv_aix_libpath_"; then 15330 lt_cv_aix_libpath_="/usr/lib:/lib" 15331 fi 15332 15333fi 15334 15335 aix_libpath=$lt_cv_aix_libpath_ 15336fi 15337 15338 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15339 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15340 else 15341 if test "$host_cpu" = ia64; then 15342 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15343 allow_undefined_flag="-z nodefs" 15344 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 15345 else 15346 # Determine the default libpath from the value encoded in an 15347 # empty executable. 15348 if test "${lt_cv_aix_libpath+set}" = set; then 15349 aix_libpath=$lt_cv_aix_libpath 15350else 15351 if ${lt_cv_aix_libpath_+:} false; then : 15352 $as_echo_n "(cached) " >&6 15353else 15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15355/* end confdefs.h. */ 15356 15357int 15358main () 15359{ 15360 15361 ; 15362 return 0; 15363} 15364_ACEOF 15365if ac_fn_c_try_link "$LINENO"; then : 15366 15367 lt_aix_libpath_sed=' 15368 /Import File Strings/,/^$/ { 15369 /^0/ { 15370 s/^0 *\([^ ]*\) *$/\1/ 15371 p 15372 } 15373 }' 15374 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15375 # Check for a 64-bit object if we didn't find anything. 15376 if test -z "$lt_cv_aix_libpath_"; then 15377 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15378 fi 15379fi 15380rm -f core conftest.err conftest.$ac_objext \ 15381 conftest$ac_exeext conftest.$ac_ext 15382 if test -z "$lt_cv_aix_libpath_"; then 15383 lt_cv_aix_libpath_="/usr/lib:/lib" 15384 fi 15385 15386fi 15387 15388 aix_libpath=$lt_cv_aix_libpath_ 15389fi 15390 15391 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15392 # Warning - without using the other run time loading flags, 15393 # -berok will link without error, but may produce a broken library. 15394 no_undefined_flag=' ${wl}-bernotok' 15395 allow_undefined_flag=' ${wl}-berok' 15396 if test "$with_gnu_ld" = yes; then 15397 # We only use this code for GNU lds that support --whole-archive. 15398 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15399 else 15400 # Exported symbols can be pulled into shared objects from archives 15401 whole_archive_flag_spec='$convenience' 15402 fi 15403 archive_cmds_need_lc=yes 15404 # This is similar to how AIX traditionally builds its shared libraries. 15405 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15406 fi 15407 fi 15408 ;; 15409 15410 amigaos*) 15411 case $host_cpu in 15412 powerpc) 15413 # see comment about AmigaOS4 .so support 15414 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15415 archive_expsym_cmds='' 15416 ;; 15417 m68k) 15418 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 15419 hardcode_libdir_flag_spec='-L$libdir' 15420 hardcode_minus_L=yes 15421 ;; 15422 esac 15423 ;; 15424 15425 bsdi[45]*) 15426 export_dynamic_flag_spec=-rdynamic 15427 ;; 15428 15429 cygwin* | mingw* | pw32* | cegcc*) 15430 # When not using gcc, we currently assume that we are using 15431 # Microsoft Visual C++. 15432 # hardcode_libdir_flag_spec is actually meaningless, as there is 15433 # no search path for DLLs. 15434 case $cc_basename in 15435 cl*) 15436 # Native MSVC 15437 hardcode_libdir_flag_spec=' ' 15438 allow_undefined_flag=unsupported 15439 always_export_symbols=yes 15440 file_list_spec='@' 15441 # Tell ltmain to make .lib files, not .a files. 15442 libext=lib 15443 # Tell ltmain to make .dll files, not .so files. 15444 shrext_cmds=".dll" 15445 # FIXME: Setting linknames here is a bad hack. 15446 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15447 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15448 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15449 else 15450 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15451 fi~ 15452 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15453 linknames=' 15454 # The linker will not automatically build a static lib if we build a DLL. 15455 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15456 enable_shared_with_static_runtimes=yes 15457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15458 # Don't use ranlib 15459 old_postinstall_cmds='chmod 644 $oldlib' 15460 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15461 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15462 case $lt_outputfile in 15463 *.exe|*.EXE) ;; 15464 *) 15465 lt_outputfile="$lt_outputfile.exe" 15466 lt_tool_outputfile="$lt_tool_outputfile.exe" 15467 ;; 15468 esac~ 15469 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15470 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15471 $RM "$lt_outputfile.manifest"; 15472 fi' 15473 ;; 15474 *) 15475 # Assume MSVC wrapper 15476 hardcode_libdir_flag_spec=' ' 15477 allow_undefined_flag=unsupported 15478 # Tell ltmain to make .lib files, not .a files. 15479 libext=lib 15480 # Tell ltmain to make .dll files, not .so files. 15481 shrext_cmds=".dll" 15482 # FIXME: Setting linknames here is a bad hack. 15483 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15484 # The linker will automatically build a .lib file if we build a DLL. 15485 old_archive_from_new_cmds='true' 15486 # FIXME: Should let the user specify the lib program. 15487 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15488 enable_shared_with_static_runtimes=yes 15489 ;; 15490 esac 15491 ;; 15492 15493 darwin* | rhapsody*) 15494 15495 15496 archive_cmds_need_lc=no 15497 hardcode_direct=no 15498 hardcode_automatic=yes 15499 hardcode_shlibpath_var=unsupported 15500 if test "$lt_cv_ld_force_load" = "yes"; then 15501 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 15502 else 15503 whole_archive_flag_spec='' 15504 fi 15505 link_all_deplibs=yes 15506 allow_undefined_flag="$_lt_dar_allow_undefined" 15507 case $cc_basename in 15508 ifort*) _lt_dar_can_shared=yes ;; 15509 *) _lt_dar_can_shared=$GCC ;; 15510 esac 15511 if test "$_lt_dar_can_shared" = "yes"; then 15512 output_verbose_link_cmd=func_echo_all 15513 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15514 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15515 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 15516 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 15517 15518 else 15519 ld_shlibs=no 15520 fi 15521 15522 ;; 15523 15524 dgux*) 15525 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15526 hardcode_libdir_flag_spec='-L$libdir' 15527 hardcode_shlibpath_var=no 15528 ;; 15529 15530 freebsd1*) 15531 ld_shlibs=no 15532 ;; 15533 15534 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15535 # support. Future versions do this automatically, but an explicit c++rt0.o 15536 # does not break anything, and helps significantly (at the cost of a little 15537 # extra space). 15538 freebsd2.2*) 15539 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15540 hardcode_libdir_flag_spec='-R$libdir' 15541 hardcode_direct=yes 15542 hardcode_shlibpath_var=no 15543 ;; 15544 15545 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15546 freebsd2*) 15547 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15548 hardcode_direct=yes 15549 hardcode_minus_L=yes 15550 hardcode_shlibpath_var=no 15551 ;; 15552 15553 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15554 freebsd* | dragonfly*) 15555 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15556 hardcode_libdir_flag_spec='-R$libdir' 15557 hardcode_direct=yes 15558 hardcode_shlibpath_var=no 15559 ;; 15560 15561 hpux9*) 15562 if test "$GCC" = yes; then 15563 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15564 else 15565 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15566 fi 15567 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15568 hardcode_libdir_separator=: 15569 hardcode_direct=yes 15570 15571 # hardcode_minus_L: Not really in the search PATH, 15572 # but as the default location of the library. 15573 hardcode_minus_L=yes 15574 export_dynamic_flag_spec='${wl}-E' 15575 ;; 15576 15577 hpux10*) 15578 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15579 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15580 else 15581 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15582 fi 15583 if test "$with_gnu_ld" = no; then 15584 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15585 hardcode_libdir_flag_spec_ld='+b $libdir' 15586 hardcode_libdir_separator=: 15587 hardcode_direct=yes 15588 hardcode_direct_absolute=yes 15589 export_dynamic_flag_spec='${wl}-E' 15590 # hardcode_minus_L: Not really in the search PATH, 15591 # but as the default location of the library. 15592 hardcode_minus_L=yes 15593 fi 15594 ;; 15595 15596 hpux11*) 15597 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15598 case $host_cpu in 15599 hppa*64*) 15600 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15601 ;; 15602 ia64*) 15603 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15604 ;; 15605 *) 15606 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15607 ;; 15608 esac 15609 else 15610 case $host_cpu in 15611 hppa*64*) 15612 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15613 ;; 15614 ia64*) 15615 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15616 ;; 15617 *) 15618 15619 # Older versions of the 11.00 compiler do not understand -b yet 15620 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15622$as_echo_n "checking if $CC understands -b... " >&6; } 15623if ${lt_cv_prog_compiler__b+:} false; then : 15624 $as_echo_n "(cached) " >&6 15625else 15626 lt_cv_prog_compiler__b=no 15627 save_LDFLAGS="$LDFLAGS" 15628 LDFLAGS="$LDFLAGS -b" 15629 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15631 # The linker can only warn and ignore the option if not recognized 15632 # So say no if there are warnings 15633 if test -s conftest.err; then 15634 # Append any errors to the config.log. 15635 cat conftest.err 1>&5 15636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15638 if diff conftest.exp conftest.er2 >/dev/null; then 15639 lt_cv_prog_compiler__b=yes 15640 fi 15641 else 15642 lt_cv_prog_compiler__b=yes 15643 fi 15644 fi 15645 $RM -r conftest* 15646 LDFLAGS="$save_LDFLAGS" 15647 15648fi 15649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15650$as_echo "$lt_cv_prog_compiler__b" >&6; } 15651 15652if test x"$lt_cv_prog_compiler__b" = xyes; then 15653 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15654else 15655 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15656fi 15657 15658 ;; 15659 esac 15660 fi 15661 if test "$with_gnu_ld" = no; then 15662 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15663 hardcode_libdir_separator=: 15664 15665 case $host_cpu in 15666 hppa*64*|ia64*) 15667 hardcode_direct=no 15668 hardcode_shlibpath_var=no 15669 ;; 15670 *) 15671 hardcode_direct=yes 15672 hardcode_direct_absolute=yes 15673 export_dynamic_flag_spec='${wl}-E' 15674 15675 # hardcode_minus_L: Not really in the search PATH, 15676 # but as the default location of the library. 15677 hardcode_minus_L=yes 15678 ;; 15679 esac 15680 fi 15681 ;; 15682 15683 irix5* | irix6* | nonstopux*) 15684 if test "$GCC" = yes; then 15685 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15686 # Try to use the -exported_symbol ld option, if it does not 15687 # work, assume that -exports_file does not work either and 15688 # implicitly export all symbols. 15689 # This should be the same for all languages, so no per-tag cache variable. 15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15691$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15692if ${lt_cv_irix_exported_symbol+:} false; then : 15693 $as_echo_n "(cached) " >&6 15694else 15695 save_LDFLAGS="$LDFLAGS" 15696 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15698/* end confdefs.h. */ 15699int foo (void) { return 0; } 15700_ACEOF 15701if ac_fn_c_try_link "$LINENO"; then : 15702 lt_cv_irix_exported_symbol=yes 15703else 15704 lt_cv_irix_exported_symbol=no 15705fi 15706rm -f core conftest.err conftest.$ac_objext \ 15707 conftest$ac_exeext conftest.$ac_ext 15708 LDFLAGS="$save_LDFLAGS" 15709fi 15710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15711$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15712 if test "$lt_cv_irix_exported_symbol" = yes; then 15713 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 15714 fi 15715 else 15716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15717 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 15718 fi 15719 archive_cmds_need_lc='no' 15720 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15721 hardcode_libdir_separator=: 15722 inherit_rpath=yes 15723 link_all_deplibs=yes 15724 ;; 15725 15726 netbsd*) 15727 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15729 else 15730 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15731 fi 15732 hardcode_libdir_flag_spec='-R$libdir' 15733 hardcode_direct=yes 15734 hardcode_shlibpath_var=no 15735 ;; 15736 15737 newsos6) 15738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15739 hardcode_direct=yes 15740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15741 hardcode_libdir_separator=: 15742 hardcode_shlibpath_var=no 15743 ;; 15744 15745 *nto* | *qnx*) 15746 ;; 15747 15748 openbsd*) 15749 if test -f /usr/libexec/ld.so; then 15750 hardcode_direct=yes 15751 hardcode_shlibpath_var=no 15752 hardcode_direct_absolute=yes 15753 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15754 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15755 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 15756 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15757 export_dynamic_flag_spec='${wl}-E' 15758 else 15759 case $host_os in 15760 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 15761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15762 hardcode_libdir_flag_spec='-R$libdir' 15763 ;; 15764 *) 15765 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15766 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15767 ;; 15768 esac 15769 fi 15770 else 15771 ld_shlibs=no 15772 fi 15773 ;; 15774 15775 os2*) 15776 hardcode_libdir_flag_spec='-L$libdir' 15777 hardcode_minus_L=yes 15778 allow_undefined_flag=unsupported 15779 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 15780 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 15781 ;; 15782 15783 osf3*) 15784 if test "$GCC" = yes; then 15785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15786 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15787 else 15788 allow_undefined_flag=' -expect_unresolved \*' 15789 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15790 fi 15791 archive_cmds_need_lc='no' 15792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15793 hardcode_libdir_separator=: 15794 ;; 15795 15796 osf4* | osf5*) # as osf3* with the addition of -msym flag 15797 if test "$GCC" = yes; then 15798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 15799 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15801 else 15802 allow_undefined_flag=' -expect_unresolved \*' 15803 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 15804 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 15805 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 15806 15807 # Both c and cxx compiler support -rpath directly 15808 hardcode_libdir_flag_spec='-rpath $libdir' 15809 fi 15810 archive_cmds_need_lc='no' 15811 hardcode_libdir_separator=: 15812 ;; 15813 15814 solaris*) 15815 no_undefined_flag=' -z defs' 15816 if test "$GCC" = yes; then 15817 wlarc='${wl}' 15818 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15819 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15820 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15821 else 15822 case `$CC -V 2>&1` in 15823 *"Compilers 5.0"*) 15824 wlarc='' 15825 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 15826 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15827 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 15828 ;; 15829 *) 15830 wlarc='${wl}' 15831 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 15832 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 15833 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 15834 ;; 15835 esac 15836 fi 15837 hardcode_libdir_flag_spec='-R$libdir' 15838 hardcode_shlibpath_var=no 15839 case $host_os in 15840 solaris2.[0-5] | solaris2.[0-5].*) ;; 15841 *) 15842 # The compiler driver will combine and reorder linker options, 15843 # but understands `-z linker_flag'. GCC discards it without `$wl', 15844 # but is careful enough not to reorder. 15845 # Supported since Solaris 2.6 (maybe 2.5.1?) 15846 if test "$GCC" = yes; then 15847 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 15848 else 15849 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 15850 fi 15851 ;; 15852 esac 15853 link_all_deplibs=yes 15854 ;; 15855 15856 sunos4*) 15857 if test "x$host_vendor" = xsequent; then 15858 # Use $CC to link under sequent, because it throws in some extra .o 15859 # files that make .init and .fini sections work. 15860 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 15861 else 15862 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 15863 fi 15864 hardcode_libdir_flag_spec='-L$libdir' 15865 hardcode_direct=yes 15866 hardcode_minus_L=yes 15867 hardcode_shlibpath_var=no 15868 ;; 15869 15870 sysv4) 15871 case $host_vendor in 15872 sni) 15873 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15874 hardcode_direct=yes # is this really true??? 15875 ;; 15876 siemens) 15877 ## LD is ld it makes a PLAMLIB 15878 ## CC just makes a GrossModule. 15879 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 15880 reload_cmds='$CC -r -o $output$reload_objs' 15881 hardcode_direct=no 15882 ;; 15883 motorola) 15884 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15885 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 15886 ;; 15887 esac 15888 runpath_var='LD_RUN_PATH' 15889 hardcode_shlibpath_var=no 15890 ;; 15891 15892 sysv4.3*) 15893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15894 hardcode_shlibpath_var=no 15895 export_dynamic_flag_spec='-Bexport' 15896 ;; 15897 15898 sysv4*MP*) 15899 if test -d /usr/nec; then 15900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15901 hardcode_shlibpath_var=no 15902 runpath_var=LD_RUN_PATH 15903 hardcode_runpath_var=yes 15904 ld_shlibs=yes 15905 fi 15906 ;; 15907 15908 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 15909 no_undefined_flag='${wl}-z,text' 15910 archive_cmds_need_lc=no 15911 hardcode_shlibpath_var=no 15912 runpath_var='LD_RUN_PATH' 15913 15914 if test "$GCC" = yes; then 15915 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15916 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15917 else 15918 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15919 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15920 fi 15921 ;; 15922 15923 sysv5* | sco3.2v5* | sco5v6*) 15924 # Note: We can NOT use -z defs as we might desire, because we do not 15925 # link with -lc, and that would cause any symbols used from libc to 15926 # always be unresolved, which means just about no library would 15927 # ever link correctly. If we're not using GNU ld we use -z text 15928 # though, which does catch some bad symbols but isn't as heavy-handed 15929 # as -z defs. 15930 no_undefined_flag='${wl}-z,text' 15931 allow_undefined_flag='${wl}-z,nodefs' 15932 archive_cmds_need_lc=no 15933 hardcode_shlibpath_var=no 15934 hardcode_libdir_flag_spec='${wl}-R,$libdir' 15935 hardcode_libdir_separator=':' 15936 link_all_deplibs=yes 15937 export_dynamic_flag_spec='${wl}-Bexport' 15938 runpath_var='LD_RUN_PATH' 15939 15940 if test "$GCC" = yes; then 15941 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15942 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15943 else 15944 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15945 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 15946 fi 15947 ;; 15948 15949 uts4*) 15950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15951 hardcode_libdir_flag_spec='-L$libdir' 15952 hardcode_shlibpath_var=no 15953 ;; 15954 15955 *) 15956 ld_shlibs=no 15957 ;; 15958 esac 15959 15960 if test x$host_vendor = xsni; then 15961 case $host in 15962 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15963 export_dynamic_flag_spec='${wl}-Blargedynsym' 15964 ;; 15965 esac 15966 fi 15967 fi 15968 15969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 15970$as_echo "$ld_shlibs" >&6; } 15971test "$ld_shlibs" = no && can_build_shared=no 15972 15973with_gnu_ld=$with_gnu_ld 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989# 15990# Do we need to explicitly link libc? 15991# 15992case "x$archive_cmds_need_lc" in 15993x|xyes) 15994 # Assume -lc should be added 15995 archive_cmds_need_lc=yes 15996 15997 if test "$enable_shared" = yes && test "$GCC" = yes; then 15998 case $archive_cmds in 15999 *'~'*) 16000 # FIXME: we may have to deal with multi-command sequences. 16001 ;; 16002 '$CC '*) 16003 # Test whether the compiler implicitly links with -lc since on some 16004 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16005 # to ld, don't add -lc before -lgcc. 16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16007$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16008if ${lt_cv_archive_cmds_need_lc+:} false; then : 16009 $as_echo_n "(cached) " >&6 16010else 16011 $RM conftest* 16012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16013 16014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16015 (eval $ac_compile) 2>&5 16016 ac_status=$? 16017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16018 test $ac_status = 0; } 2>conftest.err; then 16019 soname=conftest 16020 lib=conftest 16021 libobjs=conftest.$ac_objext 16022 deplibs= 16023 wl=$lt_prog_compiler_wl 16024 pic_flag=$lt_prog_compiler_pic 16025 compiler_flags=-v 16026 linker_flags=-v 16027 verstring= 16028 output_objdir=. 16029 libname=conftest 16030 lt_save_allow_undefined_flag=$allow_undefined_flag 16031 allow_undefined_flag= 16032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16033 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16034 ac_status=$? 16035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16036 test $ac_status = 0; } 16037 then 16038 lt_cv_archive_cmds_need_lc=no 16039 else 16040 lt_cv_archive_cmds_need_lc=yes 16041 fi 16042 allow_undefined_flag=$lt_save_allow_undefined_flag 16043 else 16044 cat conftest.err 1>&5 16045 fi 16046 $RM conftest* 16047 16048fi 16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16050$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16051 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16052 ;; 16053 esac 16054 fi 16055 ;; 16056esac 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16215$as_echo_n "checking dynamic linker characteristics... " >&6; } 16216 16217if test "$GCC" = yes; then 16218 case $host_os in 16219 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16220 *) lt_awk_arg="/^libraries:/" ;; 16221 esac 16222 case $host_os in 16223 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16224 *) lt_sed_strip_eq="s,=/,/,g" ;; 16225 esac 16226 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16227 case $lt_search_path_spec in 16228 *\;*) 16229 # if the path contains ";" then we assume it to be the separator 16230 # otherwise default to the standard path separator (i.e. ":") - it is 16231 # assumed that no part of a normal pathname contains ";" but that should 16232 # okay in the real world where ";" in dirpaths is itself problematic. 16233 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16234 ;; 16235 *) 16236 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16237 ;; 16238 esac 16239 # Ok, now we have the path, separated by spaces, we can step through it 16240 # and add multilib dir if necessary. 16241 lt_tmp_lt_search_path_spec= 16242 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16243 for lt_sys_path in $lt_search_path_spec; do 16244 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16245 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16246 else 16247 test -d "$lt_sys_path" && \ 16248 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16249 fi 16250 done 16251 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16252BEGIN {RS=" "; FS="/|\n";} { 16253 lt_foo=""; 16254 lt_count=0; 16255 for (lt_i = NF; lt_i > 0; lt_i--) { 16256 if ($lt_i != "" && $lt_i != ".") { 16257 if ($lt_i == "..") { 16258 lt_count++; 16259 } else { 16260 if (lt_count == 0) { 16261 lt_foo="/" $lt_i lt_foo; 16262 } else { 16263 lt_count--; 16264 } 16265 } 16266 } 16267 } 16268 if (lt_foo != "") { lt_freq[lt_foo]++; } 16269 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16270}'` 16271 # AWK program above erroneously prepends '/' to C:/dos/paths 16272 # for these hosts. 16273 case $host_os in 16274 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16275 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16276 esac 16277 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16278else 16279 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16280fi 16281library_names_spec= 16282libname_spec='lib$name' 16283soname_spec= 16284shrext_cmds=".so" 16285postinstall_cmds= 16286postuninstall_cmds= 16287finish_cmds= 16288finish_eval= 16289shlibpath_var= 16290shlibpath_overrides_runpath=unknown 16291version_type=none 16292dynamic_linker="$host_os ld.so" 16293sys_lib_dlsearch_path_spec="/lib /usr/lib" 16294need_lib_prefix=unknown 16295hardcode_into_libs=no 16296 16297# when you set need_version to no, make sure it does not cause -set_version 16298# flags to be left without arguments 16299need_version=unknown 16300 16301case $host_os in 16302aix3*) 16303 version_type=linux 16304 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16305 shlibpath_var=LIBPATH 16306 16307 # AIX 3 has no versioning support, so we append a major version to the name. 16308 soname_spec='${libname}${release}${shared_ext}$major' 16309 ;; 16310 16311aix[4-9]*) 16312 version_type=linux 16313 need_lib_prefix=no 16314 need_version=no 16315 hardcode_into_libs=yes 16316 if test "$host_cpu" = ia64; then 16317 # AIX 5 supports IA64 16318 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16319 shlibpath_var=LD_LIBRARY_PATH 16320 else 16321 # With GCC up to 2.95.x, collect2 would create an import file 16322 # for dependence libraries. The import file would start with 16323 # the line `#! .'. This would cause the generated library to 16324 # depend on `.', always an invalid library. This was fixed in 16325 # development snapshots of GCC prior to 3.0. 16326 case $host_os in 16327 aix4 | aix4.[01] | aix4.[01].*) 16328 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16329 echo ' yes ' 16330 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16331 : 16332 else 16333 can_build_shared=no 16334 fi 16335 ;; 16336 esac 16337 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16338 # soname into executable. Probably we can add versioning support to 16339 # collect2, so additional links can be useful in future. 16340 if test "$aix_use_runtimelinking" = yes; then 16341 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16342 # instead of lib<name>.a to let people know that these are not 16343 # typical AIX shared libraries. 16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16345 else 16346 # We preserve .a as extension for shared libraries through AIX4.2 16347 # and later when we are not doing run time linking. 16348 library_names_spec='${libname}${release}.a $libname.a' 16349 soname_spec='${libname}${release}${shared_ext}$major' 16350 fi 16351 shlibpath_var=LIBPATH 16352 fi 16353 ;; 16354 16355amigaos*) 16356 case $host_cpu in 16357 powerpc) 16358 # Since July 2007 AmigaOS4 officially supports .so libraries. 16359 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16361 ;; 16362 m68k) 16363 library_names_spec='$libname.ixlibrary $libname.a' 16364 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16365 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 16366 ;; 16367 esac 16368 ;; 16369 16370beos*) 16371 library_names_spec='${libname}${shared_ext}' 16372 dynamic_linker="$host_os ld.so" 16373 shlibpath_var=LIBRARY_PATH 16374 ;; 16375 16376bsdi[45]*) 16377 version_type=linux 16378 need_version=no 16379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16380 soname_spec='${libname}${release}${shared_ext}$major' 16381 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16382 shlibpath_var=LD_LIBRARY_PATH 16383 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16384 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16385 # the default ld.so.conf also contains /usr/contrib/lib and 16386 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16387 # libtool to hard-code these into programs 16388 ;; 16389 16390cygwin* | mingw* | pw32* | cegcc*) 16391 version_type=windows 16392 shrext_cmds=".dll" 16393 need_version=no 16394 need_lib_prefix=no 16395 16396 case $GCC,$cc_basename in 16397 yes,*) 16398 # gcc 16399 library_names_spec='$libname.dll.a' 16400 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16401 postinstall_cmds='base_file=`basename \${file}`~ 16402 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16403 dldir=$destdir/`dirname \$dlpath`~ 16404 test -d \$dldir || mkdir -p \$dldir~ 16405 $install_prog $dir/$dlname \$dldir/$dlname~ 16406 chmod a+x \$dldir/$dlname~ 16407 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16408 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16409 fi' 16410 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16411 dlpath=$dir/\$dldll~ 16412 $RM \$dlpath' 16413 shlibpath_overrides_runpath=yes 16414 16415 case $host_os in 16416 cygwin*) 16417 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16418 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16419 16420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16421 ;; 16422 mingw* | cegcc*) 16423 # MinGW DLLs use traditional 'lib' prefix 16424 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16425 ;; 16426 pw32*) 16427 # pw32 DLLs use 'pw' prefix rather than 'lib' 16428 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16429 ;; 16430 esac 16431 dynamic_linker='Win32 ld.exe' 16432 ;; 16433 16434 *,cl*) 16435 # Native MSVC 16436 libname_spec='$name' 16437 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16438 library_names_spec='${libname}.dll.lib' 16439 16440 case $build_os in 16441 mingw*) 16442 sys_lib_search_path_spec= 16443 lt_save_ifs=$IFS 16444 IFS=';' 16445 for lt_path in $LIB 16446 do 16447 IFS=$lt_save_ifs 16448 # Let DOS variable expansion print the short 8.3 style file name. 16449 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16450 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16451 done 16452 IFS=$lt_save_ifs 16453 # Convert to MSYS style. 16454 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16455 ;; 16456 cygwin*) 16457 # Convert to unix form, then to dos form, then back to unix form 16458 # but this time dos style (no spaces!) so that the unix form looks 16459 # like /cygdrive/c/PROGRA~1:/cygdr... 16460 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16461 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16462 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16463 ;; 16464 *) 16465 sys_lib_search_path_spec="$LIB" 16466 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16467 # It is most probably a Windows format PATH. 16468 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16469 else 16470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16471 fi 16472 # FIXME: find the short name or the path components, as spaces are 16473 # common. (e.g. "Program Files" -> "PROGRA~1") 16474 ;; 16475 esac 16476 16477 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16478 postinstall_cmds='base_file=`basename \${file}`~ 16479 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16480 dldir=$destdir/`dirname \$dlpath`~ 16481 test -d \$dldir || mkdir -p \$dldir~ 16482 $install_prog $dir/$dlname \$dldir/$dlname' 16483 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16484 dlpath=$dir/\$dldll~ 16485 $RM \$dlpath' 16486 shlibpath_overrides_runpath=yes 16487 dynamic_linker='Win32 link.exe' 16488 ;; 16489 16490 *) 16491 # Assume MSVC wrapper 16492 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16493 dynamic_linker='Win32 ld.exe' 16494 ;; 16495 esac 16496 # FIXME: first we should search . and the directory the executable is in 16497 shlibpath_var=PATH 16498 ;; 16499 16500darwin* | rhapsody*) 16501 dynamic_linker="$host_os dyld" 16502 version_type=darwin 16503 need_lib_prefix=no 16504 need_version=no 16505 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16506 soname_spec='${libname}${release}${major}$shared_ext' 16507 shlibpath_overrides_runpath=yes 16508 shlibpath_var=DYLD_LIBRARY_PATH 16509 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16510 16511 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16512 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16513 ;; 16514 16515dgux*) 16516 version_type=linux 16517 need_lib_prefix=no 16518 need_version=no 16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16520 soname_spec='${libname}${release}${shared_ext}$major' 16521 shlibpath_var=LD_LIBRARY_PATH 16522 ;; 16523 16524freebsd1*) 16525 dynamic_linker=no 16526 ;; 16527 16528freebsd* | dragonfly*) 16529 # DragonFly does not have aout. When/if they implement a new 16530 # versioning mechanism, adjust this. 16531 if test -x /usr/bin/objformat; then 16532 objformat=`/usr/bin/objformat` 16533 else 16534 case $host_os in 16535 freebsd[123]*) objformat=aout ;; 16536 *) objformat=elf ;; 16537 esac 16538 fi 16539 # Handle Gentoo/FreeBSD as it was Linux 16540 case $host_vendor in 16541 gentoo) 16542 version_type=linux ;; 16543 *) 16544 version_type=freebsd-$objformat ;; 16545 esac 16546 16547 case $version_type in 16548 freebsd-elf*) 16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16550 need_version=no 16551 need_lib_prefix=no 16552 ;; 16553 freebsd-*) 16554 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16555 need_version=yes 16556 ;; 16557 linux) 16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16559 soname_spec='${libname}${release}${shared_ext}$major' 16560 need_lib_prefix=no 16561 need_version=no 16562 ;; 16563 esac 16564 shlibpath_var=LD_LIBRARY_PATH 16565 case $host_os in 16566 freebsd2*) 16567 shlibpath_overrides_runpath=yes 16568 ;; 16569 freebsd3.[01]* | freebsdelf3.[01]*) 16570 shlibpath_overrides_runpath=yes 16571 hardcode_into_libs=yes 16572 ;; 16573 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16574 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16575 shlibpath_overrides_runpath=no 16576 hardcode_into_libs=yes 16577 ;; 16578 *) # from 4.6 on, and DragonFly 16579 shlibpath_overrides_runpath=yes 16580 hardcode_into_libs=yes 16581 ;; 16582 esac 16583 ;; 16584 16585gnu*) 16586 version_type=linux 16587 need_lib_prefix=no 16588 need_version=no 16589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16590 soname_spec='${libname}${release}${shared_ext}$major' 16591 shlibpath_var=LD_LIBRARY_PATH 16592 hardcode_into_libs=yes 16593 ;; 16594 16595haiku*) 16596 version_type=linux 16597 need_lib_prefix=no 16598 need_version=no 16599 dynamic_linker="$host_os runtime_loader" 16600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16601 soname_spec='${libname}${release}${shared_ext}$major' 16602 shlibpath_var=LIBRARY_PATH 16603 shlibpath_overrides_runpath=yes 16604 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16605 hardcode_into_libs=yes 16606 ;; 16607 16608hpux9* | hpux10* | hpux11*) 16609 # Give a soname corresponding to the major version so that dld.sl refuses to 16610 # link against other versions. 16611 version_type=sunos 16612 need_lib_prefix=no 16613 need_version=no 16614 case $host_cpu in 16615 ia64*) 16616 shrext_cmds='.so' 16617 hardcode_into_libs=yes 16618 dynamic_linker="$host_os dld.so" 16619 shlibpath_var=LD_LIBRARY_PATH 16620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16622 soname_spec='${libname}${release}${shared_ext}$major' 16623 if test "X$HPUX_IA64_MODE" = X32; then 16624 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16625 else 16626 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16627 fi 16628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16629 ;; 16630 hppa*64*) 16631 shrext_cmds='.sl' 16632 hardcode_into_libs=yes 16633 dynamic_linker="$host_os dld.sl" 16634 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16637 soname_spec='${libname}${release}${shared_ext}$major' 16638 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16639 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16640 ;; 16641 *) 16642 shrext_cmds='.sl' 16643 dynamic_linker="$host_os dld.sl" 16644 shlibpath_var=SHLIB_PATH 16645 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16647 soname_spec='${libname}${release}${shared_ext}$major' 16648 ;; 16649 esac 16650 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16651 postinstall_cmds='chmod 555 $lib' 16652 # or fails outright, so override atomically: 16653 install_override_mode=555 16654 ;; 16655 16656interix[3-9]*) 16657 version_type=linux 16658 need_lib_prefix=no 16659 need_version=no 16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16661 soname_spec='${libname}${release}${shared_ext}$major' 16662 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16663 shlibpath_var=LD_LIBRARY_PATH 16664 shlibpath_overrides_runpath=no 16665 hardcode_into_libs=yes 16666 ;; 16667 16668irix5* | irix6* | nonstopux*) 16669 case $host_os in 16670 nonstopux*) version_type=nonstopux ;; 16671 *) 16672 if test "$lt_cv_prog_gnu_ld" = yes; then 16673 version_type=linux 16674 else 16675 version_type=irix 16676 fi ;; 16677 esac 16678 need_lib_prefix=no 16679 need_version=no 16680 soname_spec='${libname}${release}${shared_ext}$major' 16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16682 case $host_os in 16683 irix5* | nonstopux*) 16684 libsuff= shlibsuff= 16685 ;; 16686 *) 16687 case $LD in # libtool.m4 will add one of these switches to LD 16688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16689 libsuff= shlibsuff= libmagic=32-bit;; 16690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16691 libsuff=32 shlibsuff=N32 libmagic=N32;; 16692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16693 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16694 *) libsuff= shlibsuff= libmagic=never-match;; 16695 esac 16696 ;; 16697 esac 16698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16699 shlibpath_overrides_runpath=no 16700 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16701 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16702 hardcode_into_libs=yes 16703 ;; 16704 16705# No shared lib support for Linux oldld, aout, or coff. 16706linux*oldld* | linux*aout* | linux*coff*) 16707 dynamic_linker=no 16708 ;; 16709 16710# This must be Linux ELF. 16711linux* | k*bsd*-gnu | kopensolaris*-gnu) 16712 version_type=linux 16713 need_lib_prefix=no 16714 need_version=no 16715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16716 soname_spec='${libname}${release}${shared_ext}$major' 16717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16718 shlibpath_var=LD_LIBRARY_PATH 16719 shlibpath_overrides_runpath=no 16720 16721 # Some binutils ld are patched to set DT_RUNPATH 16722 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16723 $as_echo_n "(cached) " >&6 16724else 16725 lt_cv_shlibpath_overrides_runpath=no 16726 save_LDFLAGS=$LDFLAGS 16727 save_libdir=$libdir 16728 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16729 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16731/* end confdefs.h. */ 16732 16733int 16734main () 16735{ 16736 16737 ; 16738 return 0; 16739} 16740_ACEOF 16741if ac_fn_c_try_link "$LINENO"; then : 16742 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16743 lt_cv_shlibpath_overrides_runpath=yes 16744fi 16745fi 16746rm -f core conftest.err conftest.$ac_objext \ 16747 conftest$ac_exeext conftest.$ac_ext 16748 LDFLAGS=$save_LDFLAGS 16749 libdir=$save_libdir 16750 16751fi 16752 16753 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16754 16755 # This implies no fast_install, which is unacceptable. 16756 # Some rework will be needed to allow for fast_install 16757 # before this can be enabled. 16758 hardcode_into_libs=yes 16759 16760 # Append ld.so.conf contents to the search path 16761 if test -f /etc/ld.so.conf; then 16762 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 16763 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16764 fi 16765 16766 # We used to test for /lib/ld.so.1 and disable shared libraries on 16767 # powerpc, because MkLinux only supported shared libraries with the 16768 # GNU dynamic linker. Since this was broken with cross compilers, 16769 # most powerpc-linux boxes support dynamic linking these days and 16770 # people can always --disable-shared, the test was removed, and we 16771 # assume the GNU/Linux dynamic linker is in use. 16772 dynamic_linker='GNU/Linux ld.so' 16773 ;; 16774 16775netbsd*) 16776 version_type=sunos 16777 need_lib_prefix=no 16778 need_version=no 16779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16782 dynamic_linker='NetBSD (a.out) ld.so' 16783 else 16784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16785 soname_spec='${libname}${release}${shared_ext}$major' 16786 dynamic_linker='NetBSD ld.elf_so' 16787 fi 16788 shlibpath_var=LD_LIBRARY_PATH 16789 shlibpath_overrides_runpath=yes 16790 hardcode_into_libs=yes 16791 ;; 16792 16793newsos6) 16794 version_type=linux 16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16796 shlibpath_var=LD_LIBRARY_PATH 16797 shlibpath_overrides_runpath=yes 16798 ;; 16799 16800*nto* | *qnx*) 16801 version_type=qnx 16802 need_lib_prefix=no 16803 need_version=no 16804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16805 soname_spec='${libname}${release}${shared_ext}$major' 16806 shlibpath_var=LD_LIBRARY_PATH 16807 shlibpath_overrides_runpath=no 16808 hardcode_into_libs=yes 16809 dynamic_linker='ldqnx.so' 16810 ;; 16811 16812openbsd*) 16813 version_type=sunos 16814 sys_lib_dlsearch_path_spec="/usr/lib" 16815 need_lib_prefix=no 16816 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16817 case $host_os in 16818 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16819 *) need_version=no ;; 16820 esac 16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16823 shlibpath_var=LD_LIBRARY_PATH 16824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16825 case $host_os in 16826 openbsd2.[89] | openbsd2.[89].*) 16827 shlibpath_overrides_runpath=no 16828 ;; 16829 *) 16830 shlibpath_overrides_runpath=yes 16831 ;; 16832 esac 16833 else 16834 shlibpath_overrides_runpath=yes 16835 fi 16836 ;; 16837 16838os2*) 16839 libname_spec='$name' 16840 shrext_cmds=".dll" 16841 need_lib_prefix=no 16842 library_names_spec='$libname${shared_ext} $libname.a' 16843 dynamic_linker='OS/2 ld.exe' 16844 shlibpath_var=LIBPATH 16845 ;; 16846 16847osf3* | osf4* | osf5*) 16848 version_type=osf 16849 need_lib_prefix=no 16850 need_version=no 16851 soname_spec='${libname}${release}${shared_ext}$major' 16852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16853 shlibpath_var=LD_LIBRARY_PATH 16854 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16855 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16856 ;; 16857 16858rdos*) 16859 dynamic_linker=no 16860 ;; 16861 16862solaris*) 16863 version_type=linux 16864 need_lib_prefix=no 16865 need_version=no 16866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16867 soname_spec='${libname}${release}${shared_ext}$major' 16868 shlibpath_var=LD_LIBRARY_PATH 16869 shlibpath_overrides_runpath=yes 16870 hardcode_into_libs=yes 16871 # ldd complains unless libraries are executable 16872 postinstall_cmds='chmod +x $lib' 16873 ;; 16874 16875sunos4*) 16876 version_type=sunos 16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16878 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16879 shlibpath_var=LD_LIBRARY_PATH 16880 shlibpath_overrides_runpath=yes 16881 if test "$with_gnu_ld" = yes; then 16882 need_lib_prefix=no 16883 fi 16884 need_version=yes 16885 ;; 16886 16887sysv4 | sysv4.3*) 16888 version_type=linux 16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16890 soname_spec='${libname}${release}${shared_ext}$major' 16891 shlibpath_var=LD_LIBRARY_PATH 16892 case $host_vendor in 16893 sni) 16894 shlibpath_overrides_runpath=no 16895 need_lib_prefix=no 16896 runpath_var=LD_RUN_PATH 16897 ;; 16898 siemens) 16899 need_lib_prefix=no 16900 ;; 16901 motorola) 16902 need_lib_prefix=no 16903 need_version=no 16904 shlibpath_overrides_runpath=no 16905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16906 ;; 16907 esac 16908 ;; 16909 16910sysv4*MP*) 16911 if test -d /usr/nec ;then 16912 version_type=linux 16913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16914 soname_spec='$libname${shared_ext}.$major' 16915 shlibpath_var=LD_LIBRARY_PATH 16916 fi 16917 ;; 16918 16919sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16920 version_type=freebsd-elf 16921 need_lib_prefix=no 16922 need_version=no 16923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16924 soname_spec='${libname}${release}${shared_ext}$major' 16925 shlibpath_var=LD_LIBRARY_PATH 16926 shlibpath_overrides_runpath=yes 16927 hardcode_into_libs=yes 16928 if test "$with_gnu_ld" = yes; then 16929 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16930 else 16931 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16932 case $host_os in 16933 sco3.2v5*) 16934 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16935 ;; 16936 esac 16937 fi 16938 sys_lib_dlsearch_path_spec='/usr/lib' 16939 ;; 16940 16941tpf*) 16942 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16943 version_type=linux 16944 need_lib_prefix=no 16945 need_version=no 16946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16947 shlibpath_var=LD_LIBRARY_PATH 16948 shlibpath_overrides_runpath=no 16949 hardcode_into_libs=yes 16950 ;; 16951 16952uts4*) 16953 version_type=linux 16954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16955 soname_spec='${libname}${release}${shared_ext}$major' 16956 shlibpath_var=LD_LIBRARY_PATH 16957 ;; 16958 16959*) 16960 dynamic_linker=no 16961 ;; 16962esac 16963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16964$as_echo "$dynamic_linker" >&6; } 16965test "$dynamic_linker" = no && can_build_shared=no 16966 16967variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16968if test "$GCC" = yes; then 16969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16970fi 16971 16972if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 16973 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 16974fi 16975if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 16976 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 16977fi 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17071$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17072hardcode_action= 17073if test -n "$hardcode_libdir_flag_spec" || 17074 test -n "$runpath_var" || 17075 test "X$hardcode_automatic" = "Xyes" ; then 17076 17077 # We can hardcode non-existent directories. 17078 if test "$hardcode_direct" != no && 17079 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17080 # have to relink, otherwise we might link with an installed library 17081 # when we should be linking with a yet-to-be-installed one 17082 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17083 test "$hardcode_minus_L" != no; then 17084 # Linking always hardcodes the temporary library directory. 17085 hardcode_action=relink 17086 else 17087 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17088 hardcode_action=immediate 17089 fi 17090else 17091 # We cannot hardcode anything, or else we can only hardcode existing 17092 # directories. 17093 hardcode_action=unsupported 17094fi 17095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17096$as_echo "$hardcode_action" >&6; } 17097 17098if test "$hardcode_action" = relink || 17099 test "$inherit_rpath" = yes; then 17100 # Fast installation is not supported 17101 enable_fast_install=no 17102elif test "$shlibpath_overrides_runpath" = yes || 17103 test "$enable_shared" = no; then 17104 # Fast installation is not necessary 17105 enable_fast_install=needless 17106fi 17107 17108 17109 17110 17111 17112 17113 if test "x$enable_dlopen" != xyes; then 17114 enable_dlopen=unknown 17115 enable_dlopen_self=unknown 17116 enable_dlopen_self_static=unknown 17117else 17118 lt_cv_dlopen=no 17119 lt_cv_dlopen_libs= 17120 17121 case $host_os in 17122 beos*) 17123 lt_cv_dlopen="load_add_on" 17124 lt_cv_dlopen_libs= 17125 lt_cv_dlopen_self=yes 17126 ;; 17127 17128 mingw* | pw32* | cegcc*) 17129 lt_cv_dlopen="LoadLibrary" 17130 lt_cv_dlopen_libs= 17131 ;; 17132 17133 cygwin*) 17134 lt_cv_dlopen="dlopen" 17135 lt_cv_dlopen_libs= 17136 ;; 17137 17138 darwin*) 17139 # if libdl is installed we need to link against it 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17141$as_echo_n "checking for dlopen in -ldl... " >&6; } 17142if ${ac_cv_lib_dl_dlopen+:} false; then : 17143 $as_echo_n "(cached) " >&6 17144else 17145 ac_check_lib_save_LIBS=$LIBS 17146LIBS="-ldl $LIBS" 17147cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17148/* end confdefs.h. */ 17149 17150/* Override any GCC internal prototype to avoid an error. 17151 Use char because int might match the return type of a GCC 17152 builtin and then its argument prototype would still apply. */ 17153#ifdef __cplusplus 17154extern "C" 17155#endif 17156char dlopen (); 17157int 17158main () 17159{ 17160return dlopen (); 17161 ; 17162 return 0; 17163} 17164_ACEOF 17165if ac_fn_c_try_link "$LINENO"; then : 17166 ac_cv_lib_dl_dlopen=yes 17167else 17168 ac_cv_lib_dl_dlopen=no 17169fi 17170rm -f core conftest.err conftest.$ac_objext \ 17171 conftest$ac_exeext conftest.$ac_ext 17172LIBS=$ac_check_lib_save_LIBS 17173fi 17174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17175$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17176if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17177 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17178else 17179 17180 lt_cv_dlopen="dyld" 17181 lt_cv_dlopen_libs= 17182 lt_cv_dlopen_self=yes 17183 17184fi 17185 17186 ;; 17187 17188 *) 17189 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17190if test "x$ac_cv_func_shl_load" = xyes; then : 17191 lt_cv_dlopen="shl_load" 17192else 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17194$as_echo_n "checking for shl_load in -ldld... " >&6; } 17195if ${ac_cv_lib_dld_shl_load+:} false; then : 17196 $as_echo_n "(cached) " >&6 17197else 17198 ac_check_lib_save_LIBS=$LIBS 17199LIBS="-ldld $LIBS" 17200cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17201/* end confdefs.h. */ 17202 17203/* Override any GCC internal prototype to avoid an error. 17204 Use char because int might match the return type of a GCC 17205 builtin and then its argument prototype would still apply. */ 17206#ifdef __cplusplus 17207extern "C" 17208#endif 17209char shl_load (); 17210int 17211main () 17212{ 17213return shl_load (); 17214 ; 17215 return 0; 17216} 17217_ACEOF 17218if ac_fn_c_try_link "$LINENO"; then : 17219 ac_cv_lib_dld_shl_load=yes 17220else 17221 ac_cv_lib_dld_shl_load=no 17222fi 17223rm -f core conftest.err conftest.$ac_objext \ 17224 conftest$ac_exeext conftest.$ac_ext 17225LIBS=$ac_check_lib_save_LIBS 17226fi 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17228$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17229if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17230 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17231else 17232 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17233if test "x$ac_cv_func_dlopen" = xyes; then : 17234 lt_cv_dlopen="dlopen" 17235else 17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17237$as_echo_n "checking for dlopen in -ldl... " >&6; } 17238if ${ac_cv_lib_dl_dlopen+:} false; then : 17239 $as_echo_n "(cached) " >&6 17240else 17241 ac_check_lib_save_LIBS=$LIBS 17242LIBS="-ldl $LIBS" 17243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17244/* end confdefs.h. */ 17245 17246/* Override any GCC internal prototype to avoid an error. 17247 Use char because int might match the return type of a GCC 17248 builtin and then its argument prototype would still apply. */ 17249#ifdef __cplusplus 17250extern "C" 17251#endif 17252char dlopen (); 17253int 17254main () 17255{ 17256return dlopen (); 17257 ; 17258 return 0; 17259} 17260_ACEOF 17261if ac_fn_c_try_link "$LINENO"; then : 17262 ac_cv_lib_dl_dlopen=yes 17263else 17264 ac_cv_lib_dl_dlopen=no 17265fi 17266rm -f core conftest.err conftest.$ac_objext \ 17267 conftest$ac_exeext conftest.$ac_ext 17268LIBS=$ac_check_lib_save_LIBS 17269fi 17270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17271$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17272if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17274else 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17276$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17277if ${ac_cv_lib_svld_dlopen+:} false; then : 17278 $as_echo_n "(cached) " >&6 17279else 17280 ac_check_lib_save_LIBS=$LIBS 17281LIBS="-lsvld $LIBS" 17282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17283/* end confdefs.h. */ 17284 17285/* Override any GCC internal prototype to avoid an error. 17286 Use char because int might match the return type of a GCC 17287 builtin and then its argument prototype would still apply. */ 17288#ifdef __cplusplus 17289extern "C" 17290#endif 17291char dlopen (); 17292int 17293main () 17294{ 17295return dlopen (); 17296 ; 17297 return 0; 17298} 17299_ACEOF 17300if ac_fn_c_try_link "$LINENO"; then : 17301 ac_cv_lib_svld_dlopen=yes 17302else 17303 ac_cv_lib_svld_dlopen=no 17304fi 17305rm -f core conftest.err conftest.$ac_objext \ 17306 conftest$ac_exeext conftest.$ac_ext 17307LIBS=$ac_check_lib_save_LIBS 17308fi 17309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17310$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17311if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17313else 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17315$as_echo_n "checking for dld_link in -ldld... " >&6; } 17316if ${ac_cv_lib_dld_dld_link+:} false; then : 17317 $as_echo_n "(cached) " >&6 17318else 17319 ac_check_lib_save_LIBS=$LIBS 17320LIBS="-ldld $LIBS" 17321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17322/* end confdefs.h. */ 17323 17324/* Override any GCC internal prototype to avoid an error. 17325 Use char because int might match the return type of a GCC 17326 builtin and then its argument prototype would still apply. */ 17327#ifdef __cplusplus 17328extern "C" 17329#endif 17330char dld_link (); 17331int 17332main () 17333{ 17334return dld_link (); 17335 ; 17336 return 0; 17337} 17338_ACEOF 17339if ac_fn_c_try_link "$LINENO"; then : 17340 ac_cv_lib_dld_dld_link=yes 17341else 17342 ac_cv_lib_dld_dld_link=no 17343fi 17344rm -f core conftest.err conftest.$ac_objext \ 17345 conftest$ac_exeext conftest.$ac_ext 17346LIBS=$ac_check_lib_save_LIBS 17347fi 17348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17349$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17350if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17351 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17352fi 17353 17354 17355fi 17356 17357 17358fi 17359 17360 17361fi 17362 17363 17364fi 17365 17366 17367fi 17368 17369 ;; 17370 esac 17371 17372 if test "x$lt_cv_dlopen" != xno; then 17373 enable_dlopen=yes 17374 else 17375 enable_dlopen=no 17376 fi 17377 17378 case $lt_cv_dlopen in 17379 dlopen) 17380 save_CPPFLAGS="$CPPFLAGS" 17381 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17382 17383 save_LDFLAGS="$LDFLAGS" 17384 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17385 17386 save_LIBS="$LIBS" 17387 LIBS="$lt_cv_dlopen_libs $LIBS" 17388 17389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17390$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17391if ${lt_cv_dlopen_self+:} false; then : 17392 $as_echo_n "(cached) " >&6 17393else 17394 if test "$cross_compiling" = yes; then : 17395 lt_cv_dlopen_self=cross 17396else 17397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17398 lt_status=$lt_dlunknown 17399 cat > conftest.$ac_ext <<_LT_EOF 17400#line $LINENO "configure" 17401#include "confdefs.h" 17402 17403#if HAVE_DLFCN_H 17404#include <dlfcn.h> 17405#endif 17406 17407#include <stdio.h> 17408 17409#ifdef RTLD_GLOBAL 17410# define LT_DLGLOBAL RTLD_GLOBAL 17411#else 17412# ifdef DL_GLOBAL 17413# define LT_DLGLOBAL DL_GLOBAL 17414# else 17415# define LT_DLGLOBAL 0 17416# endif 17417#endif 17418 17419/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17420 find out it does not work in some platform. */ 17421#ifndef LT_DLLAZY_OR_NOW 17422# ifdef RTLD_LAZY 17423# define LT_DLLAZY_OR_NOW RTLD_LAZY 17424# else 17425# ifdef DL_LAZY 17426# define LT_DLLAZY_OR_NOW DL_LAZY 17427# else 17428# ifdef RTLD_NOW 17429# define LT_DLLAZY_OR_NOW RTLD_NOW 17430# else 17431# ifdef DL_NOW 17432# define LT_DLLAZY_OR_NOW DL_NOW 17433# else 17434# define LT_DLLAZY_OR_NOW 0 17435# endif 17436# endif 17437# endif 17438# endif 17439#endif 17440 17441/* When -fvisbility=hidden is used, assume the code has been annotated 17442 correspondingly for the symbols needed. */ 17443#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17444int fnord () __attribute__((visibility("default"))); 17445#endif 17446 17447int fnord () { return 42; } 17448int main () 17449{ 17450 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17451 int status = $lt_dlunknown; 17452 17453 if (self) 17454 { 17455 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17456 else 17457 { 17458 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17459 else puts (dlerror ()); 17460 } 17461 /* dlclose (self); */ 17462 } 17463 else 17464 puts (dlerror ()); 17465 17466 return status; 17467} 17468_LT_EOF 17469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17470 (eval $ac_link) 2>&5 17471 ac_status=$? 17472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17473 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17474 (./conftest; exit; ) >&5 2>/dev/null 17475 lt_status=$? 17476 case x$lt_status in 17477 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17478 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17479 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17480 esac 17481 else : 17482 # compilation failed 17483 lt_cv_dlopen_self=no 17484 fi 17485fi 17486rm -fr conftest* 17487 17488 17489fi 17490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17491$as_echo "$lt_cv_dlopen_self" >&6; } 17492 17493 if test "x$lt_cv_dlopen_self" = xyes; then 17494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17496$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17497if ${lt_cv_dlopen_self_static+:} false; then : 17498 $as_echo_n "(cached) " >&6 17499else 17500 if test "$cross_compiling" = yes; then : 17501 lt_cv_dlopen_self_static=cross 17502else 17503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17504 lt_status=$lt_dlunknown 17505 cat > conftest.$ac_ext <<_LT_EOF 17506#line $LINENO "configure" 17507#include "confdefs.h" 17508 17509#if HAVE_DLFCN_H 17510#include <dlfcn.h> 17511#endif 17512 17513#include <stdio.h> 17514 17515#ifdef RTLD_GLOBAL 17516# define LT_DLGLOBAL RTLD_GLOBAL 17517#else 17518# ifdef DL_GLOBAL 17519# define LT_DLGLOBAL DL_GLOBAL 17520# else 17521# define LT_DLGLOBAL 0 17522# endif 17523#endif 17524 17525/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17526 find out it does not work in some platform. */ 17527#ifndef LT_DLLAZY_OR_NOW 17528# ifdef RTLD_LAZY 17529# define LT_DLLAZY_OR_NOW RTLD_LAZY 17530# else 17531# ifdef DL_LAZY 17532# define LT_DLLAZY_OR_NOW DL_LAZY 17533# else 17534# ifdef RTLD_NOW 17535# define LT_DLLAZY_OR_NOW RTLD_NOW 17536# else 17537# ifdef DL_NOW 17538# define LT_DLLAZY_OR_NOW DL_NOW 17539# else 17540# define LT_DLLAZY_OR_NOW 0 17541# endif 17542# endif 17543# endif 17544# endif 17545#endif 17546 17547/* When -fvisbility=hidden is used, assume the code has been annotated 17548 correspondingly for the symbols needed. */ 17549#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17550int fnord () __attribute__((visibility("default"))); 17551#endif 17552 17553int fnord () { return 42; } 17554int main () 17555{ 17556 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17557 int status = $lt_dlunknown; 17558 17559 if (self) 17560 { 17561 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17562 else 17563 { 17564 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17565 else puts (dlerror ()); 17566 } 17567 /* dlclose (self); */ 17568 } 17569 else 17570 puts (dlerror ()); 17571 17572 return status; 17573} 17574_LT_EOF 17575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17576 (eval $ac_link) 2>&5 17577 ac_status=$? 17578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17579 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17580 (./conftest; exit; ) >&5 2>/dev/null 17581 lt_status=$? 17582 case x$lt_status in 17583 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17584 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17585 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17586 esac 17587 else : 17588 # compilation failed 17589 lt_cv_dlopen_self_static=no 17590 fi 17591fi 17592rm -fr conftest* 17593 17594 17595fi 17596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17597$as_echo "$lt_cv_dlopen_self_static" >&6; } 17598 fi 17599 17600 CPPFLAGS="$save_CPPFLAGS" 17601 LDFLAGS="$save_LDFLAGS" 17602 LIBS="$save_LIBS" 17603 ;; 17604 esac 17605 17606 case $lt_cv_dlopen_self in 17607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17608 *) enable_dlopen_self=unknown ;; 17609 esac 17610 17611 case $lt_cv_dlopen_self_static in 17612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17613 *) enable_dlopen_self_static=unknown ;; 17614 esac 17615fi 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633striplib= 17634old_striplib= 17635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17636$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17637if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17638 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17639 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17641$as_echo "yes" >&6; } 17642else 17643# FIXME - insert some real tests, host_os isn't really good enough 17644 case $host_os in 17645 darwin*) 17646 if test -n "$STRIP" ; then 17647 striplib="$STRIP -x" 17648 old_striplib="$STRIP -S" 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17650$as_echo "yes" >&6; } 17651 else 17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17653$as_echo "no" >&6; } 17654 fi 17655 ;; 17656 *) 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17658$as_echo "no" >&6; } 17659 ;; 17660 esac 17661fi 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 # Report which library types will actually be built 17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17676$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17678$as_echo "$can_build_shared" >&6; } 17679 17680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17681$as_echo_n "checking whether to build shared libraries... " >&6; } 17682 test "$can_build_shared" = "no" && enable_shared=no 17683 17684 # On AIX, shared libraries and static libraries use the same namespace, and 17685 # are all built from PIC. 17686 case $host_os in 17687 aix3*) 17688 test "$enable_shared" = yes && enable_static=no 17689 if test -n "$RANLIB"; then 17690 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17691 postinstall_cmds='$RANLIB $lib' 17692 fi 17693 ;; 17694 17695 aix[4-9]*) 17696 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17697 test "$enable_shared" = yes && enable_static=no 17698 fi 17699 ;; 17700 esac 17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17702$as_echo "$enable_shared" >&6; } 17703 17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17705$as_echo_n "checking whether to build static libraries... " >&6; } 17706 # Make sure either enable_shared or enable_static is yes. 17707 test "$enable_shared" = yes || enable_static=yes 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17709$as_echo "$enable_static" >&6; } 17710 17711 17712 17713 17714fi 17715ac_ext=c 17716ac_cpp='$CPP $CPPFLAGS' 17717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17719ac_compiler_gnu=$ac_cv_c_compiler_gnu 17720 17721CC="$lt_save_CC" 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 ac_config_commands="$ac_config_commands libtool" 17736 17737 17738 17739 17740# Only expand once: 17741 17742 17743case $host_cpu in 17744 sparc*) 17745 CCASFLAGS="-x assembler-with-cpp -Wa,-Av9a" 17746 SPARC=yes 17747esac 17748# By default we simply use the C compiler to build assembly code. 17749 17750test "${CCAS+set}" = set || CCAS=$CC 17751test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS 17752 17753 17754 17755depcc="$CCAS" am_compiler_list= 17756 17757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 17758$as_echo_n "checking dependency style of $depcc... " >&6; } 17759if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : 17760 $as_echo_n "(cached) " >&6 17761else 17762 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 17763 # We make a subdir and do the tests there. Otherwise we can end up 17764 # making bogus files that we don't know about and never remove. For 17765 # instance it was reported that on HP-UX the gcc test will end up 17766 # making a dummy file named 'D' -- because '-MD' means "put the output 17767 # in D". 17768 rm -rf conftest.dir 17769 mkdir conftest.dir 17770 # Copy depcomp to subdir because otherwise we won't find it if we're 17771 # using a relative directory. 17772 cp "$am_depcomp" conftest.dir 17773 cd conftest.dir 17774 # We will build objects and dependencies in a subdirectory because 17775 # it helps to detect inapplicable dependency modes. For instance 17776 # both Tru64's cc and ICC support -MD to output dependencies as a 17777 # side effect of compilation, but ICC will put the dependencies in 17778 # the current directory while Tru64 will put them in the object 17779 # directory. 17780 mkdir sub 17781 17782 am_cv_CCAS_dependencies_compiler_type=none 17783 if test "$am_compiler_list" = ""; then 17784 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 17785 fi 17786 am__universal=false 17787 17788 17789 for depmode in $am_compiler_list; do 17790 # Setup a source with many dependencies, because some compilers 17791 # like to wrap large dependency lists on column 80 (with \), and 17792 # we should not choose a depcomp mode which is confused by this. 17793 # 17794 # We need to recreate these files for each test, as the compiler may 17795 # overwrite some of them when testing with obscure command lines. 17796 # This happens at least with the AIX C compiler. 17797 : > sub/conftest.c 17798 for i in 1 2 3 4 5 6; do 17799 echo '#include "conftst'$i'.h"' >> sub/conftest.c 17800 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 17801 # Solaris 10 /bin/sh. 17802 echo '/* dummy */' > sub/conftst$i.h 17803 done 17804 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 17805 17806 # We check with '-c' and '-o' for the sake of the "dashmstdout" 17807 # mode. It turns out that the SunPro C++ compiler does not properly 17808 # handle '-M -o', and we need to detect this. Also, some Intel 17809 # versions had trouble with output in subdirs. 17810 am__obj=sub/conftest.${OBJEXT-o} 17811 am__minus_obj="-o $am__obj" 17812 case $depmode in 17813 gcc) 17814 # This depmode causes a compiler race in universal mode. 17815 test "$am__universal" = false || continue 17816 ;; 17817 nosideeffect) 17818 # After this tag, mechanisms are not by side-effect, so they'll 17819 # only be used when explicitly requested. 17820 if test "x$enable_dependency_tracking" = xyes; then 17821 continue 17822 else 17823 break 17824 fi 17825 ;; 17826 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 17827 # This compiler won't grok '-c -o', but also, the minuso test has 17828 # not run yet. These depmodes are late enough in the game, and 17829 # so weak that their functioning should not be impacted. 17830 am__obj=conftest.${OBJEXT-o} 17831 am__minus_obj= 17832 ;; 17833 none) break ;; 17834 esac 17835 if depmode=$depmode \ 17836 source=sub/conftest.c object=$am__obj \ 17837 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 17838 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 17839 >/dev/null 2>conftest.err && 17840 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 17841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 17842 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 17843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 17844 # icc doesn't choke on unknown options, it will just issue warnings 17845 # or remarks (even with -Werror). So we grep stderr for any message 17846 # that says an option was ignored or not supported. 17847 # When given -MP, icc 7.0 and 7.1 complain thusly: 17848 # icc: Command line warning: ignoring option '-M'; no argument required 17849 # The diagnosis changed in icc 8.0: 17850 # icc: Command line remark: option '-MP' not supported 17851 if (grep 'ignoring option' conftest.err || 17852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 17853 am_cv_CCAS_dependencies_compiler_type=$depmode 17854 break 17855 fi 17856 fi 17857 done 17858 17859 cd .. 17860 rm -rf conftest.dir 17861else 17862 am_cv_CCAS_dependencies_compiler_type=none 17863fi 17864 17865fi 17866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 17867$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } 17868CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type 17869 17870 if 17871 test "x$enable_dependency_tracking" != xno \ 17872 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then 17873 am__fastdepCCAS_TRUE= 17874 am__fastdepCCAS_FALSE='#' 17875else 17876 am__fastdepCCAS_TRUE='#' 17877 am__fastdepCCAS_FALSE= 17878fi 17879 17880 17881 17882 17883 17884# Define a configure option for an alternate module directory 17885 17886# Check whether --with-xorg-module-dir was given. 17887if test "${with_xorg_module_dir+set}" = set; then : 17888 withval=$with_xorg_module_dir; moduledir="$withval" 17889else 17890 moduledir="$libdir/xorg/modules" 17891fi 17892 17893 17894# Store the list of server defined optional extensions in REQUIRED_MODULES 17895 17896 17897 SAVE_CFLAGS="$CFLAGS" 17898 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17900/* end confdefs.h. */ 17901 17902#include "xorg-server.h" 17903#if !defined RANDR 17904#error RANDR not defined 17905#endif 17906 17907int 17908main () 17909{ 17910 17911 ; 17912 return 0; 17913} 17914_ACEOF 17915if ac_fn_c_try_compile "$LINENO"; then : 17916 _EXT_CHECK=yes 17917else 17918 _EXT_CHECK=no 17919fi 17920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17921 CFLAGS="$SAVE_CFLAGS" 17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RANDR is defined" >&5 17923$as_echo_n "checking if RANDR is defined... " >&6; } 17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17925$as_echo "$_EXT_CHECK" >&6; } 17926 if test "$_EXT_CHECK" != no; then 17927 REQUIRED_MODULES="$REQUIRED_MODULES randrproto" 17928 fi 17929 17930 17931 17932 SAVE_CFLAGS="$CFLAGS" 17933 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17935/* end confdefs.h. */ 17936 17937#include "xorg-server.h" 17938#if !defined RENDER 17939#error RENDER not defined 17940#endif 17941 17942int 17943main () 17944{ 17945 17946 ; 17947 return 0; 17948} 17949_ACEOF 17950if ac_fn_c_try_compile "$LINENO"; then : 17951 _EXT_CHECK=yes 17952else 17953 _EXT_CHECK=no 17954fi 17955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17956 CFLAGS="$SAVE_CFLAGS" 17957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RENDER is defined" >&5 17958$as_echo_n "checking if RENDER is defined... " >&6; } 17959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17960$as_echo "$_EXT_CHECK" >&6; } 17961 if test "$_EXT_CHECK" != no; then 17962 REQUIRED_MODULES="$REQUIRED_MODULES renderproto" 17963 fi 17964 17965 17966 17967 SAVE_CFLAGS="$CFLAGS" 17968 CFLAGS="$CFLAGS -I`$PKG_CONFIG --variable=sdkdir xorg-server`" 17969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17970/* end confdefs.h. */ 17971 17972#include "xorg-server.h" 17973#if !defined DPMSExtension 17974#error DPMSExtension not defined 17975#endif 17976 17977int 17978main () 17979{ 17980 17981 ; 17982 return 0; 17983} 17984_ACEOF 17985if ac_fn_c_try_compile "$LINENO"; then : 17986 _EXT_CHECK=yes 17987else 17988 _EXT_CHECK=no 17989fi 17990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17991 CFLAGS="$SAVE_CFLAGS" 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPMSExtension is defined" >&5 17993$as_echo_n "checking if DPMSExtension is defined... " >&6; } 17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_EXT_CHECK" >&5 17995$as_echo "$_EXT_CHECK" >&6; } 17996 if test "$_EXT_CHECK" != no; then 17997 REQUIRED_MODULES="$REQUIRED_MODULES xextproto" 17998 fi 17999 18000 18001# Obtain compiler/linker options for the driver dependencies 18002 18003pkg_failed=no 18004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18005$as_echo_n "checking for XORG... " >&6; } 18006 18007if test -n "$XORG_CFLAGS"; then 18008 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18009 elif test -n "$PKG_CONFIG"; then 18010 if test -n "$PKG_CONFIG" && \ 18011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18012 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18013 ac_status=$? 18014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18015 test $ac_status = 0; }; then 18016 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18017 test "x$?" != "x0" && pkg_failed=yes 18018else 18019 pkg_failed=yes 18020fi 18021 else 18022 pkg_failed=untried 18023fi 18024if test -n "$XORG_LIBS"; then 18025 pkg_cv_XORG_LIBS="$XORG_LIBS" 18026 elif test -n "$PKG_CONFIG"; then 18027 if test -n "$PKG_CONFIG" && \ 18028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18029 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18030 ac_status=$? 18031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18032 test $ac_status = 0; }; then 18033 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18034 test "x$?" != "x0" && pkg_failed=yes 18035else 18036 pkg_failed=yes 18037fi 18038 else 18039 pkg_failed=untried 18040fi 18041 18042 18043 18044if test $pkg_failed = yes; then 18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18046$as_echo "no" >&6; } 18047 18048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18049 _pkg_short_errors_supported=yes 18050else 18051 _pkg_short_errors_supported=no 18052fi 18053 if test $_pkg_short_errors_supported = yes; then 18054 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18055 else 18056 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18057 fi 18058 # Put the nasty error message in config.log where it belongs 18059 echo "$XORG_PKG_ERRORS" >&5 18060 18061 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18062 18063$XORG_PKG_ERRORS 18064 18065Consider adjusting the PKG_CONFIG_PATH environment variable if you 18066installed software in a non-standard prefix. 18067 18068Alternatively, you may set the environment variables XORG_CFLAGS 18069and XORG_LIBS to avoid the need to call pkg-config. 18070See the pkg-config man page for more details." "$LINENO" 5 18071elif test $pkg_failed = untried; then 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18073$as_echo "no" >&6; } 18074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18076as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18077is in your PATH or set the PKG_CONFIG environment variable to the full 18078path to pkg-config. 18079 18080Alternatively, you may set the environment variables XORG_CFLAGS 18081and XORG_LIBS to avoid the need to call pkg-config. 18082See the pkg-config man page for more details. 18083 18084To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18085See \`config.log' for more details" "$LINENO" 5; } 18086else 18087 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18088 XORG_LIBS=$pkg_cv_XORG_LIBS 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18090$as_echo "yes" >&6; } 18091 18092fi 18093 18094pkg_failed=no 18095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEXT" >&5 18096$as_echo_n "checking for XEXT... " >&6; } 18097 18098if test -n "$XEXT_CFLAGS"; then 18099 pkg_cv_XEXT_CFLAGS="$XEXT_CFLAGS" 18100 elif test -n "$PKG_CONFIG"; then 18101 if test -n "$PKG_CONFIG" && \ 18102 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18103 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18104 ac_status=$? 18105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18106 test $ac_status = 0; }; then 18107 pkg_cv_XEXT_CFLAGS=`$PKG_CONFIG --cflags "xextproto >= 7.0.99.1" 2>/dev/null` 18108 test "x$?" != "x0" && pkg_failed=yes 18109else 18110 pkg_failed=yes 18111fi 18112 else 18113 pkg_failed=untried 18114fi 18115if test -n "$XEXT_LIBS"; then 18116 pkg_cv_XEXT_LIBS="$XEXT_LIBS" 18117 elif test -n "$PKG_CONFIG"; then 18118 if test -n "$PKG_CONFIG" && \ 18119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xextproto >= 7.0.99.1\""; } >&5 18120 ($PKG_CONFIG --exists --print-errors "xextproto >= 7.0.99.1") 2>&5 18121 ac_status=$? 18122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18123 test $ac_status = 0; }; then 18124 pkg_cv_XEXT_LIBS=`$PKG_CONFIG --libs "xextproto >= 7.0.99.1" 2>/dev/null` 18125 test "x$?" != "x0" && pkg_failed=yes 18126else 18127 pkg_failed=yes 18128fi 18129 else 18130 pkg_failed=untried 18131fi 18132 18133 18134 18135if test $pkg_failed = yes; then 18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18137$as_echo "no" >&6; } 18138 18139if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18140 _pkg_short_errors_supported=yes 18141else 18142 _pkg_short_errors_supported=no 18143fi 18144 if test $_pkg_short_errors_supported = yes; then 18145 XEXT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18146 else 18147 XEXT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xextproto >= 7.0.99.1" 2>&1` 18148 fi 18149 # Put the nasty error message in config.log where it belongs 18150 echo "$XEXT_PKG_ERRORS" >&5 18151 18152 HAVE_XEXTPROTO_71="no" 18153elif test $pkg_failed = untried; then 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18155$as_echo "no" >&6; } 18156 HAVE_XEXTPROTO_71="no" 18157else 18158 XEXT_CFLAGS=$pkg_cv_XEXT_CFLAGS 18159 XEXT_LIBS=$pkg_cv_XEXT_LIBS 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18161$as_echo "yes" >&6; } 18162 HAVE_XEXTPROTO_71="yes"; 18163$as_echo "#define HAVE_XEXTPROTO_71 1" >>confdefs.h 18164 18165fi 18166 if test "$HAVE_XEXTPROTO_71" = "yes" ; then 18167 HAVE_XEXTPROTO_71_TRUE= 18168 HAVE_XEXTPROTO_71_FALSE='#' 18169else 18170 HAVE_XEXTPROTO_71_TRUE='#' 18171 HAVE_XEXTPROTO_71_FALSE= 18172fi 18173 18174 18175# Checks for libraries. 18176 18177# Check whether --enable-xaa was given. 18178if test "${enable_xaa+set}" = set; then : 18179 enableval=$enable_xaa; XAA="$enableval" 18180else 18181 XAA=auto 18182fi 18183 18184if test "x$XAA" != xno; then 18185 save_CFLAGS=$CFLAGS 18186 save_CPPFLAGS=$CPPFLAGS 18187 CFLAGS=$XORG_CFLAGS 18188 CPPFLAGS="$XORG_CFLAGS" 18189 for ac_header in xaa.h 18190do : 18191 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18192if test "x$ac_cv_header_xaa_h" = xyes; then : 18193 cat >>confdefs.h <<_ACEOF 18194#define HAVE_XAA_H 1 18195_ACEOF 18196 XAA=yes 18197else 18198 XAA=no 18199fi 18200 18201done 18202 18203 CFLAGS=$save_CFLAGS 18204 CPPFLAGS=$save_CPPFLAGS 18205fi 18206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18207$as_echo_n "checking whether to include XAA support... " >&6; } 18208 if test "x$XAA" = xyes; then 18209 XAA_TRUE= 18210 XAA_FALSE='#' 18211else 18212 XAA_TRUE='#' 18213 XAA_FALSE= 18214fi 18215 18216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18217$as_echo "$XAA" >&6; } 18218 18219 if test x$SPARC = xyes; then 18220 SPARC_TRUE= 18221 SPARC_FALSE='#' 18222else 18223 SPARC_TRUE='#' 18224 SPARC_FALSE= 18225fi 18226 18227 18228 18229 18230DRIVER_NAME=sunffb 18231 18232 18233ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18234 18235cat >confcache <<\_ACEOF 18236# This file is a shell script that caches the results of configure 18237# tests run on this system so they can be shared between configure 18238# scripts and configure runs, see configure's option --config-cache. 18239# It is not useful on other systems. If it contains results you don't 18240# want to keep, you may remove or edit it. 18241# 18242# config.status only pays attention to the cache file if you give it 18243# the --recheck option to rerun configure. 18244# 18245# `ac_cv_env_foo' variables (set or unset) will be overridden when 18246# loading this file, other *unset* `ac_cv_foo' will be assigned the 18247# following values. 18248 18249_ACEOF 18250 18251# The following way of writing the cache mishandles newlines in values, 18252# but we know of no workaround that is simple, portable, and efficient. 18253# So, we kill variables containing newlines. 18254# Ultrix sh set writes to stderr and can't be redirected directly, 18255# and sets the high bit in the cache file unless we assign to the vars. 18256( 18257 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18258 eval ac_val=\$$ac_var 18259 case $ac_val in #( 18260 *${as_nl}*) 18261 case $ac_var in #( 18262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18263$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18264 esac 18265 case $ac_var in #( 18266 _ | IFS | as_nl) ;; #( 18267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18268 *) { eval $ac_var=; unset $ac_var;} ;; 18269 esac ;; 18270 esac 18271 done 18272 18273 (set) 2>&1 | 18274 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18275 *${as_nl}ac_space=\ *) 18276 # `set' does not quote correctly, so add quotes: double-quote 18277 # substitution turns \\\\ into \\, and sed turns \\ into \. 18278 sed -n \ 18279 "s/'/'\\\\''/g; 18280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18281 ;; #( 18282 *) 18283 # `set' quotes correctly as required by POSIX, so do not add quotes. 18284 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18285 ;; 18286 esac | 18287 sort 18288) | 18289 sed ' 18290 /^ac_cv_env_/b end 18291 t clear 18292 :clear 18293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18294 t end 18295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18296 :end' >>confcache 18297if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18298 if test -w "$cache_file"; then 18299 if test "x$cache_file" != "x/dev/null"; then 18300 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18301$as_echo "$as_me: updating cache $cache_file" >&6;} 18302 if test ! -f "$cache_file" || test -h "$cache_file"; then 18303 cat confcache >"$cache_file" 18304 else 18305 case $cache_file in #( 18306 */* | ?:*) 18307 mv -f confcache "$cache_file"$$ && 18308 mv -f "$cache_file"$$ "$cache_file" ;; #( 18309 *) 18310 mv -f confcache "$cache_file" ;; 18311 esac 18312 fi 18313 fi 18314 else 18315 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18316$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18317 fi 18318fi 18319rm -f confcache 18320 18321test "x$prefix" = xNONE && prefix=$ac_default_prefix 18322# Let make expand exec_prefix. 18323test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18324 18325DEFS=-DHAVE_CONFIG_H 18326 18327ac_libobjs= 18328ac_ltlibobjs= 18329U= 18330for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18331 # 1. Remove the extension, and $U if already installed. 18332 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18333 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18334 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18335 # will be set to the directory where LIBOBJS objects are built. 18336 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18337 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18338done 18339LIBOBJS=$ac_libobjs 18340 18341LTLIBOBJS=$ac_ltlibobjs 18342 18343 18344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18345$as_echo_n "checking that generated files are newer than configure... " >&6; } 18346 if test -n "$am_sleep_pid"; then 18347 # Hide warnings about reused PIDs. 18348 wait $am_sleep_pid 2>/dev/null 18349 fi 18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18351$as_echo "done" >&6; } 18352 if test -n "$EXEEXT"; then 18353 am__EXEEXT_TRUE= 18354 am__EXEEXT_FALSE='#' 18355else 18356 am__EXEEXT_TRUE='#' 18357 am__EXEEXT_FALSE= 18358fi 18359 18360if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18361 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18362Usually this means the macro was only invoked conditionally." "$LINENO" 5 18363fi 18364if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18365 as_fn_error $? "conditional \"AMDEP\" was never defined. 18366Usually this means the macro was only invoked conditionally." "$LINENO" 5 18367fi 18368if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18369 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18370Usually this means the macro was only invoked conditionally." "$LINENO" 5 18371fi 18372if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 18373 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 18374Usually this means the macro was only invoked conditionally." "$LINENO" 5 18375fi 18376if test -z "${HAVE_XEXTPROTO_71_TRUE}" && test -z "${HAVE_XEXTPROTO_71_FALSE}"; then 18377 as_fn_error $? "conditional \"HAVE_XEXTPROTO_71\" was never defined. 18378Usually this means the macro was only invoked conditionally." "$LINENO" 5 18379fi 18380if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18381 as_fn_error $? "conditional \"XAA\" was never defined. 18382Usually this means the macro was only invoked conditionally." "$LINENO" 5 18383fi 18384if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then 18385 as_fn_error $? "conditional \"SPARC\" was never defined. 18386Usually this means the macro was only invoked conditionally." "$LINENO" 5 18387fi 18388 18389: "${CONFIG_STATUS=./config.status}" 18390ac_write_fail=0 18391ac_clean_files_save=$ac_clean_files 18392ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18393{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18394$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18395as_write_fail=0 18396cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18397#! $SHELL 18398# Generated by $as_me. 18399# Run this file to recreate the current configuration. 18400# Compiler output produced by configure, useful for debugging 18401# configure, is in config.log if it exists. 18402 18403debug=false 18404ac_cs_recheck=false 18405ac_cs_silent=false 18406 18407SHELL=\${CONFIG_SHELL-$SHELL} 18408export SHELL 18409_ASEOF 18410cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18411## -------------------- ## 18412## M4sh Initialization. ## 18413## -------------------- ## 18414 18415# Be more Bourne compatible 18416DUALCASE=1; export DUALCASE # for MKS sh 18417if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18418 emulate sh 18419 NULLCMD=: 18420 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18421 # is contrary to our usage. Disable this feature. 18422 alias -g '${1+"$@"}'='"$@"' 18423 setopt NO_GLOB_SUBST 18424else 18425 case `(set -o) 2>/dev/null` in #( 18426 *posix*) : 18427 set -o posix ;; #( 18428 *) : 18429 ;; 18430esac 18431fi 18432 18433 18434as_nl=' 18435' 18436export as_nl 18437# Printing a long string crashes Solaris 7 /usr/bin/printf. 18438as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18439as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18440as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18441# Prefer a ksh shell builtin over an external printf program on Solaris, 18442# but without wasting forks for bash or zsh. 18443if test -z "$BASH_VERSION$ZSH_VERSION" \ 18444 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18445 as_echo='print -r --' 18446 as_echo_n='print -rn --' 18447elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18448 as_echo='printf %s\n' 18449 as_echo_n='printf %s' 18450else 18451 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18452 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18453 as_echo_n='/usr/ucb/echo -n' 18454 else 18455 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18456 as_echo_n_body='eval 18457 arg=$1; 18458 case $arg in #( 18459 *"$as_nl"*) 18460 expr "X$arg" : "X\\(.*\\)$as_nl"; 18461 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18462 esac; 18463 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18464 ' 18465 export as_echo_n_body 18466 as_echo_n='sh -c $as_echo_n_body as_echo' 18467 fi 18468 export as_echo_body 18469 as_echo='sh -c $as_echo_body as_echo' 18470fi 18471 18472# The user is always right. 18473if test "${PATH_SEPARATOR+set}" != set; then 18474 PATH_SEPARATOR=: 18475 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18476 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18477 PATH_SEPARATOR=';' 18478 } 18479fi 18480 18481 18482# IFS 18483# We need space, tab and new line, in precisely that order. Quoting is 18484# there to prevent editors from complaining about space-tab. 18485# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18486# splitting by setting IFS to empty value.) 18487IFS=" "" $as_nl" 18488 18489# Find who we are. Look in the path if we contain no directory separator. 18490as_myself= 18491case $0 in #(( 18492 *[\\/]* ) as_myself=$0 ;; 18493 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18494for as_dir in $PATH 18495do 18496 IFS=$as_save_IFS 18497 test -z "$as_dir" && as_dir=. 18498 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18499 done 18500IFS=$as_save_IFS 18501 18502 ;; 18503esac 18504# We did not find ourselves, most probably we were run as `sh COMMAND' 18505# in which case we are not to be found in the path. 18506if test "x$as_myself" = x; then 18507 as_myself=$0 18508fi 18509if test ! -f "$as_myself"; then 18510 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18511 exit 1 18512fi 18513 18514# Unset variables that we do not need and which cause bugs (e.g. in 18515# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18516# suppresses any "Segmentation fault" message there. '((' could 18517# trigger a bug in pdksh 5.2.14. 18518for as_var in BASH_ENV ENV MAIL MAILPATH 18519do eval test x\${$as_var+set} = xset \ 18520 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18521done 18522PS1='$ ' 18523PS2='> ' 18524PS4='+ ' 18525 18526# NLS nuisances. 18527LC_ALL=C 18528export LC_ALL 18529LANGUAGE=C 18530export LANGUAGE 18531 18532# CDPATH. 18533(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18534 18535 18536# as_fn_error STATUS ERROR [LINENO LOG_FD] 18537# ---------------------------------------- 18538# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18539# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18540# script with STATUS, using 1 if that was 0. 18541as_fn_error () 18542{ 18543 as_status=$1; test $as_status -eq 0 && as_status=1 18544 if test "$4"; then 18545 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18546 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18547 fi 18548 $as_echo "$as_me: error: $2" >&2 18549 as_fn_exit $as_status 18550} # as_fn_error 18551 18552 18553# as_fn_set_status STATUS 18554# ----------------------- 18555# Set $? to STATUS, without forking. 18556as_fn_set_status () 18557{ 18558 return $1 18559} # as_fn_set_status 18560 18561# as_fn_exit STATUS 18562# ----------------- 18563# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18564as_fn_exit () 18565{ 18566 set +e 18567 as_fn_set_status $1 18568 exit $1 18569} # as_fn_exit 18570 18571# as_fn_unset VAR 18572# --------------- 18573# Portably unset VAR. 18574as_fn_unset () 18575{ 18576 { eval $1=; unset $1;} 18577} 18578as_unset=as_fn_unset 18579# as_fn_append VAR VALUE 18580# ---------------------- 18581# Append the text in VALUE to the end of the definition contained in VAR. Take 18582# advantage of any shell optimizations that allow amortized linear growth over 18583# repeated appends, instead of the typical quadratic growth present in naive 18584# implementations. 18585if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18586 eval 'as_fn_append () 18587 { 18588 eval $1+=\$2 18589 }' 18590else 18591 as_fn_append () 18592 { 18593 eval $1=\$$1\$2 18594 } 18595fi # as_fn_append 18596 18597# as_fn_arith ARG... 18598# ------------------ 18599# Perform arithmetic evaluation on the ARGs, and store the result in the 18600# global $as_val. Take advantage of shells that can avoid forks. The arguments 18601# must be portable across $(()) and expr. 18602if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18603 eval 'as_fn_arith () 18604 { 18605 as_val=$(( $* )) 18606 }' 18607else 18608 as_fn_arith () 18609 { 18610 as_val=`expr "$@" || test $? -eq 1` 18611 } 18612fi # as_fn_arith 18613 18614 18615if expr a : '\(a\)' >/dev/null 2>&1 && 18616 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18617 as_expr=expr 18618else 18619 as_expr=false 18620fi 18621 18622if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18623 as_basename=basename 18624else 18625 as_basename=false 18626fi 18627 18628if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18629 as_dirname=dirname 18630else 18631 as_dirname=false 18632fi 18633 18634as_me=`$as_basename -- "$0" || 18635$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18636 X"$0" : 'X\(//\)$' \| \ 18637 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18638$as_echo X/"$0" | 18639 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18640 s//\1/ 18641 q 18642 } 18643 /^X\/\(\/\/\)$/{ 18644 s//\1/ 18645 q 18646 } 18647 /^X\/\(\/\).*/{ 18648 s//\1/ 18649 q 18650 } 18651 s/.*/./; q'` 18652 18653# Avoid depending upon Character Ranges. 18654as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18655as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18656as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18657as_cr_digits='0123456789' 18658as_cr_alnum=$as_cr_Letters$as_cr_digits 18659 18660ECHO_C= ECHO_N= ECHO_T= 18661case `echo -n x` in #((((( 18662-n*) 18663 case `echo 'xy\c'` in 18664 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18665 xy) ECHO_C='\c';; 18666 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18667 ECHO_T=' ';; 18668 esac;; 18669*) 18670 ECHO_N='-n';; 18671esac 18672 18673rm -f conf$$ conf$$.exe conf$$.file 18674if test -d conf$$.dir; then 18675 rm -f conf$$.dir/conf$$.file 18676else 18677 rm -f conf$$.dir 18678 mkdir conf$$.dir 2>/dev/null 18679fi 18680if (echo >conf$$.file) 2>/dev/null; then 18681 if ln -s conf$$.file conf$$ 2>/dev/null; then 18682 as_ln_s='ln -s' 18683 # ... but there are two gotchas: 18684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18686 # In both cases, we have to default to `cp -pR'. 18687 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18688 as_ln_s='cp -pR' 18689 elif ln conf$$.file conf$$ 2>/dev/null; then 18690 as_ln_s=ln 18691 else 18692 as_ln_s='cp -pR' 18693 fi 18694else 18695 as_ln_s='cp -pR' 18696fi 18697rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18698rmdir conf$$.dir 2>/dev/null 18699 18700 18701# as_fn_mkdir_p 18702# ------------- 18703# Create "$as_dir" as a directory, including parents if necessary. 18704as_fn_mkdir_p () 18705{ 18706 18707 case $as_dir in #( 18708 -*) as_dir=./$as_dir;; 18709 esac 18710 test -d "$as_dir" || eval $as_mkdir_p || { 18711 as_dirs= 18712 while :; do 18713 case $as_dir in #( 18714 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18715 *) as_qdir=$as_dir;; 18716 esac 18717 as_dirs="'$as_qdir' $as_dirs" 18718 as_dir=`$as_dirname -- "$as_dir" || 18719$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18720 X"$as_dir" : 'X\(//\)[^/]' \| \ 18721 X"$as_dir" : 'X\(//\)$' \| \ 18722 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18723$as_echo X"$as_dir" | 18724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18725 s//\1/ 18726 q 18727 } 18728 /^X\(\/\/\)[^/].*/{ 18729 s//\1/ 18730 q 18731 } 18732 /^X\(\/\/\)$/{ 18733 s//\1/ 18734 q 18735 } 18736 /^X\(\/\).*/{ 18737 s//\1/ 18738 q 18739 } 18740 s/.*/./; q'` 18741 test -d "$as_dir" && break 18742 done 18743 test -z "$as_dirs" || eval "mkdir $as_dirs" 18744 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18745 18746 18747} # as_fn_mkdir_p 18748if mkdir -p . 2>/dev/null; then 18749 as_mkdir_p='mkdir -p "$as_dir"' 18750else 18751 test -d ./-p && rmdir ./-p 18752 as_mkdir_p=false 18753fi 18754 18755 18756# as_fn_executable_p FILE 18757# ----------------------- 18758# Test if FILE is an executable regular file. 18759as_fn_executable_p () 18760{ 18761 test -f "$1" && test -x "$1" 18762} # as_fn_executable_p 18763as_test_x='test -x' 18764as_executable_p=as_fn_executable_p 18765 18766# Sed expression to map a string onto a valid CPP name. 18767as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18768 18769# Sed expression to map a string onto a valid variable name. 18770as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18771 18772 18773exec 6>&1 18774## ----------------------------------- ## 18775## Main body of $CONFIG_STATUS script. ## 18776## ----------------------------------- ## 18777_ASEOF 18778test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18779 18780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18781# Save the log message, to keep $0 and so on meaningful, and to 18782# report actual input values of CONFIG_FILES etc. instead of their 18783# values after options handling. 18784ac_log=" 18785This file was extended by xf86-video-sunffb $as_me 1.2.2, which was 18786generated by GNU Autoconf 2.69. Invocation command line was 18787 18788 CONFIG_FILES = $CONFIG_FILES 18789 CONFIG_HEADERS = $CONFIG_HEADERS 18790 CONFIG_LINKS = $CONFIG_LINKS 18791 CONFIG_COMMANDS = $CONFIG_COMMANDS 18792 $ $0 $@ 18793 18794on `(hostname || uname -n) 2>/dev/null | sed 1q` 18795" 18796 18797_ACEOF 18798 18799case $ac_config_files in *" 18800"*) set x $ac_config_files; shift; ac_config_files=$*;; 18801esac 18802 18803case $ac_config_headers in *" 18804"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18805esac 18806 18807 18808cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18809# Files that config.status was made for. 18810config_files="$ac_config_files" 18811config_headers="$ac_config_headers" 18812config_commands="$ac_config_commands" 18813 18814_ACEOF 18815 18816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18817ac_cs_usage="\ 18818\`$as_me' instantiates files and other configuration actions 18819from templates according to the current configuration. Unless the files 18820and actions are specified as TAGs, all are instantiated by default. 18821 18822Usage: $0 [OPTION]... [TAG]... 18823 18824 -h, --help print this help, then exit 18825 -V, --version print version number and configuration settings, then exit 18826 --config print configuration, then exit 18827 -q, --quiet, --silent 18828 do not print progress messages 18829 -d, --debug don't remove temporary files 18830 --recheck update $as_me by reconfiguring in the same conditions 18831 --file=FILE[:TEMPLATE] 18832 instantiate the configuration file FILE 18833 --header=FILE[:TEMPLATE] 18834 instantiate the configuration header FILE 18835 18836Configuration files: 18837$config_files 18838 18839Configuration headers: 18840$config_headers 18841 18842Configuration commands: 18843$config_commands 18844 18845Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 18846 18847_ACEOF 18848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18849ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18850ac_cs_version="\\ 18851xf86-video-sunffb config.status 1.2.2 18852configured by $0, generated by GNU Autoconf 2.69, 18853 with options \\"\$ac_cs_config\\" 18854 18855Copyright (C) 2012 Free Software Foundation, Inc. 18856This config.status script is free software; the Free Software Foundation 18857gives unlimited permission to copy, distribute and modify it." 18858 18859ac_pwd='$ac_pwd' 18860srcdir='$srcdir' 18861INSTALL='$INSTALL' 18862MKDIR_P='$MKDIR_P' 18863AWK='$AWK' 18864test -n "\$AWK" || AWK=awk 18865_ACEOF 18866 18867cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18868# The default lists apply if the user does not specify any file. 18869ac_need_defaults=: 18870while test $# != 0 18871do 18872 case $1 in 18873 --*=?*) 18874 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18875 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18876 ac_shift=: 18877 ;; 18878 --*=) 18879 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18880 ac_optarg= 18881 ac_shift=: 18882 ;; 18883 *) 18884 ac_option=$1 18885 ac_optarg=$2 18886 ac_shift=shift 18887 ;; 18888 esac 18889 18890 case $ac_option in 18891 # Handling of the options. 18892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18893 ac_cs_recheck=: ;; 18894 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18895 $as_echo "$ac_cs_version"; exit ;; 18896 --config | --confi | --conf | --con | --co | --c ) 18897 $as_echo "$ac_cs_config"; exit ;; 18898 --debug | --debu | --deb | --de | --d | -d ) 18899 debug=: ;; 18900 --file | --fil | --fi | --f ) 18901 $ac_shift 18902 case $ac_optarg in 18903 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18904 '') as_fn_error $? "missing file argument" ;; 18905 esac 18906 as_fn_append CONFIG_FILES " '$ac_optarg'" 18907 ac_need_defaults=false;; 18908 --header | --heade | --head | --hea ) 18909 $ac_shift 18910 case $ac_optarg in 18911 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18912 esac 18913 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18914 ac_need_defaults=false;; 18915 --he | --h) 18916 # Conflict between --help and --header 18917 as_fn_error $? "ambiguous option: \`$1' 18918Try \`$0 --help' for more information.";; 18919 --help | --hel | -h ) 18920 $as_echo "$ac_cs_usage"; exit ;; 18921 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18922 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18923 ac_cs_silent=: ;; 18924 18925 # This is an error. 18926 -*) as_fn_error $? "unrecognized option: \`$1' 18927Try \`$0 --help' for more information." ;; 18928 18929 *) as_fn_append ac_config_targets " $1" 18930 ac_need_defaults=false ;; 18931 18932 esac 18933 shift 18934done 18935 18936ac_configure_extra_args= 18937 18938if $ac_cs_silent; then 18939 exec 6>/dev/null 18940 ac_configure_extra_args="$ac_configure_extra_args --silent" 18941fi 18942 18943_ACEOF 18944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18945if \$ac_cs_recheck; then 18946 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18947 shift 18948 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18949 CONFIG_SHELL='$SHELL' 18950 export CONFIG_SHELL 18951 exec "\$@" 18952fi 18953 18954_ACEOF 18955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18956exec 5>>config.log 18957{ 18958 echo 18959 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18960## Running $as_me. ## 18961_ASBOX 18962 $as_echo "$ac_log" 18963} >&5 18964 18965_ACEOF 18966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18967# 18968# INIT-COMMANDS 18969# 18970AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18971 18972 18973# The HP-UX ksh and POSIX shell print the target directory to stdout 18974# if CDPATH is set. 18975(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18976 18977sed_quote_subst='$sed_quote_subst' 18978double_quote_subst='$double_quote_subst' 18979delay_variable_subst='$delay_variable_subst' 18980enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18981macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18982macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18983enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18984pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18985enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18986SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18987ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18988host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18989host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18990host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18991build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18992build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18993build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18994SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18995Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18996GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18997EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18998FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18999LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19000NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19001LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19002max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19003ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19004exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19005lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19006lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19007lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19008lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19009lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19010reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19011reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19012OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19013deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19014file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19015file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19016want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19017DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19018sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19019AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19020AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19021archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19022STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19023RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19024old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19025old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19026old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19027lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19028CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19029CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19030compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19031GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19032lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19033lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19034lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19035lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 19036nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19037lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19038objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19039MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19040lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19041lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19042lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19043lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19044lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19045need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19046MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19047DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19048NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19049LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19050OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19051OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19052libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19053shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19054extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19055archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19056enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19057export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19058whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19059compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19060old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19061old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19062archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19063archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19064module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19065module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19066with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19067allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19068no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19069hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19070hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 19071hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19072hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19073hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19074hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19075hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19076hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19077inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19078link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19079always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19080export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19081exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19082include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19083prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19084postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19085file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19086variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19087need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19088need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19089version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19090runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19091shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19092shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19093libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19094library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19095soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19096install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19097postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19098postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19099finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19100finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19101hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19102sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19103sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19104hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19105enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19106enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19107enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19108old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19109striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19110 19111LTCC='$LTCC' 19112LTCFLAGS='$LTCFLAGS' 19113compiler='$compiler_DEFAULT' 19114 19115# A function that is used when there is no print builtin or printf. 19116func_fallback_echo () 19117{ 19118 eval 'cat <<_LTECHO_EOF 19119\$1 19120_LTECHO_EOF' 19121} 19122 19123# Quote evaled strings. 19124for var in SHELL \ 19125ECHO \ 19126SED \ 19127GREP \ 19128EGREP \ 19129FGREP \ 19130LD \ 19131NM \ 19132LN_S \ 19133lt_SP2NL \ 19134lt_NL2SP \ 19135reload_flag \ 19136OBJDUMP \ 19137deplibs_check_method \ 19138file_magic_cmd \ 19139file_magic_glob \ 19140want_nocaseglob \ 19141DLLTOOL \ 19142sharedlib_from_linklib_cmd \ 19143AR \ 19144AR_FLAGS \ 19145archiver_list_spec \ 19146STRIP \ 19147RANLIB \ 19148CC \ 19149CFLAGS \ 19150compiler \ 19151lt_cv_sys_global_symbol_pipe \ 19152lt_cv_sys_global_symbol_to_cdecl \ 19153lt_cv_sys_global_symbol_to_c_name_address \ 19154lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19155nm_file_list_spec \ 19156lt_prog_compiler_no_builtin_flag \ 19157lt_prog_compiler_pic \ 19158lt_prog_compiler_wl \ 19159lt_prog_compiler_static \ 19160lt_cv_prog_compiler_c_o \ 19161need_locks \ 19162MANIFEST_TOOL \ 19163DSYMUTIL \ 19164NMEDIT \ 19165LIPO \ 19166OTOOL \ 19167OTOOL64 \ 19168shrext_cmds \ 19169export_dynamic_flag_spec \ 19170whole_archive_flag_spec \ 19171compiler_needs_object \ 19172with_gnu_ld \ 19173allow_undefined_flag \ 19174no_undefined_flag \ 19175hardcode_libdir_flag_spec \ 19176hardcode_libdir_flag_spec_ld \ 19177hardcode_libdir_separator \ 19178exclude_expsyms \ 19179include_expsyms \ 19180file_list_spec \ 19181variables_saved_for_relink \ 19182libname_spec \ 19183library_names_spec \ 19184soname_spec \ 19185install_override_mode \ 19186finish_eval \ 19187old_striplib \ 19188striplib; do 19189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19190 *[\\\\\\\`\\"\\\$]*) 19191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19192 ;; 19193 *) 19194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19195 ;; 19196 esac 19197done 19198 19199# Double-quote double-evaled strings. 19200for var in reload_cmds \ 19201old_postinstall_cmds \ 19202old_postuninstall_cmds \ 19203old_archive_cmds \ 19204extract_expsyms_cmds \ 19205old_archive_from_new_cmds \ 19206old_archive_from_expsyms_cmds \ 19207archive_cmds \ 19208archive_expsym_cmds \ 19209module_cmds \ 19210module_expsym_cmds \ 19211export_symbols_cmds \ 19212prelink_cmds \ 19213postlink_cmds \ 19214postinstall_cmds \ 19215postuninstall_cmds \ 19216finish_cmds \ 19217sys_lib_search_path_spec \ 19218sys_lib_dlsearch_path_spec; do 19219 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19220 *[\\\\\\\`\\"\\\$]*) 19221 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19222 ;; 19223 *) 19224 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19225 ;; 19226 esac 19227done 19228 19229ac_aux_dir='$ac_aux_dir' 19230xsi_shell='$xsi_shell' 19231lt_shell_append='$lt_shell_append' 19232 19233# See if we are running on zsh, and set the options which allow our 19234# commands through without removal of \ escapes INIT. 19235if test -n "\${ZSH_VERSION+set}" ; then 19236 setopt NO_GLOB_SUBST 19237fi 19238 19239 19240 PACKAGE='$PACKAGE' 19241 VERSION='$VERSION' 19242 TIMESTAMP='$TIMESTAMP' 19243 RM='$RM' 19244 ofile='$ofile' 19245 19246 19247 19248 19249_ACEOF 19250 19251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19252 19253# Handling of arguments. 19254for ac_config_target in $ac_config_targets 19255do 19256 case $ac_config_target in 19257 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19258 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19259 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19260 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19261 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19262 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19263 19264 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19265 esac 19266done 19267 19268 19269# If the user did not use the arguments to specify the items to instantiate, 19270# then the envvar interface is used. Set only those that are not. 19271# We use the long form for the default assignment because of an extremely 19272# bizarre bug on SunOS 4.1.3. 19273if $ac_need_defaults; then 19274 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19275 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19276 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19277fi 19278 19279# Have a temporary directory for convenience. Make it in the build tree 19280# simply because there is no reason against having it here, and in addition, 19281# creating and moving files from /tmp can sometimes cause problems. 19282# Hook for its removal unless debugging. 19283# Note that there is a small window in which the directory will not be cleaned: 19284# after its creation but before its name has been assigned to `$tmp'. 19285$debug || 19286{ 19287 tmp= ac_tmp= 19288 trap 'exit_status=$? 19289 : "${ac_tmp:=$tmp}" 19290 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19291' 0 19292 trap 'as_fn_exit 1' 1 2 13 15 19293} 19294# Create a (secure) tmp directory for tmp files. 19295 19296{ 19297 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19298 test -d "$tmp" 19299} || 19300{ 19301 tmp=./conf$$-$RANDOM 19302 (umask 077 && mkdir "$tmp") 19303} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19304ac_tmp=$tmp 19305 19306# Set up the scripts for CONFIG_FILES section. 19307# No need to generate them if there are no CONFIG_FILES. 19308# This happens for instance with `./config.status config.h'. 19309if test -n "$CONFIG_FILES"; then 19310 19311 19312ac_cr=`echo X | tr X '\015'` 19313# On cygwin, bash can eat \r inside `` if the user requested igncr. 19314# But we know of no other shell where ac_cr would be empty at this 19315# point, so we can use a bashism as a fallback. 19316if test "x$ac_cr" = x; then 19317 eval ac_cr=\$\'\\r\' 19318fi 19319ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19320if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19321 ac_cs_awk_cr='\\r' 19322else 19323 ac_cs_awk_cr=$ac_cr 19324fi 19325 19326echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19327_ACEOF 19328 19329 19330{ 19331 echo "cat >conf$$subs.awk <<_ACEOF" && 19332 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19333 echo "_ACEOF" 19334} >conf$$subs.sh || 19335 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19336ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19337ac_delim='%!_!# ' 19338for ac_last_try in false false false false false :; do 19339 . ./conf$$subs.sh || 19340 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19341 19342 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19343 if test $ac_delim_n = $ac_delim_num; then 19344 break 19345 elif $ac_last_try; then 19346 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19347 else 19348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19349 fi 19350done 19351rm -f conf$$subs.sh 19352 19353cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19354cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19355_ACEOF 19356sed -n ' 19357h 19358s/^/S["/; s/!.*/"]=/ 19359p 19360g 19361s/^[^!]*!// 19362:repl 19363t repl 19364s/'"$ac_delim"'$// 19365t delim 19366:nl 19367h 19368s/\(.\{148\}\)..*/\1/ 19369t more1 19370s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19371p 19372n 19373b repl 19374:more1 19375s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19376p 19377g 19378s/.\{148\}// 19379t nl 19380:delim 19381h 19382s/\(.\{148\}\)..*/\1/ 19383t more2 19384s/["\\]/\\&/g; s/^/"/; s/$/"/ 19385p 19386b 19387:more2 19388s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19389p 19390g 19391s/.\{148\}// 19392t delim 19393' <conf$$subs.awk | sed ' 19394/^[^""]/{ 19395 N 19396 s/\n// 19397} 19398' >>$CONFIG_STATUS || ac_write_fail=1 19399rm -f conf$$subs.awk 19400cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19401_ACAWK 19402cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19403 for (key in S) S_is_set[key] = 1 19404 FS = "" 19405 19406} 19407{ 19408 line = $ 0 19409 nfields = split(line, field, "@") 19410 substed = 0 19411 len = length(field[1]) 19412 for (i = 2; i < nfields; i++) { 19413 key = field[i] 19414 keylen = length(key) 19415 if (S_is_set[key]) { 19416 value = S[key] 19417 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19418 len += length(value) + length(field[++i]) 19419 substed = 1 19420 } else 19421 len += 1 + keylen 19422 } 19423 19424 print line 19425} 19426 19427_ACAWK 19428_ACEOF 19429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19430if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19431 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19432else 19433 cat 19434fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19435 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19436_ACEOF 19437 19438# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19439# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19440# trailing colons and then remove the whole line if VPATH becomes empty 19441# (actually we leave an empty line to preserve line numbers). 19442if test "x$srcdir" = x.; then 19443 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19444h 19445s/// 19446s/^/:/ 19447s/[ ]*$/:/ 19448s/:\$(srcdir):/:/g 19449s/:\${srcdir}:/:/g 19450s/:@srcdir@:/:/g 19451s/^:*// 19452s/:*$// 19453x 19454s/\(=[ ]*\).*/\1/ 19455G 19456s/\n// 19457s/^[^=]*=[ ]*$// 19458}' 19459fi 19460 19461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19462fi # test -n "$CONFIG_FILES" 19463 19464# Set up the scripts for CONFIG_HEADERS section. 19465# No need to generate them if there are no CONFIG_HEADERS. 19466# This happens for instance with `./config.status Makefile'. 19467if test -n "$CONFIG_HEADERS"; then 19468cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19469BEGIN { 19470_ACEOF 19471 19472# Transform confdefs.h into an awk script `defines.awk', embedded as 19473# here-document in config.status, that substitutes the proper values into 19474# config.h.in to produce config.h. 19475 19476# Create a delimiter string that does not exist in confdefs.h, to ease 19477# handling of long lines. 19478ac_delim='%!_!# ' 19479for ac_last_try in false false :; do 19480 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19481 if test -z "$ac_tt"; then 19482 break 19483 elif $ac_last_try; then 19484 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19485 else 19486 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19487 fi 19488done 19489 19490# For the awk script, D is an array of macro values keyed by name, 19491# likewise P contains macro parameters if any. Preserve backslash 19492# newline sequences. 19493 19494ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19495sed -n ' 19496s/.\{148\}/&'"$ac_delim"'/g 19497t rset 19498:rset 19499s/^[ ]*#[ ]*define[ ][ ]*/ / 19500t def 19501d 19502:def 19503s/\\$// 19504t bsnl 19505s/["\\]/\\&/g 19506s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19507D["\1"]=" \3"/p 19508s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19509d 19510:bsnl 19511s/["\\]/\\&/g 19512s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19513D["\1"]=" \3\\\\\\n"\\/p 19514t cont 19515s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19516t cont 19517d 19518:cont 19519n 19520s/.\{148\}/&'"$ac_delim"'/g 19521t clear 19522:clear 19523s/\\$// 19524t bsnlc 19525s/["\\]/\\&/g; s/^/"/; s/$/"/p 19526d 19527:bsnlc 19528s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19529b cont 19530' <confdefs.h | sed ' 19531s/'"$ac_delim"'/"\\\ 19532"/g' >>$CONFIG_STATUS || ac_write_fail=1 19533 19534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19535 for (key in D) D_is_set[key] = 1 19536 FS = "" 19537} 19538/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19539 line = \$ 0 19540 split(line, arg, " ") 19541 if (arg[1] == "#") { 19542 defundef = arg[2] 19543 mac1 = arg[3] 19544 } else { 19545 defundef = substr(arg[1], 2) 19546 mac1 = arg[2] 19547 } 19548 split(mac1, mac2, "(") #) 19549 macro = mac2[1] 19550 prefix = substr(line, 1, index(line, defundef) - 1) 19551 if (D_is_set[macro]) { 19552 # Preserve the white space surrounding the "#". 19553 print prefix "define", macro P[macro] D[macro] 19554 next 19555 } else { 19556 # Replace #undef with comments. This is necessary, for example, 19557 # in the case of _POSIX_SOURCE, which is predefined and required 19558 # on some systems where configure will not decide to define it. 19559 if (defundef == "undef") { 19560 print "/*", prefix defundef, macro, "*/" 19561 next 19562 } 19563 } 19564} 19565{ print } 19566_ACAWK 19567_ACEOF 19568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19569 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19570fi # test -n "$CONFIG_HEADERS" 19571 19572 19573eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19574shift 19575for ac_tag 19576do 19577 case $ac_tag in 19578 :[FHLC]) ac_mode=$ac_tag; continue;; 19579 esac 19580 case $ac_mode$ac_tag in 19581 :[FHL]*:*);; 19582 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19583 :[FH]-) ac_tag=-:-;; 19584 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19585 esac 19586 ac_save_IFS=$IFS 19587 IFS=: 19588 set x $ac_tag 19589 IFS=$ac_save_IFS 19590 shift 19591 ac_file=$1 19592 shift 19593 19594 case $ac_mode in 19595 :L) ac_source=$1;; 19596 :[FH]) 19597 ac_file_inputs= 19598 for ac_f 19599 do 19600 case $ac_f in 19601 -) ac_f="$ac_tmp/stdin";; 19602 *) # Look for the file first in the build tree, then in the source tree 19603 # (if the path is not absolute). The absolute path cannot be DOS-style, 19604 # because $ac_f cannot contain `:'. 19605 test -f "$ac_f" || 19606 case $ac_f in 19607 [\\/$]*) false;; 19608 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19609 esac || 19610 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19611 esac 19612 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19613 as_fn_append ac_file_inputs " '$ac_f'" 19614 done 19615 19616 # Let's still pretend it is `configure' which instantiates (i.e., don't 19617 # use $as_me), people would be surprised to read: 19618 # /* config.h. Generated by config.status. */ 19619 configure_input='Generated from '` 19620 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19621 `' by configure.' 19622 if test x"$ac_file" != x-; then 19623 configure_input="$ac_file. $configure_input" 19624 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19625$as_echo "$as_me: creating $ac_file" >&6;} 19626 fi 19627 # Neutralize special characters interpreted by sed in replacement strings. 19628 case $configure_input in #( 19629 *\&* | *\|* | *\\* ) 19630 ac_sed_conf_input=`$as_echo "$configure_input" | 19631 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19632 *) ac_sed_conf_input=$configure_input;; 19633 esac 19634 19635 case $ac_tag in 19636 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19637 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19638 esac 19639 ;; 19640 esac 19641 19642 ac_dir=`$as_dirname -- "$ac_file" || 19643$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19644 X"$ac_file" : 'X\(//\)[^/]' \| \ 19645 X"$ac_file" : 'X\(//\)$' \| \ 19646 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19647$as_echo X"$ac_file" | 19648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19649 s//\1/ 19650 q 19651 } 19652 /^X\(\/\/\)[^/].*/{ 19653 s//\1/ 19654 q 19655 } 19656 /^X\(\/\/\)$/{ 19657 s//\1/ 19658 q 19659 } 19660 /^X\(\/\).*/{ 19661 s//\1/ 19662 q 19663 } 19664 s/.*/./; q'` 19665 as_dir="$ac_dir"; as_fn_mkdir_p 19666 ac_builddir=. 19667 19668case "$ac_dir" in 19669.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19670*) 19671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19672 # A ".." for each directory in $ac_dir_suffix. 19673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19674 case $ac_top_builddir_sub in 19675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19677 esac ;; 19678esac 19679ac_abs_top_builddir=$ac_pwd 19680ac_abs_builddir=$ac_pwd$ac_dir_suffix 19681# for backward compatibility: 19682ac_top_builddir=$ac_top_build_prefix 19683 19684case $srcdir in 19685 .) # We are building in place. 19686 ac_srcdir=. 19687 ac_top_srcdir=$ac_top_builddir_sub 19688 ac_abs_top_srcdir=$ac_pwd ;; 19689 [\\/]* | ?:[\\/]* ) # Absolute name. 19690 ac_srcdir=$srcdir$ac_dir_suffix; 19691 ac_top_srcdir=$srcdir 19692 ac_abs_top_srcdir=$srcdir ;; 19693 *) # Relative name. 19694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19695 ac_top_srcdir=$ac_top_build_prefix$srcdir 19696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19697esac 19698ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19699 19700 19701 case $ac_mode in 19702 :F) 19703 # 19704 # CONFIG_FILE 19705 # 19706 19707 case $INSTALL in 19708 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19709 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19710 esac 19711 ac_MKDIR_P=$MKDIR_P 19712 case $MKDIR_P in 19713 [\\/$]* | ?:[\\/]* ) ;; 19714 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19715 esac 19716_ACEOF 19717 19718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19719# If the template does not know about datarootdir, expand it. 19720# FIXME: This hack should be removed a few years after 2.60. 19721ac_datarootdir_hack=; ac_datarootdir_seen= 19722ac_sed_dataroot=' 19723/datarootdir/ { 19724 p 19725 q 19726} 19727/@datadir@/p 19728/@docdir@/p 19729/@infodir@/p 19730/@localedir@/p 19731/@mandir@/p' 19732case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19733*datarootdir*) ac_datarootdir_seen=yes;; 19734*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19736$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19737_ACEOF 19738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19739 ac_datarootdir_hack=' 19740 s&@datadir@&$datadir&g 19741 s&@docdir@&$docdir&g 19742 s&@infodir@&$infodir&g 19743 s&@localedir@&$localedir&g 19744 s&@mandir@&$mandir&g 19745 s&\\\${datarootdir}&$datarootdir&g' ;; 19746esac 19747_ACEOF 19748 19749# Neutralize VPATH when `$srcdir' = `.'. 19750# Shell code in configure.ac might set extrasub. 19751# FIXME: do we really want to maintain this feature? 19752cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19753ac_sed_extra="$ac_vpsub 19754$extrasub 19755_ACEOF 19756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19757:t 19758/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19759s|@configure_input@|$ac_sed_conf_input|;t t 19760s&@top_builddir@&$ac_top_builddir_sub&;t t 19761s&@top_build_prefix@&$ac_top_build_prefix&;t t 19762s&@srcdir@&$ac_srcdir&;t t 19763s&@abs_srcdir@&$ac_abs_srcdir&;t t 19764s&@top_srcdir@&$ac_top_srcdir&;t t 19765s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19766s&@builddir@&$ac_builddir&;t t 19767s&@abs_builddir@&$ac_abs_builddir&;t t 19768s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19769s&@INSTALL@&$ac_INSTALL&;t t 19770s&@MKDIR_P@&$ac_MKDIR_P&;t t 19771$ac_datarootdir_hack 19772" 19773eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19774 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19775 19776test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19777 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19778 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19779 "$ac_tmp/out"`; test -z "$ac_out"; } && 19780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19781which seems to be undefined. Please make sure it is defined" >&5 19782$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19783which seems to be undefined. Please make sure it is defined" >&2;} 19784 19785 rm -f "$ac_tmp/stdin" 19786 case $ac_file in 19787 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19788 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19789 esac \ 19790 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19791 ;; 19792 :H) 19793 # 19794 # CONFIG_HEADER 19795 # 19796 if test x"$ac_file" != x-; then 19797 { 19798 $as_echo "/* $configure_input */" \ 19799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19800 } >"$ac_tmp/config.h" \ 19801 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19802 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19803 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19804$as_echo "$as_me: $ac_file is unchanged" >&6;} 19805 else 19806 rm -f "$ac_file" 19807 mv "$ac_tmp/config.h" "$ac_file" \ 19808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19809 fi 19810 else 19811 $as_echo "/* $configure_input */" \ 19812 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19813 || as_fn_error $? "could not create -" "$LINENO" 5 19814 fi 19815# Compute "$ac_file"'s index in $config_headers. 19816_am_arg="$ac_file" 19817_am_stamp_count=1 19818for _am_header in $config_headers :; do 19819 case $_am_header in 19820 $_am_arg | $_am_arg:* ) 19821 break ;; 19822 * ) 19823 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19824 esac 19825done 19826echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19827$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19828 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19829 X"$_am_arg" : 'X\(//\)$' \| \ 19830 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19831$as_echo X"$_am_arg" | 19832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19833 s//\1/ 19834 q 19835 } 19836 /^X\(\/\/\)[^/].*/{ 19837 s//\1/ 19838 q 19839 } 19840 /^X\(\/\/\)$/{ 19841 s//\1/ 19842 q 19843 } 19844 /^X\(\/\).*/{ 19845 s//\1/ 19846 q 19847 } 19848 s/.*/./; q'`/stamp-h$_am_stamp_count 19849 ;; 19850 19851 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19852$as_echo "$as_me: executing $ac_file commands" >&6;} 19853 ;; 19854 esac 19855 19856 19857 case $ac_file$ac_mode in 19858 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19859 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19860 # are listed without --file. Let's play safe and only enable the eval 19861 # if we detect the quoting. 19862 case $CONFIG_FILES in 19863 *\'*) eval set x "$CONFIG_FILES" ;; 19864 *) set x $CONFIG_FILES ;; 19865 esac 19866 shift 19867 for mf 19868 do 19869 # Strip MF so we end up with the name of the file. 19870 mf=`echo "$mf" | sed -e 's/:.*$//'` 19871 # Check whether this is an Automake generated Makefile or not. 19872 # We used to match only the files named 'Makefile.in', but 19873 # some people rename them; so instead we look at the file content. 19874 # Grep'ing the first line is not enough: some people post-process 19875 # each Makefile.in and add a new line on top of each file to say so. 19876 # Grep'ing the whole file is not good either: AIX grep has a line 19877 # limit of 2048, but all sed's we know have understand at least 4000. 19878 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19879 dirpart=`$as_dirname -- "$mf" || 19880$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19881 X"$mf" : 'X\(//\)[^/]' \| \ 19882 X"$mf" : 'X\(//\)$' \| \ 19883 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19884$as_echo X"$mf" | 19885 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19886 s//\1/ 19887 q 19888 } 19889 /^X\(\/\/\)[^/].*/{ 19890 s//\1/ 19891 q 19892 } 19893 /^X\(\/\/\)$/{ 19894 s//\1/ 19895 q 19896 } 19897 /^X\(\/\).*/{ 19898 s//\1/ 19899 q 19900 } 19901 s/.*/./; q'` 19902 else 19903 continue 19904 fi 19905 # Extract the definition of DEPDIR, am__include, and am__quote 19906 # from the Makefile without running 'make'. 19907 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19908 test -z "$DEPDIR" && continue 19909 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19910 test -z "am__include" && continue 19911 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19912 # Find all dependency output files, they are included files with 19913 # $(DEPDIR) in their names. We invoke sed twice because it is the 19914 # simplest approach to changing $(DEPDIR) to its actual value in the 19915 # expansion. 19916 for file in `sed -n " 19917 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19918 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19919 # Make sure the directory exists. 19920 test -f "$dirpart/$file" && continue 19921 fdir=`$as_dirname -- "$file" || 19922$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19923 X"$file" : 'X\(//\)[^/]' \| \ 19924 X"$file" : 'X\(//\)$' \| \ 19925 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19926$as_echo X"$file" | 19927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19928 s//\1/ 19929 q 19930 } 19931 /^X\(\/\/\)[^/].*/{ 19932 s//\1/ 19933 q 19934 } 19935 /^X\(\/\/\)$/{ 19936 s//\1/ 19937 q 19938 } 19939 /^X\(\/\).*/{ 19940 s//\1/ 19941 q 19942 } 19943 s/.*/./; q'` 19944 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19945 # echo "creating $dirpart/$file" 19946 echo '# dummy' > "$dirpart/$file" 19947 done 19948 done 19949} 19950 ;; 19951 "libtool":C) 19952 19953 # See if we are running on zsh, and set the options which allow our 19954 # commands through without removal of \ escapes. 19955 if test -n "${ZSH_VERSION+set}" ; then 19956 setopt NO_GLOB_SUBST 19957 fi 19958 19959 cfgfile="${ofile}T" 19960 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19961 $RM "$cfgfile" 19962 19963 cat <<_LT_EOF >> "$cfgfile" 19964#! $SHELL 19965 19966# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19967# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19968# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19969# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19970# 19971# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19972# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19973# Inc. 19974# Written by Gordon Matzigkeit, 1996 19975# 19976# This file is part of GNU Libtool. 19977# 19978# GNU Libtool is free software; you can redistribute it and/or 19979# modify it under the terms of the GNU General Public License as 19980# published by the Free Software Foundation; either version 2 of 19981# the License, or (at your option) any later version. 19982# 19983# As a special exception to the GNU General Public License, 19984# if you distribute this file as part of a program or library that 19985# is built using GNU Libtool, you may include this file under the 19986# same distribution terms that you use for the rest of that program. 19987# 19988# GNU Libtool is distributed in the hope that it will be useful, 19989# but WITHOUT ANY WARRANTY; without even the implied warranty of 19990# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19991# GNU General Public License for more details. 19992# 19993# You should have received a copy of the GNU General Public License 19994# along with GNU Libtool; see the file COPYING. If not, a copy 19995# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19996# obtained by writing to the Free Software Foundation, Inc., 19997# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19998 19999 20000# The names of the tagged configurations supported by this script. 20001available_tags="" 20002 20003# ### BEGIN LIBTOOL CONFIG 20004 20005# Whether or not to build static libraries. 20006build_old_libs=$enable_static 20007 20008# Which release of libtool.m4 was used? 20009macro_version=$macro_version 20010macro_revision=$macro_revision 20011 20012# Whether or not to build shared libraries. 20013build_libtool_libs=$enable_shared 20014 20015# What type of objects to build. 20016pic_mode=$pic_mode 20017 20018# Whether or not to optimize for fast installation. 20019fast_install=$enable_fast_install 20020 20021# Shell to use when invoking shell scripts. 20022SHELL=$lt_SHELL 20023 20024# An echo program that protects backslashes. 20025ECHO=$lt_ECHO 20026 20027# The host system. 20028host_alias=$host_alias 20029host=$host 20030host_os=$host_os 20031 20032# The build system. 20033build_alias=$build_alias 20034build=$build 20035build_os=$build_os 20036 20037# A sed program that does not truncate output. 20038SED=$lt_SED 20039 20040# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20041Xsed="\$SED -e 1s/^X//" 20042 20043# A grep program that handles long lines. 20044GREP=$lt_GREP 20045 20046# An ERE matcher. 20047EGREP=$lt_EGREP 20048 20049# A literal string matcher. 20050FGREP=$lt_FGREP 20051 20052# A BSD- or MS-compatible name lister. 20053NM=$lt_NM 20054 20055# Whether we need soft or hard links. 20056LN_S=$lt_LN_S 20057 20058# What is the maximum length of a command? 20059max_cmd_len=$max_cmd_len 20060 20061# Object file suffix (normally "o"). 20062objext=$ac_objext 20063 20064# Executable file suffix (normally ""). 20065exeext=$exeext 20066 20067# whether the shell understands "unset". 20068lt_unset=$lt_unset 20069 20070# turn spaces into newlines. 20071SP2NL=$lt_lt_SP2NL 20072 20073# turn newlines into spaces. 20074NL2SP=$lt_lt_NL2SP 20075 20076# convert \$build file names to \$host format. 20077to_host_file_cmd=$lt_cv_to_host_file_cmd 20078 20079# convert \$build files to toolchain format. 20080to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20081 20082# An object symbol dumper. 20083OBJDUMP=$lt_OBJDUMP 20084 20085# Method to check whether dependent libraries are shared objects. 20086deplibs_check_method=$lt_deplibs_check_method 20087 20088# Command to use when deplibs_check_method = "file_magic". 20089file_magic_cmd=$lt_file_magic_cmd 20090 20091# How to find potential files when deplibs_check_method = "file_magic". 20092file_magic_glob=$lt_file_magic_glob 20093 20094# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20095want_nocaseglob=$lt_want_nocaseglob 20096 20097# DLL creation program. 20098DLLTOOL=$lt_DLLTOOL 20099 20100# Command to associate shared and link libraries. 20101sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20102 20103# The archiver. 20104AR=$lt_AR 20105 20106# Flags to create an archive. 20107AR_FLAGS=$lt_AR_FLAGS 20108 20109# How to feed a file listing to the archiver. 20110archiver_list_spec=$lt_archiver_list_spec 20111 20112# A symbol stripping program. 20113STRIP=$lt_STRIP 20114 20115# Commands used to install an old-style archive. 20116RANLIB=$lt_RANLIB 20117old_postinstall_cmds=$lt_old_postinstall_cmds 20118old_postuninstall_cmds=$lt_old_postuninstall_cmds 20119 20120# Whether to use a lock for old archive extraction. 20121lock_old_archive_extraction=$lock_old_archive_extraction 20122 20123# A C compiler. 20124LTCC=$lt_CC 20125 20126# LTCC compiler flags. 20127LTCFLAGS=$lt_CFLAGS 20128 20129# Take the output of nm and produce a listing of raw symbols and C names. 20130global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20131 20132# Transform the output of nm in a proper C declaration. 20133global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20134 20135# Transform the output of nm in a C name address pair. 20136global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20137 20138# Transform the output of nm in a C name address pair when lib prefix is needed. 20139global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20140 20141# Specify filename containing input files for \$NM. 20142nm_file_list_spec=$lt_nm_file_list_spec 20143 20144# The root where to search for dependent libraries,and in which our libraries should be installed. 20145lt_sysroot=$lt_sysroot 20146 20147# The name of the directory that contains temporary libtool files. 20148objdir=$objdir 20149 20150# Used to examine libraries when file_magic_cmd begins with "file". 20151MAGIC_CMD=$MAGIC_CMD 20152 20153# Must we lock files when doing compilation? 20154need_locks=$lt_need_locks 20155 20156# Manifest tool. 20157MANIFEST_TOOL=$lt_MANIFEST_TOOL 20158 20159# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20160DSYMUTIL=$lt_DSYMUTIL 20161 20162# Tool to change global to local symbols on Mac OS X. 20163NMEDIT=$lt_NMEDIT 20164 20165# Tool to manipulate fat objects and archives on Mac OS X. 20166LIPO=$lt_LIPO 20167 20168# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20169OTOOL=$lt_OTOOL 20170 20171# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20172OTOOL64=$lt_OTOOL64 20173 20174# Old archive suffix (normally "a"). 20175libext=$libext 20176 20177# Shared library suffix (normally ".so"). 20178shrext_cmds=$lt_shrext_cmds 20179 20180# The commands to extract the exported symbol list from a shared archive. 20181extract_expsyms_cmds=$lt_extract_expsyms_cmds 20182 20183# Variables whose values should be saved in libtool wrapper scripts and 20184# restored at link time. 20185variables_saved_for_relink=$lt_variables_saved_for_relink 20186 20187# Do we need the "lib" prefix for modules? 20188need_lib_prefix=$need_lib_prefix 20189 20190# Do we need a version for libraries? 20191need_version=$need_version 20192 20193# Library versioning type. 20194version_type=$version_type 20195 20196# Shared library runtime path variable. 20197runpath_var=$runpath_var 20198 20199# Shared library path variable. 20200shlibpath_var=$shlibpath_var 20201 20202# Is shlibpath searched before the hard-coded library search path? 20203shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20204 20205# Format of library name prefix. 20206libname_spec=$lt_libname_spec 20207 20208# List of archive names. First name is the real one, the rest are links. 20209# The last name is the one that the linker finds with -lNAME 20210library_names_spec=$lt_library_names_spec 20211 20212# The coded name of the library, if different from the real name. 20213soname_spec=$lt_soname_spec 20214 20215# Permission mode override for installation of shared libraries. 20216install_override_mode=$lt_install_override_mode 20217 20218# Command to use after installation of a shared archive. 20219postinstall_cmds=$lt_postinstall_cmds 20220 20221# Command to use after uninstallation of a shared archive. 20222postuninstall_cmds=$lt_postuninstall_cmds 20223 20224# Commands used to finish a libtool library installation in a directory. 20225finish_cmds=$lt_finish_cmds 20226 20227# As "finish_cmds", except a single script fragment to be evaled but 20228# not shown. 20229finish_eval=$lt_finish_eval 20230 20231# Whether we should hardcode library paths into libraries. 20232hardcode_into_libs=$hardcode_into_libs 20233 20234# Compile-time system search path for libraries. 20235sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20236 20237# Run-time system search path for libraries. 20238sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20239 20240# Whether dlopen is supported. 20241dlopen_support=$enable_dlopen 20242 20243# Whether dlopen of programs is supported. 20244dlopen_self=$enable_dlopen_self 20245 20246# Whether dlopen of statically linked programs is supported. 20247dlopen_self_static=$enable_dlopen_self_static 20248 20249# Commands to strip libraries. 20250old_striplib=$lt_old_striplib 20251striplib=$lt_striplib 20252 20253 20254# The linker used to build libraries. 20255LD=$lt_LD 20256 20257# How to create reloadable object files. 20258reload_flag=$lt_reload_flag 20259reload_cmds=$lt_reload_cmds 20260 20261# Commands used to build an old-style archive. 20262old_archive_cmds=$lt_old_archive_cmds 20263 20264# A language specific compiler. 20265CC=$lt_compiler 20266 20267# Is the compiler the GNU compiler? 20268with_gcc=$GCC 20269 20270# Compiler flag to turn off builtin functions. 20271no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20272 20273# Additional compiler flags for building library objects. 20274pic_flag=$lt_lt_prog_compiler_pic 20275 20276# How to pass a linker flag through the compiler. 20277wl=$lt_lt_prog_compiler_wl 20278 20279# Compiler flag to prevent dynamic linking. 20280link_static_flag=$lt_lt_prog_compiler_static 20281 20282# Does compiler simultaneously support -c and -o options? 20283compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20284 20285# Whether or not to add -lc for building shared libraries. 20286build_libtool_need_lc=$archive_cmds_need_lc 20287 20288# Whether or not to disallow shared libs when runtime libs are static. 20289allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20290 20291# Compiler flag to allow reflexive dlopens. 20292export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20293 20294# Compiler flag to generate shared objects directly from archives. 20295whole_archive_flag_spec=$lt_whole_archive_flag_spec 20296 20297# Whether the compiler copes with passing no objects directly. 20298compiler_needs_object=$lt_compiler_needs_object 20299 20300# Create an old-style archive from a shared archive. 20301old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20302 20303# Create a temporary old-style archive to link instead of a shared archive. 20304old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20305 20306# Commands used to build a shared archive. 20307archive_cmds=$lt_archive_cmds 20308archive_expsym_cmds=$lt_archive_expsym_cmds 20309 20310# Commands used to build a loadable module if different from building 20311# a shared archive. 20312module_cmds=$lt_module_cmds 20313module_expsym_cmds=$lt_module_expsym_cmds 20314 20315# Whether we are building with GNU ld or not. 20316with_gnu_ld=$lt_with_gnu_ld 20317 20318# Flag that allows shared libraries with undefined symbols to be built. 20319allow_undefined_flag=$lt_allow_undefined_flag 20320 20321# Flag that enforces no undefined symbols. 20322no_undefined_flag=$lt_no_undefined_flag 20323 20324# Flag to hardcode \$libdir into a binary during linking. 20325# This must work even if \$libdir does not exist 20326hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20327 20328# If ld is used when linking, flag to hardcode \$libdir into a binary 20329# during linking. This must work even if \$libdir does not exist. 20330hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 20331 20332# Whether we need a single "-rpath" flag with a separated argument. 20333hardcode_libdir_separator=$lt_hardcode_libdir_separator 20334 20335# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20336# DIR into the resulting binary. 20337hardcode_direct=$hardcode_direct 20338 20339# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20340# DIR into the resulting binary and the resulting library dependency is 20341# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20342# library is relocated. 20343hardcode_direct_absolute=$hardcode_direct_absolute 20344 20345# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20346# into the resulting binary. 20347hardcode_minus_L=$hardcode_minus_L 20348 20349# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20350# into the resulting binary. 20351hardcode_shlibpath_var=$hardcode_shlibpath_var 20352 20353# Set to "yes" if building a shared library automatically hardcodes DIR 20354# into the library and all subsequent libraries and executables linked 20355# against it. 20356hardcode_automatic=$hardcode_automatic 20357 20358# Set to yes if linker adds runtime paths of dependent libraries 20359# to runtime path list. 20360inherit_rpath=$inherit_rpath 20361 20362# Whether libtool must link a program against all its dependency libraries. 20363link_all_deplibs=$link_all_deplibs 20364 20365# Set to "yes" if exported symbols are required. 20366always_export_symbols=$always_export_symbols 20367 20368# The commands to list exported symbols. 20369export_symbols_cmds=$lt_export_symbols_cmds 20370 20371# Symbols that should not be listed in the preloaded symbols. 20372exclude_expsyms=$lt_exclude_expsyms 20373 20374# Symbols that must always be exported. 20375include_expsyms=$lt_include_expsyms 20376 20377# Commands necessary for linking programs (against libraries) with templates. 20378prelink_cmds=$lt_prelink_cmds 20379 20380# Commands necessary for finishing linking programs. 20381postlink_cmds=$lt_postlink_cmds 20382 20383# Specify filename containing input files. 20384file_list_spec=$lt_file_list_spec 20385 20386# How to hardcode a shared library path into an executable. 20387hardcode_action=$hardcode_action 20388 20389# ### END LIBTOOL CONFIG 20390 20391_LT_EOF 20392 20393 case $host_os in 20394 aix3*) 20395 cat <<\_LT_EOF >> "$cfgfile" 20396# AIX sometimes has problems with the GCC collect2 program. For some 20397# reason, if we set the COLLECT_NAMES environment variable, the problems 20398# vanish in a puff of smoke. 20399if test "X${COLLECT_NAMES+set}" != Xset; then 20400 COLLECT_NAMES= 20401 export COLLECT_NAMES 20402fi 20403_LT_EOF 20404 ;; 20405 esac 20406 20407 20408ltmain="$ac_aux_dir/ltmain.sh" 20409 20410 20411 # We use sed instead of cat because bash on DJGPP gets confused if 20412 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20413 # text mode, it properly converts lines to CR/LF. This bash problem 20414 # is reportedly fixed, but why not run on old versions too? 20415 sed '$q' "$ltmain" >> "$cfgfile" \ 20416 || (rm -f "$cfgfile"; exit 1) 20417 20418 if test x"$xsi_shell" = xyes; then 20419 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20420func_dirname ()\ 20421{\ 20422\ case ${1} in\ 20423\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20424\ * ) func_dirname_result="${3}" ;;\ 20425\ esac\ 20426} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20427 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20428 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20429test 0 -eq $? || _lt_function_replace_fail=: 20430 20431 20432 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20433func_basename ()\ 20434{\ 20435\ func_basename_result="${1##*/}"\ 20436} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20437 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20438 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20439test 0 -eq $? || _lt_function_replace_fail=: 20440 20441 20442 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20443func_dirname_and_basename ()\ 20444{\ 20445\ case ${1} in\ 20446\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20447\ * ) func_dirname_result="${3}" ;;\ 20448\ esac\ 20449\ func_basename_result="${1##*/}"\ 20450} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20451 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20452 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20453test 0 -eq $? || _lt_function_replace_fail=: 20454 20455 20456 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20457func_stripname ()\ 20458{\ 20459\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20460\ # positional parameters, so assign one to ordinary parameter first.\ 20461\ func_stripname_result=${3}\ 20462\ func_stripname_result=${func_stripname_result#"${1}"}\ 20463\ func_stripname_result=${func_stripname_result%"${2}"}\ 20464} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20465 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20467test 0 -eq $? || _lt_function_replace_fail=: 20468 20469 20470 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20471func_split_long_opt ()\ 20472{\ 20473\ func_split_long_opt_name=${1%%=*}\ 20474\ func_split_long_opt_arg=${1#*=}\ 20475} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20476 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20478test 0 -eq $? || _lt_function_replace_fail=: 20479 20480 20481 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20482func_split_short_opt ()\ 20483{\ 20484\ func_split_short_opt_arg=${1#??}\ 20485\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20486} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20487 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20488 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20489test 0 -eq $? || _lt_function_replace_fail=: 20490 20491 20492 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 20493func_lo2o ()\ 20494{\ 20495\ case ${1} in\ 20496\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20497\ *) func_lo2o_result=${1} ;;\ 20498\ esac\ 20499} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20500 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20501 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20502test 0 -eq $? || _lt_function_replace_fail=: 20503 20504 20505 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20506func_xform ()\ 20507{\ 20508 func_xform_result=${1%.*}.lo\ 20509} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20510 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20512test 0 -eq $? || _lt_function_replace_fail=: 20513 20514 20515 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20516func_arith ()\ 20517{\ 20518 func_arith_result=$(( $* ))\ 20519} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20520 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20521 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20522test 0 -eq $? || _lt_function_replace_fail=: 20523 20524 20525 sed -e '/^func_len ()$/,/^} # func_len /c\ 20526func_len ()\ 20527{\ 20528 func_len_result=${#1}\ 20529} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 20530 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20531 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20532test 0 -eq $? || _lt_function_replace_fail=: 20533 20534fi 20535 20536if test x"$lt_shell_append" = xyes; then 20537 sed -e '/^func_append ()$/,/^} # func_append /c\ 20538func_append ()\ 20539{\ 20540 eval "${1}+=\\${2}"\ 20541} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20542 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20544test 0 -eq $? || _lt_function_replace_fail=: 20545 20546 20547 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20548func_append_quoted ()\ 20549{\ 20550\ func_quote_for_eval "${2}"\ 20551\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20552} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20553 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20554 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20555test 0 -eq $? || _lt_function_replace_fail=: 20556 20557 20558 # Save a `func_append' function call where possible by direct use of '+=' 20559 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20560 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20561 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20562 test 0 -eq $? || _lt_function_replace_fail=: 20563else 20564 # Save a `func_append' function call even when '+=' is not available 20565 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20566 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20567 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20568 test 0 -eq $? || _lt_function_replace_fail=: 20569fi 20570 20571if test x"$_lt_function_replace_fail" = x":"; then 20572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20573$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20574fi 20575 20576 20577 mv -f "$cfgfile" "$ofile" || 20578 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20579 chmod +x "$ofile" 20580 20581 ;; 20582 20583 esac 20584done # for ac_tag 20585 20586 20587as_fn_exit 0 20588_ACEOF 20589ac_clean_files=$ac_clean_files_save 20590 20591test $ac_write_fail = 0 || 20592 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20593 20594 20595# configure is writing to config.log, and then calls config.status. 20596# config.status does its own redirection, appending to config.log. 20597# Unfortunately, on DOS this fails, as config.log is still kept open 20598# by configure, so config.status won't be able to write to it; its 20599# output is simply discarded. So we exec the FD to /dev/null, 20600# effectively closing config.log, so it can be properly (re)opened and 20601# appended to by config.status. When coming back to configure, we 20602# need to make the FD available again. 20603if test "$no_create" != yes; then 20604 ac_cs_success=: 20605 ac_config_status_args= 20606 test "$silent" = yes && 20607 ac_config_status_args="$ac_config_status_args --quiet" 20608 exec 5>/dev/null 20609 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20610 exec 5>>config.log 20611 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20612 # would make configure fail if this is the last instruction. 20613 $ac_cs_success || as_fn_exit 1 20614fi 20615if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20617$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20618fi 20619 20620