configure revision 95903e71
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-video-neomagic 1.2.9. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic>. 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&component=Driver/Neomagic 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-neomagic' 593PACKAGE_TARNAME='xf86-video-neomagic' 594PACKAGE_VERSION='1.2.9' 595PACKAGE_STRING='xf86-video-neomagic 1.2.9' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic' 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 642XSERVER_LIBPCIACCESS_FALSE 643XSERVER_LIBPCIACCESS_TRUE 644PCIACCESS_LIBS 645PCIACCESS_CFLAGS 646XAA_FALSE 647XAA_TRUE 648XORG_LIBS 649XORG_CFLAGS 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667LIBTOOL 668MAN_SUBSTS 669XORG_MAN_PAGE 670ADMIN_MAN_DIR 671DRIVER_MAN_DIR 672MISC_MAN_DIR 673FILE_MAN_DIR 674LIB_MAN_DIR 675APP_MAN_DIR 676ADMIN_MAN_SUFFIX 677DRIVER_MAN_SUFFIX 678MISC_MAN_SUFFIX 679FILE_MAN_SUFFIX 680LIB_MAN_SUFFIX 681APP_MAN_SUFFIX 682SED 683host_os 684host_vendor 685host_cpu 686host 687build_os 688build_vendor 689build_cpu 690build 691INSTALL_CMD 692PKG_CONFIG_LIBDIR 693PKG_CONFIG_PATH 694PKG_CONFIG 695CHANGELOG_CMD 696STRICT_CFLAGS 697CWARNFLAGS 698BASE_CFLAGS 699EGREP 700GREP 701CPP 702am__fastdepCC_FALSE 703am__fastdepCC_TRUE 704CCDEPMODE 705am__nodep 706AMDEPBACKSLASH 707AMDEP_FALSE 708AMDEP_TRUE 709am__quote 710am__include 711DEPDIR 712OBJEXT 713EXEEXT 714ac_ct_CC 715CPPFLAGS 716LDFLAGS 717CFLAGS 718CC 719MAINT 720MAINTAINER_MODE_FALSE 721MAINTAINER_MODE_TRUE 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768localstatedir 769sharedstatedir 770sysconfdir 771datadir 772datarootdir 773libexecdir 774sbindir 775bindir 776program_transform_name 777prefix 778exec_prefix 779PACKAGE_URL 780PACKAGE_BUGREPORT 781PACKAGE_STRING 782PACKAGE_VERSION 783PACKAGE_TARNAME 784PACKAGE_NAME 785PATH_SEPARATOR 786SHELL' 787ac_subst_files='' 788ac_user_opts=' 789enable_option_checking 790enable_silent_rules 791enable_maintainer_mode 792enable_dependency_tracking 793enable_selective_werror 794enable_strict_compilation 795enable_static 796enable_shared 797with_pic 798enable_fast_install 799with_gnu_ld 800with_sysroot 801enable_libtool_lock 802with_xorg_module_dir 803enable_xaa 804' 805 ac_precious_vars='build_alias 806host_alias 807target_alias 808CC 809CFLAGS 810LDFLAGS 811LIBS 812CPPFLAGS 813CPP 814PKG_CONFIG 815PKG_CONFIG_PATH 816PKG_CONFIG_LIBDIR 817XORG_CFLAGS 818XORG_LIBS 819PCIACCESS_CFLAGS 820PCIACCESS_LIBS' 821 822 823# Initialize some variables set by options. 824ac_init_help= 825ac_init_version=false 826ac_unrecognized_opts= 827ac_unrecognized_sep= 828# The variables have the same names as the options, with 829# dashes changed to underlines. 830cache_file=/dev/null 831exec_prefix=NONE 832no_create= 833no_recursion= 834prefix=NONE 835program_prefix=NONE 836program_suffix=NONE 837program_transform_name=s,x,x, 838silent= 839site= 840srcdir= 841verbose= 842x_includes=NONE 843x_libraries=NONE 844 845# Installation directory options. 846# These are left unexpanded so users can "make install exec_prefix=/foo" 847# and all the variables that are supposed to be based on exec_prefix 848# by default will actually change. 849# Use braces instead of parens because sh, perl, etc. also accept them. 850# (The list follows the same order as the GNU Coding Standards.) 851bindir='${exec_prefix}/bin' 852sbindir='${exec_prefix}/sbin' 853libexecdir='${exec_prefix}/libexec' 854datarootdir='${prefix}/share' 855datadir='${datarootdir}' 856sysconfdir='${prefix}/etc' 857sharedstatedir='${prefix}/com' 858localstatedir='${prefix}/var' 859includedir='${prefix}/include' 860oldincludedir='/usr/include' 861docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 862infodir='${datarootdir}/info' 863htmldir='${docdir}' 864dvidir='${docdir}' 865pdfdir='${docdir}' 866psdir='${docdir}' 867libdir='${exec_prefix}/lib' 868localedir='${datarootdir}/locale' 869mandir='${datarootdir}/man' 870 871ac_prev= 872ac_dashdash= 873for ac_option 874do 875 # If the previous option needs an argument, assign it. 876 if test -n "$ac_prev"; then 877 eval $ac_prev=\$ac_option 878 ac_prev= 879 continue 880 fi 881 882 case $ac_option in 883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 884 *=) ac_optarg= ;; 885 *) ac_optarg=yes ;; 886 esac 887 888 # Accept the important Cygnus configure options, so we can diagnose typos. 889 890 case $ac_dashdash$ac_option in 891 --) 892 ac_dashdash=yes ;; 893 894 -bindir | --bindir | --bindi | --bind | --bin | --bi) 895 ac_prev=bindir ;; 896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 897 bindir=$ac_optarg ;; 898 899 -build | --build | --buil | --bui | --bu) 900 ac_prev=build_alias ;; 901 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 902 build_alias=$ac_optarg ;; 903 904 -cache-file | --cache-file | --cache-fil | --cache-fi \ 905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 906 ac_prev=cache_file ;; 907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 909 cache_file=$ac_optarg ;; 910 911 --config-cache | -C) 912 cache_file=config.cache ;; 913 914 -datadir | --datadir | --datadi | --datad) 915 ac_prev=datadir ;; 916 -datadir=* | --datadir=* | --datadi=* | --datad=*) 917 datadir=$ac_optarg ;; 918 919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 920 | --dataroo | --dataro | --datar) 921 ac_prev=datarootdir ;; 922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 924 datarootdir=$ac_optarg ;; 925 926 -disable-* | --disable-*) 927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 928 # Reject names that are not valid shell variable names. 929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 930 as_fn_error $? "invalid feature name: $ac_useropt" 931 ac_useropt_orig=$ac_useropt 932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 933 case $ac_user_opts in 934 *" 935"enable_$ac_useropt" 936"*) ;; 937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 938 ac_unrecognized_sep=', ';; 939 esac 940 eval enable_$ac_useropt=no ;; 941 942 -docdir | --docdir | --docdi | --doc | --do) 943 ac_prev=docdir ;; 944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 945 docdir=$ac_optarg ;; 946 947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 948 ac_prev=dvidir ;; 949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 950 dvidir=$ac_optarg ;; 951 952 -enable-* | --enable-*) 953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 954 # Reject names that are not valid shell variable names. 955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 956 as_fn_error $? "invalid feature name: $ac_useropt" 957 ac_useropt_orig=$ac_useropt 958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 959 case $ac_user_opts in 960 *" 961"enable_$ac_useropt" 962"*) ;; 963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 964 ac_unrecognized_sep=', ';; 965 esac 966 eval enable_$ac_useropt=\$ac_optarg ;; 967 968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 970 | --exec | --exe | --ex) 971 ac_prev=exec_prefix ;; 972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 974 | --exec=* | --exe=* | --ex=*) 975 exec_prefix=$ac_optarg ;; 976 977 -gas | --gas | --ga | --g) 978 # Obsolete; use --with-gas. 979 with_gas=yes ;; 980 981 -help | --help | --hel | --he | -h) 982 ac_init_help=long ;; 983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 984 ac_init_help=recursive ;; 985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 986 ac_init_help=short ;; 987 988 -host | --host | --hos | --ho) 989 ac_prev=host_alias ;; 990 -host=* | --host=* | --hos=* | --ho=*) 991 host_alias=$ac_optarg ;; 992 993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 994 ac_prev=htmldir ;; 995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 996 | --ht=*) 997 htmldir=$ac_optarg ;; 998 999 -includedir | --includedir | --includedi | --included | --include \ 1000 | --includ | --inclu | --incl | --inc) 1001 ac_prev=includedir ;; 1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1003 | --includ=* | --inclu=* | --incl=* | --inc=*) 1004 includedir=$ac_optarg ;; 1005 1006 -infodir | --infodir | --infodi | --infod | --info | --inf) 1007 ac_prev=infodir ;; 1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1009 infodir=$ac_optarg ;; 1010 1011 -libdir | --libdir | --libdi | --libd) 1012 ac_prev=libdir ;; 1013 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1014 libdir=$ac_optarg ;; 1015 1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1017 | --libexe | --libex | --libe) 1018 ac_prev=libexecdir ;; 1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1020 | --libexe=* | --libex=* | --libe=*) 1021 libexecdir=$ac_optarg ;; 1022 1023 -localedir | --localedir | --localedi | --localed | --locale) 1024 ac_prev=localedir ;; 1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1026 localedir=$ac_optarg ;; 1027 1028 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1029 | --localstate | --localstat | --localsta | --localst | --locals) 1030 ac_prev=localstatedir ;; 1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1033 localstatedir=$ac_optarg ;; 1034 1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1036 ac_prev=mandir ;; 1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1038 mandir=$ac_optarg ;; 1039 1040 -nfp | --nfp | --nf) 1041 # Obsolete; use --without-fp. 1042 with_fp=no ;; 1043 1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1045 | --no-cr | --no-c | -n) 1046 no_create=yes ;; 1047 1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1050 no_recursion=yes ;; 1051 1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1054 | --oldin | --oldi | --old | --ol | --o) 1055 ac_prev=oldincludedir ;; 1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1059 oldincludedir=$ac_optarg ;; 1060 1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1062 ac_prev=prefix ;; 1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1064 prefix=$ac_optarg ;; 1065 1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1067 | --program-pre | --program-pr | --program-p) 1068 ac_prev=program_prefix ;; 1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1071 program_prefix=$ac_optarg ;; 1072 1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1074 | --program-suf | --program-su | --program-s) 1075 ac_prev=program_suffix ;; 1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1078 program_suffix=$ac_optarg ;; 1079 1080 -program-transform-name | --program-transform-name \ 1081 | --program-transform-nam | --program-transform-na \ 1082 | --program-transform-n | --program-transform- \ 1083 | --program-transform | --program-transfor \ 1084 | --program-transfo | --program-transf \ 1085 | --program-trans | --program-tran \ 1086 | --progr-tra | --program-tr | --program-t) 1087 ac_prev=program_transform_name ;; 1088 -program-transform-name=* | --program-transform-name=* \ 1089 | --program-transform-nam=* | --program-transform-na=* \ 1090 | --program-transform-n=* | --program-transform-=* \ 1091 | --program-transform=* | --program-transfor=* \ 1092 | --program-transfo=* | --program-transf=* \ 1093 | --program-trans=* | --program-tran=* \ 1094 | --progr-tra=* | --program-tr=* | --program-t=*) 1095 program_transform_name=$ac_optarg ;; 1096 1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1098 ac_prev=pdfdir ;; 1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1100 pdfdir=$ac_optarg ;; 1101 1102 -psdir | --psdir | --psdi | --psd | --ps) 1103 ac_prev=psdir ;; 1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1105 psdir=$ac_optarg ;; 1106 1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1108 | -silent | --silent | --silen | --sile | --sil) 1109 silent=yes ;; 1110 1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1112 ac_prev=sbindir ;; 1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1114 | --sbi=* | --sb=*) 1115 sbindir=$ac_optarg ;; 1116 1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1119 | --sharedst | --shareds | --shared | --share | --shar \ 1120 | --sha | --sh) 1121 ac_prev=sharedstatedir ;; 1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1125 | --sha=* | --sh=*) 1126 sharedstatedir=$ac_optarg ;; 1127 1128 -site | --site | --sit) 1129 ac_prev=site ;; 1130 -site=* | --site=* | --sit=*) 1131 site=$ac_optarg ;; 1132 1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1134 ac_prev=srcdir ;; 1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1136 srcdir=$ac_optarg ;; 1137 1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1139 | --syscon | --sysco | --sysc | --sys | --sy) 1140 ac_prev=sysconfdir ;; 1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1143 sysconfdir=$ac_optarg ;; 1144 1145 -target | --target | --targe | --targ | --tar | --ta | --t) 1146 ac_prev=target_alias ;; 1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1148 target_alias=$ac_optarg ;; 1149 1150 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1151 verbose=yes ;; 1152 1153 -version | --version | --versio | --versi | --vers | -V) 1154 ac_init_version=: ;; 1155 1156 -with-* | --with-*) 1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1158 # Reject names that are not valid shell variable names. 1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1160 as_fn_error $? "invalid package name: $ac_useropt" 1161 ac_useropt_orig=$ac_useropt 1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1163 case $ac_user_opts in 1164 *" 1165"with_$ac_useropt" 1166"*) ;; 1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1168 ac_unrecognized_sep=', ';; 1169 esac 1170 eval with_$ac_useropt=\$ac_optarg ;; 1171 1172 -without-* | --without-*) 1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1174 # Reject names that are not valid shell variable names. 1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1176 as_fn_error $? "invalid package name: $ac_useropt" 1177 ac_useropt_orig=$ac_useropt 1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1179 case $ac_user_opts in 1180 *" 1181"with_$ac_useropt" 1182"*) ;; 1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1184 ac_unrecognized_sep=', ';; 1185 esac 1186 eval with_$ac_useropt=no ;; 1187 1188 --x) 1189 # Obsolete; use --with-x. 1190 with_x=yes ;; 1191 1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1193 | --x-incl | --x-inc | --x-in | --x-i) 1194 ac_prev=x_includes ;; 1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1197 x_includes=$ac_optarg ;; 1198 1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1201 ac_prev=x_libraries ;; 1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1204 x_libraries=$ac_optarg ;; 1205 1206 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1207Try \`$0 --help' for more information" 1208 ;; 1209 1210 *=*) 1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1212 # Reject names that are not valid shell variable names. 1213 case $ac_envvar in #( 1214 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1216 esac 1217 eval $ac_envvar=\$ac_optarg 1218 export $ac_envvar ;; 1219 1220 *) 1221 # FIXME: should be removed in autoconf 3.0. 1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1226 ;; 1227 1228 esac 1229done 1230 1231if test -n "$ac_prev"; then 1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1233 as_fn_error $? "missing argument to $ac_option" 1234fi 1235 1236if test -n "$ac_unrecognized_opts"; then 1237 case $enable_option_checking in 1238 no) ;; 1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1241 esac 1242fi 1243 1244# Check all directory arguments for consistency. 1245for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1246 datadir sysconfdir sharedstatedir localstatedir includedir \ 1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1248 libdir localedir mandir 1249do 1250 eval ac_val=\$$ac_var 1251 # Remove trailing slashes. 1252 case $ac_val in 1253 */ ) 1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1255 eval $ac_var=\$ac_val;; 1256 esac 1257 # Be sure to have absolute directory names. 1258 case $ac_val in 1259 [\\/$]* | ?:[\\/]* ) continue;; 1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1261 esac 1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1263done 1264 1265# There might be people who depend on the old broken behavior: `$host' 1266# used to hold the argument of --host etc. 1267# FIXME: To remove some day. 1268build=$build_alias 1269host=$host_alias 1270target=$target_alias 1271 1272# FIXME: To remove some day. 1273if test "x$host_alias" != x; then 1274 if test "x$build_alias" = x; then 1275 cross_compiling=maybe 1276 elif test "x$build_alias" != "x$host_alias"; then 1277 cross_compiling=yes 1278 fi 1279fi 1280 1281ac_tool_prefix= 1282test -n "$host_alias" && ac_tool_prefix=$host_alias- 1283 1284test "$silent" = yes && exec 6>/dev/null 1285 1286 1287ac_pwd=`pwd` && test -n "$ac_pwd" && 1288ac_ls_di=`ls -di .` && 1289ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1290 as_fn_error $? "working directory cannot be determined" 1291test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1292 as_fn_error $? "pwd does not report name of working directory" 1293 1294 1295# Find the source files, if location was not specified. 1296if test -z "$srcdir"; then 1297 ac_srcdir_defaulted=yes 1298 # Try the directory containing this script, then the parent directory. 1299 ac_confdir=`$as_dirname -- "$as_myself" || 1300$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1301 X"$as_myself" : 'X\(//\)[^/]' \| \ 1302 X"$as_myself" : 'X\(//\)$' \| \ 1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1304$as_echo X"$as_myself" | 1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1306 s//\1/ 1307 q 1308 } 1309 /^X\(\/\/\)[^/].*/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)$/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\).*/{ 1318 s//\1/ 1319 q 1320 } 1321 s/.*/./; q'` 1322 srcdir=$ac_confdir 1323 if test ! -r "$srcdir/$ac_unique_file"; then 1324 srcdir=.. 1325 fi 1326else 1327 ac_srcdir_defaulted=no 1328fi 1329if test ! -r "$srcdir/$ac_unique_file"; then 1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1332fi 1333ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1334ac_abs_confdir=`( 1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1336 pwd)` 1337# When building in place, set srcdir=. 1338if test "$ac_abs_confdir" = "$ac_pwd"; then 1339 srcdir=. 1340fi 1341# Remove unnecessary trailing slashes from srcdir. 1342# Double slashes in file names in object file debugging info 1343# mess up M-x gdb in Emacs. 1344case $srcdir in 1345*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1346esac 1347for ac_var in $ac_precious_vars; do 1348 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1349 eval ac_env_${ac_var}_value=\$${ac_var} 1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1352done 1353 1354# 1355# Report the --help message. 1356# 1357if test "$ac_init_help" = "long"; then 1358 # Omit some internal or obsolete options to make the list less imposing. 1359 # This message is too long to be a string in the A/UX 3.1 sh. 1360 cat <<_ACEOF 1361\`configure' configures xf86-video-neomagic 1.2.9 to adapt to many kinds of systems. 1362 1363Usage: $0 [OPTION]... [VAR=VALUE]... 1364 1365To assign environment variables (e.g., CC, CFLAGS...), specify them as 1366VAR=VALUE. See below for descriptions of some of the useful variables. 1367 1368Defaults for the options are specified in brackets. 1369 1370Configuration: 1371 -h, --help display this help and exit 1372 --help=short display options specific to this package 1373 --help=recursive display the short help of all the included packages 1374 -V, --version display version information and exit 1375 -q, --quiet, --silent do not print \`checking ...' messages 1376 --cache-file=FILE cache test results in FILE [disabled] 1377 -C, --config-cache alias for \`--cache-file=config.cache' 1378 -n, --no-create do not create output files 1379 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1380 1381Installation directories: 1382 --prefix=PREFIX install architecture-independent files in PREFIX 1383 [$ac_default_prefix] 1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1385 [PREFIX] 1386 1387By default, \`make install' will install all the files in 1388\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1389an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1390for instance \`--prefix=\$HOME'. 1391 1392For better control, use the options below. 1393 1394Fine tuning of the installation directories: 1395 --bindir=DIR user executables [EPREFIX/bin] 1396 --sbindir=DIR system admin executables [EPREFIX/sbin] 1397 --libexecdir=DIR program executables [EPREFIX/libexec] 1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1401 --libdir=DIR object code libraries [EPREFIX/lib] 1402 --includedir=DIR C header files [PREFIX/include] 1403 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1406 --infodir=DIR info documentation [DATAROOTDIR/info] 1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1408 --mandir=DIR man documentation [DATAROOTDIR/man] 1409 --docdir=DIR documentation root 1410 [DATAROOTDIR/doc/xf86-video-neomagic] 1411 --htmldir=DIR html documentation [DOCDIR] 1412 --dvidir=DIR dvi documentation [DOCDIR] 1413 --pdfdir=DIR pdf documentation [DOCDIR] 1414 --psdir=DIR ps documentation [DOCDIR] 1415_ACEOF 1416 1417 cat <<\_ACEOF 1418 1419Program names: 1420 --program-prefix=PREFIX prepend PREFIX to installed program names 1421 --program-suffix=SUFFIX append SUFFIX to installed program names 1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1423 1424System types: 1425 --build=BUILD configure for building on BUILD [guessed] 1426 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1427_ACEOF 1428fi 1429 1430if test -n "$ac_init_help"; then 1431 case $ac_init_help in 1432 short | recursive ) echo "Configuration of xf86-video-neomagic 1.2.9:";; 1433 esac 1434 cat <<\_ACEOF 1435 1436Optional Features: 1437 --disable-option-checking ignore unrecognized --enable/--with options 1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1440 --enable-silent-rules less verbose build output (undo: "make V=1") 1441 --disable-silent-rules verbose build output (undo: "make V=0") 1442 --enable-maintainer-mode 1443 enable make rules and dependencies not useful (and 1444 sometimes confusing) to the casual installer 1445 --enable-dependency-tracking 1446 do not reject slow dependency extractors 1447 --disable-dependency-tracking 1448 speeds up one-time build 1449 --disable-selective-werror 1450 Turn off selective compiler errors. (default: 1451 enabled) 1452 --enable-strict-compilation 1453 Enable all warnings from compiler and make them 1454 errors (default: disabled) 1455 --enable-static[=PKGS] build static libraries [default=no] 1456 --enable-shared[=PKGS] build shared libraries [default=yes] 1457 --enable-fast-install[=PKGS] 1458 optimize for fast installation [default=yes] 1459 --disable-libtool-lock avoid locking (might break parallel builds) 1460 --enable-xaa Enable legacy X Acceleration Architecture (XAA) 1461 [default=auto] 1462 1463Optional Packages: 1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1466 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1467 both] 1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1469 --with-sysroot=DIR Search for dependent libraries within DIR 1470 (or the compiler's sysroot if not specified). 1471 --with-xorg-module-dir=DIR 1472 Default xorg module directory 1473 [[default=$libdir/xorg/modules]] 1474 1475Some influential environment variables: 1476 CC C compiler command 1477 CFLAGS C compiler flags 1478 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1479 nonstandard directory <lib dir> 1480 LIBS libraries to pass to the linker, e.g. -l<library> 1481 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1482 you have headers in a nonstandard directory <include dir> 1483 CPP C preprocessor 1484 PKG_CONFIG path to pkg-config utility 1485 PKG_CONFIG_PATH 1486 directories to add to pkg-config's search path 1487 PKG_CONFIG_LIBDIR 1488 path overriding pkg-config's built-in search path 1489 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1490 XORG_LIBS linker flags for XORG, overriding pkg-config 1491 PCIACCESS_CFLAGS 1492 C compiler flags for PCIACCESS, overriding pkg-config 1493 PCIACCESS_LIBS 1494 linker flags for PCIACCESS, overriding pkg-config 1495 1496Use these variables to override the choices made by `configure' or to help 1497it to find libraries and programs with nonstandard names/locations. 1498 1499Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic>. 1500_ACEOF 1501ac_status=$? 1502fi 1503 1504if test "$ac_init_help" = "recursive"; then 1505 # If there are subdirs, report their specific --help. 1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1507 test -d "$ac_dir" || 1508 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1509 continue 1510 ac_builddir=. 1511 1512case "$ac_dir" in 1513.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1514*) 1515 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1516 # A ".." for each directory in $ac_dir_suffix. 1517 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1518 case $ac_top_builddir_sub in 1519 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1520 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1521 esac ;; 1522esac 1523ac_abs_top_builddir=$ac_pwd 1524ac_abs_builddir=$ac_pwd$ac_dir_suffix 1525# for backward compatibility: 1526ac_top_builddir=$ac_top_build_prefix 1527 1528case $srcdir in 1529 .) # We are building in place. 1530 ac_srcdir=. 1531 ac_top_srcdir=$ac_top_builddir_sub 1532 ac_abs_top_srcdir=$ac_pwd ;; 1533 [\\/]* | ?:[\\/]* ) # Absolute name. 1534 ac_srcdir=$srcdir$ac_dir_suffix; 1535 ac_top_srcdir=$srcdir 1536 ac_abs_top_srcdir=$srcdir ;; 1537 *) # Relative name. 1538 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1539 ac_top_srcdir=$ac_top_build_prefix$srcdir 1540 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1541esac 1542ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1543 1544 cd "$ac_dir" || { ac_status=$?; continue; } 1545 # Check for guested configure. 1546 if test -f "$ac_srcdir/configure.gnu"; then 1547 echo && 1548 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1549 elif test -f "$ac_srcdir/configure"; then 1550 echo && 1551 $SHELL "$ac_srcdir/configure" --help=recursive 1552 else 1553 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1554 fi || ac_status=$? 1555 cd "$ac_pwd" || { ac_status=$?; break; } 1556 done 1557fi 1558 1559test -n "$ac_init_help" && exit $ac_status 1560if $ac_init_version; then 1561 cat <<\_ACEOF 1562xf86-video-neomagic configure 1.2.9 1563generated by GNU Autoconf 2.69 1564 1565Copyright (C) 2012 Free Software Foundation, Inc. 1566This configure script is free software; the Free Software Foundation 1567gives unlimited permission to copy, distribute and modify it. 1568_ACEOF 1569 exit 1570fi 1571 1572## ------------------------ ## 1573## Autoconf initialization. ## 1574## ------------------------ ## 1575 1576# ac_fn_c_try_compile LINENO 1577# -------------------------- 1578# Try to compile conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_compile () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext 1583 if { { ac_try="$ac_compile" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_compile") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest.$ac_objext; then : 1602 ac_retval=0 1603else 1604 $as_echo "$as_me: failed program was:" >&5 1605sed 's/^/| /' conftest.$ac_ext >&5 1606 1607 ac_retval=1 1608fi 1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1610 as_fn_set_status $ac_retval 1611 1612} # ac_fn_c_try_compile 1613 1614# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1615# --------------------------------------------- 1616# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1617# accordingly. 1618ac_fn_c_check_decl () 1619{ 1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1621 as_decl_name=`echo $2|sed 's/ *(.*//'` 1622 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1624$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1625if eval \${$3+:} false; then : 1626 $as_echo_n "(cached) " >&6 1627else 1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1629/* end confdefs.h. */ 1630$4 1631int 1632main () 1633{ 1634#ifndef $as_decl_name 1635#ifdef __cplusplus 1636 (void) $as_decl_use; 1637#else 1638 (void) $as_decl_name; 1639#endif 1640#endif 1641 1642 ; 1643 return 0; 1644} 1645_ACEOF 1646if ac_fn_c_try_compile "$LINENO"; then : 1647 eval "$3=yes" 1648else 1649 eval "$3=no" 1650fi 1651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1652fi 1653eval ac_res=\$$3 1654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1655$as_echo "$ac_res" >&6; } 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 1658} # ac_fn_c_check_decl 1659 1660# ac_fn_c_try_cpp LINENO 1661# ---------------------- 1662# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_cpp () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 if { { ac_try="$ac_cpp conftest.$ac_ext" 1667case "(($ac_try" in 1668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1669 *) ac_try_echo=$ac_try;; 1670esac 1671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1672$as_echo "$ac_try_echo"; } >&5 1673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1674 ac_status=$? 1675 if test -s conftest.err; then 1676 grep -v '^ *+' conftest.err >conftest.er1 1677 cat conftest.er1 >&5 1678 mv -f conftest.er1 conftest.err 1679 fi 1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1681 test $ac_status = 0; } > conftest.i && { 1682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1683 test ! -s conftest.err 1684 }; then : 1685 ac_retval=0 1686else 1687 $as_echo "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=1 1691fi 1692 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1693 as_fn_set_status $ac_retval 1694 1695} # ac_fn_c_try_cpp 1696 1697# ac_fn_c_try_run LINENO 1698# ---------------------- 1699# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1700# that executables *can* be run. 1701ac_fn_c_try_run () 1702{ 1703 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1704 if { { ac_try="$ac_link" 1705case "(($ac_try" in 1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1707 *) ac_try_echo=$ac_try;; 1708esac 1709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1710$as_echo "$ac_try_echo"; } >&5 1711 (eval "$ac_link") 2>&5 1712 ac_status=$? 1713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1714 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1715 { { case "(($ac_try" in 1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1717 *) ac_try_echo=$ac_try;; 1718esac 1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1720$as_echo "$ac_try_echo"; } >&5 1721 (eval "$ac_try") 2>&5 1722 ac_status=$? 1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1724 test $ac_status = 0; }; }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: program exited with status $ac_status" >&5 1728 $as_echo "$as_me: failed program was:" >&5 1729sed 's/^/| /' conftest.$ac_ext >&5 1730 1731 ac_retval=$ac_status 1732fi 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_run 1738 1739# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1740# ------------------------------------------------------- 1741# Tests whether HEADER exists and can be compiled using the include files in 1742# INCLUDES, setting the cache variable VAR accordingly. 1743ac_fn_c_check_header_compile () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1747$as_echo_n "checking for $2... " >&6; } 1748if eval \${$3+:} false; then : 1749 $as_echo_n "(cached) " >&6 1750else 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_compile "$LINENO"; then : 1757 eval "$3=yes" 1758else 1759 eval "$3=no" 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1762fi 1763eval ac_res=\$$3 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765$as_echo "$ac_res" >&6; } 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1768} # ac_fn_c_check_header_compile 1769 1770# ac_fn_c_try_link LINENO 1771# ----------------------- 1772# Try to link conftest.$ac_ext, and return whether this succeeded. 1773ac_fn_c_try_link () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 rm -f conftest.$ac_objext conftest$ac_exeext 1777 if { { ac_try="$ac_link" 1778case "(($ac_try" in 1779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1780 *) ac_try_echo=$ac_try;; 1781esac 1782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1783$as_echo "$ac_try_echo"; } >&5 1784 (eval "$ac_link") 2>conftest.err 1785 ac_status=$? 1786 if test -s conftest.err; then 1787 grep -v '^ *+' conftest.err >conftest.er1 1788 cat conftest.er1 >&5 1789 mv -f conftest.er1 conftest.err 1790 fi 1791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1792 test $ac_status = 0; } && { 1793 test -z "$ac_c_werror_flag" || 1794 test ! -s conftest.err 1795 } && test -s conftest$ac_exeext && { 1796 test "$cross_compiling" = yes || 1797 test -x conftest$ac_exeext 1798 }; then : 1799 ac_retval=0 1800else 1801 $as_echo "$as_me: failed program was:" >&5 1802sed 's/^/| /' conftest.$ac_ext >&5 1803 1804 ac_retval=1 1805fi 1806 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1807 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1808 # interfere with the next link command; also delete a directory that is 1809 # left behind by Apple's compiler. We do this before executing the actions. 1810 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1812 as_fn_set_status $ac_retval 1813 1814} # ac_fn_c_try_link 1815 1816# ac_fn_c_check_func LINENO FUNC VAR 1817# ---------------------------------- 1818# Tests whether FUNC exists, setting the cache variable VAR accordingly 1819ac_fn_c_check_func () 1820{ 1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1823$as_echo_n "checking for $2... " >&6; } 1824if eval \${$3+:} false; then : 1825 $as_echo_n "(cached) " >&6 1826else 1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1828/* end confdefs.h. */ 1829/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1831#define $2 innocuous_$2 1832 1833/* System header to define __stub macros and hopefully few prototypes, 1834 which can conflict with char $2 (); below. 1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1836 <limits.h> exists even on freestanding compilers. */ 1837 1838#ifdef __STDC__ 1839# include <limits.h> 1840#else 1841# include <assert.h> 1842#endif 1843 1844#undef $2 1845 1846/* Override any GCC internal prototype to avoid an error. 1847 Use char because int might match the return type of a GCC 1848 builtin and then its argument prototype would still apply. */ 1849#ifdef __cplusplus 1850extern "C" 1851#endif 1852char $2 (); 1853/* The GNU C library defines this for functions which it implements 1854 to always fail with ENOSYS. Some functions are actually named 1855 something starting with __ and the normal name is an alias. */ 1856#if defined __stub_$2 || defined __stub___$2 1857choke me 1858#endif 1859 1860int 1861main () 1862{ 1863return $2 (); 1864 ; 1865 return 0; 1866} 1867_ACEOF 1868if ac_fn_c_try_link "$LINENO"; then : 1869 eval "$3=yes" 1870else 1871 eval "$3=no" 1872fi 1873rm -f core conftest.err conftest.$ac_objext \ 1874 conftest$ac_exeext conftest.$ac_ext 1875fi 1876eval ac_res=\$$3 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1878$as_echo "$ac_res" >&6; } 1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1880 1881} # ac_fn_c_check_func 1882 1883# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1884# ------------------------------------------------------- 1885# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1886# the include files in INCLUDES and setting the cache variable VAR 1887# accordingly. 1888ac_fn_c_check_header_mongrel () 1889{ 1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1891 if eval \${$3+:} false; then : 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1893$as_echo_n "checking for $2... " >&6; } 1894if eval \${$3+:} false; then : 1895 $as_echo_n "(cached) " >&6 1896fi 1897eval ac_res=\$$3 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1899$as_echo "$ac_res" >&6; } 1900else 1901 # Is the header compilable? 1902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1903$as_echo_n "checking $2 usability... " >&6; } 1904cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1905/* end confdefs.h. */ 1906$4 1907#include <$2> 1908_ACEOF 1909if ac_fn_c_try_compile "$LINENO"; then : 1910 ac_header_compiler=yes 1911else 1912 ac_header_compiler=no 1913fi 1914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1916$as_echo "$ac_header_compiler" >&6; } 1917 1918# Is the header present? 1919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1920$as_echo_n "checking $2 presence... " >&6; } 1921cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1922/* end confdefs.h. */ 1923#include <$2> 1924_ACEOF 1925if ac_fn_c_try_cpp "$LINENO"; then : 1926 ac_header_preproc=yes 1927else 1928 ac_header_preproc=no 1929fi 1930rm -f conftest.err conftest.i conftest.$ac_ext 1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1932$as_echo "$ac_header_preproc" >&6; } 1933 1934# So? What about this header? 1935case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1936 yes:no: ) 1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1938$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1940$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1941 ;; 1942 no:yes:* ) 1943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1944$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1946$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1948$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1950$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1952$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1953( $as_echo "## ------------------------------------------------------------------------------------------------ ## 1954## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic ## 1955## ------------------------------------------------------------------------------------------------ ##" 1956 ) | sed "s/^/$as_me: WARNING: /" >&2 1957 ;; 1958esac 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1960$as_echo_n "checking for $2... " >&6; } 1961if eval \${$3+:} false; then : 1962 $as_echo_n "(cached) " >&6 1963else 1964 eval "$3=\$ac_header_compiler" 1965fi 1966eval ac_res=\$$3 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1968$as_echo "$ac_res" >&6; } 1969fi 1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1971 1972} # ac_fn_c_check_header_mongrel 1973cat >config.log <<_ACEOF 1974This file contains any messages produced by compilers while 1975running configure, to aid debugging if configure makes a mistake. 1976 1977It was created by xf86-video-neomagic $as_me 1.2.9, which was 1978generated by GNU Autoconf 2.69. Invocation command line was 1979 1980 $ $0 $@ 1981 1982_ACEOF 1983exec 5>>config.log 1984{ 1985cat <<_ASUNAME 1986## --------- ## 1987## Platform. ## 1988## --------- ## 1989 1990hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1991uname -m = `(uname -m) 2>/dev/null || echo unknown` 1992uname -r = `(uname -r) 2>/dev/null || echo unknown` 1993uname -s = `(uname -s) 2>/dev/null || echo unknown` 1994uname -v = `(uname -v) 2>/dev/null || echo unknown` 1995 1996/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1997/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1998 1999/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2000/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2001/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2002/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2003/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2004/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2005/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2006 2007_ASUNAME 2008 2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2010for as_dir in $PATH 2011do 2012 IFS=$as_save_IFS 2013 test -z "$as_dir" && as_dir=. 2014 $as_echo "PATH: $as_dir" 2015 done 2016IFS=$as_save_IFS 2017 2018} >&5 2019 2020cat >&5 <<_ACEOF 2021 2022 2023## ----------- ## 2024## Core tests. ## 2025## ----------- ## 2026 2027_ACEOF 2028 2029 2030# Keep a trace of the command line. 2031# Strip out --no-create and --no-recursion so they do not pile up. 2032# Strip out --silent because we don't want to record it for future runs. 2033# Also quote any args containing shell meta-characters. 2034# Make two passes to allow for proper duplicate-argument suppression. 2035ac_configure_args= 2036ac_configure_args0= 2037ac_configure_args1= 2038ac_must_keep_next=false 2039for ac_pass in 1 2 2040do 2041 for ac_arg 2042 do 2043 case $ac_arg in 2044 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2046 | -silent | --silent | --silen | --sile | --sil) 2047 continue ;; 2048 *\'*) 2049 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2050 esac 2051 case $ac_pass in 2052 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2053 2) 2054 as_fn_append ac_configure_args1 " '$ac_arg'" 2055 if test $ac_must_keep_next = true; then 2056 ac_must_keep_next=false # Got value, back to normal. 2057 else 2058 case $ac_arg in 2059 *=* | --config-cache | -C | -disable-* | --disable-* \ 2060 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2061 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2062 | -with-* | --with-* | -without-* | --without-* | --x) 2063 case "$ac_configure_args0 " in 2064 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2065 esac 2066 ;; 2067 -* ) ac_must_keep_next=true ;; 2068 esac 2069 fi 2070 as_fn_append ac_configure_args " '$ac_arg'" 2071 ;; 2072 esac 2073 done 2074done 2075{ ac_configure_args0=; unset ac_configure_args0;} 2076{ ac_configure_args1=; unset ac_configure_args1;} 2077 2078# When interrupted or exit'd, cleanup temporary files, and complete 2079# config.log. We remove comments because anyway the quotes in there 2080# would cause problems or look ugly. 2081# WARNING: Use '\'' to represent an apostrophe within the trap. 2082# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2083trap 'exit_status=$? 2084 # Save into config.log some information that might help in debugging. 2085 { 2086 echo 2087 2088 $as_echo "## ---------------- ## 2089## Cache variables. ## 2090## ---------------- ##" 2091 echo 2092 # The following way of writing the cache mishandles newlines in values, 2093( 2094 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2095 eval ac_val=\$$ac_var 2096 case $ac_val in #( 2097 *${as_nl}*) 2098 case $ac_var in #( 2099 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2100$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2101 esac 2102 case $ac_var in #( 2103 _ | IFS | as_nl) ;; #( 2104 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2105 *) { eval $ac_var=; unset $ac_var;} ;; 2106 esac ;; 2107 esac 2108 done 2109 (set) 2>&1 | 2110 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2111 *${as_nl}ac_space=\ *) 2112 sed -n \ 2113 "s/'\''/'\''\\\\'\'''\''/g; 2114 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2115 ;; #( 2116 *) 2117 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2118 ;; 2119 esac | 2120 sort 2121) 2122 echo 2123 2124 $as_echo "## ----------------- ## 2125## Output variables. ## 2126## ----------------- ##" 2127 echo 2128 for ac_var in $ac_subst_vars 2129 do 2130 eval ac_val=\$$ac_var 2131 case $ac_val in 2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2133 esac 2134 $as_echo "$ac_var='\''$ac_val'\''" 2135 done | sort 2136 echo 2137 2138 if test -n "$ac_subst_files"; then 2139 $as_echo "## ------------------- ## 2140## File substitutions. ## 2141## ------------------- ##" 2142 echo 2143 for ac_var in $ac_subst_files 2144 do 2145 eval ac_val=\$$ac_var 2146 case $ac_val in 2147 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2148 esac 2149 $as_echo "$ac_var='\''$ac_val'\''" 2150 done | sort 2151 echo 2152 fi 2153 2154 if test -s confdefs.h; then 2155 $as_echo "## ----------- ## 2156## confdefs.h. ## 2157## ----------- ##" 2158 echo 2159 cat confdefs.h 2160 echo 2161 fi 2162 test "$ac_signal" != 0 && 2163 $as_echo "$as_me: caught signal $ac_signal" 2164 $as_echo "$as_me: exit $exit_status" 2165 } >&5 2166 rm -f core *.core core.conftest.* && 2167 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2168 exit $exit_status 2169' 0 2170for ac_signal in 1 2 13 15; do 2171 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2172done 2173ac_signal=0 2174 2175# confdefs.h avoids OS command line length limits that DEFS can exceed. 2176rm -f -r conftest* confdefs.h 2177 2178$as_echo "/* confdefs.h */" > confdefs.h 2179 2180# Predefined preprocessor variables. 2181 2182cat >>confdefs.h <<_ACEOF 2183#define PACKAGE_NAME "$PACKAGE_NAME" 2184_ACEOF 2185 2186cat >>confdefs.h <<_ACEOF 2187#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2188_ACEOF 2189 2190cat >>confdefs.h <<_ACEOF 2191#define PACKAGE_VERSION "$PACKAGE_VERSION" 2192_ACEOF 2193 2194cat >>confdefs.h <<_ACEOF 2195#define PACKAGE_STRING "$PACKAGE_STRING" 2196_ACEOF 2197 2198cat >>confdefs.h <<_ACEOF 2199#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2200_ACEOF 2201 2202cat >>confdefs.h <<_ACEOF 2203#define PACKAGE_URL "$PACKAGE_URL" 2204_ACEOF 2205 2206 2207# Let the site file select an alternate cache file if it wants to. 2208# Prefer an explicitly selected file to automatically selected ones. 2209ac_site_file1=NONE 2210ac_site_file2=NONE 2211if test -n "$CONFIG_SITE"; then 2212 # We do not want a PATH search for config.site. 2213 case $CONFIG_SITE in #(( 2214 -*) ac_site_file1=./$CONFIG_SITE;; 2215 */*) ac_site_file1=$CONFIG_SITE;; 2216 *) ac_site_file1=./$CONFIG_SITE;; 2217 esac 2218elif test "x$prefix" != xNONE; then 2219 ac_site_file1=$prefix/share/config.site 2220 ac_site_file2=$prefix/etc/config.site 2221else 2222 ac_site_file1=$ac_default_prefix/share/config.site 2223 ac_site_file2=$ac_default_prefix/etc/config.site 2224fi 2225for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2226do 2227 test "x$ac_site_file" = xNONE && continue 2228 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2230$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2231 sed 's/^/| /' "$ac_site_file" >&5 2232 . "$ac_site_file" \ 2233 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2235as_fn_error $? "failed to load site script $ac_site_file 2236See \`config.log' for more details" "$LINENO" 5; } 2237 fi 2238done 2239 2240if test -r "$cache_file"; then 2241 # Some versions of bash will fail to source /dev/null (special files 2242 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2243 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2245$as_echo "$as_me: loading cache $cache_file" >&6;} 2246 case $cache_file in 2247 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2248 *) . "./$cache_file";; 2249 esac 2250 fi 2251else 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2253$as_echo "$as_me: creating cache $cache_file" >&6;} 2254 >$cache_file 2255fi 2256 2257# Check that the precious variables saved in the cache have kept the same 2258# value. 2259ac_cache_corrupted=false 2260for ac_var in $ac_precious_vars; do 2261 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2262 eval ac_new_set=\$ac_env_${ac_var}_set 2263 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2264 eval ac_new_val=\$ac_env_${ac_var}_value 2265 case $ac_old_set,$ac_new_set in 2266 set,) 2267 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2268$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2269 ac_cache_corrupted=: ;; 2270 ,set) 2271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2272$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2273 ac_cache_corrupted=: ;; 2274 ,);; 2275 *) 2276 if test "x$ac_old_val" != "x$ac_new_val"; then 2277 # differences in whitespace do not lead to failure. 2278 ac_old_val_w=`echo x $ac_old_val` 2279 ac_new_val_w=`echo x $ac_new_val` 2280 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2282$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2283 ac_cache_corrupted=: 2284 else 2285 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2286$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2287 eval $ac_var=\$ac_old_val 2288 fi 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2290$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2291 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2292$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2293 fi;; 2294 esac 2295 # Pass precious variables to config.status. 2296 if test "$ac_new_set" = set; then 2297 case $ac_new_val in 2298 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2299 *) ac_arg=$ac_var=$ac_new_val ;; 2300 esac 2301 case " $ac_configure_args " in 2302 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2303 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2304 esac 2305 fi 2306done 2307if $ac_cache_corrupted; then 2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2311$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2312 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2313fi 2314## -------------------- ## 2315## Main body of script. ## 2316## -------------------- ## 2317 2318ac_ext=c 2319ac_cpp='$CPP $CPPFLAGS' 2320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2322ac_compiler_gnu=$ac_cv_c_compiler_gnu 2323 2324 2325 2326ac_config_headers="$ac_config_headers config.h" 2327 2328ac_aux_dir= 2329for ac_dir in . "$srcdir"/.; do 2330 if test -f "$ac_dir/install-sh"; then 2331 ac_aux_dir=$ac_dir 2332 ac_install_sh="$ac_aux_dir/install-sh -c" 2333 break 2334 elif test -f "$ac_dir/install.sh"; then 2335 ac_aux_dir=$ac_dir 2336 ac_install_sh="$ac_aux_dir/install.sh -c" 2337 break 2338 elif test -f "$ac_dir/shtool"; then 2339 ac_aux_dir=$ac_dir 2340 ac_install_sh="$ac_aux_dir/shtool install -c" 2341 break 2342 fi 2343done 2344if test -z "$ac_aux_dir"; then 2345 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2346fi 2347 2348# These three variables are undocumented and unsupported, 2349# and are intended to be withdrawn in a future Autoconf release. 2350# They can cause serious problems if a builder's source tree is in a directory 2351# whose full name contains unusual characters. 2352ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2353ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2354ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2355 2356 2357 2358# Initialize Automake 2359am__api_version='1.14' 2360 2361# Find a good install program. We prefer a C program (faster), 2362# so one script is as good as another. But avoid the broken or 2363# incompatible versions: 2364# SysV /etc/install, /usr/sbin/install 2365# SunOS /usr/etc/install 2366# IRIX /sbin/install 2367# AIX /bin/install 2368# AmigaOS /C/install, which installs bootblocks on floppy discs 2369# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2370# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2371# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2372# OS/2's system install, which has a completely different semantic 2373# ./install, which can be erroneously created by make from ./install.sh. 2374# Reject install programs that cannot install multiple files. 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2376$as_echo_n "checking for a BSD-compatible install... " >&6; } 2377if test -z "$INSTALL"; then 2378if ${ac_cv_path_install+:} false; then : 2379 $as_echo_n "(cached) " >&6 2380else 2381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2382for as_dir in $PATH 2383do 2384 IFS=$as_save_IFS 2385 test -z "$as_dir" && as_dir=. 2386 # Account for people who put trailing slashes in PATH elements. 2387case $as_dir/ in #(( 2388 ./ | .// | /[cC]/* | \ 2389 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2390 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2391 /usr/ucb/* ) ;; 2392 *) 2393 # OSF1 and SCO ODT 3.0 have their own names for install. 2394 # Don't use installbsd from OSF since it installs stuff as root 2395 # by default. 2396 for ac_prog in ginstall scoinst install; do 2397 for ac_exec_ext in '' $ac_executable_extensions; do 2398 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2399 if test $ac_prog = install && 2400 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2401 # AIX install. It has an incompatible calling convention. 2402 : 2403 elif test $ac_prog = install && 2404 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2405 # program-specific install script used by HP pwplus--don't use. 2406 : 2407 else 2408 rm -rf conftest.one conftest.two conftest.dir 2409 echo one > conftest.one 2410 echo two > conftest.two 2411 mkdir conftest.dir 2412 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2413 test -s conftest.one && test -s conftest.two && 2414 test -s conftest.dir/conftest.one && 2415 test -s conftest.dir/conftest.two 2416 then 2417 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2418 break 3 2419 fi 2420 fi 2421 fi 2422 done 2423 done 2424 ;; 2425esac 2426 2427 done 2428IFS=$as_save_IFS 2429 2430rm -rf conftest.one conftest.two conftest.dir 2431 2432fi 2433 if test "${ac_cv_path_install+set}" = set; then 2434 INSTALL=$ac_cv_path_install 2435 else 2436 # As a last resort, use the slow shell script. Don't cache a 2437 # value for INSTALL within a source directory, because that will 2438 # break other packages using the cache if that directory is 2439 # removed, or if the value is a relative name. 2440 INSTALL=$ac_install_sh 2441 fi 2442fi 2443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2444$as_echo "$INSTALL" >&6; } 2445 2446# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2447# It thinks the first close brace ends the variable substitution. 2448test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2449 2450test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2451 2452test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2453 2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2455$as_echo_n "checking whether build environment is sane... " >&6; } 2456# Reject unsafe characters in $srcdir or the absolute working directory 2457# name. Accept space and tab only in the latter. 2458am_lf=' 2459' 2460case `pwd` in 2461 *[\\\"\#\$\&\'\`$am_lf]*) 2462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2463esac 2464case $srcdir in 2465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2466 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2467esac 2468 2469# Do 'set' in a subshell so we don't clobber the current shell's 2470# arguments. Must try -L first in case configure is actually a 2471# symlink; some systems play weird games with the mod time of symlinks 2472# (eg FreeBSD returns the mod time of the symlink's containing 2473# directory). 2474if ( 2475 am_has_slept=no 2476 for am_try in 1 2; do 2477 echo "timestamp, slept: $am_has_slept" > conftest.file 2478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2479 if test "$*" = "X"; then 2480 # -L didn't work. 2481 set X `ls -t "$srcdir/configure" conftest.file` 2482 fi 2483 if test "$*" != "X $srcdir/configure conftest.file" \ 2484 && test "$*" != "X conftest.file $srcdir/configure"; then 2485 2486 # If neither matched, then we have a broken ls. This can happen 2487 # if, for instance, CONFIG_SHELL is bash and it inherits a 2488 # broken ls alias from the environment. This has actually 2489 # happened. Such a system could not be considered "sane". 2490 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2491 alias in your environment" "$LINENO" 5 2492 fi 2493 if test "$2" = conftest.file || test $am_try -eq 2; then 2494 break 2495 fi 2496 # Just in case. 2497 sleep 1 2498 am_has_slept=yes 2499 done 2500 test "$2" = conftest.file 2501 ) 2502then 2503 # Ok. 2504 : 2505else 2506 as_fn_error $? "newly created file is older than distributed files! 2507Check your system clock" "$LINENO" 5 2508fi 2509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2510$as_echo "yes" >&6; } 2511# If we didn't sleep, we still need to ensure time stamps of config.status and 2512# generated files are strictly newer. 2513am_sleep_pid= 2514if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2515 ( sleep 1 ) & 2516 am_sleep_pid=$! 2517fi 2518 2519rm -f conftest.file 2520 2521test "$program_prefix" != NONE && 2522 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2523# Use a double $ so make ignores it. 2524test "$program_suffix" != NONE && 2525 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2526# Double any \ or $. 2527# By default was `s,x,x', remove it if useless. 2528ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2529program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2530 2531# Expand $ac_aux_dir to an absolute path. 2532am_aux_dir=`cd "$ac_aux_dir" && pwd` 2533 2534if test x"${MISSING+set}" != xset; then 2535 case $am_aux_dir in 2536 *\ * | *\ *) 2537 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2538 *) 2539 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2540 esac 2541fi 2542# Use eval to expand $SHELL 2543if eval "$MISSING --is-lightweight"; then 2544 am_missing_run="$MISSING " 2545else 2546 am_missing_run= 2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2548$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2549fi 2550 2551if test x"${install_sh}" != xset; then 2552 case $am_aux_dir in 2553 *\ * | *\ *) 2554 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2555 *) 2556 install_sh="\${SHELL} $am_aux_dir/install-sh" 2557 esac 2558fi 2559 2560# Installed binaries are usually stripped using 'strip' when the user 2561# run "make install-strip". However 'strip' might not be the right 2562# tool to use in cross-compilation environments, therefore Automake 2563# will honor the 'STRIP' environment variable to overrule this program. 2564if test "$cross_compiling" != no; then 2565 if test -n "$ac_tool_prefix"; then 2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2567set dummy ${ac_tool_prefix}strip; ac_word=$2 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2569$as_echo_n "checking for $ac_word... " >&6; } 2570if ${ac_cv_prog_STRIP+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 if test -n "$STRIP"; then 2574 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2575else 2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2577for as_dir in $PATH 2578do 2579 IFS=$as_save_IFS 2580 test -z "$as_dir" && as_dir=. 2581 for ac_exec_ext in '' $ac_executable_extensions; do 2582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2583 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2585 break 2 2586 fi 2587done 2588 done 2589IFS=$as_save_IFS 2590 2591fi 2592fi 2593STRIP=$ac_cv_prog_STRIP 2594if test -n "$STRIP"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2596$as_echo "$STRIP" >&6; } 2597else 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2599$as_echo "no" >&6; } 2600fi 2601 2602 2603fi 2604if test -z "$ac_cv_prog_STRIP"; then 2605 ac_ct_STRIP=$STRIP 2606 # Extract the first word of "strip", so it can be a program name with args. 2607set dummy strip; ac_word=$2 2608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2609$as_echo_n "checking for $ac_word... " >&6; } 2610if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 if test -n "$ac_ct_STRIP"; then 2614 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2615else 2616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2617for as_dir in $PATH 2618do 2619 IFS=$as_save_IFS 2620 test -z "$as_dir" && as_dir=. 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2623 ac_cv_prog_ac_ct_STRIP="strip" 2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2625 break 2 2626 fi 2627done 2628 done 2629IFS=$as_save_IFS 2630 2631fi 2632fi 2633ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2634if test -n "$ac_ct_STRIP"; then 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2636$as_echo "$ac_ct_STRIP" >&6; } 2637else 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2639$as_echo "no" >&6; } 2640fi 2641 2642 if test "x$ac_ct_STRIP" = x; then 2643 STRIP=":" 2644 else 2645 case $cross_compiling:$ac_tool_warned in 2646yes:) 2647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2649ac_tool_warned=yes ;; 2650esac 2651 STRIP=$ac_ct_STRIP 2652 fi 2653else 2654 STRIP="$ac_cv_prog_STRIP" 2655fi 2656 2657fi 2658INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2659 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2661$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2662if test -z "$MKDIR_P"; then 2663 if ${ac_cv_path_mkdir+:} false; then : 2664 $as_echo_n "(cached) " >&6 2665else 2666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2667for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2668do 2669 IFS=$as_save_IFS 2670 test -z "$as_dir" && as_dir=. 2671 for ac_prog in mkdir gmkdir; do 2672 for ac_exec_ext in '' $ac_executable_extensions; do 2673 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2675 'mkdir (GNU coreutils) '* | \ 2676 'mkdir (coreutils) '* | \ 2677 'mkdir (fileutils) '4.1*) 2678 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2679 break 3;; 2680 esac 2681 done 2682 done 2683 done 2684IFS=$as_save_IFS 2685 2686fi 2687 2688 test -d ./--version && rmdir ./--version 2689 if test "${ac_cv_path_mkdir+set}" = set; then 2690 MKDIR_P="$ac_cv_path_mkdir -p" 2691 else 2692 # As a last resort, use the slow shell script. Don't cache a 2693 # value for MKDIR_P within a source directory, because that will 2694 # break other packages using the cache if that directory is 2695 # removed, or if the value is a relative name. 2696 MKDIR_P="$ac_install_sh -d" 2697 fi 2698fi 2699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2700$as_echo "$MKDIR_P" >&6; } 2701 2702for ac_prog in gawk mawk nawk awk 2703do 2704 # Extract the first word of "$ac_prog", so it can be a program name with args. 2705set dummy $ac_prog; ac_word=$2 2706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2707$as_echo_n "checking for $ac_word... " >&6; } 2708if ${ac_cv_prog_AWK+:} false; then : 2709 $as_echo_n "(cached) " >&6 2710else 2711 if test -n "$AWK"; then 2712 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2713else 2714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_exec_ext in '' $ac_executable_extensions; do 2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2721 ac_cv_prog_AWK="$ac_prog" 2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2723 break 2 2724 fi 2725done 2726 done 2727IFS=$as_save_IFS 2728 2729fi 2730fi 2731AWK=$ac_cv_prog_AWK 2732if test -n "$AWK"; then 2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2734$as_echo "$AWK" >&6; } 2735else 2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2737$as_echo "no" >&6; } 2738fi 2739 2740 2741 test -n "$AWK" && break 2742done 2743 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2745$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2746set x ${MAKE-make} 2747ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2748if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2749 $as_echo_n "(cached) " >&6 2750else 2751 cat >conftest.make <<\_ACEOF 2752SHELL = /bin/sh 2753all: 2754 @echo '@@@%%%=$(MAKE)=@@@%%%' 2755_ACEOF 2756# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2757case `${MAKE-make} -f conftest.make 2>/dev/null` in 2758 *@@@%%%=?*=@@@%%%*) 2759 eval ac_cv_prog_make_${ac_make}_set=yes;; 2760 *) 2761 eval ac_cv_prog_make_${ac_make}_set=no;; 2762esac 2763rm -f conftest.make 2764fi 2765if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2767$as_echo "yes" >&6; } 2768 SET_MAKE= 2769else 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2771$as_echo "no" >&6; } 2772 SET_MAKE="MAKE=${MAKE-make}" 2773fi 2774 2775rm -rf .tst 2>/dev/null 2776mkdir .tst 2>/dev/null 2777if test -d .tst; then 2778 am__leading_dot=. 2779else 2780 am__leading_dot=_ 2781fi 2782rmdir .tst 2>/dev/null 2783 2784# Check whether --enable-silent-rules was given. 2785if test "${enable_silent_rules+set}" = set; then : 2786 enableval=$enable_silent_rules; 2787fi 2788 2789case $enable_silent_rules in # ((( 2790 yes) AM_DEFAULT_VERBOSITY=0;; 2791 no) AM_DEFAULT_VERBOSITY=1;; 2792 *) AM_DEFAULT_VERBOSITY=1;; 2793esac 2794am_make=${MAKE-make} 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2796$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2797if ${am_cv_make_support_nested_variables+:} false; then : 2798 $as_echo_n "(cached) " >&6 2799else 2800 if $as_echo 'TRUE=$(BAR$(V)) 2801BAR0=false 2802BAR1=true 2803V=1 2804am__doit: 2805 @$(TRUE) 2806.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2807 am_cv_make_support_nested_variables=yes 2808else 2809 am_cv_make_support_nested_variables=no 2810fi 2811fi 2812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2813$as_echo "$am_cv_make_support_nested_variables" >&6; } 2814if test $am_cv_make_support_nested_variables = yes; then 2815 AM_V='$(V)' 2816 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2817else 2818 AM_V=$AM_DEFAULT_VERBOSITY 2819 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2820fi 2821AM_BACKSLASH='\' 2822 2823if test "`cd $srcdir && pwd`" != "`pwd`"; then 2824 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2825 # is not polluted with repeated "-I." 2826 am__isrc=' -I$(srcdir)' 2827 # test to see if srcdir already configured 2828 if test -f $srcdir/config.status; then 2829 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2830 fi 2831fi 2832 2833# test whether we have cygpath 2834if test -z "$CYGPATH_W"; then 2835 if (cygpath --version) >/dev/null 2>/dev/null; then 2836 CYGPATH_W='cygpath -w' 2837 else 2838 CYGPATH_W=echo 2839 fi 2840fi 2841 2842 2843# Define the identity of the package. 2844 PACKAGE='xf86-video-neomagic' 2845 VERSION='1.2.9' 2846 2847 2848cat >>confdefs.h <<_ACEOF 2849#define PACKAGE "$PACKAGE" 2850_ACEOF 2851 2852 2853cat >>confdefs.h <<_ACEOF 2854#define VERSION "$VERSION" 2855_ACEOF 2856 2857# Some tools Automake needs. 2858 2859ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2860 2861 2862AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2863 2864 2865AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2866 2867 2868AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2869 2870 2871MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2872 2873# For better backward compatibility. To be removed once Automake 1.9.x 2874# dies out for good. For more background, see: 2875# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2876# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2877mkdir_p='$(MKDIR_P)' 2878 2879# We need awk for the "check" target. The system "awk" is bad on 2880# some platforms. 2881# Always define AMTAR for backward compatibility. Yes, it's still used 2882# in the wild :-( We should find a proper way to deprecate it ... 2883AMTAR='$${TAR-tar}' 2884 2885 2886# We'll loop over all known methods to create a tar archive until one works. 2887_am_tools='gnutar pax cpio none' 2888 2889am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2890 2891 2892 2893 2894 2895 2896# POSIX will say in a future version that running "rm -f" with no argument 2897# is OK; and we want to be able to make that assumption in our Makefile 2898# recipes. So use an aggressive probe to check that the usage we want is 2899# actually supported "in the wild" to an acceptable degree. 2900# See automake bug#10828. 2901# To make any issue more visible, cause the running configure to be aborted 2902# by default if the 'rm' program in use doesn't match our expectations; the 2903# user can still override this though. 2904if rm -f && rm -fr && rm -rf; then : OK; else 2905 cat >&2 <<'END' 2906Oops! 2907 2908Your 'rm' program seems unable to run without file operands specified 2909on the command line, even when the '-f' option is present. This is contrary 2910to the behaviour of most rm programs out there, and not conforming with 2911the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2912 2913Please tell bug-automake@gnu.org about your system, including the value 2914of your $PATH and any error possibly output before this message. This 2915can help us improve future automake versions. 2916 2917END 2918 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2919 echo 'Configuration will proceed anyway, since you have set the' >&2 2920 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2921 echo >&2 2922 else 2923 cat >&2 <<'END' 2924Aborting the configuration process, to ensure you take notice of the issue. 2925 2926You can download and install GNU coreutils to get an 'rm' implementation 2927that behaves properly: <http://www.gnu.org/software/coreutils/>. 2928 2929If you want to complete the configuration process using your problematic 2930'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2931to "yes", and re-run configure. 2932 2933END 2934 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2935 fi 2936fi 2937 2938 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2940$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2941 # Check whether --enable-maintainer-mode was given. 2942if test "${enable_maintainer_mode+set}" = set; then : 2943 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2944else 2945 USE_MAINTAINER_MODE=no 2946fi 2947 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2949$as_echo "$USE_MAINTAINER_MODE" >&6; } 2950 if test $USE_MAINTAINER_MODE = yes; then 2951 MAINTAINER_MODE_TRUE= 2952 MAINTAINER_MODE_FALSE='#' 2953else 2954 MAINTAINER_MODE_TRUE='#' 2955 MAINTAINER_MODE_FALSE= 2956fi 2957 2958 MAINT=$MAINTAINER_MODE_TRUE 2959 2960 2961 2962# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974DEPDIR="${am__leading_dot}deps" 2975 2976ac_config_commands="$ac_config_commands depfiles" 2977 2978 2979am_make=${MAKE-make} 2980cat > confinc << 'END' 2981am__doit: 2982 @echo this is the am__doit target 2983.PHONY: am__doit 2984END 2985# If we don't find an include directive, just comment out the code. 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2987$as_echo_n "checking for style of include used by $am_make... " >&6; } 2988am__include="#" 2989am__quote= 2990_am_result=none 2991# First try GNU make style include. 2992echo "include confinc" > confmf 2993# Ignore all kinds of additional output from 'make'. 2994case `$am_make -s -f confmf 2> /dev/null` in #( 2995*the\ am__doit\ target*) 2996 am__include=include 2997 am__quote= 2998 _am_result=GNU 2999 ;; 3000esac 3001# Now try BSD make style include. 3002if test "$am__include" = "#"; then 3003 echo '.include "confinc"' > confmf 3004 case `$am_make -s -f confmf 2> /dev/null` in #( 3005 *the\ am__doit\ target*) 3006 am__include=.include 3007 am__quote="\"" 3008 _am_result=BSD 3009 ;; 3010 esac 3011fi 3012 3013 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3015$as_echo "$_am_result" >&6; } 3016rm -f confinc confmf 3017 3018# Check whether --enable-dependency-tracking was given. 3019if test "${enable_dependency_tracking+set}" = set; then : 3020 enableval=$enable_dependency_tracking; 3021fi 3022 3023if test "x$enable_dependency_tracking" != xno; then 3024 am_depcomp="$ac_aux_dir/depcomp" 3025 AMDEPBACKSLASH='\' 3026 am__nodep='_no' 3027fi 3028 if test "x$enable_dependency_tracking" != xno; then 3029 AMDEP_TRUE= 3030 AMDEP_FALSE='#' 3031else 3032 AMDEP_TRUE='#' 3033 AMDEP_FALSE= 3034fi 3035 3036 3037ac_ext=c 3038ac_cpp='$CPP $CPPFLAGS' 3039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3041ac_compiler_gnu=$ac_cv_c_compiler_gnu 3042if test -n "$ac_tool_prefix"; then 3043 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3044set dummy ${ac_tool_prefix}gcc; ac_word=$2 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3046$as_echo_n "checking for $ac_word... " >&6; } 3047if ${ac_cv_prog_CC+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 if test -n "$CC"; then 3051 ac_cv_prog_CC="$CC" # Let the user override the test. 3052else 3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054for as_dir in $PATH 3055do 3056 IFS=$as_save_IFS 3057 test -z "$as_dir" && as_dir=. 3058 for ac_exec_ext in '' $ac_executable_extensions; do 3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3060 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3062 break 2 3063 fi 3064done 3065 done 3066IFS=$as_save_IFS 3067 3068fi 3069fi 3070CC=$ac_cv_prog_CC 3071if test -n "$CC"; then 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3073$as_echo "$CC" >&6; } 3074else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077fi 3078 3079 3080fi 3081if test -z "$ac_cv_prog_CC"; then 3082 ac_ct_CC=$CC 3083 # Extract the first word of "gcc", so it can be a program name with args. 3084set dummy gcc; ac_word=$2 3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3086$as_echo_n "checking for $ac_word... " >&6; } 3087if ${ac_cv_prog_ac_ct_CC+:} false; then : 3088 $as_echo_n "(cached) " >&6 3089else 3090 if test -n "$ac_ct_CC"; then 3091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3092else 3093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3094for as_dir in $PATH 3095do 3096 IFS=$as_save_IFS 3097 test -z "$as_dir" && as_dir=. 3098 for ac_exec_ext in '' $ac_executable_extensions; do 3099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3100 ac_cv_prog_ac_ct_CC="gcc" 3101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3102 break 2 3103 fi 3104done 3105 done 3106IFS=$as_save_IFS 3107 3108fi 3109fi 3110ac_ct_CC=$ac_cv_prog_ac_ct_CC 3111if test -n "$ac_ct_CC"; then 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3113$as_echo "$ac_ct_CC" >&6; } 3114else 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116$as_echo "no" >&6; } 3117fi 3118 3119 if test "x$ac_ct_CC" = x; then 3120 CC="" 3121 else 3122 case $cross_compiling:$ac_tool_warned in 3123yes:) 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3126ac_tool_warned=yes ;; 3127esac 3128 CC=$ac_ct_CC 3129 fi 3130else 3131 CC="$ac_cv_prog_CC" 3132fi 3133 3134if test -z "$CC"; then 3135 if test -n "$ac_tool_prefix"; then 3136 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3137set dummy ${ac_tool_prefix}cc; ac_word=$2 3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3139$as_echo_n "checking for $ac_word... " >&6; } 3140if ${ac_cv_prog_CC+:} false; then : 3141 $as_echo_n "(cached) " >&6 3142else 3143 if test -n "$CC"; then 3144 ac_cv_prog_CC="$CC" # Let the user override the test. 3145else 3146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3147for as_dir in $PATH 3148do 3149 IFS=$as_save_IFS 3150 test -z "$as_dir" && as_dir=. 3151 for ac_exec_ext in '' $ac_executable_extensions; do 3152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3153 ac_cv_prog_CC="${ac_tool_prefix}cc" 3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3155 break 2 3156 fi 3157done 3158 done 3159IFS=$as_save_IFS 3160 3161fi 3162fi 3163CC=$ac_cv_prog_CC 3164if test -n "$CC"; then 3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3166$as_echo "$CC" >&6; } 3167else 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3169$as_echo "no" >&6; } 3170fi 3171 3172 3173 fi 3174fi 3175if test -z "$CC"; then 3176 # Extract the first word of "cc", so it can be a program name with args. 3177set dummy cc; ac_word=$2 3178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3179$as_echo_n "checking for $ac_word... " >&6; } 3180if ${ac_cv_prog_CC+:} false; then : 3181 $as_echo_n "(cached) " >&6 3182else 3183 if test -n "$CC"; then 3184 ac_cv_prog_CC="$CC" # Let the user override the test. 3185else 3186 ac_prog_rejected=no 3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3188for as_dir in $PATH 3189do 3190 IFS=$as_save_IFS 3191 test -z "$as_dir" && as_dir=. 3192 for ac_exec_ext in '' $ac_executable_extensions; do 3193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3194 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3195 ac_prog_rejected=yes 3196 continue 3197 fi 3198 ac_cv_prog_CC="cc" 3199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3200 break 2 3201 fi 3202done 3203 done 3204IFS=$as_save_IFS 3205 3206if test $ac_prog_rejected = yes; then 3207 # We found a bogon in the path, so make sure we never use it. 3208 set dummy $ac_cv_prog_CC 3209 shift 3210 if test $# != 0; then 3211 # We chose a different compiler from the bogus one. 3212 # However, it has the same basename, so the bogon will be chosen 3213 # first if we set CC to just the basename; use the full file name. 3214 shift 3215 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3216 fi 3217fi 3218fi 3219fi 3220CC=$ac_cv_prog_CC 3221if test -n "$CC"; then 3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3223$as_echo "$CC" >&6; } 3224else 3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3226$as_echo "no" >&6; } 3227fi 3228 3229 3230fi 3231if test -z "$CC"; then 3232 if test -n "$ac_tool_prefix"; then 3233 for ac_prog in cl.exe 3234 do 3235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3236set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3238$as_echo_n "checking for $ac_word... " >&6; } 3239if ${ac_cv_prog_CC+:} false; then : 3240 $as_echo_n "(cached) " >&6 3241else 3242 if test -n "$CC"; then 3243 ac_cv_prog_CC="$CC" # Let the user override the test. 3244else 3245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3246for as_dir in $PATH 3247do 3248 IFS=$as_save_IFS 3249 test -z "$as_dir" && as_dir=. 3250 for ac_exec_ext in '' $ac_executable_extensions; do 3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3252 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3254 break 2 3255 fi 3256done 3257 done 3258IFS=$as_save_IFS 3259 3260fi 3261fi 3262CC=$ac_cv_prog_CC 3263if test -n "$CC"; then 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3265$as_echo "$CC" >&6; } 3266else 3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3268$as_echo "no" >&6; } 3269fi 3270 3271 3272 test -n "$CC" && break 3273 done 3274fi 3275if test -z "$CC"; then 3276 ac_ct_CC=$CC 3277 for ac_prog in cl.exe 3278do 3279 # Extract the first word of "$ac_prog", so it can be a program name with args. 3280set dummy $ac_prog; ac_word=$2 3281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3282$as_echo_n "checking for $ac_word... " >&6; } 3283if ${ac_cv_prog_ac_ct_CC+:} false; then : 3284 $as_echo_n "(cached) " >&6 3285else 3286 if test -n "$ac_ct_CC"; then 3287 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3288else 3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3290for as_dir in $PATH 3291do 3292 IFS=$as_save_IFS 3293 test -z "$as_dir" && as_dir=. 3294 for ac_exec_ext in '' $ac_executable_extensions; do 3295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3296 ac_cv_prog_ac_ct_CC="$ac_prog" 3297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3298 break 2 3299 fi 3300done 3301 done 3302IFS=$as_save_IFS 3303 3304fi 3305fi 3306ac_ct_CC=$ac_cv_prog_ac_ct_CC 3307if test -n "$ac_ct_CC"; then 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3309$as_echo "$ac_ct_CC" >&6; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3312$as_echo "no" >&6; } 3313fi 3314 3315 3316 test -n "$ac_ct_CC" && break 3317done 3318 3319 if test "x$ac_ct_CC" = x; then 3320 CC="" 3321 else 3322 case $cross_compiling:$ac_tool_warned in 3323yes:) 3324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3326ac_tool_warned=yes ;; 3327esac 3328 CC=$ac_ct_CC 3329 fi 3330fi 3331 3332fi 3333 3334 3335test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3337as_fn_error $? "no acceptable C compiler found in \$PATH 3338See \`config.log' for more details" "$LINENO" 5; } 3339 3340# Provide some information about the compiler. 3341$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3342set X $ac_compile 3343ac_compiler=$2 3344for ac_option in --version -v -V -qversion; do 3345 { { ac_try="$ac_compiler $ac_option >&5" 3346case "(($ac_try" in 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3348 *) ac_try_echo=$ac_try;; 3349esac 3350eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3351$as_echo "$ac_try_echo"; } >&5 3352 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3353 ac_status=$? 3354 if test -s conftest.err; then 3355 sed '10a\ 3356... rest of stderr output deleted ... 3357 10q' conftest.err >conftest.er1 3358 cat conftest.er1 >&5 3359 fi 3360 rm -f conftest.er1 conftest.err 3361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3362 test $ac_status = 0; } 3363done 3364 3365cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3366/* end confdefs.h. */ 3367 3368int 3369main () 3370{ 3371 3372 ; 3373 return 0; 3374} 3375_ACEOF 3376ac_clean_files_save=$ac_clean_files 3377ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3378# Try to create an executable without -o first, disregard a.out. 3379# It will help us diagnose broken compilers, and finding out an intuition 3380# of exeext. 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3382$as_echo_n "checking whether the C compiler works... " >&6; } 3383ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3384 3385# The possible output files: 3386ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3387 3388ac_rmfiles= 3389for ac_file in $ac_files 3390do 3391 case $ac_file in 3392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3393 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3394 esac 3395done 3396rm -f $ac_rmfiles 3397 3398if { { ac_try="$ac_link_default" 3399case "(($ac_try" in 3400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3401 *) ac_try_echo=$ac_try;; 3402esac 3403eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3404$as_echo "$ac_try_echo"; } >&5 3405 (eval "$ac_link_default") 2>&5 3406 ac_status=$? 3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3408 test $ac_status = 0; }; then : 3409 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3410# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3411# in a Makefile. We should not override ac_cv_exeext if it was cached, 3412# so that the user can short-circuit this test for compilers unknown to 3413# Autoconf. 3414for ac_file in $ac_files '' 3415do 3416 test -f "$ac_file" || continue 3417 case $ac_file in 3418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3419 ;; 3420 [ab].out ) 3421 # We found the default executable, but exeext='' is most 3422 # certainly right. 3423 break;; 3424 *.* ) 3425 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3426 then :; else 3427 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3428 fi 3429 # We set ac_cv_exeext here because the later test for it is not 3430 # safe: cross compilers may not add the suffix if given an `-o' 3431 # argument, so we may need to know it at that point already. 3432 # Even if this section looks crufty: it has the advantage of 3433 # actually working. 3434 break;; 3435 * ) 3436 break;; 3437 esac 3438done 3439test "$ac_cv_exeext" = no && ac_cv_exeext= 3440 3441else 3442 ac_file='' 3443fi 3444if test -z "$ac_file"; then : 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3446$as_echo "no" >&6; } 3447$as_echo "$as_me: failed program was:" >&5 3448sed 's/^/| /' conftest.$ac_ext >&5 3449 3450{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3452as_fn_error 77 "C compiler cannot create executables 3453See \`config.log' for more details" "$LINENO" 5; } 3454else 3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3456$as_echo "yes" >&6; } 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3459$as_echo_n "checking for C compiler default output file name... " >&6; } 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3461$as_echo "$ac_file" >&6; } 3462ac_exeext=$ac_cv_exeext 3463 3464rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3465ac_clean_files=$ac_clean_files_save 3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3467$as_echo_n "checking for suffix of executables... " >&6; } 3468if { { ac_try="$ac_link" 3469case "(($ac_try" in 3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3471 *) ac_try_echo=$ac_try;; 3472esac 3473eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3474$as_echo "$ac_try_echo"; } >&5 3475 (eval "$ac_link") 2>&5 3476 ac_status=$? 3477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3478 test $ac_status = 0; }; then : 3479 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3480# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3481# work properly (i.e., refer to `conftest.exe'), while it won't with 3482# `rm'. 3483for ac_file in conftest.exe conftest conftest.*; do 3484 test -f "$ac_file" || continue 3485 case $ac_file in 3486 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3487 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3488 break;; 3489 * ) break;; 3490 esac 3491done 3492else 3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3495as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3496See \`config.log' for more details" "$LINENO" 5; } 3497fi 3498rm -f conftest conftest$ac_cv_exeext 3499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3500$as_echo "$ac_cv_exeext" >&6; } 3501 3502rm -f conftest.$ac_ext 3503EXEEXT=$ac_cv_exeext 3504ac_exeext=$EXEEXT 3505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3506/* end confdefs.h. */ 3507#include <stdio.h> 3508int 3509main () 3510{ 3511FILE *f = fopen ("conftest.out", "w"); 3512 return ferror (f) || fclose (f) != 0; 3513 3514 ; 3515 return 0; 3516} 3517_ACEOF 3518ac_clean_files="$ac_clean_files conftest.out" 3519# Check that the compiler produces executables we can run. If not, either 3520# the compiler is broken, or we cross compile. 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3522$as_echo_n "checking whether we are cross compiling... " >&6; } 3523if test "$cross_compiling" != yes; then 3524 { { ac_try="$ac_link" 3525case "(($ac_try" in 3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3527 *) ac_try_echo=$ac_try;; 3528esac 3529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3530$as_echo "$ac_try_echo"; } >&5 3531 (eval "$ac_link") 2>&5 3532 ac_status=$? 3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3534 test $ac_status = 0; } 3535 if { ac_try='./conftest$ac_cv_exeext' 3536 { { case "(($ac_try" in 3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3538 *) ac_try_echo=$ac_try;; 3539esac 3540eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3541$as_echo "$ac_try_echo"; } >&5 3542 (eval "$ac_try") 2>&5 3543 ac_status=$? 3544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3545 test $ac_status = 0; }; }; then 3546 cross_compiling=no 3547 else 3548 if test "$cross_compiling" = maybe; then 3549 cross_compiling=yes 3550 else 3551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3553as_fn_error $? "cannot run C compiled programs. 3554If you meant to cross compile, use \`--host'. 3555See \`config.log' for more details" "$LINENO" 5; } 3556 fi 3557 fi 3558fi 3559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3560$as_echo "$cross_compiling" >&6; } 3561 3562rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3563ac_clean_files=$ac_clean_files_save 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3565$as_echo_n "checking for suffix of object files... " >&6; } 3566if ${ac_cv_objext+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570/* end confdefs.h. */ 3571 3572int 3573main () 3574{ 3575 3576 ; 3577 return 0; 3578} 3579_ACEOF 3580rm -f conftest.o conftest.obj 3581if { { ac_try="$ac_compile" 3582case "(($ac_try" in 3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3584 *) ac_try_echo=$ac_try;; 3585esac 3586eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3587$as_echo "$ac_try_echo"; } >&5 3588 (eval "$ac_compile") 2>&5 3589 ac_status=$? 3590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3591 test $ac_status = 0; }; then : 3592 for ac_file in conftest.o conftest.obj conftest.*; do 3593 test -f "$ac_file" || continue; 3594 case $ac_file in 3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3596 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3597 break;; 3598 esac 3599done 3600else 3601 $as_echo "$as_me: failed program was:" >&5 3602sed 's/^/| /' conftest.$ac_ext >&5 3603 3604{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3606as_fn_error $? "cannot compute suffix of object files: cannot compile 3607See \`config.log' for more details" "$LINENO" 5; } 3608fi 3609rm -f conftest.$ac_cv_objext conftest.$ac_ext 3610fi 3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3612$as_echo "$ac_cv_objext" >&6; } 3613OBJEXT=$ac_cv_objext 3614ac_objext=$OBJEXT 3615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3616$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3617if ${ac_cv_c_compiler_gnu+:} false; then : 3618 $as_echo_n "(cached) " >&6 3619else 3620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621/* end confdefs.h. */ 3622 3623int 3624main () 3625{ 3626#ifndef __GNUC__ 3627 choke me 3628#endif 3629 3630 ; 3631 return 0; 3632} 3633_ACEOF 3634if ac_fn_c_try_compile "$LINENO"; then : 3635 ac_compiler_gnu=yes 3636else 3637 ac_compiler_gnu=no 3638fi 3639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3640ac_cv_c_compiler_gnu=$ac_compiler_gnu 3641 3642fi 3643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3644$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3645if test $ac_compiler_gnu = yes; then 3646 GCC=yes 3647else 3648 GCC= 3649fi 3650ac_test_CFLAGS=${CFLAGS+set} 3651ac_save_CFLAGS=$CFLAGS 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3653$as_echo_n "checking whether $CC accepts -g... " >&6; } 3654if ${ac_cv_prog_cc_g+:} false; then : 3655 $as_echo_n "(cached) " >&6 3656else 3657 ac_save_c_werror_flag=$ac_c_werror_flag 3658 ac_c_werror_flag=yes 3659 ac_cv_prog_cc_g=no 3660 CFLAGS="-g" 3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3662/* end confdefs.h. */ 3663 3664int 3665main () 3666{ 3667 3668 ; 3669 return 0; 3670} 3671_ACEOF 3672if ac_fn_c_try_compile "$LINENO"; then : 3673 ac_cv_prog_cc_g=yes 3674else 3675 CFLAGS="" 3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3677/* end confdefs.h. */ 3678 3679int 3680main () 3681{ 3682 3683 ; 3684 return 0; 3685} 3686_ACEOF 3687if ac_fn_c_try_compile "$LINENO"; then : 3688 3689else 3690 ac_c_werror_flag=$ac_save_c_werror_flag 3691 CFLAGS="-g" 3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3693/* end confdefs.h. */ 3694 3695int 3696main () 3697{ 3698 3699 ; 3700 return 0; 3701} 3702_ACEOF 3703if ac_fn_c_try_compile "$LINENO"; then : 3704 ac_cv_prog_cc_g=yes 3705fi 3706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3707fi 3708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3709fi 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3711 ac_c_werror_flag=$ac_save_c_werror_flag 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3714$as_echo "$ac_cv_prog_cc_g" >&6; } 3715if test "$ac_test_CFLAGS" = set; then 3716 CFLAGS=$ac_save_CFLAGS 3717elif test $ac_cv_prog_cc_g = yes; then 3718 if test "$GCC" = yes; then 3719 CFLAGS="-g -O2" 3720 else 3721 CFLAGS="-g" 3722 fi 3723else 3724 if test "$GCC" = yes; then 3725 CFLAGS="-O2" 3726 else 3727 CFLAGS= 3728 fi 3729fi 3730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3731$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3732if ${ac_cv_prog_cc_c89+:} false; then : 3733 $as_echo_n "(cached) " >&6 3734else 3735 ac_cv_prog_cc_c89=no 3736ac_save_CC=$CC 3737cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3738/* end confdefs.h. */ 3739#include <stdarg.h> 3740#include <stdio.h> 3741struct stat; 3742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3743struct buf { int x; }; 3744FILE * (*rcsopen) (struct buf *, struct stat *, int); 3745static char *e (p, i) 3746 char **p; 3747 int i; 3748{ 3749 return p[i]; 3750} 3751static char *f (char * (*g) (char **, int), char **p, ...) 3752{ 3753 char *s; 3754 va_list v; 3755 va_start (v,p); 3756 s = g (p, va_arg (v,int)); 3757 va_end (v); 3758 return s; 3759} 3760 3761/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3762 function prototypes and stuff, but not '\xHH' hex character constants. 3763 These don't provoke an error unfortunately, instead are silently treated 3764 as 'x'. The following induces an error, until -std is added to get 3765 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3766 array size at least. It's necessary to write '\x00'==0 to get something 3767 that's true only with -std. */ 3768int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3769 3770/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3771 inside strings and character constants. */ 3772#define FOO(x) 'x' 3773int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3774 3775int test (int i, double x); 3776struct s1 {int (*f) (int a);}; 3777struct s2 {int (*f) (double a);}; 3778int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3779int argc; 3780char **argv; 3781int 3782main () 3783{ 3784return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3790 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3791do 3792 CC="$ac_save_CC $ac_arg" 3793 if ac_fn_c_try_compile "$LINENO"; then : 3794 ac_cv_prog_cc_c89=$ac_arg 3795fi 3796rm -f core conftest.err conftest.$ac_objext 3797 test "x$ac_cv_prog_cc_c89" != "xno" && break 3798done 3799rm -f conftest.$ac_ext 3800CC=$ac_save_CC 3801 3802fi 3803# AC_CACHE_VAL 3804case "x$ac_cv_prog_cc_c89" in 3805 x) 3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3807$as_echo "none needed" >&6; } ;; 3808 xno) 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3810$as_echo "unsupported" >&6; } ;; 3811 *) 3812 CC="$CC $ac_cv_prog_cc_c89" 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3814$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3815esac 3816if test "x$ac_cv_prog_cc_c89" != xno; then : 3817 3818fi 3819 3820ac_ext=c 3821ac_cpp='$CPP $CPPFLAGS' 3822ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3823ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3824ac_compiler_gnu=$ac_cv_c_compiler_gnu 3825 3826ac_ext=c 3827ac_cpp='$CPP $CPPFLAGS' 3828ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3829ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3830ac_compiler_gnu=$ac_cv_c_compiler_gnu 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3832$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3833if ${am_cv_prog_cc_c_o+:} false; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3837/* end confdefs.h. */ 3838 3839int 3840main () 3841{ 3842 3843 ; 3844 return 0; 3845} 3846_ACEOF 3847 # Make sure it works both with $CC and with simple cc. 3848 # Following AC_PROG_CC_C_O, we do the test twice because some 3849 # compilers refuse to overwrite an existing .o file with -o, 3850 # though they will create one. 3851 am_cv_prog_cc_c_o=yes 3852 for am_i in 1 2; do 3853 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3854 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3855 ac_status=$? 3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3857 (exit $ac_status); } \ 3858 && test -f conftest2.$ac_objext; then 3859 : OK 3860 else 3861 am_cv_prog_cc_c_o=no 3862 break 3863 fi 3864 done 3865 rm -f core conftest* 3866 unset am_i 3867fi 3868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3869$as_echo "$am_cv_prog_cc_c_o" >&6; } 3870if test "$am_cv_prog_cc_c_o" != yes; then 3871 # Losing compiler, so override with the script. 3872 # FIXME: It is wrong to rewrite CC. 3873 # But if we don't then we get into trouble of one sort or another. 3874 # A longer-term fix would be to have automake use am__CC in this case, 3875 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3876 CC="$am_aux_dir/compile $CC" 3877fi 3878ac_ext=c 3879ac_cpp='$CPP $CPPFLAGS' 3880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3882ac_compiler_gnu=$ac_cv_c_compiler_gnu 3883 3884 3885depcc="$CC" am_compiler_list= 3886 3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3888$as_echo_n "checking dependency style of $depcc... " >&6; } 3889if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3890 $as_echo_n "(cached) " >&6 3891else 3892 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3893 # We make a subdir and do the tests there. Otherwise we can end up 3894 # making bogus files that we don't know about and never remove. For 3895 # instance it was reported that on HP-UX the gcc test will end up 3896 # making a dummy file named 'D' -- because '-MD' means "put the output 3897 # in D". 3898 rm -rf conftest.dir 3899 mkdir conftest.dir 3900 # Copy depcomp to subdir because otherwise we won't find it if we're 3901 # using a relative directory. 3902 cp "$am_depcomp" conftest.dir 3903 cd conftest.dir 3904 # We will build objects and dependencies in a subdirectory because 3905 # it helps to detect inapplicable dependency modes. For instance 3906 # both Tru64's cc and ICC support -MD to output dependencies as a 3907 # side effect of compilation, but ICC will put the dependencies in 3908 # the current directory while Tru64 will put them in the object 3909 # directory. 3910 mkdir sub 3911 3912 am_cv_CC_dependencies_compiler_type=none 3913 if test "$am_compiler_list" = ""; then 3914 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3915 fi 3916 am__universal=false 3917 case " $depcc " in #( 3918 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3919 esac 3920 3921 for depmode in $am_compiler_list; do 3922 # Setup a source with many dependencies, because some compilers 3923 # like to wrap large dependency lists on column 80 (with \), and 3924 # we should not choose a depcomp mode which is confused by this. 3925 # 3926 # We need to recreate these files for each test, as the compiler may 3927 # overwrite some of them when testing with obscure command lines. 3928 # This happens at least with the AIX C compiler. 3929 : > sub/conftest.c 3930 for i in 1 2 3 4 5 6; do 3931 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3932 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 3933 # Solaris 10 /bin/sh. 3934 echo '/* dummy */' > sub/conftst$i.h 3935 done 3936 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3937 3938 # We check with '-c' and '-o' for the sake of the "dashmstdout" 3939 # mode. It turns out that the SunPro C++ compiler does not properly 3940 # handle '-M -o', and we need to detect this. Also, some Intel 3941 # versions had trouble with output in subdirs. 3942 am__obj=sub/conftest.${OBJEXT-o} 3943 am__minus_obj="-o $am__obj" 3944 case $depmode in 3945 gcc) 3946 # This depmode causes a compiler race in universal mode. 3947 test "$am__universal" = false || continue 3948 ;; 3949 nosideeffect) 3950 # After this tag, mechanisms are not by side-effect, so they'll 3951 # only be used when explicitly requested. 3952 if test "x$enable_dependency_tracking" = xyes; then 3953 continue 3954 else 3955 break 3956 fi 3957 ;; 3958 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 3959 # This compiler won't grok '-c -o', but also, the minuso test has 3960 # not run yet. These depmodes are late enough in the game, and 3961 # so weak that their functioning should not be impacted. 3962 am__obj=conftest.${OBJEXT-o} 3963 am__minus_obj= 3964 ;; 3965 none) break ;; 3966 esac 3967 if depmode=$depmode \ 3968 source=sub/conftest.c object=$am__obj \ 3969 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3970 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3971 >/dev/null 2>conftest.err && 3972 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3973 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3974 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3975 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3976 # icc doesn't choke on unknown options, it will just issue warnings 3977 # or remarks (even with -Werror). So we grep stderr for any message 3978 # that says an option was ignored or not supported. 3979 # When given -MP, icc 7.0 and 7.1 complain thusly: 3980 # icc: Command line warning: ignoring option '-M'; no argument required 3981 # The diagnosis changed in icc 8.0: 3982 # icc: Command line remark: option '-MP' not supported 3983 if (grep 'ignoring option' conftest.err || 3984 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3985 am_cv_CC_dependencies_compiler_type=$depmode 3986 break 3987 fi 3988 fi 3989 done 3990 3991 cd .. 3992 rm -rf conftest.dir 3993else 3994 am_cv_CC_dependencies_compiler_type=none 3995fi 3996 3997fi 3998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3999$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4000CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4001 4002 if 4003 test "x$enable_dependency_tracking" != xno \ 4004 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4005 am__fastdepCC_TRUE= 4006 am__fastdepCC_FALSE='#' 4007else 4008 am__fastdepCC_TRUE='#' 4009 am__fastdepCC_FALSE= 4010fi 4011 4012 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4014$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4015if ${ac_cv_prog_cc_c99+:} false; then : 4016 $as_echo_n "(cached) " >&6 4017else 4018 ac_cv_prog_cc_c99=no 4019ac_save_CC=$CC 4020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4021/* end confdefs.h. */ 4022#include <stdarg.h> 4023#include <stdbool.h> 4024#include <stdlib.h> 4025#include <wchar.h> 4026#include <stdio.h> 4027 4028// Check varargs macros. These examples are taken from C99 6.10.3.5. 4029#define debug(...) fprintf (stderr, __VA_ARGS__) 4030#define showlist(...) puts (#__VA_ARGS__) 4031#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4032static void 4033test_varargs_macros (void) 4034{ 4035 int x = 1234; 4036 int y = 5678; 4037 debug ("Flag"); 4038 debug ("X = %d\n", x); 4039 showlist (The first, second, and third items.); 4040 report (x>y, "x is %d but y is %d", x, y); 4041} 4042 4043// Check long long types. 4044#define BIG64 18446744073709551615ull 4045#define BIG32 4294967295ul 4046#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4047#if !BIG_OK 4048 your preprocessor is broken; 4049#endif 4050#if BIG_OK 4051#else 4052 your preprocessor is broken; 4053#endif 4054static long long int bignum = -9223372036854775807LL; 4055static unsigned long long int ubignum = BIG64; 4056 4057struct incomplete_array 4058{ 4059 int datasize; 4060 double data[]; 4061}; 4062 4063struct named_init { 4064 int number; 4065 const wchar_t *name; 4066 double average; 4067}; 4068 4069typedef const char *ccp; 4070 4071static inline int 4072test_restrict (ccp restrict text) 4073{ 4074 // See if C++-style comments work. 4075 // Iterate through items via the restricted pointer. 4076 // Also check for declarations in for loops. 4077 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4078 continue; 4079 return 0; 4080} 4081 4082// Check varargs and va_copy. 4083static void 4084test_varargs (const char *format, ...) 4085{ 4086 va_list args; 4087 va_start (args, format); 4088 va_list args_copy; 4089 va_copy (args_copy, args); 4090 4091 const char *str; 4092 int number; 4093 float fnumber; 4094 4095 while (*format) 4096 { 4097 switch (*format++) 4098 { 4099 case 's': // string 4100 str = va_arg (args_copy, const char *); 4101 break; 4102 case 'd': // int 4103 number = va_arg (args_copy, int); 4104 break; 4105 case 'f': // float 4106 fnumber = va_arg (args_copy, double); 4107 break; 4108 default: 4109 break; 4110 } 4111 } 4112 va_end (args_copy); 4113 va_end (args); 4114} 4115 4116int 4117main () 4118{ 4119 4120 // Check bool. 4121 _Bool success = false; 4122 4123 // Check restrict. 4124 if (test_restrict ("String literal") == 0) 4125 success = true; 4126 char *restrict newvar = "Another string"; 4127 4128 // Check varargs. 4129 test_varargs ("s, d' f .", "string", 65, 34.234); 4130 test_varargs_macros (); 4131 4132 // Check flexible array members. 4133 struct incomplete_array *ia = 4134 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4135 ia->datasize = 10; 4136 for (int i = 0; i < ia->datasize; ++i) 4137 ia->data[i] = i * 1.234; 4138 4139 // Check named initializers. 4140 struct named_init ni = { 4141 .number = 34, 4142 .name = L"Test wide string", 4143 .average = 543.34343, 4144 }; 4145 4146 ni.number = 58; 4147 4148 int dynamic_array[ni.number]; 4149 dynamic_array[ni.number - 1] = 543; 4150 4151 // work around unused variable warnings 4152 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4153 || dynamic_array[ni.number - 1] != 543); 4154 4155 ; 4156 return 0; 4157} 4158_ACEOF 4159for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4160do 4161 CC="$ac_save_CC $ac_arg" 4162 if ac_fn_c_try_compile "$LINENO"; then : 4163 ac_cv_prog_cc_c99=$ac_arg 4164fi 4165rm -f core conftest.err conftest.$ac_objext 4166 test "x$ac_cv_prog_cc_c99" != "xno" && break 4167done 4168rm -f conftest.$ac_ext 4169CC=$ac_save_CC 4170 4171fi 4172# AC_CACHE_VAL 4173case "x$ac_cv_prog_cc_c99" in 4174 x) 4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4176$as_echo "none needed" >&6; } ;; 4177 xno) 4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4179$as_echo "unsupported" >&6; } ;; 4180 *) 4181 CC="$CC $ac_cv_prog_cc_c99" 4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4183$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4184esac 4185if test "x$ac_cv_prog_cc_c99" != xno; then : 4186 4187fi 4188 4189 4190 4191ac_ext=c 4192ac_cpp='$CPP $CPPFLAGS' 4193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4195ac_compiler_gnu=$ac_cv_c_compiler_gnu 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4197$as_echo_n "checking how to run the C preprocessor... " >&6; } 4198# On Suns, sometimes $CPP names a directory. 4199if test -n "$CPP" && test -d "$CPP"; then 4200 CPP= 4201fi 4202if test -z "$CPP"; then 4203 if ${ac_cv_prog_CPP+:} false; then : 4204 $as_echo_n "(cached) " >&6 4205else 4206 # Double quotes because CPP needs to be expanded 4207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4208 do 4209 ac_preproc_ok=false 4210for ac_c_preproc_warn_flag in '' yes 4211do 4212 # Use a header file that comes with gcc, so configuring glibc 4213 # with a fresh cross-compiler works. 4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4215 # <limits.h> exists even on freestanding compilers. 4216 # On the NeXT, cc -E runs the code through the compiler's parser, 4217 # not just through cpp. "Syntax error" is here to catch this case. 4218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4219/* end confdefs.h. */ 4220#ifdef __STDC__ 4221# include <limits.h> 4222#else 4223# include <assert.h> 4224#endif 4225 Syntax error 4226_ACEOF 4227if ac_fn_c_try_cpp "$LINENO"; then : 4228 4229else 4230 # Broken: fails on valid input. 4231continue 4232fi 4233rm -f conftest.err conftest.i conftest.$ac_ext 4234 4235 # OK, works on sane cases. Now check whether nonexistent headers 4236 # can be detected and how. 4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4238/* end confdefs.h. */ 4239#include <ac_nonexistent.h> 4240_ACEOF 4241if ac_fn_c_try_cpp "$LINENO"; then : 4242 # Broken: success on invalid input. 4243continue 4244else 4245 # Passes both tests. 4246ac_preproc_ok=: 4247break 4248fi 4249rm -f conftest.err conftest.i conftest.$ac_ext 4250 4251done 4252# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4253rm -f conftest.i conftest.err conftest.$ac_ext 4254if $ac_preproc_ok; then : 4255 break 4256fi 4257 4258 done 4259 ac_cv_prog_CPP=$CPP 4260 4261fi 4262 CPP=$ac_cv_prog_CPP 4263else 4264 ac_cv_prog_CPP=$CPP 4265fi 4266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4267$as_echo "$CPP" >&6; } 4268ac_preproc_ok=false 4269for ac_c_preproc_warn_flag in '' yes 4270do 4271 # Use a header file that comes with gcc, so configuring glibc 4272 # with a fresh cross-compiler works. 4273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4274 # <limits.h> exists even on freestanding compilers. 4275 # On the NeXT, cc -E runs the code through the compiler's parser, 4276 # not just through cpp. "Syntax error" is here to catch this case. 4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4278/* end confdefs.h. */ 4279#ifdef __STDC__ 4280# include <limits.h> 4281#else 4282# include <assert.h> 4283#endif 4284 Syntax error 4285_ACEOF 4286if ac_fn_c_try_cpp "$LINENO"; then : 4287 4288else 4289 # Broken: fails on valid input. 4290continue 4291fi 4292rm -f conftest.err conftest.i conftest.$ac_ext 4293 4294 # OK, works on sane cases. Now check whether nonexistent headers 4295 # can be detected and how. 4296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4297/* end confdefs.h. */ 4298#include <ac_nonexistent.h> 4299_ACEOF 4300if ac_fn_c_try_cpp "$LINENO"; then : 4301 # Broken: success on invalid input. 4302continue 4303else 4304 # Passes both tests. 4305ac_preproc_ok=: 4306break 4307fi 4308rm -f conftest.err conftest.i conftest.$ac_ext 4309 4310done 4311# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4312rm -f conftest.i conftest.err conftest.$ac_ext 4313if $ac_preproc_ok; then : 4314 4315else 4316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4318as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4319See \`config.log' for more details" "$LINENO" 5; } 4320fi 4321 4322ac_ext=c 4323ac_cpp='$CPP $CPPFLAGS' 4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4326ac_compiler_gnu=$ac_cv_c_compiler_gnu 4327 4328 4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4330$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4331if ${ac_cv_path_GREP+:} false; then : 4332 $as_echo_n "(cached) " >&6 4333else 4334 if test -z "$GREP"; then 4335 ac_path_GREP_found=false 4336 # Loop through the user's path and test for each of PROGNAME-LIST 4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4338for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4339do 4340 IFS=$as_save_IFS 4341 test -z "$as_dir" && as_dir=. 4342 for ac_prog in grep ggrep; do 4343 for ac_exec_ext in '' $ac_executable_extensions; do 4344 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4345 as_fn_executable_p "$ac_path_GREP" || continue 4346# Check for GNU ac_path_GREP and select it if it is found. 4347 # Check for GNU $ac_path_GREP 4348case `"$ac_path_GREP" --version 2>&1` in 4349*GNU*) 4350 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4351*) 4352 ac_count=0 4353 $as_echo_n 0123456789 >"conftest.in" 4354 while : 4355 do 4356 cat "conftest.in" "conftest.in" >"conftest.tmp" 4357 mv "conftest.tmp" "conftest.in" 4358 cp "conftest.in" "conftest.nl" 4359 $as_echo 'GREP' >> "conftest.nl" 4360 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4362 as_fn_arith $ac_count + 1 && ac_count=$as_val 4363 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4364 # Best one so far, save it but keep looking for a better one 4365 ac_cv_path_GREP="$ac_path_GREP" 4366 ac_path_GREP_max=$ac_count 4367 fi 4368 # 10*(2^10) chars as input seems more than enough 4369 test $ac_count -gt 10 && break 4370 done 4371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4372esac 4373 4374 $ac_path_GREP_found && break 3 4375 done 4376 done 4377 done 4378IFS=$as_save_IFS 4379 if test -z "$ac_cv_path_GREP"; then 4380 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4381 fi 4382else 4383 ac_cv_path_GREP=$GREP 4384fi 4385 4386fi 4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4388$as_echo "$ac_cv_path_GREP" >&6; } 4389 GREP="$ac_cv_path_GREP" 4390 4391 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4393$as_echo_n "checking for egrep... " >&6; } 4394if ${ac_cv_path_EGREP+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4398 then ac_cv_path_EGREP="$GREP -E" 4399 else 4400 if test -z "$EGREP"; then 4401 ac_path_EGREP_found=false 4402 # Loop through the user's path and test for each of PROGNAME-LIST 4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4404for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4405do 4406 IFS=$as_save_IFS 4407 test -z "$as_dir" && as_dir=. 4408 for ac_prog in egrep; do 4409 for ac_exec_ext in '' $ac_executable_extensions; do 4410 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4411 as_fn_executable_p "$ac_path_EGREP" || continue 4412# Check for GNU ac_path_EGREP and select it if it is found. 4413 # Check for GNU $ac_path_EGREP 4414case `"$ac_path_EGREP" --version 2>&1` in 4415*GNU*) 4416 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4417*) 4418 ac_count=0 4419 $as_echo_n 0123456789 >"conftest.in" 4420 while : 4421 do 4422 cat "conftest.in" "conftest.in" >"conftest.tmp" 4423 mv "conftest.tmp" "conftest.in" 4424 cp "conftest.in" "conftest.nl" 4425 $as_echo 'EGREP' >> "conftest.nl" 4426 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4428 as_fn_arith $ac_count + 1 && ac_count=$as_val 4429 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4430 # Best one so far, save it but keep looking for a better one 4431 ac_cv_path_EGREP="$ac_path_EGREP" 4432 ac_path_EGREP_max=$ac_count 4433 fi 4434 # 10*(2^10) chars as input seems more than enough 4435 test $ac_count -gt 10 && break 4436 done 4437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4438esac 4439 4440 $ac_path_EGREP_found && break 3 4441 done 4442 done 4443 done 4444IFS=$as_save_IFS 4445 if test -z "$ac_cv_path_EGREP"; then 4446 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4447 fi 4448else 4449 ac_cv_path_EGREP=$EGREP 4450fi 4451 4452 fi 4453fi 4454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4455$as_echo "$ac_cv_path_EGREP" >&6; } 4456 EGREP="$ac_cv_path_EGREP" 4457 4458 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4460$as_echo_n "checking for ANSI C header files... " >&6; } 4461if ${ac_cv_header_stdc+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4465/* end confdefs.h. */ 4466#include <stdlib.h> 4467#include <stdarg.h> 4468#include <string.h> 4469#include <float.h> 4470 4471int 4472main () 4473{ 4474 4475 ; 4476 return 0; 4477} 4478_ACEOF 4479if ac_fn_c_try_compile "$LINENO"; then : 4480 ac_cv_header_stdc=yes 4481else 4482 ac_cv_header_stdc=no 4483fi 4484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4485 4486if test $ac_cv_header_stdc = yes; then 4487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4489/* end confdefs.h. */ 4490#include <string.h> 4491 4492_ACEOF 4493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4494 $EGREP "memchr" >/dev/null 2>&1; then : 4495 4496else 4497 ac_cv_header_stdc=no 4498fi 4499rm -f conftest* 4500 4501fi 4502 4503if test $ac_cv_header_stdc = yes; then 4504 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4506/* end confdefs.h. */ 4507#include <stdlib.h> 4508 4509_ACEOF 4510if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4511 $EGREP "free" >/dev/null 2>&1; then : 4512 4513else 4514 ac_cv_header_stdc=no 4515fi 4516rm -f conftest* 4517 4518fi 4519 4520if test $ac_cv_header_stdc = yes; then 4521 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4522 if test "$cross_compiling" = yes; then : 4523 : 4524else 4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526/* end confdefs.h. */ 4527#include <ctype.h> 4528#include <stdlib.h> 4529#if ((' ' & 0x0FF) == 0x020) 4530# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4531# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4532#else 4533# define ISLOWER(c) \ 4534 (('a' <= (c) && (c) <= 'i') \ 4535 || ('j' <= (c) && (c) <= 'r') \ 4536 || ('s' <= (c) && (c) <= 'z')) 4537# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4538#endif 4539 4540#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4541int 4542main () 4543{ 4544 int i; 4545 for (i = 0; i < 256; i++) 4546 if (XOR (islower (i), ISLOWER (i)) 4547 || toupper (i) != TOUPPER (i)) 4548 return 2; 4549 return 0; 4550} 4551_ACEOF 4552if ac_fn_c_try_run "$LINENO"; then : 4553 4554else 4555 ac_cv_header_stdc=no 4556fi 4557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4558 conftest.$ac_objext conftest.beam conftest.$ac_ext 4559fi 4560 4561fi 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4564$as_echo "$ac_cv_header_stdc" >&6; } 4565if test $ac_cv_header_stdc = yes; then 4566 4567$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4568 4569fi 4570 4571# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4572for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4573 inttypes.h stdint.h unistd.h 4574do : 4575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4576ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4577" 4578if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4579 cat >>confdefs.h <<_ACEOF 4580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4581_ACEOF 4582 4583fi 4584 4585done 4586 4587 4588 4589 4590 4591 4592ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4593if test "x$ac_cv_have_decl___clang__" = xyes; then : 4594 CLANGCC="yes" 4595else 4596 CLANGCC="no" 4597fi 4598 4599ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4600if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4601 INTELCC="yes" 4602else 4603 INTELCC="no" 4604fi 4605 4606ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4607if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4608 SUNCC="yes" 4609else 4610 SUNCC="no" 4611fi 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4622 if test -n "$ac_tool_prefix"; then 4623 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4624set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4626$as_echo_n "checking for $ac_word... " >&6; } 4627if ${ac_cv_path_PKG_CONFIG+:} false; then : 4628 $as_echo_n "(cached) " >&6 4629else 4630 case $PKG_CONFIG in 4631 [\\/]* | ?:[\\/]*) 4632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4633 ;; 4634 *) 4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4636for as_dir in $PATH 4637do 4638 IFS=$as_save_IFS 4639 test -z "$as_dir" && as_dir=. 4640 for ac_exec_ext in '' $ac_executable_extensions; do 4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4642 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4644 break 2 4645 fi 4646done 4647 done 4648IFS=$as_save_IFS 4649 4650 ;; 4651esac 4652fi 4653PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4654if test -n "$PKG_CONFIG"; then 4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4656$as_echo "$PKG_CONFIG" >&6; } 4657else 4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4659$as_echo "no" >&6; } 4660fi 4661 4662 4663fi 4664if test -z "$ac_cv_path_PKG_CONFIG"; then 4665 ac_pt_PKG_CONFIG=$PKG_CONFIG 4666 # Extract the first word of "pkg-config", so it can be a program name with args. 4667set dummy pkg-config; ac_word=$2 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4669$as_echo_n "checking for $ac_word... " >&6; } 4670if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 case $ac_pt_PKG_CONFIG in 4674 [\\/]* | ?:[\\/]*) 4675 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4676 ;; 4677 *) 4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4679for as_dir in $PATH 4680do 4681 IFS=$as_save_IFS 4682 test -z "$as_dir" && as_dir=. 4683 for ac_exec_ext in '' $ac_executable_extensions; do 4684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4685 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4687 break 2 4688 fi 4689done 4690 done 4691IFS=$as_save_IFS 4692 4693 ;; 4694esac 4695fi 4696ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4697if test -n "$ac_pt_PKG_CONFIG"; then 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4699$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4700else 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4702$as_echo "no" >&6; } 4703fi 4704 4705 if test "x$ac_pt_PKG_CONFIG" = x; then 4706 PKG_CONFIG="" 4707 else 4708 case $cross_compiling:$ac_tool_warned in 4709yes:) 4710{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4711$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4712ac_tool_warned=yes ;; 4713esac 4714 PKG_CONFIG=$ac_pt_PKG_CONFIG 4715 fi 4716else 4717 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4718fi 4719 4720fi 4721if test -n "$PKG_CONFIG"; then 4722 _pkg_min_version=0.9.0 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4724$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4725 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4727$as_echo "yes" >&6; } 4728 else 4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4730$as_echo "no" >&6; } 4731 PKG_CONFIG="" 4732 fi 4733fi 4734# Make sure we can run config.sub. 4735$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4736 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4737 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4739$as_echo_n "checking build system type... " >&6; } 4740if ${ac_cv_build+:} false; then : 4741 $as_echo_n "(cached) " >&6 4742else 4743 ac_build_alias=$build_alias 4744test "x$ac_build_alias" = x && 4745 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4746test "x$ac_build_alias" = x && 4747 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4748ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4749 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4750 4751fi 4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4753$as_echo "$ac_cv_build" >&6; } 4754case $ac_cv_build in 4755*-*-*) ;; 4756*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4757esac 4758build=$ac_cv_build 4759ac_save_IFS=$IFS; IFS='-' 4760set x $ac_cv_build 4761shift 4762build_cpu=$1 4763build_vendor=$2 4764shift; shift 4765# Remember, the first character of IFS is used to create $*, 4766# except with old shells: 4767build_os=$* 4768IFS=$ac_save_IFS 4769case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4770 4771 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4773$as_echo_n "checking host system type... " >&6; } 4774if ${ac_cv_host+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 if test "x$host_alias" = x; then 4778 ac_cv_host=$ac_cv_build 4779else 4780 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4782fi 4783 4784fi 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4786$as_echo "$ac_cv_host" >&6; } 4787case $ac_cv_host in 4788*-*-*) ;; 4789*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4790esac 4791host=$ac_cv_host 4792ac_save_IFS=$IFS; IFS='-' 4793set x $ac_cv_host 4794shift 4795host_cpu=$1 4796host_vendor=$2 4797shift; shift 4798# Remember, the first character of IFS is used to create $*, 4799# except with old shells: 4800host_os=$* 4801IFS=$ac_save_IFS 4802case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4803 4804 4805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4806$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4807if ${ac_cv_path_SED+:} false; then : 4808 $as_echo_n "(cached) " >&6 4809else 4810 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4811 for ac_i in 1 2 3 4 5 6 7; do 4812 ac_script="$ac_script$as_nl$ac_script" 4813 done 4814 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4815 { ac_script=; unset ac_script;} 4816 if test -z "$SED"; then 4817 ac_path_SED_found=false 4818 # Loop through the user's path and test for each of PROGNAME-LIST 4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4820for as_dir in $PATH 4821do 4822 IFS=$as_save_IFS 4823 test -z "$as_dir" && as_dir=. 4824 for ac_prog in sed gsed; do 4825 for ac_exec_ext in '' $ac_executable_extensions; do 4826 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4827 as_fn_executable_p "$ac_path_SED" || continue 4828# Check for GNU ac_path_SED and select it if it is found. 4829 # Check for GNU $ac_path_SED 4830case `"$ac_path_SED" --version 2>&1` in 4831*GNU*) 4832 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4833*) 4834 ac_count=0 4835 $as_echo_n 0123456789 >"conftest.in" 4836 while : 4837 do 4838 cat "conftest.in" "conftest.in" >"conftest.tmp" 4839 mv "conftest.tmp" "conftest.in" 4840 cp "conftest.in" "conftest.nl" 4841 $as_echo '' >> "conftest.nl" 4842 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4844 as_fn_arith $ac_count + 1 && ac_count=$as_val 4845 if test $ac_count -gt ${ac_path_SED_max-0}; then 4846 # Best one so far, save it but keep looking for a better one 4847 ac_cv_path_SED="$ac_path_SED" 4848 ac_path_SED_max=$ac_count 4849 fi 4850 # 10*(2^10) chars as input seems more than enough 4851 test $ac_count -gt 10 && break 4852 done 4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4854esac 4855 4856 $ac_path_SED_found && break 3 4857 done 4858 done 4859 done 4860IFS=$as_save_IFS 4861 if test -z "$ac_cv_path_SED"; then 4862 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4863 fi 4864else 4865 ac_cv_path_SED=$SED 4866fi 4867 4868fi 4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4870$as_echo "$ac_cv_path_SED" >&6; } 4871 SED="$ac_cv_path_SED" 4872 rm -f conftest.sed 4873 4874 4875 4876 4877 4878 4879# Check whether --enable-selective-werror was given. 4880if test "${enable_selective_werror+set}" = set; then : 4881 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4882else 4883 SELECTIVE_WERROR=yes 4884fi 4885 4886 4887 4888 4889 4890# -v is too short to test reliably with XORG_TESTSET_CFLAG 4891if test "x$SUNCC" = "xyes"; then 4892 BASE_CFLAGS="-v" 4893else 4894 BASE_CFLAGS="" 4895fi 4896 4897# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911xorg_testset_save_CFLAGS="$CFLAGS" 4912 4913if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4914 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4916$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4917if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4918 $as_echo_n "(cached) " >&6 4919else 4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4921/* end confdefs.h. */ 4922int i; 4923_ACEOF 4924if ac_fn_c_try_compile "$LINENO"; then : 4925 xorg_cv_cc_flag_unknown_warning_option=yes 4926else 4927 xorg_cv_cc_flag_unknown_warning_option=no 4928fi 4929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4930fi 4931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4932$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4933 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4934 CFLAGS="$xorg_testset_save_CFLAGS" 4935fi 4936 4937if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4939 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4940 fi 4941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4943$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4944if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4945 $as_echo_n "(cached) " >&6 4946else 4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4948/* end confdefs.h. */ 4949int i; 4950_ACEOF 4951if ac_fn_c_try_compile "$LINENO"; then : 4952 xorg_cv_cc_flag_unused_command_line_argument=yes 4953else 4954 xorg_cv_cc_flag_unused_command_line_argument=no 4955fi 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4957fi 4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4959$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4961 CFLAGS="$xorg_testset_save_CFLAGS" 4962fi 4963 4964found="no" 4965 4966 if test $found = "no" ; then 4967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4968 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4969 fi 4970 4971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4973 fi 4974 4975 CFLAGS="$CFLAGS -Wall" 4976 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4978$as_echo_n "checking if $CC supports -Wall... " >&6; } 4979 cacheid=xorg_cv_cc_flag__Wall 4980 if eval \${$cacheid+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985int i; 4986int 4987main () 4988{ 4989 4990 ; 4991 return 0; 4992} 4993_ACEOF 4994if ac_fn_c_try_link "$LINENO"; then : 4995 eval $cacheid=yes 4996else 4997 eval $cacheid=no 4998fi 4999rm -f core conftest.err conftest.$ac_objext \ 5000 conftest$ac_exeext conftest.$ac_ext 5001fi 5002 5003 5004 CFLAGS="$xorg_testset_save_CFLAGS" 5005 5006 eval supported=\$$cacheid 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5008$as_echo "$supported" >&6; } 5009 if test "$supported" = "yes" ; then 5010 BASE_CFLAGS="$BASE_CFLAGS -Wall" 5011 found="yes" 5012 fi 5013 fi 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029xorg_testset_save_CFLAGS="$CFLAGS" 5030 5031if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5032 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5034$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5035if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037else 5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5039/* end confdefs.h. */ 5040int i; 5041_ACEOF 5042if ac_fn_c_try_compile "$LINENO"; then : 5043 xorg_cv_cc_flag_unknown_warning_option=yes 5044else 5045 xorg_cv_cc_flag_unknown_warning_option=no 5046fi 5047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5048fi 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5050$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5052 CFLAGS="$xorg_testset_save_CFLAGS" 5053fi 5054 5055if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5057 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5058 fi 5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5061$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5062if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064else 5065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5066/* end confdefs.h. */ 5067int i; 5068_ACEOF 5069if ac_fn_c_try_compile "$LINENO"; then : 5070 xorg_cv_cc_flag_unused_command_line_argument=yes 5071else 5072 xorg_cv_cc_flag_unused_command_line_argument=no 5073fi 5074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5075fi 5076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5077$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5079 CFLAGS="$xorg_testset_save_CFLAGS" 5080fi 5081 5082found="no" 5083 5084 if test $found = "no" ; then 5085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5086 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5087 fi 5088 5089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5091 fi 5092 5093 CFLAGS="$CFLAGS -Wpointer-arith" 5094 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5096$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5097 cacheid=xorg_cv_cc_flag__Wpointer_arith 5098 if eval \${$cacheid+:} false; then : 5099 $as_echo_n "(cached) " >&6 5100else 5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102/* end confdefs.h. */ 5103int i; 5104int 5105main () 5106{ 5107 5108 ; 5109 return 0; 5110} 5111_ACEOF 5112if ac_fn_c_try_link "$LINENO"; then : 5113 eval $cacheid=yes 5114else 5115 eval $cacheid=no 5116fi 5117rm -f core conftest.err conftest.$ac_objext \ 5118 conftest$ac_exeext conftest.$ac_ext 5119fi 5120 5121 5122 CFLAGS="$xorg_testset_save_CFLAGS" 5123 5124 eval supported=\$$cacheid 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5126$as_echo "$supported" >&6; } 5127 if test "$supported" = "yes" ; then 5128 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5129 found="yes" 5130 fi 5131 fi 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147xorg_testset_save_CFLAGS="$CFLAGS" 5148 5149if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5150 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5152$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5153if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5154 $as_echo_n "(cached) " >&6 5155else 5156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5157/* end confdefs.h. */ 5158int i; 5159_ACEOF 5160if ac_fn_c_try_compile "$LINENO"; then : 5161 xorg_cv_cc_flag_unknown_warning_option=yes 5162else 5163 xorg_cv_cc_flag_unknown_warning_option=no 5164fi 5165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5166fi 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5168$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5169 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5170 CFLAGS="$xorg_testset_save_CFLAGS" 5171fi 5172 5173if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5174 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5175 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5176 fi 5177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5179$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5180if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5181 $as_echo_n "(cached) " >&6 5182else 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5184/* end confdefs.h. */ 5185int i; 5186_ACEOF 5187if ac_fn_c_try_compile "$LINENO"; then : 5188 xorg_cv_cc_flag_unused_command_line_argument=yes 5189else 5190 xorg_cv_cc_flag_unused_command_line_argument=no 5191fi 5192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5193fi 5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5195$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5197 CFLAGS="$xorg_testset_save_CFLAGS" 5198fi 5199 5200found="no" 5201 5202 if test $found = "no" ; then 5203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5204 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5205 fi 5206 5207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5209 fi 5210 5211 CFLAGS="$CFLAGS -Wmissing-declarations" 5212 5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5214$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5215 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5216 if eval \${$cacheid+:} false; then : 5217 $as_echo_n "(cached) " >&6 5218else 5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5220/* end confdefs.h. */ 5221int i; 5222int 5223main () 5224{ 5225 5226 ; 5227 return 0; 5228} 5229_ACEOF 5230if ac_fn_c_try_link "$LINENO"; then : 5231 eval $cacheid=yes 5232else 5233 eval $cacheid=no 5234fi 5235rm -f core conftest.err conftest.$ac_objext \ 5236 conftest$ac_exeext conftest.$ac_ext 5237fi 5238 5239 5240 CFLAGS="$xorg_testset_save_CFLAGS" 5241 5242 eval supported=\$$cacheid 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5244$as_echo "$supported" >&6; } 5245 if test "$supported" = "yes" ; then 5246 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5247 found="yes" 5248 fi 5249 fi 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265xorg_testset_save_CFLAGS="$CFLAGS" 5266 5267if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5270$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5271if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5272 $as_echo_n "(cached) " >&6 5273else 5274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5275/* end confdefs.h. */ 5276int i; 5277_ACEOF 5278if ac_fn_c_try_compile "$LINENO"; then : 5279 xorg_cv_cc_flag_unknown_warning_option=yes 5280else 5281 xorg_cv_cc_flag_unknown_warning_option=no 5282fi 5283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5284fi 5285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5286$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5287 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5288 CFLAGS="$xorg_testset_save_CFLAGS" 5289fi 5290 5291if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5293 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5294 fi 5295 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5297$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5298if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5299 $as_echo_n "(cached) " >&6 5300else 5301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5302/* end confdefs.h. */ 5303int i; 5304_ACEOF 5305if ac_fn_c_try_compile "$LINENO"; then : 5306 xorg_cv_cc_flag_unused_command_line_argument=yes 5307else 5308 xorg_cv_cc_flag_unused_command_line_argument=no 5309fi 5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5311fi 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5313$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5315 CFLAGS="$xorg_testset_save_CFLAGS" 5316fi 5317 5318found="no" 5319 5320 if test $found = "no" ; then 5321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5322 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5323 fi 5324 5325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5327 fi 5328 5329 CFLAGS="$CFLAGS -Wformat=2" 5330 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5332$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5333 cacheid=xorg_cv_cc_flag__Wformat_2 5334 if eval \${$cacheid+:} false; then : 5335 $as_echo_n "(cached) " >&6 5336else 5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5338/* end confdefs.h. */ 5339int i; 5340int 5341main () 5342{ 5343 5344 ; 5345 return 0; 5346} 5347_ACEOF 5348if ac_fn_c_try_link "$LINENO"; then : 5349 eval $cacheid=yes 5350else 5351 eval $cacheid=no 5352fi 5353rm -f core conftest.err conftest.$ac_objext \ 5354 conftest$ac_exeext conftest.$ac_ext 5355fi 5356 5357 5358 CFLAGS="$xorg_testset_save_CFLAGS" 5359 5360 eval supported=\$$cacheid 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5362$as_echo "$supported" >&6; } 5363 if test "$supported" = "yes" ; then 5364 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5365 found="yes" 5366 fi 5367 fi 5368 5369 if test $found = "no" ; then 5370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5371 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5372 fi 5373 5374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5376 fi 5377 5378 CFLAGS="$CFLAGS -Wformat" 5379 5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5381$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5382 cacheid=xorg_cv_cc_flag__Wformat 5383 if eval \${$cacheid+:} false; then : 5384 $as_echo_n "(cached) " >&6 5385else 5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5387/* end confdefs.h. */ 5388int i; 5389int 5390main () 5391{ 5392 5393 ; 5394 return 0; 5395} 5396_ACEOF 5397if ac_fn_c_try_link "$LINENO"; then : 5398 eval $cacheid=yes 5399else 5400 eval $cacheid=no 5401fi 5402rm -f core conftest.err conftest.$ac_objext \ 5403 conftest$ac_exeext conftest.$ac_ext 5404fi 5405 5406 5407 CFLAGS="$xorg_testset_save_CFLAGS" 5408 5409 eval supported=\$$cacheid 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5411$as_echo "$supported" >&6; } 5412 if test "$supported" = "yes" ; then 5413 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5414 found="yes" 5415 fi 5416 fi 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434xorg_testset_save_CFLAGS="$CFLAGS" 5435 5436if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5437 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5439$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5440if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5441 $as_echo_n "(cached) " >&6 5442else 5443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5444/* end confdefs.h. */ 5445int i; 5446_ACEOF 5447if ac_fn_c_try_compile "$LINENO"; then : 5448 xorg_cv_cc_flag_unknown_warning_option=yes 5449else 5450 xorg_cv_cc_flag_unknown_warning_option=no 5451fi 5452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5453fi 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5455$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5457 CFLAGS="$xorg_testset_save_CFLAGS" 5458fi 5459 5460if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5463 fi 5464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5466$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5467if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5468 $as_echo_n "(cached) " >&6 5469else 5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5471/* end confdefs.h. */ 5472int i; 5473_ACEOF 5474if ac_fn_c_try_compile "$LINENO"; then : 5475 xorg_cv_cc_flag_unused_command_line_argument=yes 5476else 5477 xorg_cv_cc_flag_unused_command_line_argument=no 5478fi 5479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5480fi 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5482$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5484 CFLAGS="$xorg_testset_save_CFLAGS" 5485fi 5486 5487found="no" 5488 5489 if test $found = "no" ; then 5490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5492 fi 5493 5494 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5496 fi 5497 5498 CFLAGS="$CFLAGS -Wstrict-prototypes" 5499 5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5501$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5502 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5503 if eval \${$cacheid+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5507/* end confdefs.h. */ 5508int i; 5509int 5510main () 5511{ 5512 5513 ; 5514 return 0; 5515} 5516_ACEOF 5517if ac_fn_c_try_link "$LINENO"; then : 5518 eval $cacheid=yes 5519else 5520 eval $cacheid=no 5521fi 5522rm -f core conftest.err conftest.$ac_objext \ 5523 conftest$ac_exeext conftest.$ac_ext 5524fi 5525 5526 5527 CFLAGS="$xorg_testset_save_CFLAGS" 5528 5529 eval supported=\$$cacheid 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5531$as_echo "$supported" >&6; } 5532 if test "$supported" = "yes" ; then 5533 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5534 found="yes" 5535 fi 5536 fi 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552xorg_testset_save_CFLAGS="$CFLAGS" 5553 5554if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5555 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5557$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5558if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560else 5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5562/* end confdefs.h. */ 5563int i; 5564_ACEOF 5565if ac_fn_c_try_compile "$LINENO"; then : 5566 xorg_cv_cc_flag_unknown_warning_option=yes 5567else 5568 xorg_cv_cc_flag_unknown_warning_option=no 5569fi 5570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5571fi 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5573$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5575 CFLAGS="$xorg_testset_save_CFLAGS" 5576fi 5577 5578if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5581 fi 5582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5584$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5585if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5586 $as_echo_n "(cached) " >&6 5587else 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590int i; 5591_ACEOF 5592if ac_fn_c_try_compile "$LINENO"; then : 5593 xorg_cv_cc_flag_unused_command_line_argument=yes 5594else 5595 xorg_cv_cc_flag_unused_command_line_argument=no 5596fi 5597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5598fi 5599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5600$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5602 CFLAGS="$xorg_testset_save_CFLAGS" 5603fi 5604 5605found="no" 5606 5607 if test $found = "no" ; then 5608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5610 fi 5611 5612 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5614 fi 5615 5616 CFLAGS="$CFLAGS -Wmissing-prototypes" 5617 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5619$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5620 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5621 if eval \${$cacheid+:} false; then : 5622 $as_echo_n "(cached) " >&6 5623else 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626int i; 5627int 5628main () 5629{ 5630 5631 ; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_c_try_link "$LINENO"; then : 5636 eval $cacheid=yes 5637else 5638 eval $cacheid=no 5639fi 5640rm -f core conftest.err conftest.$ac_objext \ 5641 conftest$ac_exeext conftest.$ac_ext 5642fi 5643 5644 5645 CFLAGS="$xorg_testset_save_CFLAGS" 5646 5647 eval supported=\$$cacheid 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5649$as_echo "$supported" >&6; } 5650 if test "$supported" = "yes" ; then 5651 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5652 found="yes" 5653 fi 5654 fi 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670xorg_testset_save_CFLAGS="$CFLAGS" 5671 5672if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5673 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5675$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5676if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5677 $as_echo_n "(cached) " >&6 5678else 5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5680/* end confdefs.h. */ 5681int i; 5682_ACEOF 5683if ac_fn_c_try_compile "$LINENO"; then : 5684 xorg_cv_cc_flag_unknown_warning_option=yes 5685else 5686 xorg_cv_cc_flag_unknown_warning_option=no 5687fi 5688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5689fi 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5691$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5693 CFLAGS="$xorg_testset_save_CFLAGS" 5694fi 5695 5696if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5699 fi 5700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5702$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5703if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5707/* end confdefs.h. */ 5708int i; 5709_ACEOF 5710if ac_fn_c_try_compile "$LINENO"; then : 5711 xorg_cv_cc_flag_unused_command_line_argument=yes 5712else 5713 xorg_cv_cc_flag_unused_command_line_argument=no 5714fi 5715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5716fi 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5718$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5720 CFLAGS="$xorg_testset_save_CFLAGS" 5721fi 5722 5723found="no" 5724 5725 if test $found = "no" ; then 5726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5728 fi 5729 5730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5732 fi 5733 5734 CFLAGS="$CFLAGS -Wnested-externs" 5735 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5737$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5738 cacheid=xorg_cv_cc_flag__Wnested_externs 5739 if eval \${$cacheid+:} false; then : 5740 $as_echo_n "(cached) " >&6 5741else 5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5743/* end confdefs.h. */ 5744int i; 5745int 5746main () 5747{ 5748 5749 ; 5750 return 0; 5751} 5752_ACEOF 5753if ac_fn_c_try_link "$LINENO"; then : 5754 eval $cacheid=yes 5755else 5756 eval $cacheid=no 5757fi 5758rm -f core conftest.err conftest.$ac_objext \ 5759 conftest$ac_exeext conftest.$ac_ext 5760fi 5761 5762 5763 CFLAGS="$xorg_testset_save_CFLAGS" 5764 5765 eval supported=\$$cacheid 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5767$as_echo "$supported" >&6; } 5768 if test "$supported" = "yes" ; then 5769 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5770 found="yes" 5771 fi 5772 fi 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788xorg_testset_save_CFLAGS="$CFLAGS" 5789 5790if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5793$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5794if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5795 $as_echo_n "(cached) " >&6 5796else 5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5798/* end confdefs.h. */ 5799int i; 5800_ACEOF 5801if ac_fn_c_try_compile "$LINENO"; then : 5802 xorg_cv_cc_flag_unknown_warning_option=yes 5803else 5804 xorg_cv_cc_flag_unknown_warning_option=no 5805fi 5806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5807fi 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5809$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5810 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5811 CFLAGS="$xorg_testset_save_CFLAGS" 5812fi 5813 5814if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5817 fi 5818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5820$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5821if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5822 $as_echo_n "(cached) " >&6 5823else 5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5825/* end confdefs.h. */ 5826int i; 5827_ACEOF 5828if ac_fn_c_try_compile "$LINENO"; then : 5829 xorg_cv_cc_flag_unused_command_line_argument=yes 5830else 5831 xorg_cv_cc_flag_unused_command_line_argument=no 5832fi 5833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5834fi 5835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5836$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5838 CFLAGS="$xorg_testset_save_CFLAGS" 5839fi 5840 5841found="no" 5842 5843 if test $found = "no" ; then 5844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5845 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5846 fi 5847 5848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5850 fi 5851 5852 CFLAGS="$CFLAGS -Wbad-function-cast" 5853 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5855$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5856 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5857 if eval \${$cacheid+:} false; then : 5858 $as_echo_n "(cached) " >&6 5859else 5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5861/* end confdefs.h. */ 5862int i; 5863int 5864main () 5865{ 5866 5867 ; 5868 return 0; 5869} 5870_ACEOF 5871if ac_fn_c_try_link "$LINENO"; then : 5872 eval $cacheid=yes 5873else 5874 eval $cacheid=no 5875fi 5876rm -f core conftest.err conftest.$ac_objext \ 5877 conftest$ac_exeext conftest.$ac_ext 5878fi 5879 5880 5881 CFLAGS="$xorg_testset_save_CFLAGS" 5882 5883 eval supported=\$$cacheid 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5885$as_echo "$supported" >&6; } 5886 if test "$supported" = "yes" ; then 5887 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5888 found="yes" 5889 fi 5890 fi 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906xorg_testset_save_CFLAGS="$CFLAGS" 5907 5908if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5911$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5912if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5913 $as_echo_n "(cached) " >&6 5914else 5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5916/* end confdefs.h. */ 5917int i; 5918_ACEOF 5919if ac_fn_c_try_compile "$LINENO"; then : 5920 xorg_cv_cc_flag_unknown_warning_option=yes 5921else 5922 xorg_cv_cc_flag_unknown_warning_option=no 5923fi 5924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5925fi 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5927$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5928 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5929 CFLAGS="$xorg_testset_save_CFLAGS" 5930fi 5931 5932if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5935 fi 5936 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5938$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5939if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5940 $as_echo_n "(cached) " >&6 5941else 5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5943/* end confdefs.h. */ 5944int i; 5945_ACEOF 5946if ac_fn_c_try_compile "$LINENO"; then : 5947 xorg_cv_cc_flag_unused_command_line_argument=yes 5948else 5949 xorg_cv_cc_flag_unused_command_line_argument=no 5950fi 5951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5952fi 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5954$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5955 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5956 CFLAGS="$xorg_testset_save_CFLAGS" 5957fi 5958 5959found="no" 5960 5961 if test $found = "no" ; then 5962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5963 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5964 fi 5965 5966 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5967 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5968 fi 5969 5970 CFLAGS="$CFLAGS -Wold-style-definition" 5971 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5973$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5974 cacheid=xorg_cv_cc_flag__Wold_style_definition 5975 if eval \${$cacheid+:} false; then : 5976 $as_echo_n "(cached) " >&6 5977else 5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5979/* end confdefs.h. */ 5980int i; 5981int 5982main () 5983{ 5984 5985 ; 5986 return 0; 5987} 5988_ACEOF 5989if ac_fn_c_try_link "$LINENO"; then : 5990 eval $cacheid=yes 5991else 5992 eval $cacheid=no 5993fi 5994rm -f core conftest.err conftest.$ac_objext \ 5995 conftest$ac_exeext conftest.$ac_ext 5996fi 5997 5998 5999 CFLAGS="$xorg_testset_save_CFLAGS" 6000 6001 eval supported=\$$cacheid 6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6003$as_echo "$supported" >&6; } 6004 if test "$supported" = "yes" ; then 6005 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 6006 found="yes" 6007 fi 6008 fi 6009 6010 if test $found = "no" ; then 6011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6013 fi 6014 6015 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6017 fi 6018 6019 CFLAGS="$CFLAGS -fd" 6020 6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 6022$as_echo_n "checking if $CC supports -fd... " >&6; } 6023 cacheid=xorg_cv_cc_flag__fd 6024 if eval \${$cacheid+:} false; then : 6025 $as_echo_n "(cached) " >&6 6026else 6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6028/* end confdefs.h. */ 6029int i; 6030int 6031main () 6032{ 6033 6034 ; 6035 return 0; 6036} 6037_ACEOF 6038if ac_fn_c_try_link "$LINENO"; then : 6039 eval $cacheid=yes 6040else 6041 eval $cacheid=no 6042fi 6043rm -f core conftest.err conftest.$ac_objext \ 6044 conftest$ac_exeext conftest.$ac_ext 6045fi 6046 6047 6048 CFLAGS="$xorg_testset_save_CFLAGS" 6049 6050 eval supported=\$$cacheid 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6052$as_echo "$supported" >&6; } 6053 if test "$supported" = "yes" ; then 6054 BASE_CFLAGS="$BASE_CFLAGS -fd" 6055 found="yes" 6056 fi 6057 fi 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073xorg_testset_save_CFLAGS="$CFLAGS" 6074 6075if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6078$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6079if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081else 6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6083/* end confdefs.h. */ 6084int i; 6085_ACEOF 6086if ac_fn_c_try_compile "$LINENO"; then : 6087 xorg_cv_cc_flag_unknown_warning_option=yes 6088else 6089 xorg_cv_cc_flag_unknown_warning_option=no 6090fi 6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6092fi 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6094$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6096 CFLAGS="$xorg_testset_save_CFLAGS" 6097fi 6098 6099if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6102 fi 6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6105$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6106if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6107 $as_echo_n "(cached) " >&6 6108else 6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6110/* end confdefs.h. */ 6111int i; 6112_ACEOF 6113if ac_fn_c_try_compile "$LINENO"; then : 6114 xorg_cv_cc_flag_unused_command_line_argument=yes 6115else 6116 xorg_cv_cc_flag_unused_command_line_argument=no 6117fi 6118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6119fi 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6121$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6123 CFLAGS="$xorg_testset_save_CFLAGS" 6124fi 6125 6126found="no" 6127 6128 if test $found = "no" ; then 6129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6131 fi 6132 6133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6135 fi 6136 6137 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6138 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6140$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6141 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6142 if eval \${$cacheid+:} false; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6146/* end confdefs.h. */ 6147int i; 6148int 6149main () 6150{ 6151 6152 ; 6153 return 0; 6154} 6155_ACEOF 6156if ac_fn_c_try_link "$LINENO"; then : 6157 eval $cacheid=yes 6158else 6159 eval $cacheid=no 6160fi 6161rm -f core conftest.err conftest.$ac_objext \ 6162 conftest$ac_exeext conftest.$ac_ext 6163fi 6164 6165 6166 CFLAGS="$xorg_testset_save_CFLAGS" 6167 6168 eval supported=\$$cacheid 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6170$as_echo "$supported" >&6; } 6171 if test "$supported" = "yes" ; then 6172 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6173 found="yes" 6174 fi 6175 fi 6176 6177 6178 6179 6180 6181# This chunk adds additional warnings that could catch undesired effects. 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195xorg_testset_save_CFLAGS="$CFLAGS" 6196 6197if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6198 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6200$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6201if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6202 $as_echo_n "(cached) " >&6 6203else 6204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6205/* end confdefs.h. */ 6206int i; 6207_ACEOF 6208if ac_fn_c_try_compile "$LINENO"; then : 6209 xorg_cv_cc_flag_unknown_warning_option=yes 6210else 6211 xorg_cv_cc_flag_unknown_warning_option=no 6212fi 6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6214fi 6215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6216$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6218 CFLAGS="$xorg_testset_save_CFLAGS" 6219fi 6220 6221if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6224 fi 6225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6227$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6228if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230else 6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232/* end confdefs.h. */ 6233int i; 6234_ACEOF 6235if ac_fn_c_try_compile "$LINENO"; then : 6236 xorg_cv_cc_flag_unused_command_line_argument=yes 6237else 6238 xorg_cv_cc_flag_unused_command_line_argument=no 6239fi 6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6241fi 6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6243$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6244 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6245 CFLAGS="$xorg_testset_save_CFLAGS" 6246fi 6247 6248found="no" 6249 6250 if test $found = "no" ; then 6251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6253 fi 6254 6255 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6257 fi 6258 6259 CFLAGS="$CFLAGS -Wunused" 6260 6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6262$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6263 cacheid=xorg_cv_cc_flag__Wunused 6264 if eval \${$cacheid+:} false; then : 6265 $as_echo_n "(cached) " >&6 6266else 6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6268/* end confdefs.h. */ 6269int i; 6270int 6271main () 6272{ 6273 6274 ; 6275 return 0; 6276} 6277_ACEOF 6278if ac_fn_c_try_link "$LINENO"; then : 6279 eval $cacheid=yes 6280else 6281 eval $cacheid=no 6282fi 6283rm -f core conftest.err conftest.$ac_objext \ 6284 conftest$ac_exeext conftest.$ac_ext 6285fi 6286 6287 6288 CFLAGS="$xorg_testset_save_CFLAGS" 6289 6290 eval supported=\$$cacheid 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6292$as_echo "$supported" >&6; } 6293 if test "$supported" = "yes" ; then 6294 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6295 found="yes" 6296 fi 6297 fi 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313xorg_testset_save_CFLAGS="$CFLAGS" 6314 6315if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6316 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6318$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6319if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6320 $as_echo_n "(cached) " >&6 6321else 6322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6323/* end confdefs.h. */ 6324int i; 6325_ACEOF 6326if ac_fn_c_try_compile "$LINENO"; then : 6327 xorg_cv_cc_flag_unknown_warning_option=yes 6328else 6329 xorg_cv_cc_flag_unknown_warning_option=no 6330fi 6331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6332fi 6333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6334$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6336 CFLAGS="$xorg_testset_save_CFLAGS" 6337fi 6338 6339if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6342 fi 6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6345$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6346if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6350/* end confdefs.h. */ 6351int i; 6352_ACEOF 6353if ac_fn_c_try_compile "$LINENO"; then : 6354 xorg_cv_cc_flag_unused_command_line_argument=yes 6355else 6356 xorg_cv_cc_flag_unused_command_line_argument=no 6357fi 6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6359fi 6360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6361$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6363 CFLAGS="$xorg_testset_save_CFLAGS" 6364fi 6365 6366found="no" 6367 6368 if test $found = "no" ; then 6369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6370 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6371 fi 6372 6373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6375 fi 6376 6377 CFLAGS="$CFLAGS -Wuninitialized" 6378 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6380$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6381 cacheid=xorg_cv_cc_flag__Wuninitialized 6382 if eval \${$cacheid+:} false; then : 6383 $as_echo_n "(cached) " >&6 6384else 6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6386/* end confdefs.h. */ 6387int i; 6388int 6389main () 6390{ 6391 6392 ; 6393 return 0; 6394} 6395_ACEOF 6396if ac_fn_c_try_link "$LINENO"; then : 6397 eval $cacheid=yes 6398else 6399 eval $cacheid=no 6400fi 6401rm -f core conftest.err conftest.$ac_objext \ 6402 conftest$ac_exeext conftest.$ac_ext 6403fi 6404 6405 6406 CFLAGS="$xorg_testset_save_CFLAGS" 6407 6408 eval supported=\$$cacheid 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6410$as_echo "$supported" >&6; } 6411 if test "$supported" = "yes" ; then 6412 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6413 found="yes" 6414 fi 6415 fi 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431xorg_testset_save_CFLAGS="$CFLAGS" 6432 6433if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6434 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6436$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6437if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6438 $as_echo_n "(cached) " >&6 6439else 6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6441/* end confdefs.h. */ 6442int i; 6443_ACEOF 6444if ac_fn_c_try_compile "$LINENO"; then : 6445 xorg_cv_cc_flag_unknown_warning_option=yes 6446else 6447 xorg_cv_cc_flag_unknown_warning_option=no 6448fi 6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6450fi 6451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6452$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6454 CFLAGS="$xorg_testset_save_CFLAGS" 6455fi 6456 6457if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6460 fi 6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6463$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6464if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6465 $as_echo_n "(cached) " >&6 6466else 6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6468/* end confdefs.h. */ 6469int i; 6470_ACEOF 6471if ac_fn_c_try_compile "$LINENO"; then : 6472 xorg_cv_cc_flag_unused_command_line_argument=yes 6473else 6474 xorg_cv_cc_flag_unused_command_line_argument=no 6475fi 6476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6477fi 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6479$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6480 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6481 CFLAGS="$xorg_testset_save_CFLAGS" 6482fi 6483 6484found="no" 6485 6486 if test $found = "no" ; then 6487 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6488 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6489 fi 6490 6491 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6493 fi 6494 6495 CFLAGS="$CFLAGS -Wshadow" 6496 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6498$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6499 cacheid=xorg_cv_cc_flag__Wshadow 6500 if eval \${$cacheid+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6504/* end confdefs.h. */ 6505int i; 6506int 6507main () 6508{ 6509 6510 ; 6511 return 0; 6512} 6513_ACEOF 6514if ac_fn_c_try_link "$LINENO"; then : 6515 eval $cacheid=yes 6516else 6517 eval $cacheid=no 6518fi 6519rm -f core conftest.err conftest.$ac_objext \ 6520 conftest$ac_exeext conftest.$ac_ext 6521fi 6522 6523 6524 CFLAGS="$xorg_testset_save_CFLAGS" 6525 6526 eval supported=\$$cacheid 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6528$as_echo "$supported" >&6; } 6529 if test "$supported" = "yes" ; then 6530 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6531 found="yes" 6532 fi 6533 fi 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549xorg_testset_save_CFLAGS="$CFLAGS" 6550 6551if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6552 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6554$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6555if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6556 $as_echo_n "(cached) " >&6 6557else 6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560int i; 6561_ACEOF 6562if ac_fn_c_try_compile "$LINENO"; then : 6563 xorg_cv_cc_flag_unknown_warning_option=yes 6564else 6565 xorg_cv_cc_flag_unknown_warning_option=no 6566fi 6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6568fi 6569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6570$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6572 CFLAGS="$xorg_testset_save_CFLAGS" 6573fi 6574 6575if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6577 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6578 fi 6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6581$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6582if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6583 $as_echo_n "(cached) " >&6 6584else 6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6586/* end confdefs.h. */ 6587int i; 6588_ACEOF 6589if ac_fn_c_try_compile "$LINENO"; then : 6590 xorg_cv_cc_flag_unused_command_line_argument=yes 6591else 6592 xorg_cv_cc_flag_unused_command_line_argument=no 6593fi 6594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6597$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6599 CFLAGS="$xorg_testset_save_CFLAGS" 6600fi 6601 6602found="no" 6603 6604 if test $found = "no" ; then 6605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6607 fi 6608 6609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6611 fi 6612 6613 CFLAGS="$CFLAGS -Wmissing-noreturn" 6614 6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6616$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6617 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6618 if eval \${$cacheid+:} false; then : 6619 $as_echo_n "(cached) " >&6 6620else 6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6622/* end confdefs.h. */ 6623int i; 6624int 6625main () 6626{ 6627 6628 ; 6629 return 0; 6630} 6631_ACEOF 6632if ac_fn_c_try_link "$LINENO"; then : 6633 eval $cacheid=yes 6634else 6635 eval $cacheid=no 6636fi 6637rm -f core conftest.err conftest.$ac_objext \ 6638 conftest$ac_exeext conftest.$ac_ext 6639fi 6640 6641 6642 CFLAGS="$xorg_testset_save_CFLAGS" 6643 6644 eval supported=\$$cacheid 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6646$as_echo "$supported" >&6; } 6647 if test "$supported" = "yes" ; then 6648 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6649 found="yes" 6650 fi 6651 fi 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667xorg_testset_save_CFLAGS="$CFLAGS" 6668 6669if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6670 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6672$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6673if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6677/* end confdefs.h. */ 6678int i; 6679_ACEOF 6680if ac_fn_c_try_compile "$LINENO"; then : 6681 xorg_cv_cc_flag_unknown_warning_option=yes 6682else 6683 xorg_cv_cc_flag_unknown_warning_option=no 6684fi 6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6686fi 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6688$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6690 CFLAGS="$xorg_testset_save_CFLAGS" 6691fi 6692 6693if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6695 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6696 fi 6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6699$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6700if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6701 $as_echo_n "(cached) " >&6 6702else 6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6704/* end confdefs.h. */ 6705int i; 6706_ACEOF 6707if ac_fn_c_try_compile "$LINENO"; then : 6708 xorg_cv_cc_flag_unused_command_line_argument=yes 6709else 6710 xorg_cv_cc_flag_unused_command_line_argument=no 6711fi 6712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6713fi 6714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6715$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6717 CFLAGS="$xorg_testset_save_CFLAGS" 6718fi 6719 6720found="no" 6721 6722 if test $found = "no" ; then 6723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6724 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6725 fi 6726 6727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6729 fi 6730 6731 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6732 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6734$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6735 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6736 if eval \${$cacheid+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6740/* end confdefs.h. */ 6741int i; 6742int 6743main () 6744{ 6745 6746 ; 6747 return 0; 6748} 6749_ACEOF 6750if ac_fn_c_try_link "$LINENO"; then : 6751 eval $cacheid=yes 6752else 6753 eval $cacheid=no 6754fi 6755rm -f core conftest.err conftest.$ac_objext \ 6756 conftest$ac_exeext conftest.$ac_ext 6757fi 6758 6759 6760 CFLAGS="$xorg_testset_save_CFLAGS" 6761 6762 eval supported=\$$cacheid 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6764$as_echo "$supported" >&6; } 6765 if test "$supported" = "yes" ; then 6766 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6767 found="yes" 6768 fi 6769 fi 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785xorg_testset_save_CFLAGS="$CFLAGS" 6786 6787if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6788 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6790$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6791if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6792 $as_echo_n "(cached) " >&6 6793else 6794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6795/* end confdefs.h. */ 6796int i; 6797_ACEOF 6798if ac_fn_c_try_compile "$LINENO"; then : 6799 xorg_cv_cc_flag_unknown_warning_option=yes 6800else 6801 xorg_cv_cc_flag_unknown_warning_option=no 6802fi 6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6804fi 6805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6806$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6807 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6808 CFLAGS="$xorg_testset_save_CFLAGS" 6809fi 6810 6811if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6813 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6814 fi 6815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6817$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6818if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6819 $as_echo_n "(cached) " >&6 6820else 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822/* end confdefs.h. */ 6823int i; 6824_ACEOF 6825if ac_fn_c_try_compile "$LINENO"; then : 6826 xorg_cv_cc_flag_unused_command_line_argument=yes 6827else 6828 xorg_cv_cc_flag_unused_command_line_argument=no 6829fi 6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6831fi 6832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6833$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6835 CFLAGS="$xorg_testset_save_CFLAGS" 6836fi 6837 6838found="no" 6839 6840 if test $found = "no" ; then 6841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6843 fi 6844 6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6847 fi 6848 6849 CFLAGS="$CFLAGS -Wredundant-decls" 6850 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6852$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6853 cacheid=xorg_cv_cc_flag__Wredundant_decls 6854 if eval \${$cacheid+:} false; then : 6855 $as_echo_n "(cached) " >&6 6856else 6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6858/* end confdefs.h. */ 6859int i; 6860int 6861main () 6862{ 6863 6864 ; 6865 return 0; 6866} 6867_ACEOF 6868if ac_fn_c_try_link "$LINENO"; then : 6869 eval $cacheid=yes 6870else 6871 eval $cacheid=no 6872fi 6873rm -f core conftest.err conftest.$ac_objext \ 6874 conftest$ac_exeext conftest.$ac_ext 6875fi 6876 6877 6878 CFLAGS="$xorg_testset_save_CFLAGS" 6879 6880 eval supported=\$$cacheid 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6882$as_echo "$supported" >&6; } 6883 if test "$supported" = "yes" ; then 6884 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6885 found="yes" 6886 fi 6887 fi 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903xorg_testset_save_CFLAGS="$CFLAGS" 6904 6905if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6908$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6909if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911else 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914int i; 6915_ACEOF 6916if ac_fn_c_try_compile "$LINENO"; then : 6917 xorg_cv_cc_flag_unknown_warning_option=yes 6918else 6919 xorg_cv_cc_flag_unknown_warning_option=no 6920fi 6921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6922fi 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6924$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6925 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6926 CFLAGS="$xorg_testset_save_CFLAGS" 6927fi 6928 6929if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6932 fi 6933 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6935$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6936if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6937 $as_echo_n "(cached) " >&6 6938else 6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6940/* end confdefs.h. */ 6941int i; 6942_ACEOF 6943if ac_fn_c_try_compile "$LINENO"; then : 6944 xorg_cv_cc_flag_unused_command_line_argument=yes 6945else 6946 xorg_cv_cc_flag_unused_command_line_argument=no 6947fi 6948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6949fi 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6951$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6953 CFLAGS="$xorg_testset_save_CFLAGS" 6954fi 6955 6956found="no" 6957 6958 if test $found = "no" ; then 6959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6961 fi 6962 6963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6965 fi 6966 6967 CFLAGS="$CFLAGS -Wlogical-op" 6968 6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6970$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6971 cacheid=xorg_cv_cc_flag__Wlogical_op 6972 if eval \${$cacheid+:} false; then : 6973 $as_echo_n "(cached) " >&6 6974else 6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6976/* end confdefs.h. */ 6977int i; 6978int 6979main () 6980{ 6981 6982 ; 6983 return 0; 6984} 6985_ACEOF 6986if ac_fn_c_try_link "$LINENO"; then : 6987 eval $cacheid=yes 6988else 6989 eval $cacheid=no 6990fi 6991rm -f core conftest.err conftest.$ac_objext \ 6992 conftest$ac_exeext conftest.$ac_ext 6993fi 6994 6995 6996 CFLAGS="$xorg_testset_save_CFLAGS" 6997 6998 eval supported=\$$cacheid 6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7000$as_echo "$supported" >&6; } 7001 if test "$supported" = "yes" ; then 7002 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 7003 found="yes" 7004 fi 7005 fi 7006 7007 7008 7009# These are currently disabled because they are noisy. They will be enabled 7010# in the future once the codebase is sufficiently modernized to silence 7011# them. For now, I don't want them to drown out the other warnings. 7012# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 7013# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 7014# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 7015 7016# Turn some warnings into errors, so we don't accidently get successful builds 7017# when there are problems that should be fixed. 7018 7019if test "x$SELECTIVE_WERROR" = "xyes" ; then 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033xorg_testset_save_CFLAGS="$CFLAGS" 7034 7035if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7036 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7038$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7039if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7040 $as_echo_n "(cached) " >&6 7041else 7042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7043/* end confdefs.h. */ 7044int i; 7045_ACEOF 7046if ac_fn_c_try_compile "$LINENO"; then : 7047 xorg_cv_cc_flag_unknown_warning_option=yes 7048else 7049 xorg_cv_cc_flag_unknown_warning_option=no 7050fi 7051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7052fi 7053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7054$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7055 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7056 CFLAGS="$xorg_testset_save_CFLAGS" 7057fi 7058 7059if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7062 fi 7063 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7065$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7066if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7067 $as_echo_n "(cached) " >&6 7068else 7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7070/* end confdefs.h. */ 7071int i; 7072_ACEOF 7073if ac_fn_c_try_compile "$LINENO"; then : 7074 xorg_cv_cc_flag_unused_command_line_argument=yes 7075else 7076 xorg_cv_cc_flag_unused_command_line_argument=no 7077fi 7078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7079fi 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7081$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7083 CFLAGS="$xorg_testset_save_CFLAGS" 7084fi 7085 7086found="no" 7087 7088 if test $found = "no" ; then 7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7091 fi 7092 7093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7095 fi 7096 7097 CFLAGS="$CFLAGS -Werror=implicit" 7098 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7100$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7101 cacheid=xorg_cv_cc_flag__Werror_implicit 7102 if eval \${$cacheid+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104else 7105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7106/* end confdefs.h. */ 7107int i; 7108int 7109main () 7110{ 7111 7112 ; 7113 return 0; 7114} 7115_ACEOF 7116if ac_fn_c_try_link "$LINENO"; then : 7117 eval $cacheid=yes 7118else 7119 eval $cacheid=no 7120fi 7121rm -f core conftest.err conftest.$ac_objext \ 7122 conftest$ac_exeext conftest.$ac_ext 7123fi 7124 7125 7126 CFLAGS="$xorg_testset_save_CFLAGS" 7127 7128 eval supported=\$$cacheid 7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7130$as_echo "$supported" >&6; } 7131 if test "$supported" = "yes" ; then 7132 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7133 found="yes" 7134 fi 7135 fi 7136 7137 if test $found = "no" ; then 7138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7139 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7140 fi 7141 7142 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7143 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7144 fi 7145 7146 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7147 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7149$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7150 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7151 if eval \${$cacheid+:} false; then : 7152 $as_echo_n "(cached) " >&6 7153else 7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7155/* end confdefs.h. */ 7156int i; 7157int 7158main () 7159{ 7160 7161 ; 7162 return 0; 7163} 7164_ACEOF 7165if ac_fn_c_try_link "$LINENO"; then : 7166 eval $cacheid=yes 7167else 7168 eval $cacheid=no 7169fi 7170rm -f core conftest.err conftest.$ac_objext \ 7171 conftest$ac_exeext conftest.$ac_ext 7172fi 7173 7174 7175 CFLAGS="$xorg_testset_save_CFLAGS" 7176 7177 eval supported=\$$cacheid 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7179$as_echo "$supported" >&6; } 7180 if test "$supported" = "yes" ; then 7181 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7182 found="yes" 7183 fi 7184 fi 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200xorg_testset_save_CFLAGS="$CFLAGS" 7201 7202if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7203 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7205$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7206if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7207 $as_echo_n "(cached) " >&6 7208else 7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210/* end confdefs.h. */ 7211int i; 7212_ACEOF 7213if ac_fn_c_try_compile "$LINENO"; then : 7214 xorg_cv_cc_flag_unknown_warning_option=yes 7215else 7216 xorg_cv_cc_flag_unknown_warning_option=no 7217fi 7218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7219fi 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7221$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7222 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7223 CFLAGS="$xorg_testset_save_CFLAGS" 7224fi 7225 7226if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7228 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7229 fi 7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7232$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7233if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7234 $as_echo_n "(cached) " >&6 7235else 7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7237/* end confdefs.h. */ 7238int i; 7239_ACEOF 7240if ac_fn_c_try_compile "$LINENO"; then : 7241 xorg_cv_cc_flag_unused_command_line_argument=yes 7242else 7243 xorg_cv_cc_flag_unused_command_line_argument=no 7244fi 7245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7246fi 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7248$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7250 CFLAGS="$xorg_testset_save_CFLAGS" 7251fi 7252 7253found="no" 7254 7255 if test $found = "no" ; then 7256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7257 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7258 fi 7259 7260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7262 fi 7263 7264 CFLAGS="$CFLAGS -Werror=nonnull" 7265 7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7267$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7268 cacheid=xorg_cv_cc_flag__Werror_nonnull 7269 if eval \${$cacheid+:} false; then : 7270 $as_echo_n "(cached) " >&6 7271else 7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7273/* end confdefs.h. */ 7274int i; 7275int 7276main () 7277{ 7278 7279 ; 7280 return 0; 7281} 7282_ACEOF 7283if ac_fn_c_try_link "$LINENO"; then : 7284 eval $cacheid=yes 7285else 7286 eval $cacheid=no 7287fi 7288rm -f core conftest.err conftest.$ac_objext \ 7289 conftest$ac_exeext conftest.$ac_ext 7290fi 7291 7292 7293 CFLAGS="$xorg_testset_save_CFLAGS" 7294 7295 eval supported=\$$cacheid 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7297$as_echo "$supported" >&6; } 7298 if test "$supported" = "yes" ; then 7299 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7300 found="yes" 7301 fi 7302 fi 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318xorg_testset_save_CFLAGS="$CFLAGS" 7319 7320if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7323$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7324if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329int i; 7330_ACEOF 7331if ac_fn_c_try_compile "$LINENO"; then : 7332 xorg_cv_cc_flag_unknown_warning_option=yes 7333else 7334 xorg_cv_cc_flag_unknown_warning_option=no 7335fi 7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7337fi 7338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7339$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7340 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7341 CFLAGS="$xorg_testset_save_CFLAGS" 7342fi 7343 7344if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7346 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7347 fi 7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7350$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7351if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7352 $as_echo_n "(cached) " >&6 7353else 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7355/* end confdefs.h. */ 7356int i; 7357_ACEOF 7358if ac_fn_c_try_compile "$LINENO"; then : 7359 xorg_cv_cc_flag_unused_command_line_argument=yes 7360else 7361 xorg_cv_cc_flag_unused_command_line_argument=no 7362fi 7363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7364fi 7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7366$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7368 CFLAGS="$xorg_testset_save_CFLAGS" 7369fi 7370 7371found="no" 7372 7373 if test $found = "no" ; then 7374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7375 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7376 fi 7377 7378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7380 fi 7381 7382 CFLAGS="$CFLAGS -Werror=init-self" 7383 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7385$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7386 cacheid=xorg_cv_cc_flag__Werror_init_self 7387 if eval \${$cacheid+:} false; then : 7388 $as_echo_n "(cached) " >&6 7389else 7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7391/* end confdefs.h. */ 7392int i; 7393int 7394main () 7395{ 7396 7397 ; 7398 return 0; 7399} 7400_ACEOF 7401if ac_fn_c_try_link "$LINENO"; then : 7402 eval $cacheid=yes 7403else 7404 eval $cacheid=no 7405fi 7406rm -f core conftest.err conftest.$ac_objext \ 7407 conftest$ac_exeext conftest.$ac_ext 7408fi 7409 7410 7411 CFLAGS="$xorg_testset_save_CFLAGS" 7412 7413 eval supported=\$$cacheid 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7415$as_echo "$supported" >&6; } 7416 if test "$supported" = "yes" ; then 7417 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7418 found="yes" 7419 fi 7420 fi 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436xorg_testset_save_CFLAGS="$CFLAGS" 7437 7438if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7439 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7441$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7442if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7443 $as_echo_n "(cached) " >&6 7444else 7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7446/* end confdefs.h. */ 7447int i; 7448_ACEOF 7449if ac_fn_c_try_compile "$LINENO"; then : 7450 xorg_cv_cc_flag_unknown_warning_option=yes 7451else 7452 xorg_cv_cc_flag_unknown_warning_option=no 7453fi 7454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7455fi 7456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7457$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7458 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7459 CFLAGS="$xorg_testset_save_CFLAGS" 7460fi 7461 7462if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7464 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7465 fi 7466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7468$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7469if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7470 $as_echo_n "(cached) " >&6 7471else 7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7473/* end confdefs.h. */ 7474int i; 7475_ACEOF 7476if ac_fn_c_try_compile "$LINENO"; then : 7477 xorg_cv_cc_flag_unused_command_line_argument=yes 7478else 7479 xorg_cv_cc_flag_unused_command_line_argument=no 7480fi 7481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7482fi 7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7484$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7485 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7486 CFLAGS="$xorg_testset_save_CFLAGS" 7487fi 7488 7489found="no" 7490 7491 if test $found = "no" ; then 7492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7493 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7494 fi 7495 7496 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7498 fi 7499 7500 CFLAGS="$CFLAGS -Werror=main" 7501 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7503$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7504 cacheid=xorg_cv_cc_flag__Werror_main 7505 if eval \${$cacheid+:} false; then : 7506 $as_echo_n "(cached) " >&6 7507else 7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7509/* end confdefs.h. */ 7510int i; 7511int 7512main () 7513{ 7514 7515 ; 7516 return 0; 7517} 7518_ACEOF 7519if ac_fn_c_try_link "$LINENO"; then : 7520 eval $cacheid=yes 7521else 7522 eval $cacheid=no 7523fi 7524rm -f core conftest.err conftest.$ac_objext \ 7525 conftest$ac_exeext conftest.$ac_ext 7526fi 7527 7528 7529 CFLAGS="$xorg_testset_save_CFLAGS" 7530 7531 eval supported=\$$cacheid 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7533$as_echo "$supported" >&6; } 7534 if test "$supported" = "yes" ; then 7535 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7536 found="yes" 7537 fi 7538 fi 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554xorg_testset_save_CFLAGS="$CFLAGS" 7555 7556if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7557 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7559$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7560if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7561 $as_echo_n "(cached) " >&6 7562else 7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564/* end confdefs.h. */ 7565int i; 7566_ACEOF 7567if ac_fn_c_try_compile "$LINENO"; then : 7568 xorg_cv_cc_flag_unknown_warning_option=yes 7569else 7570 xorg_cv_cc_flag_unknown_warning_option=no 7571fi 7572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7573fi 7574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7575$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7577 CFLAGS="$xorg_testset_save_CFLAGS" 7578fi 7579 7580if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7582 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7583 fi 7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7586$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7587if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7588 $as_echo_n "(cached) " >&6 7589else 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592int i; 7593_ACEOF 7594if ac_fn_c_try_compile "$LINENO"; then : 7595 xorg_cv_cc_flag_unused_command_line_argument=yes 7596else 7597 xorg_cv_cc_flag_unused_command_line_argument=no 7598fi 7599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7600fi 7601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7602$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7603 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7604 CFLAGS="$xorg_testset_save_CFLAGS" 7605fi 7606 7607found="no" 7608 7609 if test $found = "no" ; then 7610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7611 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7612 fi 7613 7614 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7616 fi 7617 7618 CFLAGS="$CFLAGS -Werror=missing-braces" 7619 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7621$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7622 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7623 if eval \${$cacheid+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625else 7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7627/* end confdefs.h. */ 7628int i; 7629int 7630main () 7631{ 7632 7633 ; 7634 return 0; 7635} 7636_ACEOF 7637if ac_fn_c_try_link "$LINENO"; then : 7638 eval $cacheid=yes 7639else 7640 eval $cacheid=no 7641fi 7642rm -f core conftest.err conftest.$ac_objext \ 7643 conftest$ac_exeext conftest.$ac_ext 7644fi 7645 7646 7647 CFLAGS="$xorg_testset_save_CFLAGS" 7648 7649 eval supported=\$$cacheid 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7651$as_echo "$supported" >&6; } 7652 if test "$supported" = "yes" ; then 7653 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7654 found="yes" 7655 fi 7656 fi 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672xorg_testset_save_CFLAGS="$CFLAGS" 7673 7674if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7677$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7678if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7679 $as_echo_n "(cached) " >&6 7680else 7681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7682/* end confdefs.h. */ 7683int i; 7684_ACEOF 7685if ac_fn_c_try_compile "$LINENO"; then : 7686 xorg_cv_cc_flag_unknown_warning_option=yes 7687else 7688 xorg_cv_cc_flag_unknown_warning_option=no 7689fi 7690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7691fi 7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7693$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7695 CFLAGS="$xorg_testset_save_CFLAGS" 7696fi 7697 7698if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7700 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7701 fi 7702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7704$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7705if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7706 $as_echo_n "(cached) " >&6 7707else 7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7709/* end confdefs.h. */ 7710int i; 7711_ACEOF 7712if ac_fn_c_try_compile "$LINENO"; then : 7713 xorg_cv_cc_flag_unused_command_line_argument=yes 7714else 7715 xorg_cv_cc_flag_unused_command_line_argument=no 7716fi 7717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7718fi 7719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7720$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7722 CFLAGS="$xorg_testset_save_CFLAGS" 7723fi 7724 7725found="no" 7726 7727 if test $found = "no" ; then 7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7730 fi 7731 7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7734 fi 7735 7736 CFLAGS="$CFLAGS -Werror=sequence-point" 7737 7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7739$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7740 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7741 if eval \${$cacheid+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7745/* end confdefs.h. */ 7746int i; 7747int 7748main () 7749{ 7750 7751 ; 7752 return 0; 7753} 7754_ACEOF 7755if ac_fn_c_try_link "$LINENO"; then : 7756 eval $cacheid=yes 7757else 7758 eval $cacheid=no 7759fi 7760rm -f core conftest.err conftest.$ac_objext \ 7761 conftest$ac_exeext conftest.$ac_ext 7762fi 7763 7764 7765 CFLAGS="$xorg_testset_save_CFLAGS" 7766 7767 eval supported=\$$cacheid 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7769$as_echo "$supported" >&6; } 7770 if test "$supported" = "yes" ; then 7771 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7772 found="yes" 7773 fi 7774 fi 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790xorg_testset_save_CFLAGS="$CFLAGS" 7791 7792if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7795$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7796if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7797 $as_echo_n "(cached) " >&6 7798else 7799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801int i; 7802_ACEOF 7803if ac_fn_c_try_compile "$LINENO"; then : 7804 xorg_cv_cc_flag_unknown_warning_option=yes 7805else 7806 xorg_cv_cc_flag_unknown_warning_option=no 7807fi 7808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7809fi 7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7811$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7813 CFLAGS="$xorg_testset_save_CFLAGS" 7814fi 7815 7816if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7818 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7819 fi 7820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7822$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7823if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825else 7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7827/* end confdefs.h. */ 7828int i; 7829_ACEOF 7830if ac_fn_c_try_compile "$LINENO"; then : 7831 xorg_cv_cc_flag_unused_command_line_argument=yes 7832else 7833 xorg_cv_cc_flag_unused_command_line_argument=no 7834fi 7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7836fi 7837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7838$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7839 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7840 CFLAGS="$xorg_testset_save_CFLAGS" 7841fi 7842 7843found="no" 7844 7845 if test $found = "no" ; then 7846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7847 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7848 fi 7849 7850 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7851 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7852 fi 7853 7854 CFLAGS="$CFLAGS -Werror=return-type" 7855 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7857$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7858 cacheid=xorg_cv_cc_flag__Werror_return_type 7859 if eval \${$cacheid+:} false; then : 7860 $as_echo_n "(cached) " >&6 7861else 7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7863/* end confdefs.h. */ 7864int i; 7865int 7866main () 7867{ 7868 7869 ; 7870 return 0; 7871} 7872_ACEOF 7873if ac_fn_c_try_link "$LINENO"; then : 7874 eval $cacheid=yes 7875else 7876 eval $cacheid=no 7877fi 7878rm -f core conftest.err conftest.$ac_objext \ 7879 conftest$ac_exeext conftest.$ac_ext 7880fi 7881 7882 7883 CFLAGS="$xorg_testset_save_CFLAGS" 7884 7885 eval supported=\$$cacheid 7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7887$as_echo "$supported" >&6; } 7888 if test "$supported" = "yes" ; then 7889 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7890 found="yes" 7891 fi 7892 fi 7893 7894 if test $found = "no" ; then 7895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7897 fi 7898 7899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7901 fi 7902 7903 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7904 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7906$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7907 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7908 if eval \${$cacheid+:} false; then : 7909 $as_echo_n "(cached) " >&6 7910else 7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7912/* end confdefs.h. */ 7913int i; 7914int 7915main () 7916{ 7917 7918 ; 7919 return 0; 7920} 7921_ACEOF 7922if ac_fn_c_try_link "$LINENO"; then : 7923 eval $cacheid=yes 7924else 7925 eval $cacheid=no 7926fi 7927rm -f core conftest.err conftest.$ac_objext \ 7928 conftest$ac_exeext conftest.$ac_ext 7929fi 7930 7931 7932 CFLAGS="$xorg_testset_save_CFLAGS" 7933 7934 eval supported=\$$cacheid 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7936$as_echo "$supported" >&6; } 7937 if test "$supported" = "yes" ; then 7938 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7939 found="yes" 7940 fi 7941 fi 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957xorg_testset_save_CFLAGS="$CFLAGS" 7958 7959if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7960 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7962$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7963if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7964 $as_echo_n "(cached) " >&6 7965else 7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7967/* end confdefs.h. */ 7968int i; 7969_ACEOF 7970if ac_fn_c_try_compile "$LINENO"; then : 7971 xorg_cv_cc_flag_unknown_warning_option=yes 7972else 7973 xorg_cv_cc_flag_unknown_warning_option=no 7974fi 7975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7976fi 7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7978$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7980 CFLAGS="$xorg_testset_save_CFLAGS" 7981fi 7982 7983if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7986 fi 7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7989$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7990if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992else 7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7994/* end confdefs.h. */ 7995int i; 7996_ACEOF 7997if ac_fn_c_try_compile "$LINENO"; then : 7998 xorg_cv_cc_flag_unused_command_line_argument=yes 7999else 8000 xorg_cv_cc_flag_unused_command_line_argument=no 8001fi 8002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8003fi 8004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8005$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8007 CFLAGS="$xorg_testset_save_CFLAGS" 8008fi 8009 8010found="no" 8011 8012 if test $found = "no" ; then 8013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8015 fi 8016 8017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8019 fi 8020 8021 CFLAGS="$CFLAGS -Werror=trigraphs" 8022 8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 8024$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 8025 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8026 if eval \${$cacheid+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028else 8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8030/* end confdefs.h. */ 8031int i; 8032int 8033main () 8034{ 8035 8036 ; 8037 return 0; 8038} 8039_ACEOF 8040if ac_fn_c_try_link "$LINENO"; then : 8041 eval $cacheid=yes 8042else 8043 eval $cacheid=no 8044fi 8045rm -f core conftest.err conftest.$ac_objext \ 8046 conftest$ac_exeext conftest.$ac_ext 8047fi 8048 8049 8050 CFLAGS="$xorg_testset_save_CFLAGS" 8051 8052 eval supported=\$$cacheid 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8054$as_echo "$supported" >&6; } 8055 if test "$supported" = "yes" ; then 8056 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8057 found="yes" 8058 fi 8059 fi 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075xorg_testset_save_CFLAGS="$CFLAGS" 8076 8077if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8078 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8080$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8081if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8082 $as_echo_n "(cached) " >&6 8083else 8084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8085/* end confdefs.h. */ 8086int i; 8087_ACEOF 8088if ac_fn_c_try_compile "$LINENO"; then : 8089 xorg_cv_cc_flag_unknown_warning_option=yes 8090else 8091 xorg_cv_cc_flag_unknown_warning_option=no 8092fi 8093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8094fi 8095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8096$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8098 CFLAGS="$xorg_testset_save_CFLAGS" 8099fi 8100 8101if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8104 fi 8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8107$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8108if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8109 $as_echo_n "(cached) " >&6 8110else 8111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8112/* end confdefs.h. */ 8113int i; 8114_ACEOF 8115if ac_fn_c_try_compile "$LINENO"; then : 8116 xorg_cv_cc_flag_unused_command_line_argument=yes 8117else 8118 xorg_cv_cc_flag_unused_command_line_argument=no 8119fi 8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8121fi 8122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8123$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8125 CFLAGS="$xorg_testset_save_CFLAGS" 8126fi 8127 8128found="no" 8129 8130 if test $found = "no" ; then 8131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8133 fi 8134 8135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8137 fi 8138 8139 CFLAGS="$CFLAGS -Werror=array-bounds" 8140 8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8142$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8143 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8144 if eval \${$cacheid+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8148/* end confdefs.h. */ 8149int i; 8150int 8151main () 8152{ 8153 8154 ; 8155 return 0; 8156} 8157_ACEOF 8158if ac_fn_c_try_link "$LINENO"; then : 8159 eval $cacheid=yes 8160else 8161 eval $cacheid=no 8162fi 8163rm -f core conftest.err conftest.$ac_objext \ 8164 conftest$ac_exeext conftest.$ac_ext 8165fi 8166 8167 8168 CFLAGS="$xorg_testset_save_CFLAGS" 8169 8170 eval supported=\$$cacheid 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8172$as_echo "$supported" >&6; } 8173 if test "$supported" = "yes" ; then 8174 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8175 found="yes" 8176 fi 8177 fi 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193xorg_testset_save_CFLAGS="$CFLAGS" 8194 8195if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8198$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8199if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8200 $as_echo_n "(cached) " >&6 8201else 8202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8203/* end confdefs.h. */ 8204int i; 8205_ACEOF 8206if ac_fn_c_try_compile "$LINENO"; then : 8207 xorg_cv_cc_flag_unknown_warning_option=yes 8208else 8209 xorg_cv_cc_flag_unknown_warning_option=no 8210fi 8211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8212fi 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8214$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8215 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8216 CFLAGS="$xorg_testset_save_CFLAGS" 8217fi 8218 8219if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8222 fi 8223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8225$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8226if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8227 $as_echo_n "(cached) " >&6 8228else 8229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8230/* end confdefs.h. */ 8231int i; 8232_ACEOF 8233if ac_fn_c_try_compile "$LINENO"; then : 8234 xorg_cv_cc_flag_unused_command_line_argument=yes 8235else 8236 xorg_cv_cc_flag_unused_command_line_argument=no 8237fi 8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8239fi 8240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8241$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8242 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8243 CFLAGS="$xorg_testset_save_CFLAGS" 8244fi 8245 8246found="no" 8247 8248 if test $found = "no" ; then 8249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8251 fi 8252 8253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8255 fi 8256 8257 CFLAGS="$CFLAGS -Werror=write-strings" 8258 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8260$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8261 cacheid=xorg_cv_cc_flag__Werror_write_strings 8262 if eval \${$cacheid+:} false; then : 8263 $as_echo_n "(cached) " >&6 8264else 8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8266/* end confdefs.h. */ 8267int i; 8268int 8269main () 8270{ 8271 8272 ; 8273 return 0; 8274} 8275_ACEOF 8276if ac_fn_c_try_link "$LINENO"; then : 8277 eval $cacheid=yes 8278else 8279 eval $cacheid=no 8280fi 8281rm -f core conftest.err conftest.$ac_objext \ 8282 conftest$ac_exeext conftest.$ac_ext 8283fi 8284 8285 8286 CFLAGS="$xorg_testset_save_CFLAGS" 8287 8288 eval supported=\$$cacheid 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8290$as_echo "$supported" >&6; } 8291 if test "$supported" = "yes" ; then 8292 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8293 found="yes" 8294 fi 8295 fi 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311xorg_testset_save_CFLAGS="$CFLAGS" 8312 8313if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8314 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8316$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8317if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8318 $as_echo_n "(cached) " >&6 8319else 8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8321/* end confdefs.h. */ 8322int i; 8323_ACEOF 8324if ac_fn_c_try_compile "$LINENO"; then : 8325 xorg_cv_cc_flag_unknown_warning_option=yes 8326else 8327 xorg_cv_cc_flag_unknown_warning_option=no 8328fi 8329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8330fi 8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8332$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8334 CFLAGS="$xorg_testset_save_CFLAGS" 8335fi 8336 8337if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8340 fi 8341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8343$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8344if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8345 $as_echo_n "(cached) " >&6 8346else 8347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8348/* end confdefs.h. */ 8349int i; 8350_ACEOF 8351if ac_fn_c_try_compile "$LINENO"; then : 8352 xorg_cv_cc_flag_unused_command_line_argument=yes 8353else 8354 xorg_cv_cc_flag_unused_command_line_argument=no 8355fi 8356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8357fi 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8359$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8361 CFLAGS="$xorg_testset_save_CFLAGS" 8362fi 8363 8364found="no" 8365 8366 if test $found = "no" ; then 8367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8369 fi 8370 8371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8373 fi 8374 8375 CFLAGS="$CFLAGS -Werror=address" 8376 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8378$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8379 cacheid=xorg_cv_cc_flag__Werror_address 8380 if eval \${$cacheid+:} false; then : 8381 $as_echo_n "(cached) " >&6 8382else 8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8384/* end confdefs.h. */ 8385int i; 8386int 8387main () 8388{ 8389 8390 ; 8391 return 0; 8392} 8393_ACEOF 8394if ac_fn_c_try_link "$LINENO"; then : 8395 eval $cacheid=yes 8396else 8397 eval $cacheid=no 8398fi 8399rm -f core conftest.err conftest.$ac_objext \ 8400 conftest$ac_exeext conftest.$ac_ext 8401fi 8402 8403 8404 CFLAGS="$xorg_testset_save_CFLAGS" 8405 8406 eval supported=\$$cacheid 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8408$as_echo "$supported" >&6; } 8409 if test "$supported" = "yes" ; then 8410 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8411 found="yes" 8412 fi 8413 fi 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429xorg_testset_save_CFLAGS="$CFLAGS" 8430 8431if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8434$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8435if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437else 8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8439/* end confdefs.h. */ 8440int i; 8441_ACEOF 8442if ac_fn_c_try_compile "$LINENO"; then : 8443 xorg_cv_cc_flag_unknown_warning_option=yes 8444else 8445 xorg_cv_cc_flag_unknown_warning_option=no 8446fi 8447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8448fi 8449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8450$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8451 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8452 CFLAGS="$xorg_testset_save_CFLAGS" 8453fi 8454 8455if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8458 fi 8459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8461$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8462if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8466/* end confdefs.h. */ 8467int i; 8468_ACEOF 8469if ac_fn_c_try_compile "$LINENO"; then : 8470 xorg_cv_cc_flag_unused_command_line_argument=yes 8471else 8472 xorg_cv_cc_flag_unused_command_line_argument=no 8473fi 8474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8475fi 8476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8477$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8479 CFLAGS="$xorg_testset_save_CFLAGS" 8480fi 8481 8482found="no" 8483 8484 if test $found = "no" ; then 8485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8487 fi 8488 8489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8491 fi 8492 8493 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8494 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8496$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8497 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8498 if eval \${$cacheid+:} false; then : 8499 $as_echo_n "(cached) " >&6 8500else 8501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8502/* end confdefs.h. */ 8503int i; 8504int 8505main () 8506{ 8507 8508 ; 8509 return 0; 8510} 8511_ACEOF 8512if ac_fn_c_try_link "$LINENO"; then : 8513 eval $cacheid=yes 8514else 8515 eval $cacheid=no 8516fi 8517rm -f core conftest.err conftest.$ac_objext \ 8518 conftest$ac_exeext conftest.$ac_ext 8519fi 8520 8521 8522 CFLAGS="$xorg_testset_save_CFLAGS" 8523 8524 eval supported=\$$cacheid 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8526$as_echo "$supported" >&6; } 8527 if test "$supported" = "yes" ; then 8528 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8529 found="yes" 8530 fi 8531 fi 8532 8533 if test $found = "no" ; then 8534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8536 fi 8537 8538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8540 fi 8541 8542 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8543 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8545$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8546 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8547 if eval \${$cacheid+:} false; then : 8548 $as_echo_n "(cached) " >&6 8549else 8550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8551/* end confdefs.h. */ 8552int i; 8553int 8554main () 8555{ 8556 8557 ; 8558 return 0; 8559} 8560_ACEOF 8561if ac_fn_c_try_link "$LINENO"; then : 8562 eval $cacheid=yes 8563else 8564 eval $cacheid=no 8565fi 8566rm -f core conftest.err conftest.$ac_objext \ 8567 conftest$ac_exeext conftest.$ac_ext 8568fi 8569 8570 8571 CFLAGS="$xorg_testset_save_CFLAGS" 8572 8573 eval supported=\$$cacheid 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8575$as_echo "$supported" >&6; } 8576 if test "$supported" = "yes" ; then 8577 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8578 found="yes" 8579 fi 8580 fi 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596xorg_testset_save_CFLAGS="$CFLAGS" 8597 8598if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8601$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8602if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8603 $as_echo_n "(cached) " >&6 8604else 8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8606/* end confdefs.h. */ 8607int i; 8608_ACEOF 8609if ac_fn_c_try_compile "$LINENO"; then : 8610 xorg_cv_cc_flag_unknown_warning_option=yes 8611else 8612 xorg_cv_cc_flag_unknown_warning_option=no 8613fi 8614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8615fi 8616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8617$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8618 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8619 CFLAGS="$xorg_testset_save_CFLAGS" 8620fi 8621 8622if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8625 fi 8626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8628$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8629if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8633/* end confdefs.h. */ 8634int i; 8635_ACEOF 8636if ac_fn_c_try_compile "$LINENO"; then : 8637 xorg_cv_cc_flag_unused_command_line_argument=yes 8638else 8639 xorg_cv_cc_flag_unused_command_line_argument=no 8640fi 8641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8642fi 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8644$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8646 CFLAGS="$xorg_testset_save_CFLAGS" 8647fi 8648 8649found="no" 8650 8651 if test $found = "no" ; then 8652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8653 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8654 fi 8655 8656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8658 fi 8659 8660 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8661 8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8663$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8664 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8665 if eval \${$cacheid+:} false; then : 8666 $as_echo_n "(cached) " >&6 8667else 8668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8669/* end confdefs.h. */ 8670int i; 8671int 8672main () 8673{ 8674 8675 ; 8676 return 0; 8677} 8678_ACEOF 8679if ac_fn_c_try_link "$LINENO"; then : 8680 eval $cacheid=yes 8681else 8682 eval $cacheid=no 8683fi 8684rm -f core conftest.err conftest.$ac_objext \ 8685 conftest$ac_exeext conftest.$ac_ext 8686fi 8687 8688 8689 CFLAGS="$xorg_testset_save_CFLAGS" 8690 8691 eval supported=\$$cacheid 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8693$as_echo "$supported" >&6; } 8694 if test "$supported" = "yes" ; then 8695 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8696 found="yes" 8697 fi 8698 fi 8699 8700 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8701else 8702{ $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 8703$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;} 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717xorg_testset_save_CFLAGS="$CFLAGS" 8718 8719if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8720 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8722$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8723if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8724 $as_echo_n "(cached) " >&6 8725else 8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8727/* end confdefs.h. */ 8728int i; 8729_ACEOF 8730if ac_fn_c_try_compile "$LINENO"; then : 8731 xorg_cv_cc_flag_unknown_warning_option=yes 8732else 8733 xorg_cv_cc_flag_unknown_warning_option=no 8734fi 8735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8736fi 8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8738$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8740 CFLAGS="$xorg_testset_save_CFLAGS" 8741fi 8742 8743if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8746 fi 8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8749$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8750if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8751 $as_echo_n "(cached) " >&6 8752else 8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8754/* end confdefs.h. */ 8755int i; 8756_ACEOF 8757if ac_fn_c_try_compile "$LINENO"; then : 8758 xorg_cv_cc_flag_unused_command_line_argument=yes 8759else 8760 xorg_cv_cc_flag_unused_command_line_argument=no 8761fi 8762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8763fi 8764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8765$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8767 CFLAGS="$xorg_testset_save_CFLAGS" 8768fi 8769 8770found="no" 8771 8772 if test $found = "no" ; then 8773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8774 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8775 fi 8776 8777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8779 fi 8780 8781 CFLAGS="$CFLAGS -Wimplicit" 8782 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8784$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8785 cacheid=xorg_cv_cc_flag__Wimplicit 8786 if eval \${$cacheid+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788else 8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8790/* end confdefs.h. */ 8791int i; 8792int 8793main () 8794{ 8795 8796 ; 8797 return 0; 8798} 8799_ACEOF 8800if ac_fn_c_try_link "$LINENO"; then : 8801 eval $cacheid=yes 8802else 8803 eval $cacheid=no 8804fi 8805rm -f core conftest.err conftest.$ac_objext \ 8806 conftest$ac_exeext conftest.$ac_ext 8807fi 8808 8809 8810 CFLAGS="$xorg_testset_save_CFLAGS" 8811 8812 eval supported=\$$cacheid 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8814$as_echo "$supported" >&6; } 8815 if test "$supported" = "yes" ; then 8816 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8817 found="yes" 8818 fi 8819 fi 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835xorg_testset_save_CFLAGS="$CFLAGS" 8836 8837if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8840$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8841if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8842 $as_echo_n "(cached) " >&6 8843else 8844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8845/* end confdefs.h. */ 8846int i; 8847_ACEOF 8848if ac_fn_c_try_compile "$LINENO"; then : 8849 xorg_cv_cc_flag_unknown_warning_option=yes 8850else 8851 xorg_cv_cc_flag_unknown_warning_option=no 8852fi 8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8854fi 8855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8856$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8858 CFLAGS="$xorg_testset_save_CFLAGS" 8859fi 8860 8861if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8864 fi 8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8867$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8868if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8872/* end confdefs.h. */ 8873int i; 8874_ACEOF 8875if ac_fn_c_try_compile "$LINENO"; then : 8876 xorg_cv_cc_flag_unused_command_line_argument=yes 8877else 8878 xorg_cv_cc_flag_unused_command_line_argument=no 8879fi 8880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8881fi 8882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8883$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8885 CFLAGS="$xorg_testset_save_CFLAGS" 8886fi 8887 8888found="no" 8889 8890 if test $found = "no" ; then 8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8893 fi 8894 8895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8897 fi 8898 8899 CFLAGS="$CFLAGS -Wnonnull" 8900 8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8902$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8903 cacheid=xorg_cv_cc_flag__Wnonnull 8904 if eval \${$cacheid+:} false; then : 8905 $as_echo_n "(cached) " >&6 8906else 8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8908/* end confdefs.h. */ 8909int i; 8910int 8911main () 8912{ 8913 8914 ; 8915 return 0; 8916} 8917_ACEOF 8918if ac_fn_c_try_link "$LINENO"; then : 8919 eval $cacheid=yes 8920else 8921 eval $cacheid=no 8922fi 8923rm -f core conftest.err conftest.$ac_objext \ 8924 conftest$ac_exeext conftest.$ac_ext 8925fi 8926 8927 8928 CFLAGS="$xorg_testset_save_CFLAGS" 8929 8930 eval supported=\$$cacheid 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8932$as_echo "$supported" >&6; } 8933 if test "$supported" = "yes" ; then 8934 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8935 found="yes" 8936 fi 8937 fi 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953xorg_testset_save_CFLAGS="$CFLAGS" 8954 8955if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8958$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8959if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8960 $as_echo_n "(cached) " >&6 8961else 8962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8963/* end confdefs.h. */ 8964int i; 8965_ACEOF 8966if ac_fn_c_try_compile "$LINENO"; then : 8967 xorg_cv_cc_flag_unknown_warning_option=yes 8968else 8969 xorg_cv_cc_flag_unknown_warning_option=no 8970fi 8971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8972fi 8973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8974$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8976 CFLAGS="$xorg_testset_save_CFLAGS" 8977fi 8978 8979if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8982 fi 8983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8985$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8986if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8987 $as_echo_n "(cached) " >&6 8988else 8989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8990/* end confdefs.h. */ 8991int i; 8992_ACEOF 8993if ac_fn_c_try_compile "$LINENO"; then : 8994 xorg_cv_cc_flag_unused_command_line_argument=yes 8995else 8996 xorg_cv_cc_flag_unused_command_line_argument=no 8997fi 8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8999fi 9000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9001$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9003 CFLAGS="$xorg_testset_save_CFLAGS" 9004fi 9005 9006found="no" 9007 9008 if test $found = "no" ; then 9009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9011 fi 9012 9013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9015 fi 9016 9017 CFLAGS="$CFLAGS -Winit-self" 9018 9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 9020$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 9021 cacheid=xorg_cv_cc_flag__Winit_self 9022 if eval \${$cacheid+:} false; then : 9023 $as_echo_n "(cached) " >&6 9024else 9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9026/* end confdefs.h. */ 9027int i; 9028int 9029main () 9030{ 9031 9032 ; 9033 return 0; 9034} 9035_ACEOF 9036if ac_fn_c_try_link "$LINENO"; then : 9037 eval $cacheid=yes 9038else 9039 eval $cacheid=no 9040fi 9041rm -f core conftest.err conftest.$ac_objext \ 9042 conftest$ac_exeext conftest.$ac_ext 9043fi 9044 9045 9046 CFLAGS="$xorg_testset_save_CFLAGS" 9047 9048 eval supported=\$$cacheid 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9050$as_echo "$supported" >&6; } 9051 if test "$supported" = "yes" ; then 9052 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9053 found="yes" 9054 fi 9055 fi 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071xorg_testset_save_CFLAGS="$CFLAGS" 9072 9073if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9076$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9077if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9078 $as_echo_n "(cached) " >&6 9079else 9080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9081/* end confdefs.h. */ 9082int i; 9083_ACEOF 9084if ac_fn_c_try_compile "$LINENO"; then : 9085 xorg_cv_cc_flag_unknown_warning_option=yes 9086else 9087 xorg_cv_cc_flag_unknown_warning_option=no 9088fi 9089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9090fi 9091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9092$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9094 CFLAGS="$xorg_testset_save_CFLAGS" 9095fi 9096 9097if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9100 fi 9101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9103$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9104if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9105 $as_echo_n "(cached) " >&6 9106else 9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9108/* end confdefs.h. */ 9109int i; 9110_ACEOF 9111if ac_fn_c_try_compile "$LINENO"; then : 9112 xorg_cv_cc_flag_unused_command_line_argument=yes 9113else 9114 xorg_cv_cc_flag_unused_command_line_argument=no 9115fi 9116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9117fi 9118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9119$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9121 CFLAGS="$xorg_testset_save_CFLAGS" 9122fi 9123 9124found="no" 9125 9126 if test $found = "no" ; then 9127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9128 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9129 fi 9130 9131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9133 fi 9134 9135 CFLAGS="$CFLAGS -Wmain" 9136 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9138$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9139 cacheid=xorg_cv_cc_flag__Wmain 9140 if eval \${$cacheid+:} false; then : 9141 $as_echo_n "(cached) " >&6 9142else 9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9144/* end confdefs.h. */ 9145int i; 9146int 9147main () 9148{ 9149 9150 ; 9151 return 0; 9152} 9153_ACEOF 9154if ac_fn_c_try_link "$LINENO"; then : 9155 eval $cacheid=yes 9156else 9157 eval $cacheid=no 9158fi 9159rm -f core conftest.err conftest.$ac_objext \ 9160 conftest$ac_exeext conftest.$ac_ext 9161fi 9162 9163 9164 CFLAGS="$xorg_testset_save_CFLAGS" 9165 9166 eval supported=\$$cacheid 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9168$as_echo "$supported" >&6; } 9169 if test "$supported" = "yes" ; then 9170 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9171 found="yes" 9172 fi 9173 fi 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189xorg_testset_save_CFLAGS="$CFLAGS" 9190 9191if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9194$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9195if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9196 $as_echo_n "(cached) " >&6 9197else 9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9199/* end confdefs.h. */ 9200int i; 9201_ACEOF 9202if ac_fn_c_try_compile "$LINENO"; then : 9203 xorg_cv_cc_flag_unknown_warning_option=yes 9204else 9205 xorg_cv_cc_flag_unknown_warning_option=no 9206fi 9207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9208fi 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9210$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9212 CFLAGS="$xorg_testset_save_CFLAGS" 9213fi 9214 9215if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9218 fi 9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9221$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9222if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9223 $as_echo_n "(cached) " >&6 9224else 9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9226/* end confdefs.h. */ 9227int i; 9228_ACEOF 9229if ac_fn_c_try_compile "$LINENO"; then : 9230 xorg_cv_cc_flag_unused_command_line_argument=yes 9231else 9232 xorg_cv_cc_flag_unused_command_line_argument=no 9233fi 9234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9235fi 9236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9237$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9239 CFLAGS="$xorg_testset_save_CFLAGS" 9240fi 9241 9242found="no" 9243 9244 if test $found = "no" ; then 9245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9246 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9247 fi 9248 9249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9251 fi 9252 9253 CFLAGS="$CFLAGS -Wmissing-braces" 9254 9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9256$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9257 cacheid=xorg_cv_cc_flag__Wmissing_braces 9258 if eval \${$cacheid+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260else 9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9262/* end confdefs.h. */ 9263int i; 9264int 9265main () 9266{ 9267 9268 ; 9269 return 0; 9270} 9271_ACEOF 9272if ac_fn_c_try_link "$LINENO"; then : 9273 eval $cacheid=yes 9274else 9275 eval $cacheid=no 9276fi 9277rm -f core conftest.err conftest.$ac_objext \ 9278 conftest$ac_exeext conftest.$ac_ext 9279fi 9280 9281 9282 CFLAGS="$xorg_testset_save_CFLAGS" 9283 9284 eval supported=\$$cacheid 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9286$as_echo "$supported" >&6; } 9287 if test "$supported" = "yes" ; then 9288 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9289 found="yes" 9290 fi 9291 fi 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307xorg_testset_save_CFLAGS="$CFLAGS" 9308 9309if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9312$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9313if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9314 $as_echo_n "(cached) " >&6 9315else 9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9317/* end confdefs.h. */ 9318int i; 9319_ACEOF 9320if ac_fn_c_try_compile "$LINENO"; then : 9321 xorg_cv_cc_flag_unknown_warning_option=yes 9322else 9323 xorg_cv_cc_flag_unknown_warning_option=no 9324fi 9325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9326fi 9327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9328$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9330 CFLAGS="$xorg_testset_save_CFLAGS" 9331fi 9332 9333if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9336 fi 9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9339$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9340if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9341 $as_echo_n "(cached) " >&6 9342else 9343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9344/* end confdefs.h. */ 9345int i; 9346_ACEOF 9347if ac_fn_c_try_compile "$LINENO"; then : 9348 xorg_cv_cc_flag_unused_command_line_argument=yes 9349else 9350 xorg_cv_cc_flag_unused_command_line_argument=no 9351fi 9352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9353fi 9354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9355$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9356 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9357 CFLAGS="$xorg_testset_save_CFLAGS" 9358fi 9359 9360found="no" 9361 9362 if test $found = "no" ; then 9363 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9364 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9365 fi 9366 9367 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9369 fi 9370 9371 CFLAGS="$CFLAGS -Wsequence-point" 9372 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9374$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9375 cacheid=xorg_cv_cc_flag__Wsequence_point 9376 if eval \${$cacheid+:} false; then : 9377 $as_echo_n "(cached) " >&6 9378else 9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9380/* end confdefs.h. */ 9381int i; 9382int 9383main () 9384{ 9385 9386 ; 9387 return 0; 9388} 9389_ACEOF 9390if ac_fn_c_try_link "$LINENO"; then : 9391 eval $cacheid=yes 9392else 9393 eval $cacheid=no 9394fi 9395rm -f core conftest.err conftest.$ac_objext \ 9396 conftest$ac_exeext conftest.$ac_ext 9397fi 9398 9399 9400 CFLAGS="$xorg_testset_save_CFLAGS" 9401 9402 eval supported=\$$cacheid 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9404$as_echo "$supported" >&6; } 9405 if test "$supported" = "yes" ; then 9406 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9407 found="yes" 9408 fi 9409 fi 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425xorg_testset_save_CFLAGS="$CFLAGS" 9426 9427if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9430$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9431if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9435/* end confdefs.h. */ 9436int i; 9437_ACEOF 9438if ac_fn_c_try_compile "$LINENO"; then : 9439 xorg_cv_cc_flag_unknown_warning_option=yes 9440else 9441 xorg_cv_cc_flag_unknown_warning_option=no 9442fi 9443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9444fi 9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9446$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9448 CFLAGS="$xorg_testset_save_CFLAGS" 9449fi 9450 9451if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9453 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9454 fi 9455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9457$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9458if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9459 $as_echo_n "(cached) " >&6 9460else 9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9462/* end confdefs.h. */ 9463int i; 9464_ACEOF 9465if ac_fn_c_try_compile "$LINENO"; then : 9466 xorg_cv_cc_flag_unused_command_line_argument=yes 9467else 9468 xorg_cv_cc_flag_unused_command_line_argument=no 9469fi 9470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9471fi 9472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9473$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9475 CFLAGS="$xorg_testset_save_CFLAGS" 9476fi 9477 9478found="no" 9479 9480 if test $found = "no" ; then 9481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9483 fi 9484 9485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9487 fi 9488 9489 CFLAGS="$CFLAGS -Wreturn-type" 9490 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9492$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9493 cacheid=xorg_cv_cc_flag__Wreturn_type 9494 if eval \${$cacheid+:} false; then : 9495 $as_echo_n "(cached) " >&6 9496else 9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9498/* end confdefs.h. */ 9499int i; 9500int 9501main () 9502{ 9503 9504 ; 9505 return 0; 9506} 9507_ACEOF 9508if ac_fn_c_try_link "$LINENO"; then : 9509 eval $cacheid=yes 9510else 9511 eval $cacheid=no 9512fi 9513rm -f core conftest.err conftest.$ac_objext \ 9514 conftest$ac_exeext conftest.$ac_ext 9515fi 9516 9517 9518 CFLAGS="$xorg_testset_save_CFLAGS" 9519 9520 eval supported=\$$cacheid 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9522$as_echo "$supported" >&6; } 9523 if test "$supported" = "yes" ; then 9524 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9525 found="yes" 9526 fi 9527 fi 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543xorg_testset_save_CFLAGS="$CFLAGS" 9544 9545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9550 $as_echo_n "(cached) " >&6 9551else 9552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9553/* end confdefs.h. */ 9554int i; 9555_ACEOF 9556if ac_fn_c_try_compile "$LINENO"; then : 9557 xorg_cv_cc_flag_unknown_warning_option=yes 9558else 9559 xorg_cv_cc_flag_unknown_warning_option=no 9560fi 9561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9562fi 9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9566 CFLAGS="$xorg_testset_save_CFLAGS" 9567fi 9568 9569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9572 fi 9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578else 9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9580/* end confdefs.h. */ 9581int i; 9582_ACEOF 9583if ac_fn_c_try_compile "$LINENO"; then : 9584 xorg_cv_cc_flag_unused_command_line_argument=yes 9585else 9586 xorg_cv_cc_flag_unused_command_line_argument=no 9587fi 9588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9589fi 9590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9593 CFLAGS="$xorg_testset_save_CFLAGS" 9594fi 9595 9596found="no" 9597 9598 if test $found = "no" ; then 9599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9601 fi 9602 9603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9605 fi 9606 9607 CFLAGS="$CFLAGS -Wtrigraphs" 9608 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9610$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9611 cacheid=xorg_cv_cc_flag__Wtrigraphs 9612 if eval \${$cacheid+:} false; then : 9613 $as_echo_n "(cached) " >&6 9614else 9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9616/* end confdefs.h. */ 9617int i; 9618int 9619main () 9620{ 9621 9622 ; 9623 return 0; 9624} 9625_ACEOF 9626if ac_fn_c_try_link "$LINENO"; then : 9627 eval $cacheid=yes 9628else 9629 eval $cacheid=no 9630fi 9631rm -f core conftest.err conftest.$ac_objext \ 9632 conftest$ac_exeext conftest.$ac_ext 9633fi 9634 9635 9636 CFLAGS="$xorg_testset_save_CFLAGS" 9637 9638 eval supported=\$$cacheid 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9640$as_echo "$supported" >&6; } 9641 if test "$supported" = "yes" ; then 9642 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9643 found="yes" 9644 fi 9645 fi 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661xorg_testset_save_CFLAGS="$CFLAGS" 9662 9663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9668 $as_echo_n "(cached) " >&6 9669else 9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9671/* end confdefs.h. */ 9672int i; 9673_ACEOF 9674if ac_fn_c_try_compile "$LINENO"; then : 9675 xorg_cv_cc_flag_unknown_warning_option=yes 9676else 9677 xorg_cv_cc_flag_unknown_warning_option=no 9678fi 9679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9680fi 9681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9684 CFLAGS="$xorg_testset_save_CFLAGS" 9685fi 9686 9687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9690 fi 9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696else 9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9698/* end confdefs.h. */ 9699int i; 9700_ACEOF 9701if ac_fn_c_try_compile "$LINENO"; then : 9702 xorg_cv_cc_flag_unused_command_line_argument=yes 9703else 9704 xorg_cv_cc_flag_unused_command_line_argument=no 9705fi 9706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9707fi 9708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9711 CFLAGS="$xorg_testset_save_CFLAGS" 9712fi 9713 9714found="no" 9715 9716 if test $found = "no" ; then 9717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9719 fi 9720 9721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9723 fi 9724 9725 CFLAGS="$CFLAGS -Warray-bounds" 9726 9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9728$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9729 cacheid=xorg_cv_cc_flag__Warray_bounds 9730 if eval \${$cacheid+:} false; then : 9731 $as_echo_n "(cached) " >&6 9732else 9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9734/* end confdefs.h. */ 9735int i; 9736int 9737main () 9738{ 9739 9740 ; 9741 return 0; 9742} 9743_ACEOF 9744if ac_fn_c_try_link "$LINENO"; then : 9745 eval $cacheid=yes 9746else 9747 eval $cacheid=no 9748fi 9749rm -f core conftest.err conftest.$ac_objext \ 9750 conftest$ac_exeext conftest.$ac_ext 9751fi 9752 9753 9754 CFLAGS="$xorg_testset_save_CFLAGS" 9755 9756 eval supported=\$$cacheid 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9758$as_echo "$supported" >&6; } 9759 if test "$supported" = "yes" ; then 9760 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9761 found="yes" 9762 fi 9763 fi 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779xorg_testset_save_CFLAGS="$CFLAGS" 9780 9781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9786 $as_echo_n "(cached) " >&6 9787else 9788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9789/* end confdefs.h. */ 9790int i; 9791_ACEOF 9792if ac_fn_c_try_compile "$LINENO"; then : 9793 xorg_cv_cc_flag_unknown_warning_option=yes 9794else 9795 xorg_cv_cc_flag_unknown_warning_option=no 9796fi 9797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9798fi 9799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9802 CFLAGS="$xorg_testset_save_CFLAGS" 9803fi 9804 9805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9808 fi 9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9813 $as_echo_n "(cached) " >&6 9814else 9815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9816/* end confdefs.h. */ 9817int i; 9818_ACEOF 9819if ac_fn_c_try_compile "$LINENO"; then : 9820 xorg_cv_cc_flag_unused_command_line_argument=yes 9821else 9822 xorg_cv_cc_flag_unused_command_line_argument=no 9823fi 9824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9825fi 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9829 CFLAGS="$xorg_testset_save_CFLAGS" 9830fi 9831 9832found="no" 9833 9834 if test $found = "no" ; then 9835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9837 fi 9838 9839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9841 fi 9842 9843 CFLAGS="$CFLAGS -Wwrite-strings" 9844 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9846$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9847 cacheid=xorg_cv_cc_flag__Wwrite_strings 9848 if eval \${$cacheid+:} false; then : 9849 $as_echo_n "(cached) " >&6 9850else 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853int i; 9854int 9855main () 9856{ 9857 9858 ; 9859 return 0; 9860} 9861_ACEOF 9862if ac_fn_c_try_link "$LINENO"; then : 9863 eval $cacheid=yes 9864else 9865 eval $cacheid=no 9866fi 9867rm -f core conftest.err conftest.$ac_objext \ 9868 conftest$ac_exeext conftest.$ac_ext 9869fi 9870 9871 9872 CFLAGS="$xorg_testset_save_CFLAGS" 9873 9874 eval supported=\$$cacheid 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9876$as_echo "$supported" >&6; } 9877 if test "$supported" = "yes" ; then 9878 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9879 found="yes" 9880 fi 9881 fi 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897xorg_testset_save_CFLAGS="$CFLAGS" 9898 9899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9904 $as_echo_n "(cached) " >&6 9905else 9906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9907/* end confdefs.h. */ 9908int i; 9909_ACEOF 9910if ac_fn_c_try_compile "$LINENO"; then : 9911 xorg_cv_cc_flag_unknown_warning_option=yes 9912else 9913 xorg_cv_cc_flag_unknown_warning_option=no 9914fi 9915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9916fi 9917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9920 CFLAGS="$xorg_testset_save_CFLAGS" 9921fi 9922 9923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9926 fi 9927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9931 $as_echo_n "(cached) " >&6 9932else 9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9934/* end confdefs.h. */ 9935int i; 9936_ACEOF 9937if ac_fn_c_try_compile "$LINENO"; then : 9938 xorg_cv_cc_flag_unused_command_line_argument=yes 9939else 9940 xorg_cv_cc_flag_unused_command_line_argument=no 9941fi 9942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9943fi 9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9947 CFLAGS="$xorg_testset_save_CFLAGS" 9948fi 9949 9950found="no" 9951 9952 if test $found = "no" ; then 9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9955 fi 9956 9957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9959 fi 9960 9961 CFLAGS="$CFLAGS -Waddress" 9962 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9964$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9965 cacheid=xorg_cv_cc_flag__Waddress 9966 if eval \${$cacheid+:} false; then : 9967 $as_echo_n "(cached) " >&6 9968else 9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9970/* end confdefs.h. */ 9971int i; 9972int 9973main () 9974{ 9975 9976 ; 9977 return 0; 9978} 9979_ACEOF 9980if ac_fn_c_try_link "$LINENO"; then : 9981 eval $cacheid=yes 9982else 9983 eval $cacheid=no 9984fi 9985rm -f core conftest.err conftest.$ac_objext \ 9986 conftest$ac_exeext conftest.$ac_ext 9987fi 9988 9989 9990 CFLAGS="$xorg_testset_save_CFLAGS" 9991 9992 eval supported=\$$cacheid 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9994$as_echo "$supported" >&6; } 9995 if test "$supported" = "yes" ; then 9996 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9997 found="yes" 9998 fi 9999 fi 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015xorg_testset_save_CFLAGS="$CFLAGS" 10016 10017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10022 $as_echo_n "(cached) " >&6 10023else 10024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10025/* end confdefs.h. */ 10026int i; 10027_ACEOF 10028if ac_fn_c_try_compile "$LINENO"; then : 10029 xorg_cv_cc_flag_unknown_warning_option=yes 10030else 10031 xorg_cv_cc_flag_unknown_warning_option=no 10032fi 10033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10034fi 10035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10038 CFLAGS="$xorg_testset_save_CFLAGS" 10039fi 10040 10041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10044 fi 10045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10049 $as_echo_n "(cached) " >&6 10050else 10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10052/* end confdefs.h. */ 10053int i; 10054_ACEOF 10055if ac_fn_c_try_compile "$LINENO"; then : 10056 xorg_cv_cc_flag_unused_command_line_argument=yes 10057else 10058 xorg_cv_cc_flag_unused_command_line_argument=no 10059fi 10060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10061fi 10062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10065 CFLAGS="$xorg_testset_save_CFLAGS" 10066fi 10067 10068found="no" 10069 10070 if test $found = "no" ; then 10071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10073 fi 10074 10075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10077 fi 10078 10079 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10080 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10082$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10083 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10084 if eval \${$cacheid+:} false; then : 10085 $as_echo_n "(cached) " >&6 10086else 10087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10088/* end confdefs.h. */ 10089int i; 10090int 10091main () 10092{ 10093 10094 ; 10095 return 0; 10096} 10097_ACEOF 10098if ac_fn_c_try_link "$LINENO"; then : 10099 eval $cacheid=yes 10100else 10101 eval $cacheid=no 10102fi 10103rm -f core conftest.err conftest.$ac_objext \ 10104 conftest$ac_exeext conftest.$ac_ext 10105fi 10106 10107 10108 CFLAGS="$xorg_testset_save_CFLAGS" 10109 10110 eval supported=\$$cacheid 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10112$as_echo "$supported" >&6; } 10113 if test "$supported" = "yes" ; then 10114 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10115 found="yes" 10116 fi 10117 fi 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133xorg_testset_save_CFLAGS="$CFLAGS" 10134 10135if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10136 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10138$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10139if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10140 $as_echo_n "(cached) " >&6 10141else 10142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10143/* end confdefs.h. */ 10144int i; 10145_ACEOF 10146if ac_fn_c_try_compile "$LINENO"; then : 10147 xorg_cv_cc_flag_unknown_warning_option=yes 10148else 10149 xorg_cv_cc_flag_unknown_warning_option=no 10150fi 10151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10152fi 10153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10154$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10156 CFLAGS="$xorg_testset_save_CFLAGS" 10157fi 10158 10159if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10162 fi 10163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10165$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10166if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10167 $as_echo_n "(cached) " >&6 10168else 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10170/* end confdefs.h. */ 10171int i; 10172_ACEOF 10173if ac_fn_c_try_compile "$LINENO"; then : 10174 xorg_cv_cc_flag_unused_command_line_argument=yes 10175else 10176 xorg_cv_cc_flag_unused_command_line_argument=no 10177fi 10178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10179fi 10180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10181$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10183 CFLAGS="$xorg_testset_save_CFLAGS" 10184fi 10185 10186found="no" 10187 10188 if test $found = "no" ; then 10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10191 fi 10192 10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10195 fi 10196 10197 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10198 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10200$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10201 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10202 if eval \${$cacheid+:} false; then : 10203 $as_echo_n "(cached) " >&6 10204else 10205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10206/* end confdefs.h. */ 10207int i; 10208int 10209main () 10210{ 10211 10212 ; 10213 return 0; 10214} 10215_ACEOF 10216if ac_fn_c_try_link "$LINENO"; then : 10217 eval $cacheid=yes 10218else 10219 eval $cacheid=no 10220fi 10221rm -f core conftest.err conftest.$ac_objext \ 10222 conftest$ac_exeext conftest.$ac_ext 10223fi 10224 10225 10226 CFLAGS="$xorg_testset_save_CFLAGS" 10227 10228 eval supported=\$$cacheid 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10230$as_echo "$supported" >&6; } 10231 if test "$supported" = "yes" ; then 10232 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10233 found="yes" 10234 fi 10235 fi 10236 10237 10238fi 10239 10240 10241 10242 10243 10244 10245 10246 CWARNFLAGS="$BASE_CFLAGS" 10247 if test "x$GCC" = xyes ; then 10248 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10249 fi 10250 10251 10252 10253 10254 10255 10256 10257 10258# Check whether --enable-strict-compilation was given. 10259if test "${enable_strict_compilation+set}" = set; then : 10260 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10261else 10262 STRICT_COMPILE=no 10263fi 10264 10265 10266 10267 10268 10269 10270STRICT_CFLAGS="" 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284xorg_testset_save_CFLAGS="$CFLAGS" 10285 10286if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10289$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10290if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10291 $as_echo_n "(cached) " >&6 10292else 10293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10294/* end confdefs.h. */ 10295int i; 10296_ACEOF 10297if ac_fn_c_try_compile "$LINENO"; then : 10298 xorg_cv_cc_flag_unknown_warning_option=yes 10299else 10300 xorg_cv_cc_flag_unknown_warning_option=no 10301fi 10302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10303fi 10304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10305$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10307 CFLAGS="$xorg_testset_save_CFLAGS" 10308fi 10309 10310if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10312 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10313 fi 10314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10316$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10317if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10318 $as_echo_n "(cached) " >&6 10319else 10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10321/* end confdefs.h. */ 10322int i; 10323_ACEOF 10324if ac_fn_c_try_compile "$LINENO"; then : 10325 xorg_cv_cc_flag_unused_command_line_argument=yes 10326else 10327 xorg_cv_cc_flag_unused_command_line_argument=no 10328fi 10329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10330fi 10331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10332$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10334 CFLAGS="$xorg_testset_save_CFLAGS" 10335fi 10336 10337found="no" 10338 10339 if test $found = "no" ; then 10340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10341 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10342 fi 10343 10344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10346 fi 10347 10348 CFLAGS="$CFLAGS -pedantic" 10349 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10351$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10352 cacheid=xorg_cv_cc_flag__pedantic 10353 if eval \${$cacheid+:} false; then : 10354 $as_echo_n "(cached) " >&6 10355else 10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10357/* end confdefs.h. */ 10358int i; 10359int 10360main () 10361{ 10362 10363 ; 10364 return 0; 10365} 10366_ACEOF 10367if ac_fn_c_try_link "$LINENO"; then : 10368 eval $cacheid=yes 10369else 10370 eval $cacheid=no 10371fi 10372rm -f core conftest.err conftest.$ac_objext \ 10373 conftest$ac_exeext conftest.$ac_ext 10374fi 10375 10376 10377 CFLAGS="$xorg_testset_save_CFLAGS" 10378 10379 eval supported=\$$cacheid 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10381$as_echo "$supported" >&6; } 10382 if test "$supported" = "yes" ; then 10383 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10384 found="yes" 10385 fi 10386 fi 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402xorg_testset_save_CFLAGS="$CFLAGS" 10403 10404if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10407$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10408if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10409 $as_echo_n "(cached) " >&6 10410else 10411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10412/* end confdefs.h. */ 10413int i; 10414_ACEOF 10415if ac_fn_c_try_compile "$LINENO"; then : 10416 xorg_cv_cc_flag_unknown_warning_option=yes 10417else 10418 xorg_cv_cc_flag_unknown_warning_option=no 10419fi 10420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10421fi 10422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10423$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10424 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10425 CFLAGS="$xorg_testset_save_CFLAGS" 10426fi 10427 10428if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10431 fi 10432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10434$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10435if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10436 $as_echo_n "(cached) " >&6 10437else 10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10439/* end confdefs.h. */ 10440int i; 10441_ACEOF 10442if ac_fn_c_try_compile "$LINENO"; then : 10443 xorg_cv_cc_flag_unused_command_line_argument=yes 10444else 10445 xorg_cv_cc_flag_unused_command_line_argument=no 10446fi 10447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10448fi 10449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10450$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10451 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10452 CFLAGS="$xorg_testset_save_CFLAGS" 10453fi 10454 10455found="no" 10456 10457 if test $found = "no" ; then 10458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10459 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10460 fi 10461 10462 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10464 fi 10465 10466 CFLAGS="$CFLAGS -Werror" 10467 10468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10469$as_echo_n "checking if $CC supports -Werror... " >&6; } 10470 cacheid=xorg_cv_cc_flag__Werror 10471 if eval \${$cacheid+:} false; then : 10472 $as_echo_n "(cached) " >&6 10473else 10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10475/* end confdefs.h. */ 10476int i; 10477int 10478main () 10479{ 10480 10481 ; 10482 return 0; 10483} 10484_ACEOF 10485if ac_fn_c_try_link "$LINENO"; then : 10486 eval $cacheid=yes 10487else 10488 eval $cacheid=no 10489fi 10490rm -f core conftest.err conftest.$ac_objext \ 10491 conftest$ac_exeext conftest.$ac_ext 10492fi 10493 10494 10495 CFLAGS="$xorg_testset_save_CFLAGS" 10496 10497 eval supported=\$$cacheid 10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10499$as_echo "$supported" >&6; } 10500 if test "$supported" = "yes" ; then 10501 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10502 found="yes" 10503 fi 10504 fi 10505 10506 if test $found = "no" ; then 10507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10509 fi 10510 10511 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10513 fi 10514 10515 CFLAGS="$CFLAGS -errwarn" 10516 10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10518$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10519 cacheid=xorg_cv_cc_flag__errwarn 10520 if eval \${$cacheid+:} false; then : 10521 $as_echo_n "(cached) " >&6 10522else 10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10524/* end confdefs.h. */ 10525int i; 10526int 10527main () 10528{ 10529 10530 ; 10531 return 0; 10532} 10533_ACEOF 10534if ac_fn_c_try_link "$LINENO"; then : 10535 eval $cacheid=yes 10536else 10537 eval $cacheid=no 10538fi 10539rm -f core conftest.err conftest.$ac_objext \ 10540 conftest$ac_exeext conftest.$ac_ext 10541fi 10542 10543 10544 CFLAGS="$xorg_testset_save_CFLAGS" 10545 10546 eval supported=\$$cacheid 10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10548$as_echo "$supported" >&6; } 10549 if test "$supported" = "yes" ; then 10550 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10551 found="yes" 10552 fi 10553 fi 10554 10555 10556 10557# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10558# activate it with -Werror, so we add it here explicitly. 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572xorg_testset_save_CFLAGS="$CFLAGS" 10573 10574if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10577$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10578if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10579 $as_echo_n "(cached) " >&6 10580else 10581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10582/* end confdefs.h. */ 10583int i; 10584_ACEOF 10585if ac_fn_c_try_compile "$LINENO"; then : 10586 xorg_cv_cc_flag_unknown_warning_option=yes 10587else 10588 xorg_cv_cc_flag_unknown_warning_option=no 10589fi 10590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10591fi 10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10593$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10594 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10595 CFLAGS="$xorg_testset_save_CFLAGS" 10596fi 10597 10598if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10601 fi 10602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10604$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10605if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10606 $as_echo_n "(cached) " >&6 10607else 10608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10609/* end confdefs.h. */ 10610int i; 10611_ACEOF 10612if ac_fn_c_try_compile "$LINENO"; then : 10613 xorg_cv_cc_flag_unused_command_line_argument=yes 10614else 10615 xorg_cv_cc_flag_unused_command_line_argument=no 10616fi 10617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10618fi 10619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10620$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10622 CFLAGS="$xorg_testset_save_CFLAGS" 10623fi 10624 10625found="no" 10626 10627 if test $found = "no" ; then 10628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10630 fi 10631 10632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10634 fi 10635 10636 CFLAGS="$CFLAGS -Werror=attributes" 10637 10638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10639$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10640 cacheid=xorg_cv_cc_flag__Werror_attributes 10641 if eval \${$cacheid+:} false; then : 10642 $as_echo_n "(cached) " >&6 10643else 10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10645/* end confdefs.h. */ 10646int i; 10647int 10648main () 10649{ 10650 10651 ; 10652 return 0; 10653} 10654_ACEOF 10655if ac_fn_c_try_link "$LINENO"; then : 10656 eval $cacheid=yes 10657else 10658 eval $cacheid=no 10659fi 10660rm -f core conftest.err conftest.$ac_objext \ 10661 conftest$ac_exeext conftest.$ac_ext 10662fi 10663 10664 10665 CFLAGS="$xorg_testset_save_CFLAGS" 10666 10667 eval supported=\$$cacheid 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10669$as_echo "$supported" >&6; } 10670 if test "$supported" = "yes" ; then 10671 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10672 found="yes" 10673 fi 10674 fi 10675 10676 10677 10678if test "x$STRICT_COMPILE" = "xyes"; then 10679 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10680 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10681fi 10682 10683 10684 10685 10686 10687 10688cat >>confdefs.h <<_ACEOF 10689#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10690_ACEOF 10691 10692 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10693 if test "x$PVM" = "x"; then 10694 PVM="0" 10695 fi 10696 10697cat >>confdefs.h <<_ACEOF 10698#define PACKAGE_VERSION_MINOR $PVM 10699_ACEOF 10700 10701 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10702 if test "x$PVP" = "x"; then 10703 PVP="0" 10704 fi 10705 10706cat >>confdefs.h <<_ACEOF 10707#define PACKAGE_VERSION_PATCHLEVEL $PVP 10708_ACEOF 10709 10710 10711 10712CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10713mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10714|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10715echo 'git directory not found: installing possibly empty changelog.' >&2)" 10716 10717 10718 10719 10720macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10721INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10722mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10723|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10724echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10725 10726 10727 10728 10729 10730 10731if test x$APP_MAN_SUFFIX = x ; then 10732 APP_MAN_SUFFIX=1 10733fi 10734if test x$APP_MAN_DIR = x ; then 10735 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10736fi 10737 10738if test x$LIB_MAN_SUFFIX = x ; then 10739 LIB_MAN_SUFFIX=3 10740fi 10741if test x$LIB_MAN_DIR = x ; then 10742 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10743fi 10744 10745if test x$FILE_MAN_SUFFIX = x ; then 10746 case $host_os in 10747 solaris*) FILE_MAN_SUFFIX=4 ;; 10748 *) FILE_MAN_SUFFIX=5 ;; 10749 esac 10750fi 10751if test x$FILE_MAN_DIR = x ; then 10752 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10753fi 10754 10755if test x$MISC_MAN_SUFFIX = x ; then 10756 case $host_os in 10757 solaris*) MISC_MAN_SUFFIX=5 ;; 10758 *) MISC_MAN_SUFFIX=7 ;; 10759 esac 10760fi 10761if test x$MISC_MAN_DIR = x ; then 10762 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10763fi 10764 10765if test x$DRIVER_MAN_SUFFIX = x ; then 10766 case $host_os in 10767 solaris*) DRIVER_MAN_SUFFIX=7 ;; 10768 *) DRIVER_MAN_SUFFIX=4 ;; 10769 esac 10770fi 10771if test x$DRIVER_MAN_DIR = x ; then 10772 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10773fi 10774 10775if test x$ADMIN_MAN_SUFFIX = x ; then 10776 case $host_os in 10777 solaris*) ADMIN_MAN_SUFFIX=1m ;; 10778 *) ADMIN_MAN_SUFFIX=8 ;; 10779 esac 10780fi 10781if test x$ADMIN_MAN_DIR = x ; then 10782 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10783fi 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799XORG_MAN_PAGE="X Version 11" 10800 10801MAN_SUBSTS="\ 10802 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10803 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10804 -e 's|__xservername__|Xorg|g' \ 10805 -e 's|__xconfigfile__|xorg.conf|g' \ 10806 -e 's|__projectroot__|\$(prefix)|g' \ 10807 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10808 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10809 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10810 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10811 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10812 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10813 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10814 10815 10816 10817# Check whether --enable-silent-rules was given. 10818if test "${enable_silent_rules+set}" = set; then : 10819 enableval=$enable_silent_rules; 10820fi 10821 10822case $enable_silent_rules in # ((( 10823 yes) AM_DEFAULT_VERBOSITY=0;; 10824 no) AM_DEFAULT_VERBOSITY=1;; 10825 *) AM_DEFAULT_VERBOSITY=0;; 10826esac 10827am_make=${MAKE-make} 10828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10829$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10830if ${am_cv_make_support_nested_variables+:} false; then : 10831 $as_echo_n "(cached) " >&6 10832else 10833 if $as_echo 'TRUE=$(BAR$(V)) 10834BAR0=false 10835BAR1=true 10836V=1 10837am__doit: 10838 @$(TRUE) 10839.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10840 am_cv_make_support_nested_variables=yes 10841else 10842 am_cv_make_support_nested_variables=no 10843fi 10844fi 10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10846$as_echo "$am_cv_make_support_nested_variables" >&6; } 10847if test $am_cv_make_support_nested_variables = yes; then 10848 AM_V='$(V)' 10849 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10850else 10851 AM_V=$AM_DEFAULT_VERBOSITY 10852 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10853fi 10854AM_BACKSLASH='\' 10855 10856 10857 10858# Initialize libtool 10859# Check whether --enable-static was given. 10860if test "${enable_static+set}" = set; then : 10861 enableval=$enable_static; p=${PACKAGE-default} 10862 case $enableval in 10863 yes) enable_static=yes ;; 10864 no) enable_static=no ;; 10865 *) 10866 enable_static=no 10867 # Look at the argument we got. We use all the common list separators. 10868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 10869 for pkg in $enableval; do 10870 IFS="$lt_save_ifs" 10871 if test "X$pkg" = "X$p"; then 10872 enable_static=yes 10873 fi 10874 done 10875 IFS="$lt_save_ifs" 10876 ;; 10877 esac 10878else 10879 enable_static=no 10880fi 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890case `pwd` in 10891 *\ * | *\ *) 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 10893$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 10894esac 10895 10896 10897 10898macro_version='2.4.2' 10899macro_revision='1.3337' 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913ltmain="$ac_aux_dir/ltmain.sh" 10914 10915# Backslashify metacharacters that are still active within 10916# double-quoted strings. 10917sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 10918 10919# Same as above, but do not quote variable references. 10920double_quote_subst='s/\(["`\\]\)/\\\1/g' 10921 10922# Sed substitution to delay expansion of an escaped shell variable in a 10923# double_quote_subst'ed string. 10924delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10925 10926# Sed substitution to delay expansion of an escaped single quote. 10927delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 10928 10929# Sed substitution to avoid accidental globbing in evaled expressions 10930no_glob_subst='s/\*/\\\*/g' 10931 10932ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10933ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 10934ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 10935 10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 10937$as_echo_n "checking how to print strings... " >&6; } 10938# Test print first, because it will be a builtin if present. 10939if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 10940 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 10941 ECHO='print -r --' 10942elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 10943 ECHO='printf %s\n' 10944else 10945 # Use this function as a fallback that always works. 10946 func_fallback_echo () 10947 { 10948 eval 'cat <<_LTECHO_EOF 10949$1 10950_LTECHO_EOF' 10951 } 10952 ECHO='func_fallback_echo' 10953fi 10954 10955# func_echo_all arg... 10956# Invoke $ECHO with all args, space-separated. 10957func_echo_all () 10958{ 10959 $ECHO "" 10960} 10961 10962case "$ECHO" in 10963 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 10964$as_echo "printf" >&6; } ;; 10965 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 10966$as_echo "print -r" >&6; } ;; 10967 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 10968$as_echo "cat" >&6; } ;; 10969esac 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 10985$as_echo_n "checking for a sed that does not truncate output... " >&6; } 10986if ${ac_cv_path_SED+:} false; then : 10987 $as_echo_n "(cached) " >&6 10988else 10989 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 10990 for ac_i in 1 2 3 4 5 6 7; do 10991 ac_script="$ac_script$as_nl$ac_script" 10992 done 10993 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 10994 { ac_script=; unset ac_script;} 10995 if test -z "$SED"; then 10996 ac_path_SED_found=false 10997 # Loop through the user's path and test for each of PROGNAME-LIST 10998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10999for as_dir in $PATH 11000do 11001 IFS=$as_save_IFS 11002 test -z "$as_dir" && as_dir=. 11003 for ac_prog in sed gsed; do 11004 for ac_exec_ext in '' $ac_executable_extensions; do 11005 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11006 as_fn_executable_p "$ac_path_SED" || continue 11007# Check for GNU ac_path_SED and select it if it is found. 11008 # Check for GNU $ac_path_SED 11009case `"$ac_path_SED" --version 2>&1` in 11010*GNU*) 11011 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11012*) 11013 ac_count=0 11014 $as_echo_n 0123456789 >"conftest.in" 11015 while : 11016 do 11017 cat "conftest.in" "conftest.in" >"conftest.tmp" 11018 mv "conftest.tmp" "conftest.in" 11019 cp "conftest.in" "conftest.nl" 11020 $as_echo '' >> "conftest.nl" 11021 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11022 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11023 as_fn_arith $ac_count + 1 && ac_count=$as_val 11024 if test $ac_count -gt ${ac_path_SED_max-0}; then 11025 # Best one so far, save it but keep looking for a better one 11026 ac_cv_path_SED="$ac_path_SED" 11027 ac_path_SED_max=$ac_count 11028 fi 11029 # 10*(2^10) chars as input seems more than enough 11030 test $ac_count -gt 10 && break 11031 done 11032 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11033esac 11034 11035 $ac_path_SED_found && break 3 11036 done 11037 done 11038 done 11039IFS=$as_save_IFS 11040 if test -z "$ac_cv_path_SED"; then 11041 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 11042 fi 11043else 11044 ac_cv_path_SED=$SED 11045fi 11046 11047fi 11048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11049$as_echo "$ac_cv_path_SED" >&6; } 11050 SED="$ac_cv_path_SED" 11051 rm -f conftest.sed 11052 11053test -z "$SED" && SED=sed 11054Xsed="$SED -e 1s/^X//" 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11067$as_echo_n "checking for fgrep... " >&6; } 11068if ${ac_cv_path_FGREP+:} false; then : 11069 $as_echo_n "(cached) " >&6 11070else 11071 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11072 then ac_cv_path_FGREP="$GREP -F" 11073 else 11074 if test -z "$FGREP"; then 11075 ac_path_FGREP_found=false 11076 # Loop through the user's path and test for each of PROGNAME-LIST 11077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11078for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11079do 11080 IFS=$as_save_IFS 11081 test -z "$as_dir" && as_dir=. 11082 for ac_prog in fgrep; do 11083 for ac_exec_ext in '' $ac_executable_extensions; do 11084 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11085 as_fn_executable_p "$ac_path_FGREP" || continue 11086# Check for GNU ac_path_FGREP and select it if it is found. 11087 # Check for GNU $ac_path_FGREP 11088case `"$ac_path_FGREP" --version 2>&1` in 11089*GNU*) 11090 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11091*) 11092 ac_count=0 11093 $as_echo_n 0123456789 >"conftest.in" 11094 while : 11095 do 11096 cat "conftest.in" "conftest.in" >"conftest.tmp" 11097 mv "conftest.tmp" "conftest.in" 11098 cp "conftest.in" "conftest.nl" 11099 $as_echo 'FGREP' >> "conftest.nl" 11100 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11102 as_fn_arith $ac_count + 1 && ac_count=$as_val 11103 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11104 # Best one so far, save it but keep looking for a better one 11105 ac_cv_path_FGREP="$ac_path_FGREP" 11106 ac_path_FGREP_max=$ac_count 11107 fi 11108 # 10*(2^10) chars as input seems more than enough 11109 test $ac_count -gt 10 && break 11110 done 11111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11112esac 11113 11114 $ac_path_FGREP_found && break 3 11115 done 11116 done 11117 done 11118IFS=$as_save_IFS 11119 if test -z "$ac_cv_path_FGREP"; then 11120 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11121 fi 11122else 11123 ac_cv_path_FGREP=$FGREP 11124fi 11125 11126 fi 11127fi 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11129$as_echo "$ac_cv_path_FGREP" >&6; } 11130 FGREP="$ac_cv_path_FGREP" 11131 11132 11133test -z "$GREP" && GREP=grep 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153# Check whether --with-gnu-ld was given. 11154if test "${with_gnu_ld+set}" = set; then : 11155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 11156else 11157 with_gnu_ld=no 11158fi 11159 11160ac_prog=ld 11161if test "$GCC" = yes; then 11162 # Check if gcc -print-prog-name=ld gives a path. 11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 11164$as_echo_n "checking for ld used by $CC... " >&6; } 11165 case $host in 11166 *-*-mingw*) 11167 # gcc leaves a trailing carriage return which upsets mingw 11168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 11169 *) 11170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 11171 esac 11172 case $ac_prog in 11173 # Accept absolute paths. 11174 [\\/]* | ?:[\\/]*) 11175 re_direlt='/[^/][^/]*/\.\./' 11176 # Canonicalize the pathname of ld 11177 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 11178 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 11179 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 11180 done 11181 test -z "$LD" && LD="$ac_prog" 11182 ;; 11183 "") 11184 # If it fails, then pretend we aren't using GCC. 11185 ac_prog=ld 11186 ;; 11187 *) 11188 # If it is relative, then search for the first ld in PATH. 11189 with_gnu_ld=unknown 11190 ;; 11191 esac 11192elif test "$with_gnu_ld" = yes; then 11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 11194$as_echo_n "checking for GNU ld... " >&6; } 11195else 11196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 11197$as_echo_n "checking for non-GNU ld... " >&6; } 11198fi 11199if ${lt_cv_path_LD+:} false; then : 11200 $as_echo_n "(cached) " >&6 11201else 11202 if test -z "$LD"; then 11203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11204 for ac_dir in $PATH; do 11205 IFS="$lt_save_ifs" 11206 test -z "$ac_dir" && ac_dir=. 11207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 11208 lt_cv_path_LD="$ac_dir/$ac_prog" 11209 # Check to see if the program is GNU ld. I'd rather use --version, 11210 # but apparently some variants of GNU ld only accept -v. 11211 # Break only if it was the GNU/non-GNU ld that we prefer. 11212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 11213 *GNU* | *'with BFD'*) 11214 test "$with_gnu_ld" != no && break 11215 ;; 11216 *) 11217 test "$with_gnu_ld" != yes && break 11218 ;; 11219 esac 11220 fi 11221 done 11222 IFS="$lt_save_ifs" 11223else 11224 lt_cv_path_LD="$LD" # Let the user override the test with a path. 11225fi 11226fi 11227 11228LD="$lt_cv_path_LD" 11229if test -n "$LD"; then 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 11231$as_echo "$LD" >&6; } 11232else 11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11234$as_echo "no" >&6; } 11235fi 11236test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 11238$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 11239if ${lt_cv_prog_gnu_ld+:} false; then : 11240 $as_echo_n "(cached) " >&6 11241else 11242 # I'd rather use --version here, but apparently some GNU lds only accept -v. 11243case `$LD -v 2>&1 </dev/null` in 11244*GNU* | *'with BFD'*) 11245 lt_cv_prog_gnu_ld=yes 11246 ;; 11247*) 11248 lt_cv_prog_gnu_ld=no 11249 ;; 11250esac 11251fi 11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 11253$as_echo "$lt_cv_prog_gnu_ld" >&6; } 11254with_gnu_ld=$lt_cv_prog_gnu_ld 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11265$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11266if ${lt_cv_path_NM+:} false; then : 11267 $as_echo_n "(cached) " >&6 11268else 11269 if test -n "$NM"; then 11270 # Let the user override the test. 11271 lt_cv_path_NM="$NM" 11272else 11273 lt_nm_to_check="${ac_tool_prefix}nm" 11274 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11275 lt_nm_to_check="$lt_nm_to_check nm" 11276 fi 11277 for lt_tmp_nm in $lt_nm_to_check; do 11278 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11279 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11280 IFS="$lt_save_ifs" 11281 test -z "$ac_dir" && ac_dir=. 11282 tmp_nm="$ac_dir/$lt_tmp_nm" 11283 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11284 # Check to see if the nm accepts a BSD-compat flag. 11285 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11286 # nm: unknown option "B" ignored 11287 # Tru64's nm complains that /dev/null is an invalid object file 11288 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11289 */dev/null* | *'Invalid file or object type'*) 11290 lt_cv_path_NM="$tmp_nm -B" 11291 break 11292 ;; 11293 *) 11294 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11295 */dev/null*) 11296 lt_cv_path_NM="$tmp_nm -p" 11297 break 11298 ;; 11299 *) 11300 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11301 continue # so that we can try to find one that supports BSD flags 11302 ;; 11303 esac 11304 ;; 11305 esac 11306 fi 11307 done 11308 IFS="$lt_save_ifs" 11309 done 11310 : ${lt_cv_path_NM=no} 11311fi 11312fi 11313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11314$as_echo "$lt_cv_path_NM" >&6; } 11315if test "$lt_cv_path_NM" != "no"; then 11316 NM="$lt_cv_path_NM" 11317else 11318 # Didn't find any BSD compatible name lister, look for dumpbin. 11319 if test -n "$DUMPBIN"; then : 11320 # Let the user override the test. 11321 else 11322 if test -n "$ac_tool_prefix"; then 11323 for ac_prog in dumpbin "link -dump" 11324 do 11325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11326set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11328$as_echo_n "checking for $ac_word... " >&6; } 11329if ${ac_cv_prog_DUMPBIN+:} false; then : 11330 $as_echo_n "(cached) " >&6 11331else 11332 if test -n "$DUMPBIN"; then 11333 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11334else 11335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11336for as_dir in $PATH 11337do 11338 IFS=$as_save_IFS 11339 test -z "$as_dir" && as_dir=. 11340 for ac_exec_ext in '' $ac_executable_extensions; do 11341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11342 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11344 break 2 11345 fi 11346done 11347 done 11348IFS=$as_save_IFS 11349 11350fi 11351fi 11352DUMPBIN=$ac_cv_prog_DUMPBIN 11353if test -n "$DUMPBIN"; then 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11355$as_echo "$DUMPBIN" >&6; } 11356else 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11358$as_echo "no" >&6; } 11359fi 11360 11361 11362 test -n "$DUMPBIN" && break 11363 done 11364fi 11365if test -z "$DUMPBIN"; then 11366 ac_ct_DUMPBIN=$DUMPBIN 11367 for ac_prog in dumpbin "link -dump" 11368do 11369 # Extract the first word of "$ac_prog", so it can be a program name with args. 11370set dummy $ac_prog; ac_word=$2 11371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11372$as_echo_n "checking for $ac_word... " >&6; } 11373if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 11374 $as_echo_n "(cached) " >&6 11375else 11376 if test -n "$ac_ct_DUMPBIN"; then 11377 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11378else 11379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11380for as_dir in $PATH 11381do 11382 IFS=$as_save_IFS 11383 test -z "$as_dir" && as_dir=. 11384 for ac_exec_ext in '' $ac_executable_extensions; do 11385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11386 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11388 break 2 11389 fi 11390done 11391 done 11392IFS=$as_save_IFS 11393 11394fi 11395fi 11396ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11397if test -n "$ac_ct_DUMPBIN"; then 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11399$as_echo "$ac_ct_DUMPBIN" >&6; } 11400else 11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11402$as_echo "no" >&6; } 11403fi 11404 11405 11406 test -n "$ac_ct_DUMPBIN" && break 11407done 11408 11409 if test "x$ac_ct_DUMPBIN" = x; then 11410 DUMPBIN=":" 11411 else 11412 case $cross_compiling:$ac_tool_warned in 11413yes:) 11414{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11415$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11416ac_tool_warned=yes ;; 11417esac 11418 DUMPBIN=$ac_ct_DUMPBIN 11419 fi 11420fi 11421 11422 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11423 *COFF*) 11424 DUMPBIN="$DUMPBIN -symbols" 11425 ;; 11426 *) 11427 DUMPBIN=: 11428 ;; 11429 esac 11430 fi 11431 11432 if test "$DUMPBIN" != ":"; then 11433 NM="$DUMPBIN" 11434 fi 11435fi 11436test -z "$NM" && NM=nm 11437 11438 11439 11440 11441 11442 11443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11444$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11445if ${lt_cv_nm_interface+:} false; then : 11446 $as_echo_n "(cached) " >&6 11447else 11448 lt_cv_nm_interface="BSD nm" 11449 echo "int some_variable = 0;" > conftest.$ac_ext 11450 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11451 (eval "$ac_compile" 2>conftest.err) 11452 cat conftest.err >&5 11453 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11454 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11455 cat conftest.err >&5 11456 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11457 cat conftest.out >&5 11458 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11459 lt_cv_nm_interface="MS dumpbin" 11460 fi 11461 rm -f conftest* 11462fi 11463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11464$as_echo "$lt_cv_nm_interface" >&6; } 11465 11466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11467$as_echo_n "checking whether ln -s works... " >&6; } 11468LN_S=$as_ln_s 11469if test "$LN_S" = "ln -s"; then 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11471$as_echo "yes" >&6; } 11472else 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11474$as_echo "no, using $LN_S" >&6; } 11475fi 11476 11477# find the maximum length of command line arguments 11478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 11479$as_echo_n "checking the maximum length of command line arguments... " >&6; } 11480if ${lt_cv_sys_max_cmd_len+:} false; then : 11481 $as_echo_n "(cached) " >&6 11482else 11483 i=0 11484 teststring="ABCD" 11485 11486 case $build_os in 11487 msdosdjgpp*) 11488 # On DJGPP, this test can blow up pretty badly due to problems in libc 11489 # (any single argument exceeding 2000 bytes causes a buffer overrun 11490 # during glob expansion). Even if it were fixed, the result of this 11491 # check would be larger than it should be. 11492 lt_cv_sys_max_cmd_len=12288; # 12K is about right 11493 ;; 11494 11495 gnu*) 11496 # Under GNU Hurd, this test is not required because there is 11497 # no limit to the length of command line arguments. 11498 # Libtool will interpret -1 as no limit whatsoever 11499 lt_cv_sys_max_cmd_len=-1; 11500 ;; 11501 11502 cygwin* | mingw* | cegcc*) 11503 # On Win9x/ME, this test blows up -- it succeeds, but takes 11504 # about 5 minutes as the teststring grows exponentially. 11505 # Worse, since 9x/ME are not pre-emptively multitasking, 11506 # you end up with a "frozen" computer, even though with patience 11507 # the test eventually succeeds (with a max line length of 256k). 11508 # Instead, let's just punt: use the minimum linelength reported by 11509 # all of the supported platforms: 8192 (on NT/2K/XP). 11510 lt_cv_sys_max_cmd_len=8192; 11511 ;; 11512 11513 mint*) 11514 # On MiNT this can take a long time and run out of memory. 11515 lt_cv_sys_max_cmd_len=8192; 11516 ;; 11517 11518 amigaos*) 11519 # On AmigaOS with pdksh, this test takes hours, literally. 11520 # So we just punt and use a minimum line length of 8192. 11521 lt_cv_sys_max_cmd_len=8192; 11522 ;; 11523 11524 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 11525 # This has been around since 386BSD, at least. Likely further. 11526 if test -x /sbin/sysctl; then 11527 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 11528 elif test -x /usr/sbin/sysctl; then 11529 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 11530 else 11531 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 11532 fi 11533 # And add a safety zone 11534 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11535 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11536 ;; 11537 11538 interix*) 11539 # We know the value 262144 and hardcode it with a safety zone (like BSD) 11540 lt_cv_sys_max_cmd_len=196608 11541 ;; 11542 11543 os2*) 11544 # The test takes a long time on OS/2. 11545 lt_cv_sys_max_cmd_len=8192 11546 ;; 11547 11548 osf*) 11549 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 11550 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 11551 # nice to cause kernel panics so lets avoid the loop below. 11552 # First set a reasonable default. 11553 lt_cv_sys_max_cmd_len=16384 11554 # 11555 if test -x /sbin/sysconfig; then 11556 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 11557 *1*) lt_cv_sys_max_cmd_len=-1 ;; 11558 esac 11559 fi 11560 ;; 11561 sco3.2v5*) 11562 lt_cv_sys_max_cmd_len=102400 11563 ;; 11564 sysv5* | sco5v6* | sysv4.2uw2*) 11565 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 11566 if test -n "$kargmax"; then 11567 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 11568 else 11569 lt_cv_sys_max_cmd_len=32768 11570 fi 11571 ;; 11572 *) 11573 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 11574 if test -n "$lt_cv_sys_max_cmd_len" && \ 11575 test undefined != "$lt_cv_sys_max_cmd_len"; then 11576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 11577 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 11578 else 11579 # Make teststring a little bigger before we do anything with it. 11580 # a 1K string should be a reasonable start. 11581 for i in 1 2 3 4 5 6 7 8 ; do 11582 teststring=$teststring$teststring 11583 done 11584 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 11585 # If test is not a shell built-in, we'll probably end up computing a 11586 # maximum length that is only half of the actual maximum length, but 11587 # we can't tell. 11588 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 11589 = "X$teststring$teststring"; } >/dev/null 2>&1 && 11590 test $i != 17 # 1/2 MB should be enough 11591 do 11592 i=`expr $i + 1` 11593 teststring=$teststring$teststring 11594 done 11595 # Only check the string length outside the loop. 11596 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 11597 teststring= 11598 # Add a significant safety factor because C++ compilers can tack on 11599 # massive amounts of additional arguments before passing them to the 11600 # linker. It appears as though 1/2 is a usable value. 11601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 11602 fi 11603 ;; 11604 esac 11605 11606fi 11607 11608if test -n $lt_cv_sys_max_cmd_len ; then 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 11610$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 11611else 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11613$as_echo "none" >&6; } 11614fi 11615max_cmd_len=$lt_cv_sys_max_cmd_len 11616 11617 11618 11619 11620 11621 11622: ${CP="cp -f"} 11623: ${MV="mv -f"} 11624: ${RM="rm -f"} 11625 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 11627$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 11628# Try some XSI features 11629xsi_shell=no 11630( _lt_dummy="a/b/c" 11631 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 11632 = c,a/b,b/c, \ 11633 && eval 'test $(( 1 + 1 )) -eq 2 \ 11634 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 11635 && xsi_shell=yes 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 11637$as_echo "$xsi_shell" >&6; } 11638 11639 11640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 11641$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 11642lt_shell_append=no 11643( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 11644 >/dev/null 2>&1 \ 11645 && lt_shell_append=yes 11646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 11647$as_echo "$lt_shell_append" >&6; } 11648 11649 11650if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 11651 lt_unset=unset 11652else 11653 lt_unset=false 11654fi 11655 11656 11657 11658 11659 11660# test EBCDIC or ASCII 11661case `echo X|tr X '\101'` in 11662 A) # ASCII based system 11663 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 11664 lt_SP2NL='tr \040 \012' 11665 lt_NL2SP='tr \015\012 \040\040' 11666 ;; 11667 *) # EBCDIC based system 11668 lt_SP2NL='tr \100 \n' 11669 lt_NL2SP='tr \r\n \100\100' 11670 ;; 11671esac 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 11682$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 11683if ${lt_cv_to_host_file_cmd+:} false; then : 11684 $as_echo_n "(cached) " >&6 11685else 11686 case $host in 11687 *-*-mingw* ) 11688 case $build in 11689 *-*-mingw* ) # actually msys 11690 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 11691 ;; 11692 *-*-cygwin* ) 11693 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 11694 ;; 11695 * ) # otherwise, assume *nix 11696 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 11697 ;; 11698 esac 11699 ;; 11700 *-*-cygwin* ) 11701 case $build in 11702 *-*-mingw* ) # actually msys 11703 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 11704 ;; 11705 *-*-cygwin* ) 11706 lt_cv_to_host_file_cmd=func_convert_file_noop 11707 ;; 11708 * ) # otherwise, assume *nix 11709 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 11710 ;; 11711 esac 11712 ;; 11713 * ) # unhandled hosts (and "normal" native builds) 11714 lt_cv_to_host_file_cmd=func_convert_file_noop 11715 ;; 11716esac 11717 11718fi 11719 11720to_host_file_cmd=$lt_cv_to_host_file_cmd 11721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 11722$as_echo "$lt_cv_to_host_file_cmd" >&6; } 11723 11724 11725 11726 11727 11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 11729$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 11730if ${lt_cv_to_tool_file_cmd+:} false; then : 11731 $as_echo_n "(cached) " >&6 11732else 11733 #assume ordinary cross tools, or native build. 11734lt_cv_to_tool_file_cmd=func_convert_file_noop 11735case $host in 11736 *-*-mingw* ) 11737 case $build in 11738 *-*-mingw* ) # actually msys 11739 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 11740 ;; 11741 esac 11742 ;; 11743esac 11744 11745fi 11746 11747to_tool_file_cmd=$lt_cv_to_tool_file_cmd 11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 11749$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 11750 11751 11752 11753 11754 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 11756$as_echo_n "checking for $LD option to reload object files... " >&6; } 11757if ${lt_cv_ld_reload_flag+:} false; then : 11758 $as_echo_n "(cached) " >&6 11759else 11760 lt_cv_ld_reload_flag='-r' 11761fi 11762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 11763$as_echo "$lt_cv_ld_reload_flag" >&6; } 11764reload_flag=$lt_cv_ld_reload_flag 11765case $reload_flag in 11766"" | " "*) ;; 11767*) reload_flag=" $reload_flag" ;; 11768esac 11769reload_cmds='$LD$reload_flag -o $output$reload_objs' 11770case $host_os in 11771 cygwin* | mingw* | pw32* | cegcc*) 11772 if test "$GCC" != yes; then 11773 reload_cmds=false 11774 fi 11775 ;; 11776 darwin*) 11777 if test "$GCC" = yes; then 11778 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 11779 else 11780 reload_cmds='$LD$reload_flag -o $output$reload_objs' 11781 fi 11782 ;; 11783esac 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793if test -n "$ac_tool_prefix"; then 11794 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11795set dummy ${ac_tool_prefix}objdump; ac_word=$2 11796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11797$as_echo_n "checking for $ac_word... " >&6; } 11798if ${ac_cv_prog_OBJDUMP+:} false; then : 11799 $as_echo_n "(cached) " >&6 11800else 11801 if test -n "$OBJDUMP"; then 11802 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11803else 11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11805for as_dir in $PATH 11806do 11807 IFS=$as_save_IFS 11808 test -z "$as_dir" && as_dir=. 11809 for ac_exec_ext in '' $ac_executable_extensions; do 11810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11811 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11813 break 2 11814 fi 11815done 11816 done 11817IFS=$as_save_IFS 11818 11819fi 11820fi 11821OBJDUMP=$ac_cv_prog_OBJDUMP 11822if test -n "$OBJDUMP"; then 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11824$as_echo "$OBJDUMP" >&6; } 11825else 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11827$as_echo "no" >&6; } 11828fi 11829 11830 11831fi 11832if test -z "$ac_cv_prog_OBJDUMP"; then 11833 ac_ct_OBJDUMP=$OBJDUMP 11834 # Extract the first word of "objdump", so it can be a program name with args. 11835set dummy objdump; ac_word=$2 11836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11837$as_echo_n "checking for $ac_word... " >&6; } 11838if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 11839 $as_echo_n "(cached) " >&6 11840else 11841 if test -n "$ac_ct_OBJDUMP"; then 11842 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11843else 11844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11845for as_dir in $PATH 11846do 11847 IFS=$as_save_IFS 11848 test -z "$as_dir" && as_dir=. 11849 for ac_exec_ext in '' $ac_executable_extensions; do 11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11851 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11853 break 2 11854 fi 11855done 11856 done 11857IFS=$as_save_IFS 11858 11859fi 11860fi 11861ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11862if test -n "$ac_ct_OBJDUMP"; then 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11864$as_echo "$ac_ct_OBJDUMP" >&6; } 11865else 11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11867$as_echo "no" >&6; } 11868fi 11869 11870 if test "x$ac_ct_OBJDUMP" = x; then 11871 OBJDUMP="false" 11872 else 11873 case $cross_compiling:$ac_tool_warned in 11874yes:) 11875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11877ac_tool_warned=yes ;; 11878esac 11879 OBJDUMP=$ac_ct_OBJDUMP 11880 fi 11881else 11882 OBJDUMP="$ac_cv_prog_OBJDUMP" 11883fi 11884 11885test -z "$OBJDUMP" && OBJDUMP=objdump 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 11896$as_echo_n "checking how to recognize dependent libraries... " >&6; } 11897if ${lt_cv_deplibs_check_method+:} false; then : 11898 $as_echo_n "(cached) " >&6 11899else 11900 lt_cv_file_magic_cmd='$MAGIC_CMD' 11901lt_cv_file_magic_test_file= 11902lt_cv_deplibs_check_method='unknown' 11903# Need to set the preceding variable on all platforms that support 11904# interlibrary dependencies. 11905# 'none' -- dependencies not supported. 11906# `unknown' -- same as none, but documents that we really don't know. 11907# 'pass_all' -- all dependencies passed with no checks. 11908# 'test_compile' -- check by making test program. 11909# 'file_magic [[regex]]' -- check by looking for files in library path 11910# which responds to the $file_magic_cmd with a given extended regex. 11911# If you have `file' or equivalent on your system and you're not sure 11912# whether `pass_all' will *always* work, you probably want this one. 11913 11914case $host_os in 11915aix[4-9]*) 11916 lt_cv_deplibs_check_method=pass_all 11917 ;; 11918 11919beos*) 11920 lt_cv_deplibs_check_method=pass_all 11921 ;; 11922 11923bsdi[45]*) 11924 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 11925 lt_cv_file_magic_cmd='/usr/bin/file -L' 11926 lt_cv_file_magic_test_file=/shlib/libc.so 11927 ;; 11928 11929cygwin*) 11930 # func_win32_libid is a shell function defined in ltmain.sh 11931 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11932 lt_cv_file_magic_cmd='func_win32_libid' 11933 ;; 11934 11935mingw* | pw32*) 11936 # Base MSYS/MinGW do not provide the 'file' command needed by 11937 # func_win32_libid shell function, so use a weaker test based on 'objdump', 11938 # unless we find 'file', for example because we are cross-compiling. 11939 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 11940 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 11941 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 11942 lt_cv_file_magic_cmd='func_win32_libid' 11943 else 11944 # Keep this pattern in sync with the one in func_win32_libid. 11945 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 11946 lt_cv_file_magic_cmd='$OBJDUMP -f' 11947 fi 11948 ;; 11949 11950cegcc*) 11951 # use the weaker test based on 'objdump'. See mingw*. 11952 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 11953 lt_cv_file_magic_cmd='$OBJDUMP -f' 11954 ;; 11955 11956darwin* | rhapsody*) 11957 lt_cv_deplibs_check_method=pass_all 11958 ;; 11959 11960freebsd* | dragonfly*) 11961 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 11962 case $host_cpu in 11963 i*86 ) 11964 # Not sure whether the presence of OpenBSD here was a mistake. 11965 # Let's accept both of them until this is cleared up. 11966 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 11967 lt_cv_file_magic_cmd=/usr/bin/file 11968 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 11969 ;; 11970 esac 11971 else 11972 lt_cv_deplibs_check_method=pass_all 11973 fi 11974 ;; 11975 11976haiku*) 11977 lt_cv_deplibs_check_method=pass_all 11978 ;; 11979 11980hpux10.20* | hpux11*) 11981 lt_cv_file_magic_cmd=/usr/bin/file 11982 case $host_cpu in 11983 ia64*) 11984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 11985 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 11986 ;; 11987 hppa*64*) 11988 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]' 11989 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 11990 ;; 11991 *) 11992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 11993 lt_cv_file_magic_test_file=/usr/lib/libc.sl 11994 ;; 11995 esac 11996 ;; 11997 11998interix[3-9]*) 11999 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12001 ;; 12002 12003irix5* | irix6* | nonstopux*) 12004 case $LD in 12005 *-32|*"-32 ") libmagic=32-bit;; 12006 *-n32|*"-n32 ") libmagic=N32;; 12007 *-64|*"-64 ") libmagic=64-bit;; 12008 *) libmagic=never-match;; 12009 esac 12010 lt_cv_deplibs_check_method=pass_all 12011 ;; 12012 12013# This must be glibc/ELF. 12014linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12015 lt_cv_deplibs_check_method=pass_all 12016 ;; 12017 12018netbsd* | netbsdelf*-gnu) 12019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12021 else 12022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12023 fi 12024 ;; 12025 12026newos6*) 12027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12028 lt_cv_file_magic_cmd=/usr/bin/file 12029 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12030 ;; 12031 12032*nto* | *qnx*) 12033 lt_cv_deplibs_check_method=pass_all 12034 ;; 12035 12036openbsd*) 12037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12039 else 12040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12041 fi 12042 ;; 12043 12044osf3* | osf4* | osf5*) 12045 lt_cv_deplibs_check_method=pass_all 12046 ;; 12047 12048rdos*) 12049 lt_cv_deplibs_check_method=pass_all 12050 ;; 12051 12052solaris*) 12053 lt_cv_deplibs_check_method=pass_all 12054 ;; 12055 12056sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12057 lt_cv_deplibs_check_method=pass_all 12058 ;; 12059 12060sysv4 | sysv4.3*) 12061 case $host_vendor in 12062 motorola) 12063 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]' 12064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12065 ;; 12066 ncr) 12067 lt_cv_deplibs_check_method=pass_all 12068 ;; 12069 sequent) 12070 lt_cv_file_magic_cmd='/bin/file' 12071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12072 ;; 12073 sni) 12074 lt_cv_file_magic_cmd='/bin/file' 12075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12076 lt_cv_file_magic_test_file=/lib/libc.so 12077 ;; 12078 siemens) 12079 lt_cv_deplibs_check_method=pass_all 12080 ;; 12081 pc) 12082 lt_cv_deplibs_check_method=pass_all 12083 ;; 12084 esac 12085 ;; 12086 12087tpf*) 12088 lt_cv_deplibs_check_method=pass_all 12089 ;; 12090esac 12091 12092fi 12093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12094$as_echo "$lt_cv_deplibs_check_method" >&6; } 12095 12096file_magic_glob= 12097want_nocaseglob=no 12098if test "$build" = "$host"; then 12099 case $host_os in 12100 mingw* | pw32*) 12101 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12102 want_nocaseglob=yes 12103 else 12104 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12105 fi 12106 ;; 12107 esac 12108fi 12109 12110file_magic_cmd=$lt_cv_file_magic_cmd 12111deplibs_check_method=$lt_cv_deplibs_check_method 12112test -z "$deplibs_check_method" && deplibs_check_method=unknown 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135if test -n "$ac_tool_prefix"; then 12136 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12137set dummy ${ac_tool_prefix}dlltool; 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_DLLTOOL+:} false; then : 12141 $as_echo_n "(cached) " >&6 12142else 12143 if test -n "$DLLTOOL"; then 12144 ac_cv_prog_DLLTOOL="$DLLTOOL" # 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_DLLTOOL="${ac_tool_prefix}dlltool" 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 12163DLLTOOL=$ac_cv_prog_DLLTOOL 12164if test -n "$DLLTOOL"; then 12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12166$as_echo "$DLLTOOL" >&6; } 12167else 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12169$as_echo "no" >&6; } 12170fi 12171 12172 12173fi 12174if test -z "$ac_cv_prog_DLLTOOL"; then 12175 ac_ct_DLLTOOL=$DLLTOOL 12176 # Extract the first word of "dlltool", so it can be a program name with args. 12177set dummy dlltool; ac_word=$2 12178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12179$as_echo_n "checking for $ac_word... " >&6; } 12180if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 12181 $as_echo_n "(cached) " >&6 12182else 12183 if test -n "$ac_ct_DLLTOOL"; then 12184 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12185else 12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12187for as_dir in $PATH 12188do 12189 IFS=$as_save_IFS 12190 test -z "$as_dir" && as_dir=. 12191 for ac_exec_ext in '' $ac_executable_extensions; do 12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12193 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12195 break 2 12196 fi 12197done 12198 done 12199IFS=$as_save_IFS 12200 12201fi 12202fi 12203ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12204if test -n "$ac_ct_DLLTOOL"; then 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12206$as_echo "$ac_ct_DLLTOOL" >&6; } 12207else 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12209$as_echo "no" >&6; } 12210fi 12211 12212 if test "x$ac_ct_DLLTOOL" = x; then 12213 DLLTOOL="false" 12214 else 12215 case $cross_compiling:$ac_tool_warned in 12216yes:) 12217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12219ac_tool_warned=yes ;; 12220esac 12221 DLLTOOL=$ac_ct_DLLTOOL 12222 fi 12223else 12224 DLLTOOL="$ac_cv_prog_DLLTOOL" 12225fi 12226 12227test -z "$DLLTOOL" && DLLTOOL=dlltool 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12239$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12240if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 12241 $as_echo_n "(cached) " >&6 12242else 12243 lt_cv_sharedlib_from_linklib_cmd='unknown' 12244 12245case $host_os in 12246cygwin* | mingw* | pw32* | cegcc*) 12247 # two different shell functions defined in ltmain.sh 12248 # decide which to use based on capabilities of $DLLTOOL 12249 case `$DLLTOOL --help 2>&1` in 12250 *--identify-strict*) 12251 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12252 ;; 12253 *) 12254 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12255 ;; 12256 esac 12257 ;; 12258*) 12259 # fallback: assume linklib IS sharedlib 12260 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12261 ;; 12262esac 12263 12264fi 12265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12266$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12267sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12268test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12269 12270 12271 12272 12273 12274 12275 12276if test -n "$ac_tool_prefix"; then 12277 for ac_prog in ar 12278 do 12279 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12280set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12282$as_echo_n "checking for $ac_word... " >&6; } 12283if ${ac_cv_prog_AR+:} false; then : 12284 $as_echo_n "(cached) " >&6 12285else 12286 if test -n "$AR"; then 12287 ac_cv_prog_AR="$AR" # Let the user override the test. 12288else 12289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12290for as_dir in $PATH 12291do 12292 IFS=$as_save_IFS 12293 test -z "$as_dir" && as_dir=. 12294 for ac_exec_ext in '' $ac_executable_extensions; do 12295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12296 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 12297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12298 break 2 12299 fi 12300done 12301 done 12302IFS=$as_save_IFS 12303 12304fi 12305fi 12306AR=$ac_cv_prog_AR 12307if test -n "$AR"; then 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12309$as_echo "$AR" >&6; } 12310else 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12312$as_echo "no" >&6; } 12313fi 12314 12315 12316 test -n "$AR" && break 12317 done 12318fi 12319if test -z "$AR"; then 12320 ac_ct_AR=$AR 12321 for ac_prog in ar 12322do 12323 # Extract the first word of "$ac_prog", so it can be a program name with args. 12324set dummy $ac_prog; ac_word=$2 12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12326$as_echo_n "checking for $ac_word... " >&6; } 12327if ${ac_cv_prog_ac_ct_AR+:} false; then : 12328 $as_echo_n "(cached) " >&6 12329else 12330 if test -n "$ac_ct_AR"; then 12331 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12332else 12333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12334for as_dir in $PATH 12335do 12336 IFS=$as_save_IFS 12337 test -z "$as_dir" && as_dir=. 12338 for ac_exec_ext in '' $ac_executable_extensions; do 12339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12340 ac_cv_prog_ac_ct_AR="$ac_prog" 12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12342 break 2 12343 fi 12344done 12345 done 12346IFS=$as_save_IFS 12347 12348fi 12349fi 12350ac_ct_AR=$ac_cv_prog_ac_ct_AR 12351if test -n "$ac_ct_AR"; then 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12353$as_echo "$ac_ct_AR" >&6; } 12354else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12356$as_echo "no" >&6; } 12357fi 12358 12359 12360 test -n "$ac_ct_AR" && break 12361done 12362 12363 if test "x$ac_ct_AR" = x; then 12364 AR="false" 12365 else 12366 case $cross_compiling:$ac_tool_warned in 12367yes:) 12368{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12370ac_tool_warned=yes ;; 12371esac 12372 AR=$ac_ct_AR 12373 fi 12374fi 12375 12376: ${AR=ar} 12377: ${AR_FLAGS=cru} 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 12390$as_echo_n "checking for archiver @FILE support... " >&6; } 12391if ${lt_cv_ar_at_file+:} false; then : 12392 $as_echo_n "(cached) " >&6 12393else 12394 lt_cv_ar_at_file=no 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12396/* end confdefs.h. */ 12397 12398int 12399main () 12400{ 12401 12402 ; 12403 return 0; 12404} 12405_ACEOF 12406if ac_fn_c_try_compile "$LINENO"; then : 12407 echo conftest.$ac_objext > conftest.lst 12408 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 12409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12410 (eval $lt_ar_try) 2>&5 12411 ac_status=$? 12412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12413 test $ac_status = 0; } 12414 if test "$ac_status" -eq 0; then 12415 # Ensure the archiver fails upon bogus file names. 12416 rm -f conftest.$ac_objext libconftest.a 12417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 12418 (eval $lt_ar_try) 2>&5 12419 ac_status=$? 12420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12421 test $ac_status = 0; } 12422 if test "$ac_status" -ne 0; then 12423 lt_cv_ar_at_file=@ 12424 fi 12425 fi 12426 rm -f conftest.* libconftest.a 12427 12428fi 12429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12430 12431fi 12432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 12433$as_echo "$lt_cv_ar_at_file" >&6; } 12434 12435if test "x$lt_cv_ar_at_file" = xno; then 12436 archiver_list_spec= 12437else 12438 archiver_list_spec=$lt_cv_ar_at_file 12439fi 12440 12441 12442 12443 12444 12445 12446 12447if test -n "$ac_tool_prefix"; then 12448 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12449set dummy ${ac_tool_prefix}strip; ac_word=$2 12450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12451$as_echo_n "checking for $ac_word... " >&6; } 12452if ${ac_cv_prog_STRIP+:} false; then : 12453 $as_echo_n "(cached) " >&6 12454else 12455 if test -n "$STRIP"; then 12456 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12457else 12458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12459for as_dir in $PATH 12460do 12461 IFS=$as_save_IFS 12462 test -z "$as_dir" && as_dir=. 12463 for ac_exec_ext in '' $ac_executable_extensions; do 12464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12465 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12467 break 2 12468 fi 12469done 12470 done 12471IFS=$as_save_IFS 12472 12473fi 12474fi 12475STRIP=$ac_cv_prog_STRIP 12476if test -n "$STRIP"; then 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12478$as_echo "$STRIP" >&6; } 12479else 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12481$as_echo "no" >&6; } 12482fi 12483 12484 12485fi 12486if test -z "$ac_cv_prog_STRIP"; then 12487 ac_ct_STRIP=$STRIP 12488 # Extract the first word of "strip", so it can be a program name with args. 12489set dummy strip; ac_word=$2 12490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12491$as_echo_n "checking for $ac_word... " >&6; } 12492if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 if test -n "$ac_ct_STRIP"; then 12496 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12497else 12498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12499for as_dir in $PATH 12500do 12501 IFS=$as_save_IFS 12502 test -z "$as_dir" && as_dir=. 12503 for ac_exec_ext in '' $ac_executable_extensions; do 12504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12505 ac_cv_prog_ac_ct_STRIP="strip" 12506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12507 break 2 12508 fi 12509done 12510 done 12511IFS=$as_save_IFS 12512 12513fi 12514fi 12515ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12516if test -n "$ac_ct_STRIP"; then 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12518$as_echo "$ac_ct_STRIP" >&6; } 12519else 12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12521$as_echo "no" >&6; } 12522fi 12523 12524 if test "x$ac_ct_STRIP" = x; then 12525 STRIP=":" 12526 else 12527 case $cross_compiling:$ac_tool_warned in 12528yes:) 12529{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12530$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12531ac_tool_warned=yes ;; 12532esac 12533 STRIP=$ac_ct_STRIP 12534 fi 12535else 12536 STRIP="$ac_cv_prog_STRIP" 12537fi 12538 12539test -z "$STRIP" && STRIP=: 12540 12541 12542 12543 12544 12545 12546if test -n "$ac_tool_prefix"; then 12547 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12548set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12550$as_echo_n "checking for $ac_word... " >&6; } 12551if ${ac_cv_prog_RANLIB+:} false; then : 12552 $as_echo_n "(cached) " >&6 12553else 12554 if test -n "$RANLIB"; then 12555 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12556else 12557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12558for as_dir in $PATH 12559do 12560 IFS=$as_save_IFS 12561 test -z "$as_dir" && as_dir=. 12562 for ac_exec_ext in '' $ac_executable_extensions; do 12563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12564 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12566 break 2 12567 fi 12568done 12569 done 12570IFS=$as_save_IFS 12571 12572fi 12573fi 12574RANLIB=$ac_cv_prog_RANLIB 12575if test -n "$RANLIB"; then 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12577$as_echo "$RANLIB" >&6; } 12578else 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12580$as_echo "no" >&6; } 12581fi 12582 12583 12584fi 12585if test -z "$ac_cv_prog_RANLIB"; then 12586 ac_ct_RANLIB=$RANLIB 12587 # Extract the first word of "ranlib", so it can be a program name with args. 12588set dummy ranlib; ac_word=$2 12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12590$as_echo_n "checking for $ac_word... " >&6; } 12591if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12592 $as_echo_n "(cached) " >&6 12593else 12594 if test -n "$ac_ct_RANLIB"; then 12595 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12596else 12597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12598for as_dir in $PATH 12599do 12600 IFS=$as_save_IFS 12601 test -z "$as_dir" && as_dir=. 12602 for ac_exec_ext in '' $ac_executable_extensions; do 12603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12604 ac_cv_prog_ac_ct_RANLIB="ranlib" 12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12606 break 2 12607 fi 12608done 12609 done 12610IFS=$as_save_IFS 12611 12612fi 12613fi 12614ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12615if test -n "$ac_ct_RANLIB"; then 12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12617$as_echo "$ac_ct_RANLIB" >&6; } 12618else 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12620$as_echo "no" >&6; } 12621fi 12622 12623 if test "x$ac_ct_RANLIB" = x; then 12624 RANLIB=":" 12625 else 12626 case $cross_compiling:$ac_tool_warned in 12627yes:) 12628{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12629$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12630ac_tool_warned=yes ;; 12631esac 12632 RANLIB=$ac_ct_RANLIB 12633 fi 12634else 12635 RANLIB="$ac_cv_prog_RANLIB" 12636fi 12637 12638test -z "$RANLIB" && RANLIB=: 12639 12640 12641 12642 12643 12644 12645# Determine commands to create old-style static archives. 12646old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 12647old_postinstall_cmds='chmod 644 $oldlib' 12648old_postuninstall_cmds= 12649 12650if test -n "$RANLIB"; then 12651 case $host_os in 12652 openbsd*) 12653 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 12654 ;; 12655 *) 12656 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 12657 ;; 12658 esac 12659 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 12660fi 12661 12662case $host_os in 12663 darwin*) 12664 lock_old_archive_extraction=yes ;; 12665 *) 12666 lock_old_archive_extraction=no ;; 12667esac 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707# If no C compiler was specified, use CC. 12708LTCC=${LTCC-"$CC"} 12709 12710# If no C compiler flags were specified, use CFLAGS. 12711LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 12712 12713# Allow CC to be a program name with arguments. 12714compiler=$CC 12715 12716 12717# Check for command to grab the raw symbol name followed by C symbol from nm. 12718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 12719$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 12720if ${lt_cv_sys_global_symbol_pipe+:} false; then : 12721 $as_echo_n "(cached) " >&6 12722else 12723 12724# These are sane defaults that work on at least a few old systems. 12725# [They come from Ultrix. What could be older than Ultrix?!! ;)] 12726 12727# Character class describing NM global symbol codes. 12728symcode='[BCDEGRST]' 12729 12730# Regexp to match symbols that can be accessed directly from C. 12731sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 12732 12733# Define system-specific variables. 12734case $host_os in 12735aix*) 12736 symcode='[BCDT]' 12737 ;; 12738cygwin* | mingw* | pw32* | cegcc*) 12739 symcode='[ABCDGISTW]' 12740 ;; 12741hpux*) 12742 if test "$host_cpu" = ia64; then 12743 symcode='[ABCDEGRST]' 12744 fi 12745 ;; 12746irix* | nonstopux*) 12747 symcode='[BCDEGRST]' 12748 ;; 12749osf*) 12750 symcode='[BCDEGQRST]' 12751 ;; 12752solaris*) 12753 symcode='[BDRT]' 12754 ;; 12755sco3.2v5*) 12756 symcode='[DT]' 12757 ;; 12758sysv4.2uw2*) 12759 symcode='[DT]' 12760 ;; 12761sysv5* | sco5v6* | unixware* | OpenUNIX*) 12762 symcode='[ABDT]' 12763 ;; 12764sysv4) 12765 symcode='[DFNSTU]' 12766 ;; 12767esac 12768 12769# If we're using GNU nm, then use its standard symbol codes. 12770case `$NM -V 2>&1` in 12771*GNU* | *'with BFD'*) 12772 symcode='[ABCDGIRSTW]' ;; 12773esac 12774 12775# Transform an extracted symbol line into a proper C declaration. 12776# Some systems (esp. on ia64) link data and code symbols differently, 12777# so use this general approach. 12778lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 12779 12780# Transform an extracted symbol line into symbol name and symbol address 12781lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 12782lt_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'" 12783 12784# Handle CRLF in mingw tool chain 12785opt_cr= 12786case $build_os in 12787mingw*) 12788 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 12789 ;; 12790esac 12791 12792# Try without a prefix underscore, then with it. 12793for ac_symprfx in "" "_"; do 12794 12795 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 12796 symxfrm="\\1 $ac_symprfx\\2 \\2" 12797 12798 # Write the raw and C identifiers. 12799 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12800 # Fake it for dumpbin and say T for any non-static function 12801 # and D for any global variable. 12802 # Also find C++ and __fastcall symbols from MSVC++, 12803 # which start with @ or ?. 12804 lt_cv_sys_global_symbol_pipe="$AWK '"\ 12805" {last_section=section; section=\$ 3};"\ 12806" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 12807" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 12808" \$ 0!~/External *\|/{next};"\ 12809" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 12810" {if(hide[section]) next};"\ 12811" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 12812" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 12813" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 12814" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 12815" ' prfx=^$ac_symprfx" 12816 else 12817 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 12818 fi 12819 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 12820 12821 # Check to see that the pipe works correctly. 12822 pipe_works=no 12823 12824 rm -f conftest* 12825 cat > conftest.$ac_ext <<_LT_EOF 12826#ifdef __cplusplus 12827extern "C" { 12828#endif 12829char nm_test_var; 12830void nm_test_func(void); 12831void nm_test_func(void){} 12832#ifdef __cplusplus 12833} 12834#endif 12835int main(){nm_test_var='a';nm_test_func();return(0);} 12836_LT_EOF 12837 12838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 12839 (eval $ac_compile) 2>&5 12840 ac_status=$? 12841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12842 test $ac_status = 0; }; then 12843 # Now try to grab the symbols. 12844 nlist=conftest.nm 12845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 12846 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 12847 ac_status=$? 12848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12849 test $ac_status = 0; } && test -s "$nlist"; then 12850 # Try sorting and uniquifying the output. 12851 if sort "$nlist" | uniq > "$nlist"T; then 12852 mv -f "$nlist"T "$nlist" 12853 else 12854 rm -f "$nlist"T 12855 fi 12856 12857 # Make sure that we snagged all the symbols we need. 12858 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 12859 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 12860 cat <<_LT_EOF > conftest.$ac_ext 12861/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 12862#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 12863/* DATA imports from DLLs on WIN32 con't be const, because runtime 12864 relocations are performed -- see ld's documentation on pseudo-relocs. */ 12865# define LT_DLSYM_CONST 12866#elif defined(__osf__) 12867/* This system does not cope well with relocations in const data. */ 12868# define LT_DLSYM_CONST 12869#else 12870# define LT_DLSYM_CONST const 12871#endif 12872 12873#ifdef __cplusplus 12874extern "C" { 12875#endif 12876 12877_LT_EOF 12878 # Now generate the symbol file. 12879 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 12880 12881 cat <<_LT_EOF >> conftest.$ac_ext 12882 12883/* The mapping between symbol names and symbols. */ 12884LT_DLSYM_CONST struct { 12885 const char *name; 12886 void *address; 12887} 12888lt__PROGRAM__LTX_preloaded_symbols[] = 12889{ 12890 { "@PROGRAM@", (void *) 0 }, 12891_LT_EOF 12892 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 12893 cat <<\_LT_EOF >> conftest.$ac_ext 12894 {0, (void *) 0} 12895}; 12896 12897/* This works around a problem in FreeBSD linker */ 12898#ifdef FREEBSD_WORKAROUND 12899static const void *lt_preloaded_setup() { 12900 return lt__PROGRAM__LTX_preloaded_symbols; 12901} 12902#endif 12903 12904#ifdef __cplusplus 12905} 12906#endif 12907_LT_EOF 12908 # Now try linking the two files. 12909 mv conftest.$ac_objext conftstm.$ac_objext 12910 lt_globsym_save_LIBS=$LIBS 12911 lt_globsym_save_CFLAGS=$CFLAGS 12912 LIBS="conftstm.$ac_objext" 12913 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 12914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12915 (eval $ac_link) 2>&5 12916 ac_status=$? 12917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12918 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 12919 pipe_works=yes 12920 fi 12921 LIBS=$lt_globsym_save_LIBS 12922 CFLAGS=$lt_globsym_save_CFLAGS 12923 else 12924 echo "cannot find nm_test_func in $nlist" >&5 12925 fi 12926 else 12927 echo "cannot find nm_test_var in $nlist" >&5 12928 fi 12929 else 12930 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 12931 fi 12932 else 12933 echo "$progname: failed program was:" >&5 12934 cat conftest.$ac_ext >&5 12935 fi 12936 rm -rf conftest* conftst* 12937 12938 # Do not use the global_symbol_pipe unless it works. 12939 if test "$pipe_works" = yes; then 12940 break 12941 else 12942 lt_cv_sys_global_symbol_pipe= 12943 fi 12944done 12945 12946fi 12947 12948if test -z "$lt_cv_sys_global_symbol_pipe"; then 12949 lt_cv_sys_global_symbol_to_cdecl= 12950fi 12951if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 12953$as_echo "failed" >&6; } 12954else 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 12956$as_echo "ok" >&6; } 12957fi 12958 12959# Response file support. 12960if test "$lt_cv_nm_interface" = "MS dumpbin"; then 12961 nm_file_list_spec='@' 12962elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 12963 nm_file_list_spec='@' 12964fi 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 12993$as_echo_n "checking for sysroot... " >&6; } 12994 12995# Check whether --with-sysroot was given. 12996if test "${with_sysroot+set}" = set; then : 12997 withval=$with_sysroot; 12998else 12999 with_sysroot=no 13000fi 13001 13002 13003lt_sysroot= 13004case ${with_sysroot} in #( 13005 yes) 13006 if test "$GCC" = yes; then 13007 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13008 fi 13009 ;; #( 13010 /*) 13011 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13012 ;; #( 13013 no|'') 13014 ;; #( 13015 *) 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 13017$as_echo "${with_sysroot}" >&6; } 13018 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 13019 ;; 13020esac 13021 13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13023$as_echo "${lt_sysroot:-no}" >&6; } 13024 13025 13026 13027 13028 13029# Check whether --enable-libtool-lock was given. 13030if test "${enable_libtool_lock+set}" = set; then : 13031 enableval=$enable_libtool_lock; 13032fi 13033 13034test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 13035 13036# Some flags need to be propagated to the compiler or linker for good 13037# libtool support. 13038case $host in 13039ia64-*-hpux*) 13040 # Find out which ABI we are using. 13041 echo 'int i;' > conftest.$ac_ext 13042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13043 (eval $ac_compile) 2>&5 13044 ac_status=$? 13045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13046 test $ac_status = 0; }; then 13047 case `/usr/bin/file conftest.$ac_objext` in 13048 *ELF-32*) 13049 HPUX_IA64_MODE="32" 13050 ;; 13051 *ELF-64*) 13052 HPUX_IA64_MODE="64" 13053 ;; 13054 esac 13055 fi 13056 rm -rf conftest* 13057 ;; 13058*-*-irix6*) 13059 # Find out which ABI we are using. 13060 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13062 (eval $ac_compile) 2>&5 13063 ac_status=$? 13064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13065 test $ac_status = 0; }; then 13066 if test "$lt_cv_prog_gnu_ld" = yes; then 13067 case `/usr/bin/file conftest.$ac_objext` in 13068 *32-bit*) 13069 LD="${LD-ld} -melf32bsmip" 13070 ;; 13071 *N32*) 13072 LD="${LD-ld} -melf32bmipn32" 13073 ;; 13074 *64-bit*) 13075 LD="${LD-ld} -melf64bmip" 13076 ;; 13077 esac 13078 else 13079 case `/usr/bin/file conftest.$ac_objext` in 13080 *32-bit*) 13081 LD="${LD-ld} -32" 13082 ;; 13083 *N32*) 13084 LD="${LD-ld} -n32" 13085 ;; 13086 *64-bit*) 13087 LD="${LD-ld} -64" 13088 ;; 13089 esac 13090 fi 13091 fi 13092 rm -rf conftest* 13093 ;; 13094 13095x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 13096s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13097 # Find out which ABI we are using. 13098 echo 'int i;' > conftest.$ac_ext 13099 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13100 (eval $ac_compile) 2>&5 13101 ac_status=$? 13102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13103 test $ac_status = 0; }; then 13104 case `/usr/bin/file conftest.o` in 13105 *32-bit*) 13106 case $host in 13107 x86_64-*kfreebsd*-gnu) 13108 LD="${LD-ld} -m elf_i386_fbsd" 13109 ;; 13110 x86_64-*linux*) 13111 case `/usr/bin/file conftest.o` in 13112 *x86-64*) 13113 LD="${LD-ld} -m elf32_x86_64" 13114 ;; 13115 *) 13116 LD="${LD-ld} -m elf_i386" 13117 ;; 13118 esac 13119 ;; 13120 powerpc64le-*) 13121 LD="${LD-ld} -m elf32lppclinux" 13122 ;; 13123 powerpc64-*) 13124 LD="${LD-ld} -m elf32ppclinux" 13125 ;; 13126 s390x-*linux*) 13127 LD="${LD-ld} -m elf_s390" 13128 ;; 13129 sparc64-*linux*) 13130 LD="${LD-ld} -m elf32_sparc" 13131 ;; 13132 esac 13133 ;; 13134 *64-bit*) 13135 case $host in 13136 x86_64-*kfreebsd*-gnu) 13137 LD="${LD-ld} -m elf_x86_64_fbsd" 13138 ;; 13139 x86_64-*linux*) 13140 LD="${LD-ld} -m elf_x86_64" 13141 ;; 13142 powerpcle-*) 13143 LD="${LD-ld} -m elf64lppc" 13144 ;; 13145 powerpc-*) 13146 LD="${LD-ld} -m elf64ppc" 13147 ;; 13148 s390*-*linux*|s390*-*tpf*) 13149 LD="${LD-ld} -m elf64_s390" 13150 ;; 13151 sparc*-*linux*) 13152 LD="${LD-ld} -m elf64_sparc" 13153 ;; 13154 esac 13155 ;; 13156 esac 13157 fi 13158 rm -rf conftest* 13159 ;; 13160 13161*-*-sco3.2v5*) 13162 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13163 SAVE_CFLAGS="$CFLAGS" 13164 CFLAGS="$CFLAGS -belf" 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13166$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13167if ${lt_cv_cc_needs_belf+:} false; then : 13168 $as_echo_n "(cached) " >&6 13169else 13170 ac_ext=c 13171ac_cpp='$CPP $CPPFLAGS' 13172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13174ac_compiler_gnu=$ac_cv_c_compiler_gnu 13175 13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13177/* end confdefs.h. */ 13178 13179int 13180main () 13181{ 13182 13183 ; 13184 return 0; 13185} 13186_ACEOF 13187if ac_fn_c_try_link "$LINENO"; then : 13188 lt_cv_cc_needs_belf=yes 13189else 13190 lt_cv_cc_needs_belf=no 13191fi 13192rm -f core conftest.err conftest.$ac_objext \ 13193 conftest$ac_exeext conftest.$ac_ext 13194 ac_ext=c 13195ac_cpp='$CPP $CPPFLAGS' 13196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13198ac_compiler_gnu=$ac_cv_c_compiler_gnu 13199 13200fi 13201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13202$as_echo "$lt_cv_cc_needs_belf" >&6; } 13203 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13204 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13205 CFLAGS="$SAVE_CFLAGS" 13206 fi 13207 ;; 13208*-*solaris*) 13209 # Find out which ABI we are using. 13210 echo 'int i;' > conftest.$ac_ext 13211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13212 (eval $ac_compile) 2>&5 13213 ac_status=$? 13214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13215 test $ac_status = 0; }; then 13216 case `/usr/bin/file conftest.o` in 13217 *64-bit*) 13218 case $lt_cv_prog_gnu_ld in 13219 yes*) 13220 case $host in 13221 i?86-*-solaris*) 13222 LD="${LD-ld} -m elf_x86_64" 13223 ;; 13224 sparc*-*-solaris*) 13225 LD="${LD-ld} -m elf64_sparc" 13226 ;; 13227 esac 13228 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13229 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13230 LD="${LD-ld}_sol2" 13231 fi 13232 ;; 13233 *) 13234 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13235 LD="${LD-ld} -64" 13236 fi 13237 ;; 13238 esac 13239 ;; 13240 esac 13241 fi 13242 rm -rf conftest* 13243 ;; 13244esac 13245 13246need_locks="$enable_libtool_lock" 13247 13248if test -n "$ac_tool_prefix"; then 13249 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13250set dummy ${ac_tool_prefix}mt; ac_word=$2 13251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13252$as_echo_n "checking for $ac_word... " >&6; } 13253if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 13254 $as_echo_n "(cached) " >&6 13255else 13256 if test -n "$MANIFEST_TOOL"; then 13257 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13258else 13259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13260for as_dir in $PATH 13261do 13262 IFS=$as_save_IFS 13263 test -z "$as_dir" && as_dir=. 13264 for ac_exec_ext in '' $ac_executable_extensions; do 13265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13266 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13268 break 2 13269 fi 13270done 13271 done 13272IFS=$as_save_IFS 13273 13274fi 13275fi 13276MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13277if test -n "$MANIFEST_TOOL"; then 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13279$as_echo "$MANIFEST_TOOL" >&6; } 13280else 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13282$as_echo "no" >&6; } 13283fi 13284 13285 13286fi 13287if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13288 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13289 # Extract the first word of "mt", so it can be a program name with args. 13290set dummy mt; ac_word=$2 13291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13292$as_echo_n "checking for $ac_word... " >&6; } 13293if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 13294 $as_echo_n "(cached) " >&6 13295else 13296 if test -n "$ac_ct_MANIFEST_TOOL"; then 13297 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13298else 13299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13300for as_dir in $PATH 13301do 13302 IFS=$as_save_IFS 13303 test -z "$as_dir" && as_dir=. 13304 for ac_exec_ext in '' $ac_executable_extensions; do 13305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13306 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13308 break 2 13309 fi 13310done 13311 done 13312IFS=$as_save_IFS 13313 13314fi 13315fi 13316ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 13317if test -n "$ac_ct_MANIFEST_TOOL"; then 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 13319$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 13320else 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13322$as_echo "no" >&6; } 13323fi 13324 13325 if test "x$ac_ct_MANIFEST_TOOL" = x; then 13326 MANIFEST_TOOL=":" 13327 else 13328 case $cross_compiling:$ac_tool_warned in 13329yes:) 13330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13332ac_tool_warned=yes ;; 13333esac 13334 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 13335 fi 13336else 13337 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 13338fi 13339 13340test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 13342$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 13343if ${lt_cv_path_mainfest_tool+:} false; then : 13344 $as_echo_n "(cached) " >&6 13345else 13346 lt_cv_path_mainfest_tool=no 13347 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 13348 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 13349 cat conftest.err >&5 13350 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 13351 lt_cv_path_mainfest_tool=yes 13352 fi 13353 rm -f conftest* 13354fi 13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 13356$as_echo "$lt_cv_path_mainfest_tool" >&6; } 13357if test "x$lt_cv_path_mainfest_tool" != xyes; then 13358 MANIFEST_TOOL=: 13359fi 13360 13361 13362 13363 13364 13365 13366 case $host_os in 13367 rhapsody* | darwin*) 13368 if test -n "$ac_tool_prefix"; then 13369 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 13370set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 13371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13372$as_echo_n "checking for $ac_word... " >&6; } 13373if ${ac_cv_prog_DSYMUTIL+:} false; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 if test -n "$DSYMUTIL"; then 13377 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 13378else 13379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13380for as_dir in $PATH 13381do 13382 IFS=$as_save_IFS 13383 test -z "$as_dir" && as_dir=. 13384 for ac_exec_ext in '' $ac_executable_extensions; do 13385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13386 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 13387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13388 break 2 13389 fi 13390done 13391 done 13392IFS=$as_save_IFS 13393 13394fi 13395fi 13396DSYMUTIL=$ac_cv_prog_DSYMUTIL 13397if test -n "$DSYMUTIL"; then 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 13399$as_echo "$DSYMUTIL" >&6; } 13400else 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13402$as_echo "no" >&6; } 13403fi 13404 13405 13406fi 13407if test -z "$ac_cv_prog_DSYMUTIL"; then 13408 ac_ct_DSYMUTIL=$DSYMUTIL 13409 # Extract the first word of "dsymutil", so it can be a program name with args. 13410set dummy dsymutil; ac_word=$2 13411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13412$as_echo_n "checking for $ac_word... " >&6; } 13413if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 13414 $as_echo_n "(cached) " >&6 13415else 13416 if test -n "$ac_ct_DSYMUTIL"; then 13417 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 13418else 13419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13420for as_dir in $PATH 13421do 13422 IFS=$as_save_IFS 13423 test -z "$as_dir" && as_dir=. 13424 for ac_exec_ext in '' $ac_executable_extensions; do 13425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13426 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 13427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13428 break 2 13429 fi 13430done 13431 done 13432IFS=$as_save_IFS 13433 13434fi 13435fi 13436ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 13437if test -n "$ac_ct_DSYMUTIL"; then 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 13439$as_echo "$ac_ct_DSYMUTIL" >&6; } 13440else 13441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13442$as_echo "no" >&6; } 13443fi 13444 13445 if test "x$ac_ct_DSYMUTIL" = x; then 13446 DSYMUTIL=":" 13447 else 13448 case $cross_compiling:$ac_tool_warned in 13449yes:) 13450{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13451$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13452ac_tool_warned=yes ;; 13453esac 13454 DSYMUTIL=$ac_ct_DSYMUTIL 13455 fi 13456else 13457 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 13458fi 13459 13460 if test -n "$ac_tool_prefix"; then 13461 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 13462set dummy ${ac_tool_prefix}nmedit; ac_word=$2 13463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13464$as_echo_n "checking for $ac_word... " >&6; } 13465if ${ac_cv_prog_NMEDIT+:} false; then : 13466 $as_echo_n "(cached) " >&6 13467else 13468 if test -n "$NMEDIT"; then 13469 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 13470else 13471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13472for as_dir in $PATH 13473do 13474 IFS=$as_save_IFS 13475 test -z "$as_dir" && as_dir=. 13476 for ac_exec_ext in '' $ac_executable_extensions; do 13477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13478 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13480 break 2 13481 fi 13482done 13483 done 13484IFS=$as_save_IFS 13485 13486fi 13487fi 13488NMEDIT=$ac_cv_prog_NMEDIT 13489if test -n "$NMEDIT"; then 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 13491$as_echo "$NMEDIT" >&6; } 13492else 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13494$as_echo "no" >&6; } 13495fi 13496 13497 13498fi 13499if test -z "$ac_cv_prog_NMEDIT"; then 13500 ac_ct_NMEDIT=$NMEDIT 13501 # Extract the first word of "nmedit", so it can be a program name with args. 13502set dummy nmedit; ac_word=$2 13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13504$as_echo_n "checking for $ac_word... " >&6; } 13505if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 if test -n "$ac_ct_NMEDIT"; then 13509 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 13510else 13511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13512for as_dir in $PATH 13513do 13514 IFS=$as_save_IFS 13515 test -z "$as_dir" && as_dir=. 13516 for ac_exec_ext in '' $ac_executable_extensions; do 13517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13518 ac_cv_prog_ac_ct_NMEDIT="nmedit" 13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13520 break 2 13521 fi 13522done 13523 done 13524IFS=$as_save_IFS 13525 13526fi 13527fi 13528ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 13529if test -n "$ac_ct_NMEDIT"; then 13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 13531$as_echo "$ac_ct_NMEDIT" >&6; } 13532else 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13534$as_echo "no" >&6; } 13535fi 13536 13537 if test "x$ac_ct_NMEDIT" = x; then 13538 NMEDIT=":" 13539 else 13540 case $cross_compiling:$ac_tool_warned in 13541yes:) 13542{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13543$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13544ac_tool_warned=yes ;; 13545esac 13546 NMEDIT=$ac_ct_NMEDIT 13547 fi 13548else 13549 NMEDIT="$ac_cv_prog_NMEDIT" 13550fi 13551 13552 if test -n "$ac_tool_prefix"; then 13553 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 13554set dummy ${ac_tool_prefix}lipo; ac_word=$2 13555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13556$as_echo_n "checking for $ac_word... " >&6; } 13557if ${ac_cv_prog_LIPO+:} false; then : 13558 $as_echo_n "(cached) " >&6 13559else 13560 if test -n "$LIPO"; then 13561 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 13562else 13563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13564for as_dir in $PATH 13565do 13566 IFS=$as_save_IFS 13567 test -z "$as_dir" && as_dir=. 13568 for ac_exec_ext in '' $ac_executable_extensions; do 13569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13570 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 13571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13572 break 2 13573 fi 13574done 13575 done 13576IFS=$as_save_IFS 13577 13578fi 13579fi 13580LIPO=$ac_cv_prog_LIPO 13581if test -n "$LIPO"; then 13582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 13583$as_echo "$LIPO" >&6; } 13584else 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13586$as_echo "no" >&6; } 13587fi 13588 13589 13590fi 13591if test -z "$ac_cv_prog_LIPO"; then 13592 ac_ct_LIPO=$LIPO 13593 # Extract the first word of "lipo", so it can be a program name with args. 13594set dummy lipo; ac_word=$2 13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13596$as_echo_n "checking for $ac_word... " >&6; } 13597if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 13598 $as_echo_n "(cached) " >&6 13599else 13600 if test -n "$ac_ct_LIPO"; then 13601 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 13602else 13603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13604for as_dir in $PATH 13605do 13606 IFS=$as_save_IFS 13607 test -z "$as_dir" && as_dir=. 13608 for ac_exec_ext in '' $ac_executable_extensions; do 13609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13610 ac_cv_prog_ac_ct_LIPO="lipo" 13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13612 break 2 13613 fi 13614done 13615 done 13616IFS=$as_save_IFS 13617 13618fi 13619fi 13620ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 13621if test -n "$ac_ct_LIPO"; then 13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 13623$as_echo "$ac_ct_LIPO" >&6; } 13624else 13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13626$as_echo "no" >&6; } 13627fi 13628 13629 if test "x$ac_ct_LIPO" = x; then 13630 LIPO=":" 13631 else 13632 case $cross_compiling:$ac_tool_warned in 13633yes:) 13634{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13635$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13636ac_tool_warned=yes ;; 13637esac 13638 LIPO=$ac_ct_LIPO 13639 fi 13640else 13641 LIPO="$ac_cv_prog_LIPO" 13642fi 13643 13644 if test -n "$ac_tool_prefix"; then 13645 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 13646set dummy ${ac_tool_prefix}otool; ac_word=$2 13647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13648$as_echo_n "checking for $ac_word... " >&6; } 13649if ${ac_cv_prog_OTOOL+:} false; then : 13650 $as_echo_n "(cached) " >&6 13651else 13652 if test -n "$OTOOL"; then 13653 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 13654else 13655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13656for as_dir in $PATH 13657do 13658 IFS=$as_save_IFS 13659 test -z "$as_dir" && as_dir=. 13660 for ac_exec_ext in '' $ac_executable_extensions; do 13661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13662 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 13663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13664 break 2 13665 fi 13666done 13667 done 13668IFS=$as_save_IFS 13669 13670fi 13671fi 13672OTOOL=$ac_cv_prog_OTOOL 13673if test -n "$OTOOL"; then 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 13675$as_echo "$OTOOL" >&6; } 13676else 13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13678$as_echo "no" >&6; } 13679fi 13680 13681 13682fi 13683if test -z "$ac_cv_prog_OTOOL"; then 13684 ac_ct_OTOOL=$OTOOL 13685 # Extract the first word of "otool", so it can be a program name with args. 13686set dummy otool; ac_word=$2 13687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13688$as_echo_n "checking for $ac_word... " >&6; } 13689if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 13690 $as_echo_n "(cached) " >&6 13691else 13692 if test -n "$ac_ct_OTOOL"; then 13693 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 13694else 13695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13696for as_dir in $PATH 13697do 13698 IFS=$as_save_IFS 13699 test -z "$as_dir" && as_dir=. 13700 for ac_exec_ext in '' $ac_executable_extensions; do 13701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13702 ac_cv_prog_ac_ct_OTOOL="otool" 13703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13704 break 2 13705 fi 13706done 13707 done 13708IFS=$as_save_IFS 13709 13710fi 13711fi 13712ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 13713if test -n "$ac_ct_OTOOL"; then 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 13715$as_echo "$ac_ct_OTOOL" >&6; } 13716else 13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13718$as_echo "no" >&6; } 13719fi 13720 13721 if test "x$ac_ct_OTOOL" = x; then 13722 OTOOL=":" 13723 else 13724 case $cross_compiling:$ac_tool_warned in 13725yes:) 13726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13728ac_tool_warned=yes ;; 13729esac 13730 OTOOL=$ac_ct_OTOOL 13731 fi 13732else 13733 OTOOL="$ac_cv_prog_OTOOL" 13734fi 13735 13736 if test -n "$ac_tool_prefix"; then 13737 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 13738set dummy ${ac_tool_prefix}otool64; ac_word=$2 13739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13740$as_echo_n "checking for $ac_word... " >&6; } 13741if ${ac_cv_prog_OTOOL64+:} false; then : 13742 $as_echo_n "(cached) " >&6 13743else 13744 if test -n "$OTOOL64"; then 13745 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 13746else 13747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13748for as_dir in $PATH 13749do 13750 IFS=$as_save_IFS 13751 test -z "$as_dir" && as_dir=. 13752 for ac_exec_ext in '' $ac_executable_extensions; do 13753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13754 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 13755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13756 break 2 13757 fi 13758done 13759 done 13760IFS=$as_save_IFS 13761 13762fi 13763fi 13764OTOOL64=$ac_cv_prog_OTOOL64 13765if test -n "$OTOOL64"; then 13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 13767$as_echo "$OTOOL64" >&6; } 13768else 13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13770$as_echo "no" >&6; } 13771fi 13772 13773 13774fi 13775if test -z "$ac_cv_prog_OTOOL64"; then 13776 ac_ct_OTOOL64=$OTOOL64 13777 # Extract the first word of "otool64", so it can be a program name with args. 13778set dummy otool64; ac_word=$2 13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13780$as_echo_n "checking for $ac_word... " >&6; } 13781if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 13782 $as_echo_n "(cached) " >&6 13783else 13784 if test -n "$ac_ct_OTOOL64"; then 13785 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 13786else 13787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13788for as_dir in $PATH 13789do 13790 IFS=$as_save_IFS 13791 test -z "$as_dir" && as_dir=. 13792 for ac_exec_ext in '' $ac_executable_extensions; do 13793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13794 ac_cv_prog_ac_ct_OTOOL64="otool64" 13795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13796 break 2 13797 fi 13798done 13799 done 13800IFS=$as_save_IFS 13801 13802fi 13803fi 13804ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 13805if test -n "$ac_ct_OTOOL64"; then 13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 13807$as_echo "$ac_ct_OTOOL64" >&6; } 13808else 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13810$as_echo "no" >&6; } 13811fi 13812 13813 if test "x$ac_ct_OTOOL64" = x; then 13814 OTOOL64=":" 13815 else 13816 case $cross_compiling:$ac_tool_warned in 13817yes:) 13818{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13819$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13820ac_tool_warned=yes ;; 13821esac 13822 OTOOL64=$ac_ct_OTOOL64 13823 fi 13824else 13825 OTOOL64="$ac_cv_prog_OTOOL64" 13826fi 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 13855$as_echo_n "checking for -single_module linker flag... " >&6; } 13856if ${lt_cv_apple_cc_single_mod+:} false; then : 13857 $as_echo_n "(cached) " >&6 13858else 13859 lt_cv_apple_cc_single_mod=no 13860 if test -z "${LT_MULTI_MODULE}"; then 13861 # By default we will add the -single_module flag. You can override 13862 # by either setting the environment variable LT_MULTI_MODULE 13863 # non-empty at configure time, or by adding -multi_module to the 13864 # link flags. 13865 rm -rf libconftest.dylib* 13866 echo "int foo(void){return 1;}" > conftest.c 13867 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13868-dynamiclib -Wl,-single_module conftest.c" >&5 13869 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 13870 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 13871 _lt_result=$? 13872 # If there is a non-empty error log, and "single_module" 13873 # appears in it, assume the flag caused a linker warning 13874 if test -s conftest.err && $GREP single_module conftest.err; then 13875 cat conftest.err >&5 13876 # Otherwise, if the output was created with a 0 exit code from 13877 # the compiler, it worked. 13878 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 13879 lt_cv_apple_cc_single_mod=yes 13880 else 13881 cat conftest.err >&5 13882 fi 13883 rm -rf libconftest.dylib* 13884 rm -f conftest.* 13885 fi 13886fi 13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 13888$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 13889 13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 13891$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 13892if ${lt_cv_ld_exported_symbols_list+:} false; then : 13893 $as_echo_n "(cached) " >&6 13894else 13895 lt_cv_ld_exported_symbols_list=no 13896 save_LDFLAGS=$LDFLAGS 13897 echo "_main" > conftest.sym 13898 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 13899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13900/* end confdefs.h. */ 13901 13902int 13903main () 13904{ 13905 13906 ; 13907 return 0; 13908} 13909_ACEOF 13910if ac_fn_c_try_link "$LINENO"; then : 13911 lt_cv_ld_exported_symbols_list=yes 13912else 13913 lt_cv_ld_exported_symbols_list=no 13914fi 13915rm -f core conftest.err conftest.$ac_objext \ 13916 conftest$ac_exeext conftest.$ac_ext 13917 LDFLAGS="$save_LDFLAGS" 13918 13919fi 13920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 13921$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 13922 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 13924$as_echo_n "checking for -force_load linker flag... " >&6; } 13925if ${lt_cv_ld_force_load+:} false; then : 13926 $as_echo_n "(cached) " >&6 13927else 13928 lt_cv_ld_force_load=no 13929 cat > conftest.c << _LT_EOF 13930int forced_loaded() { return 2;} 13931_LT_EOF 13932 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 13933 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 13934 echo "$AR cru libconftest.a conftest.o" >&5 13935 $AR cru libconftest.a conftest.o 2>&5 13936 echo "$RANLIB libconftest.a" >&5 13937 $RANLIB libconftest.a 2>&5 13938 cat > conftest.c << _LT_EOF 13939int main() { return 0;} 13940_LT_EOF 13941 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 13942 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 13943 _lt_result=$? 13944 if test -s conftest.err && $GREP force_load conftest.err; then 13945 cat conftest.err >&5 13946 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 13947 lt_cv_ld_force_load=yes 13948 else 13949 cat conftest.err >&5 13950 fi 13951 rm -f conftest.err libconftest.a conftest conftest.c 13952 rm -rf conftest.dSYM 13953 13954fi 13955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 13956$as_echo "$lt_cv_ld_force_load" >&6; } 13957 case $host_os in 13958 rhapsody* | darwin1.[012]) 13959 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 13960 darwin1.*) 13961 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13962 darwin*) # darwin 5.x on 13963 # if running on 10.5 or later, the deployment target defaults 13964 # to the OS version, if on x86, and 10.4, the deployment 13965 # target defaults to 10.4. Don't you love it? 13966 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 13967 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 13968 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13969 10.[012]*) 13970 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 13971 10.*) 13972 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 13973 esac 13974 ;; 13975 esac 13976 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 13977 _lt_dar_single_mod='$single_module' 13978 fi 13979 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 13980 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 13981 else 13982 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 13983 fi 13984 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 13985 _lt_dsymutil='~$DSYMUTIL $lib || :' 13986 else 13987 _lt_dsymutil= 13988 fi 13989 ;; 13990 esac 13991 13992for ac_header in dlfcn.h 13993do : 13994 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 13995" 13996if test "x$ac_cv_header_dlfcn_h" = xyes; then : 13997 cat >>confdefs.h <<_ACEOF 13998#define HAVE_DLFCN_H 1 13999_ACEOF 14000 14001fi 14002 14003done 14004 14005 14006 14007 14008 14009# Set options 14010 14011 14012 14013 enable_dlopen=no 14014 14015 14016 enable_win32_dll=no 14017 14018 14019 # Check whether --enable-shared was given. 14020if test "${enable_shared+set}" = set; then : 14021 enableval=$enable_shared; p=${PACKAGE-default} 14022 case $enableval in 14023 yes) enable_shared=yes ;; 14024 no) enable_shared=no ;; 14025 *) 14026 enable_shared=no 14027 # Look at the argument we got. We use all the common list separators. 14028 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14029 for pkg in $enableval; do 14030 IFS="$lt_save_ifs" 14031 if test "X$pkg" = "X$p"; then 14032 enable_shared=yes 14033 fi 14034 done 14035 IFS="$lt_save_ifs" 14036 ;; 14037 esac 14038else 14039 enable_shared=yes 14040fi 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052# Check whether --with-pic was given. 14053if test "${with_pic+set}" = set; then : 14054 withval=$with_pic; lt_p=${PACKAGE-default} 14055 case $withval in 14056 yes|no) pic_mode=$withval ;; 14057 *) 14058 pic_mode=default 14059 # Look at the argument we got. We use all the common list separators. 14060 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14061 for lt_pkg in $withval; do 14062 IFS="$lt_save_ifs" 14063 if test "X$lt_pkg" = "X$lt_p"; then 14064 pic_mode=yes 14065 fi 14066 done 14067 IFS="$lt_save_ifs" 14068 ;; 14069 esac 14070else 14071 pic_mode=default 14072fi 14073 14074 14075test -z "$pic_mode" && pic_mode=default 14076 14077 14078 14079 14080 14081 14082 14083 # Check whether --enable-fast-install was given. 14084if test "${enable_fast_install+set}" = set; then : 14085 enableval=$enable_fast_install; p=${PACKAGE-default} 14086 case $enableval in 14087 yes) enable_fast_install=yes ;; 14088 no) enable_fast_install=no ;; 14089 *) 14090 enable_fast_install=no 14091 # Look at the argument we got. We use all the common list separators. 14092 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14093 for pkg in $enableval; do 14094 IFS="$lt_save_ifs" 14095 if test "X$pkg" = "X$p"; then 14096 enable_fast_install=yes 14097 fi 14098 done 14099 IFS="$lt_save_ifs" 14100 ;; 14101 esac 14102else 14103 enable_fast_install=yes 14104fi 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116# This can be used to rebuild libtool when needed 14117LIBTOOL_DEPS="$ltmain" 14118 14119# Always use our own libtool. 14120LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151test -z "$LN_S" && LN_S="ln -s" 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166if test -n "${ZSH_VERSION+set}" ; then 14167 setopt NO_GLOB_SUBST 14168fi 14169 14170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14171$as_echo_n "checking for objdir... " >&6; } 14172if ${lt_cv_objdir+:} false; then : 14173 $as_echo_n "(cached) " >&6 14174else 14175 rm -f .libs 2>/dev/null 14176mkdir .libs 2>/dev/null 14177if test -d .libs; then 14178 lt_cv_objdir=.libs 14179else 14180 # MS-DOS does not allow filenames that begin with a dot. 14181 lt_cv_objdir=_libs 14182fi 14183rmdir .libs 2>/dev/null 14184fi 14185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14186$as_echo "$lt_cv_objdir" >&6; } 14187objdir=$lt_cv_objdir 14188 14189 14190 14191 14192 14193cat >>confdefs.h <<_ACEOF 14194#define LT_OBJDIR "$lt_cv_objdir/" 14195_ACEOF 14196 14197 14198 14199 14200case $host_os in 14201aix3*) 14202 # AIX sometimes has problems with the GCC collect2 program. For some 14203 # reason, if we set the COLLECT_NAMES environment variable, the problems 14204 # vanish in a puff of smoke. 14205 if test "X${COLLECT_NAMES+set}" != Xset; then 14206 COLLECT_NAMES= 14207 export COLLECT_NAMES 14208 fi 14209 ;; 14210esac 14211 14212# Global variables: 14213ofile=libtool 14214can_build_shared=yes 14215 14216# All known linkers require a `.a' archive for static linking (except MSVC, 14217# which needs '.lib'). 14218libext=a 14219 14220with_gnu_ld="$lt_cv_prog_gnu_ld" 14221 14222old_CC="$CC" 14223old_CFLAGS="$CFLAGS" 14224 14225# Set sane defaults for various variables 14226test -z "$CC" && CC=cc 14227test -z "$LTCC" && LTCC=$CC 14228test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14229test -z "$LD" && LD=ld 14230test -z "$ac_objext" && ac_objext=o 14231 14232for cc_temp in $compiler""; do 14233 case $cc_temp in 14234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14236 \-*) ;; 14237 *) break;; 14238 esac 14239done 14240cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14241 14242 14243# Only perform the check for file, if the check method requires it 14244test -z "$MAGIC_CMD" && MAGIC_CMD=file 14245case $deplibs_check_method in 14246file_magic*) 14247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14249$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14250if ${lt_cv_path_MAGIC_CMD+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252else 14253 case $MAGIC_CMD in 14254[\\/*] | ?:[\\/]*) 14255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14256 ;; 14257*) 14258 lt_save_MAGIC_CMD="$MAGIC_CMD" 14259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14261 for ac_dir in $ac_dummy; do 14262 IFS="$lt_save_ifs" 14263 test -z "$ac_dir" && ac_dir=. 14264 if test -f $ac_dir/${ac_tool_prefix}file; then 14265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14266 if test -n "$file_magic_test_file"; then 14267 case $deplibs_check_method in 14268 "file_magic "*) 14269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14272 $EGREP "$file_magic_regex" > /dev/null; then 14273 : 14274 else 14275 cat <<_LT_EOF 1>&2 14276 14277*** Warning: the command libtool uses to detect shared libraries, 14278*** $file_magic_cmd, produces output that libtool cannot recognize. 14279*** The result is that libtool may fail to recognize shared libraries 14280*** as such. This will affect the creation of libtool libraries that 14281*** depend on shared libraries, but programs linked with such libtool 14282*** libraries will work regardless of this problem. Nevertheless, you 14283*** may want to report the problem to your system manager and/or to 14284*** bug-libtool@gnu.org 14285 14286_LT_EOF 14287 fi ;; 14288 esac 14289 fi 14290 break 14291 fi 14292 done 14293 IFS="$lt_save_ifs" 14294 MAGIC_CMD="$lt_save_MAGIC_CMD" 14295 ;; 14296esac 14297fi 14298 14299MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14300if test -n "$MAGIC_CMD"; then 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14302$as_echo "$MAGIC_CMD" >&6; } 14303else 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14305$as_echo "no" >&6; } 14306fi 14307 14308 14309 14310 14311 14312if test -z "$lt_cv_path_MAGIC_CMD"; then 14313 if test -n "$ac_tool_prefix"; then 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 14315$as_echo_n "checking for file... " >&6; } 14316if ${lt_cv_path_MAGIC_CMD+:} false; then : 14317 $as_echo_n "(cached) " >&6 14318else 14319 case $MAGIC_CMD in 14320[\\/*] | ?:[\\/]*) 14321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14322 ;; 14323*) 14324 lt_save_MAGIC_CMD="$MAGIC_CMD" 14325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14327 for ac_dir in $ac_dummy; do 14328 IFS="$lt_save_ifs" 14329 test -z "$ac_dir" && ac_dir=. 14330 if test -f $ac_dir/file; then 14331 lt_cv_path_MAGIC_CMD="$ac_dir/file" 14332 if test -n "$file_magic_test_file"; then 14333 case $deplibs_check_method in 14334 "file_magic "*) 14335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 14336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 14338 $EGREP "$file_magic_regex" > /dev/null; then 14339 : 14340 else 14341 cat <<_LT_EOF 1>&2 14342 14343*** Warning: the command libtool uses to detect shared libraries, 14344*** $file_magic_cmd, produces output that libtool cannot recognize. 14345*** The result is that libtool may fail to recognize shared libraries 14346*** as such. This will affect the creation of libtool libraries that 14347*** depend on shared libraries, but programs linked with such libtool 14348*** libraries will work regardless of this problem. Nevertheless, you 14349*** may want to report the problem to your system manager and/or to 14350*** bug-libtool@gnu.org 14351 14352_LT_EOF 14353 fi ;; 14354 esac 14355 fi 14356 break 14357 fi 14358 done 14359 IFS="$lt_save_ifs" 14360 MAGIC_CMD="$lt_save_MAGIC_CMD" 14361 ;; 14362esac 14363fi 14364 14365MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 14366if test -n "$MAGIC_CMD"; then 14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 14368$as_echo "$MAGIC_CMD" >&6; } 14369else 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14371$as_echo "no" >&6; } 14372fi 14373 14374 14375 else 14376 MAGIC_CMD=: 14377 fi 14378fi 14379 14380 fi 14381 ;; 14382esac 14383 14384# Use C for the default configuration in the libtool script 14385 14386lt_save_CC="$CC" 14387ac_ext=c 14388ac_cpp='$CPP $CPPFLAGS' 14389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14391ac_compiler_gnu=$ac_cv_c_compiler_gnu 14392 14393 14394# Source file extension for C test sources. 14395ac_ext=c 14396 14397# Object file extension for compiled C test sources. 14398objext=o 14399objext=$objext 14400 14401# Code to be used in simple compile tests 14402lt_simple_compile_test_code="int some_variable = 0;" 14403 14404# Code to be used in simple link tests 14405lt_simple_link_test_code='int main(){return(0);}' 14406 14407 14408 14409 14410 14411 14412 14413# If no C compiler was specified, use CC. 14414LTCC=${LTCC-"$CC"} 14415 14416# If no C compiler flags were specified, use CFLAGS. 14417LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 14418 14419# Allow CC to be a program name with arguments. 14420compiler=$CC 14421 14422# Save the default compiler, since it gets overwritten when the other 14423# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 14424compiler_DEFAULT=$CC 14425 14426# save warnings/boilerplate of simple test code 14427ac_outfile=conftest.$ac_objext 14428echo "$lt_simple_compile_test_code" >conftest.$ac_ext 14429eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14430_lt_compiler_boilerplate=`cat conftest.err` 14431$RM conftest* 14432 14433ac_outfile=conftest.$ac_objext 14434echo "$lt_simple_link_test_code" >conftest.$ac_ext 14435eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 14436_lt_linker_boilerplate=`cat conftest.err` 14437$RM -r conftest* 14438 14439 14440if test -n "$compiler"; then 14441 14442lt_prog_compiler_no_builtin_flag= 14443 14444if test "$GCC" = yes; then 14445 case $cc_basename in 14446 nvcc*) 14447 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 14448 *) 14449 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 14450 esac 14451 14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14453$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 14454if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 14455 $as_echo_n "(cached) " >&6 14456else 14457 lt_cv_prog_compiler_rtti_exceptions=no 14458 ac_outfile=conftest.$ac_objext 14459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14460 lt_compiler_flag="-fno-rtti -fno-exceptions" 14461 # Insert the option either (1) after the last *FLAGS variable, or 14462 # (2) before a word containing "conftest.", or (3) at the end. 14463 # Note that $ac_compile itself does not contain backslashes and begins 14464 # with a dollar sign (not a hyphen), so the echo should work correctly. 14465 # The option is referenced via a variable to avoid confusing sed. 14466 lt_compile=`echo "$ac_compile" | $SED \ 14467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14469 -e 's:$: $lt_compiler_flag:'` 14470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14471 (eval "$lt_compile" 2>conftest.err) 14472 ac_status=$? 14473 cat conftest.err >&5 14474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14475 if (exit $ac_status) && test -s "$ac_outfile"; then 14476 # The compiler can only warn and ignore the option if not recognized 14477 # So say no if there are warnings other than the usual output. 14478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14481 lt_cv_prog_compiler_rtti_exceptions=yes 14482 fi 14483 fi 14484 $RM conftest* 14485 14486fi 14487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 14488$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 14489 14490if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 14491 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 14492else 14493 : 14494fi 14495 14496fi 14497 14498 14499 14500 14501 14502 14503 lt_prog_compiler_wl= 14504lt_prog_compiler_pic= 14505lt_prog_compiler_static= 14506 14507 14508 if test "$GCC" = yes; then 14509 lt_prog_compiler_wl='-Wl,' 14510 lt_prog_compiler_static='-static' 14511 14512 case $host_os in 14513 aix*) 14514 # All AIX code is PIC. 14515 if test "$host_cpu" = ia64; then 14516 # AIX 5 now supports IA64 processor 14517 lt_prog_compiler_static='-Bstatic' 14518 fi 14519 ;; 14520 14521 amigaos*) 14522 case $host_cpu in 14523 powerpc) 14524 # see comment about AmigaOS4 .so support 14525 lt_prog_compiler_pic='-fPIC' 14526 ;; 14527 m68k) 14528 # FIXME: we need at least 68020 code to build shared libraries, but 14529 # adding the `-m68020' flag to GCC prevents building anything better, 14530 # like `-m68040'. 14531 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 14532 ;; 14533 esac 14534 ;; 14535 14536 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 14537 # PIC is the default for these OSes. 14538 ;; 14539 14540 mingw* | cygwin* | pw32* | os2* | cegcc*) 14541 # This hack is so that the source file can tell whether it is being 14542 # built for inclusion in a dll (and should export symbols for example). 14543 # Although the cygwin gcc ignores -fPIC, still need this for old-style 14544 # (--disable-auto-import) libraries 14545 lt_prog_compiler_pic='-DDLL_EXPORT' 14546 ;; 14547 14548 darwin* | rhapsody*) 14549 # PIC is the default on this platform 14550 # Common symbols not allowed in MH_DYLIB files 14551 lt_prog_compiler_pic='-fno-common' 14552 ;; 14553 14554 haiku*) 14555 # PIC is the default for Haiku. 14556 # The "-static" flag exists, but is broken. 14557 lt_prog_compiler_static= 14558 ;; 14559 14560 hpux*) 14561 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 14562 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 14563 # sets the default TLS model and affects inlining. 14564 case $host_cpu in 14565 hppa*64*) 14566 # +Z the default 14567 ;; 14568 *) 14569 lt_prog_compiler_pic='-fPIC' 14570 ;; 14571 esac 14572 ;; 14573 14574 interix[3-9]*) 14575 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 14576 # Instead, we relocate shared libraries at runtime. 14577 ;; 14578 14579 msdosdjgpp*) 14580 # Just because we use GCC doesn't mean we suddenly get shared libraries 14581 # on systems that don't support them. 14582 lt_prog_compiler_can_build_shared=no 14583 enable_shared=no 14584 ;; 14585 14586 *nto* | *qnx*) 14587 # QNX uses GNU C++, but need to define -shared option too, otherwise 14588 # it will coredump. 14589 lt_prog_compiler_pic='-fPIC -shared' 14590 ;; 14591 14592 sysv4*MP*) 14593 if test -d /usr/nec; then 14594 lt_prog_compiler_pic=-Kconform_pic 14595 fi 14596 ;; 14597 14598 *) 14599 lt_prog_compiler_pic='-fPIC' 14600 ;; 14601 esac 14602 14603 case $cc_basename in 14604 nvcc*) # Cuda Compiler Driver 2.2 14605 lt_prog_compiler_wl='-Xlinker ' 14606 if test -n "$lt_prog_compiler_pic"; then 14607 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 14608 fi 14609 ;; 14610 esac 14611 else 14612 # PORTME Check for flag to pass linker flags through the system compiler. 14613 case $host_os in 14614 aix*) 14615 lt_prog_compiler_wl='-Wl,' 14616 if test "$host_cpu" = ia64; then 14617 # AIX 5 now supports IA64 processor 14618 lt_prog_compiler_static='-Bstatic' 14619 else 14620 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 14621 fi 14622 ;; 14623 14624 mingw* | cygwin* | pw32* | os2* | cegcc*) 14625 # This hack is so that the source file can tell whether it is being 14626 # built for inclusion in a dll (and should export symbols for example). 14627 lt_prog_compiler_pic='-DDLL_EXPORT' 14628 ;; 14629 14630 hpux9* | hpux10* | hpux11*) 14631 lt_prog_compiler_wl='-Wl,' 14632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 14633 # not for PA HP-UX. 14634 case $host_cpu in 14635 hppa*64*|ia64*) 14636 # +Z the default 14637 ;; 14638 *) 14639 lt_prog_compiler_pic='+Z' 14640 ;; 14641 esac 14642 # Is there a better lt_prog_compiler_static that works with the bundled CC? 14643 lt_prog_compiler_static='${wl}-a ${wl}archive' 14644 ;; 14645 14646 irix5* | irix6* | nonstopux*) 14647 lt_prog_compiler_wl='-Wl,' 14648 # PIC (with -KPIC) is the default. 14649 lt_prog_compiler_static='-non_shared' 14650 ;; 14651 14652 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14653 case $cc_basename in 14654 # old Intel for x86_64 which still supported -KPIC. 14655 ecc*) 14656 lt_prog_compiler_wl='-Wl,' 14657 lt_prog_compiler_pic='-KPIC' 14658 lt_prog_compiler_static='-static' 14659 ;; 14660 # icc used to be incompatible with GCC. 14661 # ICC 10 doesn't accept -KPIC any more. 14662 icc* | ifort*) 14663 lt_prog_compiler_wl='-Wl,' 14664 lt_prog_compiler_pic='-fPIC' 14665 lt_prog_compiler_static='-static' 14666 ;; 14667 # Lahey Fortran 8.1. 14668 lf95*) 14669 lt_prog_compiler_wl='-Wl,' 14670 lt_prog_compiler_pic='--shared' 14671 lt_prog_compiler_static='--static' 14672 ;; 14673 nagfor*) 14674 # NAG Fortran compiler 14675 lt_prog_compiler_wl='-Wl,-Wl,,' 14676 lt_prog_compiler_pic='-PIC' 14677 lt_prog_compiler_static='-Bstatic' 14678 ;; 14679 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 14680 # Portland Group compilers (*not* the Pentium gcc compiler, 14681 # which looks to be a dead project) 14682 lt_prog_compiler_wl='-Wl,' 14683 lt_prog_compiler_pic='-fpic' 14684 lt_prog_compiler_static='-Bstatic' 14685 ;; 14686 ccc*) 14687 lt_prog_compiler_wl='-Wl,' 14688 # All Alpha code is PIC. 14689 lt_prog_compiler_static='-non_shared' 14690 ;; 14691 xl* | bgxl* | bgf* | mpixl*) 14692 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 14693 lt_prog_compiler_wl='-Wl,' 14694 lt_prog_compiler_pic='-qpic' 14695 lt_prog_compiler_static='-qstaticlink' 14696 ;; 14697 *) 14698 case `$CC -V 2>&1 | sed 5q` in 14699 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 14700 # Sun Fortran 8.3 passes all unrecognized flags to the linker 14701 lt_prog_compiler_pic='-KPIC' 14702 lt_prog_compiler_static='-Bstatic' 14703 lt_prog_compiler_wl='' 14704 ;; 14705 *Sun\ F* | *Sun*Fortran*) 14706 lt_prog_compiler_pic='-KPIC' 14707 lt_prog_compiler_static='-Bstatic' 14708 lt_prog_compiler_wl='-Qoption ld ' 14709 ;; 14710 *Sun\ C*) 14711 # Sun C 5.9 14712 lt_prog_compiler_pic='-KPIC' 14713 lt_prog_compiler_static='-Bstatic' 14714 lt_prog_compiler_wl='-Wl,' 14715 ;; 14716 *Intel*\ [CF]*Compiler*) 14717 lt_prog_compiler_wl='-Wl,' 14718 lt_prog_compiler_pic='-fPIC' 14719 lt_prog_compiler_static='-static' 14720 ;; 14721 *Portland\ Group*) 14722 lt_prog_compiler_wl='-Wl,' 14723 lt_prog_compiler_pic='-fpic' 14724 lt_prog_compiler_static='-Bstatic' 14725 ;; 14726 esac 14727 ;; 14728 esac 14729 ;; 14730 14731 newsos6) 14732 lt_prog_compiler_pic='-KPIC' 14733 lt_prog_compiler_static='-Bstatic' 14734 ;; 14735 14736 *nto* | *qnx*) 14737 # QNX uses GNU C++, but need to define -shared option too, otherwise 14738 # it will coredump. 14739 lt_prog_compiler_pic='-fPIC -shared' 14740 ;; 14741 14742 osf3* | osf4* | osf5*) 14743 lt_prog_compiler_wl='-Wl,' 14744 # All OSF/1 code is PIC. 14745 lt_prog_compiler_static='-non_shared' 14746 ;; 14747 14748 rdos*) 14749 lt_prog_compiler_static='-non_shared' 14750 ;; 14751 14752 solaris*) 14753 lt_prog_compiler_pic='-KPIC' 14754 lt_prog_compiler_static='-Bstatic' 14755 case $cc_basename in 14756 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 14757 lt_prog_compiler_wl='-Qoption ld ';; 14758 *) 14759 lt_prog_compiler_wl='-Wl,';; 14760 esac 14761 ;; 14762 14763 sunos4*) 14764 lt_prog_compiler_wl='-Qoption ld ' 14765 lt_prog_compiler_pic='-PIC' 14766 lt_prog_compiler_static='-Bstatic' 14767 ;; 14768 14769 sysv4 | sysv4.2uw2* | sysv4.3*) 14770 lt_prog_compiler_wl='-Wl,' 14771 lt_prog_compiler_pic='-KPIC' 14772 lt_prog_compiler_static='-Bstatic' 14773 ;; 14774 14775 sysv4*MP*) 14776 if test -d /usr/nec ;then 14777 lt_prog_compiler_pic='-Kconform_pic' 14778 lt_prog_compiler_static='-Bstatic' 14779 fi 14780 ;; 14781 14782 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 14783 lt_prog_compiler_wl='-Wl,' 14784 lt_prog_compiler_pic='-KPIC' 14785 lt_prog_compiler_static='-Bstatic' 14786 ;; 14787 14788 unicos*) 14789 lt_prog_compiler_wl='-Wl,' 14790 lt_prog_compiler_can_build_shared=no 14791 ;; 14792 14793 uts4*) 14794 lt_prog_compiler_pic='-pic' 14795 lt_prog_compiler_static='-Bstatic' 14796 ;; 14797 14798 *) 14799 lt_prog_compiler_can_build_shared=no 14800 ;; 14801 esac 14802 fi 14803 14804case $host_os in 14805 # For platforms which do not support PIC, -DPIC is meaningless: 14806 *djgpp*) 14807 lt_prog_compiler_pic= 14808 ;; 14809 *) 14810 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 14811 ;; 14812esac 14813 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 14815$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 14816if ${lt_cv_prog_compiler_pic+:} false; then : 14817 $as_echo_n "(cached) " >&6 14818else 14819 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 14820fi 14821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 14822$as_echo "$lt_cv_prog_compiler_pic" >&6; } 14823lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 14824 14825# 14826# Check to make sure the PIC flag actually works. 14827# 14828if test -n "$lt_prog_compiler_pic"; then 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 14830$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 14831if ${lt_cv_prog_compiler_pic_works+:} false; then : 14832 $as_echo_n "(cached) " >&6 14833else 14834 lt_cv_prog_compiler_pic_works=no 14835 ac_outfile=conftest.$ac_objext 14836 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14837 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 14838 # Insert the option either (1) after the last *FLAGS variable, or 14839 # (2) before a word containing "conftest.", or (3) at the end. 14840 # Note that $ac_compile itself does not contain backslashes and begins 14841 # with a dollar sign (not a hyphen), so the echo should work correctly. 14842 # The option is referenced via a variable to avoid confusing sed. 14843 lt_compile=`echo "$ac_compile" | $SED \ 14844 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14845 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14846 -e 's:$: $lt_compiler_flag:'` 14847 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14848 (eval "$lt_compile" 2>conftest.err) 14849 ac_status=$? 14850 cat conftest.err >&5 14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14852 if (exit $ac_status) && test -s "$ac_outfile"; then 14853 # The compiler can only warn and ignore the option if not recognized 14854 # So say no if there are warnings other than the usual output. 14855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 14856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14857 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 14858 lt_cv_prog_compiler_pic_works=yes 14859 fi 14860 fi 14861 $RM conftest* 14862 14863fi 14864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 14865$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 14866 14867if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 14868 case $lt_prog_compiler_pic in 14869 "" | " "*) ;; 14870 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 14871 esac 14872else 14873 lt_prog_compiler_pic= 14874 lt_prog_compiler_can_build_shared=no 14875fi 14876 14877fi 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889# 14890# Check to make sure the static flag actually works. 14891# 14892wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 14893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 14894$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 14895if ${lt_cv_prog_compiler_static_works+:} false; then : 14896 $as_echo_n "(cached) " >&6 14897else 14898 lt_cv_prog_compiler_static_works=no 14899 save_LDFLAGS="$LDFLAGS" 14900 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 14901 echo "$lt_simple_link_test_code" > conftest.$ac_ext 14902 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 14903 # The linker can only warn and ignore the option if not recognized 14904 # So say no if there are warnings 14905 if test -s conftest.err; then 14906 # Append any errors to the config.log. 14907 cat conftest.err 1>&5 14908 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 14909 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 14910 if diff conftest.exp conftest.er2 >/dev/null; then 14911 lt_cv_prog_compiler_static_works=yes 14912 fi 14913 else 14914 lt_cv_prog_compiler_static_works=yes 14915 fi 14916 fi 14917 $RM -r conftest* 14918 LDFLAGS="$save_LDFLAGS" 14919 14920fi 14921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 14922$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 14923 14924if test x"$lt_cv_prog_compiler_static_works" = xyes; then 14925 : 14926else 14927 lt_prog_compiler_static= 14928fi 14929 14930 14931 14932 14933 14934 14935 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14937$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14938if ${lt_cv_prog_compiler_c_o+:} false; then : 14939 $as_echo_n "(cached) " >&6 14940else 14941 lt_cv_prog_compiler_c_o=no 14942 $RM -r conftest 2>/dev/null 14943 mkdir conftest 14944 cd conftest 14945 mkdir out 14946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 14947 14948 lt_compiler_flag="-o out/conftest2.$ac_objext" 14949 # Insert the option either (1) after the last *FLAGS variable, or 14950 # (2) before a word containing "conftest.", or (3) at the end. 14951 # Note that $ac_compile itself does not contain backslashes and begins 14952 # with a dollar sign (not a hyphen), so the echo should work correctly. 14953 lt_compile=`echo "$ac_compile" | $SED \ 14954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 14955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14956 -e 's:$: $lt_compiler_flag:'` 14957 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 14958 (eval "$lt_compile" 2>out/conftest.err) 14959 ac_status=$? 14960 cat out/conftest.err >&5 14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14962 if (exit $ac_status) && test -s out/conftest2.$ac_objext 14963 then 14964 # The compiler can only warn and ignore the option if not recognized 14965 # So say no if there are warnings 14966 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 14967 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 14968 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 14969 lt_cv_prog_compiler_c_o=yes 14970 fi 14971 fi 14972 chmod u+w . 2>&5 14973 $RM conftest* 14974 # SGI C++ compiler will create directory out/ii_files/ for 14975 # template instantiation 14976 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 14977 $RM out/* && rmdir out 14978 cd .. 14979 $RM -r conftest 14980 $RM conftest* 14981 14982fi 14983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 14984$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 14985 14986 14987 14988 14989 14990 14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 14992$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 14993if ${lt_cv_prog_compiler_c_o+:} false; then : 14994 $as_echo_n "(cached) " >&6 14995else 14996 lt_cv_prog_compiler_c_o=no 14997 $RM -r conftest 2>/dev/null 14998 mkdir conftest 14999 cd conftest 15000 mkdir out 15001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15002 15003 lt_compiler_flag="-o out/conftest2.$ac_objext" 15004 # Insert the option either (1) after the last *FLAGS variable, or 15005 # (2) before a word containing "conftest.", or (3) at the end. 15006 # Note that $ac_compile itself does not contain backslashes and begins 15007 # with a dollar sign (not a hyphen), so the echo should work correctly. 15008 lt_compile=`echo "$ac_compile" | $SED \ 15009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15011 -e 's:$: $lt_compiler_flag:'` 15012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15013 (eval "$lt_compile" 2>out/conftest.err) 15014 ac_status=$? 15015 cat out/conftest.err >&5 15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15017 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15018 then 15019 # The compiler can only warn and ignore the option if not recognized 15020 # So say no if there are warnings 15021 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15022 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15023 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15024 lt_cv_prog_compiler_c_o=yes 15025 fi 15026 fi 15027 chmod u+w . 2>&5 15028 $RM conftest* 15029 # SGI C++ compiler will create directory out/ii_files/ for 15030 # template instantiation 15031 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15032 $RM out/* && rmdir out 15033 cd .. 15034 $RM -r conftest 15035 $RM conftest* 15036 15037fi 15038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15039$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15040 15041 15042 15043 15044hard_links="nottested" 15045if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 15046 # do not overwrite the value of need_locks provided by the user 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15048$as_echo_n "checking if we can lock with hard links... " >&6; } 15049 hard_links=yes 15050 $RM conftest* 15051 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15052 touch conftest.a 15053 ln conftest.a conftest.b 2>&5 || hard_links=no 15054 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15056$as_echo "$hard_links" >&6; } 15057 if test "$hard_links" = no; then 15058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15059$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15060 need_locks=warn 15061 fi 15062else 15063 need_locks=no 15064fi 15065 15066 15067 15068 15069 15070 15071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15072$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15073 15074 runpath_var= 15075 allow_undefined_flag= 15076 always_export_symbols=no 15077 archive_cmds= 15078 archive_expsym_cmds= 15079 compiler_needs_object=no 15080 enable_shared_with_static_runtimes=no 15081 export_dynamic_flag_spec= 15082 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15083 hardcode_automatic=no 15084 hardcode_direct=no 15085 hardcode_direct_absolute=no 15086 hardcode_libdir_flag_spec= 15087 hardcode_libdir_separator= 15088 hardcode_minus_L=no 15089 hardcode_shlibpath_var=unsupported 15090 inherit_rpath=no 15091 link_all_deplibs=unknown 15092 module_cmds= 15093 module_expsym_cmds= 15094 old_archive_from_new_cmds= 15095 old_archive_from_expsyms_cmds= 15096 thread_safe_flag_spec= 15097 whole_archive_flag_spec= 15098 # include_expsyms should be a list of space-separated symbols to be *always* 15099 # included in the symbol list 15100 include_expsyms= 15101 # exclude_expsyms can be an extended regexp of symbols to exclude 15102 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15103 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15104 # as well as any symbol that contains `d'. 15105 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15106 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15107 # platforms (ab)use it in PIC code, but their linkers get confused if 15108 # the symbol is explicitly referenced. Since portable code cannot 15109 # rely on this symbol name, it's probably fine to never include it in 15110 # preloaded symbol tables. 15111 # Exclude shared library initialization/finalization symbols. 15112 extract_expsyms_cmds= 15113 15114 case $host_os in 15115 cygwin* | mingw* | pw32* | cegcc*) 15116 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15117 # When not using gcc, we currently assume that we are using 15118 # Microsoft Visual C++. 15119 if test "$GCC" != yes; then 15120 with_gnu_ld=no 15121 fi 15122 ;; 15123 interix*) 15124 # we just hope/assume this is gcc and not c89 (= MSVC++) 15125 with_gnu_ld=yes 15126 ;; 15127 openbsd*) 15128 with_gnu_ld=no 15129 ;; 15130 linux* | k*bsd*-gnu | gnu*) 15131 link_all_deplibs=no 15132 ;; 15133 esac 15134 15135 ld_shlibs=yes 15136 15137 # On some targets, GNU ld is compatible enough with the native linker 15138 # that we're better off using the native interface for both. 15139 lt_use_gnu_ld_interface=no 15140 if test "$with_gnu_ld" = yes; then 15141 case $host_os in 15142 aix*) 15143 # The AIX port of GNU ld has always aspired to compatibility 15144 # with the native linker. However, as the warning in the GNU ld 15145 # block says, versions before 2.19.5* couldn't really create working 15146 # shared libraries, regardless of the interface used. 15147 case `$LD -v 2>&1` in 15148 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15149 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15150 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15151 *) 15152 lt_use_gnu_ld_interface=yes 15153 ;; 15154 esac 15155 ;; 15156 *) 15157 lt_use_gnu_ld_interface=yes 15158 ;; 15159 esac 15160 fi 15161 15162 if test "$lt_use_gnu_ld_interface" = yes; then 15163 # If archive_cmds runs LD, not CC, wlarc should be empty 15164 wlarc='${wl}' 15165 15166 # Set some defaults for GNU ld with shared library support. These 15167 # are reset later if shared libraries are not supported. Putting them 15168 # here allows them to be overridden if necessary. 15169 runpath_var=LD_RUN_PATH 15170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15171 export_dynamic_flag_spec='${wl}--export-dynamic' 15172 # ancient GNU ld didn't support --whole-archive et. al. 15173 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15174 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15175 else 15176 whole_archive_flag_spec= 15177 fi 15178 supports_anon_versioning=no 15179 case `$LD -v 2>&1` in 15180 *GNU\ gold*) supports_anon_versioning=yes ;; 15181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15184 *\ 2.11.*) ;; # other 2.11 versions 15185 *) supports_anon_versioning=yes ;; 15186 esac 15187 15188 # See if GNU ld supports shared libraries. 15189 case $host_os in 15190 aix[3-9]*) 15191 # On AIX/PPC, the GNU linker is very broken 15192 if test "$host_cpu" != ia64; then 15193 ld_shlibs=no 15194 cat <<_LT_EOF 1>&2 15195 15196*** Warning: the GNU linker, at least up to release 2.19, is reported 15197*** to be unable to reliably create shared libraries on AIX. 15198*** Therefore, libtool is disabling shared libraries support. If you 15199*** really care for shared libraries, you may want to install binutils 15200*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15201*** You will then need to restart the configuration process. 15202 15203_LT_EOF 15204 fi 15205 ;; 15206 15207 amigaos*) 15208 case $host_cpu in 15209 powerpc) 15210 # see comment about AmigaOS4 .so support 15211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15212 archive_expsym_cmds='' 15213 ;; 15214 m68k) 15215 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)' 15216 hardcode_libdir_flag_spec='-L$libdir' 15217 hardcode_minus_L=yes 15218 ;; 15219 esac 15220 ;; 15221 15222 beos*) 15223 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15224 allow_undefined_flag=unsupported 15225 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15226 # support --undefined. This deserves some investigation. FIXME 15227 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15228 else 15229 ld_shlibs=no 15230 fi 15231 ;; 15232 15233 cygwin* | mingw* | pw32* | cegcc*) 15234 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15235 # as there is no search path for DLLs. 15236 hardcode_libdir_flag_spec='-L$libdir' 15237 export_dynamic_flag_spec='${wl}--export-all-symbols' 15238 allow_undefined_flag=unsupported 15239 always_export_symbols=no 15240 enable_shared_with_static_runtimes=yes 15241 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' 15242 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15243 15244 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15246 # If the export-symbols file already is a .def file (1st line 15247 # is EXPORTS), use it as is; otherwise, prepend... 15248 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15249 cp $export_symbols $output_objdir/$soname.def; 15250 else 15251 echo EXPORTS > $output_objdir/$soname.def; 15252 cat $export_symbols >> $output_objdir/$soname.def; 15253 fi~ 15254 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15255 else 15256 ld_shlibs=no 15257 fi 15258 ;; 15259 15260 haiku*) 15261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15262 link_all_deplibs=yes 15263 ;; 15264 15265 interix[3-9]*) 15266 hardcode_direct=no 15267 hardcode_shlibpath_var=no 15268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15269 export_dynamic_flag_spec='${wl}-E' 15270 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 15271 # Instead, shared libraries are loaded at an image base (0x10000000 by 15272 # default) and relocated if they conflict, which is a slow very memory 15273 # consuming and fragmenting process. To avoid this, we pick a random, 15274 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 15275 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 15276 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 15277 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' 15278 ;; 15279 15280 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 15281 tmp_diet=no 15282 if test "$host_os" = linux-dietlibc; then 15283 case $cc_basename in 15284 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 15285 esac 15286 fi 15287 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 15288 && test "$tmp_diet" = no 15289 then 15290 tmp_addflag=' $pic_flag' 15291 tmp_sharedflag='-shared' 15292 case $cc_basename,$host_cpu in 15293 pgcc*) # Portland Group C compiler 15294 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' 15295 tmp_addflag=' $pic_flag' 15296 ;; 15297 pgf77* | pgf90* | pgf95* | pgfortran*) 15298 # Portland Group f77 and f90 compilers 15299 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' 15300 tmp_addflag=' $pic_flag -Mnomain' ;; 15301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 15302 tmp_addflag=' -i_dynamic' ;; 15303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 15304 tmp_addflag=' -i_dynamic -nofor_main' ;; 15305 ifc* | ifort*) # Intel Fortran compiler 15306 tmp_addflag=' -nofor_main' ;; 15307 lf95*) # Lahey Fortran 8.1 15308 whole_archive_flag_spec= 15309 tmp_sharedflag='--shared' ;; 15310 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 15311 tmp_sharedflag='-qmkshrobj' 15312 tmp_addflag= ;; 15313 nvcc*) # Cuda Compiler Driver 2.2 15314 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' 15315 compiler_needs_object=yes 15316 ;; 15317 esac 15318 case `$CC -V 2>&1 | sed 5q` in 15319 *Sun\ C*) # Sun C 5.9 15320 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' 15321 compiler_needs_object=yes 15322 tmp_sharedflag='-G' ;; 15323 *Sun\ F*) # Sun Fortran 8.3 15324 tmp_sharedflag='-G' ;; 15325 esac 15326 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15327 15328 if test "x$supports_anon_versioning" = xyes; then 15329 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15330 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15331 echo "local: *; };" >> $output_objdir/$libname.ver~ 15332 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15333 fi 15334 15335 case $cc_basename in 15336 xlf* | bgf* | bgxlf* | mpixlf*) 15337 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 15338 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 15339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15340 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 15341 if test "x$supports_anon_versioning" = xyes; then 15342 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 15343 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15344 echo "local: *; };" >> $output_objdir/$libname.ver~ 15345 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 15346 fi 15347 ;; 15348 esac 15349 else 15350 ld_shlibs=no 15351 fi 15352 ;; 15353 15354 netbsd* | netbsdelf*-gnu) 15355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15356 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15357 wlarc= 15358 else 15359 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15360 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15361 fi 15362 ;; 15363 15364 solaris*) 15365 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 15366 ld_shlibs=no 15367 cat <<_LT_EOF 1>&2 15368 15369*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15370*** create shared libraries on Solaris systems. Therefore, libtool 15371*** is disabling shared libraries support. We urge you to upgrade GNU 15372*** binutils to release 2.9.1 or newer. Another option is to modify 15373*** your PATH or compiler configuration so that the native linker is 15374*** used, and then restart. 15375 15376_LT_EOF 15377 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15378 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15379 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15380 else 15381 ld_shlibs=no 15382 fi 15383 ;; 15384 15385 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 15386 case `$LD -v 2>&1` in 15387 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 15388 ld_shlibs=no 15389 cat <<_LT_EOF 1>&2 15390 15391*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 15392*** reliably create shared libraries on SCO systems. Therefore, libtool 15393*** is disabling shared libraries support. We urge you to upgrade GNU 15394*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 15395*** your PATH or compiler configuration so that the native linker is 15396*** used, and then restart. 15397 15398_LT_EOF 15399 ;; 15400 *) 15401 # For security reasons, it is highly recommended that you always 15402 # use absolute paths for naming shared libraries, and exclude the 15403 # DT_RUNPATH tag from executables and libraries. But doing so 15404 # requires that you compile everything twice, which is a pain. 15405 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15406 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15407 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15408 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15409 else 15410 ld_shlibs=no 15411 fi 15412 ;; 15413 esac 15414 ;; 15415 15416 sunos4*) 15417 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15418 wlarc= 15419 hardcode_direct=yes 15420 hardcode_shlibpath_var=no 15421 ;; 15422 15423 *) 15424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15425 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15426 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15427 else 15428 ld_shlibs=no 15429 fi 15430 ;; 15431 esac 15432 15433 if test "$ld_shlibs" = no; then 15434 runpath_var= 15435 hardcode_libdir_flag_spec= 15436 export_dynamic_flag_spec= 15437 whole_archive_flag_spec= 15438 fi 15439 else 15440 # PORTME fill in a description of your system's linker (not GNU ld) 15441 case $host_os in 15442 aix3*) 15443 allow_undefined_flag=unsupported 15444 always_export_symbols=yes 15445 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' 15446 # Note: this linker hardcodes the directories in LIBPATH if there 15447 # are no directories specified by -L. 15448 hardcode_minus_L=yes 15449 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 15450 # Neither direct hardcoding nor static linking is supported with a 15451 # broken collect2. 15452 hardcode_direct=unsupported 15453 fi 15454 ;; 15455 15456 aix[4-9]*) 15457 if test "$host_cpu" = ia64; then 15458 # On IA64, the linker does run time linking by default, so we don't 15459 # have to do anything special. 15460 aix_use_runtimelinking=no 15461 exp_sym_flag='-Bexport' 15462 no_entry_flag="" 15463 else 15464 # If we're using GNU nm, then we don't want the "-C" option. 15465 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15466 # Also, AIX nm treats weak defined symbols like other global 15467 # defined symbols, whereas GNU nm marks them as "W". 15468 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15469 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' 15470 else 15471 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' 15472 fi 15473 aix_use_runtimelinking=no 15474 15475 # Test if we are trying to use run time linking or normal 15476 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15477 # need to do runtime linking. 15478 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15479 for ld_flag in $LDFLAGS; do 15480 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15481 aix_use_runtimelinking=yes 15482 break 15483 fi 15484 done 15485 ;; 15486 esac 15487 15488 exp_sym_flag='-bexport' 15489 no_entry_flag='-bnoentry' 15490 fi 15491 15492 # When large executables or shared objects are built, AIX ld can 15493 # have problems creating the table of contents. If linking a library 15494 # or program results in "error TOC overflow" add -mminimal-toc to 15495 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15496 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15497 15498 archive_cmds='' 15499 hardcode_direct=yes 15500 hardcode_direct_absolute=yes 15501 hardcode_libdir_separator=':' 15502 link_all_deplibs=yes 15503 file_list_spec='${wl}-f,' 15504 15505 if test "$GCC" = yes; then 15506 case $host_os in aix4.[012]|aix4.[012].*) 15507 # We only want to do this on AIX 4.2 and lower, the check 15508 # below for broken collect2 doesn't work under 4.3+ 15509 collect2name=`${CC} -print-prog-name=collect2` 15510 if test -f "$collect2name" && 15511 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15512 then 15513 # We have reworked collect2 15514 : 15515 else 15516 # We have old collect2 15517 hardcode_direct=unsupported 15518 # It fails to find uninstalled libraries when the uninstalled 15519 # path is not listed in the libpath. Setting hardcode_minus_L 15520 # to unsupported forces relinking 15521 hardcode_minus_L=yes 15522 hardcode_libdir_flag_spec='-L$libdir' 15523 hardcode_libdir_separator= 15524 fi 15525 ;; 15526 esac 15527 shared_flag='-shared' 15528 if test "$aix_use_runtimelinking" = yes; then 15529 shared_flag="$shared_flag "'${wl}-G' 15530 fi 15531 link_all_deplibs=no 15532 else 15533 # not using gcc 15534 if test "$host_cpu" = ia64; then 15535 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15536 # chokes on -Wl,-G. The following line is correct: 15537 shared_flag='-G' 15538 else 15539 if test "$aix_use_runtimelinking" = yes; then 15540 shared_flag='${wl}-G' 15541 else 15542 shared_flag='${wl}-bM:SRE' 15543 fi 15544 fi 15545 fi 15546 15547 export_dynamic_flag_spec='${wl}-bexpall' 15548 # It seems that -bexpall does not export symbols beginning with 15549 # underscore (_), so it is better to generate a list of symbols to export. 15550 always_export_symbols=yes 15551 if test "$aix_use_runtimelinking" = yes; then 15552 # Warning - without using the other runtime loading flags (-brtl), 15553 # -berok will link without error, but may produce a broken library. 15554 allow_undefined_flag='-berok' 15555 # Determine the default libpath from the value encoded in an 15556 # empty executable. 15557 if test "${lt_cv_aix_libpath+set}" = set; then 15558 aix_libpath=$lt_cv_aix_libpath 15559else 15560 if ${lt_cv_aix_libpath_+:} false; then : 15561 $as_echo_n "(cached) " >&6 15562else 15563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15564/* end confdefs.h. */ 15565 15566int 15567main () 15568{ 15569 15570 ; 15571 return 0; 15572} 15573_ACEOF 15574if ac_fn_c_try_link "$LINENO"; then : 15575 15576 lt_aix_libpath_sed=' 15577 /Import File Strings/,/^$/ { 15578 /^0/ { 15579 s/^0 *\([^ ]*\) *$/\1/ 15580 p 15581 } 15582 }' 15583 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15584 # Check for a 64-bit object if we didn't find anything. 15585 if test -z "$lt_cv_aix_libpath_"; then 15586 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15587 fi 15588fi 15589rm -f core conftest.err conftest.$ac_objext \ 15590 conftest$ac_exeext conftest.$ac_ext 15591 if test -z "$lt_cv_aix_libpath_"; then 15592 lt_cv_aix_libpath_="/usr/lib:/lib" 15593 fi 15594 15595fi 15596 15597 aix_libpath=$lt_cv_aix_libpath_ 15598fi 15599 15600 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15601 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" 15602 else 15603 if test "$host_cpu" = ia64; then 15604 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 15605 allow_undefined_flag="-z nodefs" 15606 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" 15607 else 15608 # Determine the default libpath from the value encoded in an 15609 # empty executable. 15610 if test "${lt_cv_aix_libpath+set}" = set; then 15611 aix_libpath=$lt_cv_aix_libpath 15612else 15613 if ${lt_cv_aix_libpath_+:} false; then : 15614 $as_echo_n "(cached) " >&6 15615else 15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15617/* end confdefs.h. */ 15618 15619int 15620main () 15621{ 15622 15623 ; 15624 return 0; 15625} 15626_ACEOF 15627if ac_fn_c_try_link "$LINENO"; then : 15628 15629 lt_aix_libpath_sed=' 15630 /Import File Strings/,/^$/ { 15631 /^0/ { 15632 s/^0 *\([^ ]*\) *$/\1/ 15633 p 15634 } 15635 }' 15636 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15637 # Check for a 64-bit object if we didn't find anything. 15638 if test -z "$lt_cv_aix_libpath_"; then 15639 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15640 fi 15641fi 15642rm -f core conftest.err conftest.$ac_objext \ 15643 conftest$ac_exeext conftest.$ac_ext 15644 if test -z "$lt_cv_aix_libpath_"; then 15645 lt_cv_aix_libpath_="/usr/lib:/lib" 15646 fi 15647 15648fi 15649 15650 aix_libpath=$lt_cv_aix_libpath_ 15651fi 15652 15653 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 15654 # Warning - without using the other run time loading flags, 15655 # -berok will link without error, but may produce a broken library. 15656 no_undefined_flag=' ${wl}-bernotok' 15657 allow_undefined_flag=' ${wl}-berok' 15658 if test "$with_gnu_ld" = yes; then 15659 # We only use this code for GNU lds that support --whole-archive. 15660 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 15661 else 15662 # Exported symbols can be pulled into shared objects from archives 15663 whole_archive_flag_spec='$convenience' 15664 fi 15665 archive_cmds_need_lc=yes 15666 # This is similar to how AIX traditionally builds its shared libraries. 15667 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' 15668 fi 15669 fi 15670 ;; 15671 15672 amigaos*) 15673 case $host_cpu in 15674 powerpc) 15675 # see comment about AmigaOS4 .so support 15676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15677 archive_expsym_cmds='' 15678 ;; 15679 m68k) 15680 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)' 15681 hardcode_libdir_flag_spec='-L$libdir' 15682 hardcode_minus_L=yes 15683 ;; 15684 esac 15685 ;; 15686 15687 bsdi[45]*) 15688 export_dynamic_flag_spec=-rdynamic 15689 ;; 15690 15691 cygwin* | mingw* | pw32* | cegcc*) 15692 # When not using gcc, we currently assume that we are using 15693 # Microsoft Visual C++. 15694 # hardcode_libdir_flag_spec is actually meaningless, as there is 15695 # no search path for DLLs. 15696 case $cc_basename in 15697 cl*) 15698 # Native MSVC 15699 hardcode_libdir_flag_spec=' ' 15700 allow_undefined_flag=unsupported 15701 always_export_symbols=yes 15702 file_list_spec='@' 15703 # Tell ltmain to make .lib files, not .a files. 15704 libext=lib 15705 # Tell ltmain to make .dll files, not .so files. 15706 shrext_cmds=".dll" 15707 # FIXME: Setting linknames here is a bad hack. 15708 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 15709 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15710 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 15711 else 15712 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 15713 fi~ 15714 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 15715 linknames=' 15716 # The linker will not automatically build a static lib if we build a DLL. 15717 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 15718 enable_shared_with_static_runtimes=yes 15719 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15720 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 15721 # Don't use ranlib 15722 old_postinstall_cmds='chmod 644 $oldlib' 15723 postlink_cmds='lt_outputfile="@OUTPUT@"~ 15724 lt_tool_outputfile="@TOOL_OUTPUT@"~ 15725 case $lt_outputfile in 15726 *.exe|*.EXE) ;; 15727 *) 15728 lt_outputfile="$lt_outputfile.exe" 15729 lt_tool_outputfile="$lt_tool_outputfile.exe" 15730 ;; 15731 esac~ 15732 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 15733 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 15734 $RM "$lt_outputfile.manifest"; 15735 fi' 15736 ;; 15737 *) 15738 # Assume MSVC wrapper 15739 hardcode_libdir_flag_spec=' ' 15740 allow_undefined_flag=unsupported 15741 # Tell ltmain to make .lib files, not .a files. 15742 libext=lib 15743 # Tell ltmain to make .dll files, not .so files. 15744 shrext_cmds=".dll" 15745 # FIXME: Setting linknames here is a bad hack. 15746 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 15747 # The linker will automatically build a .lib file if we build a DLL. 15748 old_archive_from_new_cmds='true' 15749 # FIXME: Should let the user specify the lib program. 15750 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 15751 enable_shared_with_static_runtimes=yes 15752 ;; 15753 esac 15754 ;; 15755 15756 darwin* | rhapsody*) 15757 15758 15759 archive_cmds_need_lc=no 15760 hardcode_direct=no 15761 hardcode_automatic=yes 15762 hardcode_shlibpath_var=unsupported 15763 if test "$lt_cv_ld_force_load" = "yes"; then 15764 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\"`' 15765 15766 else 15767 whole_archive_flag_spec='' 15768 fi 15769 link_all_deplibs=yes 15770 allow_undefined_flag="$_lt_dar_allow_undefined" 15771 case $cc_basename in 15772 ifort*) _lt_dar_can_shared=yes ;; 15773 *) _lt_dar_can_shared=$GCC ;; 15774 esac 15775 if test "$_lt_dar_can_shared" = "yes"; then 15776 output_verbose_link_cmd=func_echo_all 15777 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 15778 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 15779 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}" 15780 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}" 15781 15782 else 15783 ld_shlibs=no 15784 fi 15785 15786 ;; 15787 15788 dgux*) 15789 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15790 hardcode_libdir_flag_spec='-L$libdir' 15791 hardcode_shlibpath_var=no 15792 ;; 15793 15794 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15795 # support. Future versions do this automatically, but an explicit c++rt0.o 15796 # does not break anything, and helps significantly (at the cost of a little 15797 # extra space). 15798 freebsd2.2*) 15799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15800 hardcode_libdir_flag_spec='-R$libdir' 15801 hardcode_direct=yes 15802 hardcode_shlibpath_var=no 15803 ;; 15804 15805 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15806 freebsd2.*) 15807 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15808 hardcode_direct=yes 15809 hardcode_minus_L=yes 15810 hardcode_shlibpath_var=no 15811 ;; 15812 15813 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15814 freebsd* | dragonfly*) 15815 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15816 hardcode_libdir_flag_spec='-R$libdir' 15817 hardcode_direct=yes 15818 hardcode_shlibpath_var=no 15819 ;; 15820 15821 hpux9*) 15822 if test "$GCC" = yes; then 15823 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' 15824 else 15825 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' 15826 fi 15827 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15828 hardcode_libdir_separator=: 15829 hardcode_direct=yes 15830 15831 # hardcode_minus_L: Not really in the search PATH, 15832 # but as the default location of the library. 15833 hardcode_minus_L=yes 15834 export_dynamic_flag_spec='${wl}-E' 15835 ;; 15836 15837 hpux10*) 15838 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15839 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15840 else 15841 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15842 fi 15843 if test "$with_gnu_ld" = no; then 15844 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15845 hardcode_libdir_separator=: 15846 hardcode_direct=yes 15847 hardcode_direct_absolute=yes 15848 export_dynamic_flag_spec='${wl}-E' 15849 # hardcode_minus_L: Not really in the search PATH, 15850 # but as the default location of the library. 15851 hardcode_minus_L=yes 15852 fi 15853 ;; 15854 15855 hpux11*) 15856 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 15857 case $host_cpu in 15858 hppa*64*) 15859 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15860 ;; 15861 ia64*) 15862 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15863 ;; 15864 *) 15865 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15866 ;; 15867 esac 15868 else 15869 case $host_cpu in 15870 hppa*64*) 15871 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15872 ;; 15873 ia64*) 15874 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 15875 ;; 15876 *) 15877 15878 # Older versions of the 11.00 compiler do not understand -b yet 15879 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 15880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 15881$as_echo_n "checking if $CC understands -b... " >&6; } 15882if ${lt_cv_prog_compiler__b+:} false; then : 15883 $as_echo_n "(cached) " >&6 15884else 15885 lt_cv_prog_compiler__b=no 15886 save_LDFLAGS="$LDFLAGS" 15887 LDFLAGS="$LDFLAGS -b" 15888 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15889 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15890 # The linker can only warn and ignore the option if not recognized 15891 # So say no if there are warnings 15892 if test -s conftest.err; then 15893 # Append any errors to the config.log. 15894 cat conftest.err 1>&5 15895 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15897 if diff conftest.exp conftest.er2 >/dev/null; then 15898 lt_cv_prog_compiler__b=yes 15899 fi 15900 else 15901 lt_cv_prog_compiler__b=yes 15902 fi 15903 fi 15904 $RM -r conftest* 15905 LDFLAGS="$save_LDFLAGS" 15906 15907fi 15908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 15909$as_echo "$lt_cv_prog_compiler__b" >&6; } 15910 15911if test x"$lt_cv_prog_compiler__b" = xyes; then 15912 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15913else 15914 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15915fi 15916 15917 ;; 15918 esac 15919 fi 15920 if test "$with_gnu_ld" = no; then 15921 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 15922 hardcode_libdir_separator=: 15923 15924 case $host_cpu in 15925 hppa*64*|ia64*) 15926 hardcode_direct=no 15927 hardcode_shlibpath_var=no 15928 ;; 15929 *) 15930 hardcode_direct=yes 15931 hardcode_direct_absolute=yes 15932 export_dynamic_flag_spec='${wl}-E' 15933 15934 # hardcode_minus_L: Not really in the search PATH, 15935 # but as the default location of the library. 15936 hardcode_minus_L=yes 15937 ;; 15938 esac 15939 fi 15940 ;; 15941 15942 irix5* | irix6* | nonstopux*) 15943 if test "$GCC" = yes; then 15944 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' 15945 # Try to use the -exported_symbol ld option, if it does not 15946 # work, assume that -exports_file does not work either and 15947 # implicitly export all symbols. 15948 # This should be the same for all languages, so no per-tag cache variable. 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 15950$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 15951if ${lt_cv_irix_exported_symbol+:} false; then : 15952 $as_echo_n "(cached) " >&6 15953else 15954 save_LDFLAGS="$LDFLAGS" 15955 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15957/* end confdefs.h. */ 15958int foo (void) { return 0; } 15959_ACEOF 15960if ac_fn_c_try_link "$LINENO"; then : 15961 lt_cv_irix_exported_symbol=yes 15962else 15963 lt_cv_irix_exported_symbol=no 15964fi 15965rm -f core conftest.err conftest.$ac_objext \ 15966 conftest$ac_exeext conftest.$ac_ext 15967 LDFLAGS="$save_LDFLAGS" 15968fi 15969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 15970$as_echo "$lt_cv_irix_exported_symbol" >&6; } 15971 if test "$lt_cv_irix_exported_symbol" = yes; then 15972 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' 15973 fi 15974 else 15975 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' 15976 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' 15977 fi 15978 archive_cmds_need_lc='no' 15979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15980 hardcode_libdir_separator=: 15981 inherit_rpath=yes 15982 link_all_deplibs=yes 15983 ;; 15984 15985 netbsd* | netbsdelf*-gnu) 15986 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 15987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15988 else 15989 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15990 fi 15991 hardcode_libdir_flag_spec='-R$libdir' 15992 hardcode_direct=yes 15993 hardcode_shlibpath_var=no 15994 ;; 15995 15996 newsos6) 15997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15998 hardcode_direct=yes 15999 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16000 hardcode_libdir_separator=: 16001 hardcode_shlibpath_var=no 16002 ;; 16003 16004 *nto* | *qnx*) 16005 ;; 16006 16007 openbsd*) 16008 if test -f /usr/libexec/ld.so; then 16009 hardcode_direct=yes 16010 hardcode_shlibpath_var=no 16011 hardcode_direct_absolute=yes 16012 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16013 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16014 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16016 export_dynamic_flag_spec='${wl}-E' 16017 else 16018 case $host_os in 16019 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16021 hardcode_libdir_flag_spec='-R$libdir' 16022 ;; 16023 *) 16024 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16025 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16026 ;; 16027 esac 16028 fi 16029 else 16030 ld_shlibs=no 16031 fi 16032 ;; 16033 16034 os2*) 16035 hardcode_libdir_flag_spec='-L$libdir' 16036 hardcode_minus_L=yes 16037 allow_undefined_flag=unsupported 16038 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' 16039 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16040 ;; 16041 16042 osf3*) 16043 if test "$GCC" = yes; then 16044 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16045 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' 16046 else 16047 allow_undefined_flag=' -expect_unresolved \*' 16048 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' 16049 fi 16050 archive_cmds_need_lc='no' 16051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16052 hardcode_libdir_separator=: 16053 ;; 16054 16055 osf4* | osf5*) # as osf3* with the addition of -msym flag 16056 if test "$GCC" = yes; then 16057 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16058 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' 16059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16060 else 16061 allow_undefined_flag=' -expect_unresolved \*' 16062 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' 16063 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~ 16064 $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' 16065 16066 # Both c and cxx compiler support -rpath directly 16067 hardcode_libdir_flag_spec='-rpath $libdir' 16068 fi 16069 archive_cmds_need_lc='no' 16070 hardcode_libdir_separator=: 16071 ;; 16072 16073 solaris*) 16074 no_undefined_flag=' -z defs' 16075 if test "$GCC" = yes; then 16076 wlarc='${wl}' 16077 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16078 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16079 $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' 16080 else 16081 case `$CC -V 2>&1` in 16082 *"Compilers 5.0"*) 16083 wlarc='' 16084 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16085 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16086 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16087 ;; 16088 *) 16089 wlarc='${wl}' 16090 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16091 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16092 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16093 ;; 16094 esac 16095 fi 16096 hardcode_libdir_flag_spec='-R$libdir' 16097 hardcode_shlibpath_var=no 16098 case $host_os in 16099 solaris2.[0-5] | solaris2.[0-5].*) ;; 16100 *) 16101 # The compiler driver will combine and reorder linker options, 16102 # but understands `-z linker_flag'. GCC discards it without `$wl', 16103 # but is careful enough not to reorder. 16104 # Supported since Solaris 2.6 (maybe 2.5.1?) 16105 if test "$GCC" = yes; then 16106 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16107 else 16108 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16109 fi 16110 ;; 16111 esac 16112 link_all_deplibs=yes 16113 ;; 16114 16115 sunos4*) 16116 if test "x$host_vendor" = xsequent; then 16117 # Use $CC to link under sequent, because it throws in some extra .o 16118 # files that make .init and .fini sections work. 16119 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16120 else 16121 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16122 fi 16123 hardcode_libdir_flag_spec='-L$libdir' 16124 hardcode_direct=yes 16125 hardcode_minus_L=yes 16126 hardcode_shlibpath_var=no 16127 ;; 16128 16129 sysv4) 16130 case $host_vendor in 16131 sni) 16132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16133 hardcode_direct=yes # is this really true??? 16134 ;; 16135 siemens) 16136 ## LD is ld it makes a PLAMLIB 16137 ## CC just makes a GrossModule. 16138 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16139 reload_cmds='$CC -r -o $output$reload_objs' 16140 hardcode_direct=no 16141 ;; 16142 motorola) 16143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16144 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16145 ;; 16146 esac 16147 runpath_var='LD_RUN_PATH' 16148 hardcode_shlibpath_var=no 16149 ;; 16150 16151 sysv4.3*) 16152 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16153 hardcode_shlibpath_var=no 16154 export_dynamic_flag_spec='-Bexport' 16155 ;; 16156 16157 sysv4*MP*) 16158 if test -d /usr/nec; then 16159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16160 hardcode_shlibpath_var=no 16161 runpath_var=LD_RUN_PATH 16162 hardcode_runpath_var=yes 16163 ld_shlibs=yes 16164 fi 16165 ;; 16166 16167 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16168 no_undefined_flag='${wl}-z,text' 16169 archive_cmds_need_lc=no 16170 hardcode_shlibpath_var=no 16171 runpath_var='LD_RUN_PATH' 16172 16173 if test "$GCC" = yes; then 16174 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16175 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16176 else 16177 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16178 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16179 fi 16180 ;; 16181 16182 sysv5* | sco3.2v5* | sco5v6*) 16183 # Note: We can NOT use -z defs as we might desire, because we do not 16184 # link with -lc, and that would cause any symbols used from libc to 16185 # always be unresolved, which means just about no library would 16186 # ever link correctly. If we're not using GNU ld we use -z text 16187 # though, which does catch some bad symbols but isn't as heavy-handed 16188 # as -z defs. 16189 no_undefined_flag='${wl}-z,text' 16190 allow_undefined_flag='${wl}-z,nodefs' 16191 archive_cmds_need_lc=no 16192 hardcode_shlibpath_var=no 16193 hardcode_libdir_flag_spec='${wl}-R,$libdir' 16194 hardcode_libdir_separator=':' 16195 link_all_deplibs=yes 16196 export_dynamic_flag_spec='${wl}-Bexport' 16197 runpath_var='LD_RUN_PATH' 16198 16199 if test "$GCC" = yes; then 16200 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16201 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16202 else 16203 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16204 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16205 fi 16206 ;; 16207 16208 uts4*) 16209 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16210 hardcode_libdir_flag_spec='-L$libdir' 16211 hardcode_shlibpath_var=no 16212 ;; 16213 16214 *) 16215 ld_shlibs=no 16216 ;; 16217 esac 16218 16219 if test x$host_vendor = xsni; then 16220 case $host in 16221 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16222 export_dynamic_flag_spec='${wl}-Blargedynsym' 16223 ;; 16224 esac 16225 fi 16226 fi 16227 16228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16229$as_echo "$ld_shlibs" >&6; } 16230test "$ld_shlibs" = no && can_build_shared=no 16231 16232with_gnu_ld=$with_gnu_ld 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248# 16249# Do we need to explicitly link libc? 16250# 16251case "x$archive_cmds_need_lc" in 16252x|xyes) 16253 # Assume -lc should be added 16254 archive_cmds_need_lc=yes 16255 16256 if test "$enable_shared" = yes && test "$GCC" = yes; then 16257 case $archive_cmds in 16258 *'~'*) 16259 # FIXME: we may have to deal with multi-command sequences. 16260 ;; 16261 '$CC '*) 16262 # Test whether the compiler implicitly links with -lc since on some 16263 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16264 # to ld, don't add -lc before -lgcc. 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16266$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16267if ${lt_cv_archive_cmds_need_lc+:} false; then : 16268 $as_echo_n "(cached) " >&6 16269else 16270 $RM conftest* 16271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 16272 16273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16274 (eval $ac_compile) 2>&5 16275 ac_status=$? 16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16277 test $ac_status = 0; } 2>conftest.err; then 16278 soname=conftest 16279 lib=conftest 16280 libobjs=conftest.$ac_objext 16281 deplibs= 16282 wl=$lt_prog_compiler_wl 16283 pic_flag=$lt_prog_compiler_pic 16284 compiler_flags=-v 16285 linker_flags=-v 16286 verstring= 16287 output_objdir=. 16288 libname=conftest 16289 lt_save_allow_undefined_flag=$allow_undefined_flag 16290 allow_undefined_flag= 16291 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 16292 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 16293 ac_status=$? 16294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16295 test $ac_status = 0; } 16296 then 16297 lt_cv_archive_cmds_need_lc=no 16298 else 16299 lt_cv_archive_cmds_need_lc=yes 16300 fi 16301 allow_undefined_flag=$lt_save_allow_undefined_flag 16302 else 16303 cat conftest.err 1>&5 16304 fi 16305 $RM conftest* 16306 16307fi 16308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 16309$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 16310 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 16311 ;; 16312 esac 16313 fi 16314 ;; 16315esac 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 16469$as_echo_n "checking dynamic linker characteristics... " >&6; } 16470 16471if test "$GCC" = yes; then 16472 case $host_os in 16473 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 16474 *) lt_awk_arg="/^libraries:/" ;; 16475 esac 16476 case $host_os in 16477 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 16478 *) lt_sed_strip_eq="s,=/,/,g" ;; 16479 esac 16480 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 16481 case $lt_search_path_spec in 16482 *\;*) 16483 # if the path contains ";" then we assume it to be the separator 16484 # otherwise default to the standard path separator (i.e. ":") - it is 16485 # assumed that no part of a normal pathname contains ";" but that should 16486 # okay in the real world where ";" in dirpaths is itself problematic. 16487 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 16488 ;; 16489 *) 16490 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 16491 ;; 16492 esac 16493 # Ok, now we have the path, separated by spaces, we can step through it 16494 # and add multilib dir if necessary. 16495 lt_tmp_lt_search_path_spec= 16496 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 16497 for lt_sys_path in $lt_search_path_spec; do 16498 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 16499 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 16500 else 16501 test -d "$lt_sys_path" && \ 16502 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 16503 fi 16504 done 16505 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 16506BEGIN {RS=" "; FS="/|\n";} { 16507 lt_foo=""; 16508 lt_count=0; 16509 for (lt_i = NF; lt_i > 0; lt_i--) { 16510 if ($lt_i != "" && $lt_i != ".") { 16511 if ($lt_i == "..") { 16512 lt_count++; 16513 } else { 16514 if (lt_count == 0) { 16515 lt_foo="/" $lt_i lt_foo; 16516 } else { 16517 lt_count--; 16518 } 16519 } 16520 } 16521 } 16522 if (lt_foo != "") { lt_freq[lt_foo]++; } 16523 if (lt_freq[lt_foo] == 1) { print lt_foo; } 16524}'` 16525 # AWK program above erroneously prepends '/' to C:/dos/paths 16526 # for these hosts. 16527 case $host_os in 16528 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 16529 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 16530 esac 16531 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 16532else 16533 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16534fi 16535library_names_spec= 16536libname_spec='lib$name' 16537soname_spec= 16538shrext_cmds=".so" 16539postinstall_cmds= 16540postuninstall_cmds= 16541finish_cmds= 16542finish_eval= 16543shlibpath_var= 16544shlibpath_overrides_runpath=unknown 16545version_type=none 16546dynamic_linker="$host_os ld.so" 16547sys_lib_dlsearch_path_spec="/lib /usr/lib" 16548need_lib_prefix=unknown 16549hardcode_into_libs=no 16550 16551# when you set need_version to no, make sure it does not cause -set_version 16552# flags to be left without arguments 16553need_version=unknown 16554 16555case $host_os in 16556aix3*) 16557 version_type=linux # correct to gnu/linux during the next big refactor 16558 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16559 shlibpath_var=LIBPATH 16560 16561 # AIX 3 has no versioning support, so we append a major version to the name. 16562 soname_spec='${libname}${release}${shared_ext}$major' 16563 ;; 16564 16565aix[4-9]*) 16566 version_type=linux # correct to gnu/linux during the next big refactor 16567 need_lib_prefix=no 16568 need_version=no 16569 hardcode_into_libs=yes 16570 if test "$host_cpu" = ia64; then 16571 # AIX 5 supports IA64 16572 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16573 shlibpath_var=LD_LIBRARY_PATH 16574 else 16575 # With GCC up to 2.95.x, collect2 would create an import file 16576 # for dependence libraries. The import file would start with 16577 # the line `#! .'. This would cause the generated library to 16578 # depend on `.', always an invalid library. This was fixed in 16579 # development snapshots of GCC prior to 3.0. 16580 case $host_os in 16581 aix4 | aix4.[01] | aix4.[01].*) 16582 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16583 echo ' yes ' 16584 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 16585 : 16586 else 16587 can_build_shared=no 16588 fi 16589 ;; 16590 esac 16591 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16592 # soname into executable. Probably we can add versioning support to 16593 # collect2, so additional links can be useful in future. 16594 if test "$aix_use_runtimelinking" = yes; then 16595 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16596 # instead of lib<name>.a to let people know that these are not 16597 # typical AIX shared libraries. 16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16599 else 16600 # We preserve .a as extension for shared libraries through AIX4.2 16601 # and later when we are not doing run time linking. 16602 library_names_spec='${libname}${release}.a $libname.a' 16603 soname_spec='${libname}${release}${shared_ext}$major' 16604 fi 16605 shlibpath_var=LIBPATH 16606 fi 16607 ;; 16608 16609amigaos*) 16610 case $host_cpu in 16611 powerpc) 16612 # Since July 2007 AmigaOS4 officially supports .so libraries. 16613 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16615 ;; 16616 m68k) 16617 library_names_spec='$libname.ixlibrary $libname.a' 16618 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16619 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' 16620 ;; 16621 esac 16622 ;; 16623 16624beos*) 16625 library_names_spec='${libname}${shared_ext}' 16626 dynamic_linker="$host_os ld.so" 16627 shlibpath_var=LIBRARY_PATH 16628 ;; 16629 16630bsdi[45]*) 16631 version_type=linux # correct to gnu/linux during the next big refactor 16632 need_version=no 16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16634 soname_spec='${libname}${release}${shared_ext}$major' 16635 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16636 shlibpath_var=LD_LIBRARY_PATH 16637 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16638 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16639 # the default ld.so.conf also contains /usr/contrib/lib and 16640 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16641 # libtool to hard-code these into programs 16642 ;; 16643 16644cygwin* | mingw* | pw32* | cegcc*) 16645 version_type=windows 16646 shrext_cmds=".dll" 16647 need_version=no 16648 need_lib_prefix=no 16649 16650 case $GCC,$cc_basename in 16651 yes,*) 16652 # gcc 16653 library_names_spec='$libname.dll.a' 16654 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16655 postinstall_cmds='base_file=`basename \${file}`~ 16656 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16657 dldir=$destdir/`dirname \$dlpath`~ 16658 test -d \$dldir || mkdir -p \$dldir~ 16659 $install_prog $dir/$dlname \$dldir/$dlname~ 16660 chmod a+x \$dldir/$dlname~ 16661 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16662 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16663 fi' 16664 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16665 dlpath=$dir/\$dldll~ 16666 $RM \$dlpath' 16667 shlibpath_overrides_runpath=yes 16668 16669 case $host_os in 16670 cygwin*) 16671 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16672 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16673 16674 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 16675 ;; 16676 mingw* | cegcc*) 16677 # MinGW DLLs use traditional 'lib' prefix 16678 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16679 ;; 16680 pw32*) 16681 # pw32 DLLs use 'pw' prefix rather than 'lib' 16682 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16683 ;; 16684 esac 16685 dynamic_linker='Win32 ld.exe' 16686 ;; 16687 16688 *,cl*) 16689 # Native MSVC 16690 libname_spec='$name' 16691 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16692 library_names_spec='${libname}.dll.lib' 16693 16694 case $build_os in 16695 mingw*) 16696 sys_lib_search_path_spec= 16697 lt_save_ifs=$IFS 16698 IFS=';' 16699 for lt_path in $LIB 16700 do 16701 IFS=$lt_save_ifs 16702 # Let DOS variable expansion print the short 8.3 style file name. 16703 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16704 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16705 done 16706 IFS=$lt_save_ifs 16707 # Convert to MSYS style. 16708 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16709 ;; 16710 cygwin*) 16711 # Convert to unix form, then to dos form, then back to unix form 16712 # but this time dos style (no spaces!) so that the unix form looks 16713 # like /cygdrive/c/PROGRA~1:/cygdr... 16714 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16715 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16716 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16717 ;; 16718 *) 16719 sys_lib_search_path_spec="$LIB" 16720 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16721 # It is most probably a Windows format PATH. 16722 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16723 else 16724 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16725 fi 16726 # FIXME: find the short name or the path components, as spaces are 16727 # common. (e.g. "Program Files" -> "PROGRA~1") 16728 ;; 16729 esac 16730 16731 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16732 postinstall_cmds='base_file=`basename \${file}`~ 16733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 16734 dldir=$destdir/`dirname \$dlpath`~ 16735 test -d \$dldir || mkdir -p \$dldir~ 16736 $install_prog $dir/$dlname \$dldir/$dlname' 16737 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16738 dlpath=$dir/\$dldll~ 16739 $RM \$dlpath' 16740 shlibpath_overrides_runpath=yes 16741 dynamic_linker='Win32 link.exe' 16742 ;; 16743 16744 *) 16745 # Assume MSVC wrapper 16746 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16747 dynamic_linker='Win32 ld.exe' 16748 ;; 16749 esac 16750 # FIXME: first we should search . and the directory the executable is in 16751 shlibpath_var=PATH 16752 ;; 16753 16754darwin* | rhapsody*) 16755 dynamic_linker="$host_os dyld" 16756 version_type=darwin 16757 need_lib_prefix=no 16758 need_version=no 16759 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16760 soname_spec='${libname}${release}${major}$shared_ext' 16761 shlibpath_overrides_runpath=yes 16762 shlibpath_var=DYLD_LIBRARY_PATH 16763 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16764 16765 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 16766 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16767 ;; 16768 16769dgux*) 16770 version_type=linux # correct to gnu/linux during the next big refactor 16771 need_lib_prefix=no 16772 need_version=no 16773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16774 soname_spec='${libname}${release}${shared_ext}$major' 16775 shlibpath_var=LD_LIBRARY_PATH 16776 ;; 16777 16778freebsd* | dragonfly*) 16779 # DragonFly does not have aout. When/if they implement a new 16780 # versioning mechanism, adjust this. 16781 if test -x /usr/bin/objformat; then 16782 objformat=`/usr/bin/objformat` 16783 else 16784 case $host_os in 16785 freebsd[23].*) objformat=aout ;; 16786 *) objformat=elf ;; 16787 esac 16788 fi 16789 version_type=freebsd-$objformat 16790 case $version_type in 16791 freebsd-elf*) 16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16793 need_version=no 16794 need_lib_prefix=no 16795 ;; 16796 freebsd-*) 16797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16798 need_version=yes 16799 ;; 16800 esac 16801 shlibpath_var=LD_LIBRARY_PATH 16802 case $host_os in 16803 freebsd2.*) 16804 shlibpath_overrides_runpath=yes 16805 ;; 16806 freebsd3.[01]* | freebsdelf3.[01]*) 16807 shlibpath_overrides_runpath=yes 16808 hardcode_into_libs=yes 16809 ;; 16810 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16811 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16812 shlibpath_overrides_runpath=no 16813 hardcode_into_libs=yes 16814 ;; 16815 *) # from 4.6 on, and DragonFly 16816 shlibpath_overrides_runpath=yes 16817 hardcode_into_libs=yes 16818 ;; 16819 esac 16820 ;; 16821 16822haiku*) 16823 version_type=linux # correct to gnu/linux during the next big refactor 16824 need_lib_prefix=no 16825 need_version=no 16826 dynamic_linker="$host_os runtime_loader" 16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16828 soname_spec='${libname}${release}${shared_ext}$major' 16829 shlibpath_var=LIBRARY_PATH 16830 shlibpath_overrides_runpath=yes 16831 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16832 hardcode_into_libs=yes 16833 ;; 16834 16835hpux9* | hpux10* | hpux11*) 16836 # Give a soname corresponding to the major version so that dld.sl refuses to 16837 # link against other versions. 16838 version_type=sunos 16839 need_lib_prefix=no 16840 need_version=no 16841 case $host_cpu in 16842 ia64*) 16843 shrext_cmds='.so' 16844 hardcode_into_libs=yes 16845 dynamic_linker="$host_os dld.so" 16846 shlibpath_var=LD_LIBRARY_PATH 16847 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16849 soname_spec='${libname}${release}${shared_ext}$major' 16850 if test "X$HPUX_IA64_MODE" = X32; then 16851 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16852 else 16853 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16854 fi 16855 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16856 ;; 16857 hppa*64*) 16858 shrext_cmds='.sl' 16859 hardcode_into_libs=yes 16860 dynamic_linker="$host_os dld.sl" 16861 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16862 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16864 soname_spec='${libname}${release}${shared_ext}$major' 16865 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16866 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16867 ;; 16868 *) 16869 shrext_cmds='.sl' 16870 dynamic_linker="$host_os dld.sl" 16871 shlibpath_var=SHLIB_PATH 16872 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16874 soname_spec='${libname}${release}${shared_ext}$major' 16875 ;; 16876 esac 16877 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16878 postinstall_cmds='chmod 555 $lib' 16879 # or fails outright, so override atomically: 16880 install_override_mode=555 16881 ;; 16882 16883interix[3-9]*) 16884 version_type=linux # correct to gnu/linux during the next big refactor 16885 need_lib_prefix=no 16886 need_version=no 16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16888 soname_spec='${libname}${release}${shared_ext}$major' 16889 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16890 shlibpath_var=LD_LIBRARY_PATH 16891 shlibpath_overrides_runpath=no 16892 hardcode_into_libs=yes 16893 ;; 16894 16895irix5* | irix6* | nonstopux*) 16896 case $host_os in 16897 nonstopux*) version_type=nonstopux ;; 16898 *) 16899 if test "$lt_cv_prog_gnu_ld" = yes; then 16900 version_type=linux # correct to gnu/linux during the next big refactor 16901 else 16902 version_type=irix 16903 fi ;; 16904 esac 16905 need_lib_prefix=no 16906 need_version=no 16907 soname_spec='${libname}${release}${shared_ext}$major' 16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16909 case $host_os in 16910 irix5* | nonstopux*) 16911 libsuff= shlibsuff= 16912 ;; 16913 *) 16914 case $LD in # libtool.m4 will add one of these switches to LD 16915 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16916 libsuff= shlibsuff= libmagic=32-bit;; 16917 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16918 libsuff=32 shlibsuff=N32 libmagic=N32;; 16919 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16920 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16921 *) libsuff= shlibsuff= libmagic=never-match;; 16922 esac 16923 ;; 16924 esac 16925 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16926 shlibpath_overrides_runpath=no 16927 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16928 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16929 hardcode_into_libs=yes 16930 ;; 16931 16932# No shared lib support for Linux oldld, aout, or coff. 16933linux*oldld* | linux*aout* | linux*coff*) 16934 dynamic_linker=no 16935 ;; 16936 16937# This must be glibc/ELF. 16938linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16939 version_type=linux # correct to gnu/linux during the next big refactor 16940 need_lib_prefix=no 16941 need_version=no 16942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16943 soname_spec='${libname}${release}${shared_ext}$major' 16944 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16945 shlibpath_var=LD_LIBRARY_PATH 16946 shlibpath_overrides_runpath=no 16947 16948 # Some binutils ld are patched to set DT_RUNPATH 16949 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16950 $as_echo_n "(cached) " >&6 16951else 16952 lt_cv_shlibpath_overrides_runpath=no 16953 save_LDFLAGS=$LDFLAGS 16954 save_libdir=$libdir 16955 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 16956 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 16957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16958/* end confdefs.h. */ 16959 16960int 16961main () 16962{ 16963 16964 ; 16965 return 0; 16966} 16967_ACEOF 16968if ac_fn_c_try_link "$LINENO"; then : 16969 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16970 lt_cv_shlibpath_overrides_runpath=yes 16971fi 16972fi 16973rm -f core conftest.err conftest.$ac_objext \ 16974 conftest$ac_exeext conftest.$ac_ext 16975 LDFLAGS=$save_LDFLAGS 16976 libdir=$save_libdir 16977 16978fi 16979 16980 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16981 16982 # This implies no fast_install, which is unacceptable. 16983 # Some rework will be needed to allow for fast_install 16984 # before this can be enabled. 16985 hardcode_into_libs=yes 16986 16987 # Append ld.so.conf contents to the search path 16988 if test -f /etc/ld.so.conf; then 16989 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' ' '` 16990 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16991 fi 16992 16993 # We used to test for /lib/ld.so.1 and disable shared libraries on 16994 # powerpc, because MkLinux only supported shared libraries with the 16995 # GNU dynamic linker. Since this was broken with cross compilers, 16996 # most powerpc-linux boxes support dynamic linking these days and 16997 # people can always --disable-shared, the test was removed, and we 16998 # assume the GNU/Linux dynamic linker is in use. 16999 dynamic_linker='GNU/Linux ld.so' 17000 ;; 17001 17002netbsdelf*-gnu) 17003 version_type=linux 17004 need_lib_prefix=no 17005 need_version=no 17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17007 soname_spec='${libname}${release}${shared_ext}$major' 17008 shlibpath_var=LD_LIBRARY_PATH 17009 shlibpath_overrides_runpath=no 17010 hardcode_into_libs=yes 17011 dynamic_linker='NetBSD ld.elf_so' 17012 ;; 17013 17014netbsd*) 17015 version_type=sunos 17016 need_lib_prefix=no 17017 need_version=no 17018 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17020 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17021 dynamic_linker='NetBSD (a.out) ld.so' 17022 else 17023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17024 soname_spec='${libname}${release}${shared_ext}$major' 17025 dynamic_linker='NetBSD ld.elf_so' 17026 fi 17027 shlibpath_var=LD_LIBRARY_PATH 17028 shlibpath_overrides_runpath=yes 17029 hardcode_into_libs=yes 17030 ;; 17031 17032newsos6) 17033 version_type=linux # correct to gnu/linux during the next big refactor 17034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17035 shlibpath_var=LD_LIBRARY_PATH 17036 shlibpath_overrides_runpath=yes 17037 ;; 17038 17039*nto* | *qnx*) 17040 version_type=qnx 17041 need_lib_prefix=no 17042 need_version=no 17043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17044 soname_spec='${libname}${release}${shared_ext}$major' 17045 shlibpath_var=LD_LIBRARY_PATH 17046 shlibpath_overrides_runpath=no 17047 hardcode_into_libs=yes 17048 dynamic_linker='ldqnx.so' 17049 ;; 17050 17051openbsd*) 17052 version_type=sunos 17053 sys_lib_dlsearch_path_spec="/usr/lib" 17054 need_lib_prefix=no 17055 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17056 case $host_os in 17057 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17058 *) need_version=no ;; 17059 esac 17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17062 shlibpath_var=LD_LIBRARY_PATH 17063 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17064 case $host_os in 17065 openbsd2.[89] | openbsd2.[89].*) 17066 shlibpath_overrides_runpath=no 17067 ;; 17068 *) 17069 shlibpath_overrides_runpath=yes 17070 ;; 17071 esac 17072 else 17073 shlibpath_overrides_runpath=yes 17074 fi 17075 ;; 17076 17077os2*) 17078 libname_spec='$name' 17079 shrext_cmds=".dll" 17080 need_lib_prefix=no 17081 library_names_spec='$libname${shared_ext} $libname.a' 17082 dynamic_linker='OS/2 ld.exe' 17083 shlibpath_var=LIBPATH 17084 ;; 17085 17086osf3* | osf4* | osf5*) 17087 version_type=osf 17088 need_lib_prefix=no 17089 need_version=no 17090 soname_spec='${libname}${release}${shared_ext}$major' 17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17092 shlibpath_var=LD_LIBRARY_PATH 17093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17095 ;; 17096 17097rdos*) 17098 dynamic_linker=no 17099 ;; 17100 17101solaris*) 17102 version_type=linux # correct to gnu/linux during the next big refactor 17103 need_lib_prefix=no 17104 need_version=no 17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17106 soname_spec='${libname}${release}${shared_ext}$major' 17107 shlibpath_var=LD_LIBRARY_PATH 17108 shlibpath_overrides_runpath=yes 17109 hardcode_into_libs=yes 17110 # ldd complains unless libraries are executable 17111 postinstall_cmds='chmod +x $lib' 17112 ;; 17113 17114sunos4*) 17115 version_type=sunos 17116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17117 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17118 shlibpath_var=LD_LIBRARY_PATH 17119 shlibpath_overrides_runpath=yes 17120 if test "$with_gnu_ld" = yes; then 17121 need_lib_prefix=no 17122 fi 17123 need_version=yes 17124 ;; 17125 17126sysv4 | sysv4.3*) 17127 version_type=linux # correct to gnu/linux during the next big refactor 17128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17129 soname_spec='${libname}${release}${shared_ext}$major' 17130 shlibpath_var=LD_LIBRARY_PATH 17131 case $host_vendor in 17132 sni) 17133 shlibpath_overrides_runpath=no 17134 need_lib_prefix=no 17135 runpath_var=LD_RUN_PATH 17136 ;; 17137 siemens) 17138 need_lib_prefix=no 17139 ;; 17140 motorola) 17141 need_lib_prefix=no 17142 need_version=no 17143 shlibpath_overrides_runpath=no 17144 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17145 ;; 17146 esac 17147 ;; 17148 17149sysv4*MP*) 17150 if test -d /usr/nec ;then 17151 version_type=linux # correct to gnu/linux during the next big refactor 17152 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17153 soname_spec='$libname${shared_ext}.$major' 17154 shlibpath_var=LD_LIBRARY_PATH 17155 fi 17156 ;; 17157 17158sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17159 version_type=freebsd-elf 17160 need_lib_prefix=no 17161 need_version=no 17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17163 soname_spec='${libname}${release}${shared_ext}$major' 17164 shlibpath_var=LD_LIBRARY_PATH 17165 shlibpath_overrides_runpath=yes 17166 hardcode_into_libs=yes 17167 if test "$with_gnu_ld" = yes; then 17168 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17169 else 17170 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17171 case $host_os in 17172 sco3.2v5*) 17173 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17174 ;; 17175 esac 17176 fi 17177 sys_lib_dlsearch_path_spec='/usr/lib' 17178 ;; 17179 17180tpf*) 17181 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17182 version_type=linux # correct to gnu/linux during the next big refactor 17183 need_lib_prefix=no 17184 need_version=no 17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17186 shlibpath_var=LD_LIBRARY_PATH 17187 shlibpath_overrides_runpath=no 17188 hardcode_into_libs=yes 17189 ;; 17190 17191uts4*) 17192 version_type=linux # correct to gnu/linux during the next big refactor 17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17194 soname_spec='${libname}${release}${shared_ext}$major' 17195 shlibpath_var=LD_LIBRARY_PATH 17196 ;; 17197 17198*) 17199 dynamic_linker=no 17200 ;; 17201esac 17202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17203$as_echo "$dynamic_linker" >&6; } 17204test "$dynamic_linker" = no && can_build_shared=no 17205 17206variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17207if test "$GCC" = yes; then 17208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17209fi 17210 17211if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17212 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17213fi 17214if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17215 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17216fi 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 17310$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 17311hardcode_action= 17312if test -n "$hardcode_libdir_flag_spec" || 17313 test -n "$runpath_var" || 17314 test "X$hardcode_automatic" = "Xyes" ; then 17315 17316 # We can hardcode non-existent directories. 17317 if test "$hardcode_direct" != no && 17318 # If the only mechanism to avoid hardcoding is shlibpath_var, we 17319 # have to relink, otherwise we might link with an installed library 17320 # when we should be linking with a yet-to-be-installed one 17321 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 17322 test "$hardcode_minus_L" != no; then 17323 # Linking always hardcodes the temporary library directory. 17324 hardcode_action=relink 17325 else 17326 # We can link without hardcoding, and we can hardcode nonexisting dirs. 17327 hardcode_action=immediate 17328 fi 17329else 17330 # We cannot hardcode anything, or else we can only hardcode existing 17331 # directories. 17332 hardcode_action=unsupported 17333fi 17334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 17335$as_echo "$hardcode_action" >&6; } 17336 17337if test "$hardcode_action" = relink || 17338 test "$inherit_rpath" = yes; then 17339 # Fast installation is not supported 17340 enable_fast_install=no 17341elif test "$shlibpath_overrides_runpath" = yes || 17342 test "$enable_shared" = no; then 17343 # Fast installation is not necessary 17344 enable_fast_install=needless 17345fi 17346 17347 17348 17349 17350 17351 17352 if test "x$enable_dlopen" != xyes; then 17353 enable_dlopen=unknown 17354 enable_dlopen_self=unknown 17355 enable_dlopen_self_static=unknown 17356else 17357 lt_cv_dlopen=no 17358 lt_cv_dlopen_libs= 17359 17360 case $host_os in 17361 beos*) 17362 lt_cv_dlopen="load_add_on" 17363 lt_cv_dlopen_libs= 17364 lt_cv_dlopen_self=yes 17365 ;; 17366 17367 mingw* | pw32* | cegcc*) 17368 lt_cv_dlopen="LoadLibrary" 17369 lt_cv_dlopen_libs= 17370 ;; 17371 17372 cygwin*) 17373 lt_cv_dlopen="dlopen" 17374 lt_cv_dlopen_libs= 17375 ;; 17376 17377 darwin*) 17378 # if libdl is installed we need to link against it 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17380$as_echo_n "checking for dlopen in -ldl... " >&6; } 17381if ${ac_cv_lib_dl_dlopen+:} false; then : 17382 $as_echo_n "(cached) " >&6 17383else 17384 ac_check_lib_save_LIBS=$LIBS 17385LIBS="-ldl $LIBS" 17386cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17387/* end confdefs.h. */ 17388 17389/* Override any GCC internal prototype to avoid an error. 17390 Use char because int might match the return type of a GCC 17391 builtin and then its argument prototype would still apply. */ 17392#ifdef __cplusplus 17393extern "C" 17394#endif 17395char dlopen (); 17396int 17397main () 17398{ 17399return dlopen (); 17400 ; 17401 return 0; 17402} 17403_ACEOF 17404if ac_fn_c_try_link "$LINENO"; then : 17405 ac_cv_lib_dl_dlopen=yes 17406else 17407 ac_cv_lib_dl_dlopen=no 17408fi 17409rm -f core conftest.err conftest.$ac_objext \ 17410 conftest$ac_exeext conftest.$ac_ext 17411LIBS=$ac_check_lib_save_LIBS 17412fi 17413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17414$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17415if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17417else 17418 17419 lt_cv_dlopen="dyld" 17420 lt_cv_dlopen_libs= 17421 lt_cv_dlopen_self=yes 17422 17423fi 17424 17425 ;; 17426 17427 *) 17428 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 17429if test "x$ac_cv_func_shl_load" = xyes; then : 17430 lt_cv_dlopen="shl_load" 17431else 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 17433$as_echo_n "checking for shl_load in -ldld... " >&6; } 17434if ${ac_cv_lib_dld_shl_load+:} false; then : 17435 $as_echo_n "(cached) " >&6 17436else 17437 ac_check_lib_save_LIBS=$LIBS 17438LIBS="-ldld $LIBS" 17439cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17440/* end confdefs.h. */ 17441 17442/* Override any GCC internal prototype to avoid an error. 17443 Use char because int might match the return type of a GCC 17444 builtin and then its argument prototype would still apply. */ 17445#ifdef __cplusplus 17446extern "C" 17447#endif 17448char shl_load (); 17449int 17450main () 17451{ 17452return shl_load (); 17453 ; 17454 return 0; 17455} 17456_ACEOF 17457if ac_fn_c_try_link "$LINENO"; then : 17458 ac_cv_lib_dld_shl_load=yes 17459else 17460 ac_cv_lib_dld_shl_load=no 17461fi 17462rm -f core conftest.err conftest.$ac_objext \ 17463 conftest$ac_exeext conftest.$ac_ext 17464LIBS=$ac_check_lib_save_LIBS 17465fi 17466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 17467$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 17468if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 17469 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 17470else 17471 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17472if test "x$ac_cv_func_dlopen" = xyes; then : 17473 lt_cv_dlopen="dlopen" 17474else 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 17476$as_echo_n "checking for dlopen in -ldl... " >&6; } 17477if ${ac_cv_lib_dl_dlopen+:} false; then : 17478 $as_echo_n "(cached) " >&6 17479else 17480 ac_check_lib_save_LIBS=$LIBS 17481LIBS="-ldl $LIBS" 17482cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17483/* end confdefs.h. */ 17484 17485/* Override any GCC internal prototype to avoid an error. 17486 Use char because int might match the return type of a GCC 17487 builtin and then its argument prototype would still apply. */ 17488#ifdef __cplusplus 17489extern "C" 17490#endif 17491char dlopen (); 17492int 17493main () 17494{ 17495return dlopen (); 17496 ; 17497 return 0; 17498} 17499_ACEOF 17500if ac_fn_c_try_link "$LINENO"; then : 17501 ac_cv_lib_dl_dlopen=yes 17502else 17503 ac_cv_lib_dl_dlopen=no 17504fi 17505rm -f core conftest.err conftest.$ac_objext \ 17506 conftest$ac_exeext conftest.$ac_ext 17507LIBS=$ac_check_lib_save_LIBS 17508fi 17509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 17510$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 17511if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 17512 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17513else 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 17515$as_echo_n "checking for dlopen in -lsvld... " >&6; } 17516if ${ac_cv_lib_svld_dlopen+:} false; then : 17517 $as_echo_n "(cached) " >&6 17518else 17519 ac_check_lib_save_LIBS=$LIBS 17520LIBS="-lsvld $LIBS" 17521cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17522/* end confdefs.h. */ 17523 17524/* Override any GCC internal prototype to avoid an error. 17525 Use char because int might match the return type of a GCC 17526 builtin and then its argument prototype would still apply. */ 17527#ifdef __cplusplus 17528extern "C" 17529#endif 17530char dlopen (); 17531int 17532main () 17533{ 17534return dlopen (); 17535 ; 17536 return 0; 17537} 17538_ACEOF 17539if ac_fn_c_try_link "$LINENO"; then : 17540 ac_cv_lib_svld_dlopen=yes 17541else 17542 ac_cv_lib_svld_dlopen=no 17543fi 17544rm -f core conftest.err conftest.$ac_objext \ 17545 conftest$ac_exeext conftest.$ac_ext 17546LIBS=$ac_check_lib_save_LIBS 17547fi 17548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 17549$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 17550if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 17551 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17552else 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 17554$as_echo_n "checking for dld_link in -ldld... " >&6; } 17555if ${ac_cv_lib_dld_dld_link+:} false; then : 17556 $as_echo_n "(cached) " >&6 17557else 17558 ac_check_lib_save_LIBS=$LIBS 17559LIBS="-ldld $LIBS" 17560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17561/* end confdefs.h. */ 17562 17563/* Override any GCC internal prototype to avoid an error. 17564 Use char because int might match the return type of a GCC 17565 builtin and then its argument prototype would still apply. */ 17566#ifdef __cplusplus 17567extern "C" 17568#endif 17569char dld_link (); 17570int 17571main () 17572{ 17573return dld_link (); 17574 ; 17575 return 0; 17576} 17577_ACEOF 17578if ac_fn_c_try_link "$LINENO"; then : 17579 ac_cv_lib_dld_dld_link=yes 17580else 17581 ac_cv_lib_dld_dld_link=no 17582fi 17583rm -f core conftest.err conftest.$ac_objext \ 17584 conftest$ac_exeext conftest.$ac_ext 17585LIBS=$ac_check_lib_save_LIBS 17586fi 17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 17588$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 17589if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 17590 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 17591fi 17592 17593 17594fi 17595 17596 17597fi 17598 17599 17600fi 17601 17602 17603fi 17604 17605 17606fi 17607 17608 ;; 17609 esac 17610 17611 if test "x$lt_cv_dlopen" != xno; then 17612 enable_dlopen=yes 17613 else 17614 enable_dlopen=no 17615 fi 17616 17617 case $lt_cv_dlopen in 17618 dlopen) 17619 save_CPPFLAGS="$CPPFLAGS" 17620 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17621 17622 save_LDFLAGS="$LDFLAGS" 17623 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17624 17625 save_LIBS="$LIBS" 17626 LIBS="$lt_cv_dlopen_libs $LIBS" 17627 17628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 17629$as_echo_n "checking whether a program can dlopen itself... " >&6; } 17630if ${lt_cv_dlopen_self+:} false; then : 17631 $as_echo_n "(cached) " >&6 17632else 17633 if test "$cross_compiling" = yes; then : 17634 lt_cv_dlopen_self=cross 17635else 17636 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17637 lt_status=$lt_dlunknown 17638 cat > conftest.$ac_ext <<_LT_EOF 17639#line $LINENO "configure" 17640#include "confdefs.h" 17641 17642#if HAVE_DLFCN_H 17643#include <dlfcn.h> 17644#endif 17645 17646#include <stdio.h> 17647 17648#ifdef RTLD_GLOBAL 17649# define LT_DLGLOBAL RTLD_GLOBAL 17650#else 17651# ifdef DL_GLOBAL 17652# define LT_DLGLOBAL DL_GLOBAL 17653# else 17654# define LT_DLGLOBAL 0 17655# endif 17656#endif 17657 17658/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17659 find out it does not work in some platform. */ 17660#ifndef LT_DLLAZY_OR_NOW 17661# ifdef RTLD_LAZY 17662# define LT_DLLAZY_OR_NOW RTLD_LAZY 17663# else 17664# ifdef DL_LAZY 17665# define LT_DLLAZY_OR_NOW DL_LAZY 17666# else 17667# ifdef RTLD_NOW 17668# define LT_DLLAZY_OR_NOW RTLD_NOW 17669# else 17670# ifdef DL_NOW 17671# define LT_DLLAZY_OR_NOW DL_NOW 17672# else 17673# define LT_DLLAZY_OR_NOW 0 17674# endif 17675# endif 17676# endif 17677# endif 17678#endif 17679 17680/* When -fvisbility=hidden is used, assume the code has been annotated 17681 correspondingly for the symbols needed. */ 17682#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17683int fnord () __attribute__((visibility("default"))); 17684#endif 17685 17686int fnord () { return 42; } 17687int main () 17688{ 17689 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17690 int status = $lt_dlunknown; 17691 17692 if (self) 17693 { 17694 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17695 else 17696 { 17697 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17698 else puts (dlerror ()); 17699 } 17700 /* dlclose (self); */ 17701 } 17702 else 17703 puts (dlerror ()); 17704 17705 return status; 17706} 17707_LT_EOF 17708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17709 (eval $ac_link) 2>&5 17710 ac_status=$? 17711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17712 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17713 (./conftest; exit; ) >&5 2>/dev/null 17714 lt_status=$? 17715 case x$lt_status in 17716 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17717 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17718 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 17719 esac 17720 else : 17721 # compilation failed 17722 lt_cv_dlopen_self=no 17723 fi 17724fi 17725rm -fr conftest* 17726 17727 17728fi 17729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 17730$as_echo "$lt_cv_dlopen_self" >&6; } 17731 17732 if test "x$lt_cv_dlopen_self" = xyes; then 17733 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 17735$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 17736if ${lt_cv_dlopen_self_static+:} false; then : 17737 $as_echo_n "(cached) " >&6 17738else 17739 if test "$cross_compiling" = yes; then : 17740 lt_cv_dlopen_self_static=cross 17741else 17742 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17743 lt_status=$lt_dlunknown 17744 cat > conftest.$ac_ext <<_LT_EOF 17745#line $LINENO "configure" 17746#include "confdefs.h" 17747 17748#if HAVE_DLFCN_H 17749#include <dlfcn.h> 17750#endif 17751 17752#include <stdio.h> 17753 17754#ifdef RTLD_GLOBAL 17755# define LT_DLGLOBAL RTLD_GLOBAL 17756#else 17757# ifdef DL_GLOBAL 17758# define LT_DLGLOBAL DL_GLOBAL 17759# else 17760# define LT_DLGLOBAL 0 17761# endif 17762#endif 17763 17764/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17765 find out it does not work in some platform. */ 17766#ifndef LT_DLLAZY_OR_NOW 17767# ifdef RTLD_LAZY 17768# define LT_DLLAZY_OR_NOW RTLD_LAZY 17769# else 17770# ifdef DL_LAZY 17771# define LT_DLLAZY_OR_NOW DL_LAZY 17772# else 17773# ifdef RTLD_NOW 17774# define LT_DLLAZY_OR_NOW RTLD_NOW 17775# else 17776# ifdef DL_NOW 17777# define LT_DLLAZY_OR_NOW DL_NOW 17778# else 17779# define LT_DLLAZY_OR_NOW 0 17780# endif 17781# endif 17782# endif 17783# endif 17784#endif 17785 17786/* When -fvisbility=hidden is used, assume the code has been annotated 17787 correspondingly for the symbols needed. */ 17788#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 17789int fnord () __attribute__((visibility("default"))); 17790#endif 17791 17792int fnord () { return 42; } 17793int main () 17794{ 17795 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17796 int status = $lt_dlunknown; 17797 17798 if (self) 17799 { 17800 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17801 else 17802 { 17803 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17804 else puts (dlerror ()); 17805 } 17806 /* dlclose (self); */ 17807 } 17808 else 17809 puts (dlerror ()); 17810 17811 return status; 17812} 17813_LT_EOF 17814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 17815 (eval $ac_link) 2>&5 17816 ac_status=$? 17817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17818 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 17819 (./conftest; exit; ) >&5 2>/dev/null 17820 lt_status=$? 17821 case x$lt_status in 17822 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17823 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17824 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 17825 esac 17826 else : 17827 # compilation failed 17828 lt_cv_dlopen_self_static=no 17829 fi 17830fi 17831rm -fr conftest* 17832 17833 17834fi 17835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 17836$as_echo "$lt_cv_dlopen_self_static" >&6; } 17837 fi 17838 17839 CPPFLAGS="$save_CPPFLAGS" 17840 LDFLAGS="$save_LDFLAGS" 17841 LIBS="$save_LIBS" 17842 ;; 17843 esac 17844 17845 case $lt_cv_dlopen_self in 17846 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17847 *) enable_dlopen_self=unknown ;; 17848 esac 17849 17850 case $lt_cv_dlopen_self_static in 17851 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17852 *) enable_dlopen_self_static=unknown ;; 17853 esac 17854fi 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872striplib= 17873old_striplib= 17874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 17875$as_echo_n "checking whether stripping libraries is possible... " >&6; } 17876if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 17877 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 17878 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17880$as_echo "yes" >&6; } 17881else 17882# FIXME - insert some real tests, host_os isn't really good enough 17883 case $host_os in 17884 darwin*) 17885 if test -n "$STRIP" ; then 17886 striplib="$STRIP -x" 17887 old_striplib="$STRIP -S" 17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17889$as_echo "yes" >&6; } 17890 else 17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17892$as_echo "no" >&6; } 17893 fi 17894 ;; 17895 *) 17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17897$as_echo "no" >&6; } 17898 ;; 17899 esac 17900fi 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 # Report which library types will actually be built 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 17915$as_echo_n "checking if libtool supports shared libraries... " >&6; } 17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 17917$as_echo "$can_build_shared" >&6; } 17918 17919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 17920$as_echo_n "checking whether to build shared libraries... " >&6; } 17921 test "$can_build_shared" = "no" && enable_shared=no 17922 17923 # On AIX, shared libraries and static libraries use the same namespace, and 17924 # are all built from PIC. 17925 case $host_os in 17926 aix3*) 17927 test "$enable_shared" = yes && enable_static=no 17928 if test -n "$RANLIB"; then 17929 archive_cmds="$archive_cmds~\$RANLIB \$lib" 17930 postinstall_cmds='$RANLIB $lib' 17931 fi 17932 ;; 17933 17934 aix[4-9]*) 17935 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 17936 test "$enable_shared" = yes && enable_static=no 17937 fi 17938 ;; 17939 esac 17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 17941$as_echo "$enable_shared" >&6; } 17942 17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 17944$as_echo_n "checking whether to build static libraries... " >&6; } 17945 # Make sure either enable_shared or enable_static is yes. 17946 test "$enable_shared" = yes || enable_static=yes 17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 17948$as_echo "$enable_static" >&6; } 17949 17950 17951 17952 17953fi 17954ac_ext=c 17955ac_cpp='$CPP $CPPFLAGS' 17956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 17957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 17958ac_compiler_gnu=$ac_cv_c_compiler_gnu 17959 17960CC="$lt_save_CC" 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 ac_config_commands="$ac_config_commands libtool" 17977 17978 17979 17980 17981# Only expand once: 17982 17983 17984 17985 17986 17987# Define a configure option for an alternate module directory 17988 17989# Check whether --with-xorg-module-dir was given. 17990if test "${with_xorg_module_dir+set}" = set; then : 17991 withval=$with_xorg_module_dir; moduledir="$withval" 17992else 17993 moduledir="$libdir/xorg/modules" 17994fi 17995 17996 17997# Obtain compiler/linker options for the driver dependencies 17998 17999pkg_failed=no 18000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18001$as_echo_n "checking for XORG... " >&6; } 18002 18003if test -n "$XORG_CFLAGS"; then 18004 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18005 elif test -n "$PKG_CONFIG"; then 18006 if test -n "$PKG_CONFIG" && \ 18007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18008 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18009 ac_status=$? 18010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18011 test $ac_status = 0; }; then 18012 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18013 test "x$?" != "x0" && pkg_failed=yes 18014else 18015 pkg_failed=yes 18016fi 18017 else 18018 pkg_failed=untried 18019fi 18020if test -n "$XORG_LIBS"; then 18021 pkg_cv_XORG_LIBS="$XORG_LIBS" 18022 elif test -n "$PKG_CONFIG"; then 18023 if test -n "$PKG_CONFIG" && \ 18024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\""; } >&5 18025 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5 18026 ac_status=$? 18027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18028 test $ac_status = 0; }; then 18029 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null` 18030 test "x$?" != "x0" && pkg_failed=yes 18031else 18032 pkg_failed=yes 18033fi 18034 else 18035 pkg_failed=untried 18036fi 18037 18038 18039 18040if test $pkg_failed = yes; then 18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18042$as_echo "no" >&6; } 18043 18044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18045 _pkg_short_errors_supported=yes 18046else 18047 _pkg_short_errors_supported=no 18048fi 18049 if test $_pkg_short_errors_supported = yes; then 18050 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18051 else 18052 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>&1` 18053 fi 18054 # Put the nasty error message in config.log where it belongs 18055 echo "$XORG_PKG_ERRORS" >&5 18056 18057 as_fn_error $? "Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met: 18058 18059$XORG_PKG_ERRORS 18060 18061Consider adjusting the PKG_CONFIG_PATH environment variable if you 18062installed software in a non-standard prefix. 18063 18064Alternatively, you may set the environment variables XORG_CFLAGS 18065and XORG_LIBS to avoid the need to call pkg-config. 18066See the pkg-config man page for more details." "$LINENO" 5 18067elif test $pkg_failed = untried; then 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18069$as_echo "no" >&6; } 18070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18072as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18073is in your PATH or set the PKG_CONFIG environment variable to the full 18074path to pkg-config. 18075 18076Alternatively, you may set the environment variables XORG_CFLAGS 18077and XORG_LIBS to avoid the need to call pkg-config. 18078See the pkg-config man page for more details. 18079 18080To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18081See \`config.log' for more details" "$LINENO" 5; } 18082else 18083 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18084 XORG_LIBS=$pkg_cv_XORG_LIBS 18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18086$as_echo "yes" >&6; } 18087 18088fi 18089 18090save_CFLAGS="$CFLAGS" 18091CFLAGS="$XORG_CFLAGS" 18092ac_fn_c_check_decl "$LINENO" "xf86ConfigIsaEntity" "ac_cv_have_decl_xf86ConfigIsaEntity" "#include \"xf86.h\" 18093" 18094if test "x$ac_cv_have_decl_xf86ConfigIsaEntity" = xyes; then : 18095 18096$as_echo "#define HAVE_ISA 1" >>confdefs.h 18097 18098fi 18099 18100CFLAGS="$save_CFLAGS" 18101 18102# Checks for libraries. 18103SAVE_CPPFLAGS="$CPPFLAGS" 18104CPPFLAGS="$CPPFLAGS $XORG_CFLAGS" 18105ac_fn_c_check_decl "$LINENO" "XSERVER_LIBPCIACCESS" "ac_cv_have_decl_XSERVER_LIBPCIACCESS" "#include \"xorg-server.h\" 18106" 18107if test "x$ac_cv_have_decl_XSERVER_LIBPCIACCESS" = xyes; then : 18108 XSERVER_LIBPCIACCESS=yes 18109else 18110 XSERVER_LIBPCIACCESS=no 18111fi 18112 18113CPPFLAGS="$SAVE_CPPFLAGS" 18114 18115# Check whether --enable-xaa was given. 18116if test "${enable_xaa+set}" = set; then : 18117 enableval=$enable_xaa; XAA="$enableval" 18118else 18119 XAA=auto 18120fi 18121 18122if test "x$XAA" != xno; then 18123 save_CFLAGS=$CFLAGS 18124 save_CPPFLAGS=$CPPFLAGS 18125 CFLAGS=$XORG_CFLAGS 18126 CPPFLAGS="$XORG_CFLAGS" 18127 for ac_header in xaa.h 18128do : 18129 ac_fn_c_check_header_mongrel "$LINENO" "xaa.h" "ac_cv_header_xaa_h" "$ac_includes_default" 18130if test "x$ac_cv_header_xaa_h" = xyes; then : 18131 cat >>confdefs.h <<_ACEOF 18132#define HAVE_XAA_H 1 18133_ACEOF 18134 XAA=yes 18135else 18136 XAA=no 18137fi 18138 18139done 18140 18141 CFLAGS=$save_CFLAGS 18142 CPPFLAGS=$save_CPPFLAGS 18143fi 18144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include XAA support" >&5 18145$as_echo_n "checking whether to include XAA support... " >&6; } 18146 if test "x$XAA" = xyes; then 18147 XAA_TRUE= 18148 XAA_FALSE='#' 18149else 18150 XAA_TRUE='#' 18151 XAA_FALSE= 18152fi 18153 18154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XAA" >&5 18155$as_echo "$XAA" >&6; } 18156 18157if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18158 18159pkg_failed=no 18160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCIACCESS" >&5 18161$as_echo_n "checking for PCIACCESS... " >&6; } 18162 18163if test -n "$PCIACCESS_CFLAGS"; then 18164 pkg_cv_PCIACCESS_CFLAGS="$PCIACCESS_CFLAGS" 18165 elif test -n "$PKG_CONFIG"; then 18166 if test -n "$PKG_CONFIG" && \ 18167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18168 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18169 ac_status=$? 18170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18171 test $ac_status = 0; }; then 18172 pkg_cv_PCIACCESS_CFLAGS=`$PKG_CONFIG --cflags "pciaccess >= 0.8.0" 2>/dev/null` 18173 test "x$?" != "x0" && pkg_failed=yes 18174else 18175 pkg_failed=yes 18176fi 18177 else 18178 pkg_failed=untried 18179fi 18180if test -n "$PCIACCESS_LIBS"; then 18181 pkg_cv_PCIACCESS_LIBS="$PCIACCESS_LIBS" 18182 elif test -n "$PKG_CONFIG"; then 18183 if test -n "$PKG_CONFIG" && \ 18184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pciaccess >= 0.8.0\""; } >&5 18185 ($PKG_CONFIG --exists --print-errors "pciaccess >= 0.8.0") 2>&5 18186 ac_status=$? 18187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18188 test $ac_status = 0; }; then 18189 pkg_cv_PCIACCESS_LIBS=`$PKG_CONFIG --libs "pciaccess >= 0.8.0" 2>/dev/null` 18190 test "x$?" != "x0" && pkg_failed=yes 18191else 18192 pkg_failed=yes 18193fi 18194 else 18195 pkg_failed=untried 18196fi 18197 18198 18199 18200if test $pkg_failed = yes; then 18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18202$as_echo "no" >&6; } 18203 18204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18205 _pkg_short_errors_supported=yes 18206else 18207 _pkg_short_errors_supported=no 18208fi 18209 if test $_pkg_short_errors_supported = yes; then 18210 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18211 else 18212 PCIACCESS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pciaccess >= 0.8.0" 2>&1` 18213 fi 18214 # Put the nasty error message in config.log where it belongs 18215 echo "$PCIACCESS_PKG_ERRORS" >&5 18216 18217 as_fn_error $? "Package requirements (pciaccess >= 0.8.0) were not met: 18218 18219$PCIACCESS_PKG_ERRORS 18220 18221Consider adjusting the PKG_CONFIG_PATH environment variable if you 18222installed software in a non-standard prefix. 18223 18224Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18225and PCIACCESS_LIBS to avoid the need to call pkg-config. 18226See the pkg-config man page for more details." "$LINENO" 5 18227elif test $pkg_failed = untried; then 18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18229$as_echo "no" >&6; } 18230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18231$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18232as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18233is in your PATH or set the PKG_CONFIG environment variable to the full 18234path to pkg-config. 18235 18236Alternatively, you may set the environment variables PCIACCESS_CFLAGS 18237and PCIACCESS_LIBS to avoid the need to call pkg-config. 18238See the pkg-config man page for more details. 18239 18240To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18241See \`config.log' for more details" "$LINENO" 5; } 18242else 18243 PCIACCESS_CFLAGS=$pkg_cv_PCIACCESS_CFLAGS 18244 PCIACCESS_LIBS=$pkg_cv_PCIACCESS_LIBS 18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18246$as_echo "yes" >&6; } 18247 18248fi 18249 XORG_CFLAGS="$XORG_CFLAGS $PCIACCESS_CFLAGS" 18250fi 18251 if test "x$XSERVER_LIBPCIACCESS" = xyes; then 18252 XSERVER_LIBPCIACCESS_TRUE= 18253 XSERVER_LIBPCIACCESS_FALSE='#' 18254else 18255 XSERVER_LIBPCIACCESS_TRUE='#' 18256 XSERVER_LIBPCIACCESS_FALSE= 18257fi 18258 18259 18260 18261 18262DRIVER_NAME=neomagic 18263 18264 18265ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 18266 18267cat >confcache <<\_ACEOF 18268# This file is a shell script that caches the results of configure 18269# tests run on this system so they can be shared between configure 18270# scripts and configure runs, see configure's option --config-cache. 18271# It is not useful on other systems. If it contains results you don't 18272# want to keep, you may remove or edit it. 18273# 18274# config.status only pays attention to the cache file if you give it 18275# the --recheck option to rerun configure. 18276# 18277# `ac_cv_env_foo' variables (set or unset) will be overridden when 18278# loading this file, other *unset* `ac_cv_foo' will be assigned the 18279# following values. 18280 18281_ACEOF 18282 18283# The following way of writing the cache mishandles newlines in values, 18284# but we know of no workaround that is simple, portable, and efficient. 18285# So, we kill variables containing newlines. 18286# Ultrix sh set writes to stderr and can't be redirected directly, 18287# and sets the high bit in the cache file unless we assign to the vars. 18288( 18289 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18290 eval ac_val=\$$ac_var 18291 case $ac_val in #( 18292 *${as_nl}*) 18293 case $ac_var in #( 18294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18295$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18296 esac 18297 case $ac_var in #( 18298 _ | IFS | as_nl) ;; #( 18299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18300 *) { eval $ac_var=; unset $ac_var;} ;; 18301 esac ;; 18302 esac 18303 done 18304 18305 (set) 2>&1 | 18306 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18307 *${as_nl}ac_space=\ *) 18308 # `set' does not quote correctly, so add quotes: double-quote 18309 # substitution turns \\\\ into \\, and sed turns \\ into \. 18310 sed -n \ 18311 "s/'/'\\\\''/g; 18312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18313 ;; #( 18314 *) 18315 # `set' quotes correctly as required by POSIX, so do not add quotes. 18316 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18317 ;; 18318 esac | 18319 sort 18320) | 18321 sed ' 18322 /^ac_cv_env_/b end 18323 t clear 18324 :clear 18325 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18326 t end 18327 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18328 :end' >>confcache 18329if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18330 if test -w "$cache_file"; then 18331 if test "x$cache_file" != "x/dev/null"; then 18332 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18333$as_echo "$as_me: updating cache $cache_file" >&6;} 18334 if test ! -f "$cache_file" || test -h "$cache_file"; then 18335 cat confcache >"$cache_file" 18336 else 18337 case $cache_file in #( 18338 */* | ?:*) 18339 mv -f confcache "$cache_file"$$ && 18340 mv -f "$cache_file"$$ "$cache_file" ;; #( 18341 *) 18342 mv -f confcache "$cache_file" ;; 18343 esac 18344 fi 18345 fi 18346 else 18347 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18348$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18349 fi 18350fi 18351rm -f confcache 18352 18353test "x$prefix" = xNONE && prefix=$ac_default_prefix 18354# Let make expand exec_prefix. 18355test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18356 18357DEFS=-DHAVE_CONFIG_H 18358 18359ac_libobjs= 18360ac_ltlibobjs= 18361U= 18362for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18363 # 1. Remove the extension, and $U if already installed. 18364 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18365 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18366 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18367 # will be set to the directory where LIBOBJS objects are built. 18368 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18369 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18370done 18371LIBOBJS=$ac_libobjs 18372 18373LTLIBOBJS=$ac_ltlibobjs 18374 18375 18376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18377$as_echo_n "checking that generated files are newer than configure... " >&6; } 18378 if test -n "$am_sleep_pid"; then 18379 # Hide warnings about reused PIDs. 18380 wait $am_sleep_pid 2>/dev/null 18381 fi 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18383$as_echo "done" >&6; } 18384 if test -n "$EXEEXT"; then 18385 am__EXEEXT_TRUE= 18386 am__EXEEXT_FALSE='#' 18387else 18388 am__EXEEXT_TRUE='#' 18389 am__EXEEXT_FALSE= 18390fi 18391 18392if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 18393 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 18394Usually this means the macro was only invoked conditionally." "$LINENO" 5 18395fi 18396if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18397 as_fn_error $? "conditional \"AMDEP\" was never defined. 18398Usually this means the macro was only invoked conditionally." "$LINENO" 5 18399fi 18400if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18401 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18402Usually this means the macro was only invoked conditionally." "$LINENO" 5 18403fi 18404if test -z "${XAA_TRUE}" && test -z "${XAA_FALSE}"; then 18405 as_fn_error $? "conditional \"XAA\" was never defined. 18406Usually this means the macro was only invoked conditionally." "$LINENO" 5 18407fi 18408if test -z "${XSERVER_LIBPCIACCESS_TRUE}" && test -z "${XSERVER_LIBPCIACCESS_FALSE}"; then 18409 as_fn_error $? "conditional \"XSERVER_LIBPCIACCESS\" was never defined. 18410Usually this means the macro was only invoked conditionally." "$LINENO" 5 18411fi 18412 18413: "${CONFIG_STATUS=./config.status}" 18414ac_write_fail=0 18415ac_clean_files_save=$ac_clean_files 18416ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18417{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18418$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18419as_write_fail=0 18420cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18421#! $SHELL 18422# Generated by $as_me. 18423# Run this file to recreate the current configuration. 18424# Compiler output produced by configure, useful for debugging 18425# configure, is in config.log if it exists. 18426 18427debug=false 18428ac_cs_recheck=false 18429ac_cs_silent=false 18430 18431SHELL=\${CONFIG_SHELL-$SHELL} 18432export SHELL 18433_ASEOF 18434cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18435## -------------------- ## 18436## M4sh Initialization. ## 18437## -------------------- ## 18438 18439# Be more Bourne compatible 18440DUALCASE=1; export DUALCASE # for MKS sh 18441if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18442 emulate sh 18443 NULLCMD=: 18444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18445 # is contrary to our usage. Disable this feature. 18446 alias -g '${1+"$@"}'='"$@"' 18447 setopt NO_GLOB_SUBST 18448else 18449 case `(set -o) 2>/dev/null` in #( 18450 *posix*) : 18451 set -o posix ;; #( 18452 *) : 18453 ;; 18454esac 18455fi 18456 18457 18458as_nl=' 18459' 18460export as_nl 18461# Printing a long string crashes Solaris 7 /usr/bin/printf. 18462as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18463as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18464as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18465# Prefer a ksh shell builtin over an external printf program on Solaris, 18466# but without wasting forks for bash or zsh. 18467if test -z "$BASH_VERSION$ZSH_VERSION" \ 18468 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18469 as_echo='print -r --' 18470 as_echo_n='print -rn --' 18471elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18472 as_echo='printf %s\n' 18473 as_echo_n='printf %s' 18474else 18475 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18476 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18477 as_echo_n='/usr/ucb/echo -n' 18478 else 18479 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18480 as_echo_n_body='eval 18481 arg=$1; 18482 case $arg in #( 18483 *"$as_nl"*) 18484 expr "X$arg" : "X\\(.*\\)$as_nl"; 18485 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18486 esac; 18487 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18488 ' 18489 export as_echo_n_body 18490 as_echo_n='sh -c $as_echo_n_body as_echo' 18491 fi 18492 export as_echo_body 18493 as_echo='sh -c $as_echo_body as_echo' 18494fi 18495 18496# The user is always right. 18497if test "${PATH_SEPARATOR+set}" != set; then 18498 PATH_SEPARATOR=: 18499 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18500 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18501 PATH_SEPARATOR=';' 18502 } 18503fi 18504 18505 18506# IFS 18507# We need space, tab and new line, in precisely that order. Quoting is 18508# there to prevent editors from complaining about space-tab. 18509# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18510# splitting by setting IFS to empty value.) 18511IFS=" "" $as_nl" 18512 18513# Find who we are. Look in the path if we contain no directory separator. 18514as_myself= 18515case $0 in #(( 18516 *[\\/]* ) as_myself=$0 ;; 18517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18518for as_dir in $PATH 18519do 18520 IFS=$as_save_IFS 18521 test -z "$as_dir" && as_dir=. 18522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18523 done 18524IFS=$as_save_IFS 18525 18526 ;; 18527esac 18528# We did not find ourselves, most probably we were run as `sh COMMAND' 18529# in which case we are not to be found in the path. 18530if test "x$as_myself" = x; then 18531 as_myself=$0 18532fi 18533if test ! -f "$as_myself"; then 18534 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18535 exit 1 18536fi 18537 18538# Unset variables that we do not need and which cause bugs (e.g. in 18539# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18540# suppresses any "Segmentation fault" message there. '((' could 18541# trigger a bug in pdksh 5.2.14. 18542for as_var in BASH_ENV ENV MAIL MAILPATH 18543do eval test x\${$as_var+set} = xset \ 18544 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18545done 18546PS1='$ ' 18547PS2='> ' 18548PS4='+ ' 18549 18550# NLS nuisances. 18551LC_ALL=C 18552export LC_ALL 18553LANGUAGE=C 18554export LANGUAGE 18555 18556# CDPATH. 18557(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18558 18559 18560# as_fn_error STATUS ERROR [LINENO LOG_FD] 18561# ---------------------------------------- 18562# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18563# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18564# script with STATUS, using 1 if that was 0. 18565as_fn_error () 18566{ 18567 as_status=$1; test $as_status -eq 0 && as_status=1 18568 if test "$4"; then 18569 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18570 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18571 fi 18572 $as_echo "$as_me: error: $2" >&2 18573 as_fn_exit $as_status 18574} # as_fn_error 18575 18576 18577# as_fn_set_status STATUS 18578# ----------------------- 18579# Set $? to STATUS, without forking. 18580as_fn_set_status () 18581{ 18582 return $1 18583} # as_fn_set_status 18584 18585# as_fn_exit STATUS 18586# ----------------- 18587# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18588as_fn_exit () 18589{ 18590 set +e 18591 as_fn_set_status $1 18592 exit $1 18593} # as_fn_exit 18594 18595# as_fn_unset VAR 18596# --------------- 18597# Portably unset VAR. 18598as_fn_unset () 18599{ 18600 { eval $1=; unset $1;} 18601} 18602as_unset=as_fn_unset 18603# as_fn_append VAR VALUE 18604# ---------------------- 18605# Append the text in VALUE to the end of the definition contained in VAR. Take 18606# advantage of any shell optimizations that allow amortized linear growth over 18607# repeated appends, instead of the typical quadratic growth present in naive 18608# implementations. 18609if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18610 eval 'as_fn_append () 18611 { 18612 eval $1+=\$2 18613 }' 18614else 18615 as_fn_append () 18616 { 18617 eval $1=\$$1\$2 18618 } 18619fi # as_fn_append 18620 18621# as_fn_arith ARG... 18622# ------------------ 18623# Perform arithmetic evaluation on the ARGs, and store the result in the 18624# global $as_val. Take advantage of shells that can avoid forks. The arguments 18625# must be portable across $(()) and expr. 18626if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18627 eval 'as_fn_arith () 18628 { 18629 as_val=$(( $* )) 18630 }' 18631else 18632 as_fn_arith () 18633 { 18634 as_val=`expr "$@" || test $? -eq 1` 18635 } 18636fi # as_fn_arith 18637 18638 18639if expr a : '\(a\)' >/dev/null 2>&1 && 18640 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18641 as_expr=expr 18642else 18643 as_expr=false 18644fi 18645 18646if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18647 as_basename=basename 18648else 18649 as_basename=false 18650fi 18651 18652if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18653 as_dirname=dirname 18654else 18655 as_dirname=false 18656fi 18657 18658as_me=`$as_basename -- "$0" || 18659$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18660 X"$0" : 'X\(//\)$' \| \ 18661 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18662$as_echo X/"$0" | 18663 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18664 s//\1/ 18665 q 18666 } 18667 /^X\/\(\/\/\)$/{ 18668 s//\1/ 18669 q 18670 } 18671 /^X\/\(\/\).*/{ 18672 s//\1/ 18673 q 18674 } 18675 s/.*/./; q'` 18676 18677# Avoid depending upon Character Ranges. 18678as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18680as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18681as_cr_digits='0123456789' 18682as_cr_alnum=$as_cr_Letters$as_cr_digits 18683 18684ECHO_C= ECHO_N= ECHO_T= 18685case `echo -n x` in #((((( 18686-n*) 18687 case `echo 'xy\c'` in 18688 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18689 xy) ECHO_C='\c';; 18690 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18691 ECHO_T=' ';; 18692 esac;; 18693*) 18694 ECHO_N='-n';; 18695esac 18696 18697rm -f conf$$ conf$$.exe conf$$.file 18698if test -d conf$$.dir; then 18699 rm -f conf$$.dir/conf$$.file 18700else 18701 rm -f conf$$.dir 18702 mkdir conf$$.dir 2>/dev/null 18703fi 18704if (echo >conf$$.file) 2>/dev/null; then 18705 if ln -s conf$$.file conf$$ 2>/dev/null; then 18706 as_ln_s='ln -s' 18707 # ... but there are two gotchas: 18708 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18709 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18710 # In both cases, we have to default to `cp -pR'. 18711 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18712 as_ln_s='cp -pR' 18713 elif ln conf$$.file conf$$ 2>/dev/null; then 18714 as_ln_s=ln 18715 else 18716 as_ln_s='cp -pR' 18717 fi 18718else 18719 as_ln_s='cp -pR' 18720fi 18721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18722rmdir conf$$.dir 2>/dev/null 18723 18724 18725# as_fn_mkdir_p 18726# ------------- 18727# Create "$as_dir" as a directory, including parents if necessary. 18728as_fn_mkdir_p () 18729{ 18730 18731 case $as_dir in #( 18732 -*) as_dir=./$as_dir;; 18733 esac 18734 test -d "$as_dir" || eval $as_mkdir_p || { 18735 as_dirs= 18736 while :; do 18737 case $as_dir in #( 18738 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18739 *) as_qdir=$as_dir;; 18740 esac 18741 as_dirs="'$as_qdir' $as_dirs" 18742 as_dir=`$as_dirname -- "$as_dir" || 18743$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18744 X"$as_dir" : 'X\(//\)[^/]' \| \ 18745 X"$as_dir" : 'X\(//\)$' \| \ 18746 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18747$as_echo X"$as_dir" | 18748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18749 s//\1/ 18750 q 18751 } 18752 /^X\(\/\/\)[^/].*/{ 18753 s//\1/ 18754 q 18755 } 18756 /^X\(\/\/\)$/{ 18757 s//\1/ 18758 q 18759 } 18760 /^X\(\/\).*/{ 18761 s//\1/ 18762 q 18763 } 18764 s/.*/./; q'` 18765 test -d "$as_dir" && break 18766 done 18767 test -z "$as_dirs" || eval "mkdir $as_dirs" 18768 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18769 18770 18771} # as_fn_mkdir_p 18772if mkdir -p . 2>/dev/null; then 18773 as_mkdir_p='mkdir -p "$as_dir"' 18774else 18775 test -d ./-p && rmdir ./-p 18776 as_mkdir_p=false 18777fi 18778 18779 18780# as_fn_executable_p FILE 18781# ----------------------- 18782# Test if FILE is an executable regular file. 18783as_fn_executable_p () 18784{ 18785 test -f "$1" && test -x "$1" 18786} # as_fn_executable_p 18787as_test_x='test -x' 18788as_executable_p=as_fn_executable_p 18789 18790# Sed expression to map a string onto a valid CPP name. 18791as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18792 18793# Sed expression to map a string onto a valid variable name. 18794as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18795 18796 18797exec 6>&1 18798## ----------------------------------- ## 18799## Main body of $CONFIG_STATUS script. ## 18800## ----------------------------------- ## 18801_ASEOF 18802test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18803 18804cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18805# Save the log message, to keep $0 and so on meaningful, and to 18806# report actual input values of CONFIG_FILES etc. instead of their 18807# values after options handling. 18808ac_log=" 18809This file was extended by xf86-video-neomagic $as_me 1.2.9, which was 18810generated by GNU Autoconf 2.69. Invocation command line was 18811 18812 CONFIG_FILES = $CONFIG_FILES 18813 CONFIG_HEADERS = $CONFIG_HEADERS 18814 CONFIG_LINKS = $CONFIG_LINKS 18815 CONFIG_COMMANDS = $CONFIG_COMMANDS 18816 $ $0 $@ 18817 18818on `(hostname || uname -n) 2>/dev/null | sed 1q` 18819" 18820 18821_ACEOF 18822 18823case $ac_config_files in *" 18824"*) set x $ac_config_files; shift; ac_config_files=$*;; 18825esac 18826 18827case $ac_config_headers in *" 18828"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18829esac 18830 18831 18832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18833# Files that config.status was made for. 18834config_files="$ac_config_files" 18835config_headers="$ac_config_headers" 18836config_commands="$ac_config_commands" 18837 18838_ACEOF 18839 18840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18841ac_cs_usage="\ 18842\`$as_me' instantiates files and other configuration actions 18843from templates according to the current configuration. Unless the files 18844and actions are specified as TAGs, all are instantiated by default. 18845 18846Usage: $0 [OPTION]... [TAG]... 18847 18848 -h, --help print this help, then exit 18849 -V, --version print version number and configuration settings, then exit 18850 --config print configuration, then exit 18851 -q, --quiet, --silent 18852 do not print progress messages 18853 -d, --debug don't remove temporary files 18854 --recheck update $as_me by reconfiguring in the same conditions 18855 --file=FILE[:TEMPLATE] 18856 instantiate the configuration file FILE 18857 --header=FILE[:TEMPLATE] 18858 instantiate the configuration header FILE 18859 18860Configuration files: 18861$config_files 18862 18863Configuration headers: 18864$config_headers 18865 18866Configuration commands: 18867$config_commands 18868 18869Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Driver/Neomagic>." 18870 18871_ACEOF 18872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18873ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18874ac_cs_version="\\ 18875xf86-video-neomagic config.status 1.2.9 18876configured by $0, generated by GNU Autoconf 2.69, 18877 with options \\"\$ac_cs_config\\" 18878 18879Copyright (C) 2012 Free Software Foundation, Inc. 18880This config.status script is free software; the Free Software Foundation 18881gives unlimited permission to copy, distribute and modify it." 18882 18883ac_pwd='$ac_pwd' 18884srcdir='$srcdir' 18885INSTALL='$INSTALL' 18886MKDIR_P='$MKDIR_P' 18887AWK='$AWK' 18888test -n "\$AWK" || AWK=awk 18889_ACEOF 18890 18891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18892# The default lists apply if the user does not specify any file. 18893ac_need_defaults=: 18894while test $# != 0 18895do 18896 case $1 in 18897 --*=?*) 18898 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18900 ac_shift=: 18901 ;; 18902 --*=) 18903 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18904 ac_optarg= 18905 ac_shift=: 18906 ;; 18907 *) 18908 ac_option=$1 18909 ac_optarg=$2 18910 ac_shift=shift 18911 ;; 18912 esac 18913 18914 case $ac_option in 18915 # Handling of the options. 18916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18917 ac_cs_recheck=: ;; 18918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18919 $as_echo "$ac_cs_version"; exit ;; 18920 --config | --confi | --conf | --con | --co | --c ) 18921 $as_echo "$ac_cs_config"; exit ;; 18922 --debug | --debu | --deb | --de | --d | -d ) 18923 debug=: ;; 18924 --file | --fil | --fi | --f ) 18925 $ac_shift 18926 case $ac_optarg in 18927 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18928 '') as_fn_error $? "missing file argument" ;; 18929 esac 18930 as_fn_append CONFIG_FILES " '$ac_optarg'" 18931 ac_need_defaults=false;; 18932 --header | --heade | --head | --hea ) 18933 $ac_shift 18934 case $ac_optarg in 18935 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18936 esac 18937 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18938 ac_need_defaults=false;; 18939 --he | --h) 18940 # Conflict between --help and --header 18941 as_fn_error $? "ambiguous option: \`$1' 18942Try \`$0 --help' for more information.";; 18943 --help | --hel | -h ) 18944 $as_echo "$ac_cs_usage"; exit ;; 18945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18946 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18947 ac_cs_silent=: ;; 18948 18949 # This is an error. 18950 -*) as_fn_error $? "unrecognized option: \`$1' 18951Try \`$0 --help' for more information." ;; 18952 18953 *) as_fn_append ac_config_targets " $1" 18954 ac_need_defaults=false ;; 18955 18956 esac 18957 shift 18958done 18959 18960ac_configure_extra_args= 18961 18962if $ac_cs_silent; then 18963 exec 6>/dev/null 18964 ac_configure_extra_args="$ac_configure_extra_args --silent" 18965fi 18966 18967_ACEOF 18968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18969if \$ac_cs_recheck; then 18970 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18971 shift 18972 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18973 CONFIG_SHELL='$SHELL' 18974 export CONFIG_SHELL 18975 exec "\$@" 18976fi 18977 18978_ACEOF 18979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18980exec 5>>config.log 18981{ 18982 echo 18983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18984## Running $as_me. ## 18985_ASBOX 18986 $as_echo "$ac_log" 18987} >&5 18988 18989_ACEOF 18990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18991# 18992# INIT-COMMANDS 18993# 18994AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18995 18996 18997# The HP-UX ksh and POSIX shell print the target directory to stdout 18998# if CDPATH is set. 18999(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19000 19001sed_quote_subst='$sed_quote_subst' 19002double_quote_subst='$double_quote_subst' 19003delay_variable_subst='$delay_variable_subst' 19004enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19005macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19006macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19007enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19008pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19009enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19010SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19011ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19012PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19013host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19014host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19015host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19016build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19017build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19018build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19019SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19020Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19021GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19022EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19023FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19024LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19025NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19026LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19027max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19028ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19029exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19030lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19031lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19032lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19033lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19034lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19035reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19036reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19037OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19038deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19039file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19040file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19041want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19042DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19043sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19044AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19045AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19046archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19047STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19048RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19049old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19050old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19051old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19052lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19053CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19054CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19055compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19056GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19057lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19058lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19059lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19060lt_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"`' 19061nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19062lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19063objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19064MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19065lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19066lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19067lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19068lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19069lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19070need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19071MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19072DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19073NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19074LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19075OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19076OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19077libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19078shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19079extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19080archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19081enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19082export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19083whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19084compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19085old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19086old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19087archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19088archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19089module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19090module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19091with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19092allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19093no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19094hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19095hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19096hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19097hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19098hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19099hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19100hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19101inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19102link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19103always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19104export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19105exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19106include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19107prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19108postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19109file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19110variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19111need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19112need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19113version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19114runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19115shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19116shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19117libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19118library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19119soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19120install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19121postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19122postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19123finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19124finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19125hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19126sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19127sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 19128hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19129enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19130enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19131enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19132old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19133striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19134 19135LTCC='$LTCC' 19136LTCFLAGS='$LTCFLAGS' 19137compiler='$compiler_DEFAULT' 19138 19139# A function that is used when there is no print builtin or printf. 19140func_fallback_echo () 19141{ 19142 eval 'cat <<_LTECHO_EOF 19143\$1 19144_LTECHO_EOF' 19145} 19146 19147# Quote evaled strings. 19148for var in SHELL \ 19149ECHO \ 19150PATH_SEPARATOR \ 19151SED \ 19152GREP \ 19153EGREP \ 19154FGREP \ 19155LD \ 19156NM \ 19157LN_S \ 19158lt_SP2NL \ 19159lt_NL2SP \ 19160reload_flag \ 19161OBJDUMP \ 19162deplibs_check_method \ 19163file_magic_cmd \ 19164file_magic_glob \ 19165want_nocaseglob \ 19166DLLTOOL \ 19167sharedlib_from_linklib_cmd \ 19168AR \ 19169AR_FLAGS \ 19170archiver_list_spec \ 19171STRIP \ 19172RANLIB \ 19173CC \ 19174CFLAGS \ 19175compiler \ 19176lt_cv_sys_global_symbol_pipe \ 19177lt_cv_sys_global_symbol_to_cdecl \ 19178lt_cv_sys_global_symbol_to_c_name_address \ 19179lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19180nm_file_list_spec \ 19181lt_prog_compiler_no_builtin_flag \ 19182lt_prog_compiler_pic \ 19183lt_prog_compiler_wl \ 19184lt_prog_compiler_static \ 19185lt_cv_prog_compiler_c_o \ 19186need_locks \ 19187MANIFEST_TOOL \ 19188DSYMUTIL \ 19189NMEDIT \ 19190LIPO \ 19191OTOOL \ 19192OTOOL64 \ 19193shrext_cmds \ 19194export_dynamic_flag_spec \ 19195whole_archive_flag_spec \ 19196compiler_needs_object \ 19197with_gnu_ld \ 19198allow_undefined_flag \ 19199no_undefined_flag \ 19200hardcode_libdir_flag_spec \ 19201hardcode_libdir_separator \ 19202exclude_expsyms \ 19203include_expsyms \ 19204file_list_spec \ 19205variables_saved_for_relink \ 19206libname_spec \ 19207library_names_spec \ 19208soname_spec \ 19209install_override_mode \ 19210finish_eval \ 19211old_striplib \ 19212striplib; do 19213 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19214 *[\\\\\\\`\\"\\\$]*) 19215 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 19216 ;; 19217 *) 19218 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19219 ;; 19220 esac 19221done 19222 19223# Double-quote double-evaled strings. 19224for var in reload_cmds \ 19225old_postinstall_cmds \ 19226old_postuninstall_cmds \ 19227old_archive_cmds \ 19228extract_expsyms_cmds \ 19229old_archive_from_new_cmds \ 19230old_archive_from_expsyms_cmds \ 19231archive_cmds \ 19232archive_expsym_cmds \ 19233module_cmds \ 19234module_expsym_cmds \ 19235export_symbols_cmds \ 19236prelink_cmds \ 19237postlink_cmds \ 19238postinstall_cmds \ 19239postuninstall_cmds \ 19240finish_cmds \ 19241sys_lib_search_path_spec \ 19242sys_lib_dlsearch_path_spec; do 19243 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19244 *[\\\\\\\`\\"\\\$]*) 19245 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 19246 ;; 19247 *) 19248 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19249 ;; 19250 esac 19251done 19252 19253ac_aux_dir='$ac_aux_dir' 19254xsi_shell='$xsi_shell' 19255lt_shell_append='$lt_shell_append' 19256 19257# See if we are running on zsh, and set the options which allow our 19258# commands through without removal of \ escapes INIT. 19259if test -n "\${ZSH_VERSION+set}" ; then 19260 setopt NO_GLOB_SUBST 19261fi 19262 19263 19264 PACKAGE='$PACKAGE' 19265 VERSION='$VERSION' 19266 TIMESTAMP='$TIMESTAMP' 19267 RM='$RM' 19268 ofile='$ofile' 19269 19270 19271 19272 19273_ACEOF 19274 19275cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19276 19277# Handling of arguments. 19278for ac_config_target in $ac_config_targets 19279do 19280 case $ac_config_target in 19281 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19282 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19283 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19284 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19285 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19286 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19287 19288 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19289 esac 19290done 19291 19292 19293# If the user did not use the arguments to specify the items to instantiate, 19294# then the envvar interface is used. Set only those that are not. 19295# We use the long form for the default assignment because of an extremely 19296# bizarre bug on SunOS 4.1.3. 19297if $ac_need_defaults; then 19298 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19299 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19301fi 19302 19303# Have a temporary directory for convenience. Make it in the build tree 19304# simply because there is no reason against having it here, and in addition, 19305# creating and moving files from /tmp can sometimes cause problems. 19306# Hook for its removal unless debugging. 19307# Note that there is a small window in which the directory will not be cleaned: 19308# after its creation but before its name has been assigned to `$tmp'. 19309$debug || 19310{ 19311 tmp= ac_tmp= 19312 trap 'exit_status=$? 19313 : "${ac_tmp:=$tmp}" 19314 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19315' 0 19316 trap 'as_fn_exit 1' 1 2 13 15 19317} 19318# Create a (secure) tmp directory for tmp files. 19319 19320{ 19321 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19322 test -d "$tmp" 19323} || 19324{ 19325 tmp=./conf$$-$RANDOM 19326 (umask 077 && mkdir "$tmp") 19327} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19328ac_tmp=$tmp 19329 19330# Set up the scripts for CONFIG_FILES section. 19331# No need to generate them if there are no CONFIG_FILES. 19332# This happens for instance with `./config.status config.h'. 19333if test -n "$CONFIG_FILES"; then 19334 19335 19336ac_cr=`echo X | tr X '\015'` 19337# On cygwin, bash can eat \r inside `` if the user requested igncr. 19338# But we know of no other shell where ac_cr would be empty at this 19339# point, so we can use a bashism as a fallback. 19340if test "x$ac_cr" = x; then 19341 eval ac_cr=\$\'\\r\' 19342fi 19343ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19344if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19345 ac_cs_awk_cr='\\r' 19346else 19347 ac_cs_awk_cr=$ac_cr 19348fi 19349 19350echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19351_ACEOF 19352 19353 19354{ 19355 echo "cat >conf$$subs.awk <<_ACEOF" && 19356 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19357 echo "_ACEOF" 19358} >conf$$subs.sh || 19359 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19360ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19361ac_delim='%!_!# ' 19362for ac_last_try in false false false false false :; do 19363 . ./conf$$subs.sh || 19364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19365 19366 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19367 if test $ac_delim_n = $ac_delim_num; then 19368 break 19369 elif $ac_last_try; then 19370 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19371 else 19372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19373 fi 19374done 19375rm -f conf$$subs.sh 19376 19377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19378cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19379_ACEOF 19380sed -n ' 19381h 19382s/^/S["/; s/!.*/"]=/ 19383p 19384g 19385s/^[^!]*!// 19386:repl 19387t repl 19388s/'"$ac_delim"'$// 19389t delim 19390:nl 19391h 19392s/\(.\{148\}\)..*/\1/ 19393t more1 19394s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19395p 19396n 19397b repl 19398:more1 19399s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19400p 19401g 19402s/.\{148\}// 19403t nl 19404:delim 19405h 19406s/\(.\{148\}\)..*/\1/ 19407t more2 19408s/["\\]/\\&/g; s/^/"/; s/$/"/ 19409p 19410b 19411:more2 19412s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19413p 19414g 19415s/.\{148\}// 19416t delim 19417' <conf$$subs.awk | sed ' 19418/^[^""]/{ 19419 N 19420 s/\n// 19421} 19422' >>$CONFIG_STATUS || ac_write_fail=1 19423rm -f conf$$subs.awk 19424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19425_ACAWK 19426cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19427 for (key in S) S_is_set[key] = 1 19428 FS = "" 19429 19430} 19431{ 19432 line = $ 0 19433 nfields = split(line, field, "@") 19434 substed = 0 19435 len = length(field[1]) 19436 for (i = 2; i < nfields; i++) { 19437 key = field[i] 19438 keylen = length(key) 19439 if (S_is_set[key]) { 19440 value = S[key] 19441 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19442 len += length(value) + length(field[++i]) 19443 substed = 1 19444 } else 19445 len += 1 + keylen 19446 } 19447 19448 print line 19449} 19450 19451_ACAWK 19452_ACEOF 19453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19454if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19455 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19456else 19457 cat 19458fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19459 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19460_ACEOF 19461 19462# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19463# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19464# trailing colons and then remove the whole line if VPATH becomes empty 19465# (actually we leave an empty line to preserve line numbers). 19466if test "x$srcdir" = x.; then 19467 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19468h 19469s/// 19470s/^/:/ 19471s/[ ]*$/:/ 19472s/:\$(srcdir):/:/g 19473s/:\${srcdir}:/:/g 19474s/:@srcdir@:/:/g 19475s/^:*// 19476s/:*$// 19477x 19478s/\(=[ ]*\).*/\1/ 19479G 19480s/\n// 19481s/^[^=]*=[ ]*$// 19482}' 19483fi 19484 19485cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19486fi # test -n "$CONFIG_FILES" 19487 19488# Set up the scripts for CONFIG_HEADERS section. 19489# No need to generate them if there are no CONFIG_HEADERS. 19490# This happens for instance with `./config.status Makefile'. 19491if test -n "$CONFIG_HEADERS"; then 19492cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19493BEGIN { 19494_ACEOF 19495 19496# Transform confdefs.h into an awk script `defines.awk', embedded as 19497# here-document in config.status, that substitutes the proper values into 19498# config.h.in to produce config.h. 19499 19500# Create a delimiter string that does not exist in confdefs.h, to ease 19501# handling of long lines. 19502ac_delim='%!_!# ' 19503for ac_last_try in false false :; do 19504 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19505 if test -z "$ac_tt"; then 19506 break 19507 elif $ac_last_try; then 19508 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19509 else 19510 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19511 fi 19512done 19513 19514# For the awk script, D is an array of macro values keyed by name, 19515# likewise P contains macro parameters if any. Preserve backslash 19516# newline sequences. 19517 19518ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19519sed -n ' 19520s/.\{148\}/&'"$ac_delim"'/g 19521t rset 19522:rset 19523s/^[ ]*#[ ]*define[ ][ ]*/ / 19524t def 19525d 19526:def 19527s/\\$// 19528t bsnl 19529s/["\\]/\\&/g 19530s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19531D["\1"]=" \3"/p 19532s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19533d 19534:bsnl 19535s/["\\]/\\&/g 19536s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19537D["\1"]=" \3\\\\\\n"\\/p 19538t cont 19539s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19540t cont 19541d 19542:cont 19543n 19544s/.\{148\}/&'"$ac_delim"'/g 19545t clear 19546:clear 19547s/\\$// 19548t bsnlc 19549s/["\\]/\\&/g; s/^/"/; s/$/"/p 19550d 19551:bsnlc 19552s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19553b cont 19554' <confdefs.h | sed ' 19555s/'"$ac_delim"'/"\\\ 19556"/g' >>$CONFIG_STATUS || ac_write_fail=1 19557 19558cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19559 for (key in D) D_is_set[key] = 1 19560 FS = "" 19561} 19562/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19563 line = \$ 0 19564 split(line, arg, " ") 19565 if (arg[1] == "#") { 19566 defundef = arg[2] 19567 mac1 = arg[3] 19568 } else { 19569 defundef = substr(arg[1], 2) 19570 mac1 = arg[2] 19571 } 19572 split(mac1, mac2, "(") #) 19573 macro = mac2[1] 19574 prefix = substr(line, 1, index(line, defundef) - 1) 19575 if (D_is_set[macro]) { 19576 # Preserve the white space surrounding the "#". 19577 print prefix "define", macro P[macro] D[macro] 19578 next 19579 } else { 19580 # Replace #undef with comments. This is necessary, for example, 19581 # in the case of _POSIX_SOURCE, which is predefined and required 19582 # on some systems where configure will not decide to define it. 19583 if (defundef == "undef") { 19584 print "/*", prefix defundef, macro, "*/" 19585 next 19586 } 19587 } 19588} 19589{ print } 19590_ACAWK 19591_ACEOF 19592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19593 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19594fi # test -n "$CONFIG_HEADERS" 19595 19596 19597eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19598shift 19599for ac_tag 19600do 19601 case $ac_tag in 19602 :[FHLC]) ac_mode=$ac_tag; continue;; 19603 esac 19604 case $ac_mode$ac_tag in 19605 :[FHL]*:*);; 19606 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19607 :[FH]-) ac_tag=-:-;; 19608 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19609 esac 19610 ac_save_IFS=$IFS 19611 IFS=: 19612 set x $ac_tag 19613 IFS=$ac_save_IFS 19614 shift 19615 ac_file=$1 19616 shift 19617 19618 case $ac_mode in 19619 :L) ac_source=$1;; 19620 :[FH]) 19621 ac_file_inputs= 19622 for ac_f 19623 do 19624 case $ac_f in 19625 -) ac_f="$ac_tmp/stdin";; 19626 *) # Look for the file first in the build tree, then in the source tree 19627 # (if the path is not absolute). The absolute path cannot be DOS-style, 19628 # because $ac_f cannot contain `:'. 19629 test -f "$ac_f" || 19630 case $ac_f in 19631 [\\/$]*) false;; 19632 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19633 esac || 19634 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19635 esac 19636 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19637 as_fn_append ac_file_inputs " '$ac_f'" 19638 done 19639 19640 # Let's still pretend it is `configure' which instantiates (i.e., don't 19641 # use $as_me), people would be surprised to read: 19642 # /* config.h. Generated by config.status. */ 19643 configure_input='Generated from '` 19644 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19645 `' by configure.' 19646 if test x"$ac_file" != x-; then 19647 configure_input="$ac_file. $configure_input" 19648 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19649$as_echo "$as_me: creating $ac_file" >&6;} 19650 fi 19651 # Neutralize special characters interpreted by sed in replacement strings. 19652 case $configure_input in #( 19653 *\&* | *\|* | *\\* ) 19654 ac_sed_conf_input=`$as_echo "$configure_input" | 19655 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19656 *) ac_sed_conf_input=$configure_input;; 19657 esac 19658 19659 case $ac_tag in 19660 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 19661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19662 esac 19663 ;; 19664 esac 19665 19666 ac_dir=`$as_dirname -- "$ac_file" || 19667$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19668 X"$ac_file" : 'X\(//\)[^/]' \| \ 19669 X"$ac_file" : 'X\(//\)$' \| \ 19670 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19671$as_echo X"$ac_file" | 19672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19673 s//\1/ 19674 q 19675 } 19676 /^X\(\/\/\)[^/].*/{ 19677 s//\1/ 19678 q 19679 } 19680 /^X\(\/\/\)$/{ 19681 s//\1/ 19682 q 19683 } 19684 /^X\(\/\).*/{ 19685 s//\1/ 19686 q 19687 } 19688 s/.*/./; q'` 19689 as_dir="$ac_dir"; as_fn_mkdir_p 19690 ac_builddir=. 19691 19692case "$ac_dir" in 19693.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19694*) 19695 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19696 # A ".." for each directory in $ac_dir_suffix. 19697 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19698 case $ac_top_builddir_sub in 19699 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19700 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19701 esac ;; 19702esac 19703ac_abs_top_builddir=$ac_pwd 19704ac_abs_builddir=$ac_pwd$ac_dir_suffix 19705# for backward compatibility: 19706ac_top_builddir=$ac_top_build_prefix 19707 19708case $srcdir in 19709 .) # We are building in place. 19710 ac_srcdir=. 19711 ac_top_srcdir=$ac_top_builddir_sub 19712 ac_abs_top_srcdir=$ac_pwd ;; 19713 [\\/]* | ?:[\\/]* ) # Absolute name. 19714 ac_srcdir=$srcdir$ac_dir_suffix; 19715 ac_top_srcdir=$srcdir 19716 ac_abs_top_srcdir=$srcdir ;; 19717 *) # Relative name. 19718 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19719 ac_top_srcdir=$ac_top_build_prefix$srcdir 19720 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19721esac 19722ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19723 19724 19725 case $ac_mode in 19726 :F) 19727 # 19728 # CONFIG_FILE 19729 # 19730 19731 case $INSTALL in 19732 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19733 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19734 esac 19735 ac_MKDIR_P=$MKDIR_P 19736 case $MKDIR_P in 19737 [\\/$]* | ?:[\\/]* ) ;; 19738 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19739 esac 19740_ACEOF 19741 19742cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19743# If the template does not know about datarootdir, expand it. 19744# FIXME: This hack should be removed a few years after 2.60. 19745ac_datarootdir_hack=; ac_datarootdir_seen= 19746ac_sed_dataroot=' 19747/datarootdir/ { 19748 p 19749 q 19750} 19751/@datadir@/p 19752/@docdir@/p 19753/@infodir@/p 19754/@localedir@/p 19755/@mandir@/p' 19756case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19757*datarootdir*) ac_datarootdir_seen=yes;; 19758*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19760$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19761_ACEOF 19762cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19763 ac_datarootdir_hack=' 19764 s&@datadir@&$datadir&g 19765 s&@docdir@&$docdir&g 19766 s&@infodir@&$infodir&g 19767 s&@localedir@&$localedir&g 19768 s&@mandir@&$mandir&g 19769 s&\\\${datarootdir}&$datarootdir&g' ;; 19770esac 19771_ACEOF 19772 19773# Neutralize VPATH when `$srcdir' = `.'. 19774# Shell code in configure.ac might set extrasub. 19775# FIXME: do we really want to maintain this feature? 19776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19777ac_sed_extra="$ac_vpsub 19778$extrasub 19779_ACEOF 19780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19781:t 19782/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19783s|@configure_input@|$ac_sed_conf_input|;t t 19784s&@top_builddir@&$ac_top_builddir_sub&;t t 19785s&@top_build_prefix@&$ac_top_build_prefix&;t t 19786s&@srcdir@&$ac_srcdir&;t t 19787s&@abs_srcdir@&$ac_abs_srcdir&;t t 19788s&@top_srcdir@&$ac_top_srcdir&;t t 19789s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19790s&@builddir@&$ac_builddir&;t t 19791s&@abs_builddir@&$ac_abs_builddir&;t t 19792s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19793s&@INSTALL@&$ac_INSTALL&;t t 19794s&@MKDIR_P@&$ac_MKDIR_P&;t t 19795$ac_datarootdir_hack 19796" 19797eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 19798 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19799 19800test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19801 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 19802 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 19803 "$ac_tmp/out"`; test -z "$ac_out"; } && 19804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19805which seems to be undefined. Please make sure it is defined" >&5 19806$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19807which seems to be undefined. Please make sure it is defined" >&2;} 19808 19809 rm -f "$ac_tmp/stdin" 19810 case $ac_file in 19811 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 19812 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 19813 esac \ 19814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19815 ;; 19816 :H) 19817 # 19818 # CONFIG_HEADER 19819 # 19820 if test x"$ac_file" != x-; then 19821 { 19822 $as_echo "/* $configure_input */" \ 19823 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 19824 } >"$ac_tmp/config.h" \ 19825 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19826 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 19827 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19828$as_echo "$as_me: $ac_file is unchanged" >&6;} 19829 else 19830 rm -f "$ac_file" 19831 mv "$ac_tmp/config.h" "$ac_file" \ 19832 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19833 fi 19834 else 19835 $as_echo "/* $configure_input */" \ 19836 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19837 || as_fn_error $? "could not create -" "$LINENO" 5 19838 fi 19839# Compute "$ac_file"'s index in $config_headers. 19840_am_arg="$ac_file" 19841_am_stamp_count=1 19842for _am_header in $config_headers :; do 19843 case $_am_header in 19844 $_am_arg | $_am_arg:* ) 19845 break ;; 19846 * ) 19847 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19848 esac 19849done 19850echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19851$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19852 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19853 X"$_am_arg" : 'X\(//\)$' \| \ 19854 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19855$as_echo X"$_am_arg" | 19856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19857 s//\1/ 19858 q 19859 } 19860 /^X\(\/\/\)[^/].*/{ 19861 s//\1/ 19862 q 19863 } 19864 /^X\(\/\/\)$/{ 19865 s//\1/ 19866 q 19867 } 19868 /^X\(\/\).*/{ 19869 s//\1/ 19870 q 19871 } 19872 s/.*/./; q'`/stamp-h$_am_stamp_count 19873 ;; 19874 19875 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19876$as_echo "$as_me: executing $ac_file commands" >&6;} 19877 ;; 19878 esac 19879 19880 19881 case $ac_file$ac_mode in 19882 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19883 # Older Autoconf quotes --file arguments for eval, but not when files 19884 # are listed without --file. Let's play safe and only enable the eval 19885 # if we detect the quoting. 19886 case $CONFIG_FILES in 19887 *\'*) eval set x "$CONFIG_FILES" ;; 19888 *) set x $CONFIG_FILES ;; 19889 esac 19890 shift 19891 for mf 19892 do 19893 # Strip MF so we end up with the name of the file. 19894 mf=`echo "$mf" | sed -e 's/:.*$//'` 19895 # Check whether this is an Automake generated Makefile or not. 19896 # We used to match only the files named 'Makefile.in', but 19897 # some people rename them; so instead we look at the file content. 19898 # Grep'ing the first line is not enough: some people post-process 19899 # each Makefile.in and add a new line on top of each file to say so. 19900 # Grep'ing the whole file is not good either: AIX grep has a line 19901 # limit of 2048, but all sed's we know have understand at least 4000. 19902 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19903 dirpart=`$as_dirname -- "$mf" || 19904$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19905 X"$mf" : 'X\(//\)[^/]' \| \ 19906 X"$mf" : 'X\(//\)$' \| \ 19907 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19908$as_echo X"$mf" | 19909 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19910 s//\1/ 19911 q 19912 } 19913 /^X\(\/\/\)[^/].*/{ 19914 s//\1/ 19915 q 19916 } 19917 /^X\(\/\/\)$/{ 19918 s//\1/ 19919 q 19920 } 19921 /^X\(\/\).*/{ 19922 s//\1/ 19923 q 19924 } 19925 s/.*/./; q'` 19926 else 19927 continue 19928 fi 19929 # Extract the definition of DEPDIR, am__include, and am__quote 19930 # from the Makefile without running 'make'. 19931 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19932 test -z "$DEPDIR" && continue 19933 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19934 test -z "$am__include" && continue 19935 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19936 # Find all dependency output files, they are included files with 19937 # $(DEPDIR) in their names. We invoke sed twice because it is the 19938 # simplest approach to changing $(DEPDIR) to its actual value in the 19939 # expansion. 19940 for file in `sed -n " 19941 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19942 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 19943 # Make sure the directory exists. 19944 test -f "$dirpart/$file" && continue 19945 fdir=`$as_dirname -- "$file" || 19946$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19947 X"$file" : 'X\(//\)[^/]' \| \ 19948 X"$file" : 'X\(//\)$' \| \ 19949 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19950$as_echo X"$file" | 19951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19952 s//\1/ 19953 q 19954 } 19955 /^X\(\/\/\)[^/].*/{ 19956 s//\1/ 19957 q 19958 } 19959 /^X\(\/\/\)$/{ 19960 s//\1/ 19961 q 19962 } 19963 /^X\(\/\).*/{ 19964 s//\1/ 19965 q 19966 } 19967 s/.*/./; q'` 19968 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19969 # echo "creating $dirpart/$file" 19970 echo '# dummy' > "$dirpart/$file" 19971 done 19972 done 19973} 19974 ;; 19975 "libtool":C) 19976 19977 # See if we are running on zsh, and set the options which allow our 19978 # commands through without removal of \ escapes. 19979 if test -n "${ZSH_VERSION+set}" ; then 19980 setopt NO_GLOB_SUBST 19981 fi 19982 19983 cfgfile="${ofile}T" 19984 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19985 $RM "$cfgfile" 19986 19987 cat <<_LT_EOF >> "$cfgfile" 19988#! $SHELL 19989 19990# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19991# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19992# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19993# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19994# 19995# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19996# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 19997# Foundation, Inc. 19998# Written by Gordon Matzigkeit, 1996 19999# 20000# This file is part of GNU Libtool. 20001# 20002# GNU Libtool is free software; you can redistribute it and/or 20003# modify it under the terms of the GNU General Public License as 20004# published by the Free Software Foundation; either version 2 of 20005# the License, or (at your option) any later version. 20006# 20007# As a special exception to the GNU General Public License, 20008# if you distribute this file as part of a program or library that 20009# is built using GNU Libtool, you may include this file under the 20010# same distribution terms that you use for the rest of that program. 20011# 20012# GNU Libtool is distributed in the hope that it will be useful, 20013# but WITHOUT ANY WARRANTY; without even the implied warranty of 20014# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20015# GNU General Public License for more details. 20016# 20017# You should have received a copy of the GNU General Public License 20018# along with GNU Libtool; see the file COPYING. If not, a copy 20019# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 20020# obtained by writing to the Free Software Foundation, Inc., 20021# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20022 20023 20024# The names of the tagged configurations supported by this script. 20025available_tags="" 20026 20027# ### BEGIN LIBTOOL CONFIG 20028 20029# Whether or not to build static libraries. 20030build_old_libs=$enable_static 20031 20032# Which release of libtool.m4 was used? 20033macro_version=$macro_version 20034macro_revision=$macro_revision 20035 20036# Whether or not to build shared libraries. 20037build_libtool_libs=$enable_shared 20038 20039# What type of objects to build. 20040pic_mode=$pic_mode 20041 20042# Whether or not to optimize for fast installation. 20043fast_install=$enable_fast_install 20044 20045# Shell to use when invoking shell scripts. 20046SHELL=$lt_SHELL 20047 20048# An echo program that protects backslashes. 20049ECHO=$lt_ECHO 20050 20051# The PATH separator for the build system. 20052PATH_SEPARATOR=$lt_PATH_SEPARATOR 20053 20054# The host system. 20055host_alias=$host_alias 20056host=$host 20057host_os=$host_os 20058 20059# The build system. 20060build_alias=$build_alias 20061build=$build 20062build_os=$build_os 20063 20064# A sed program that does not truncate output. 20065SED=$lt_SED 20066 20067# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20068Xsed="\$SED -e 1s/^X//" 20069 20070# A grep program that handles long lines. 20071GREP=$lt_GREP 20072 20073# An ERE matcher. 20074EGREP=$lt_EGREP 20075 20076# A literal string matcher. 20077FGREP=$lt_FGREP 20078 20079# A BSD- or MS-compatible name lister. 20080NM=$lt_NM 20081 20082# Whether we need soft or hard links. 20083LN_S=$lt_LN_S 20084 20085# What is the maximum length of a command? 20086max_cmd_len=$max_cmd_len 20087 20088# Object file suffix (normally "o"). 20089objext=$ac_objext 20090 20091# Executable file suffix (normally ""). 20092exeext=$exeext 20093 20094# whether the shell understands "unset". 20095lt_unset=$lt_unset 20096 20097# turn spaces into newlines. 20098SP2NL=$lt_lt_SP2NL 20099 20100# turn newlines into spaces. 20101NL2SP=$lt_lt_NL2SP 20102 20103# convert \$build file names to \$host format. 20104to_host_file_cmd=$lt_cv_to_host_file_cmd 20105 20106# convert \$build files to toolchain format. 20107to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20108 20109# An object symbol dumper. 20110OBJDUMP=$lt_OBJDUMP 20111 20112# Method to check whether dependent libraries are shared objects. 20113deplibs_check_method=$lt_deplibs_check_method 20114 20115# Command to use when deplibs_check_method = "file_magic". 20116file_magic_cmd=$lt_file_magic_cmd 20117 20118# How to find potential files when deplibs_check_method = "file_magic". 20119file_magic_glob=$lt_file_magic_glob 20120 20121# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20122want_nocaseglob=$lt_want_nocaseglob 20123 20124# DLL creation program. 20125DLLTOOL=$lt_DLLTOOL 20126 20127# Command to associate shared and link libraries. 20128sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20129 20130# The archiver. 20131AR=$lt_AR 20132 20133# Flags to create an archive. 20134AR_FLAGS=$lt_AR_FLAGS 20135 20136# How to feed a file listing to the archiver. 20137archiver_list_spec=$lt_archiver_list_spec 20138 20139# A symbol stripping program. 20140STRIP=$lt_STRIP 20141 20142# Commands used to install an old-style archive. 20143RANLIB=$lt_RANLIB 20144old_postinstall_cmds=$lt_old_postinstall_cmds 20145old_postuninstall_cmds=$lt_old_postuninstall_cmds 20146 20147# Whether to use a lock for old archive extraction. 20148lock_old_archive_extraction=$lock_old_archive_extraction 20149 20150# A C compiler. 20151LTCC=$lt_CC 20152 20153# LTCC compiler flags. 20154LTCFLAGS=$lt_CFLAGS 20155 20156# Take the output of nm and produce a listing of raw symbols and C names. 20157global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20158 20159# Transform the output of nm in a proper C declaration. 20160global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20161 20162# Transform the output of nm in a C name address pair. 20163global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20164 20165# Transform the output of nm in a C name address pair when lib prefix is needed. 20166global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20167 20168# Specify filename containing input files for \$NM. 20169nm_file_list_spec=$lt_nm_file_list_spec 20170 20171# The root where to search for dependent libraries,and in which our libraries should be installed. 20172lt_sysroot=$lt_sysroot 20173 20174# The name of the directory that contains temporary libtool files. 20175objdir=$objdir 20176 20177# Used to examine libraries when file_magic_cmd begins with "file". 20178MAGIC_CMD=$MAGIC_CMD 20179 20180# Must we lock files when doing compilation? 20181need_locks=$lt_need_locks 20182 20183# Manifest tool. 20184MANIFEST_TOOL=$lt_MANIFEST_TOOL 20185 20186# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20187DSYMUTIL=$lt_DSYMUTIL 20188 20189# Tool to change global to local symbols on Mac OS X. 20190NMEDIT=$lt_NMEDIT 20191 20192# Tool to manipulate fat objects and archives on Mac OS X. 20193LIPO=$lt_LIPO 20194 20195# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20196OTOOL=$lt_OTOOL 20197 20198# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20199OTOOL64=$lt_OTOOL64 20200 20201# Old archive suffix (normally "a"). 20202libext=$libext 20203 20204# Shared library suffix (normally ".so"). 20205shrext_cmds=$lt_shrext_cmds 20206 20207# The commands to extract the exported symbol list from a shared archive. 20208extract_expsyms_cmds=$lt_extract_expsyms_cmds 20209 20210# Variables whose values should be saved in libtool wrapper scripts and 20211# restored at link time. 20212variables_saved_for_relink=$lt_variables_saved_for_relink 20213 20214# Do we need the "lib" prefix for modules? 20215need_lib_prefix=$need_lib_prefix 20216 20217# Do we need a version for libraries? 20218need_version=$need_version 20219 20220# Library versioning type. 20221version_type=$version_type 20222 20223# Shared library runtime path variable. 20224runpath_var=$runpath_var 20225 20226# Shared library path variable. 20227shlibpath_var=$shlibpath_var 20228 20229# Is shlibpath searched before the hard-coded library search path? 20230shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20231 20232# Format of library name prefix. 20233libname_spec=$lt_libname_spec 20234 20235# List of archive names. First name is the real one, the rest are links. 20236# The last name is the one that the linker finds with -lNAME 20237library_names_spec=$lt_library_names_spec 20238 20239# The coded name of the library, if different from the real name. 20240soname_spec=$lt_soname_spec 20241 20242# Permission mode override for installation of shared libraries. 20243install_override_mode=$lt_install_override_mode 20244 20245# Command to use after installation of a shared archive. 20246postinstall_cmds=$lt_postinstall_cmds 20247 20248# Command to use after uninstallation of a shared archive. 20249postuninstall_cmds=$lt_postuninstall_cmds 20250 20251# Commands used to finish a libtool library installation in a directory. 20252finish_cmds=$lt_finish_cmds 20253 20254# As "finish_cmds", except a single script fragment to be evaled but 20255# not shown. 20256finish_eval=$lt_finish_eval 20257 20258# Whether we should hardcode library paths into libraries. 20259hardcode_into_libs=$hardcode_into_libs 20260 20261# Compile-time system search path for libraries. 20262sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20263 20264# Run-time system search path for libraries. 20265sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 20266 20267# Whether dlopen is supported. 20268dlopen_support=$enable_dlopen 20269 20270# Whether dlopen of programs is supported. 20271dlopen_self=$enable_dlopen_self 20272 20273# Whether dlopen of statically linked programs is supported. 20274dlopen_self_static=$enable_dlopen_self_static 20275 20276# Commands to strip libraries. 20277old_striplib=$lt_old_striplib 20278striplib=$lt_striplib 20279 20280 20281# The linker used to build libraries. 20282LD=$lt_LD 20283 20284# How to create reloadable object files. 20285reload_flag=$lt_reload_flag 20286reload_cmds=$lt_reload_cmds 20287 20288# Commands used to build an old-style archive. 20289old_archive_cmds=$lt_old_archive_cmds 20290 20291# A language specific compiler. 20292CC=$lt_compiler 20293 20294# Is the compiler the GNU compiler? 20295with_gcc=$GCC 20296 20297# Compiler flag to turn off builtin functions. 20298no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20299 20300# Additional compiler flags for building library objects. 20301pic_flag=$lt_lt_prog_compiler_pic 20302 20303# How to pass a linker flag through the compiler. 20304wl=$lt_lt_prog_compiler_wl 20305 20306# Compiler flag to prevent dynamic linking. 20307link_static_flag=$lt_lt_prog_compiler_static 20308 20309# Does compiler simultaneously support -c and -o options? 20310compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20311 20312# Whether or not to add -lc for building shared libraries. 20313build_libtool_need_lc=$archive_cmds_need_lc 20314 20315# Whether or not to disallow shared libs when runtime libs are static. 20316allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20317 20318# Compiler flag to allow reflexive dlopens. 20319export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20320 20321# Compiler flag to generate shared objects directly from archives. 20322whole_archive_flag_spec=$lt_whole_archive_flag_spec 20323 20324# Whether the compiler copes with passing no objects directly. 20325compiler_needs_object=$lt_compiler_needs_object 20326 20327# Create an old-style archive from a shared archive. 20328old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20329 20330# Create a temporary old-style archive to link instead of a shared archive. 20331old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20332 20333# Commands used to build a shared archive. 20334archive_cmds=$lt_archive_cmds 20335archive_expsym_cmds=$lt_archive_expsym_cmds 20336 20337# Commands used to build a loadable module if different from building 20338# a shared archive. 20339module_cmds=$lt_module_cmds 20340module_expsym_cmds=$lt_module_expsym_cmds 20341 20342# Whether we are building with GNU ld or not. 20343with_gnu_ld=$lt_with_gnu_ld 20344 20345# Flag that allows shared libraries with undefined symbols to be built. 20346allow_undefined_flag=$lt_allow_undefined_flag 20347 20348# Flag that enforces no undefined symbols. 20349no_undefined_flag=$lt_no_undefined_flag 20350 20351# Flag to hardcode \$libdir into a binary during linking. 20352# This must work even if \$libdir does not exist 20353hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20354 20355# Whether we need a single "-rpath" flag with a separated argument. 20356hardcode_libdir_separator=$lt_hardcode_libdir_separator 20357 20358# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20359# DIR into the resulting binary. 20360hardcode_direct=$hardcode_direct 20361 20362# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 20363# DIR into the resulting binary and the resulting library dependency is 20364# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 20365# library is relocated. 20366hardcode_direct_absolute=$hardcode_direct_absolute 20367 20368# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20369# into the resulting binary. 20370hardcode_minus_L=$hardcode_minus_L 20371 20372# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20373# into the resulting binary. 20374hardcode_shlibpath_var=$hardcode_shlibpath_var 20375 20376# Set to "yes" if building a shared library automatically hardcodes DIR 20377# into the library and all subsequent libraries and executables linked 20378# against it. 20379hardcode_automatic=$hardcode_automatic 20380 20381# Set to yes if linker adds runtime paths of dependent libraries 20382# to runtime path list. 20383inherit_rpath=$inherit_rpath 20384 20385# Whether libtool must link a program against all its dependency libraries. 20386link_all_deplibs=$link_all_deplibs 20387 20388# Set to "yes" if exported symbols are required. 20389always_export_symbols=$always_export_symbols 20390 20391# The commands to list exported symbols. 20392export_symbols_cmds=$lt_export_symbols_cmds 20393 20394# Symbols that should not be listed in the preloaded symbols. 20395exclude_expsyms=$lt_exclude_expsyms 20396 20397# Symbols that must always be exported. 20398include_expsyms=$lt_include_expsyms 20399 20400# Commands necessary for linking programs (against libraries) with templates. 20401prelink_cmds=$lt_prelink_cmds 20402 20403# Commands necessary for finishing linking programs. 20404postlink_cmds=$lt_postlink_cmds 20405 20406# Specify filename containing input files. 20407file_list_spec=$lt_file_list_spec 20408 20409# How to hardcode a shared library path into an executable. 20410hardcode_action=$hardcode_action 20411 20412# ### END LIBTOOL CONFIG 20413 20414_LT_EOF 20415 20416 case $host_os in 20417 aix3*) 20418 cat <<\_LT_EOF >> "$cfgfile" 20419# AIX sometimes has problems with the GCC collect2 program. For some 20420# reason, if we set the COLLECT_NAMES environment variable, the problems 20421# vanish in a puff of smoke. 20422if test "X${COLLECT_NAMES+set}" != Xset; then 20423 COLLECT_NAMES= 20424 export COLLECT_NAMES 20425fi 20426_LT_EOF 20427 ;; 20428 esac 20429 20430 20431ltmain="$ac_aux_dir/ltmain.sh" 20432 20433 20434 # We use sed instead of cat because bash on DJGPP gets confused if 20435 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20436 # text mode, it properly converts lines to CR/LF. This bash problem 20437 # is reportedly fixed, but why not run on old versions too? 20438 sed '$q' "$ltmain" >> "$cfgfile" \ 20439 || (rm -f "$cfgfile"; exit 1) 20440 20441 if test x"$xsi_shell" = xyes; then 20442 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 20443func_dirname ()\ 20444{\ 20445\ case ${1} in\ 20446\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20447\ * ) func_dirname_result="${3}" ;;\ 20448\ esac\ 20449} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 20450 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20451 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20452test 0 -eq $? || _lt_function_replace_fail=: 20453 20454 20455 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 20456func_basename ()\ 20457{\ 20458\ func_basename_result="${1##*/}"\ 20459} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20460 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20461 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20462test 0 -eq $? || _lt_function_replace_fail=: 20463 20464 20465 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 20466func_dirname_and_basename ()\ 20467{\ 20468\ case ${1} in\ 20469\ */*) func_dirname_result="${1%/*}${2}" ;;\ 20470\ * ) func_dirname_result="${3}" ;;\ 20471\ esac\ 20472\ func_basename_result="${1##*/}"\ 20473} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 20474 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20475 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20476test 0 -eq $? || _lt_function_replace_fail=: 20477 20478 20479 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 20480func_stripname ()\ 20481{\ 20482\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 20483\ # positional parameters, so assign one to ordinary parameter first.\ 20484\ func_stripname_result=${3}\ 20485\ func_stripname_result=${func_stripname_result#"${1}"}\ 20486\ func_stripname_result=${func_stripname_result%"${2}"}\ 20487} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 20488 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20489 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20490test 0 -eq $? || _lt_function_replace_fail=: 20491 20492 20493 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 20494func_split_long_opt ()\ 20495{\ 20496\ func_split_long_opt_name=${1%%=*}\ 20497\ func_split_long_opt_arg=${1#*=}\ 20498} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 20499 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20501test 0 -eq $? || _lt_function_replace_fail=: 20502 20503 20504 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 20505func_split_short_opt ()\ 20506{\ 20507\ func_split_short_opt_arg=${1#??}\ 20508\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 20509} # Extended-shell func_split_short_opt 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_lo2o ()$/,/^} # func_lo2o /c\ 20516func_lo2o ()\ 20517{\ 20518\ case ${1} in\ 20519\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 20520\ *) func_lo2o_result=${1} ;;\ 20521\ esac\ 20522} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 20523 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20524 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20525test 0 -eq $? || _lt_function_replace_fail=: 20526 20527 20528 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 20529func_xform ()\ 20530{\ 20531 func_xform_result=${1%.*}.lo\ 20532} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 20533 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20534 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20535test 0 -eq $? || _lt_function_replace_fail=: 20536 20537 20538 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 20539func_arith ()\ 20540{\ 20541 func_arith_result=$(( $* ))\ 20542} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 20543 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20544 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20545test 0 -eq $? || _lt_function_replace_fail=: 20546 20547 20548 sed -e '/^func_len ()$/,/^} # func_len /c\ 20549func_len ()\ 20550{\ 20551 func_len_result=${#1}\ 20552} # Extended-shell func_len 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 20557fi 20558 20559if test x"$lt_shell_append" = xyes; then 20560 sed -e '/^func_append ()$/,/^} # func_append /c\ 20561func_append ()\ 20562{\ 20563 eval "${1}+=\\${2}"\ 20564} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 20565 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20567test 0 -eq $? || _lt_function_replace_fail=: 20568 20569 20570 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 20571func_append_quoted ()\ 20572{\ 20573\ func_quote_for_eval "${2}"\ 20574\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 20575} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 20576 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20577 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20578test 0 -eq $? || _lt_function_replace_fail=: 20579 20580 20581 # Save a `func_append' function call where possible by direct use of '+=' 20582 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 20583 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20585 test 0 -eq $? || _lt_function_replace_fail=: 20586else 20587 # Save a `func_append' function call even when '+=' is not available 20588 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 20589 && mv -f "$cfgfile.tmp" "$cfgfile" \ 20590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 20591 test 0 -eq $? || _lt_function_replace_fail=: 20592fi 20593 20594if test x"$_lt_function_replace_fail" = x":"; then 20595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 20596$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 20597fi 20598 20599 20600 mv -f "$cfgfile" "$ofile" || 20601 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20602 chmod +x "$ofile" 20603 20604 ;; 20605 20606 esac 20607done # for ac_tag 20608 20609 20610as_fn_exit 0 20611_ACEOF 20612ac_clean_files=$ac_clean_files_save 20613 20614test $ac_write_fail = 0 || 20615 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20616 20617 20618# configure is writing to config.log, and then calls config.status. 20619# config.status does its own redirection, appending to config.log. 20620# Unfortunately, on DOS this fails, as config.log is still kept open 20621# by configure, so config.status won't be able to write to it; its 20622# output is simply discarded. So we exec the FD to /dev/null, 20623# effectively closing config.log, so it can be properly (re)opened and 20624# appended to by config.status. When coming back to configure, we 20625# need to make the FD available again. 20626if test "$no_create" != yes; then 20627 ac_cs_success=: 20628 ac_config_status_args= 20629 test "$silent" = yes && 20630 ac_config_status_args="$ac_config_status_args --quiet" 20631 exec 5>/dev/null 20632 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20633 exec 5>>config.log 20634 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20635 # would make configure fail if this is the last instruction. 20636 $ac_cs_success || as_fn_exit 1 20637fi 20638if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20640$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20641fi 20642 20643