configure revision aa30ed02
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libxcb 1.14. 4# 5# Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/issues>. 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://gitlab.freedesktop.org/xorg/lib/libxcb/issues 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='libxcb' 593PACKAGE_TARNAME='libxcb' 594PACKAGE_VERSION='1.14' 595PACKAGE_STRING='libxcb 1.14' 596PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxcb/issues' 597PACKAGE_URL='' 598 599ac_unique_file="xcb.pc.in" 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 640XCB_SERVERSIDE_SUPPORT_FALSE 641XCB_SERVERSIDE_SUPPORT_TRUE 642LAUNCHD 643BUILD_XVMC_FALSE 644BUILD_XVMC_TRUE 645BUILD_XV_FALSE 646BUILD_XV_TRUE 647BUILD_XTEST_FALSE 648BUILD_XTEST_TRUE 649BUILD_SELINUX_FALSE 650BUILD_SELINUX_TRUE 651BUILD_XPRINT_FALSE 652BUILD_XPRINT_TRUE 653BUILD_XKB_FALSE 654BUILD_XKB_TRUE 655BUILD_XINPUT_FALSE 656BUILD_XINPUT_TRUE 657BUILD_XINERAMA_FALSE 658BUILD_XINERAMA_TRUE 659BUILD_XFREE86_DRI_FALSE 660BUILD_XFREE86_DRI_TRUE 661BUILD_XFIXES_FALSE 662BUILD_XFIXES_TRUE 663BUILD_XEVIE_FALSE 664BUILD_XEVIE_TRUE 665BUILD_SYNC_FALSE 666BUILD_SYNC_TRUE 667BUILD_SHM_FALSE 668BUILD_SHM_TRUE 669BUILD_SHAPE_FALSE 670BUILD_SHAPE_TRUE 671BUILD_SCREENSAVER_FALSE 672BUILD_SCREENSAVER_TRUE 673BUILD_RESOURCE_FALSE 674BUILD_RESOURCE_TRUE 675BUILD_RENDER_FALSE 676BUILD_RENDER_TRUE 677BUILD_RECORD_FALSE 678BUILD_RECORD_TRUE 679BUILD_RANDR_FALSE 680BUILD_RANDR_TRUE 681BUILD_PRESENT_FALSE 682BUILD_PRESENT_TRUE 683BUILD_GLX_FALSE 684BUILD_GLX_TRUE 685BUILD_GE_FALSE 686BUILD_GE_TRUE 687BUILD_DRI3_FALSE 688BUILD_DRI3_TRUE 689BUILD_DRI2_FALSE 690BUILD_DRI2_TRUE 691BUILD_DPMS_FALSE 692BUILD_DPMS_TRUE 693BUILD_DAMAGE_FALSE 694BUILD_DAMAGE_TRUE 695BUILD_COMPOSITE_FALSE 696BUILD_COMPOSITE_TRUE 697xcbincludedir 698XCB_HAVE_WIN32_FALSE 699XCB_HAVE_WIN32_TRUE 700lt_enable_auto_import 701XCBPROTO_XCBPYTHONDIR 702XCBPROTO_VERSION 703XCBPROTO_XCBINCLUDEDIR 704NEEDED 705XDMCP_LIBS 706XDMCP_CFLAGS 707NEEDED_LIBS 708NEEDED_CFLAGS 709XCBPROTO_LIBS 710XCBPROTO_CFLAGS 711HTML_CHECK_RESULT 712XSLTPROC 713HAVE_CHECK_FALSE 714HAVE_CHECK_TRUE 715CHECK_LIBS 716CHECK_CFLAGS 717HAVE_DOXYGEN_FALSE 718HAVE_DOXYGEN_TRUE 719HAVE_DOT_FALSE 720HAVE_DOT_TRUE 721HAVE_DOT 722DOT 723DOXYGEN 724ENABLE_DEVEL_DOCS_FALSE 725ENABLE_DEVEL_DOCS_TRUE 726MAN_SUBSTS 727XORG_MAN_PAGE 728ADMIN_MAN_DIR 729DRIVER_MAN_DIR 730MISC_MAN_DIR 731FILE_MAN_DIR 732LIB_MAN_DIR 733APP_MAN_DIR 734ADMIN_MAN_SUFFIX 735DRIVER_MAN_SUFFIX 736MISC_MAN_SUFFIX 737FILE_MAN_SUFFIX 738LIB_MAN_SUFFIX 739APP_MAN_SUFFIX 740INSTALL_CMD 741PKG_CONFIG_LIBDIR 742PKG_CONFIG_PATH 743PKG_CONFIG 744CHANGELOG_CMD 745STRICT_CFLAGS 746CWARNFLAGS 747BASE_CFLAGS 748LT_SYS_LIBRARY_PATH 749OTOOL64 750OTOOL 751LIPO 752NMEDIT 753DSYMUTIL 754MANIFEST_TOOL 755RANLIB 756ac_ct_AR 757AR 758LN_S 759NM 760ac_ct_DUMPBIN 761DUMPBIN 762LD 763FGREP 764SED 765host_os 766host_vendor 767host_cpu 768host 769build_os 770build_vendor 771build_cpu 772build 773LIBTOOL 774OBJDUMP 775DLLTOOL 776AS 777EGREP 778GREP 779CPP 780am__fastdepCC_FALSE 781am__fastdepCC_TRUE 782CCDEPMODE 783am__nodep 784AMDEPBACKSLASH 785AMDEP_FALSE 786AMDEP_TRUE 787am__include 788DEPDIR 789OBJEXT 790EXEEXT 791ac_ct_CC 792CPPFLAGS 793LDFLAGS 794CFLAGS 795CC 796pkgpyexecdir 797pyexecdir 798pkgpythondir 799pythondir 800PYTHON_PLATFORM 801PYTHON_EXEC_PREFIX 802PYTHON_PREFIX 803PYTHON_VERSION 804PYTHON 805AM_BACKSLASH 806AM_DEFAULT_VERBOSITY 807AM_DEFAULT_V 808AM_V 809am__untar 810am__tar 811AMTAR 812am__leading_dot 813SET_MAKE 814AWK 815mkdir_p 816MKDIR_P 817INSTALL_STRIP_PROGRAM 818STRIP 819install_sh 820MAKEINFO 821AUTOHEADER 822AUTOMAKE 823AUTOCONF 824ACLOCAL 825VERSION 826PACKAGE 827CYGPATH_W 828am__isrc 829INSTALL_DATA 830INSTALL_SCRIPT 831INSTALL_PROGRAM 832target_alias 833host_alias 834build_alias 835LIBS 836ECHO_T 837ECHO_N 838ECHO_C 839DEFS 840mandir 841localedir 842libdir 843psdir 844pdfdir 845dvidir 846htmldir 847infodir 848docdir 849oldincludedir 850includedir 851localstatedir 852sharedstatedir 853sysconfdir 854datadir 855datarootdir 856libexecdir 857sbindir 858bindir 859program_transform_name 860prefix 861exec_prefix 862PACKAGE_URL 863PACKAGE_BUGREPORT 864PACKAGE_STRING 865PACKAGE_VERSION 866PACKAGE_TARNAME 867PACKAGE_NAME 868PATH_SEPARATOR 869SHELL 870am__quote' 871ac_subst_files='' 872ac_user_opts=' 873enable_option_checking 874enable_silent_rules 875enable_dependency_tracking 876enable_shared 877enable_static 878with_pic 879enable_fast_install 880with_aix_soname 881with_gnu_ld 882with_sysroot 883enable_libtool_lock 884enable_selective_werror 885enable_strict_compilation 886enable_devel_docs 887with_doxygen 888with_queue_size 889enable_composite 890enable_damage 891enable_dpms 892enable_dri2 893enable_dri3 894enable_ge 895enable_glx 896enable_present 897enable_randr 898enable_record 899enable_render 900enable_resource 901enable_screensaver 902enable_shape 903enable_shm 904enable_sync 905enable_xevie 906enable_xfixes 907enable_xfree86_dri 908enable_xinerama 909enable_xinput 910enable_xkb 911enable_xprint 912enable_selinux 913enable_xtest 914enable_xv 915enable_xvmc 916with_launchd 917with_serverside_support 918' 919 ac_precious_vars='build_alias 920host_alias 921target_alias 922PYTHON 923CC 924CFLAGS 925LDFLAGS 926LIBS 927CPPFLAGS 928CPP 929LT_SYS_LIBRARY_PATH 930PKG_CONFIG 931PKG_CONFIG_PATH 932PKG_CONFIG_LIBDIR 933DOXYGEN 934DOT 935CHECK_CFLAGS 936CHECK_LIBS 937XCBPROTO_CFLAGS 938XCBPROTO_LIBS 939NEEDED_CFLAGS 940NEEDED_LIBS 941XDMCP_CFLAGS 942XDMCP_LIBS' 943 944 945# Initialize some variables set by options. 946ac_init_help= 947ac_init_version=false 948ac_unrecognized_opts= 949ac_unrecognized_sep= 950# The variables have the same names as the options, with 951# dashes changed to underlines. 952cache_file=/dev/null 953exec_prefix=NONE 954no_create= 955no_recursion= 956prefix=NONE 957program_prefix=NONE 958program_suffix=NONE 959program_transform_name=s,x,x, 960silent= 961site= 962srcdir= 963verbose= 964x_includes=NONE 965x_libraries=NONE 966 967# Installation directory options. 968# These are left unexpanded so users can "make install exec_prefix=/foo" 969# and all the variables that are supposed to be based on exec_prefix 970# by default will actually change. 971# Use braces instead of parens because sh, perl, etc. also accept them. 972# (The list follows the same order as the GNU Coding Standards.) 973bindir='${exec_prefix}/bin' 974sbindir='${exec_prefix}/sbin' 975libexecdir='${exec_prefix}/libexec' 976datarootdir='${prefix}/share' 977datadir='${datarootdir}' 978sysconfdir='${prefix}/etc' 979sharedstatedir='${prefix}/com' 980localstatedir='${prefix}/var' 981includedir='${prefix}/include' 982oldincludedir='/usr/include' 983docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 984infodir='${datarootdir}/info' 985htmldir='${docdir}' 986dvidir='${docdir}' 987pdfdir='${docdir}' 988psdir='${docdir}' 989libdir='${exec_prefix}/lib' 990localedir='${datarootdir}/locale' 991mandir='${datarootdir}/man' 992 993ac_prev= 994ac_dashdash= 995for ac_option 996do 997 # If the previous option needs an argument, assign it. 998 if test -n "$ac_prev"; then 999 eval $ac_prev=\$ac_option 1000 ac_prev= 1001 continue 1002 fi 1003 1004 case $ac_option in 1005 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1006 *=) ac_optarg= ;; 1007 *) ac_optarg=yes ;; 1008 esac 1009 1010 # Accept the important Cygnus configure options, so we can diagnose typos. 1011 1012 case $ac_dashdash$ac_option in 1013 --) 1014 ac_dashdash=yes ;; 1015 1016 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1017 ac_prev=bindir ;; 1018 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1019 bindir=$ac_optarg ;; 1020 1021 -build | --build | --buil | --bui | --bu) 1022 ac_prev=build_alias ;; 1023 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1024 build_alias=$ac_optarg ;; 1025 1026 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1027 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1028 ac_prev=cache_file ;; 1029 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1030 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1031 cache_file=$ac_optarg ;; 1032 1033 --config-cache | -C) 1034 cache_file=config.cache ;; 1035 1036 -datadir | --datadir | --datadi | --datad) 1037 ac_prev=datadir ;; 1038 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1039 datadir=$ac_optarg ;; 1040 1041 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1042 | --dataroo | --dataro | --datar) 1043 ac_prev=datarootdir ;; 1044 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1045 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1046 datarootdir=$ac_optarg ;; 1047 1048 -disable-* | --disable-*) 1049 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1050 # Reject names that are not valid shell variable names. 1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1052 as_fn_error $? "invalid feature name: $ac_useropt" 1053 ac_useropt_orig=$ac_useropt 1054 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1055 case $ac_user_opts in 1056 *" 1057"enable_$ac_useropt" 1058"*) ;; 1059 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1060 ac_unrecognized_sep=', ';; 1061 esac 1062 eval enable_$ac_useropt=no ;; 1063 1064 -docdir | --docdir | --docdi | --doc | --do) 1065 ac_prev=docdir ;; 1066 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1067 docdir=$ac_optarg ;; 1068 1069 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1070 ac_prev=dvidir ;; 1071 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1072 dvidir=$ac_optarg ;; 1073 1074 -enable-* | --enable-*) 1075 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1076 # Reject names that are not valid shell variable names. 1077 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1078 as_fn_error $? "invalid feature name: $ac_useropt" 1079 ac_useropt_orig=$ac_useropt 1080 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1081 case $ac_user_opts in 1082 *" 1083"enable_$ac_useropt" 1084"*) ;; 1085 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1086 ac_unrecognized_sep=', ';; 1087 esac 1088 eval enable_$ac_useropt=\$ac_optarg ;; 1089 1090 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1091 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1092 | --exec | --exe | --ex) 1093 ac_prev=exec_prefix ;; 1094 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1095 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1096 | --exec=* | --exe=* | --ex=*) 1097 exec_prefix=$ac_optarg ;; 1098 1099 -gas | --gas | --ga | --g) 1100 # Obsolete; use --with-gas. 1101 with_gas=yes ;; 1102 1103 -help | --help | --hel | --he | -h) 1104 ac_init_help=long ;; 1105 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1106 ac_init_help=recursive ;; 1107 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1108 ac_init_help=short ;; 1109 1110 -host | --host | --hos | --ho) 1111 ac_prev=host_alias ;; 1112 -host=* | --host=* | --hos=* | --ho=*) 1113 host_alias=$ac_optarg ;; 1114 1115 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1116 ac_prev=htmldir ;; 1117 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1118 | --ht=*) 1119 htmldir=$ac_optarg ;; 1120 1121 -includedir | --includedir | --includedi | --included | --include \ 1122 | --includ | --inclu | --incl | --inc) 1123 ac_prev=includedir ;; 1124 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1125 | --includ=* | --inclu=* | --incl=* | --inc=*) 1126 includedir=$ac_optarg ;; 1127 1128 -infodir | --infodir | --infodi | --infod | --info | --inf) 1129 ac_prev=infodir ;; 1130 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1131 infodir=$ac_optarg ;; 1132 1133 -libdir | --libdir | --libdi | --libd) 1134 ac_prev=libdir ;; 1135 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1136 libdir=$ac_optarg ;; 1137 1138 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1139 | --libexe | --libex | --libe) 1140 ac_prev=libexecdir ;; 1141 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1142 | --libexe=* | --libex=* | --libe=*) 1143 libexecdir=$ac_optarg ;; 1144 1145 -localedir | --localedir | --localedi | --localed | --locale) 1146 ac_prev=localedir ;; 1147 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1148 localedir=$ac_optarg ;; 1149 1150 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1151 | --localstate | --localstat | --localsta | --localst | --locals) 1152 ac_prev=localstatedir ;; 1153 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1154 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1155 localstatedir=$ac_optarg ;; 1156 1157 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1158 ac_prev=mandir ;; 1159 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1160 mandir=$ac_optarg ;; 1161 1162 -nfp | --nfp | --nf) 1163 # Obsolete; use --without-fp. 1164 with_fp=no ;; 1165 1166 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1167 | --no-cr | --no-c | -n) 1168 no_create=yes ;; 1169 1170 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1171 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1172 no_recursion=yes ;; 1173 1174 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1175 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1176 | --oldin | --oldi | --old | --ol | --o) 1177 ac_prev=oldincludedir ;; 1178 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1179 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1180 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1181 oldincludedir=$ac_optarg ;; 1182 1183 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1184 ac_prev=prefix ;; 1185 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1186 prefix=$ac_optarg ;; 1187 1188 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1189 | --program-pre | --program-pr | --program-p) 1190 ac_prev=program_prefix ;; 1191 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1192 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1193 program_prefix=$ac_optarg ;; 1194 1195 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1196 | --program-suf | --program-su | --program-s) 1197 ac_prev=program_suffix ;; 1198 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1199 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1200 program_suffix=$ac_optarg ;; 1201 1202 -program-transform-name | --program-transform-name \ 1203 | --program-transform-nam | --program-transform-na \ 1204 | --program-transform-n | --program-transform- \ 1205 | --program-transform | --program-transfor \ 1206 | --program-transfo | --program-transf \ 1207 | --program-trans | --program-tran \ 1208 | --progr-tra | --program-tr | --program-t) 1209 ac_prev=program_transform_name ;; 1210 -program-transform-name=* | --program-transform-name=* \ 1211 | --program-transform-nam=* | --program-transform-na=* \ 1212 | --program-transform-n=* | --program-transform-=* \ 1213 | --program-transform=* | --program-transfor=* \ 1214 | --program-transfo=* | --program-transf=* \ 1215 | --program-trans=* | --program-tran=* \ 1216 | --progr-tra=* | --program-tr=* | --program-t=*) 1217 program_transform_name=$ac_optarg ;; 1218 1219 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1220 ac_prev=pdfdir ;; 1221 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1222 pdfdir=$ac_optarg ;; 1223 1224 -psdir | --psdir | --psdi | --psd | --ps) 1225 ac_prev=psdir ;; 1226 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1227 psdir=$ac_optarg ;; 1228 1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1230 | -silent | --silent | --silen | --sile | --sil) 1231 silent=yes ;; 1232 1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1234 ac_prev=sbindir ;; 1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1236 | --sbi=* | --sb=*) 1237 sbindir=$ac_optarg ;; 1238 1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1241 | --sharedst | --shareds | --shared | --share | --shar \ 1242 | --sha | --sh) 1243 ac_prev=sharedstatedir ;; 1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1247 | --sha=* | --sh=*) 1248 sharedstatedir=$ac_optarg ;; 1249 1250 -site | --site | --sit) 1251 ac_prev=site ;; 1252 -site=* | --site=* | --sit=*) 1253 site=$ac_optarg ;; 1254 1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1256 ac_prev=srcdir ;; 1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1258 srcdir=$ac_optarg ;; 1259 1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1261 | --syscon | --sysco | --sysc | --sys | --sy) 1262 ac_prev=sysconfdir ;; 1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1265 sysconfdir=$ac_optarg ;; 1266 1267 -target | --target | --targe | --targ | --tar | --ta | --t) 1268 ac_prev=target_alias ;; 1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1270 target_alias=$ac_optarg ;; 1271 1272 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1273 verbose=yes ;; 1274 1275 -version | --version | --versio | --versi | --vers | -V) 1276 ac_init_version=: ;; 1277 1278 -with-* | --with-*) 1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1280 # Reject names that are not valid shell variable names. 1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1282 as_fn_error $? "invalid package name: $ac_useropt" 1283 ac_useropt_orig=$ac_useropt 1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1285 case $ac_user_opts in 1286 *" 1287"with_$ac_useropt" 1288"*) ;; 1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1290 ac_unrecognized_sep=', ';; 1291 esac 1292 eval with_$ac_useropt=\$ac_optarg ;; 1293 1294 -without-* | --without-*) 1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1296 # Reject names that are not valid shell variable names. 1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1298 as_fn_error $? "invalid package name: $ac_useropt" 1299 ac_useropt_orig=$ac_useropt 1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1301 case $ac_user_opts in 1302 *" 1303"with_$ac_useropt" 1304"*) ;; 1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1306 ac_unrecognized_sep=', ';; 1307 esac 1308 eval with_$ac_useropt=no ;; 1309 1310 --x) 1311 # Obsolete; use --with-x. 1312 with_x=yes ;; 1313 1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1315 | --x-incl | --x-inc | --x-in | --x-i) 1316 ac_prev=x_includes ;; 1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1319 x_includes=$ac_optarg ;; 1320 1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1323 ac_prev=x_libraries ;; 1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1326 x_libraries=$ac_optarg ;; 1327 1328 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1329Try \`$0 --help' for more information" 1330 ;; 1331 1332 *=*) 1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1334 # Reject names that are not valid shell variable names. 1335 case $ac_envvar in #( 1336 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1338 esac 1339 eval $ac_envvar=\$ac_optarg 1340 export $ac_envvar ;; 1341 1342 *) 1343 # FIXME: should be removed in autoconf 3.0. 1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1348 ;; 1349 1350 esac 1351done 1352 1353if test -n "$ac_prev"; then 1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1355 as_fn_error $? "missing argument to $ac_option" 1356fi 1357 1358if test -n "$ac_unrecognized_opts"; then 1359 case $enable_option_checking in 1360 no) ;; 1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1363 esac 1364fi 1365 1366# Check all directory arguments for consistency. 1367for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1368 datadir sysconfdir sharedstatedir localstatedir includedir \ 1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1370 libdir localedir mandir 1371do 1372 eval ac_val=\$$ac_var 1373 # Remove trailing slashes. 1374 case $ac_val in 1375 */ ) 1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1377 eval $ac_var=\$ac_val;; 1378 esac 1379 # Be sure to have absolute directory names. 1380 case $ac_val in 1381 [\\/$]* | ?:[\\/]* ) continue;; 1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1383 esac 1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1385done 1386 1387# There might be people who depend on the old broken behavior: `$host' 1388# used to hold the argument of --host etc. 1389# FIXME: To remove some day. 1390build=$build_alias 1391host=$host_alias 1392target=$target_alias 1393 1394# FIXME: To remove some day. 1395if test "x$host_alias" != x; then 1396 if test "x$build_alias" = x; then 1397 cross_compiling=maybe 1398 elif test "x$build_alias" != "x$host_alias"; then 1399 cross_compiling=yes 1400 fi 1401fi 1402 1403ac_tool_prefix= 1404test -n "$host_alias" && ac_tool_prefix=$host_alias- 1405 1406test "$silent" = yes && exec 6>/dev/null 1407 1408 1409ac_pwd=`pwd` && test -n "$ac_pwd" && 1410ac_ls_di=`ls -di .` && 1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1412 as_fn_error $? "working directory cannot be determined" 1413test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1414 as_fn_error $? "pwd does not report name of working directory" 1415 1416 1417# Find the source files, if location was not specified. 1418if test -z "$srcdir"; then 1419 ac_srcdir_defaulted=yes 1420 # Try the directory containing this script, then the parent directory. 1421 ac_confdir=`$as_dirname -- "$as_myself" || 1422$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1423 X"$as_myself" : 'X\(//\)[^/]' \| \ 1424 X"$as_myself" : 'X\(//\)$' \| \ 1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1426$as_echo X"$as_myself" | 1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1428 s//\1/ 1429 q 1430 } 1431 /^X\(\/\/\)[^/].*/{ 1432 s//\1/ 1433 q 1434 } 1435 /^X\(\/\/\)$/{ 1436 s//\1/ 1437 q 1438 } 1439 /^X\(\/\).*/{ 1440 s//\1/ 1441 q 1442 } 1443 s/.*/./; q'` 1444 srcdir=$ac_confdir 1445 if test ! -r "$srcdir/$ac_unique_file"; then 1446 srcdir=.. 1447 fi 1448else 1449 ac_srcdir_defaulted=no 1450fi 1451if test ! -r "$srcdir/$ac_unique_file"; then 1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1454fi 1455ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1456ac_abs_confdir=`( 1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1458 pwd)` 1459# When building in place, set srcdir=. 1460if test "$ac_abs_confdir" = "$ac_pwd"; then 1461 srcdir=. 1462fi 1463# Remove unnecessary trailing slashes from srcdir. 1464# Double slashes in file names in object file debugging info 1465# mess up M-x gdb in Emacs. 1466case $srcdir in 1467*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1468esac 1469for ac_var in $ac_precious_vars; do 1470 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1471 eval ac_env_${ac_var}_value=\$${ac_var} 1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1473 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1474done 1475 1476# 1477# Report the --help message. 1478# 1479if test "$ac_init_help" = "long"; then 1480 # Omit some internal or obsolete options to make the list less imposing. 1481 # This message is too long to be a string in the A/UX 3.1 sh. 1482 cat <<_ACEOF 1483\`configure' configures libxcb 1.14 to adapt to many kinds of systems. 1484 1485Usage: $0 [OPTION]... [VAR=VALUE]... 1486 1487To assign environment variables (e.g., CC, CFLAGS...), specify them as 1488VAR=VALUE. See below for descriptions of some of the useful variables. 1489 1490Defaults for the options are specified in brackets. 1491 1492Configuration: 1493 -h, --help display this help and exit 1494 --help=short display options specific to this package 1495 --help=recursive display the short help of all the included packages 1496 -V, --version display version information and exit 1497 -q, --quiet, --silent do not print \`checking ...' messages 1498 --cache-file=FILE cache test results in FILE [disabled] 1499 -C, --config-cache alias for \`--cache-file=config.cache' 1500 -n, --no-create do not create output files 1501 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1502 1503Installation directories: 1504 --prefix=PREFIX install architecture-independent files in PREFIX 1505 [$ac_default_prefix] 1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1507 [PREFIX] 1508 1509By default, \`make install' will install all the files in 1510\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1511an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1512for instance \`--prefix=\$HOME'. 1513 1514For better control, use the options below. 1515 1516Fine tuning of the installation directories: 1517 --bindir=DIR user executables [EPREFIX/bin] 1518 --sbindir=DIR system admin executables [EPREFIX/sbin] 1519 --libexecdir=DIR program executables [EPREFIX/libexec] 1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1523 --libdir=DIR object code libraries [EPREFIX/lib] 1524 --includedir=DIR C header files [PREFIX/include] 1525 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1526 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1527 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1528 --infodir=DIR info documentation [DATAROOTDIR/info] 1529 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1530 --mandir=DIR man documentation [DATAROOTDIR/man] 1531 --docdir=DIR documentation root [DATAROOTDIR/doc/libxcb] 1532 --htmldir=DIR html documentation [DOCDIR] 1533 --dvidir=DIR dvi documentation [DOCDIR] 1534 --pdfdir=DIR pdf documentation [DOCDIR] 1535 --psdir=DIR ps documentation [DOCDIR] 1536_ACEOF 1537 1538 cat <<\_ACEOF 1539 1540Program names: 1541 --program-prefix=PREFIX prepend PREFIX to installed program names 1542 --program-suffix=SUFFIX append SUFFIX to installed program names 1543 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1544 1545System types: 1546 --build=BUILD configure for building on BUILD [guessed] 1547 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1548_ACEOF 1549fi 1550 1551if test -n "$ac_init_help"; then 1552 case $ac_init_help in 1553 short | recursive ) echo "Configuration of libxcb 1.14:";; 1554 esac 1555 cat <<\_ACEOF 1556 1557Optional Features: 1558 --disable-option-checking ignore unrecognized --enable/--with options 1559 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1560 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1561 --enable-silent-rules less verbose build output (undo: "make V=1") 1562 --disable-silent-rules verbose build output (undo: "make V=0") 1563 --enable-dependency-tracking 1564 do not reject slow dependency extractors 1565 --disable-dependency-tracking 1566 speeds up one-time build 1567 --enable-shared[=PKGS] build shared libraries [default=yes] 1568 --enable-static[=PKGS] build static libraries [default=yes] 1569 --enable-fast-install[=PKGS] 1570 optimize for fast installation [default=yes] 1571 --disable-libtool-lock avoid locking (might break parallel builds) 1572 --disable-selective-werror 1573 Turn off selective compiler errors. (default: 1574 enabled) 1575 --enable-strict-compilation 1576 Enable all warnings from compiler and make them 1577 errors (default: disabled) 1578 --enable-devel-docs Enable building the developer documentation 1579 (default: yes) 1580 --enable-composite Build XCB Composite Extension (default: yes) 1581 --enable-damage Build XCB Damage Extension (default: yes) 1582 --enable-dpms Build XCB DPMS Extension (default: yes) 1583 --enable-dri2 Build XCB DRI2 Extension (default: yes) 1584 --enable-dri3 Build XCB DRI3 Extension (default: auto) 1585 --enable-ge Build XCB GE Extension (default: no) 1586 --enable-glx Build XCB GLX Extension (default: yes) 1587 --enable-present Build XCB Present Extension (default: yes) 1588 --enable-randr Build XCB RandR Extension (default: yes) 1589 --enable-record Build XCB Record Extension (default: yes) 1590 --enable-render Build XCB Render Extension (default: yes) 1591 --enable-resource Build XCB Resource Extension (default: yes) 1592 --enable-screensaver Build XCB Screensaver Extension (default: yes) 1593 --enable-shape Build XCB Shape Extension (default: yes) 1594 --enable-shm Build XCB Shm Extension (default: yes) 1595 --enable-sync Build XCB Sync Extension (default: yes) 1596 --enable-xevie Build XCB Xevie Extension (default: no) 1597 --enable-xfixes Build XCB XFixes Extension (default: yes) 1598 --enable-xfree86-dri Build XCB XFree86-DRI Extension (default: yes) 1599 --enable-xinerama Build XCB Xinerama Extension (default: yes) 1600 --enable-xinput Build XCB XInput Extension (default: yes) 1601 --enable-xkb Build XCB XKB Extension (default: yes) 1602 --enable-xprint Build XCB Xprint Extension (default: no) 1603 --enable-selinux Build XCB SELinux Extension (default: no) 1604 --enable-xtest Build XCB XTest Extension (default: yes) 1605 --enable-xv Build XCB Xv Extension (default: yes) 1606 --enable-xvmc Build XCB XvMC Extension (default: yes) 1607 1608Optional Packages: 1609 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1610 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1611 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1612 both] 1613 --with-aix-soname=aix|svr4|both 1614 shared library versioning (aka "SONAME") variant to 1615 provide on AIX, [default=aix]. 1616 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1617 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1618 compiler's sysroot if not specified). 1619 --with-doxygen Use doxygen to regenerate documentation (default: 1620 auto) 1621 --with-queue-size=SIZE Set the XCB buffer queue size (default is 16384) 1622 --with-launchd Build with support for Apple's launchd (default: 1623 auto) 1624 --with-serverside-support 1625 Build with support for server-side usage of xcb. 1626 This is still EXPERIMENTAL! ABI/API may change! 1627 (default: no) 1628 1629Some influential environment variables: 1630 PYTHON the Python interpreter 1631 CC C compiler command 1632 CFLAGS C compiler flags 1633 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1634 nonstandard directory <lib dir> 1635 LIBS libraries to pass to the linker, e.g. -l<library> 1636 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1637 you have headers in a nonstandard directory <include dir> 1638 CPP C preprocessor 1639 LT_SYS_LIBRARY_PATH 1640 User-defined run-time library search path. 1641 PKG_CONFIG path to pkg-config utility 1642 PKG_CONFIG_PATH 1643 directories to add to pkg-config's search path 1644 PKG_CONFIG_LIBDIR 1645 path overriding pkg-config's built-in search path 1646 DOXYGEN Path to doxygen command 1647 DOT Path to the dot graphics utility 1648 CHECK_CFLAGS 1649 C compiler flags for CHECK, overriding pkg-config 1650 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1651 XCBPROTO_CFLAGS 1652 C compiler flags for XCBPROTO, overriding pkg-config 1653 XCBPROTO_LIBS 1654 linker flags for XCBPROTO, overriding pkg-config 1655 NEEDED_CFLAGS 1656 C compiler flags for NEEDED, overriding pkg-config 1657 NEEDED_LIBS linker flags for NEEDED, overriding pkg-config 1658 XDMCP_CFLAGS 1659 C compiler flags for XDMCP, overriding pkg-config 1660 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1661 1662Use these variables to override the choices made by `configure' or to help 1663it to find libraries and programs with nonstandard names/locations. 1664 1665Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/issues>. 1666_ACEOF 1667ac_status=$? 1668fi 1669 1670if test "$ac_init_help" = "recursive"; then 1671 # If there are subdirs, report their specific --help. 1672 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1673 test -d "$ac_dir" || 1674 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1675 continue 1676 ac_builddir=. 1677 1678case "$ac_dir" in 1679.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1680*) 1681 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1682 # A ".." for each directory in $ac_dir_suffix. 1683 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1684 case $ac_top_builddir_sub in 1685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1687 esac ;; 1688esac 1689ac_abs_top_builddir=$ac_pwd 1690ac_abs_builddir=$ac_pwd$ac_dir_suffix 1691# for backward compatibility: 1692ac_top_builddir=$ac_top_build_prefix 1693 1694case $srcdir in 1695 .) # We are building in place. 1696 ac_srcdir=. 1697 ac_top_srcdir=$ac_top_builddir_sub 1698 ac_abs_top_srcdir=$ac_pwd ;; 1699 [\\/]* | ?:[\\/]* ) # Absolute name. 1700 ac_srcdir=$srcdir$ac_dir_suffix; 1701 ac_top_srcdir=$srcdir 1702 ac_abs_top_srcdir=$srcdir ;; 1703 *) # Relative name. 1704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1705 ac_top_srcdir=$ac_top_build_prefix$srcdir 1706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1707esac 1708ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1709 1710 cd "$ac_dir" || { ac_status=$?; continue; } 1711 # Check for guested configure. 1712 if test -f "$ac_srcdir/configure.gnu"; then 1713 echo && 1714 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1715 elif test -f "$ac_srcdir/configure"; then 1716 echo && 1717 $SHELL "$ac_srcdir/configure" --help=recursive 1718 else 1719 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1720 fi || ac_status=$? 1721 cd "$ac_pwd" || { ac_status=$?; break; } 1722 done 1723fi 1724 1725test -n "$ac_init_help" && exit $ac_status 1726if $ac_init_version; then 1727 cat <<\_ACEOF 1728libxcb configure 1.14 1729generated by GNU Autoconf 2.69 1730 1731Copyright (C) 2012 Free Software Foundation, Inc. 1732This configure script is free software; the Free Software Foundation 1733gives unlimited permission to copy, distribute and modify it. 1734_ACEOF 1735 exit 1736fi 1737 1738## ------------------------ ## 1739## Autoconf initialization. ## 1740## ------------------------ ## 1741 1742# ac_fn_c_try_compile LINENO 1743# -------------------------- 1744# Try to compile conftest.$ac_ext, and return whether this succeeded. 1745ac_fn_c_try_compile () 1746{ 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 rm -f conftest.$ac_objext 1749 if { { ac_try="$ac_compile" 1750case "(($ac_try" in 1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1752 *) ac_try_echo=$ac_try;; 1753esac 1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1755$as_echo "$ac_try_echo"; } >&5 1756 (eval "$ac_compile") 2>conftest.err 1757 ac_status=$? 1758 if test -s conftest.err; then 1759 grep -v '^ *+' conftest.err >conftest.er1 1760 cat conftest.er1 >&5 1761 mv -f conftest.er1 conftest.err 1762 fi 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } && { 1765 test -z "$ac_c_werror_flag" || 1766 test ! -s conftest.err 1767 } && test -s conftest.$ac_objext; then : 1768 ac_retval=0 1769else 1770 $as_echo "$as_me: failed program was:" >&5 1771sed 's/^/| /' conftest.$ac_ext >&5 1772 1773 ac_retval=1 1774fi 1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1776 as_fn_set_status $ac_retval 1777 1778} # ac_fn_c_try_compile 1779 1780# ac_fn_c_try_cpp LINENO 1781# ---------------------- 1782# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1783ac_fn_c_try_cpp () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 if { { ac_try="$ac_cpp conftest.$ac_ext" 1787case "(($ac_try" in 1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1789 *) ac_try_echo=$ac_try;; 1790esac 1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1792$as_echo "$ac_try_echo"; } >&5 1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1794 ac_status=$? 1795 if test -s conftest.err; then 1796 grep -v '^ *+' conftest.err >conftest.er1 1797 cat conftest.er1 >&5 1798 mv -f conftest.er1 conftest.err 1799 fi 1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1801 test $ac_status = 0; } > conftest.i && { 1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1803 test ! -s conftest.err 1804 }; then : 1805 ac_retval=0 1806else 1807 $as_echo "$as_me: failed program was:" >&5 1808sed 's/^/| /' conftest.$ac_ext >&5 1809 1810 ac_retval=1 1811fi 1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1813 as_fn_set_status $ac_retval 1814 1815} # ac_fn_c_try_cpp 1816 1817# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1818# ------------------------------------------------------- 1819# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1820# the include files in INCLUDES and setting the cache variable VAR 1821# accordingly. 1822ac_fn_c_check_header_mongrel () 1823{ 1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1825 if eval \${$3+:} false; then : 1826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1827$as_echo_n "checking for $2... " >&6; } 1828if eval \${$3+:} false; then : 1829 $as_echo_n "(cached) " >&6 1830fi 1831eval ac_res=\$$3 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1833$as_echo "$ac_res" >&6; } 1834else 1835 # Is the header compilable? 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1837$as_echo_n "checking $2 usability... " >&6; } 1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1839/* end confdefs.h. */ 1840$4 1841#include <$2> 1842_ACEOF 1843if ac_fn_c_try_compile "$LINENO"; then : 1844 ac_header_compiler=yes 1845else 1846 ac_header_compiler=no 1847fi 1848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1850$as_echo "$ac_header_compiler" >&6; } 1851 1852# Is the header present? 1853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1854$as_echo_n "checking $2 presence... " >&6; } 1855cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1856/* end confdefs.h. */ 1857#include <$2> 1858_ACEOF 1859if ac_fn_c_try_cpp "$LINENO"; then : 1860 ac_header_preproc=yes 1861else 1862 ac_header_preproc=no 1863fi 1864rm -f conftest.err conftest.i conftest.$ac_ext 1865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1866$as_echo "$ac_header_preproc" >&6; } 1867 1868# So? What about this header? 1869case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1870 yes:no: ) 1871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1872$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1874$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1875 ;; 1876 no:yes:* ) 1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1878$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1880$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1882$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1884$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1886$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1887( $as_echo "## -------------------------------------------------------------------- ## 1888## Report this to https://gitlab.freedesktop.org/xorg/lib/libxcb/issues ## 1889## -------------------------------------------------------------------- ##" 1890 ) | sed "s/^/$as_me: WARNING: /" >&2 1891 ;; 1892esac 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1894$as_echo_n "checking for $2... " >&6; } 1895if eval \${$3+:} false; then : 1896 $as_echo_n "(cached) " >&6 1897else 1898 eval "$3=\$ac_header_compiler" 1899fi 1900eval ac_res=\$$3 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1902$as_echo "$ac_res" >&6; } 1903fi 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1905 1906} # ac_fn_c_check_header_mongrel 1907 1908# ac_fn_c_try_run LINENO 1909# ---------------------- 1910# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1911# that executables *can* be run. 1912ac_fn_c_try_run () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 if { { ac_try="$ac_link" 1916case "(($ac_try" in 1917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1918 *) ac_try_echo=$ac_try;; 1919esac 1920eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1921$as_echo "$ac_try_echo"; } >&5 1922 (eval "$ac_link") 2>&5 1923 ac_status=$? 1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1925 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1926 { { case "(($ac_try" in 1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1928 *) ac_try_echo=$ac_try;; 1929esac 1930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1931$as_echo "$ac_try_echo"; } >&5 1932 (eval "$ac_try") 2>&5 1933 ac_status=$? 1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1935 test $ac_status = 0; }; }; then : 1936 ac_retval=0 1937else 1938 $as_echo "$as_me: program exited with status $ac_status" >&5 1939 $as_echo "$as_me: failed program was:" >&5 1940sed 's/^/| /' conftest.$ac_ext >&5 1941 1942 ac_retval=$ac_status 1943fi 1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1946 as_fn_set_status $ac_retval 1947 1948} # ac_fn_c_try_run 1949 1950# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1951# ------------------------------------------------------- 1952# Tests whether HEADER exists and can be compiled using the include files in 1953# INCLUDES, setting the cache variable VAR accordingly. 1954ac_fn_c_check_header_compile () 1955{ 1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1958$as_echo_n "checking for $2... " >&6; } 1959if eval \${$3+:} false; then : 1960 $as_echo_n "(cached) " >&6 1961else 1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1963/* end confdefs.h. */ 1964$4 1965#include <$2> 1966_ACEOF 1967if ac_fn_c_try_compile "$LINENO"; then : 1968 eval "$3=yes" 1969else 1970 eval "$3=no" 1971fi 1972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1973fi 1974eval ac_res=\$$3 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1976$as_echo "$ac_res" >&6; } 1977 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1978 1979} # ac_fn_c_check_header_compile 1980 1981# ac_fn_c_try_link LINENO 1982# ----------------------- 1983# Try to link conftest.$ac_ext, and return whether this succeeded. 1984ac_fn_c_try_link () 1985{ 1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1987 rm -f conftest.$ac_objext conftest$ac_exeext 1988 if { { ac_try="$ac_link" 1989case "(($ac_try" in 1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1991 *) ac_try_echo=$ac_try;; 1992esac 1993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1994$as_echo "$ac_try_echo"; } >&5 1995 (eval "$ac_link") 2>conftest.err 1996 ac_status=$? 1997 if test -s conftest.err; then 1998 grep -v '^ *+' conftest.err >conftest.er1 1999 cat conftest.er1 >&5 2000 mv -f conftest.er1 conftest.err 2001 fi 2002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2003 test $ac_status = 0; } && { 2004 test -z "$ac_c_werror_flag" || 2005 test ! -s conftest.err 2006 } && test -s conftest$ac_exeext && { 2007 test "$cross_compiling" = yes || 2008 test -x conftest$ac_exeext 2009 }; then : 2010 ac_retval=0 2011else 2012 $as_echo "$as_me: failed program was:" >&5 2013sed 's/^/| /' conftest.$ac_ext >&5 2014 2015 ac_retval=1 2016fi 2017 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2018 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2019 # interfere with the next link command; also delete a directory that is 2020 # left behind by Apple's compiler. We do this before executing the actions. 2021 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2023 as_fn_set_status $ac_retval 2024 2025} # ac_fn_c_try_link 2026 2027# ac_fn_c_check_func LINENO FUNC VAR 2028# ---------------------------------- 2029# Tests whether FUNC exists, setting the cache variable VAR accordingly 2030ac_fn_c_check_func () 2031{ 2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2034$as_echo_n "checking for $2... " >&6; } 2035if eval \${$3+:} false; then : 2036 $as_echo_n "(cached) " >&6 2037else 2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2039/* end confdefs.h. */ 2040/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2041 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2042#define $2 innocuous_$2 2043 2044/* System header to define __stub macros and hopefully few prototypes, 2045 which can conflict with char $2 (); below. 2046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2047 <limits.h> exists even on freestanding compilers. */ 2048 2049#ifdef __STDC__ 2050# include <limits.h> 2051#else 2052# include <assert.h> 2053#endif 2054 2055#undef $2 2056 2057/* Override any GCC internal prototype to avoid an error. 2058 Use char because int might match the return type of a GCC 2059 builtin and then its argument prototype would still apply. */ 2060#ifdef __cplusplus 2061extern "C" 2062#endif 2063char $2 (); 2064/* The GNU C library defines this for functions which it implements 2065 to always fail with ENOSYS. Some functions are actually named 2066 something starting with __ and the normal name is an alias. */ 2067#if defined __stub_$2 || defined __stub___$2 2068choke me 2069#endif 2070 2071int 2072main () 2073{ 2074return $2 (); 2075 ; 2076 return 0; 2077} 2078_ACEOF 2079if ac_fn_c_try_link "$LINENO"; then : 2080 eval "$3=yes" 2081else 2082 eval "$3=no" 2083fi 2084rm -f core conftest.err conftest.$ac_objext \ 2085 conftest$ac_exeext conftest.$ac_ext 2086fi 2087eval ac_res=\$$3 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2089$as_echo "$ac_res" >&6; } 2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2091 2092} # ac_fn_c_check_func 2093 2094# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2095# --------------------------------------------- 2096# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2097# accordingly. 2098ac_fn_c_check_decl () 2099{ 2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2101 as_decl_name=`echo $2|sed 's/ *(.*//'` 2102 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2104$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2105if eval \${$3+:} false; then : 2106 $as_echo_n "(cached) " >&6 2107else 2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2109/* end confdefs.h. */ 2110$4 2111int 2112main () 2113{ 2114#ifndef $as_decl_name 2115#ifdef __cplusplus 2116 (void) $as_decl_use; 2117#else 2118 (void) $as_decl_name; 2119#endif 2120#endif 2121 2122 ; 2123 return 0; 2124} 2125_ACEOF 2126if ac_fn_c_try_compile "$LINENO"; then : 2127 eval "$3=yes" 2128else 2129 eval "$3=no" 2130fi 2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2132fi 2133eval ac_res=\$$3 2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2135$as_echo "$ac_res" >&6; } 2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2137 2138} # ac_fn_c_check_decl 2139 2140# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2141# ---------------------------------------------------- 2142# Tries to find if the field MEMBER exists in type AGGR, after including 2143# INCLUDES, setting cache variable VAR accordingly. 2144ac_fn_c_check_member () 2145{ 2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2148$as_echo_n "checking for $2.$3... " >&6; } 2149if eval \${$4+:} false; then : 2150 $as_echo_n "(cached) " >&6 2151else 2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2153/* end confdefs.h. */ 2154$5 2155int 2156main () 2157{ 2158static $2 ac_aggr; 2159if (ac_aggr.$3) 2160return 0; 2161 ; 2162 return 0; 2163} 2164_ACEOF 2165if ac_fn_c_try_compile "$LINENO"; then : 2166 eval "$4=yes" 2167else 2168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2169/* end confdefs.h. */ 2170$5 2171int 2172main () 2173{ 2174static $2 ac_aggr; 2175if (sizeof ac_aggr.$3) 2176return 0; 2177 ; 2178 return 0; 2179} 2180_ACEOF 2181if ac_fn_c_try_compile "$LINENO"; then : 2182 eval "$4=yes" 2183else 2184 eval "$4=no" 2185fi 2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2187fi 2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2189fi 2190eval ac_res=\$$4 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2192$as_echo "$ac_res" >&6; } 2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2194 2195} # ac_fn_c_check_member 2196cat >config.log <<_ACEOF 2197This file contains any messages produced by compilers while 2198running configure, to aid debugging if configure makes a mistake. 2199 2200It was created by libxcb $as_me 1.14, which was 2201generated by GNU Autoconf 2.69. Invocation command line was 2202 2203 $ $0 $@ 2204 2205_ACEOF 2206exec 5>>config.log 2207{ 2208cat <<_ASUNAME 2209## --------- ## 2210## Platform. ## 2211## --------- ## 2212 2213hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2214uname -m = `(uname -m) 2>/dev/null || echo unknown` 2215uname -r = `(uname -r) 2>/dev/null || echo unknown` 2216uname -s = `(uname -s) 2>/dev/null || echo unknown` 2217uname -v = `(uname -v) 2>/dev/null || echo unknown` 2218 2219/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2220/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2221 2222/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2223/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2224/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2225/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2226/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2227/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2228/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2229 2230_ASUNAME 2231 2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2233for as_dir in $PATH 2234do 2235 IFS=$as_save_IFS 2236 test -z "$as_dir" && as_dir=. 2237 $as_echo "PATH: $as_dir" 2238 done 2239IFS=$as_save_IFS 2240 2241} >&5 2242 2243cat >&5 <<_ACEOF 2244 2245 2246## ----------- ## 2247## Core tests. ## 2248## ----------- ## 2249 2250_ACEOF 2251 2252 2253# Keep a trace of the command line. 2254# Strip out --no-create and --no-recursion so they do not pile up. 2255# Strip out --silent because we don't want to record it for future runs. 2256# Also quote any args containing shell meta-characters. 2257# Make two passes to allow for proper duplicate-argument suppression. 2258ac_configure_args= 2259ac_configure_args0= 2260ac_configure_args1= 2261ac_must_keep_next=false 2262for ac_pass in 1 2 2263do 2264 for ac_arg 2265 do 2266 case $ac_arg in 2267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2269 | -silent | --silent | --silen | --sile | --sil) 2270 continue ;; 2271 *\'*) 2272 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2273 esac 2274 case $ac_pass in 2275 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2276 2) 2277 as_fn_append ac_configure_args1 " '$ac_arg'" 2278 if test $ac_must_keep_next = true; then 2279 ac_must_keep_next=false # Got value, back to normal. 2280 else 2281 case $ac_arg in 2282 *=* | --config-cache | -C | -disable-* | --disable-* \ 2283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2285 | -with-* | --with-* | -without-* | --without-* | --x) 2286 case "$ac_configure_args0 " in 2287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2288 esac 2289 ;; 2290 -* ) ac_must_keep_next=true ;; 2291 esac 2292 fi 2293 as_fn_append ac_configure_args " '$ac_arg'" 2294 ;; 2295 esac 2296 done 2297done 2298{ ac_configure_args0=; unset ac_configure_args0;} 2299{ ac_configure_args1=; unset ac_configure_args1;} 2300 2301# When interrupted or exit'd, cleanup temporary files, and complete 2302# config.log. We remove comments because anyway the quotes in there 2303# would cause problems or look ugly. 2304# WARNING: Use '\'' to represent an apostrophe within the trap. 2305# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2306trap 'exit_status=$? 2307 # Save into config.log some information that might help in debugging. 2308 { 2309 echo 2310 2311 $as_echo "## ---------------- ## 2312## Cache variables. ## 2313## ---------------- ##" 2314 echo 2315 # The following way of writing the cache mishandles newlines in values, 2316( 2317 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2318 eval ac_val=\$$ac_var 2319 case $ac_val in #( 2320 *${as_nl}*) 2321 case $ac_var in #( 2322 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2323$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2324 esac 2325 case $ac_var in #( 2326 _ | IFS | as_nl) ;; #( 2327 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2328 *) { eval $ac_var=; unset $ac_var;} ;; 2329 esac ;; 2330 esac 2331 done 2332 (set) 2>&1 | 2333 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2334 *${as_nl}ac_space=\ *) 2335 sed -n \ 2336 "s/'\''/'\''\\\\'\'''\''/g; 2337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2338 ;; #( 2339 *) 2340 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2341 ;; 2342 esac | 2343 sort 2344) 2345 echo 2346 2347 $as_echo "## ----------------- ## 2348## Output variables. ## 2349## ----------------- ##" 2350 echo 2351 for ac_var in $ac_subst_vars 2352 do 2353 eval ac_val=\$$ac_var 2354 case $ac_val in 2355 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2356 esac 2357 $as_echo "$ac_var='\''$ac_val'\''" 2358 done | sort 2359 echo 2360 2361 if test -n "$ac_subst_files"; then 2362 $as_echo "## ------------------- ## 2363## File substitutions. ## 2364## ------------------- ##" 2365 echo 2366 for ac_var in $ac_subst_files 2367 do 2368 eval ac_val=\$$ac_var 2369 case $ac_val in 2370 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2371 esac 2372 $as_echo "$ac_var='\''$ac_val'\''" 2373 done | sort 2374 echo 2375 fi 2376 2377 if test -s confdefs.h; then 2378 $as_echo "## ----------- ## 2379## confdefs.h. ## 2380## ----------- ##" 2381 echo 2382 cat confdefs.h 2383 echo 2384 fi 2385 test "$ac_signal" != 0 && 2386 $as_echo "$as_me: caught signal $ac_signal" 2387 $as_echo "$as_me: exit $exit_status" 2388 } >&5 2389 rm -f core *.core core.conftest.* && 2390 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2391 exit $exit_status 2392' 0 2393for ac_signal in 1 2 13 15; do 2394 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2395done 2396ac_signal=0 2397 2398# confdefs.h avoids OS command line length limits that DEFS can exceed. 2399rm -f -r conftest* confdefs.h 2400 2401$as_echo "/* confdefs.h */" > confdefs.h 2402 2403# Predefined preprocessor variables. 2404 2405cat >>confdefs.h <<_ACEOF 2406#define PACKAGE_NAME "$PACKAGE_NAME" 2407_ACEOF 2408 2409cat >>confdefs.h <<_ACEOF 2410#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2411_ACEOF 2412 2413cat >>confdefs.h <<_ACEOF 2414#define PACKAGE_VERSION "$PACKAGE_VERSION" 2415_ACEOF 2416 2417cat >>confdefs.h <<_ACEOF 2418#define PACKAGE_STRING "$PACKAGE_STRING" 2419_ACEOF 2420 2421cat >>confdefs.h <<_ACEOF 2422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2423_ACEOF 2424 2425cat >>confdefs.h <<_ACEOF 2426#define PACKAGE_URL "$PACKAGE_URL" 2427_ACEOF 2428 2429 2430# Let the site file select an alternate cache file if it wants to. 2431# Prefer an explicitly selected file to automatically selected ones. 2432ac_site_file1=NONE 2433ac_site_file2=NONE 2434if test -n "$CONFIG_SITE"; then 2435 # We do not want a PATH search for config.site. 2436 case $CONFIG_SITE in #(( 2437 -*) ac_site_file1=./$CONFIG_SITE;; 2438 */*) ac_site_file1=$CONFIG_SITE;; 2439 *) ac_site_file1=./$CONFIG_SITE;; 2440 esac 2441elif test "x$prefix" != xNONE; then 2442 ac_site_file1=$prefix/share/config.site 2443 ac_site_file2=$prefix/etc/config.site 2444else 2445 ac_site_file1=$ac_default_prefix/share/config.site 2446 ac_site_file2=$ac_default_prefix/etc/config.site 2447fi 2448for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2449do 2450 test "x$ac_site_file" = xNONE && continue 2451 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2453$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2454 sed 's/^/| /' "$ac_site_file" >&5 2455 . "$ac_site_file" \ 2456 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2458as_fn_error $? "failed to load site script $ac_site_file 2459See \`config.log' for more details" "$LINENO" 5; } 2460 fi 2461done 2462 2463if test -r "$cache_file"; then 2464 # Some versions of bash will fail to source /dev/null (special files 2465 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2466 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2468$as_echo "$as_me: loading cache $cache_file" >&6;} 2469 case $cache_file in 2470 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2471 *) . "./$cache_file";; 2472 esac 2473 fi 2474else 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2476$as_echo "$as_me: creating cache $cache_file" >&6;} 2477 >$cache_file 2478fi 2479 2480# Check that the precious variables saved in the cache have kept the same 2481# value. 2482ac_cache_corrupted=false 2483for ac_var in $ac_precious_vars; do 2484 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2485 eval ac_new_set=\$ac_env_${ac_var}_set 2486 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2487 eval ac_new_val=\$ac_env_${ac_var}_value 2488 case $ac_old_set,$ac_new_set in 2489 set,) 2490 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2491$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2492 ac_cache_corrupted=: ;; 2493 ,set) 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2495$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2496 ac_cache_corrupted=: ;; 2497 ,);; 2498 *) 2499 if test "x$ac_old_val" != "x$ac_new_val"; then 2500 # differences in whitespace do not lead to failure. 2501 ac_old_val_w=`echo x $ac_old_val` 2502 ac_new_val_w=`echo x $ac_new_val` 2503 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2504 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2505$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2506 ac_cache_corrupted=: 2507 else 2508 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2509$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2510 eval $ac_var=\$ac_old_val 2511 fi 2512 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2513$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2515$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2516 fi;; 2517 esac 2518 # Pass precious variables to config.status. 2519 if test "$ac_new_set" = set; then 2520 case $ac_new_val in 2521 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2522 *) ac_arg=$ac_var=$ac_new_val ;; 2523 esac 2524 case " $ac_configure_args " in 2525 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2526 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2527 esac 2528 fi 2529done 2530if $ac_cache_corrupted; then 2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2532$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2534$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2535 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2536fi 2537## -------------------- ## 2538## Main body of script. ## 2539## -------------------- ## 2540 2541ac_ext=c 2542ac_cpp='$CPP $CPPFLAGS' 2543ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2544ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2545ac_compiler_gnu=$ac_cv_c_compiler_gnu 2546 2547 2548ac_aux_dir= 2549for ac_dir in build-aux "$srcdir"/build-aux; do 2550 if test -f "$ac_dir/install-sh"; then 2551 ac_aux_dir=$ac_dir 2552 ac_install_sh="$ac_aux_dir/install-sh -c" 2553 break 2554 elif test -f "$ac_dir/install.sh"; then 2555 ac_aux_dir=$ac_dir 2556 ac_install_sh="$ac_aux_dir/install.sh -c" 2557 break 2558 elif test -f "$ac_dir/shtool"; then 2559 ac_aux_dir=$ac_dir 2560 ac_install_sh="$ac_aux_dir/shtool install -c" 2561 break 2562 fi 2563done 2564if test -z "$ac_aux_dir"; then 2565 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2566fi 2567 2568# These three variables are undocumented and unsupported, 2569# and are intended to be withdrawn in a future Autoconf release. 2570# They can cause serious problems if a builder's source tree is in a directory 2571# whose full name contains unusual characters. 2572ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2573ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2574ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2575 2576 2577 2578 2579ac_config_headers="$ac_config_headers src/config.h" 2580 2581 2582# Initialize Automake 2583am__api_version='1.16' 2584 2585# Find a good install program. We prefer a C program (faster), 2586# so one script is as good as another. But avoid the broken or 2587# incompatible versions: 2588# SysV /etc/install, /usr/sbin/install 2589# SunOS /usr/etc/install 2590# IRIX /sbin/install 2591# AIX /bin/install 2592# AmigaOS /C/install, which installs bootblocks on floppy discs 2593# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2594# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2595# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2596# OS/2's system install, which has a completely different semantic 2597# ./install, which can be erroneously created by make from ./install.sh. 2598# Reject install programs that cannot install multiple files. 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2600$as_echo_n "checking for a BSD-compatible install... " >&6; } 2601if test -z "$INSTALL"; then 2602if ${ac_cv_path_install+:} false; then : 2603 $as_echo_n "(cached) " >&6 2604else 2605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2606for as_dir in $PATH 2607do 2608 IFS=$as_save_IFS 2609 test -z "$as_dir" && as_dir=. 2610 # Account for people who put trailing slashes in PATH elements. 2611case $as_dir/ in #(( 2612 ./ | .// | /[cC]/* | \ 2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2615 /usr/ucb/* ) ;; 2616 *) 2617 # OSF1 and SCO ODT 3.0 have their own names for install. 2618 # Don't use installbsd from OSF since it installs stuff as root 2619 # by default. 2620 for ac_prog in ginstall scoinst install; do 2621 for ac_exec_ext in '' $ac_executable_extensions; do 2622 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2623 if test $ac_prog = install && 2624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2625 # AIX install. It has an incompatible calling convention. 2626 : 2627 elif test $ac_prog = install && 2628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2629 # program-specific install script used by HP pwplus--don't use. 2630 : 2631 else 2632 rm -rf conftest.one conftest.two conftest.dir 2633 echo one > conftest.one 2634 echo two > conftest.two 2635 mkdir conftest.dir 2636 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2637 test -s conftest.one && test -s conftest.two && 2638 test -s conftest.dir/conftest.one && 2639 test -s conftest.dir/conftest.two 2640 then 2641 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2642 break 3 2643 fi 2644 fi 2645 fi 2646 done 2647 done 2648 ;; 2649esac 2650 2651 done 2652IFS=$as_save_IFS 2653 2654rm -rf conftest.one conftest.two conftest.dir 2655 2656fi 2657 if test "${ac_cv_path_install+set}" = set; then 2658 INSTALL=$ac_cv_path_install 2659 else 2660 # As a last resort, use the slow shell script. Don't cache a 2661 # value for INSTALL within a source directory, because that will 2662 # break other packages using the cache if that directory is 2663 # removed, or if the value is a relative name. 2664 INSTALL=$ac_install_sh 2665 fi 2666fi 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2668$as_echo "$INSTALL" >&6; } 2669 2670# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2671# It thinks the first close brace ends the variable substitution. 2672test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2673 2674test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2675 2676test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2677 2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2679$as_echo_n "checking whether build environment is sane... " >&6; } 2680# Reject unsafe characters in $srcdir or the absolute working directory 2681# name. Accept space and tab only in the latter. 2682am_lf=' 2683' 2684case `pwd` in 2685 *[\\\"\#\$\&\'\`$am_lf]*) 2686 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2687esac 2688case $srcdir in 2689 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2690 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2691esac 2692 2693# Do 'set' in a subshell so we don't clobber the current shell's 2694# arguments. Must try -L first in case configure is actually a 2695# symlink; some systems play weird games with the mod time of symlinks 2696# (eg FreeBSD returns the mod time of the symlink's containing 2697# directory). 2698if ( 2699 am_has_slept=no 2700 for am_try in 1 2; do 2701 echo "timestamp, slept: $am_has_slept" > conftest.file 2702 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2703 if test "$*" = "X"; then 2704 # -L didn't work. 2705 set X `ls -t "$srcdir/configure" conftest.file` 2706 fi 2707 if test "$*" != "X $srcdir/configure conftest.file" \ 2708 && test "$*" != "X conftest.file $srcdir/configure"; then 2709 2710 # If neither matched, then we have a broken ls. This can happen 2711 # if, for instance, CONFIG_SHELL is bash and it inherits a 2712 # broken ls alias from the environment. This has actually 2713 # happened. Such a system could not be considered "sane". 2714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2715 alias in your environment" "$LINENO" 5 2716 fi 2717 if test "$2" = conftest.file || test $am_try -eq 2; then 2718 break 2719 fi 2720 # Just in case. 2721 sleep 1 2722 am_has_slept=yes 2723 done 2724 test "$2" = conftest.file 2725 ) 2726then 2727 # Ok. 2728 : 2729else 2730 as_fn_error $? "newly created file is older than distributed files! 2731Check your system clock" "$LINENO" 5 2732fi 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2734$as_echo "yes" >&6; } 2735# If we didn't sleep, we still need to ensure time stamps of config.status and 2736# generated files are strictly newer. 2737am_sleep_pid= 2738if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2739 ( sleep 1 ) & 2740 am_sleep_pid=$! 2741fi 2742 2743rm -f conftest.file 2744 2745test "$program_prefix" != NONE && 2746 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2747# Use a double $ so make ignores it. 2748test "$program_suffix" != NONE && 2749 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2750# Double any \ or $. 2751# By default was `s,x,x', remove it if useless. 2752ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2753program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2754 2755# Expand $ac_aux_dir to an absolute path. 2756am_aux_dir=`cd "$ac_aux_dir" && pwd` 2757 2758if test x"${MISSING+set}" != xset; then 2759 case $am_aux_dir in 2760 *\ * | *\ *) 2761 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2762 *) 2763 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2764 esac 2765fi 2766# Use eval to expand $SHELL 2767if eval "$MISSING --is-lightweight"; then 2768 am_missing_run="$MISSING " 2769else 2770 am_missing_run= 2771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2772$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2773fi 2774 2775if test x"${install_sh+set}" != xset; then 2776 case $am_aux_dir in 2777 *\ * | *\ *) 2778 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2779 *) 2780 install_sh="\${SHELL} $am_aux_dir/install-sh" 2781 esac 2782fi 2783 2784# Installed binaries are usually stripped using 'strip' when the user 2785# run "make install-strip". However 'strip' might not be the right 2786# tool to use in cross-compilation environments, therefore Automake 2787# will honor the 'STRIP' environment variable to overrule this program. 2788if test "$cross_compiling" != no; then 2789 if test -n "$ac_tool_prefix"; then 2790 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2791set dummy ${ac_tool_prefix}strip; ac_word=$2 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2793$as_echo_n "checking for $ac_word... " >&6; } 2794if ${ac_cv_prog_STRIP+:} false; then : 2795 $as_echo_n "(cached) " >&6 2796else 2797 if test -n "$STRIP"; then 2798 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2799else 2800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2801for as_dir in $PATH 2802do 2803 IFS=$as_save_IFS 2804 test -z "$as_dir" && as_dir=. 2805 for ac_exec_ext in '' $ac_executable_extensions; do 2806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2807 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2809 break 2 2810 fi 2811done 2812 done 2813IFS=$as_save_IFS 2814 2815fi 2816fi 2817STRIP=$ac_cv_prog_STRIP 2818if test -n "$STRIP"; then 2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2820$as_echo "$STRIP" >&6; } 2821else 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2823$as_echo "no" >&6; } 2824fi 2825 2826 2827fi 2828if test -z "$ac_cv_prog_STRIP"; then 2829 ac_ct_STRIP=$STRIP 2830 # Extract the first word of "strip", so it can be a program name with args. 2831set dummy strip; ac_word=$2 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2833$as_echo_n "checking for $ac_word... " >&6; } 2834if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 if test -n "$ac_ct_STRIP"; then 2838 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2839else 2840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2841for as_dir in $PATH 2842do 2843 IFS=$as_save_IFS 2844 test -z "$as_dir" && as_dir=. 2845 for ac_exec_ext in '' $ac_executable_extensions; do 2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2847 ac_cv_prog_ac_ct_STRIP="strip" 2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2849 break 2 2850 fi 2851done 2852 done 2853IFS=$as_save_IFS 2854 2855fi 2856fi 2857ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2858if test -n "$ac_ct_STRIP"; then 2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2860$as_echo "$ac_ct_STRIP" >&6; } 2861else 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2863$as_echo "no" >&6; } 2864fi 2865 2866 if test "x$ac_ct_STRIP" = x; then 2867 STRIP=":" 2868 else 2869 case $cross_compiling:$ac_tool_warned in 2870yes:) 2871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2873ac_tool_warned=yes ;; 2874esac 2875 STRIP=$ac_ct_STRIP 2876 fi 2877else 2878 STRIP="$ac_cv_prog_STRIP" 2879fi 2880 2881fi 2882INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2883 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2885$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2886if test -z "$MKDIR_P"; then 2887 if ${ac_cv_path_mkdir+:} false; then : 2888 $as_echo_n "(cached) " >&6 2889else 2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2891for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2892do 2893 IFS=$as_save_IFS 2894 test -z "$as_dir" && as_dir=. 2895 for ac_prog in mkdir gmkdir; do 2896 for ac_exec_ext in '' $ac_executable_extensions; do 2897 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2898 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2899 'mkdir (GNU coreutils) '* | \ 2900 'mkdir (coreutils) '* | \ 2901 'mkdir (fileutils) '4.1*) 2902 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2903 break 3;; 2904 esac 2905 done 2906 done 2907 done 2908IFS=$as_save_IFS 2909 2910fi 2911 2912 test -d ./--version && rmdir ./--version 2913 if test "${ac_cv_path_mkdir+set}" = set; then 2914 MKDIR_P="$ac_cv_path_mkdir -p" 2915 else 2916 # As a last resort, use the slow shell script. Don't cache a 2917 # value for MKDIR_P within a source directory, because that will 2918 # break other packages using the cache if that directory is 2919 # removed, or if the value is a relative name. 2920 MKDIR_P="$ac_install_sh -d" 2921 fi 2922fi 2923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2924$as_echo "$MKDIR_P" >&6; } 2925 2926for ac_prog in gawk mawk nawk awk 2927do 2928 # Extract the first word of "$ac_prog", so it can be a program name with args. 2929set dummy $ac_prog; ac_word=$2 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if ${ac_cv_prog_AWK+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test -n "$AWK"; then 2936 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2945 ac_cv_prog_AWK="$ac_prog" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950 done 2951IFS=$as_save_IFS 2952 2953fi 2954fi 2955AWK=$ac_cv_prog_AWK 2956if test -n "$AWK"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2958$as_echo "$AWK" >&6; } 2959else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 2965 test -n "$AWK" && break 2966done 2967 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2969$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2970set x ${MAKE-make} 2971ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2972if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2973 $as_echo_n "(cached) " >&6 2974else 2975 cat >conftest.make <<\_ACEOF 2976SHELL = /bin/sh 2977all: 2978 @echo '@@@%%%=$(MAKE)=@@@%%%' 2979_ACEOF 2980# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2981case `${MAKE-make} -f conftest.make 2>/dev/null` in 2982 *@@@%%%=?*=@@@%%%*) 2983 eval ac_cv_prog_make_${ac_make}_set=yes;; 2984 *) 2985 eval ac_cv_prog_make_${ac_make}_set=no;; 2986esac 2987rm -f conftest.make 2988fi 2989if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2991$as_echo "yes" >&6; } 2992 SET_MAKE= 2993else 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2995$as_echo "no" >&6; } 2996 SET_MAKE="MAKE=${MAKE-make}" 2997fi 2998 2999rm -rf .tst 2>/dev/null 3000mkdir .tst 2>/dev/null 3001if test -d .tst; then 3002 am__leading_dot=. 3003else 3004 am__leading_dot=_ 3005fi 3006rmdir .tst 2>/dev/null 3007 3008# Check whether --enable-silent-rules was given. 3009if test "${enable_silent_rules+set}" = set; then : 3010 enableval=$enable_silent_rules; 3011fi 3012 3013case $enable_silent_rules in # ((( 3014 yes) AM_DEFAULT_VERBOSITY=0;; 3015 no) AM_DEFAULT_VERBOSITY=1;; 3016 *) AM_DEFAULT_VERBOSITY=1;; 3017esac 3018am_make=${MAKE-make} 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3020$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3021if ${am_cv_make_support_nested_variables+:} false; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if $as_echo 'TRUE=$(BAR$(V)) 3025BAR0=false 3026BAR1=true 3027V=1 3028am__doit: 3029 @$(TRUE) 3030.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3031 am_cv_make_support_nested_variables=yes 3032else 3033 am_cv_make_support_nested_variables=no 3034fi 3035fi 3036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3037$as_echo "$am_cv_make_support_nested_variables" >&6; } 3038if test $am_cv_make_support_nested_variables = yes; then 3039 AM_V='$(V)' 3040 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3041else 3042 AM_V=$AM_DEFAULT_VERBOSITY 3043 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3044fi 3045AM_BACKSLASH='\' 3046 3047if test "`cd $srcdir && pwd`" != "`pwd`"; then 3048 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3049 # is not polluted with repeated "-I." 3050 am__isrc=' -I$(srcdir)' 3051 # test to see if srcdir already configured 3052 if test -f $srcdir/config.status; then 3053 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3054 fi 3055fi 3056 3057# test whether we have cygpath 3058if test -z "$CYGPATH_W"; then 3059 if (cygpath --version) >/dev/null 2>/dev/null; then 3060 CYGPATH_W='cygpath -w' 3061 else 3062 CYGPATH_W=echo 3063 fi 3064fi 3065 3066 3067# Define the identity of the package. 3068 PACKAGE='libxcb' 3069 VERSION='1.14' 3070 3071 3072cat >>confdefs.h <<_ACEOF 3073#define PACKAGE "$PACKAGE" 3074_ACEOF 3075 3076 3077cat >>confdefs.h <<_ACEOF 3078#define VERSION "$VERSION" 3079_ACEOF 3080 3081# Some tools Automake needs. 3082 3083ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3084 3085 3086AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3087 3088 3089AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3090 3091 3092AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3093 3094 3095MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3096 3097# For better backward compatibility. To be removed once Automake 1.9.x 3098# dies out for good. For more background, see: 3099# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3100# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3101mkdir_p='$(MKDIR_P)' 3102 3103# We need awk for the "check" target (and possibly the TAP driver). The 3104# system "awk" is bad on some platforms. 3105# Always define AMTAR for backward compatibility. Yes, it's still used 3106# in the wild :-( We should find a proper way to deprecate it ... 3107AMTAR='$${TAR-tar}' 3108 3109 3110# We'll loop over all known methods to create a tar archive until one works. 3111_am_tools='gnutar pax cpio none' 3112 3113am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3114 3115 3116 3117 3118 3119 3120# POSIX will say in a future version that running "rm -f" with no argument 3121# is OK; and we want to be able to make that assumption in our Makefile 3122# recipes. So use an aggressive probe to check that the usage we want is 3123# actually supported "in the wild" to an acceptable degree. 3124# See automake bug#10828. 3125# To make any issue more visible, cause the running configure to be aborted 3126# by default if the 'rm' program in use doesn't match our expectations; the 3127# user can still override this though. 3128if rm -f && rm -fr && rm -rf; then : OK; else 3129 cat >&2 <<'END' 3130Oops! 3131 3132Your 'rm' program seems unable to run without file operands specified 3133on the command line, even when the '-f' option is present. This is contrary 3134to the behaviour of most rm programs out there, and not conforming with 3135the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3136 3137Please tell bug-automake@gnu.org about your system, including the value 3138of your $PATH and any error possibly output before this message. This 3139can help us improve future automake versions. 3140 3141END 3142 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3143 echo 'Configuration will proceed anyway, since you have set the' >&2 3144 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3145 echo >&2 3146 else 3147 cat >&2 <<'END' 3148Aborting the configuration process, to ensure you take notice of the issue. 3149 3150You can download and install GNU coreutils to get an 'rm' implementation 3151that behaves properly: <https://www.gnu.org/software/coreutils/>. 3152 3153If you want to complete the configuration process using your problematic 3154'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3155to "yes", and re-run configure. 3156 3157END 3158 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3159 fi 3160fi 3161 3162 3163 3164 3165 3166 3167 3168 if test -n "$PYTHON"; then 3169 # If the user set $PYTHON, use it and don't search something else. 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5 3171$as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; } 3172 prog="import sys 3173# split strings by '.' and convert to numeric. Append some zeros 3174# because we need at least 4 digits for the hex conversion. 3175# map returns an iterator in Python 3.0 and a list in 2.x 3176minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3177minverhex = 0 3178# xrange is not present in Python 3.0 and range returns an iterator 3179for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3180sys.exit(sys.hexversion < minverhex)" 3181 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 3182 ($PYTHON -c "$prog") >&5 2>&5 3183 ac_status=$? 3184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3185 (exit $ac_status); }; then : 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3187$as_echo "yes" >&6; } 3188else 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190$as_echo "no" >&6; } 3191 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 3192fi 3193 am_display_PYTHON=$PYTHON 3194 else 3195 # Otherwise, try each interpreter until we find one that satisfies 3196 # VERSION. 3197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5 3198$as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; } 3199if ${am_cv_pathless_PYTHON+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 3203 for am_cv_pathless_PYTHON in python python2 python3 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do 3204 test "$am_cv_pathless_PYTHON" = none && break 3205 prog="import sys 3206# split strings by '.' and convert to numeric. Append some zeros 3207# because we need at least 4 digits for the hex conversion. 3208# map returns an iterator in Python 3.0 and a list in 2.x 3209minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0] 3210minverhex = 0 3211# xrange is not present in Python 3.0 and range returns an iterator 3212for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3213sys.exit(sys.hexversion < minverhex)" 3214 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 3215 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 3216 ac_status=$? 3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3218 (exit $ac_status); }; then : 3219 break 3220fi 3221 done 3222fi 3223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 3224$as_echo "$am_cv_pathless_PYTHON" >&6; } 3225 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. 3226 if test "$am_cv_pathless_PYTHON" = none; then 3227 PYTHON=: 3228 else 3229 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. 3230set dummy $am_cv_pathless_PYTHON; ac_word=$2 3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3232$as_echo_n "checking for $ac_word... " >&6; } 3233if ${ac_cv_path_PYTHON+:} false; then : 3234 $as_echo_n "(cached) " >&6 3235else 3236 case $PYTHON in 3237 [\\/]* | ?:[\\/]*) 3238 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 3239 ;; 3240 *) 3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3242for as_dir in $PATH 3243do 3244 IFS=$as_save_IFS 3245 test -z "$as_dir" && as_dir=. 3246 for ac_exec_ext in '' $ac_executable_extensions; do 3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3248 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3250 break 2 3251 fi 3252done 3253 done 3254IFS=$as_save_IFS 3255 3256 ;; 3257esac 3258fi 3259PYTHON=$ac_cv_path_PYTHON 3260if test -n "$PYTHON"; then 3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3262$as_echo "$PYTHON" >&6; } 3263else 3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3265$as_echo "no" >&6; } 3266fi 3267 3268 3269 fi 3270 am_display_PYTHON=$am_cv_pathless_PYTHON 3271 fi 3272 3273 3274 if test "$PYTHON" = :; then 3275 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 3276 else 3277 3278 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 3280$as_echo_n "checking for $am_display_PYTHON version... " >&6; } 3281if ${am_cv_python_version+:} false; then : 3282 $as_echo_n "(cached) " >&6 3283else 3284 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"` 3285fi 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 3287$as_echo "$am_cv_python_version" >&6; } 3288 PYTHON_VERSION=$am_cv_python_version 3289 3290 3291 3292 PYTHON_PREFIX='${prefix}' 3293 3294 PYTHON_EXEC_PREFIX='${exec_prefix}' 3295 3296 3297 3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 3299$as_echo_n "checking for $am_display_PYTHON platform... " >&6; } 3300if ${am_cv_python_platform+:} false; then : 3301 $as_echo_n "(cached) " >&6 3302else 3303 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` 3304fi 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 3306$as_echo "$am_cv_python_platform" >&6; } 3307 PYTHON_PLATFORM=$am_cv_python_platform 3308 3309 3310 # Just factor out some code duplication. 3311 am_python_setup_sysconfig="\ 3312import sys 3313# Prefer sysconfig over distutils.sysconfig, for better compatibility 3314# with python 3.x. See automake bug#10227. 3315try: 3316 import sysconfig 3317except ImportError: 3318 can_use_sysconfig = 0 3319else: 3320 can_use_sysconfig = 1 3321# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: 3322# <https://github.com/pypa/virtualenv/issues/118> 3323try: 3324 from platform import python_implementation 3325 if python_implementation() == 'CPython' and sys.version[:3] == '2.7': 3326 can_use_sysconfig = 0 3327except ImportError: 3328 pass" 3329 3330 3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5 3332$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; } 3333if ${am_cv_python_pythondir+:} false; then : 3334 $as_echo_n "(cached) " >&6 3335else 3336 if test "x$prefix" = xNONE 3337 then 3338 am_py_prefix=$ac_default_prefix 3339 else 3340 am_py_prefix=$prefix 3341 fi 3342 am_cv_python_pythondir=`$PYTHON -c " 3343$am_python_setup_sysconfig 3344if can_use_sysconfig: 3345 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) 3346else: 3347 from distutils import sysconfig 3348 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') 3349sys.stdout.write(sitedir)"` 3350 case $am_cv_python_pythondir in 3351 $am_py_prefix*) 3352 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` 3353 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"` 3354 ;; 3355 *) 3356 case $am_py_prefix in 3357 /usr|/System*) ;; 3358 *) 3359 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages 3360 ;; 3361 esac 3362 ;; 3363 esac 3364 3365fi 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 3367$as_echo "$am_cv_python_pythondir" >&6; } 3368 pythondir=$am_cv_python_pythondir 3369 3370 3371 3372 pkgpythondir=\${pythondir}/$PACKAGE 3373 3374 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5 3376$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; } 3377if ${am_cv_python_pyexecdir+:} false; then : 3378 $as_echo_n "(cached) " >&6 3379else 3380 if test "x$exec_prefix" = xNONE 3381 then 3382 am_py_exec_prefix=$am_py_prefix 3383 else 3384 am_py_exec_prefix=$exec_prefix 3385 fi 3386 am_cv_python_pyexecdir=`$PYTHON -c " 3387$am_python_setup_sysconfig 3388if can_use_sysconfig: 3389 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'}) 3390else: 3391 from distutils import sysconfig 3392 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix') 3393sys.stdout.write(sitedir)"` 3394 case $am_cv_python_pyexecdir in 3395 $am_py_exec_prefix*) 3396 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` 3397 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"` 3398 ;; 3399 *) 3400 case $am_py_exec_prefix in 3401 /usr|/System*) ;; 3402 *) 3403 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages 3404 ;; 3405 esac 3406 ;; 3407 esac 3408 3409fi 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 3411$as_echo "$am_cv_python_pyexecdir" >&6; } 3412 pyexecdir=$am_cv_python_pyexecdir 3413 3414 3415 3416 pkgpyexecdir=\${pyexecdir}/$PACKAGE 3417 3418 3419 3420 fi 3421 3422 3423 3424# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3425# Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL) 3426# to avoid autoconf errors. 3427DEPDIR="${am__leading_dot}deps" 3428 3429ac_config_commands="$ac_config_commands depfiles" 3430 3431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3432$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3433cat > confinc.mk << 'END' 3434am__doit: 3435 @echo this is the am__doit target >confinc.out 3436.PHONY: am__doit 3437END 3438am__include="#" 3439am__quote= 3440# BSD make does it like this. 3441echo '.include "confinc.mk" # ignored' > confmf.BSD 3442# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3443echo 'include confinc.mk # ignored' > confmf.GNU 3444_am_result=no 3445for s in GNU BSD; do 3446 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3447 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3448 ac_status=$? 3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3450 (exit $ac_status); } 3451 case $?:`cat confinc.out 2>/dev/null` in #( 3452 '0:this is the am__doit target') : 3453 case $s in #( 3454 BSD) : 3455 am__include='.include' am__quote='"' ;; #( 3456 *) : 3457 am__include='include' am__quote='' ;; 3458esac ;; #( 3459 *) : 3460 ;; 3461esac 3462 if test "$am__include" != "#"; then 3463 _am_result="yes ($s style)" 3464 break 3465 fi 3466done 3467rm -f confinc.* confmf.* 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3469$as_echo "${_am_result}" >&6; } 3470 3471# Check whether --enable-dependency-tracking was given. 3472if test "${enable_dependency_tracking+set}" = set; then : 3473 enableval=$enable_dependency_tracking; 3474fi 3475 3476if test "x$enable_dependency_tracking" != xno; then 3477 am_depcomp="$ac_aux_dir/depcomp" 3478 AMDEPBACKSLASH='\' 3479 am__nodep='_no' 3480fi 3481 if test "x$enable_dependency_tracking" != xno; then 3482 AMDEP_TRUE= 3483 AMDEP_FALSE='#' 3484else 3485 AMDEP_TRUE='#' 3486 AMDEP_FALSE= 3487fi 3488 3489 3490ac_ext=c 3491ac_cpp='$CPP $CPPFLAGS' 3492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3494ac_compiler_gnu=$ac_cv_c_compiler_gnu 3495if test -n "$ac_tool_prefix"; then 3496 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3497set dummy ${ac_tool_prefix}gcc; ac_word=$2 3498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3499$as_echo_n "checking for $ac_word... " >&6; } 3500if ${ac_cv_prog_CC+:} false; then : 3501 $as_echo_n "(cached) " >&6 3502else 3503 if test -n "$CC"; then 3504 ac_cv_prog_CC="$CC" # Let the user override the test. 3505else 3506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3507for as_dir in $PATH 3508do 3509 IFS=$as_save_IFS 3510 test -z "$as_dir" && as_dir=. 3511 for ac_exec_ext in '' $ac_executable_extensions; do 3512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3513 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3515 break 2 3516 fi 3517done 3518 done 3519IFS=$as_save_IFS 3520 3521fi 3522fi 3523CC=$ac_cv_prog_CC 3524if test -n "$CC"; then 3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3526$as_echo "$CC" >&6; } 3527else 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3529$as_echo "no" >&6; } 3530fi 3531 3532 3533fi 3534if test -z "$ac_cv_prog_CC"; then 3535 ac_ct_CC=$CC 3536 # Extract the first word of "gcc", so it can be a program name with args. 3537set dummy gcc; ac_word=$2 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539$as_echo_n "checking for $ac_word... " >&6; } 3540if ${ac_cv_prog_ac_ct_CC+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 if test -n "$ac_ct_CC"; then 3544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3545else 3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3547for as_dir in $PATH 3548do 3549 IFS=$as_save_IFS 3550 test -z "$as_dir" && as_dir=. 3551 for ac_exec_ext in '' $ac_executable_extensions; do 3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3553 ac_cv_prog_ac_ct_CC="gcc" 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3555 break 2 3556 fi 3557done 3558 done 3559IFS=$as_save_IFS 3560 3561fi 3562fi 3563ac_ct_CC=$ac_cv_prog_ac_ct_CC 3564if test -n "$ac_ct_CC"; then 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3566$as_echo "$ac_ct_CC" >&6; } 3567else 3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3569$as_echo "no" >&6; } 3570fi 3571 3572 if test "x$ac_ct_CC" = x; then 3573 CC="" 3574 else 3575 case $cross_compiling:$ac_tool_warned in 3576yes:) 3577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3579ac_tool_warned=yes ;; 3580esac 3581 CC=$ac_ct_CC 3582 fi 3583else 3584 CC="$ac_cv_prog_CC" 3585fi 3586 3587if test -z "$CC"; then 3588 if test -n "$ac_tool_prefix"; then 3589 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3590set dummy ${ac_tool_prefix}cc; ac_word=$2 3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3592$as_echo_n "checking for $ac_word... " >&6; } 3593if ${ac_cv_prog_CC+:} false; then : 3594 $as_echo_n "(cached) " >&6 3595else 3596 if test -n "$CC"; then 3597 ac_cv_prog_CC="$CC" # Let the user override the test. 3598else 3599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3600for as_dir in $PATH 3601do 3602 IFS=$as_save_IFS 3603 test -z "$as_dir" && as_dir=. 3604 for ac_exec_ext in '' $ac_executable_extensions; do 3605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3606 ac_cv_prog_CC="${ac_tool_prefix}cc" 3607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3608 break 2 3609 fi 3610done 3611 done 3612IFS=$as_save_IFS 3613 3614fi 3615fi 3616CC=$ac_cv_prog_CC 3617if test -n "$CC"; then 3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3619$as_echo "$CC" >&6; } 3620else 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3622$as_echo "no" >&6; } 3623fi 3624 3625 3626 fi 3627fi 3628if test -z "$CC"; then 3629 # Extract the first word of "cc", so it can be a program name with args. 3630set dummy cc; ac_word=$2 3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3632$as_echo_n "checking for $ac_word... " >&6; } 3633if ${ac_cv_prog_CC+:} false; then : 3634 $as_echo_n "(cached) " >&6 3635else 3636 if test -n "$CC"; then 3637 ac_cv_prog_CC="$CC" # Let the user override the test. 3638else 3639 ac_prog_rejected=no 3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3641for as_dir in $PATH 3642do 3643 IFS=$as_save_IFS 3644 test -z "$as_dir" && as_dir=. 3645 for ac_exec_ext in '' $ac_executable_extensions; do 3646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3647 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3648 ac_prog_rejected=yes 3649 continue 3650 fi 3651 ac_cv_prog_CC="cc" 3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3653 break 2 3654 fi 3655done 3656 done 3657IFS=$as_save_IFS 3658 3659if test $ac_prog_rejected = yes; then 3660 # We found a bogon in the path, so make sure we never use it. 3661 set dummy $ac_cv_prog_CC 3662 shift 3663 if test $# != 0; then 3664 # We chose a different compiler from the bogus one. 3665 # However, it has the same basename, so the bogon will be chosen 3666 # first if we set CC to just the basename; use the full file name. 3667 shift 3668 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3669 fi 3670fi 3671fi 3672fi 3673CC=$ac_cv_prog_CC 3674if test -n "$CC"; then 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3676$as_echo "$CC" >&6; } 3677else 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3679$as_echo "no" >&6; } 3680fi 3681 3682 3683fi 3684if test -z "$CC"; then 3685 if test -n "$ac_tool_prefix"; then 3686 for ac_prog in cl.exe 3687 do 3688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3689set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3691$as_echo_n "checking for $ac_word... " >&6; } 3692if ${ac_cv_prog_CC+:} false; then : 3693 $as_echo_n "(cached) " >&6 3694else 3695 if test -n "$CC"; then 3696 ac_cv_prog_CC="$CC" # Let the user override the test. 3697else 3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3699for as_dir in $PATH 3700do 3701 IFS=$as_save_IFS 3702 test -z "$as_dir" && as_dir=. 3703 for ac_exec_ext in '' $ac_executable_extensions; do 3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3705 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3707 break 2 3708 fi 3709done 3710 done 3711IFS=$as_save_IFS 3712 3713fi 3714fi 3715CC=$ac_cv_prog_CC 3716if test -n "$CC"; then 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3718$as_echo "$CC" >&6; } 3719else 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3721$as_echo "no" >&6; } 3722fi 3723 3724 3725 test -n "$CC" && break 3726 done 3727fi 3728if test -z "$CC"; then 3729 ac_ct_CC=$CC 3730 for ac_prog in cl.exe 3731do 3732 # Extract the first word of "$ac_prog", so it can be a program name with args. 3733set dummy $ac_prog; ac_word=$2 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3735$as_echo_n "checking for $ac_word... " >&6; } 3736if ${ac_cv_prog_ac_ct_CC+:} false; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 if test -n "$ac_ct_CC"; then 3740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3741else 3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743for as_dir in $PATH 3744do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3749 ac_cv_prog_ac_ct_CC="$ac_prog" 3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3751 break 2 3752 fi 3753done 3754 done 3755IFS=$as_save_IFS 3756 3757fi 3758fi 3759ac_ct_CC=$ac_cv_prog_ac_ct_CC 3760if test -n "$ac_ct_CC"; then 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3762$as_echo "$ac_ct_CC" >&6; } 3763else 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765$as_echo "no" >&6; } 3766fi 3767 3768 3769 test -n "$ac_ct_CC" && break 3770done 3771 3772 if test "x$ac_ct_CC" = x; then 3773 CC="" 3774 else 3775 case $cross_compiling:$ac_tool_warned in 3776yes:) 3777{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3778$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3779ac_tool_warned=yes ;; 3780esac 3781 CC=$ac_ct_CC 3782 fi 3783fi 3784 3785fi 3786 3787 3788test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3790as_fn_error $? "no acceptable C compiler found in \$PATH 3791See \`config.log' for more details" "$LINENO" 5; } 3792 3793# Provide some information about the compiler. 3794$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3795set X $ac_compile 3796ac_compiler=$2 3797for ac_option in --version -v -V -qversion; do 3798 { { ac_try="$ac_compiler $ac_option >&5" 3799case "(($ac_try" in 3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3801 *) ac_try_echo=$ac_try;; 3802esac 3803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3804$as_echo "$ac_try_echo"; } >&5 3805 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3806 ac_status=$? 3807 if test -s conftest.err; then 3808 sed '10a\ 3809... rest of stderr output deleted ... 3810 10q' conftest.err >conftest.er1 3811 cat conftest.er1 >&5 3812 fi 3813 rm -f conftest.er1 conftest.err 3814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3815 test $ac_status = 0; } 3816done 3817 3818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3819/* end confdefs.h. */ 3820 3821int 3822main () 3823{ 3824 3825 ; 3826 return 0; 3827} 3828_ACEOF 3829ac_clean_files_save=$ac_clean_files 3830ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3831# Try to create an executable without -o first, disregard a.out. 3832# It will help us diagnose broken compilers, and finding out an intuition 3833# of exeext. 3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3835$as_echo_n "checking whether the C compiler works... " >&6; } 3836ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3837 3838# The possible output files: 3839ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3840 3841ac_rmfiles= 3842for ac_file in $ac_files 3843do 3844 case $ac_file in 3845 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3846 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3847 esac 3848done 3849rm -f $ac_rmfiles 3850 3851if { { ac_try="$ac_link_default" 3852case "(($ac_try" in 3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3854 *) ac_try_echo=$ac_try;; 3855esac 3856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3857$as_echo "$ac_try_echo"; } >&5 3858 (eval "$ac_link_default") 2>&5 3859 ac_status=$? 3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3861 test $ac_status = 0; }; then : 3862 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3863# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3864# in a Makefile. We should not override ac_cv_exeext if it was cached, 3865# so that the user can short-circuit this test for compilers unknown to 3866# Autoconf. 3867for ac_file in $ac_files '' 3868do 3869 test -f "$ac_file" || continue 3870 case $ac_file in 3871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3872 ;; 3873 [ab].out ) 3874 # We found the default executable, but exeext='' is most 3875 # certainly right. 3876 break;; 3877 *.* ) 3878 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3879 then :; else 3880 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3881 fi 3882 # We set ac_cv_exeext here because the later test for it is not 3883 # safe: cross compilers may not add the suffix if given an `-o' 3884 # argument, so we may need to know it at that point already. 3885 # Even if this section looks crufty: it has the advantage of 3886 # actually working. 3887 break;; 3888 * ) 3889 break;; 3890 esac 3891done 3892test "$ac_cv_exeext" = no && ac_cv_exeext= 3893 3894else 3895 ac_file='' 3896fi 3897if test -z "$ac_file"; then : 3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3899$as_echo "no" >&6; } 3900$as_echo "$as_me: failed program was:" >&5 3901sed 's/^/| /' conftest.$ac_ext >&5 3902 3903{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3904$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3905as_fn_error 77 "C compiler cannot create executables 3906See \`config.log' for more details" "$LINENO" 5; } 3907else 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3909$as_echo "yes" >&6; } 3910fi 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3912$as_echo_n "checking for C compiler default output file name... " >&6; } 3913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3914$as_echo "$ac_file" >&6; } 3915ac_exeext=$ac_cv_exeext 3916 3917rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3918ac_clean_files=$ac_clean_files_save 3919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3920$as_echo_n "checking for suffix of executables... " >&6; } 3921if { { ac_try="$ac_link" 3922case "(($ac_try" in 3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3924 *) ac_try_echo=$ac_try;; 3925esac 3926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3927$as_echo "$ac_try_echo"; } >&5 3928 (eval "$ac_link") 2>&5 3929 ac_status=$? 3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3931 test $ac_status = 0; }; then : 3932 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3933# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3934# work properly (i.e., refer to `conftest.exe'), while it won't with 3935# `rm'. 3936for ac_file in conftest.exe conftest conftest.*; do 3937 test -f "$ac_file" || continue 3938 case $ac_file in 3939 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3940 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3941 break;; 3942 * ) break;; 3943 esac 3944done 3945else 3946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3947$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3948as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3949See \`config.log' for more details" "$LINENO" 5; } 3950fi 3951rm -f conftest conftest$ac_cv_exeext 3952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3953$as_echo "$ac_cv_exeext" >&6; } 3954 3955rm -f conftest.$ac_ext 3956EXEEXT=$ac_cv_exeext 3957ac_exeext=$EXEEXT 3958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3959/* end confdefs.h. */ 3960#include <stdio.h> 3961int 3962main () 3963{ 3964FILE *f = fopen ("conftest.out", "w"); 3965 return ferror (f) || fclose (f) != 0; 3966 3967 ; 3968 return 0; 3969} 3970_ACEOF 3971ac_clean_files="$ac_clean_files conftest.out" 3972# Check that the compiler produces executables we can run. If not, either 3973# the compiler is broken, or we cross compile. 3974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3975$as_echo_n "checking whether we are cross compiling... " >&6; } 3976if test "$cross_compiling" != yes; then 3977 { { ac_try="$ac_link" 3978case "(($ac_try" in 3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3980 *) ac_try_echo=$ac_try;; 3981esac 3982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3983$as_echo "$ac_try_echo"; } >&5 3984 (eval "$ac_link") 2>&5 3985 ac_status=$? 3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3987 test $ac_status = 0; } 3988 if { ac_try='./conftest$ac_cv_exeext' 3989 { { case "(($ac_try" in 3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3991 *) ac_try_echo=$ac_try;; 3992esac 3993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3994$as_echo "$ac_try_echo"; } >&5 3995 (eval "$ac_try") 2>&5 3996 ac_status=$? 3997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3998 test $ac_status = 0; }; }; then 3999 cross_compiling=no 4000 else 4001 if test "$cross_compiling" = maybe; then 4002 cross_compiling=yes 4003 else 4004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4006as_fn_error $? "cannot run C compiled programs. 4007If you meant to cross compile, use \`--host'. 4008See \`config.log' for more details" "$LINENO" 5; } 4009 fi 4010 fi 4011fi 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4013$as_echo "$cross_compiling" >&6; } 4014 4015rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4016ac_clean_files=$ac_clean_files_save 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4018$as_echo_n "checking for suffix of object files... " >&6; } 4019if ${ac_cv_objext+:} false; then : 4020 $as_echo_n "(cached) " >&6 4021else 4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4023/* end confdefs.h. */ 4024 4025int 4026main () 4027{ 4028 4029 ; 4030 return 0; 4031} 4032_ACEOF 4033rm -f conftest.o conftest.obj 4034if { { ac_try="$ac_compile" 4035case "(($ac_try" in 4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4037 *) ac_try_echo=$ac_try;; 4038esac 4039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4040$as_echo "$ac_try_echo"; } >&5 4041 (eval "$ac_compile") 2>&5 4042 ac_status=$? 4043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4044 test $ac_status = 0; }; then : 4045 for ac_file in conftest.o conftest.obj conftest.*; do 4046 test -f "$ac_file" || continue; 4047 case $ac_file in 4048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4049 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4050 break;; 4051 esac 4052done 4053else 4054 $as_echo "$as_me: failed program was:" >&5 4055sed 's/^/| /' conftest.$ac_ext >&5 4056 4057{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4058$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4059as_fn_error $? "cannot compute suffix of object files: cannot compile 4060See \`config.log' for more details" "$LINENO" 5; } 4061fi 4062rm -f conftest.$ac_cv_objext conftest.$ac_ext 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4065$as_echo "$ac_cv_objext" >&6; } 4066OBJEXT=$ac_cv_objext 4067ac_objext=$OBJEXT 4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4069$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4070if ${ac_cv_c_compiler_gnu+:} false; then : 4071 $as_echo_n "(cached) " >&6 4072else 4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4074/* end confdefs.h. */ 4075 4076int 4077main () 4078{ 4079#ifndef __GNUC__ 4080 choke me 4081#endif 4082 4083 ; 4084 return 0; 4085} 4086_ACEOF 4087if ac_fn_c_try_compile "$LINENO"; then : 4088 ac_compiler_gnu=yes 4089else 4090 ac_compiler_gnu=no 4091fi 4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4093ac_cv_c_compiler_gnu=$ac_compiler_gnu 4094 4095fi 4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4097$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4098if test $ac_compiler_gnu = yes; then 4099 GCC=yes 4100else 4101 GCC= 4102fi 4103ac_test_CFLAGS=${CFLAGS+set} 4104ac_save_CFLAGS=$CFLAGS 4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4106$as_echo_n "checking whether $CC accepts -g... " >&6; } 4107if ${ac_cv_prog_cc_g+:} false; then : 4108 $as_echo_n "(cached) " >&6 4109else 4110 ac_save_c_werror_flag=$ac_c_werror_flag 4111 ac_c_werror_flag=yes 4112 ac_cv_prog_cc_g=no 4113 CFLAGS="-g" 4114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4115/* end confdefs.h. */ 4116 4117int 4118main () 4119{ 4120 4121 ; 4122 return 0; 4123} 4124_ACEOF 4125if ac_fn_c_try_compile "$LINENO"; then : 4126 ac_cv_prog_cc_g=yes 4127else 4128 CFLAGS="" 4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4130/* end confdefs.h. */ 4131 4132int 4133main () 4134{ 4135 4136 ; 4137 return 0; 4138} 4139_ACEOF 4140if ac_fn_c_try_compile "$LINENO"; then : 4141 4142else 4143 ac_c_werror_flag=$ac_save_c_werror_flag 4144 CFLAGS="-g" 4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4146/* end confdefs.h. */ 4147 4148int 4149main () 4150{ 4151 4152 ; 4153 return 0; 4154} 4155_ACEOF 4156if ac_fn_c_try_compile "$LINENO"; then : 4157 ac_cv_prog_cc_g=yes 4158fi 4159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4160fi 4161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4162fi 4163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4164 ac_c_werror_flag=$ac_save_c_werror_flag 4165fi 4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4167$as_echo "$ac_cv_prog_cc_g" >&6; } 4168if test "$ac_test_CFLAGS" = set; then 4169 CFLAGS=$ac_save_CFLAGS 4170elif test $ac_cv_prog_cc_g = yes; then 4171 if test "$GCC" = yes; then 4172 CFLAGS="-g -O2" 4173 else 4174 CFLAGS="-g" 4175 fi 4176else 4177 if test "$GCC" = yes; then 4178 CFLAGS="-O2" 4179 else 4180 CFLAGS= 4181 fi 4182fi 4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4184$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4185if ${ac_cv_prog_cc_c89+:} false; then : 4186 $as_echo_n "(cached) " >&6 4187else 4188 ac_cv_prog_cc_c89=no 4189ac_save_CC=$CC 4190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4191/* end confdefs.h. */ 4192#include <stdarg.h> 4193#include <stdio.h> 4194struct stat; 4195/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4196struct buf { int x; }; 4197FILE * (*rcsopen) (struct buf *, struct stat *, int); 4198static char *e (p, i) 4199 char **p; 4200 int i; 4201{ 4202 return p[i]; 4203} 4204static char *f (char * (*g) (char **, int), char **p, ...) 4205{ 4206 char *s; 4207 va_list v; 4208 va_start (v,p); 4209 s = g (p, va_arg (v,int)); 4210 va_end (v); 4211 return s; 4212} 4213 4214/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4215 function prototypes and stuff, but not '\xHH' hex character constants. 4216 These don't provoke an error unfortunately, instead are silently treated 4217 as 'x'. The following induces an error, until -std is added to get 4218 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4219 array size at least. It's necessary to write '\x00'==0 to get something 4220 that's true only with -std. */ 4221int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4222 4223/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4224 inside strings and character constants. */ 4225#define FOO(x) 'x' 4226int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4227 4228int test (int i, double x); 4229struct s1 {int (*f) (int a);}; 4230struct s2 {int (*f) (double a);}; 4231int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4232int argc; 4233char **argv; 4234int 4235main () 4236{ 4237return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4238 ; 4239 return 0; 4240} 4241_ACEOF 4242for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4243 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4244do 4245 CC="$ac_save_CC $ac_arg" 4246 if ac_fn_c_try_compile "$LINENO"; then : 4247 ac_cv_prog_cc_c89=$ac_arg 4248fi 4249rm -f core conftest.err conftest.$ac_objext 4250 test "x$ac_cv_prog_cc_c89" != "xno" && break 4251done 4252rm -f conftest.$ac_ext 4253CC=$ac_save_CC 4254 4255fi 4256# AC_CACHE_VAL 4257case "x$ac_cv_prog_cc_c89" in 4258 x) 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4260$as_echo "none needed" >&6; } ;; 4261 xno) 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4263$as_echo "unsupported" >&6; } ;; 4264 *) 4265 CC="$CC $ac_cv_prog_cc_c89" 4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4267$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4268esac 4269if test "x$ac_cv_prog_cc_c89" != xno; then : 4270 4271fi 4272 4273ac_ext=c 4274ac_cpp='$CPP $CPPFLAGS' 4275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4277ac_compiler_gnu=$ac_cv_c_compiler_gnu 4278 4279ac_ext=c 4280ac_cpp='$CPP $CPPFLAGS' 4281ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4282ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4283ac_compiler_gnu=$ac_cv_c_compiler_gnu 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4285$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4286if ${am_cv_prog_cc_c_o+:} false; then : 4287 $as_echo_n "(cached) " >&6 4288else 4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4290/* end confdefs.h. */ 4291 4292int 4293main () 4294{ 4295 4296 ; 4297 return 0; 4298} 4299_ACEOF 4300 # Make sure it works both with $CC and with simple cc. 4301 # Following AC_PROG_CC_C_O, we do the test twice because some 4302 # compilers refuse to overwrite an existing .o file with -o, 4303 # though they will create one. 4304 am_cv_prog_cc_c_o=yes 4305 for am_i in 1 2; do 4306 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4307 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4308 ac_status=$? 4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4310 (exit $ac_status); } \ 4311 && test -f conftest2.$ac_objext; then 4312 : OK 4313 else 4314 am_cv_prog_cc_c_o=no 4315 break 4316 fi 4317 done 4318 rm -f core conftest* 4319 unset am_i 4320fi 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4322$as_echo "$am_cv_prog_cc_c_o" >&6; } 4323if test "$am_cv_prog_cc_c_o" != yes; then 4324 # Losing compiler, so override with the script. 4325 # FIXME: It is wrong to rewrite CC. 4326 # But if we don't then we get into trouble of one sort or another. 4327 # A longer-term fix would be to have automake use am__CC in this case, 4328 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4329 CC="$am_aux_dir/compile $CC" 4330fi 4331ac_ext=c 4332ac_cpp='$CPP $CPPFLAGS' 4333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4335ac_compiler_gnu=$ac_cv_c_compiler_gnu 4336 4337 4338depcc="$CC" am_compiler_list= 4339 4340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4341$as_echo_n "checking dependency style of $depcc... " >&6; } 4342if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344else 4345 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4346 # We make a subdir and do the tests there. Otherwise we can end up 4347 # making bogus files that we don't know about and never remove. For 4348 # instance it was reported that on HP-UX the gcc test will end up 4349 # making a dummy file named 'D' -- because '-MD' means "put the output 4350 # in D". 4351 rm -rf conftest.dir 4352 mkdir conftest.dir 4353 # Copy depcomp to subdir because otherwise we won't find it if we're 4354 # using a relative directory. 4355 cp "$am_depcomp" conftest.dir 4356 cd conftest.dir 4357 # We will build objects and dependencies in a subdirectory because 4358 # it helps to detect inapplicable dependency modes. For instance 4359 # both Tru64's cc and ICC support -MD to output dependencies as a 4360 # side effect of compilation, but ICC will put the dependencies in 4361 # the current directory while Tru64 will put them in the object 4362 # directory. 4363 mkdir sub 4364 4365 am_cv_CC_dependencies_compiler_type=none 4366 if test "$am_compiler_list" = ""; then 4367 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4368 fi 4369 am__universal=false 4370 case " $depcc " in #( 4371 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4372 esac 4373 4374 for depmode in $am_compiler_list; do 4375 # Setup a source with many dependencies, because some compilers 4376 # like to wrap large dependency lists on column 80 (with \), and 4377 # we should not choose a depcomp mode which is confused by this. 4378 # 4379 # We need to recreate these files for each test, as the compiler may 4380 # overwrite some of them when testing with obscure command lines. 4381 # This happens at least with the AIX C compiler. 4382 : > sub/conftest.c 4383 for i in 1 2 3 4 5 6; do 4384 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4385 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4386 # Solaris 10 /bin/sh. 4387 echo '/* dummy */' > sub/conftst$i.h 4388 done 4389 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4390 4391 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4392 # mode. It turns out that the SunPro C++ compiler does not properly 4393 # handle '-M -o', and we need to detect this. Also, some Intel 4394 # versions had trouble with output in subdirs. 4395 am__obj=sub/conftest.${OBJEXT-o} 4396 am__minus_obj="-o $am__obj" 4397 case $depmode in 4398 gcc) 4399 # This depmode causes a compiler race in universal mode. 4400 test "$am__universal" = false || continue 4401 ;; 4402 nosideeffect) 4403 # After this tag, mechanisms are not by side-effect, so they'll 4404 # only be used when explicitly requested. 4405 if test "x$enable_dependency_tracking" = xyes; then 4406 continue 4407 else 4408 break 4409 fi 4410 ;; 4411 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4412 # This compiler won't grok '-c -o', but also, the minuso test has 4413 # not run yet. These depmodes are late enough in the game, and 4414 # so weak that their functioning should not be impacted. 4415 am__obj=conftest.${OBJEXT-o} 4416 am__minus_obj= 4417 ;; 4418 none) break ;; 4419 esac 4420 if depmode=$depmode \ 4421 source=sub/conftest.c object=$am__obj \ 4422 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4423 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4424 >/dev/null 2>conftest.err && 4425 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4426 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4427 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4428 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4429 # icc doesn't choke on unknown options, it will just issue warnings 4430 # or remarks (even with -Werror). So we grep stderr for any message 4431 # that says an option was ignored or not supported. 4432 # When given -MP, icc 7.0 and 7.1 complain thusly: 4433 # icc: Command line warning: ignoring option '-M'; no argument required 4434 # The diagnosis changed in icc 8.0: 4435 # icc: Command line remark: option '-MP' not supported 4436 if (grep 'ignoring option' conftest.err || 4437 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4438 am_cv_CC_dependencies_compiler_type=$depmode 4439 break 4440 fi 4441 fi 4442 done 4443 4444 cd .. 4445 rm -rf conftest.dir 4446else 4447 am_cv_CC_dependencies_compiler_type=none 4448fi 4449 4450fi 4451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4452$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4453CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4454 4455 if 4456 test "x$enable_dependency_tracking" != xno \ 4457 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4458 am__fastdepCC_TRUE= 4459 am__fastdepCC_FALSE='#' 4460else 4461 am__fastdepCC_TRUE='#' 4462 am__fastdepCC_FALSE= 4463fi 4464 4465 4466 4467ac_ext=c 4468ac_cpp='$CPP $CPPFLAGS' 4469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4471ac_compiler_gnu=$ac_cv_c_compiler_gnu 4472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4473$as_echo_n "checking how to run the C preprocessor... " >&6; } 4474# On Suns, sometimes $CPP names a directory. 4475if test -n "$CPP" && test -d "$CPP"; then 4476 CPP= 4477fi 4478if test -z "$CPP"; then 4479 if ${ac_cv_prog_CPP+:} false; then : 4480 $as_echo_n "(cached) " >&6 4481else 4482 # Double quotes because CPP needs to be expanded 4483 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4484 do 4485 ac_preproc_ok=false 4486for ac_c_preproc_warn_flag in '' yes 4487do 4488 # Use a header file that comes with gcc, so configuring glibc 4489 # with a fresh cross-compiler works. 4490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4491 # <limits.h> exists even on freestanding compilers. 4492 # On the NeXT, cc -E runs the code through the compiler's parser, 4493 # not just through cpp. "Syntax error" is here to catch this case. 4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4495/* end confdefs.h. */ 4496#ifdef __STDC__ 4497# include <limits.h> 4498#else 4499# include <assert.h> 4500#endif 4501 Syntax error 4502_ACEOF 4503if ac_fn_c_try_cpp "$LINENO"; then : 4504 4505else 4506 # Broken: fails on valid input. 4507continue 4508fi 4509rm -f conftest.err conftest.i conftest.$ac_ext 4510 4511 # OK, works on sane cases. Now check whether nonexistent headers 4512 # can be detected and how. 4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4514/* end confdefs.h. */ 4515#include <ac_nonexistent.h> 4516_ACEOF 4517if ac_fn_c_try_cpp "$LINENO"; then : 4518 # Broken: success on invalid input. 4519continue 4520else 4521 # Passes both tests. 4522ac_preproc_ok=: 4523break 4524fi 4525rm -f conftest.err conftest.i conftest.$ac_ext 4526 4527done 4528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4529rm -f conftest.i conftest.err conftest.$ac_ext 4530if $ac_preproc_ok; then : 4531 break 4532fi 4533 4534 done 4535 ac_cv_prog_CPP=$CPP 4536 4537fi 4538 CPP=$ac_cv_prog_CPP 4539else 4540 ac_cv_prog_CPP=$CPP 4541fi 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4543$as_echo "$CPP" >&6; } 4544ac_preproc_ok=false 4545for ac_c_preproc_warn_flag in '' yes 4546do 4547 # Use a header file that comes with gcc, so configuring glibc 4548 # with a fresh cross-compiler works. 4549 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4550 # <limits.h> exists even on freestanding compilers. 4551 # On the NeXT, cc -E runs the code through the compiler's parser, 4552 # not just through cpp. "Syntax error" is here to catch this case. 4553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4554/* end confdefs.h. */ 4555#ifdef __STDC__ 4556# include <limits.h> 4557#else 4558# include <assert.h> 4559#endif 4560 Syntax error 4561_ACEOF 4562if ac_fn_c_try_cpp "$LINENO"; then : 4563 4564else 4565 # Broken: fails on valid input. 4566continue 4567fi 4568rm -f conftest.err conftest.i conftest.$ac_ext 4569 4570 # OK, works on sane cases. Now check whether nonexistent headers 4571 # can be detected and how. 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574#include <ac_nonexistent.h> 4575_ACEOF 4576if ac_fn_c_try_cpp "$LINENO"; then : 4577 # Broken: success on invalid input. 4578continue 4579else 4580 # Passes both tests. 4581ac_preproc_ok=: 4582break 4583fi 4584rm -f conftest.err conftest.i conftest.$ac_ext 4585 4586done 4587# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4588rm -f conftest.i conftest.err conftest.$ac_ext 4589if $ac_preproc_ok; then : 4590 4591else 4592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4594as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4595See \`config.log' for more details" "$LINENO" 5; } 4596fi 4597 4598ac_ext=c 4599ac_cpp='$CPP $CPPFLAGS' 4600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4602ac_compiler_gnu=$ac_cv_c_compiler_gnu 4603 4604 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4606$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4607if ${ac_cv_path_GREP+:} false; then : 4608 $as_echo_n "(cached) " >&6 4609else 4610 if test -z "$GREP"; then 4611 ac_path_GREP_found=false 4612 # Loop through the user's path and test for each of PROGNAME-LIST 4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4614for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4615do 4616 IFS=$as_save_IFS 4617 test -z "$as_dir" && as_dir=. 4618 for ac_prog in grep ggrep; do 4619 for ac_exec_ext in '' $ac_executable_extensions; do 4620 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4621 as_fn_executable_p "$ac_path_GREP" || continue 4622# Check for GNU ac_path_GREP and select it if it is found. 4623 # Check for GNU $ac_path_GREP 4624case `"$ac_path_GREP" --version 2>&1` in 4625*GNU*) 4626 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4627*) 4628 ac_count=0 4629 $as_echo_n 0123456789 >"conftest.in" 4630 while : 4631 do 4632 cat "conftest.in" "conftest.in" >"conftest.tmp" 4633 mv "conftest.tmp" "conftest.in" 4634 cp "conftest.in" "conftest.nl" 4635 $as_echo 'GREP' >> "conftest.nl" 4636 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4637 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4638 as_fn_arith $ac_count + 1 && ac_count=$as_val 4639 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4640 # Best one so far, save it but keep looking for a better one 4641 ac_cv_path_GREP="$ac_path_GREP" 4642 ac_path_GREP_max=$ac_count 4643 fi 4644 # 10*(2^10) chars as input seems more than enough 4645 test $ac_count -gt 10 && break 4646 done 4647 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4648esac 4649 4650 $ac_path_GREP_found && break 3 4651 done 4652 done 4653 done 4654IFS=$as_save_IFS 4655 if test -z "$ac_cv_path_GREP"; then 4656 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4657 fi 4658else 4659 ac_cv_path_GREP=$GREP 4660fi 4661 4662fi 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4664$as_echo "$ac_cv_path_GREP" >&6; } 4665 GREP="$ac_cv_path_GREP" 4666 4667 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4669$as_echo_n "checking for egrep... " >&6; } 4670if ${ac_cv_path_EGREP+:} false; then : 4671 $as_echo_n "(cached) " >&6 4672else 4673 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4674 then ac_cv_path_EGREP="$GREP -E" 4675 else 4676 if test -z "$EGREP"; then 4677 ac_path_EGREP_found=false 4678 # Loop through the user's path and test for each of PROGNAME-LIST 4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4680for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4681do 4682 IFS=$as_save_IFS 4683 test -z "$as_dir" && as_dir=. 4684 for ac_prog in egrep; do 4685 for ac_exec_ext in '' $ac_executable_extensions; do 4686 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4687 as_fn_executable_p "$ac_path_EGREP" || continue 4688# Check for GNU ac_path_EGREP and select it if it is found. 4689 # Check for GNU $ac_path_EGREP 4690case `"$ac_path_EGREP" --version 2>&1` in 4691*GNU*) 4692 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4693*) 4694 ac_count=0 4695 $as_echo_n 0123456789 >"conftest.in" 4696 while : 4697 do 4698 cat "conftest.in" "conftest.in" >"conftest.tmp" 4699 mv "conftest.tmp" "conftest.in" 4700 cp "conftest.in" "conftest.nl" 4701 $as_echo 'EGREP' >> "conftest.nl" 4702 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4703 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4704 as_fn_arith $ac_count + 1 && ac_count=$as_val 4705 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4706 # Best one so far, save it but keep looking for a better one 4707 ac_cv_path_EGREP="$ac_path_EGREP" 4708 ac_path_EGREP_max=$ac_count 4709 fi 4710 # 10*(2^10) chars as input seems more than enough 4711 test $ac_count -gt 10 && break 4712 done 4713 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4714esac 4715 4716 $ac_path_EGREP_found && break 3 4717 done 4718 done 4719 done 4720IFS=$as_save_IFS 4721 if test -z "$ac_cv_path_EGREP"; then 4722 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4723 fi 4724else 4725 ac_cv_path_EGREP=$EGREP 4726fi 4727 4728 fi 4729fi 4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4731$as_echo "$ac_cv_path_EGREP" >&6; } 4732 EGREP="$ac_cv_path_EGREP" 4733 4734 4735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4736$as_echo_n "checking for ANSI C header files... " >&6; } 4737if ${ac_cv_header_stdc+:} false; then : 4738 $as_echo_n "(cached) " >&6 4739else 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4741/* end confdefs.h. */ 4742#include <stdlib.h> 4743#include <stdarg.h> 4744#include <string.h> 4745#include <float.h> 4746 4747int 4748main () 4749{ 4750 4751 ; 4752 return 0; 4753} 4754_ACEOF 4755if ac_fn_c_try_compile "$LINENO"; then : 4756 ac_cv_header_stdc=yes 4757else 4758 ac_cv_header_stdc=no 4759fi 4760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4761 4762if test $ac_cv_header_stdc = yes; then 4763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4765/* end confdefs.h. */ 4766#include <string.h> 4767 4768_ACEOF 4769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4770 $EGREP "memchr" >/dev/null 2>&1; then : 4771 4772else 4773 ac_cv_header_stdc=no 4774fi 4775rm -f conftest* 4776 4777fi 4778 4779if test $ac_cv_header_stdc = yes; then 4780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4782/* end confdefs.h. */ 4783#include <stdlib.h> 4784 4785_ACEOF 4786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4787 $EGREP "free" >/dev/null 2>&1; then : 4788 4789else 4790 ac_cv_header_stdc=no 4791fi 4792rm -f conftest* 4793 4794fi 4795 4796if test $ac_cv_header_stdc = yes; then 4797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4798 if test "$cross_compiling" = yes; then : 4799 : 4800else 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4802/* end confdefs.h. */ 4803#include <ctype.h> 4804#include <stdlib.h> 4805#if ((' ' & 0x0FF) == 0x020) 4806# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4807# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4808#else 4809# define ISLOWER(c) \ 4810 (('a' <= (c) && (c) <= 'i') \ 4811 || ('j' <= (c) && (c) <= 'r') \ 4812 || ('s' <= (c) && (c) <= 'z')) 4813# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4814#endif 4815 4816#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4817int 4818main () 4819{ 4820 int i; 4821 for (i = 0; i < 256; i++) 4822 if (XOR (islower (i), ISLOWER (i)) 4823 || toupper (i) != TOUPPER (i)) 4824 return 2; 4825 return 0; 4826} 4827_ACEOF 4828if ac_fn_c_try_run "$LINENO"; then : 4829 4830else 4831 ac_cv_header_stdc=no 4832fi 4833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4834 conftest.$ac_objext conftest.beam conftest.$ac_ext 4835fi 4836 4837fi 4838fi 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4840$as_echo "$ac_cv_header_stdc" >&6; } 4841if test $ac_cv_header_stdc = yes; then 4842 4843$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4844 4845fi 4846 4847# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4848for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4849 inttypes.h stdint.h unistd.h 4850do : 4851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4852ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4853" 4854if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4855 cat >>confdefs.h <<_ACEOF 4856#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4857_ACEOF 4858 4859fi 4860 4861done 4862 4863 4864 4865 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4866if test "x$ac_cv_header_minix_config_h" = xyes; then : 4867 MINIX=yes 4868else 4869 MINIX= 4870fi 4871 4872 4873 if test "$MINIX" = yes; then 4874 4875$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4876 4877 4878$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4879 4880 4881$as_echo "#define _MINIX 1" >>confdefs.h 4882 4883 fi 4884 4885 4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4887$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4888if ${ac_cv_safe_to_define___extensions__+:} false; then : 4889 $as_echo_n "(cached) " >&6 4890else 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4892/* end confdefs.h. */ 4893 4894# define __EXTENSIONS__ 1 4895 $ac_includes_default 4896int 4897main () 4898{ 4899 4900 ; 4901 return 0; 4902} 4903_ACEOF 4904if ac_fn_c_try_compile "$LINENO"; then : 4905 ac_cv_safe_to_define___extensions__=yes 4906else 4907 ac_cv_safe_to_define___extensions__=no 4908fi 4909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4910fi 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4912$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4913 test $ac_cv_safe_to_define___extensions__ = yes && 4914 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4915 4916 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4917 4918 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4919 4920 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4921 4922 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4923 4924 4925 4926# Initialize libtool 4927 4928case `pwd` in 4929 *\ * | *\ *) 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4931$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4932esac 4933 4934 4935 4936macro_version='2.4.6' 4937macro_revision='2.4.6' 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951ltmain=$ac_aux_dir/ltmain.sh 4952 4953# Make sure we can run config.sub. 4954$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4955 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4956 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4958$as_echo_n "checking build system type... " >&6; } 4959if ${ac_cv_build+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 ac_build_alias=$build_alias 4963test "x$ac_build_alias" = x && 4964 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4965test "x$ac_build_alias" = x && 4966 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4967ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4968 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4969 4970fi 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4972$as_echo "$ac_cv_build" >&6; } 4973case $ac_cv_build in 4974*-*-*) ;; 4975*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4976esac 4977build=$ac_cv_build 4978ac_save_IFS=$IFS; IFS='-' 4979set x $ac_cv_build 4980shift 4981build_cpu=$1 4982build_vendor=$2 4983shift; shift 4984# Remember, the first character of IFS is used to create $*, 4985# except with old shells: 4986build_os=$* 4987IFS=$ac_save_IFS 4988case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4989 4990 4991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4992$as_echo_n "checking host system type... " >&6; } 4993if ${ac_cv_host+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 if test "x$host_alias" = x; then 4997 ac_cv_host=$ac_cv_build 4998else 4999 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5000 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5001fi 5002 5003fi 5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5005$as_echo "$ac_cv_host" >&6; } 5006case $ac_cv_host in 5007*-*-*) ;; 5008*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5009esac 5010host=$ac_cv_host 5011ac_save_IFS=$IFS; IFS='-' 5012set x $ac_cv_host 5013shift 5014host_cpu=$1 5015host_vendor=$2 5016shift; shift 5017# Remember, the first character of IFS is used to create $*, 5018# except with old shells: 5019host_os=$* 5020IFS=$ac_save_IFS 5021case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5022 5023 5024# Backslashify metacharacters that are still active within 5025# double-quoted strings. 5026sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5027 5028# Same as above, but do not quote variable references. 5029double_quote_subst='s/\(["`\\]\)/\\\1/g' 5030 5031# Sed substitution to delay expansion of an escaped shell variable in a 5032# double_quote_subst'ed string. 5033delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5034 5035# Sed substitution to delay expansion of an escaped single quote. 5036delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5037 5038# Sed substitution to avoid accidental globbing in evaled expressions 5039no_glob_subst='s/\*/\\\*/g' 5040 5041ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5042ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5043ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5044 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5046$as_echo_n "checking how to print strings... " >&6; } 5047# Test print first, because it will be a builtin if present. 5048if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5049 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5050 ECHO='print -r --' 5051elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5052 ECHO='printf %s\n' 5053else 5054 # Use this function as a fallback that always works. 5055 func_fallback_echo () 5056 { 5057 eval 'cat <<_LTECHO_EOF 5058$1 5059_LTECHO_EOF' 5060 } 5061 ECHO='func_fallback_echo' 5062fi 5063 5064# func_echo_all arg... 5065# Invoke $ECHO with all args, space-separated. 5066func_echo_all () 5067{ 5068 $ECHO "" 5069} 5070 5071case $ECHO in 5072 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5073$as_echo "printf" >&6; } ;; 5074 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5075$as_echo "print -r" >&6; } ;; 5076 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5077$as_echo "cat" >&6; } ;; 5078esac 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5094$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5095if ${ac_cv_path_SED+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097else 5098 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5099 for ac_i in 1 2 3 4 5 6 7; do 5100 ac_script="$ac_script$as_nl$ac_script" 5101 done 5102 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5103 { ac_script=; unset ac_script;} 5104 if test -z "$SED"; then 5105 ac_path_SED_found=false 5106 # Loop through the user's path and test for each of PROGNAME-LIST 5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5108for as_dir in $PATH 5109do 5110 IFS=$as_save_IFS 5111 test -z "$as_dir" && as_dir=. 5112 for ac_prog in sed gsed; do 5113 for ac_exec_ext in '' $ac_executable_extensions; do 5114 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5115 as_fn_executable_p "$ac_path_SED" || continue 5116# Check for GNU ac_path_SED and select it if it is found. 5117 # Check for GNU $ac_path_SED 5118case `"$ac_path_SED" --version 2>&1` in 5119*GNU*) 5120 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5121*) 5122 ac_count=0 5123 $as_echo_n 0123456789 >"conftest.in" 5124 while : 5125 do 5126 cat "conftest.in" "conftest.in" >"conftest.tmp" 5127 mv "conftest.tmp" "conftest.in" 5128 cp "conftest.in" "conftest.nl" 5129 $as_echo '' >> "conftest.nl" 5130 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5132 as_fn_arith $ac_count + 1 && ac_count=$as_val 5133 if test $ac_count -gt ${ac_path_SED_max-0}; then 5134 # Best one so far, save it but keep looking for a better one 5135 ac_cv_path_SED="$ac_path_SED" 5136 ac_path_SED_max=$ac_count 5137 fi 5138 # 10*(2^10) chars as input seems more than enough 5139 test $ac_count -gt 10 && break 5140 done 5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5142esac 5143 5144 $ac_path_SED_found && break 3 5145 done 5146 done 5147 done 5148IFS=$as_save_IFS 5149 if test -z "$ac_cv_path_SED"; then 5150 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5151 fi 5152else 5153 ac_cv_path_SED=$SED 5154fi 5155 5156fi 5157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5158$as_echo "$ac_cv_path_SED" >&6; } 5159 SED="$ac_cv_path_SED" 5160 rm -f conftest.sed 5161 5162test -z "$SED" && SED=sed 5163Xsed="$SED -e 1s/^X//" 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5176$as_echo_n "checking for fgrep... " >&6; } 5177if ${ac_cv_path_FGREP+:} false; then : 5178 $as_echo_n "(cached) " >&6 5179else 5180 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5181 then ac_cv_path_FGREP="$GREP -F" 5182 else 5183 if test -z "$FGREP"; then 5184 ac_path_FGREP_found=false 5185 # Loop through the user's path and test for each of PROGNAME-LIST 5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5187for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5188do 5189 IFS=$as_save_IFS 5190 test -z "$as_dir" && as_dir=. 5191 for ac_prog in fgrep; do 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5194 as_fn_executable_p "$ac_path_FGREP" || continue 5195# Check for GNU ac_path_FGREP and select it if it is found. 5196 # Check for GNU $ac_path_FGREP 5197case `"$ac_path_FGREP" --version 2>&1` in 5198*GNU*) 5199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5200*) 5201 ac_count=0 5202 $as_echo_n 0123456789 >"conftest.in" 5203 while : 5204 do 5205 cat "conftest.in" "conftest.in" >"conftest.tmp" 5206 mv "conftest.tmp" "conftest.in" 5207 cp "conftest.in" "conftest.nl" 5208 $as_echo 'FGREP' >> "conftest.nl" 5209 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5211 as_fn_arith $ac_count + 1 && ac_count=$as_val 5212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5213 # Best one so far, save it but keep looking for a better one 5214 ac_cv_path_FGREP="$ac_path_FGREP" 5215 ac_path_FGREP_max=$ac_count 5216 fi 5217 # 10*(2^10) chars as input seems more than enough 5218 test $ac_count -gt 10 && break 5219 done 5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5221esac 5222 5223 $ac_path_FGREP_found && break 3 5224 done 5225 done 5226 done 5227IFS=$as_save_IFS 5228 if test -z "$ac_cv_path_FGREP"; then 5229 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5230 fi 5231else 5232 ac_cv_path_FGREP=$FGREP 5233fi 5234 5235 fi 5236fi 5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5238$as_echo "$ac_cv_path_FGREP" >&6; } 5239 FGREP="$ac_cv_path_FGREP" 5240 5241 5242test -z "$GREP" && GREP=grep 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262# Check whether --with-gnu-ld was given. 5263if test "${with_gnu_ld+set}" = set; then : 5264 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5265else 5266 with_gnu_ld=no 5267fi 5268 5269ac_prog=ld 5270if test yes = "$GCC"; then 5271 # Check if gcc -print-prog-name=ld gives a path. 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5273$as_echo_n "checking for ld used by $CC... " >&6; } 5274 case $host in 5275 *-*-mingw*) 5276 # gcc leaves a trailing carriage return, which upsets mingw 5277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5278 *) 5279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5280 esac 5281 case $ac_prog in 5282 # Accept absolute paths. 5283 [\\/]* | ?:[\\/]*) 5284 re_direlt='/[^/][^/]*/\.\./' 5285 # Canonicalize the pathname of ld 5286 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5287 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5288 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5289 done 5290 test -z "$LD" && LD=$ac_prog 5291 ;; 5292 "") 5293 # If it fails, then pretend we aren't using GCC. 5294 ac_prog=ld 5295 ;; 5296 *) 5297 # If it is relative, then search for the first ld in PATH. 5298 with_gnu_ld=unknown 5299 ;; 5300 esac 5301elif test yes = "$with_gnu_ld"; then 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5303$as_echo_n "checking for GNU ld... " >&6; } 5304else 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5306$as_echo_n "checking for non-GNU ld... " >&6; } 5307fi 5308if ${lt_cv_path_LD+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 if test -z "$LD"; then 5312 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5313 for ac_dir in $PATH; do 5314 IFS=$lt_save_ifs 5315 test -z "$ac_dir" && ac_dir=. 5316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5317 lt_cv_path_LD=$ac_dir/$ac_prog 5318 # Check to see if the program is GNU ld. I'd rather use --version, 5319 # but apparently some variants of GNU ld only accept -v. 5320 # Break only if it was the GNU/non-GNU ld that we prefer. 5321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5322 *GNU* | *'with BFD'*) 5323 test no != "$with_gnu_ld" && break 5324 ;; 5325 *) 5326 test yes != "$with_gnu_ld" && break 5327 ;; 5328 esac 5329 fi 5330 done 5331 IFS=$lt_save_ifs 5332else 5333 lt_cv_path_LD=$LD # Let the user override the test with a path. 5334fi 5335fi 5336 5337LD=$lt_cv_path_LD 5338if test -n "$LD"; then 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5340$as_echo "$LD" >&6; } 5341else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343$as_echo "no" >&6; } 5344fi 5345test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5347$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5348if ${lt_cv_prog_gnu_ld+:} false; then : 5349 $as_echo_n "(cached) " >&6 5350else 5351 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5352case `$LD -v 2>&1 </dev/null` in 5353*GNU* | *'with BFD'*) 5354 lt_cv_prog_gnu_ld=yes 5355 ;; 5356*) 5357 lt_cv_prog_gnu_ld=no 5358 ;; 5359esac 5360fi 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5362$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5363with_gnu_ld=$lt_cv_prog_gnu_ld 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5374$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5375if ${lt_cv_path_NM+:} false; then : 5376 $as_echo_n "(cached) " >&6 5377else 5378 if test -n "$NM"; then 5379 # Let the user override the test. 5380 lt_cv_path_NM=$NM 5381else 5382 lt_nm_to_check=${ac_tool_prefix}nm 5383 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5384 lt_nm_to_check="$lt_nm_to_check nm" 5385 fi 5386 for lt_tmp_nm in $lt_nm_to_check; do 5387 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5388 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5389 IFS=$lt_save_ifs 5390 test -z "$ac_dir" && ac_dir=. 5391 tmp_nm=$ac_dir/$lt_tmp_nm 5392 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 5393 # Check to see if the nm accepts a BSD-compat flag. 5394 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 5395 # nm: unknown option "B" ignored 5396 # Tru64's nm complains that /dev/null is an invalid object file 5397 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 5398 case $build_os in 5399 mingw*) lt_bad_file=conftest.nm/nofile ;; 5400 *) lt_bad_file=/dev/null ;; 5401 esac 5402 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 5403 *$lt_bad_file* | *'Invalid file or object type'*) 5404 lt_cv_path_NM="$tmp_nm -B" 5405 break 2 5406 ;; 5407 *) 5408 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5409 */dev/null*) 5410 lt_cv_path_NM="$tmp_nm -p" 5411 break 2 5412 ;; 5413 *) 5414 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5415 continue # so that we can try to find one that supports BSD flags 5416 ;; 5417 esac 5418 ;; 5419 esac 5420 fi 5421 done 5422 IFS=$lt_save_ifs 5423 done 5424 : ${lt_cv_path_NM=no} 5425fi 5426fi 5427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5428$as_echo "$lt_cv_path_NM" >&6; } 5429if test no != "$lt_cv_path_NM"; then 5430 NM=$lt_cv_path_NM 5431else 5432 # Didn't find any BSD compatible name lister, look for dumpbin. 5433 if test -n "$DUMPBIN"; then : 5434 # Let the user override the test. 5435 else 5436 if test -n "$ac_tool_prefix"; then 5437 for ac_prog in dumpbin "link -dump" 5438 do 5439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5440set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5442$as_echo_n "checking for $ac_word... " >&6; } 5443if ${ac_cv_prog_DUMPBIN+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 if test -n "$DUMPBIN"; then 5447 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5448else 5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5450for as_dir in $PATH 5451do 5452 IFS=$as_save_IFS 5453 test -z "$as_dir" && as_dir=. 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5456 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5458 break 2 5459 fi 5460done 5461 done 5462IFS=$as_save_IFS 5463 5464fi 5465fi 5466DUMPBIN=$ac_cv_prog_DUMPBIN 5467if test -n "$DUMPBIN"; then 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5469$as_echo "$DUMPBIN" >&6; } 5470else 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5472$as_echo "no" >&6; } 5473fi 5474 5475 5476 test -n "$DUMPBIN" && break 5477 done 5478fi 5479if test -z "$DUMPBIN"; then 5480 ac_ct_DUMPBIN=$DUMPBIN 5481 for ac_prog in dumpbin "link -dump" 5482do 5483 # Extract the first word of "$ac_prog", so it can be a program name with args. 5484set dummy $ac_prog; ac_word=$2 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5486$as_echo_n "checking for $ac_word... " >&6; } 5487if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5488 $as_echo_n "(cached) " >&6 5489else 5490 if test -n "$ac_ct_DUMPBIN"; then 5491 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5492else 5493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5494for as_dir in $PATH 5495do 5496 IFS=$as_save_IFS 5497 test -z "$as_dir" && as_dir=. 5498 for ac_exec_ext in '' $ac_executable_extensions; do 5499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5500 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5502 break 2 5503 fi 5504done 5505 done 5506IFS=$as_save_IFS 5507 5508fi 5509fi 5510ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5511if test -n "$ac_ct_DUMPBIN"; then 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5513$as_echo "$ac_ct_DUMPBIN" >&6; } 5514else 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5516$as_echo "no" >&6; } 5517fi 5518 5519 5520 test -n "$ac_ct_DUMPBIN" && break 5521done 5522 5523 if test "x$ac_ct_DUMPBIN" = x; then 5524 DUMPBIN=":" 5525 else 5526 case $cross_compiling:$ac_tool_warned in 5527yes:) 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5530ac_tool_warned=yes ;; 5531esac 5532 DUMPBIN=$ac_ct_DUMPBIN 5533 fi 5534fi 5535 5536 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5537 *COFF*) 5538 DUMPBIN="$DUMPBIN -symbols -headers" 5539 ;; 5540 *) 5541 DUMPBIN=: 5542 ;; 5543 esac 5544 fi 5545 5546 if test : != "$DUMPBIN"; then 5547 NM=$DUMPBIN 5548 fi 5549fi 5550test -z "$NM" && NM=nm 5551 5552 5553 5554 5555 5556 5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5558$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5559if ${lt_cv_nm_interface+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 lt_cv_nm_interface="BSD nm" 5563 echo "int some_variable = 0;" > conftest.$ac_ext 5564 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5565 (eval "$ac_compile" 2>conftest.err) 5566 cat conftest.err >&5 5567 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5568 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5569 cat conftest.err >&5 5570 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5571 cat conftest.out >&5 5572 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5573 lt_cv_nm_interface="MS dumpbin" 5574 fi 5575 rm -f conftest* 5576fi 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5578$as_echo "$lt_cv_nm_interface" >&6; } 5579 5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5581$as_echo_n "checking whether ln -s works... " >&6; } 5582LN_S=$as_ln_s 5583if test "$LN_S" = "ln -s"; then 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5585$as_echo "yes" >&6; } 5586else 5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5588$as_echo "no, using $LN_S" >&6; } 5589fi 5590 5591# find the maximum length of command line arguments 5592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5593$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5594if ${lt_cv_sys_max_cmd_len+:} false; then : 5595 $as_echo_n "(cached) " >&6 5596else 5597 i=0 5598 teststring=ABCD 5599 5600 case $build_os in 5601 msdosdjgpp*) 5602 # On DJGPP, this test can blow up pretty badly due to problems in libc 5603 # (any single argument exceeding 2000 bytes causes a buffer overrun 5604 # during glob expansion). Even if it were fixed, the result of this 5605 # check would be larger than it should be. 5606 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5607 ;; 5608 5609 gnu*) 5610 # Under GNU Hurd, this test is not required because there is 5611 # no limit to the length of command line arguments. 5612 # Libtool will interpret -1 as no limit whatsoever 5613 lt_cv_sys_max_cmd_len=-1; 5614 ;; 5615 5616 cygwin* | mingw* | cegcc*) 5617 # On Win9x/ME, this test blows up -- it succeeds, but takes 5618 # about 5 minutes as the teststring grows exponentially. 5619 # Worse, since 9x/ME are not pre-emptively multitasking, 5620 # you end up with a "frozen" computer, even though with patience 5621 # the test eventually succeeds (with a max line length of 256k). 5622 # Instead, let's just punt: use the minimum linelength reported by 5623 # all of the supported platforms: 8192 (on NT/2K/XP). 5624 lt_cv_sys_max_cmd_len=8192; 5625 ;; 5626 5627 mint*) 5628 # On MiNT this can take a long time and run out of memory. 5629 lt_cv_sys_max_cmd_len=8192; 5630 ;; 5631 5632 mint*) 5633 # On MiNT this can take a long time and run out of memory. 5634 lt_cv_sys_max_cmd_len=8192; 5635 ;; 5636 5637 amigaos*) 5638 # On AmigaOS with pdksh, this test takes hours, literally. 5639 # So we just punt and use a minimum line length of 8192. 5640 lt_cv_sys_max_cmd_len=8192; 5641 ;; 5642 5643 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5644 # This has been around since 386BSD, at least. Likely further. 5645 if test -x /sbin/sysctl; then 5646 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5647 elif test -x /usr/sbin/sysctl; then 5648 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5649 else 5650 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5651 fi 5652 # And add a safety zone 5653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5655 ;; 5656 5657 interix*) 5658 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5659 lt_cv_sys_max_cmd_len=196608 5660 ;; 5661 5662 os2*) 5663 # The test takes a long time on OS/2. 5664 lt_cv_sys_max_cmd_len=8192 5665 ;; 5666 5667 osf*) 5668 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5669 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5670 # nice to cause kernel panics so lets avoid the loop below. 5671 # First set a reasonable default. 5672 lt_cv_sys_max_cmd_len=16384 5673 # 5674 if test -x /sbin/sysconfig; then 5675 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5676 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5677 esac 5678 fi 5679 ;; 5680 sco3.2v5*) 5681 lt_cv_sys_max_cmd_len=102400 5682 ;; 5683 sysv5* | sco5v6* | sysv4.2uw2*) 5684 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5685 if test -n "$kargmax"; then 5686 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5687 else 5688 lt_cv_sys_max_cmd_len=32768 5689 fi 5690 ;; 5691 *) 5692 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5693 if test -n "$lt_cv_sys_max_cmd_len" && \ 5694 test undefined != "$lt_cv_sys_max_cmd_len"; then 5695 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5697 else 5698 # Make teststring a little bigger before we do anything with it. 5699 # a 1K string should be a reasonable start. 5700 for i in 1 2 3 4 5 6 7 8; do 5701 teststring=$teststring$teststring 5702 done 5703 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5704 # If test is not a shell built-in, we'll probably end up computing a 5705 # maximum length that is only half of the actual maximum length, but 5706 # we can't tell. 5707 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5708 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5709 test 17 != "$i" # 1/2 MB should be enough 5710 do 5711 i=`expr $i + 1` 5712 teststring=$teststring$teststring 5713 done 5714 # Only check the string length outside the loop. 5715 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5716 teststring= 5717 # Add a significant safety factor because C++ compilers can tack on 5718 # massive amounts of additional arguments before passing them to the 5719 # linker. It appears as though 1/2 is a usable value. 5720 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5721 fi 5722 ;; 5723 esac 5724 5725fi 5726 5727if test -n "$lt_cv_sys_max_cmd_len"; then 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5729$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5730else 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5732$as_echo "none" >&6; } 5733fi 5734max_cmd_len=$lt_cv_sys_max_cmd_len 5735 5736 5737 5738 5739 5740 5741: ${CP="cp -f"} 5742: ${MV="mv -f"} 5743: ${RM="rm -f"} 5744 5745if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5746 lt_unset=unset 5747else 5748 lt_unset=false 5749fi 5750 5751 5752 5753 5754 5755# test EBCDIC or ASCII 5756case `echo X|tr X '\101'` in 5757 A) # ASCII based system 5758 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5759 lt_SP2NL='tr \040 \012' 5760 lt_NL2SP='tr \015\012 \040\040' 5761 ;; 5762 *) # EBCDIC based system 5763 lt_SP2NL='tr \100 \n' 5764 lt_NL2SP='tr \r\n \100\100' 5765 ;; 5766esac 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5777$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5778if ${lt_cv_to_host_file_cmd+:} false; then : 5779 $as_echo_n "(cached) " >&6 5780else 5781 case $host in 5782 *-*-mingw* ) 5783 case $build in 5784 *-*-mingw* ) # actually msys 5785 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5786 ;; 5787 *-*-cygwin* ) 5788 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5789 ;; 5790 * ) # otherwise, assume *nix 5791 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5792 ;; 5793 esac 5794 ;; 5795 *-*-cygwin* ) 5796 case $build in 5797 *-*-mingw* ) # actually msys 5798 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5799 ;; 5800 *-*-cygwin* ) 5801 lt_cv_to_host_file_cmd=func_convert_file_noop 5802 ;; 5803 * ) # otherwise, assume *nix 5804 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5805 ;; 5806 esac 5807 ;; 5808 * ) # unhandled hosts (and "normal" native builds) 5809 lt_cv_to_host_file_cmd=func_convert_file_noop 5810 ;; 5811esac 5812 5813fi 5814 5815to_host_file_cmd=$lt_cv_to_host_file_cmd 5816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5817$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5818 5819 5820 5821 5822 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5824$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5825if ${lt_cv_to_tool_file_cmd+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 #assume ordinary cross tools, or native build. 5829lt_cv_to_tool_file_cmd=func_convert_file_noop 5830case $host in 5831 *-*-mingw* ) 5832 case $build in 5833 *-*-mingw* ) # actually msys 5834 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5835 ;; 5836 esac 5837 ;; 5838esac 5839 5840fi 5841 5842to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5844$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5845 5846 5847 5848 5849 5850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5851$as_echo_n "checking for $LD option to reload object files... " >&6; } 5852if ${lt_cv_ld_reload_flag+:} false; then : 5853 $as_echo_n "(cached) " >&6 5854else 5855 lt_cv_ld_reload_flag='-r' 5856fi 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5858$as_echo "$lt_cv_ld_reload_flag" >&6; } 5859reload_flag=$lt_cv_ld_reload_flag 5860case $reload_flag in 5861"" | " "*) ;; 5862*) reload_flag=" $reload_flag" ;; 5863esac 5864reload_cmds='$LD$reload_flag -o $output$reload_objs' 5865case $host_os in 5866 cygwin* | mingw* | pw32* | cegcc*) 5867 if test yes != "$GCC"; then 5868 reload_cmds=false 5869 fi 5870 ;; 5871 darwin*) 5872 if test yes = "$GCC"; then 5873 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5874 else 5875 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5876 fi 5877 ;; 5878esac 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888if test -n "$ac_tool_prefix"; then 5889 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5890set dummy ${ac_tool_prefix}objdump; ac_word=$2 5891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5892$as_echo_n "checking for $ac_word... " >&6; } 5893if ${ac_cv_prog_OBJDUMP+:} false; then : 5894 $as_echo_n "(cached) " >&6 5895else 5896 if test -n "$OBJDUMP"; then 5897 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5898else 5899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5900for as_dir in $PATH 5901do 5902 IFS=$as_save_IFS 5903 test -z "$as_dir" && as_dir=. 5904 for ac_exec_ext in '' $ac_executable_extensions; do 5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5906 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5908 break 2 5909 fi 5910done 5911 done 5912IFS=$as_save_IFS 5913 5914fi 5915fi 5916OBJDUMP=$ac_cv_prog_OBJDUMP 5917if test -n "$OBJDUMP"; then 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5919$as_echo "$OBJDUMP" >&6; } 5920else 5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5922$as_echo "no" >&6; } 5923fi 5924 5925 5926fi 5927if test -z "$ac_cv_prog_OBJDUMP"; then 5928 ac_ct_OBJDUMP=$OBJDUMP 5929 # Extract the first word of "objdump", so it can be a program name with args. 5930set dummy objdump; ac_word=$2 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5932$as_echo_n "checking for $ac_word... " >&6; } 5933if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5934 $as_echo_n "(cached) " >&6 5935else 5936 if test -n "$ac_ct_OBJDUMP"; then 5937 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5938else 5939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5940for as_dir in $PATH 5941do 5942 IFS=$as_save_IFS 5943 test -z "$as_dir" && as_dir=. 5944 for ac_exec_ext in '' $ac_executable_extensions; do 5945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5946 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5948 break 2 5949 fi 5950done 5951 done 5952IFS=$as_save_IFS 5953 5954fi 5955fi 5956ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5957if test -n "$ac_ct_OBJDUMP"; then 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5959$as_echo "$ac_ct_OBJDUMP" >&6; } 5960else 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5962$as_echo "no" >&6; } 5963fi 5964 5965 if test "x$ac_ct_OBJDUMP" = x; then 5966 OBJDUMP="false" 5967 else 5968 case $cross_compiling:$ac_tool_warned in 5969yes:) 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5972ac_tool_warned=yes ;; 5973esac 5974 OBJDUMP=$ac_ct_OBJDUMP 5975 fi 5976else 5977 OBJDUMP="$ac_cv_prog_OBJDUMP" 5978fi 5979 5980test -z "$OBJDUMP" && OBJDUMP=objdump 5981 5982 5983 5984 5985 5986 5987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5988$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5989if ${lt_cv_deplibs_check_method+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 lt_cv_file_magic_cmd='$MAGIC_CMD' 5993lt_cv_file_magic_test_file= 5994lt_cv_deplibs_check_method='unknown' 5995# Need to set the preceding variable on all platforms that support 5996# interlibrary dependencies. 5997# 'none' -- dependencies not supported. 5998# 'unknown' -- same as none, but documents that we really don't know. 5999# 'pass_all' -- all dependencies passed with no checks. 6000# 'test_compile' -- check by making test program. 6001# 'file_magic [[regex]]' -- check by looking for files in library path 6002# that responds to the $file_magic_cmd with a given extended regex. 6003# If you have 'file' or equivalent on your system and you're not sure 6004# whether 'pass_all' will *always* work, you probably want this one. 6005 6006case $host_os in 6007aix[4-9]*) 6008 lt_cv_deplibs_check_method=pass_all 6009 ;; 6010 6011beos*) 6012 lt_cv_deplibs_check_method=pass_all 6013 ;; 6014 6015bsdi[45]*) 6016 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6017 lt_cv_file_magic_cmd='/usr/bin/file -L' 6018 lt_cv_file_magic_test_file=/shlib/libc.so 6019 ;; 6020 6021cygwin*) 6022 # func_win32_libid is a shell function defined in ltmain.sh 6023 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6024 lt_cv_file_magic_cmd='func_win32_libid' 6025 ;; 6026 6027mingw* | pw32*) 6028 # Base MSYS/MinGW do not provide the 'file' command needed by 6029 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6030 # unless we find 'file', for example because we are cross-compiling. 6031 if ( file / ) >/dev/null 2>&1; then 6032 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6033 lt_cv_file_magic_cmd='func_win32_libid' 6034 else 6035 # Keep this pattern in sync with the one in func_win32_libid. 6036 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6037 lt_cv_file_magic_cmd='$OBJDUMP -f' 6038 fi 6039 ;; 6040 6041cegcc*) 6042 # use the weaker test based on 'objdump'. See mingw*. 6043 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6044 lt_cv_file_magic_cmd='$OBJDUMP -f' 6045 ;; 6046 6047darwin* | rhapsody*) 6048 lt_cv_deplibs_check_method=pass_all 6049 ;; 6050 6051freebsd* | dragonfly*) 6052 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6053 case $host_cpu in 6054 i*86 ) 6055 # Not sure whether the presence of OpenBSD here was a mistake. 6056 # Let's accept both of them until this is cleared up. 6057 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6058 lt_cv_file_magic_cmd=/usr/bin/file 6059 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6060 ;; 6061 esac 6062 else 6063 lt_cv_deplibs_check_method=pass_all 6064 fi 6065 ;; 6066 6067haiku*) 6068 lt_cv_deplibs_check_method=pass_all 6069 ;; 6070 6071hpux10.20* | hpux11*) 6072 lt_cv_file_magic_cmd=/usr/bin/file 6073 case $host_cpu in 6074 ia64*) 6075 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6076 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6077 ;; 6078 hppa*64*) 6079 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]' 6080 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6081 ;; 6082 *) 6083 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6084 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6085 ;; 6086 esac 6087 ;; 6088 6089interix[3-9]*) 6090 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6092 ;; 6093 6094irix5* | irix6* | nonstopux*) 6095 case $LD in 6096 *-32|*"-32 ") libmagic=32-bit;; 6097 *-n32|*"-n32 ") libmagic=N32;; 6098 *-64|*"-64 ") libmagic=64-bit;; 6099 *) libmagic=never-match;; 6100 esac 6101 lt_cv_deplibs_check_method=pass_all 6102 ;; 6103 6104# This must be glibc/ELF. 6105linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6106 lt_cv_deplibs_check_method=pass_all 6107 ;; 6108 6109netbsd*) 6110 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6111 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6112 else 6113 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6114 fi 6115 ;; 6116 6117newos6*) 6118 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6119 lt_cv_file_magic_cmd=/usr/bin/file 6120 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6121 ;; 6122 6123*nto* | *qnx*) 6124 lt_cv_deplibs_check_method=pass_all 6125 ;; 6126 6127openbsd* | bitrig*) 6128 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6130 else 6131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6132 fi 6133 ;; 6134 6135osf3* | osf4* | osf5*) 6136 lt_cv_deplibs_check_method=pass_all 6137 ;; 6138 6139rdos*) 6140 lt_cv_deplibs_check_method=pass_all 6141 ;; 6142 6143solaris*) 6144 lt_cv_deplibs_check_method=pass_all 6145 ;; 6146 6147sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6148 lt_cv_deplibs_check_method=pass_all 6149 ;; 6150 6151sysv4 | sysv4.3*) 6152 case $host_vendor in 6153 motorola) 6154 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]' 6155 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6156 ;; 6157 ncr) 6158 lt_cv_deplibs_check_method=pass_all 6159 ;; 6160 sequent) 6161 lt_cv_file_magic_cmd='/bin/file' 6162 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6163 ;; 6164 sni) 6165 lt_cv_file_magic_cmd='/bin/file' 6166 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6167 lt_cv_file_magic_test_file=/lib/libc.so 6168 ;; 6169 siemens) 6170 lt_cv_deplibs_check_method=pass_all 6171 ;; 6172 pc) 6173 lt_cv_deplibs_check_method=pass_all 6174 ;; 6175 esac 6176 ;; 6177 6178tpf*) 6179 lt_cv_deplibs_check_method=pass_all 6180 ;; 6181os2*) 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184esac 6185 6186fi 6187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6188$as_echo "$lt_cv_deplibs_check_method" >&6; } 6189 6190file_magic_glob= 6191want_nocaseglob=no 6192if test "$build" = "$host"; then 6193 case $host_os in 6194 mingw* | pw32*) 6195 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6196 want_nocaseglob=yes 6197 else 6198 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6199 fi 6200 ;; 6201 esac 6202fi 6203 6204file_magic_cmd=$lt_cv_file_magic_cmd 6205deplibs_check_method=$lt_cv_deplibs_check_method 6206test -z "$deplibs_check_method" && deplibs_check_method=unknown 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229if test -n "$ac_tool_prefix"; then 6230 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6231set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6233$as_echo_n "checking for $ac_word... " >&6; } 6234if ${ac_cv_prog_DLLTOOL+:} false; then : 6235 $as_echo_n "(cached) " >&6 6236else 6237 if test -n "$DLLTOOL"; then 6238 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6239else 6240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6241for as_dir in $PATH 6242do 6243 IFS=$as_save_IFS 6244 test -z "$as_dir" && as_dir=. 6245 for ac_exec_ext in '' $ac_executable_extensions; do 6246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6247 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6249 break 2 6250 fi 6251done 6252 done 6253IFS=$as_save_IFS 6254 6255fi 6256fi 6257DLLTOOL=$ac_cv_prog_DLLTOOL 6258if test -n "$DLLTOOL"; then 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6260$as_echo "$DLLTOOL" >&6; } 6261else 6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6263$as_echo "no" >&6; } 6264fi 6265 6266 6267fi 6268if test -z "$ac_cv_prog_DLLTOOL"; then 6269 ac_ct_DLLTOOL=$DLLTOOL 6270 # Extract the first word of "dlltool", so it can be a program name with args. 6271set dummy dlltool; ac_word=$2 6272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6273$as_echo_n "checking for $ac_word... " >&6; } 6274if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6275 $as_echo_n "(cached) " >&6 6276else 6277 if test -n "$ac_ct_DLLTOOL"; then 6278 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6279else 6280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6281for as_dir in $PATH 6282do 6283 IFS=$as_save_IFS 6284 test -z "$as_dir" && as_dir=. 6285 for ac_exec_ext in '' $ac_executable_extensions; do 6286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6287 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6289 break 2 6290 fi 6291done 6292 done 6293IFS=$as_save_IFS 6294 6295fi 6296fi 6297ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6298if test -n "$ac_ct_DLLTOOL"; then 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6300$as_echo "$ac_ct_DLLTOOL" >&6; } 6301else 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6303$as_echo "no" >&6; } 6304fi 6305 6306 if test "x$ac_ct_DLLTOOL" = x; then 6307 DLLTOOL="false" 6308 else 6309 case $cross_compiling:$ac_tool_warned in 6310yes:) 6311{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6312$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6313ac_tool_warned=yes ;; 6314esac 6315 DLLTOOL=$ac_ct_DLLTOOL 6316 fi 6317else 6318 DLLTOOL="$ac_cv_prog_DLLTOOL" 6319fi 6320 6321test -z "$DLLTOOL" && DLLTOOL=dlltool 6322 6323 6324 6325 6326 6327 6328 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 6330$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 6331if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 6332 $as_echo_n "(cached) " >&6 6333else 6334 lt_cv_sharedlib_from_linklib_cmd='unknown' 6335 6336case $host_os in 6337cygwin* | mingw* | pw32* | cegcc*) 6338 # two different shell functions defined in ltmain.sh; 6339 # decide which one to use based on capabilities of $DLLTOOL 6340 case `$DLLTOOL --help 2>&1` in 6341 *--identify-strict*) 6342 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 6343 ;; 6344 *) 6345 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 6346 ;; 6347 esac 6348 ;; 6349*) 6350 # fallback: assume linklib IS sharedlib 6351 lt_cv_sharedlib_from_linklib_cmd=$ECHO 6352 ;; 6353esac 6354 6355fi 6356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 6357$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 6358sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 6359test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 6360 6361 6362 6363 6364 6365 6366 6367if test -n "$ac_tool_prefix"; then 6368 for ac_prog in ar 6369 do 6370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6371set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6373$as_echo_n "checking for $ac_word... " >&6; } 6374if ${ac_cv_prog_AR+:} false; then : 6375 $as_echo_n "(cached) " >&6 6376else 6377 if test -n "$AR"; then 6378 ac_cv_prog_AR="$AR" # Let the user override the test. 6379else 6380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6381for as_dir in $PATH 6382do 6383 IFS=$as_save_IFS 6384 test -z "$as_dir" && as_dir=. 6385 for ac_exec_ext in '' $ac_executable_extensions; do 6386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6387 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6389 break 2 6390 fi 6391done 6392 done 6393IFS=$as_save_IFS 6394 6395fi 6396fi 6397AR=$ac_cv_prog_AR 6398if test -n "$AR"; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6400$as_echo "$AR" >&6; } 6401else 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6403$as_echo "no" >&6; } 6404fi 6405 6406 6407 test -n "$AR" && break 6408 done 6409fi 6410if test -z "$AR"; then 6411 ac_ct_AR=$AR 6412 for ac_prog in ar 6413do 6414 # Extract the first word of "$ac_prog", so it can be a program name with args. 6415set dummy $ac_prog; ac_word=$2 6416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6417$as_echo_n "checking for $ac_word... " >&6; } 6418if ${ac_cv_prog_ac_ct_AR+:} false; then : 6419 $as_echo_n "(cached) " >&6 6420else 6421 if test -n "$ac_ct_AR"; then 6422 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6423else 6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6425for as_dir in $PATH 6426do 6427 IFS=$as_save_IFS 6428 test -z "$as_dir" && as_dir=. 6429 for ac_exec_ext in '' $ac_executable_extensions; do 6430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6431 ac_cv_prog_ac_ct_AR="$ac_prog" 6432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6433 break 2 6434 fi 6435done 6436 done 6437IFS=$as_save_IFS 6438 6439fi 6440fi 6441ac_ct_AR=$ac_cv_prog_ac_ct_AR 6442if test -n "$ac_ct_AR"; then 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6444$as_echo "$ac_ct_AR" >&6; } 6445else 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6447$as_echo "no" >&6; } 6448fi 6449 6450 6451 test -n "$ac_ct_AR" && break 6452done 6453 6454 if test "x$ac_ct_AR" = x; then 6455 AR="false" 6456 else 6457 case $cross_compiling:$ac_tool_warned in 6458yes:) 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6461ac_tool_warned=yes ;; 6462esac 6463 AR=$ac_ct_AR 6464 fi 6465fi 6466 6467: ${AR=ar} 6468: ${AR_FLAGS=cru} 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 6481$as_echo_n "checking for archiver @FILE support... " >&6; } 6482if ${lt_cv_ar_at_file+:} false; then : 6483 $as_echo_n "(cached) " >&6 6484else 6485 lt_cv_ar_at_file=no 6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6487/* end confdefs.h. */ 6488 6489int 6490main () 6491{ 6492 6493 ; 6494 return 0; 6495} 6496_ACEOF 6497if ac_fn_c_try_compile "$LINENO"; then : 6498 echo conftest.$ac_objext > conftest.lst 6499 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6501 (eval $lt_ar_try) 2>&5 6502 ac_status=$? 6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6504 test $ac_status = 0; } 6505 if test 0 -eq "$ac_status"; then 6506 # Ensure the archiver fails upon bogus file names. 6507 rm -f conftest.$ac_objext libconftest.a 6508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6509 (eval $lt_ar_try) 2>&5 6510 ac_status=$? 6511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6512 test $ac_status = 0; } 6513 if test 0 -ne "$ac_status"; then 6514 lt_cv_ar_at_file=@ 6515 fi 6516 fi 6517 rm -f conftest.* libconftest.a 6518 6519fi 6520rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6521 6522fi 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6524$as_echo "$lt_cv_ar_at_file" >&6; } 6525 6526if test no = "$lt_cv_ar_at_file"; then 6527 archiver_list_spec= 6528else 6529 archiver_list_spec=$lt_cv_ar_at_file 6530fi 6531 6532 6533 6534 6535 6536 6537 6538if test -n "$ac_tool_prefix"; then 6539 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6540set dummy ${ac_tool_prefix}strip; ac_word=$2 6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6542$as_echo_n "checking for $ac_word... " >&6; } 6543if ${ac_cv_prog_STRIP+:} false; then : 6544 $as_echo_n "(cached) " >&6 6545else 6546 if test -n "$STRIP"; then 6547 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6548else 6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6550for as_dir in $PATH 6551do 6552 IFS=$as_save_IFS 6553 test -z "$as_dir" && as_dir=. 6554 for ac_exec_ext in '' $ac_executable_extensions; do 6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6556 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6558 break 2 6559 fi 6560done 6561 done 6562IFS=$as_save_IFS 6563 6564fi 6565fi 6566STRIP=$ac_cv_prog_STRIP 6567if test -n "$STRIP"; then 6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6569$as_echo "$STRIP" >&6; } 6570else 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572$as_echo "no" >&6; } 6573fi 6574 6575 6576fi 6577if test -z "$ac_cv_prog_STRIP"; then 6578 ac_ct_STRIP=$STRIP 6579 # Extract the first word of "strip", so it can be a program name with args. 6580set dummy strip; ac_word=$2 6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6582$as_echo_n "checking for $ac_word... " >&6; } 6583if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6584 $as_echo_n "(cached) " >&6 6585else 6586 if test -n "$ac_ct_STRIP"; then 6587 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6588else 6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6590for as_dir in $PATH 6591do 6592 IFS=$as_save_IFS 6593 test -z "$as_dir" && as_dir=. 6594 for ac_exec_ext in '' $ac_executable_extensions; do 6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6596 ac_cv_prog_ac_ct_STRIP="strip" 6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6598 break 2 6599 fi 6600done 6601 done 6602IFS=$as_save_IFS 6603 6604fi 6605fi 6606ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6607if test -n "$ac_ct_STRIP"; then 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6609$as_echo "$ac_ct_STRIP" >&6; } 6610else 6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6612$as_echo "no" >&6; } 6613fi 6614 6615 if test "x$ac_ct_STRIP" = x; then 6616 STRIP=":" 6617 else 6618 case $cross_compiling:$ac_tool_warned in 6619yes:) 6620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6622ac_tool_warned=yes ;; 6623esac 6624 STRIP=$ac_ct_STRIP 6625 fi 6626else 6627 STRIP="$ac_cv_prog_STRIP" 6628fi 6629 6630test -z "$STRIP" && STRIP=: 6631 6632 6633 6634 6635 6636 6637if test -n "$ac_tool_prefix"; then 6638 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6639set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6641$as_echo_n "checking for $ac_word... " >&6; } 6642if ${ac_cv_prog_RANLIB+:} false; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 if test -n "$RANLIB"; then 6646 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6647else 6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6649for as_dir in $PATH 6650do 6651 IFS=$as_save_IFS 6652 test -z "$as_dir" && as_dir=. 6653 for ac_exec_ext in '' $ac_executable_extensions; do 6654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6655 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6657 break 2 6658 fi 6659done 6660 done 6661IFS=$as_save_IFS 6662 6663fi 6664fi 6665RANLIB=$ac_cv_prog_RANLIB 6666if test -n "$RANLIB"; then 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6668$as_echo "$RANLIB" >&6; } 6669else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671$as_echo "no" >&6; } 6672fi 6673 6674 6675fi 6676if test -z "$ac_cv_prog_RANLIB"; then 6677 ac_ct_RANLIB=$RANLIB 6678 # Extract the first word of "ranlib", so it can be a program name with args. 6679set dummy ranlib; ac_word=$2 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6681$as_echo_n "checking for $ac_word... " >&6; } 6682if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 if test -n "$ac_ct_RANLIB"; then 6686 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6687else 6688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6689for as_dir in $PATH 6690do 6691 IFS=$as_save_IFS 6692 test -z "$as_dir" && as_dir=. 6693 for ac_exec_ext in '' $ac_executable_extensions; do 6694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6695 ac_cv_prog_ac_ct_RANLIB="ranlib" 6696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6697 break 2 6698 fi 6699done 6700 done 6701IFS=$as_save_IFS 6702 6703fi 6704fi 6705ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6706if test -n "$ac_ct_RANLIB"; then 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6708$as_echo "$ac_ct_RANLIB" >&6; } 6709else 6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6711$as_echo "no" >&6; } 6712fi 6713 6714 if test "x$ac_ct_RANLIB" = x; then 6715 RANLIB=":" 6716 else 6717 case $cross_compiling:$ac_tool_warned in 6718yes:) 6719{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6720$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6721ac_tool_warned=yes ;; 6722esac 6723 RANLIB=$ac_ct_RANLIB 6724 fi 6725else 6726 RANLIB="$ac_cv_prog_RANLIB" 6727fi 6728 6729test -z "$RANLIB" && RANLIB=: 6730 6731 6732 6733 6734 6735 6736# Determine commands to create old-style static archives. 6737old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6738old_postinstall_cmds='chmod 644 $oldlib' 6739old_postuninstall_cmds= 6740 6741if test -n "$RANLIB"; then 6742 case $host_os in 6743 bitrig* | openbsd*) 6744 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6745 ;; 6746 *) 6747 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6748 ;; 6749 esac 6750 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6751fi 6752 6753case $host_os in 6754 darwin*) 6755 lock_old_archive_extraction=yes ;; 6756 *) 6757 lock_old_archive_extraction=no ;; 6758esac 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798# If no C compiler was specified, use CC. 6799LTCC=${LTCC-"$CC"} 6800 6801# If no C compiler flags were specified, use CFLAGS. 6802LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6803 6804# Allow CC to be a program name with arguments. 6805compiler=$CC 6806 6807 6808# Check for command to grab the raw symbol name followed by C symbol from nm. 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6810$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6811if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6812 $as_echo_n "(cached) " >&6 6813else 6814 6815# These are sane defaults that work on at least a few old systems. 6816# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6817 6818# Character class describing NM global symbol codes. 6819symcode='[BCDEGRST]' 6820 6821# Regexp to match symbols that can be accessed directly from C. 6822sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6823 6824# Define system-specific variables. 6825case $host_os in 6826aix*) 6827 symcode='[BCDT]' 6828 ;; 6829cygwin* | mingw* | pw32* | cegcc*) 6830 symcode='[ABCDGISTW]' 6831 ;; 6832hpux*) 6833 if test ia64 = "$host_cpu"; then 6834 symcode='[ABCDEGRST]' 6835 fi 6836 ;; 6837irix* | nonstopux*) 6838 symcode='[BCDEGRST]' 6839 ;; 6840osf*) 6841 symcode='[BCDEGQRST]' 6842 ;; 6843solaris*) 6844 symcode='[BDRT]' 6845 ;; 6846sco3.2v5*) 6847 symcode='[DT]' 6848 ;; 6849sysv4.2uw2*) 6850 symcode='[DT]' 6851 ;; 6852sysv5* | sco5v6* | unixware* | OpenUNIX*) 6853 symcode='[ABDT]' 6854 ;; 6855sysv4) 6856 symcode='[DFNSTU]' 6857 ;; 6858esac 6859 6860# If we're using GNU nm, then use its standard symbol codes. 6861case `$NM -V 2>&1` in 6862*GNU* | *'with BFD'*) 6863 symcode='[ABCDGIRSTW]' ;; 6864esac 6865 6866if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6867 # Gets list of data symbols to import. 6868 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6869 # Adjust the below global symbol transforms to fixup imported variables. 6870 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6871 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6872 lt_c_name_lib_hook="\ 6873 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6874 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6875else 6876 # Disable hooks by default. 6877 lt_cv_sys_global_symbol_to_import= 6878 lt_cdecl_hook= 6879 lt_c_name_hook= 6880 lt_c_name_lib_hook= 6881fi 6882 6883# Transform an extracted symbol line into a proper C declaration. 6884# Some systems (esp. on ia64) link data and code symbols differently, 6885# so use this general approach. 6886lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6887$lt_cdecl_hook\ 6888" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6889" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6890 6891# Transform an extracted symbol line into symbol name and symbol address 6892lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6893$lt_c_name_hook\ 6894" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6895" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6896 6897# Transform an extracted symbol line into symbol name with lib prefix and 6898# symbol address. 6899lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6900$lt_c_name_lib_hook\ 6901" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6902" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6903" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6904 6905# Handle CRLF in mingw tool chain 6906opt_cr= 6907case $build_os in 6908mingw*) 6909 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6910 ;; 6911esac 6912 6913# Try without a prefix underscore, then with it. 6914for ac_symprfx in "" "_"; do 6915 6916 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6917 symxfrm="\\1 $ac_symprfx\\2 \\2" 6918 6919 # Write the raw and C identifiers. 6920 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6921 # Fake it for dumpbin and say T for any non-static function, 6922 # D for any global variable and I for any imported variable. 6923 # Also find C++ and __fastcall symbols from MSVC++, 6924 # which start with @ or ?. 6925 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6926" {last_section=section; section=\$ 3};"\ 6927" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6928" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6929" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6930" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6931" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6932" \$ 0!~/External *\|/{next};"\ 6933" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6934" {if(hide[section]) next};"\ 6935" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6936" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6937" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6938" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6939" ' prfx=^$ac_symprfx" 6940 else 6941 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6942 fi 6943 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6944 6945 # Check to see that the pipe works correctly. 6946 pipe_works=no 6947 6948 rm -f conftest* 6949 cat > conftest.$ac_ext <<_LT_EOF 6950#ifdef __cplusplus 6951extern "C" { 6952#endif 6953char nm_test_var; 6954void nm_test_func(void); 6955void nm_test_func(void){} 6956#ifdef __cplusplus 6957} 6958#endif 6959int main(){nm_test_var='a';nm_test_func();return(0);} 6960_LT_EOF 6961 6962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6963 (eval $ac_compile) 2>&5 6964 ac_status=$? 6965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6966 test $ac_status = 0; }; then 6967 # Now try to grab the symbols. 6968 nlist=conftest.nm 6969 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6970 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6971 ac_status=$? 6972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6973 test $ac_status = 0; } && test -s "$nlist"; then 6974 # Try sorting and uniquifying the output. 6975 if sort "$nlist" | uniq > "$nlist"T; then 6976 mv -f "$nlist"T "$nlist" 6977 else 6978 rm -f "$nlist"T 6979 fi 6980 6981 # Make sure that we snagged all the symbols we need. 6982 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6983 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6984 cat <<_LT_EOF > conftest.$ac_ext 6985/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6986#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6987/* DATA imports from DLLs on WIN32 can't be const, because runtime 6988 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6989# define LT_DLSYM_CONST 6990#elif defined __osf__ 6991/* This system does not cope well with relocations in const data. */ 6992# define LT_DLSYM_CONST 6993#else 6994# define LT_DLSYM_CONST const 6995#endif 6996 6997#ifdef __cplusplus 6998extern "C" { 6999#endif 7000 7001_LT_EOF 7002 # Now generate the symbol file. 7003 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7004 7005 cat <<_LT_EOF >> conftest.$ac_ext 7006 7007/* The mapping between symbol names and symbols. */ 7008LT_DLSYM_CONST struct { 7009 const char *name; 7010 void *address; 7011} 7012lt__PROGRAM__LTX_preloaded_symbols[] = 7013{ 7014 { "@PROGRAM@", (void *) 0 }, 7015_LT_EOF 7016 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7017 cat <<\_LT_EOF >> conftest.$ac_ext 7018 {0, (void *) 0} 7019}; 7020 7021/* This works around a problem in FreeBSD linker */ 7022#ifdef FREEBSD_WORKAROUND 7023static const void *lt_preloaded_setup() { 7024 return lt__PROGRAM__LTX_preloaded_symbols; 7025} 7026#endif 7027 7028#ifdef __cplusplus 7029} 7030#endif 7031_LT_EOF 7032 # Now try linking the two files. 7033 mv conftest.$ac_objext conftstm.$ac_objext 7034 lt_globsym_save_LIBS=$LIBS 7035 lt_globsym_save_CFLAGS=$CFLAGS 7036 LIBS=conftstm.$ac_objext 7037 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7039 (eval $ac_link) 2>&5 7040 ac_status=$? 7041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7042 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7043 pipe_works=yes 7044 fi 7045 LIBS=$lt_globsym_save_LIBS 7046 CFLAGS=$lt_globsym_save_CFLAGS 7047 else 7048 echo "cannot find nm_test_func in $nlist" >&5 7049 fi 7050 else 7051 echo "cannot find nm_test_var in $nlist" >&5 7052 fi 7053 else 7054 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7055 fi 7056 else 7057 echo "$progname: failed program was:" >&5 7058 cat conftest.$ac_ext >&5 7059 fi 7060 rm -rf conftest* conftst* 7061 7062 # Do not use the global_symbol_pipe unless it works. 7063 if test yes = "$pipe_works"; then 7064 break 7065 else 7066 lt_cv_sys_global_symbol_pipe= 7067 fi 7068done 7069 7070fi 7071 7072if test -z "$lt_cv_sys_global_symbol_pipe"; then 7073 lt_cv_sys_global_symbol_to_cdecl= 7074fi 7075if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7077$as_echo "failed" >&6; } 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7080$as_echo "ok" >&6; } 7081fi 7082 7083# Response file support. 7084if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7085 nm_file_list_spec='@' 7086elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7087 nm_file_list_spec='@' 7088fi 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7127$as_echo_n "checking for sysroot... " >&6; } 7128 7129# Check whether --with-sysroot was given. 7130if test "${with_sysroot+set}" = set; then : 7131 withval=$with_sysroot; 7132else 7133 with_sysroot=no 7134fi 7135 7136 7137lt_sysroot= 7138case $with_sysroot in #( 7139 yes) 7140 if test yes = "$GCC"; then 7141 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7142 fi 7143 ;; #( 7144 /*) 7145 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7146 ;; #( 7147 no|'') 7148 ;; #( 7149 *) 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7151$as_echo "$with_sysroot" >&6; } 7152 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7153 ;; 7154esac 7155 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7157$as_echo "${lt_sysroot:-no}" >&6; } 7158 7159 7160 7161 7162 7163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7164$as_echo_n "checking for a working dd... " >&6; } 7165if ${ac_cv_path_lt_DD+:} false; then : 7166 $as_echo_n "(cached) " >&6 7167else 7168 printf 0123456789abcdef0123456789abcdef >conftest.i 7169cat conftest.i conftest.i >conftest2.i 7170: ${lt_DD:=$DD} 7171if test -z "$lt_DD"; then 7172 ac_path_lt_DD_found=false 7173 # Loop through the user's path and test for each of PROGNAME-LIST 7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7175for as_dir in $PATH 7176do 7177 IFS=$as_save_IFS 7178 test -z "$as_dir" && as_dir=. 7179 for ac_prog in dd; do 7180 for ac_exec_ext in '' $ac_executable_extensions; do 7181 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7182 as_fn_executable_p "$ac_path_lt_DD" || continue 7183if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7184 cmp -s conftest.i conftest.out \ 7185 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7186fi 7187 $ac_path_lt_DD_found && break 3 7188 done 7189 done 7190 done 7191IFS=$as_save_IFS 7192 if test -z "$ac_cv_path_lt_DD"; then 7193 : 7194 fi 7195else 7196 ac_cv_path_lt_DD=$lt_DD 7197fi 7198 7199rm -f conftest.i conftest2.i conftest.out 7200fi 7201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7202$as_echo "$ac_cv_path_lt_DD" >&6; } 7203 7204 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7206$as_echo_n "checking how to truncate binary pipes... " >&6; } 7207if ${lt_cv_truncate_bin+:} false; then : 7208 $as_echo_n "(cached) " >&6 7209else 7210 printf 0123456789abcdef0123456789abcdef >conftest.i 7211cat conftest.i conftest.i >conftest2.i 7212lt_cv_truncate_bin= 7213if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7214 cmp -s conftest.i conftest.out \ 7215 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7216fi 7217rm -f conftest.i conftest2.i conftest.out 7218test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7219fi 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7221$as_echo "$lt_cv_truncate_bin" >&6; } 7222 7223 7224 7225 7226 7227 7228 7229# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7230func_cc_basename () 7231{ 7232 for cc_temp in $*""; do 7233 case $cc_temp in 7234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7236 \-*) ;; 7237 *) break;; 7238 esac 7239 done 7240 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7241} 7242 7243# Check whether --enable-libtool-lock was given. 7244if test "${enable_libtool_lock+set}" = set; then : 7245 enableval=$enable_libtool_lock; 7246fi 7247 7248test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7249 7250# Some flags need to be propagated to the compiler or linker for good 7251# libtool support. 7252case $host in 7253ia64-*-hpux*) 7254 # Find out what ABI is being produced by ac_compile, and set mode 7255 # options accordingly. 7256 echo 'int i;' > conftest.$ac_ext 7257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7258 (eval $ac_compile) 2>&5 7259 ac_status=$? 7260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7261 test $ac_status = 0; }; then 7262 case `/usr/bin/file conftest.$ac_objext` in 7263 *ELF-32*) 7264 HPUX_IA64_MODE=32 7265 ;; 7266 *ELF-64*) 7267 HPUX_IA64_MODE=64 7268 ;; 7269 esac 7270 fi 7271 rm -rf conftest* 7272 ;; 7273*-*-irix6*) 7274 # Find out what ABI is being produced by ac_compile, and set linker 7275 # options accordingly. 7276 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7278 (eval $ac_compile) 2>&5 7279 ac_status=$? 7280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7281 test $ac_status = 0; }; then 7282 if test yes = "$lt_cv_prog_gnu_ld"; then 7283 case `/usr/bin/file conftest.$ac_objext` in 7284 *32-bit*) 7285 LD="${LD-ld} -melf32bsmip" 7286 ;; 7287 *N32*) 7288 LD="${LD-ld} -melf32bmipn32" 7289 ;; 7290 *64-bit*) 7291 LD="${LD-ld} -melf64bmip" 7292 ;; 7293 esac 7294 else 7295 case `/usr/bin/file conftest.$ac_objext` in 7296 *32-bit*) 7297 LD="${LD-ld} -32" 7298 ;; 7299 *N32*) 7300 LD="${LD-ld} -n32" 7301 ;; 7302 *64-bit*) 7303 LD="${LD-ld} -64" 7304 ;; 7305 esac 7306 fi 7307 fi 7308 rm -rf conftest* 7309 ;; 7310 7311mips64*-*linux*) 7312 # Find out what ABI is being produced by ac_compile, and set linker 7313 # options accordingly. 7314 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7316 (eval $ac_compile) 2>&5 7317 ac_status=$? 7318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7319 test $ac_status = 0; }; then 7320 emul=elf 7321 case `/usr/bin/file conftest.$ac_objext` in 7322 *32-bit*) 7323 emul="${emul}32" 7324 ;; 7325 *64-bit*) 7326 emul="${emul}64" 7327 ;; 7328 esac 7329 case `/usr/bin/file conftest.$ac_objext` in 7330 *MSB*) 7331 emul="${emul}btsmip" 7332 ;; 7333 *LSB*) 7334 emul="${emul}ltsmip" 7335 ;; 7336 esac 7337 case `/usr/bin/file conftest.$ac_objext` in 7338 *N32*) 7339 emul="${emul}n32" 7340 ;; 7341 esac 7342 LD="${LD-ld} -m $emul" 7343 fi 7344 rm -rf conftest* 7345 ;; 7346 7347x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7348s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7349 # Find out what ABI is being produced by ac_compile, and set linker 7350 # options accordingly. Note that the listed cases only cover the 7351 # situations where additional linker options are needed (such as when 7352 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 7353 # vice versa); the common cases where no linker options are needed do 7354 # not appear in the list. 7355 echo 'int i;' > conftest.$ac_ext 7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7357 (eval $ac_compile) 2>&5 7358 ac_status=$? 7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7360 test $ac_status = 0; }; then 7361 case `/usr/bin/file conftest.o` in 7362 *32-bit*) 7363 case $host in 7364 x86_64-*kfreebsd*-gnu) 7365 LD="${LD-ld} -m elf_i386_fbsd" 7366 ;; 7367 x86_64-*linux*) 7368 case `/usr/bin/file conftest.o` in 7369 *x86-64*) 7370 LD="${LD-ld} -m elf32_x86_64" 7371 ;; 7372 *) 7373 LD="${LD-ld} -m elf_i386" 7374 ;; 7375 esac 7376 ;; 7377 powerpc64le-*linux*) 7378 LD="${LD-ld} -m elf32lppclinux" 7379 ;; 7380 powerpc64-*linux*) 7381 LD="${LD-ld} -m elf32ppclinux" 7382 ;; 7383 s390x-*linux*) 7384 LD="${LD-ld} -m elf_s390" 7385 ;; 7386 sparc64-*linux*) 7387 LD="${LD-ld} -m elf32_sparc" 7388 ;; 7389 esac 7390 ;; 7391 *64-bit*) 7392 case $host in 7393 x86_64-*kfreebsd*-gnu) 7394 LD="${LD-ld} -m elf_x86_64_fbsd" 7395 ;; 7396 x86_64-*linux*) 7397 LD="${LD-ld} -m elf_x86_64" 7398 ;; 7399 powerpcle-*linux*|powerpc64le-*linux*) 7400 LD="${LD-ld} -m elf64lppc" 7401 ;; 7402 powerpc-*linux*|powerpc64-*linux*) 7403 LD="${LD-ld} -m elf64ppc" 7404 ;; 7405 s390*-*linux*|s390*-*tpf*) 7406 LD="${LD-ld} -m elf64_s390" 7407 ;; 7408 sparc*-*linux*) 7409 LD="${LD-ld} -m elf64_sparc" 7410 ;; 7411 esac 7412 ;; 7413 esac 7414 fi 7415 rm -rf conftest* 7416 ;; 7417 7418*-*-sco3.2v5*) 7419 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7420 SAVE_CFLAGS=$CFLAGS 7421 CFLAGS="$CFLAGS -belf" 7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7423$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7424if ${lt_cv_cc_needs_belf+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 ac_ext=c 7428ac_cpp='$CPP $CPPFLAGS' 7429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7431ac_compiler_gnu=$ac_cv_c_compiler_gnu 7432 7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7434/* end confdefs.h. */ 7435 7436int 7437main () 7438{ 7439 7440 ; 7441 return 0; 7442} 7443_ACEOF 7444if ac_fn_c_try_link "$LINENO"; then : 7445 lt_cv_cc_needs_belf=yes 7446else 7447 lt_cv_cc_needs_belf=no 7448fi 7449rm -f core conftest.err conftest.$ac_objext \ 7450 conftest$ac_exeext conftest.$ac_ext 7451 ac_ext=c 7452ac_cpp='$CPP $CPPFLAGS' 7453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7455ac_compiler_gnu=$ac_cv_c_compiler_gnu 7456 7457fi 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7459$as_echo "$lt_cv_cc_needs_belf" >&6; } 7460 if test yes != "$lt_cv_cc_needs_belf"; then 7461 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7462 CFLAGS=$SAVE_CFLAGS 7463 fi 7464 ;; 7465*-*solaris*) 7466 # Find out what ABI is being produced by ac_compile, and set linker 7467 # options accordingly. 7468 echo 'int i;' > conftest.$ac_ext 7469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7470 (eval $ac_compile) 2>&5 7471 ac_status=$? 7472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7473 test $ac_status = 0; }; then 7474 case `/usr/bin/file conftest.o` in 7475 *64-bit*) 7476 case $lt_cv_prog_gnu_ld in 7477 yes*) 7478 case $host in 7479 i?86-*-solaris*|x86_64-*-solaris*) 7480 LD="${LD-ld} -m elf_x86_64" 7481 ;; 7482 sparc*-*-solaris*) 7483 LD="${LD-ld} -m elf64_sparc" 7484 ;; 7485 esac 7486 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7487 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7488 LD=${LD-ld}_sol2 7489 fi 7490 ;; 7491 *) 7492 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7493 LD="${LD-ld} -64" 7494 fi 7495 ;; 7496 esac 7497 ;; 7498 esac 7499 fi 7500 rm -rf conftest* 7501 ;; 7502esac 7503 7504need_locks=$enable_libtool_lock 7505 7506if test -n "$ac_tool_prefix"; then 7507 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7508set dummy ${ac_tool_prefix}mt; ac_word=$2 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510$as_echo_n "checking for $ac_word... " >&6; } 7511if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513else 7514 if test -n "$MANIFEST_TOOL"; then 7515 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7516else 7517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7518for as_dir in $PATH 7519do 7520 IFS=$as_save_IFS 7521 test -z "$as_dir" && as_dir=. 7522 for ac_exec_ext in '' $ac_executable_extensions; do 7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7524 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7526 break 2 7527 fi 7528done 7529 done 7530IFS=$as_save_IFS 7531 7532fi 7533fi 7534MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7535if test -n "$MANIFEST_TOOL"; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7537$as_echo "$MANIFEST_TOOL" >&6; } 7538else 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7540$as_echo "no" >&6; } 7541fi 7542 7543 7544fi 7545if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7546 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7547 # Extract the first word of "mt", so it can be a program name with args. 7548set dummy mt; ac_word=$2 7549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7550$as_echo_n "checking for $ac_word... " >&6; } 7551if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7552 $as_echo_n "(cached) " >&6 7553else 7554 if test -n "$ac_ct_MANIFEST_TOOL"; then 7555 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7556else 7557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558for as_dir in $PATH 7559do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568done 7569 done 7570IFS=$as_save_IFS 7571 7572fi 7573fi 7574ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7575if test -n "$ac_ct_MANIFEST_TOOL"; then 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7577$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7578else 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7580$as_echo "no" >&6; } 7581fi 7582 7583 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7584 MANIFEST_TOOL=":" 7585 else 7586 case $cross_compiling:$ac_tool_warned in 7587yes:) 7588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7590ac_tool_warned=yes ;; 7591esac 7592 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7593 fi 7594else 7595 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7596fi 7597 7598test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7600$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7601if ${lt_cv_path_mainfest_tool+:} false; then : 7602 $as_echo_n "(cached) " >&6 7603else 7604 lt_cv_path_mainfest_tool=no 7605 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7606 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7607 cat conftest.err >&5 7608 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7609 lt_cv_path_mainfest_tool=yes 7610 fi 7611 rm -f conftest* 7612fi 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7614$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7615if test yes != "$lt_cv_path_mainfest_tool"; then 7616 MANIFEST_TOOL=: 7617fi 7618 7619 7620 7621 7622 7623 7624 case $host_os in 7625 rhapsody* | darwin*) 7626 if test -n "$ac_tool_prefix"; then 7627 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7628set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7630$as_echo_n "checking for $ac_word... " >&6; } 7631if ${ac_cv_prog_DSYMUTIL+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 if test -n "$DSYMUTIL"; then 7635 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7636else 7637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638for as_dir in $PATH 7639do 7640 IFS=$as_save_IFS 7641 test -z "$as_dir" && as_dir=. 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7644 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648done 7649 done 7650IFS=$as_save_IFS 7651 7652fi 7653fi 7654DSYMUTIL=$ac_cv_prog_DSYMUTIL 7655if test -n "$DSYMUTIL"; then 7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7657$as_echo "$DSYMUTIL" >&6; } 7658else 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7660$as_echo "no" >&6; } 7661fi 7662 7663 7664fi 7665if test -z "$ac_cv_prog_DSYMUTIL"; then 7666 ac_ct_DSYMUTIL=$DSYMUTIL 7667 # Extract the first word of "dsymutil", so it can be a program name with args. 7668set dummy dsymutil; ac_word=$2 7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7670$as_echo_n "checking for $ac_word... " >&6; } 7671if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7672 $as_echo_n "(cached) " >&6 7673else 7674 if test -n "$ac_ct_DSYMUTIL"; then 7675 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7676else 7677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7678for as_dir in $PATH 7679do 7680 IFS=$as_save_IFS 7681 test -z "$as_dir" && as_dir=. 7682 for ac_exec_ext in '' $ac_executable_extensions; do 7683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7684 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7686 break 2 7687 fi 7688done 7689 done 7690IFS=$as_save_IFS 7691 7692fi 7693fi 7694ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7695if test -n "$ac_ct_DSYMUTIL"; then 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7697$as_echo "$ac_ct_DSYMUTIL" >&6; } 7698else 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7700$as_echo "no" >&6; } 7701fi 7702 7703 if test "x$ac_ct_DSYMUTIL" = x; then 7704 DSYMUTIL=":" 7705 else 7706 case $cross_compiling:$ac_tool_warned in 7707yes:) 7708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7710ac_tool_warned=yes ;; 7711esac 7712 DSYMUTIL=$ac_ct_DSYMUTIL 7713 fi 7714else 7715 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7716fi 7717 7718 if test -n "$ac_tool_prefix"; then 7719 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7720set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7722$as_echo_n "checking for $ac_word... " >&6; } 7723if ${ac_cv_prog_NMEDIT+:} false; then : 7724 $as_echo_n "(cached) " >&6 7725else 7726 if test -n "$NMEDIT"; then 7727 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7728else 7729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7730for as_dir in $PATH 7731do 7732 IFS=$as_save_IFS 7733 test -z "$as_dir" && as_dir=. 7734 for ac_exec_ext in '' $ac_executable_extensions; do 7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7736 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7738 break 2 7739 fi 7740done 7741 done 7742IFS=$as_save_IFS 7743 7744fi 7745fi 7746NMEDIT=$ac_cv_prog_NMEDIT 7747if test -n "$NMEDIT"; then 7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7749$as_echo "$NMEDIT" >&6; } 7750else 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7752$as_echo "no" >&6; } 7753fi 7754 7755 7756fi 7757if test -z "$ac_cv_prog_NMEDIT"; then 7758 ac_ct_NMEDIT=$NMEDIT 7759 # Extract the first word of "nmedit", so it can be a program name with args. 7760set dummy nmedit; ac_word=$2 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7762$as_echo_n "checking for $ac_word... " >&6; } 7763if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7764 $as_echo_n "(cached) " >&6 7765else 7766 if test -n "$ac_ct_NMEDIT"; then 7767 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7768else 7769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7770for as_dir in $PATH 7771do 7772 IFS=$as_save_IFS 7773 test -z "$as_dir" && as_dir=. 7774 for ac_exec_ext in '' $ac_executable_extensions; do 7775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7776 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7778 break 2 7779 fi 7780done 7781 done 7782IFS=$as_save_IFS 7783 7784fi 7785fi 7786ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7787if test -n "$ac_ct_NMEDIT"; then 7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7789$as_echo "$ac_ct_NMEDIT" >&6; } 7790else 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7792$as_echo "no" >&6; } 7793fi 7794 7795 if test "x$ac_ct_NMEDIT" = x; then 7796 NMEDIT=":" 7797 else 7798 case $cross_compiling:$ac_tool_warned in 7799yes:) 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7801$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7802ac_tool_warned=yes ;; 7803esac 7804 NMEDIT=$ac_ct_NMEDIT 7805 fi 7806else 7807 NMEDIT="$ac_cv_prog_NMEDIT" 7808fi 7809 7810 if test -n "$ac_tool_prefix"; then 7811 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7812set dummy ${ac_tool_prefix}lipo; ac_word=$2 7813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7814$as_echo_n "checking for $ac_word... " >&6; } 7815if ${ac_cv_prog_LIPO+:} false; then : 7816 $as_echo_n "(cached) " >&6 7817else 7818 if test -n "$LIPO"; then 7819 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7820else 7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7822for as_dir in $PATH 7823do 7824 IFS=$as_save_IFS 7825 test -z "$as_dir" && as_dir=. 7826 for ac_exec_ext in '' $ac_executable_extensions; do 7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7828 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7830 break 2 7831 fi 7832done 7833 done 7834IFS=$as_save_IFS 7835 7836fi 7837fi 7838LIPO=$ac_cv_prog_LIPO 7839if test -n "$LIPO"; then 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7841$as_echo "$LIPO" >&6; } 7842else 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7844$as_echo "no" >&6; } 7845fi 7846 7847 7848fi 7849if test -z "$ac_cv_prog_LIPO"; then 7850 ac_ct_LIPO=$LIPO 7851 # Extract the first word of "lipo", so it can be a program name with args. 7852set dummy lipo; ac_word=$2 7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7854$as_echo_n "checking for $ac_word... " >&6; } 7855if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 if test -n "$ac_ct_LIPO"; then 7859 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7860else 7861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7862for as_dir in $PATH 7863do 7864 IFS=$as_save_IFS 7865 test -z "$as_dir" && as_dir=. 7866 for ac_exec_ext in '' $ac_executable_extensions; do 7867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7868 ac_cv_prog_ac_ct_LIPO="lipo" 7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7870 break 2 7871 fi 7872done 7873 done 7874IFS=$as_save_IFS 7875 7876fi 7877fi 7878ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7879if test -n "$ac_ct_LIPO"; then 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7881$as_echo "$ac_ct_LIPO" >&6; } 7882else 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7884$as_echo "no" >&6; } 7885fi 7886 7887 if test "x$ac_ct_LIPO" = x; then 7888 LIPO=":" 7889 else 7890 case $cross_compiling:$ac_tool_warned in 7891yes:) 7892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7894ac_tool_warned=yes ;; 7895esac 7896 LIPO=$ac_ct_LIPO 7897 fi 7898else 7899 LIPO="$ac_cv_prog_LIPO" 7900fi 7901 7902 if test -n "$ac_tool_prefix"; then 7903 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7904set dummy ${ac_tool_prefix}otool; ac_word=$2 7905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7906$as_echo_n "checking for $ac_word... " >&6; } 7907if ${ac_cv_prog_OTOOL+:} false; then : 7908 $as_echo_n "(cached) " >&6 7909else 7910 if test -n "$OTOOL"; then 7911 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7912else 7913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7914for as_dir in $PATH 7915do 7916 IFS=$as_save_IFS 7917 test -z "$as_dir" && as_dir=. 7918 for ac_exec_ext in '' $ac_executable_extensions; do 7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7920 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7922 break 2 7923 fi 7924done 7925 done 7926IFS=$as_save_IFS 7927 7928fi 7929fi 7930OTOOL=$ac_cv_prog_OTOOL 7931if test -n "$OTOOL"; then 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7933$as_echo "$OTOOL" >&6; } 7934else 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7936$as_echo "no" >&6; } 7937fi 7938 7939 7940fi 7941if test -z "$ac_cv_prog_OTOOL"; then 7942 ac_ct_OTOOL=$OTOOL 7943 # Extract the first word of "otool", so it can be a program name with args. 7944set dummy otool; ac_word=$2 7945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7946$as_echo_n "checking for $ac_word... " >&6; } 7947if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7948 $as_echo_n "(cached) " >&6 7949else 7950 if test -n "$ac_ct_OTOOL"; then 7951 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7952else 7953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7954for as_dir in $PATH 7955do 7956 IFS=$as_save_IFS 7957 test -z "$as_dir" && as_dir=. 7958 for ac_exec_ext in '' $ac_executable_extensions; do 7959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7960 ac_cv_prog_ac_ct_OTOOL="otool" 7961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7962 break 2 7963 fi 7964done 7965 done 7966IFS=$as_save_IFS 7967 7968fi 7969fi 7970ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7971if test -n "$ac_ct_OTOOL"; then 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7973$as_echo "$ac_ct_OTOOL" >&6; } 7974else 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7976$as_echo "no" >&6; } 7977fi 7978 7979 if test "x$ac_ct_OTOOL" = x; then 7980 OTOOL=":" 7981 else 7982 case $cross_compiling:$ac_tool_warned in 7983yes:) 7984{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7985$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7986ac_tool_warned=yes ;; 7987esac 7988 OTOOL=$ac_ct_OTOOL 7989 fi 7990else 7991 OTOOL="$ac_cv_prog_OTOOL" 7992fi 7993 7994 if test -n "$ac_tool_prefix"; then 7995 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7996set dummy ${ac_tool_prefix}otool64; ac_word=$2 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7998$as_echo_n "checking for $ac_word... " >&6; } 7999if ${ac_cv_prog_OTOOL64+:} false; then : 8000 $as_echo_n "(cached) " >&6 8001else 8002 if test -n "$OTOOL64"; then 8003 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8004else 8005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8006for as_dir in $PATH 8007do 8008 IFS=$as_save_IFS 8009 test -z "$as_dir" && as_dir=. 8010 for ac_exec_ext in '' $ac_executable_extensions; do 8011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8012 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8014 break 2 8015 fi 8016done 8017 done 8018IFS=$as_save_IFS 8019 8020fi 8021fi 8022OTOOL64=$ac_cv_prog_OTOOL64 8023if test -n "$OTOOL64"; then 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8025$as_echo "$OTOOL64" >&6; } 8026else 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8028$as_echo "no" >&6; } 8029fi 8030 8031 8032fi 8033if test -z "$ac_cv_prog_OTOOL64"; then 8034 ac_ct_OTOOL64=$OTOOL64 8035 # Extract the first word of "otool64", so it can be a program name with args. 8036set dummy otool64; ac_word=$2 8037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8038$as_echo_n "checking for $ac_word... " >&6; } 8039if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 if test -n "$ac_ct_OTOOL64"; then 8043 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8044else 8045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8046for as_dir in $PATH 8047do 8048 IFS=$as_save_IFS 8049 test -z "$as_dir" && as_dir=. 8050 for ac_exec_ext in '' $ac_executable_extensions; do 8051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8052 ac_cv_prog_ac_ct_OTOOL64="otool64" 8053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8054 break 2 8055 fi 8056done 8057 done 8058IFS=$as_save_IFS 8059 8060fi 8061fi 8062ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8063if test -n "$ac_ct_OTOOL64"; then 8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8065$as_echo "$ac_ct_OTOOL64" >&6; } 8066else 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8068$as_echo "no" >&6; } 8069fi 8070 8071 if test "x$ac_ct_OTOOL64" = x; then 8072 OTOOL64=":" 8073 else 8074 case $cross_compiling:$ac_tool_warned in 8075yes:) 8076{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8078ac_tool_warned=yes ;; 8079esac 8080 OTOOL64=$ac_ct_OTOOL64 8081 fi 8082else 8083 OTOOL64="$ac_cv_prog_OTOOL64" 8084fi 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8113$as_echo_n "checking for -single_module linker flag... " >&6; } 8114if ${lt_cv_apple_cc_single_mod+:} false; then : 8115 $as_echo_n "(cached) " >&6 8116else 8117 lt_cv_apple_cc_single_mod=no 8118 if test -z "$LT_MULTI_MODULE"; then 8119 # By default we will add the -single_module flag. You can override 8120 # by either setting the environment variable LT_MULTI_MODULE 8121 # non-empty at configure time, or by adding -multi_module to the 8122 # link flags. 8123 rm -rf libconftest.dylib* 8124 echo "int foo(void){return 1;}" > conftest.c 8125 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8126-dynamiclib -Wl,-single_module conftest.c" >&5 8127 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8128 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8129 _lt_result=$? 8130 # If there is a non-empty error log, and "single_module" 8131 # appears in it, assume the flag caused a linker warning 8132 if test -s conftest.err && $GREP single_module conftest.err; then 8133 cat conftest.err >&5 8134 # Otherwise, if the output was created with a 0 exit code from 8135 # the compiler, it worked. 8136 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8137 lt_cv_apple_cc_single_mod=yes 8138 else 8139 cat conftest.err >&5 8140 fi 8141 rm -rf libconftest.dylib* 8142 rm -f conftest.* 8143 fi 8144fi 8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8146$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8147 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8149$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8150if ${lt_cv_ld_exported_symbols_list+:} false; then : 8151 $as_echo_n "(cached) " >&6 8152else 8153 lt_cv_ld_exported_symbols_list=no 8154 save_LDFLAGS=$LDFLAGS 8155 echo "_main" > conftest.sym 8156 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8158/* end confdefs.h. */ 8159 8160int 8161main () 8162{ 8163 8164 ; 8165 return 0; 8166} 8167_ACEOF 8168if ac_fn_c_try_link "$LINENO"; then : 8169 lt_cv_ld_exported_symbols_list=yes 8170else 8171 lt_cv_ld_exported_symbols_list=no 8172fi 8173rm -f core conftest.err conftest.$ac_objext \ 8174 conftest$ac_exeext conftest.$ac_ext 8175 LDFLAGS=$save_LDFLAGS 8176 8177fi 8178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8179$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8180 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8182$as_echo_n "checking for -force_load linker flag... " >&6; } 8183if ${lt_cv_ld_force_load+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185else 8186 lt_cv_ld_force_load=no 8187 cat > conftest.c << _LT_EOF 8188int forced_loaded() { return 2;} 8189_LT_EOF 8190 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8191 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8192 echo "$AR cru libconftest.a conftest.o" >&5 8193 $AR cru libconftest.a conftest.o 2>&5 8194 echo "$RANLIB libconftest.a" >&5 8195 $RANLIB libconftest.a 2>&5 8196 cat > conftest.c << _LT_EOF 8197int main() { return 0;} 8198_LT_EOF 8199 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8200 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8201 _lt_result=$? 8202 if test -s conftest.err && $GREP force_load conftest.err; then 8203 cat conftest.err >&5 8204 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8205 lt_cv_ld_force_load=yes 8206 else 8207 cat conftest.err >&5 8208 fi 8209 rm -f conftest.err libconftest.a conftest conftest.c 8210 rm -rf conftest.dSYM 8211 8212fi 8213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8214$as_echo "$lt_cv_ld_force_load" >&6; } 8215 case $host_os in 8216 rhapsody* | darwin1.[012]) 8217 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8218 darwin1.*) 8219 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8220 darwin*) # darwin 5.x on 8221 # if running on 10.5 or later, the deployment target defaults 8222 # to the OS version, if on x86, and 10.4, the deployment 8223 # target defaults to 10.4. Don't you love it? 8224 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8225 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8226 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8227 10.[012][,.]*) 8228 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8229 10.*) 8230 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8231 esac 8232 ;; 8233 esac 8234 if test yes = "$lt_cv_apple_cc_single_mod"; then 8235 _lt_dar_single_mod='$single_module' 8236 fi 8237 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8238 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8239 else 8240 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8241 fi 8242 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8243 _lt_dsymutil='~$DSYMUTIL $lib || :' 8244 else 8245 _lt_dsymutil= 8246 fi 8247 ;; 8248 esac 8249 8250# func_munge_path_list VARIABLE PATH 8251# ----------------------------------- 8252# VARIABLE is name of variable containing _space_ separated list of 8253# directories to be munged by the contents of PATH, which is string 8254# having a format: 8255# "DIR[:DIR]:" 8256# string "DIR[ DIR]" will be prepended to VARIABLE 8257# ":DIR[:DIR]" 8258# string "DIR[ DIR]" will be appended to VARIABLE 8259# "DIRP[:DIRP]::[DIRA:]DIRA" 8260# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8261# "DIRA[ DIRA]" will be appended to VARIABLE 8262# "DIR[:DIR]" 8263# VARIABLE will be replaced by "DIR[ DIR]" 8264func_munge_path_list () 8265{ 8266 case x$2 in 8267 x) 8268 ;; 8269 *:) 8270 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8271 ;; 8272 x:*) 8273 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8274 ;; 8275 *::*) 8276 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8277 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8278 ;; 8279 *) 8280 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8281 ;; 8282 esac 8283} 8284 8285for ac_header in dlfcn.h 8286do : 8287 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8288" 8289if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8290 cat >>confdefs.h <<_ACEOF 8291#define HAVE_DLFCN_H 1 8292_ACEOF 8293 8294fi 8295 8296done 8297 8298 8299 8300 8301 8302# Set options 8303enable_win32_dll=yes 8304 8305case $host in 8306*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 8307 if test -n "$ac_tool_prefix"; then 8308 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 8309set dummy ${ac_tool_prefix}as; ac_word=$2 8310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8311$as_echo_n "checking for $ac_word... " >&6; } 8312if ${ac_cv_prog_AS+:} false; then : 8313 $as_echo_n "(cached) " >&6 8314else 8315 if test -n "$AS"; then 8316 ac_cv_prog_AS="$AS" # Let the user override the test. 8317else 8318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8319for as_dir in $PATH 8320do 8321 IFS=$as_save_IFS 8322 test -z "$as_dir" && as_dir=. 8323 for ac_exec_ext in '' $ac_executable_extensions; do 8324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8325 ac_cv_prog_AS="${ac_tool_prefix}as" 8326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8327 break 2 8328 fi 8329done 8330 done 8331IFS=$as_save_IFS 8332 8333fi 8334fi 8335AS=$ac_cv_prog_AS 8336if test -n "$AS"; then 8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 8338$as_echo "$AS" >&6; } 8339else 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8341$as_echo "no" >&6; } 8342fi 8343 8344 8345fi 8346if test -z "$ac_cv_prog_AS"; then 8347 ac_ct_AS=$AS 8348 # Extract the first word of "as", so it can be a program name with args. 8349set dummy as; ac_word=$2 8350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8351$as_echo_n "checking for $ac_word... " >&6; } 8352if ${ac_cv_prog_ac_ct_AS+:} false; then : 8353 $as_echo_n "(cached) " >&6 8354else 8355 if test -n "$ac_ct_AS"; then 8356 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 8357else 8358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8359for as_dir in $PATH 8360do 8361 IFS=$as_save_IFS 8362 test -z "$as_dir" && as_dir=. 8363 for ac_exec_ext in '' $ac_executable_extensions; do 8364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8365 ac_cv_prog_ac_ct_AS="as" 8366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8367 break 2 8368 fi 8369done 8370 done 8371IFS=$as_save_IFS 8372 8373fi 8374fi 8375ac_ct_AS=$ac_cv_prog_ac_ct_AS 8376if test -n "$ac_ct_AS"; then 8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 8378$as_echo "$ac_ct_AS" >&6; } 8379else 8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8381$as_echo "no" >&6; } 8382fi 8383 8384 if test "x$ac_ct_AS" = x; then 8385 AS="false" 8386 else 8387 case $cross_compiling:$ac_tool_warned in 8388yes:) 8389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8391ac_tool_warned=yes ;; 8392esac 8393 AS=$ac_ct_AS 8394 fi 8395else 8396 AS="$ac_cv_prog_AS" 8397fi 8398 8399 if test -n "$ac_tool_prefix"; then 8400 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 8401set dummy ${ac_tool_prefix}dlltool; ac_word=$2 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8403$as_echo_n "checking for $ac_word... " >&6; } 8404if ${ac_cv_prog_DLLTOOL+:} false; then : 8405 $as_echo_n "(cached) " >&6 8406else 8407 if test -n "$DLLTOOL"; then 8408 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 8409else 8410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8411for as_dir in $PATH 8412do 8413 IFS=$as_save_IFS 8414 test -z "$as_dir" && as_dir=. 8415 for ac_exec_ext in '' $ac_executable_extensions; do 8416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8417 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 8418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8419 break 2 8420 fi 8421done 8422 done 8423IFS=$as_save_IFS 8424 8425fi 8426fi 8427DLLTOOL=$ac_cv_prog_DLLTOOL 8428if test -n "$DLLTOOL"; then 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 8430$as_echo "$DLLTOOL" >&6; } 8431else 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8433$as_echo "no" >&6; } 8434fi 8435 8436 8437fi 8438if test -z "$ac_cv_prog_DLLTOOL"; then 8439 ac_ct_DLLTOOL=$DLLTOOL 8440 # Extract the first word of "dlltool", so it can be a program name with args. 8441set dummy dlltool; ac_word=$2 8442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8443$as_echo_n "checking for $ac_word... " >&6; } 8444if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 8445 $as_echo_n "(cached) " >&6 8446else 8447 if test -n "$ac_ct_DLLTOOL"; then 8448 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 8449else 8450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8451for as_dir in $PATH 8452do 8453 IFS=$as_save_IFS 8454 test -z "$as_dir" && as_dir=. 8455 for ac_exec_ext in '' $ac_executable_extensions; do 8456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8457 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 8458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8459 break 2 8460 fi 8461done 8462 done 8463IFS=$as_save_IFS 8464 8465fi 8466fi 8467ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 8468if test -n "$ac_ct_DLLTOOL"; then 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 8470$as_echo "$ac_ct_DLLTOOL" >&6; } 8471else 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8473$as_echo "no" >&6; } 8474fi 8475 8476 if test "x$ac_ct_DLLTOOL" = x; then 8477 DLLTOOL="false" 8478 else 8479 case $cross_compiling:$ac_tool_warned in 8480yes:) 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8483ac_tool_warned=yes ;; 8484esac 8485 DLLTOOL=$ac_ct_DLLTOOL 8486 fi 8487else 8488 DLLTOOL="$ac_cv_prog_DLLTOOL" 8489fi 8490 8491 if test -n "$ac_tool_prefix"; then 8492 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 8493set dummy ${ac_tool_prefix}objdump; ac_word=$2 8494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8495$as_echo_n "checking for $ac_word... " >&6; } 8496if ${ac_cv_prog_OBJDUMP+:} false; then : 8497 $as_echo_n "(cached) " >&6 8498else 8499 if test -n "$OBJDUMP"; then 8500 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 8501else 8502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8503for as_dir in $PATH 8504do 8505 IFS=$as_save_IFS 8506 test -z "$as_dir" && as_dir=. 8507 for ac_exec_ext in '' $ac_executable_extensions; do 8508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8509 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 8510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8511 break 2 8512 fi 8513done 8514 done 8515IFS=$as_save_IFS 8516 8517fi 8518fi 8519OBJDUMP=$ac_cv_prog_OBJDUMP 8520if test -n "$OBJDUMP"; then 8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 8522$as_echo "$OBJDUMP" >&6; } 8523else 8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8525$as_echo "no" >&6; } 8526fi 8527 8528 8529fi 8530if test -z "$ac_cv_prog_OBJDUMP"; then 8531 ac_ct_OBJDUMP=$OBJDUMP 8532 # Extract the first word of "objdump", so it can be a program name with args. 8533set dummy objdump; ac_word=$2 8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8535$as_echo_n "checking for $ac_word... " >&6; } 8536if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538else 8539 if test -n "$ac_ct_OBJDUMP"; then 8540 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 8541else 8542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8543for as_dir in $PATH 8544do 8545 IFS=$as_save_IFS 8546 test -z "$as_dir" && as_dir=. 8547 for ac_exec_ext in '' $ac_executable_extensions; do 8548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8549 ac_cv_prog_ac_ct_OBJDUMP="objdump" 8550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8551 break 2 8552 fi 8553done 8554 done 8555IFS=$as_save_IFS 8556 8557fi 8558fi 8559ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 8560if test -n "$ac_ct_OBJDUMP"; then 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 8562$as_echo "$ac_ct_OBJDUMP" >&6; } 8563else 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8565$as_echo "no" >&6; } 8566fi 8567 8568 if test "x$ac_ct_OBJDUMP" = x; then 8569 OBJDUMP="false" 8570 else 8571 case $cross_compiling:$ac_tool_warned in 8572yes:) 8573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8575ac_tool_warned=yes ;; 8576esac 8577 OBJDUMP=$ac_ct_OBJDUMP 8578 fi 8579else 8580 OBJDUMP="$ac_cv_prog_OBJDUMP" 8581fi 8582 8583 ;; 8584esac 8585 8586test -z "$AS" && AS=as 8587 8588 8589 8590 8591 8592test -z "$DLLTOOL" && DLLTOOL=dlltool 8593 8594 8595 8596 8597 8598test -z "$OBJDUMP" && OBJDUMP=objdump 8599 8600 8601 8602 8603 8604 8605 8606 enable_dlopen=no 8607 8608 8609 8610 # Check whether --enable-shared was given. 8611if test "${enable_shared+set}" = set; then : 8612 enableval=$enable_shared; p=${PACKAGE-default} 8613 case $enableval in 8614 yes) enable_shared=yes ;; 8615 no) enable_shared=no ;; 8616 *) 8617 enable_shared=no 8618 # Look at the argument we got. We use all the common list separators. 8619 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8620 for pkg in $enableval; do 8621 IFS=$lt_save_ifs 8622 if test "X$pkg" = "X$p"; then 8623 enable_shared=yes 8624 fi 8625 done 8626 IFS=$lt_save_ifs 8627 ;; 8628 esac 8629else 8630 enable_shared=yes 8631fi 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 # Check whether --enable-static was given. 8642if test "${enable_static+set}" = set; then : 8643 enableval=$enable_static; p=${PACKAGE-default} 8644 case $enableval in 8645 yes) enable_static=yes ;; 8646 no) enable_static=no ;; 8647 *) 8648 enable_static=no 8649 # Look at the argument we got. We use all the common list separators. 8650 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8651 for pkg in $enableval; do 8652 IFS=$lt_save_ifs 8653 if test "X$pkg" = "X$p"; then 8654 enable_static=yes 8655 fi 8656 done 8657 IFS=$lt_save_ifs 8658 ;; 8659 esac 8660else 8661 enable_static=yes 8662fi 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673# Check whether --with-pic was given. 8674if test "${with_pic+set}" = set; then : 8675 withval=$with_pic; lt_p=${PACKAGE-default} 8676 case $withval in 8677 yes|no) pic_mode=$withval ;; 8678 *) 8679 pic_mode=default 8680 # Look at the argument we got. We use all the common list separators. 8681 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8682 for lt_pkg in $withval; do 8683 IFS=$lt_save_ifs 8684 if test "X$lt_pkg" = "X$lt_p"; then 8685 pic_mode=yes 8686 fi 8687 done 8688 IFS=$lt_save_ifs 8689 ;; 8690 esac 8691else 8692 pic_mode=default 8693fi 8694 8695 8696 8697 8698 8699 8700 8701 8702 # Check whether --enable-fast-install was given. 8703if test "${enable_fast_install+set}" = set; then : 8704 enableval=$enable_fast_install; p=${PACKAGE-default} 8705 case $enableval in 8706 yes) enable_fast_install=yes ;; 8707 no) enable_fast_install=no ;; 8708 *) 8709 enable_fast_install=no 8710 # Look at the argument we got. We use all the common list separators. 8711 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 8712 for pkg in $enableval; do 8713 IFS=$lt_save_ifs 8714 if test "X$pkg" = "X$p"; then 8715 enable_fast_install=yes 8716 fi 8717 done 8718 IFS=$lt_save_ifs 8719 ;; 8720 esac 8721else 8722 enable_fast_install=yes 8723fi 8724 8725 8726 8727 8728 8729 8730 8731 8732 shared_archive_member_spec= 8733case $host,$enable_shared in 8734power*-*-aix[5-9]*,yes) 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 8736$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 8737 8738# Check whether --with-aix-soname was given. 8739if test "${with_aix_soname+set}" = set; then : 8740 withval=$with_aix_soname; case $withval in 8741 aix|svr4|both) 8742 ;; 8743 *) 8744 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 8745 ;; 8746 esac 8747 lt_cv_with_aix_soname=$with_aix_soname 8748else 8749 if ${lt_cv_with_aix_soname+:} false; then : 8750 $as_echo_n "(cached) " >&6 8751else 8752 lt_cv_with_aix_soname=aix 8753fi 8754 8755 with_aix_soname=$lt_cv_with_aix_soname 8756fi 8757 8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 8759$as_echo "$with_aix_soname" >&6; } 8760 if test aix != "$with_aix_soname"; then 8761 # For the AIX way of multilib, we name the shared archive member 8762 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 8763 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 8764 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 8765 # the AIX toolchain works better with OBJECT_MODE set (default 32). 8766 if test 64 = "${OBJECT_MODE-32}"; then 8767 shared_archive_member_spec=shr_64 8768 else 8769 shared_archive_member_spec=shr 8770 fi 8771 fi 8772 ;; 8773*) 8774 with_aix_soname=aix 8775 ;; 8776esac 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787# This can be used to rebuild libtool when needed 8788LIBTOOL_DEPS=$ltmain 8789 8790# Always use our own libtool. 8791LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822test -z "$LN_S" && LN_S="ln -s" 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837if test -n "${ZSH_VERSION+set}"; then 8838 setopt NO_GLOB_SUBST 8839fi 8840 8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8842$as_echo_n "checking for objdir... " >&6; } 8843if ${lt_cv_objdir+:} false; then : 8844 $as_echo_n "(cached) " >&6 8845else 8846 rm -f .libs 2>/dev/null 8847mkdir .libs 2>/dev/null 8848if test -d .libs; then 8849 lt_cv_objdir=.libs 8850else 8851 # MS-DOS does not allow filenames that begin with a dot. 8852 lt_cv_objdir=_libs 8853fi 8854rmdir .libs 2>/dev/null 8855fi 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8857$as_echo "$lt_cv_objdir" >&6; } 8858objdir=$lt_cv_objdir 8859 8860 8861 8862 8863 8864cat >>confdefs.h <<_ACEOF 8865#define LT_OBJDIR "$lt_cv_objdir/" 8866_ACEOF 8867 8868 8869 8870 8871case $host_os in 8872aix3*) 8873 # AIX sometimes has problems with the GCC collect2 program. For some 8874 # reason, if we set the COLLECT_NAMES environment variable, the problems 8875 # vanish in a puff of smoke. 8876 if test set != "${COLLECT_NAMES+set}"; then 8877 COLLECT_NAMES= 8878 export COLLECT_NAMES 8879 fi 8880 ;; 8881esac 8882 8883# Global variables: 8884ofile=libtool 8885can_build_shared=yes 8886 8887# All known linkers require a '.a' archive for static linking (except MSVC, 8888# which needs '.lib'). 8889libext=a 8890 8891with_gnu_ld=$lt_cv_prog_gnu_ld 8892 8893old_CC=$CC 8894old_CFLAGS=$CFLAGS 8895 8896# Set sane defaults for various variables 8897test -z "$CC" && CC=cc 8898test -z "$LTCC" && LTCC=$CC 8899test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8900test -z "$LD" && LD=ld 8901test -z "$ac_objext" && ac_objext=o 8902 8903func_cc_basename $compiler 8904cc_basename=$func_cc_basename_result 8905 8906 8907# Only perform the check for file, if the check method requires it 8908test -z "$MAGIC_CMD" && MAGIC_CMD=file 8909case $deplibs_check_method in 8910file_magic*) 8911 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8913$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8914if ${lt_cv_path_MAGIC_CMD+:} false; then : 8915 $as_echo_n "(cached) " >&6 8916else 8917 case $MAGIC_CMD in 8918[\\/*] | ?:[\\/]*) 8919 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8920 ;; 8921*) 8922 lt_save_MAGIC_CMD=$MAGIC_CMD 8923 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8925 for ac_dir in $ac_dummy; do 8926 IFS=$lt_save_ifs 8927 test -z "$ac_dir" && ac_dir=. 8928 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8929 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8930 if test -n "$file_magic_test_file"; then 8931 case $deplibs_check_method in 8932 "file_magic "*) 8933 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8934 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8936 $EGREP "$file_magic_regex" > /dev/null; then 8937 : 8938 else 8939 cat <<_LT_EOF 1>&2 8940 8941*** Warning: the command libtool uses to detect shared libraries, 8942*** $file_magic_cmd, produces output that libtool cannot recognize. 8943*** The result is that libtool may fail to recognize shared libraries 8944*** as such. This will affect the creation of libtool libraries that 8945*** depend on shared libraries, but programs linked with such libtool 8946*** libraries will work regardless of this problem. Nevertheless, you 8947*** may want to report the problem to your system manager and/or to 8948*** bug-libtool@gnu.org 8949 8950_LT_EOF 8951 fi ;; 8952 esac 8953 fi 8954 break 8955 fi 8956 done 8957 IFS=$lt_save_ifs 8958 MAGIC_CMD=$lt_save_MAGIC_CMD 8959 ;; 8960esac 8961fi 8962 8963MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8964if test -n "$MAGIC_CMD"; then 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8966$as_echo "$MAGIC_CMD" >&6; } 8967else 8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8969$as_echo "no" >&6; } 8970fi 8971 8972 8973 8974 8975 8976if test -z "$lt_cv_path_MAGIC_CMD"; then 8977 if test -n "$ac_tool_prefix"; then 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8979$as_echo_n "checking for file... " >&6; } 8980if ${lt_cv_path_MAGIC_CMD+:} false; then : 8981 $as_echo_n "(cached) " >&6 8982else 8983 case $MAGIC_CMD in 8984[\\/*] | ?:[\\/]*) 8985 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8986 ;; 8987*) 8988 lt_save_MAGIC_CMD=$MAGIC_CMD 8989 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8991 for ac_dir in $ac_dummy; do 8992 IFS=$lt_save_ifs 8993 test -z "$ac_dir" && ac_dir=. 8994 if test -f "$ac_dir/file"; then 8995 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8996 if test -n "$file_magic_test_file"; then 8997 case $deplibs_check_method in 8998 "file_magic "*) 8999 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9000 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9002 $EGREP "$file_magic_regex" > /dev/null; then 9003 : 9004 else 9005 cat <<_LT_EOF 1>&2 9006 9007*** Warning: the command libtool uses to detect shared libraries, 9008*** $file_magic_cmd, produces output that libtool cannot recognize. 9009*** The result is that libtool may fail to recognize shared libraries 9010*** as such. This will affect the creation of libtool libraries that 9011*** depend on shared libraries, but programs linked with such libtool 9012*** libraries will work regardless of this problem. Nevertheless, you 9013*** may want to report the problem to your system manager and/or to 9014*** bug-libtool@gnu.org 9015 9016_LT_EOF 9017 fi ;; 9018 esac 9019 fi 9020 break 9021 fi 9022 done 9023 IFS=$lt_save_ifs 9024 MAGIC_CMD=$lt_save_MAGIC_CMD 9025 ;; 9026esac 9027fi 9028 9029MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9030if test -n "$MAGIC_CMD"; then 9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9032$as_echo "$MAGIC_CMD" >&6; } 9033else 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9035$as_echo "no" >&6; } 9036fi 9037 9038 9039 else 9040 MAGIC_CMD=: 9041 fi 9042fi 9043 9044 fi 9045 ;; 9046esac 9047 9048# Use C for the default configuration in the libtool script 9049 9050lt_save_CC=$CC 9051ac_ext=c 9052ac_cpp='$CPP $CPPFLAGS' 9053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9055ac_compiler_gnu=$ac_cv_c_compiler_gnu 9056 9057 9058# Source file extension for C test sources. 9059ac_ext=c 9060 9061# Object file extension for compiled C test sources. 9062objext=o 9063objext=$objext 9064 9065# Code to be used in simple compile tests 9066lt_simple_compile_test_code="int some_variable = 0;" 9067 9068# Code to be used in simple link tests 9069lt_simple_link_test_code='int main(){return(0);}' 9070 9071 9072 9073 9074 9075 9076 9077# If no C compiler was specified, use CC. 9078LTCC=${LTCC-"$CC"} 9079 9080# If no C compiler flags were specified, use CFLAGS. 9081LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9082 9083# Allow CC to be a program name with arguments. 9084compiler=$CC 9085 9086# Save the default compiler, since it gets overwritten when the other 9087# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9088compiler_DEFAULT=$CC 9089 9090# save warnings/boilerplate of simple test code 9091ac_outfile=conftest.$ac_objext 9092echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9093eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9094_lt_compiler_boilerplate=`cat conftest.err` 9095$RM conftest* 9096 9097ac_outfile=conftest.$ac_objext 9098echo "$lt_simple_link_test_code" >conftest.$ac_ext 9099eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9100_lt_linker_boilerplate=`cat conftest.err` 9101$RM -r conftest* 9102 9103 9104## CAVEAT EMPTOR: 9105## There is no encapsulation within the following macros, do not change 9106## the running order or otherwise move them around unless you know exactly 9107## what you are doing... 9108if test -n "$compiler"; then 9109 9110lt_prog_compiler_no_builtin_flag= 9111 9112if test yes = "$GCC"; then 9113 case $cc_basename in 9114 nvcc*) 9115 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9116 *) 9117 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9118 esac 9119 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9121$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9122if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9123 $as_echo_n "(cached) " >&6 9124else 9125 lt_cv_prog_compiler_rtti_exceptions=no 9126 ac_outfile=conftest.$ac_objext 9127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9128 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9129 # Insert the option either (1) after the last *FLAGS variable, or 9130 # (2) before a word containing "conftest.", or (3) at the end. 9131 # Note that $ac_compile itself does not contain backslashes and begins 9132 # with a dollar sign (not a hyphen), so the echo should work correctly. 9133 # The option is referenced via a variable to avoid confusing sed. 9134 lt_compile=`echo "$ac_compile" | $SED \ 9135 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9136 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9137 -e 's:$: $lt_compiler_flag:'` 9138 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9139 (eval "$lt_compile" 2>conftest.err) 9140 ac_status=$? 9141 cat conftest.err >&5 9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9143 if (exit $ac_status) && test -s "$ac_outfile"; then 9144 # The compiler can only warn and ignore the option if not recognized 9145 # So say no if there are warnings other than the usual output. 9146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9148 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9149 lt_cv_prog_compiler_rtti_exceptions=yes 9150 fi 9151 fi 9152 $RM conftest* 9153 9154fi 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9156$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9157 9158if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9159 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9160else 9161 : 9162fi 9163 9164fi 9165 9166 9167 9168 9169 9170 9171 lt_prog_compiler_wl= 9172lt_prog_compiler_pic= 9173lt_prog_compiler_static= 9174 9175 9176 if test yes = "$GCC"; then 9177 lt_prog_compiler_wl='-Wl,' 9178 lt_prog_compiler_static='-static' 9179 9180 case $host_os in 9181 aix*) 9182 # All AIX code is PIC. 9183 if test ia64 = "$host_cpu"; then 9184 # AIX 5 now supports IA64 processor 9185 lt_prog_compiler_static='-Bstatic' 9186 fi 9187 lt_prog_compiler_pic='-fPIC' 9188 ;; 9189 9190 amigaos*) 9191 case $host_cpu in 9192 powerpc) 9193 # see comment about AmigaOS4 .so support 9194 lt_prog_compiler_pic='-fPIC' 9195 ;; 9196 m68k) 9197 # FIXME: we need at least 68020 code to build shared libraries, but 9198 # adding the '-m68020' flag to GCC prevents building anything better, 9199 # like '-m68040'. 9200 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9201 ;; 9202 esac 9203 ;; 9204 9205 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9206 # PIC is the default for these OSes. 9207 ;; 9208 9209 mingw* | cygwin* | pw32* | os2* | cegcc*) 9210 # This hack is so that the source file can tell whether it is being 9211 # built for inclusion in a dll (and should export symbols for example). 9212 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9213 # (--disable-auto-import) libraries 9214 lt_prog_compiler_pic='-DDLL_EXPORT' 9215 case $host_os in 9216 os2*) 9217 lt_prog_compiler_static='$wl-static' 9218 ;; 9219 esac 9220 ;; 9221 9222 darwin* | rhapsody*) 9223 # PIC is the default on this platform 9224 # Common symbols not allowed in MH_DYLIB files 9225 lt_prog_compiler_pic='-fno-common' 9226 ;; 9227 9228 haiku*) 9229 # PIC is the default for Haiku. 9230 # The "-static" flag exists, but is broken. 9231 lt_prog_compiler_static= 9232 ;; 9233 9234 hpux*) 9235 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9236 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9237 # sets the default TLS model and affects inlining. 9238 case $host_cpu in 9239 hppa*64*) 9240 # +Z the default 9241 ;; 9242 *) 9243 lt_prog_compiler_pic='-fPIC' 9244 ;; 9245 esac 9246 ;; 9247 9248 interix[3-9]*) 9249 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9250 # Instead, we relocate shared libraries at runtime. 9251 ;; 9252 9253 msdosdjgpp*) 9254 # Just because we use GCC doesn't mean we suddenly get shared libraries 9255 # on systems that don't support them. 9256 lt_prog_compiler_can_build_shared=no 9257 enable_shared=no 9258 ;; 9259 9260 *nto* | *qnx*) 9261 # QNX uses GNU C++, but need to define -shared option too, otherwise 9262 # it will coredump. 9263 lt_prog_compiler_pic='-fPIC -shared' 9264 ;; 9265 9266 sysv4*MP*) 9267 if test -d /usr/nec; then 9268 lt_prog_compiler_pic=-Kconform_pic 9269 fi 9270 ;; 9271 9272 *) 9273 lt_prog_compiler_pic='-fPIC' 9274 ;; 9275 esac 9276 9277 case $cc_basename in 9278 nvcc*) # Cuda Compiler Driver 2.2 9279 lt_prog_compiler_wl='-Xlinker ' 9280 if test -n "$lt_prog_compiler_pic"; then 9281 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9282 fi 9283 ;; 9284 esac 9285 else 9286 # PORTME Check for flag to pass linker flags through the system compiler. 9287 case $host_os in 9288 aix*) 9289 lt_prog_compiler_wl='-Wl,' 9290 if test ia64 = "$host_cpu"; then 9291 # AIX 5 now supports IA64 processor 9292 lt_prog_compiler_static='-Bstatic' 9293 else 9294 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9295 fi 9296 ;; 9297 9298 darwin* | rhapsody*) 9299 # PIC is the default on this platform 9300 # Common symbols not allowed in MH_DYLIB files 9301 lt_prog_compiler_pic='-fno-common' 9302 case $cc_basename in 9303 nagfor*) 9304 # NAG Fortran compiler 9305 lt_prog_compiler_wl='-Wl,-Wl,,' 9306 lt_prog_compiler_pic='-PIC' 9307 lt_prog_compiler_static='-Bstatic' 9308 ;; 9309 esac 9310 ;; 9311 9312 mingw* | cygwin* | pw32* | os2* | cegcc*) 9313 # This hack is so that the source file can tell whether it is being 9314 # built for inclusion in a dll (and should export symbols for example). 9315 lt_prog_compiler_pic='-DDLL_EXPORT' 9316 case $host_os in 9317 os2*) 9318 lt_prog_compiler_static='$wl-static' 9319 ;; 9320 esac 9321 ;; 9322 9323 hpux9* | hpux10* | hpux11*) 9324 lt_prog_compiler_wl='-Wl,' 9325 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9326 # not for PA HP-UX. 9327 case $host_cpu in 9328 hppa*64*|ia64*) 9329 # +Z the default 9330 ;; 9331 *) 9332 lt_prog_compiler_pic='+Z' 9333 ;; 9334 esac 9335 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9336 lt_prog_compiler_static='$wl-a ${wl}archive' 9337 ;; 9338 9339 irix5* | irix6* | nonstopux*) 9340 lt_prog_compiler_wl='-Wl,' 9341 # PIC (with -KPIC) is the default. 9342 lt_prog_compiler_static='-non_shared' 9343 ;; 9344 9345 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 9346 case $cc_basename in 9347 # old Intel for x86_64, which still supported -KPIC. 9348 ecc*) 9349 lt_prog_compiler_wl='-Wl,' 9350 lt_prog_compiler_pic='-KPIC' 9351 lt_prog_compiler_static='-static' 9352 ;; 9353 # icc used to be incompatible with GCC. 9354 # ICC 10 doesn't accept -KPIC any more. 9355 icc* | ifort*) 9356 lt_prog_compiler_wl='-Wl,' 9357 lt_prog_compiler_pic='-fPIC' 9358 lt_prog_compiler_static='-static' 9359 ;; 9360 # Lahey Fortran 8.1. 9361 lf95*) 9362 lt_prog_compiler_wl='-Wl,' 9363 lt_prog_compiler_pic='--shared' 9364 lt_prog_compiler_static='--static' 9365 ;; 9366 nagfor*) 9367 # NAG Fortran compiler 9368 lt_prog_compiler_wl='-Wl,-Wl,,' 9369 lt_prog_compiler_pic='-PIC' 9370 lt_prog_compiler_static='-Bstatic' 9371 ;; 9372 tcc*) 9373 # Fabrice Bellard et al's Tiny C Compiler 9374 lt_prog_compiler_wl='-Wl,' 9375 lt_prog_compiler_pic='-fPIC' 9376 lt_prog_compiler_static='-static' 9377 ;; 9378 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9379 # Portland Group compilers (*not* the Pentium gcc compiler, 9380 # which looks to be a dead project) 9381 lt_prog_compiler_wl='-Wl,' 9382 lt_prog_compiler_pic='-fpic' 9383 lt_prog_compiler_static='-Bstatic' 9384 ;; 9385 ccc*) 9386 lt_prog_compiler_wl='-Wl,' 9387 # All Alpha code is PIC. 9388 lt_prog_compiler_static='-non_shared' 9389 ;; 9390 xl* | bgxl* | bgf* | mpixl*) 9391 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9392 lt_prog_compiler_wl='-Wl,' 9393 lt_prog_compiler_pic='-qpic' 9394 lt_prog_compiler_static='-qstaticlink' 9395 ;; 9396 *) 9397 case `$CC -V 2>&1 | sed 5q` in 9398 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 9399 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9400 lt_prog_compiler_pic='-KPIC' 9401 lt_prog_compiler_static='-Bstatic' 9402 lt_prog_compiler_wl='' 9403 ;; 9404 *Sun\ F* | *Sun*Fortran*) 9405 lt_prog_compiler_pic='-KPIC' 9406 lt_prog_compiler_static='-Bstatic' 9407 lt_prog_compiler_wl='-Qoption ld ' 9408 ;; 9409 *Sun\ C*) 9410 # Sun C 5.9 9411 lt_prog_compiler_pic='-KPIC' 9412 lt_prog_compiler_static='-Bstatic' 9413 lt_prog_compiler_wl='-Wl,' 9414 ;; 9415 *Intel*\ [CF]*Compiler*) 9416 lt_prog_compiler_wl='-Wl,' 9417 lt_prog_compiler_pic='-fPIC' 9418 lt_prog_compiler_static='-static' 9419 ;; 9420 *Portland\ Group*) 9421 lt_prog_compiler_wl='-Wl,' 9422 lt_prog_compiler_pic='-fpic' 9423 lt_prog_compiler_static='-Bstatic' 9424 ;; 9425 esac 9426 ;; 9427 esac 9428 ;; 9429 9430 newsos6) 9431 lt_prog_compiler_pic='-KPIC' 9432 lt_prog_compiler_static='-Bstatic' 9433 ;; 9434 9435 *nto* | *qnx*) 9436 # QNX uses GNU C++, but need to define -shared option too, otherwise 9437 # it will coredump. 9438 lt_prog_compiler_pic='-fPIC -shared' 9439 ;; 9440 9441 osf3* | osf4* | osf5*) 9442 lt_prog_compiler_wl='-Wl,' 9443 # All OSF/1 code is PIC. 9444 lt_prog_compiler_static='-non_shared' 9445 ;; 9446 9447 rdos*) 9448 lt_prog_compiler_static='-non_shared' 9449 ;; 9450 9451 solaris*) 9452 lt_prog_compiler_pic='-KPIC' 9453 lt_prog_compiler_static='-Bstatic' 9454 case $cc_basename in 9455 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9456 lt_prog_compiler_wl='-Qoption ld ';; 9457 *) 9458 lt_prog_compiler_wl='-Wl,';; 9459 esac 9460 ;; 9461 9462 sunos4*) 9463 lt_prog_compiler_wl='-Qoption ld ' 9464 lt_prog_compiler_pic='-PIC' 9465 lt_prog_compiler_static='-Bstatic' 9466 ;; 9467 9468 sysv4 | sysv4.2uw2* | sysv4.3*) 9469 lt_prog_compiler_wl='-Wl,' 9470 lt_prog_compiler_pic='-KPIC' 9471 lt_prog_compiler_static='-Bstatic' 9472 ;; 9473 9474 sysv4*MP*) 9475 if test -d /usr/nec; then 9476 lt_prog_compiler_pic='-Kconform_pic' 9477 lt_prog_compiler_static='-Bstatic' 9478 fi 9479 ;; 9480 9481 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9482 lt_prog_compiler_wl='-Wl,' 9483 lt_prog_compiler_pic='-KPIC' 9484 lt_prog_compiler_static='-Bstatic' 9485 ;; 9486 9487 unicos*) 9488 lt_prog_compiler_wl='-Wl,' 9489 lt_prog_compiler_can_build_shared=no 9490 ;; 9491 9492 uts4*) 9493 lt_prog_compiler_pic='-pic' 9494 lt_prog_compiler_static='-Bstatic' 9495 ;; 9496 9497 *) 9498 lt_prog_compiler_can_build_shared=no 9499 ;; 9500 esac 9501 fi 9502 9503case $host_os in 9504 # For platforms that do not support PIC, -DPIC is meaningless: 9505 *djgpp*) 9506 lt_prog_compiler_pic= 9507 ;; 9508 *) 9509 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9510 ;; 9511esac 9512 9513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 9514$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 9515if ${lt_cv_prog_compiler_pic+:} false; then : 9516 $as_echo_n "(cached) " >&6 9517else 9518 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 9519fi 9520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 9521$as_echo "$lt_cv_prog_compiler_pic" >&6; } 9522lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 9523 9524# 9525# Check to make sure the PIC flag actually works. 9526# 9527if test -n "$lt_prog_compiler_pic"; then 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9529$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9530if ${lt_cv_prog_compiler_pic_works+:} false; then : 9531 $as_echo_n "(cached) " >&6 9532else 9533 lt_cv_prog_compiler_pic_works=no 9534 ac_outfile=conftest.$ac_objext 9535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9536 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 9537 # Insert the option either (1) after the last *FLAGS variable, or 9538 # (2) before a word containing "conftest.", or (3) at the end. 9539 # Note that $ac_compile itself does not contain backslashes and begins 9540 # with a dollar sign (not a hyphen), so the echo should work correctly. 9541 # The option is referenced via a variable to avoid confusing sed. 9542 lt_compile=`echo "$ac_compile" | $SED \ 9543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9545 -e 's:$: $lt_compiler_flag:'` 9546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9547 (eval "$lt_compile" 2>conftest.err) 9548 ac_status=$? 9549 cat conftest.err >&5 9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9551 if (exit $ac_status) && test -s "$ac_outfile"; then 9552 # The compiler can only warn and ignore the option if not recognized 9553 # So say no if there are warnings other than the usual output. 9554 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9555 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9556 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9557 lt_cv_prog_compiler_pic_works=yes 9558 fi 9559 fi 9560 $RM conftest* 9561 9562fi 9563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9564$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9565 9566if test yes = "$lt_cv_prog_compiler_pic_works"; then 9567 case $lt_prog_compiler_pic in 9568 "" | " "*) ;; 9569 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9570 esac 9571else 9572 lt_prog_compiler_pic= 9573 lt_prog_compiler_can_build_shared=no 9574fi 9575 9576fi 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588# 9589# Check to make sure the static flag actually works. 9590# 9591wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9593$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9594if ${lt_cv_prog_compiler_static_works+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596else 9597 lt_cv_prog_compiler_static_works=no 9598 save_LDFLAGS=$LDFLAGS 9599 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9600 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9601 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9602 # The linker can only warn and ignore the option if not recognized 9603 # So say no if there are warnings 9604 if test -s conftest.err; then 9605 # Append any errors to the config.log. 9606 cat conftest.err 1>&5 9607 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9608 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9609 if diff conftest.exp conftest.er2 >/dev/null; then 9610 lt_cv_prog_compiler_static_works=yes 9611 fi 9612 else 9613 lt_cv_prog_compiler_static_works=yes 9614 fi 9615 fi 9616 $RM -r conftest* 9617 LDFLAGS=$save_LDFLAGS 9618 9619fi 9620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9621$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9622 9623if test yes = "$lt_cv_prog_compiler_static_works"; then 9624 : 9625else 9626 lt_prog_compiler_static= 9627fi 9628 9629 9630 9631 9632 9633 9634 9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9636$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9637if ${lt_cv_prog_compiler_c_o+:} false; then : 9638 $as_echo_n "(cached) " >&6 9639else 9640 lt_cv_prog_compiler_c_o=no 9641 $RM -r conftest 2>/dev/null 9642 mkdir conftest 9643 cd conftest 9644 mkdir out 9645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9646 9647 lt_compiler_flag="-o out/conftest2.$ac_objext" 9648 # Insert the option either (1) after the last *FLAGS variable, or 9649 # (2) before a word containing "conftest.", or (3) at the end. 9650 # Note that $ac_compile itself does not contain backslashes and begins 9651 # with a dollar sign (not a hyphen), so the echo should work correctly. 9652 lt_compile=`echo "$ac_compile" | $SED \ 9653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9654 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9655 -e 's:$: $lt_compiler_flag:'` 9656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9657 (eval "$lt_compile" 2>out/conftest.err) 9658 ac_status=$? 9659 cat out/conftest.err >&5 9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9661 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9662 then 9663 # The compiler can only warn and ignore the option if not recognized 9664 # So say no if there are warnings 9665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9668 lt_cv_prog_compiler_c_o=yes 9669 fi 9670 fi 9671 chmod u+w . 2>&5 9672 $RM conftest* 9673 # SGI C++ compiler will create directory out/ii_files/ for 9674 # template instantiation 9675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9676 $RM out/* && rmdir out 9677 cd .. 9678 $RM -r conftest 9679 $RM conftest* 9680 9681fi 9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9683$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9684 9685 9686 9687 9688 9689 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9691$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9692if ${lt_cv_prog_compiler_c_o+:} false; then : 9693 $as_echo_n "(cached) " >&6 9694else 9695 lt_cv_prog_compiler_c_o=no 9696 $RM -r conftest 2>/dev/null 9697 mkdir conftest 9698 cd conftest 9699 mkdir out 9700 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9701 9702 lt_compiler_flag="-o out/conftest2.$ac_objext" 9703 # Insert the option either (1) after the last *FLAGS variable, or 9704 # (2) before a word containing "conftest.", or (3) at the end. 9705 # Note that $ac_compile itself does not contain backslashes and begins 9706 # with a dollar sign (not a hyphen), so the echo should work correctly. 9707 lt_compile=`echo "$ac_compile" | $SED \ 9708 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9709 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9710 -e 's:$: $lt_compiler_flag:'` 9711 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9712 (eval "$lt_compile" 2>out/conftest.err) 9713 ac_status=$? 9714 cat out/conftest.err >&5 9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9716 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9717 then 9718 # The compiler can only warn and ignore the option if not recognized 9719 # So say no if there are warnings 9720 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9721 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9722 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9723 lt_cv_prog_compiler_c_o=yes 9724 fi 9725 fi 9726 chmod u+w . 2>&5 9727 $RM conftest* 9728 # SGI C++ compiler will create directory out/ii_files/ for 9729 # template instantiation 9730 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9731 $RM out/* && rmdir out 9732 cd .. 9733 $RM -r conftest 9734 $RM conftest* 9735 9736fi 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9738$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9739 9740 9741 9742 9743hard_links=nottested 9744if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 9745 # do not overwrite the value of need_locks provided by the user 9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9747$as_echo_n "checking if we can lock with hard links... " >&6; } 9748 hard_links=yes 9749 $RM conftest* 9750 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9751 touch conftest.a 9752 ln conftest.a conftest.b 2>&5 || hard_links=no 9753 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9755$as_echo "$hard_links" >&6; } 9756 if test no = "$hard_links"; then 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 9758$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 9759 need_locks=warn 9760 fi 9761else 9762 need_locks=no 9763fi 9764 9765 9766 9767 9768 9769 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9771$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9772 9773 runpath_var= 9774 allow_undefined_flag= 9775 always_export_symbols=no 9776 archive_cmds= 9777 archive_expsym_cmds= 9778 compiler_needs_object=no 9779 enable_shared_with_static_runtimes=no 9780 export_dynamic_flag_spec= 9781 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9782 hardcode_automatic=no 9783 hardcode_direct=no 9784 hardcode_direct_absolute=no 9785 hardcode_libdir_flag_spec= 9786 hardcode_libdir_separator= 9787 hardcode_minus_L=no 9788 hardcode_shlibpath_var=unsupported 9789 inherit_rpath=no 9790 link_all_deplibs=unknown 9791 module_cmds= 9792 module_expsym_cmds= 9793 old_archive_from_new_cmds= 9794 old_archive_from_expsyms_cmds= 9795 thread_safe_flag_spec= 9796 whole_archive_flag_spec= 9797 # include_expsyms should be a list of space-separated symbols to be *always* 9798 # included in the symbol list 9799 include_expsyms= 9800 # exclude_expsyms can be an extended regexp of symbols to exclude 9801 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9802 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9803 # as well as any symbol that contains 'd'. 9804 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9805 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9806 # platforms (ab)use it in PIC code, but their linkers get confused if 9807 # the symbol is explicitly referenced. Since portable code cannot 9808 # rely on this symbol name, it's probably fine to never include it in 9809 # preloaded symbol tables. 9810 # Exclude shared library initialization/finalization symbols. 9811 extract_expsyms_cmds= 9812 9813 case $host_os in 9814 cygwin* | mingw* | pw32* | cegcc*) 9815 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9816 # When not using gcc, we currently assume that we are using 9817 # Microsoft Visual C++. 9818 if test yes != "$GCC"; then 9819 with_gnu_ld=no 9820 fi 9821 ;; 9822 interix*) 9823 # we just hope/assume this is gcc and not c89 (= MSVC++) 9824 with_gnu_ld=yes 9825 ;; 9826 openbsd* | bitrig*) 9827 with_gnu_ld=no 9828 ;; 9829 esac 9830 9831 ld_shlibs=yes 9832 9833 # On some targets, GNU ld is compatible enough with the native linker 9834 # that we're better off using the native interface for both. 9835 lt_use_gnu_ld_interface=no 9836 if test yes = "$with_gnu_ld"; then 9837 case $host_os in 9838 aix*) 9839 # The AIX port of GNU ld has always aspired to compatibility 9840 # with the native linker. However, as the warning in the GNU ld 9841 # block says, versions before 2.19.5* couldn't really create working 9842 # shared libraries, regardless of the interface used. 9843 case `$LD -v 2>&1` in 9844 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9845 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9846 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9847 *) 9848 lt_use_gnu_ld_interface=yes 9849 ;; 9850 esac 9851 ;; 9852 *) 9853 lt_use_gnu_ld_interface=yes 9854 ;; 9855 esac 9856 fi 9857 9858 if test yes = "$lt_use_gnu_ld_interface"; then 9859 # If archive_cmds runs LD, not CC, wlarc should be empty 9860 wlarc='$wl' 9861 9862 # Set some defaults for GNU ld with shared library support. These 9863 # are reset later if shared libraries are not supported. Putting them 9864 # here allows them to be overridden if necessary. 9865 runpath_var=LD_RUN_PATH 9866 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9867 export_dynamic_flag_spec='$wl--export-dynamic' 9868 # ancient GNU ld didn't support --whole-archive et. al. 9869 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9870 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9871 else 9872 whole_archive_flag_spec= 9873 fi 9874 supports_anon_versioning=no 9875 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9876 *GNU\ gold*) supports_anon_versioning=yes ;; 9877 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9878 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9879 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9880 *\ 2.11.*) ;; # other 2.11 versions 9881 *) supports_anon_versioning=yes ;; 9882 esac 9883 9884 # See if GNU ld supports shared libraries. 9885 case $host_os in 9886 aix[3-9]*) 9887 # On AIX/PPC, the GNU linker is very broken 9888 if test ia64 != "$host_cpu"; then 9889 ld_shlibs=no 9890 cat <<_LT_EOF 1>&2 9891 9892*** Warning: the GNU linker, at least up to release 2.19, is reported 9893*** to be unable to reliably create shared libraries on AIX. 9894*** Therefore, libtool is disabling shared libraries support. If you 9895*** really care for shared libraries, you may want to install binutils 9896*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9897*** You will then need to restart the configuration process. 9898 9899_LT_EOF 9900 fi 9901 ;; 9902 9903 amigaos*) 9904 case $host_cpu in 9905 powerpc) 9906 # see comment about AmigaOS4 .so support 9907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9908 archive_expsym_cmds='' 9909 ;; 9910 m68k) 9911 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)' 9912 hardcode_libdir_flag_spec='-L$libdir' 9913 hardcode_minus_L=yes 9914 ;; 9915 esac 9916 ;; 9917 9918 beos*) 9919 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9920 allow_undefined_flag=unsupported 9921 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9922 # support --undefined. This deserves some investigation. FIXME 9923 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9924 else 9925 ld_shlibs=no 9926 fi 9927 ;; 9928 9929 cygwin* | mingw* | pw32* | cegcc*) 9930 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9931 # as there is no search path for DLLs. 9932 hardcode_libdir_flag_spec='-L$libdir' 9933 export_dynamic_flag_spec='$wl--export-all-symbols' 9934 allow_undefined_flag=unsupported 9935 always_export_symbols=no 9936 enable_shared_with_static_runtimes=yes 9937 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' 9938 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9939 9940 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9941 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9942 # If the export-symbols file already is a .def file, use it as 9943 # is; otherwise, prepend EXPORTS... 9944 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9945 cp $export_symbols $output_objdir/$soname.def; 9946 else 9947 echo EXPORTS > $output_objdir/$soname.def; 9948 cat $export_symbols >> $output_objdir/$soname.def; 9949 fi~ 9950 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9951 else 9952 ld_shlibs=no 9953 fi 9954 ;; 9955 9956 haiku*) 9957 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9958 link_all_deplibs=yes 9959 ;; 9960 9961 os2*) 9962 hardcode_libdir_flag_spec='-L$libdir' 9963 hardcode_minus_L=yes 9964 allow_undefined_flag=unsupported 9965 shrext_cmds=.dll 9966 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9967 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9968 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9969 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9970 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9971 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9972 emximp -o $lib $output_objdir/$libname.def' 9973 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9974 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9975 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9976 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9977 prefix_cmds="$SED"~ 9978 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9979 prefix_cmds="$prefix_cmds -e 1d"; 9980 fi~ 9981 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9982 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9984 emximp -o $lib $output_objdir/$libname.def' 9985 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9986 enable_shared_with_static_runtimes=yes 9987 ;; 9988 9989 interix[3-9]*) 9990 hardcode_direct=no 9991 hardcode_shlibpath_var=no 9992 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9993 export_dynamic_flag_spec='$wl-E' 9994 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9995 # Instead, shared libraries are loaded at an image base (0x10000000 by 9996 # default) and relocated if they conflict, which is a slow very memory 9997 # consuming and fragmenting process. To avoid this, we pick a random, 9998 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9999 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10001 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' 10002 ;; 10003 10004 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10005 tmp_diet=no 10006 if test linux-dietlibc = "$host_os"; then 10007 case $cc_basename in 10008 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10009 esac 10010 fi 10011 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10012 && test no = "$tmp_diet" 10013 then 10014 tmp_addflag=' $pic_flag' 10015 tmp_sharedflag='-shared' 10016 case $cc_basename,$host_cpu in 10017 pgcc*) # Portland Group C compiler 10018 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' 10019 tmp_addflag=' $pic_flag' 10020 ;; 10021 pgf77* | pgf90* | pgf95* | pgfortran*) 10022 # Portland Group f77 and f90 compilers 10023 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' 10024 tmp_addflag=' $pic_flag -Mnomain' ;; 10025 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10026 tmp_addflag=' -i_dynamic' ;; 10027 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10028 tmp_addflag=' -i_dynamic -nofor_main' ;; 10029 ifc* | ifort*) # Intel Fortran compiler 10030 tmp_addflag=' -nofor_main' ;; 10031 lf95*) # Lahey Fortran 8.1 10032 whole_archive_flag_spec= 10033 tmp_sharedflag='--shared' ;; 10034 nagfor*) # NAGFOR 5.3 10035 tmp_sharedflag='-Wl,-shared' ;; 10036 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10037 tmp_sharedflag='-qmkshrobj' 10038 tmp_addflag= ;; 10039 nvcc*) # Cuda Compiler Driver 2.2 10040 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' 10041 compiler_needs_object=yes 10042 ;; 10043 esac 10044 case `$CC -V 2>&1 | sed 5q` in 10045 *Sun\ C*) # Sun C 5.9 10046 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' 10047 compiler_needs_object=yes 10048 tmp_sharedflag='-G' ;; 10049 *Sun\ F*) # Sun Fortran 8.3 10050 tmp_sharedflag='-G' ;; 10051 esac 10052 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10053 10054 if test yes = "$supports_anon_versioning"; then 10055 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10056 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10057 echo "local: *; };" >> $output_objdir/$libname.ver~ 10058 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10059 fi 10060 10061 case $cc_basename in 10062 tcc*) 10063 export_dynamic_flag_spec='-rdynamic' 10064 ;; 10065 xlf* | bgf* | bgxlf* | mpixlf*) 10066 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10067 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10068 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10069 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10070 if test yes = "$supports_anon_versioning"; then 10071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10073 echo "local: *; };" >> $output_objdir/$libname.ver~ 10074 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10075 fi 10076 ;; 10077 esac 10078 else 10079 ld_shlibs=no 10080 fi 10081 ;; 10082 10083 netbsd*) 10084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10086 wlarc= 10087 else 10088 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10089 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10090 fi 10091 ;; 10092 10093 solaris*) 10094 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10095 ld_shlibs=no 10096 cat <<_LT_EOF 1>&2 10097 10098*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10099*** create shared libraries on Solaris systems. Therefore, libtool 10100*** is disabling shared libraries support. We urge you to upgrade GNU 10101*** binutils to release 2.9.1 or newer. Another option is to modify 10102*** your PATH or compiler configuration so that the native linker is 10103*** used, and then restart. 10104 10105_LT_EOF 10106 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10108 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10109 else 10110 ld_shlibs=no 10111 fi 10112 ;; 10113 10114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10115 case `$LD -v 2>&1` in 10116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10117 ld_shlibs=no 10118 cat <<_LT_EOF 1>&2 10119 10120*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10121*** reliably create shared libraries on SCO systems. Therefore, libtool 10122*** is disabling shared libraries support. We urge you to upgrade GNU 10123*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10124*** your PATH or compiler configuration so that the native linker is 10125*** used, and then restart. 10126 10127_LT_EOF 10128 ;; 10129 *) 10130 # For security reasons, it is highly recommended that you always 10131 # use absolute paths for naming shared libraries, and exclude the 10132 # DT_RUNPATH tag from executables and libraries. But doing so 10133 # requires that you compile everything twice, which is a pain. 10134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10135 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10138 else 10139 ld_shlibs=no 10140 fi 10141 ;; 10142 esac 10143 ;; 10144 10145 sunos4*) 10146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10147 wlarc= 10148 hardcode_direct=yes 10149 hardcode_shlibpath_var=no 10150 ;; 10151 10152 *) 10153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10155 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10156 else 10157 ld_shlibs=no 10158 fi 10159 ;; 10160 esac 10161 10162 if test no = "$ld_shlibs"; then 10163 runpath_var= 10164 hardcode_libdir_flag_spec= 10165 export_dynamic_flag_spec= 10166 whole_archive_flag_spec= 10167 fi 10168 else 10169 # PORTME fill in a description of your system's linker (not GNU ld) 10170 case $host_os in 10171 aix3*) 10172 allow_undefined_flag=unsupported 10173 always_export_symbols=yes 10174 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' 10175 # Note: this linker hardcodes the directories in LIBPATH if there 10176 # are no directories specified by -L. 10177 hardcode_minus_L=yes 10178 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10179 # Neither direct hardcoding nor static linking is supported with a 10180 # broken collect2. 10181 hardcode_direct=unsupported 10182 fi 10183 ;; 10184 10185 aix[4-9]*) 10186 if test ia64 = "$host_cpu"; then 10187 # On IA64, the linker does run time linking by default, so we don't 10188 # have to do anything special. 10189 aix_use_runtimelinking=no 10190 exp_sym_flag='-Bexport' 10191 no_entry_flag= 10192 else 10193 # If we're using GNU nm, then we don't want the "-C" option. 10194 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10195 # Without the "-l" option, or with the "-B" option, AIX nm treats 10196 # weak defined symbols like other global defined symbols, whereas 10197 # GNU nm marks them as "W". 10198 # While the 'weak' keyword is ignored in the Export File, we need 10199 # it in the Import File for the 'aix-soname' feature, so we have 10200 # to replace the "-B" option with "-P" for AIX nm. 10201 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10202 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10203 else 10204 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10205 fi 10206 aix_use_runtimelinking=no 10207 10208 # Test if we are trying to use run time linking or normal 10209 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10210 # have runtime linking enabled, and use it for executables. 10211 # For shared libraries, we enable/disable runtime linking 10212 # depending on the kind of the shared library created - 10213 # when "with_aix_soname,aix_use_runtimelinking" is: 10214 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10215 # "aix,yes" lib.so shared, rtl:yes, for executables 10216 # lib.a static archive 10217 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10218 # lib.a(lib.so.V) shared, rtl:no, for executables 10219 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10220 # lib.a(lib.so.V) shared, rtl:no 10221 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10222 # lib.a static archive 10223 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10224 for ld_flag in $LDFLAGS; do 10225 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10226 aix_use_runtimelinking=yes 10227 break 10228 fi 10229 done 10230 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10231 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10232 # so we don't have lib.a shared libs to link our executables. 10233 # We have to force runtime linking in this case. 10234 aix_use_runtimelinking=yes 10235 LDFLAGS="$LDFLAGS -Wl,-brtl" 10236 fi 10237 ;; 10238 esac 10239 10240 exp_sym_flag='-bexport' 10241 no_entry_flag='-bnoentry' 10242 fi 10243 10244 # When large executables or shared objects are built, AIX ld can 10245 # have problems creating the table of contents. If linking a library 10246 # or program results in "error TOC overflow" add -mminimal-toc to 10247 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10248 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10249 10250 archive_cmds='' 10251 hardcode_direct=yes 10252 hardcode_direct_absolute=yes 10253 hardcode_libdir_separator=':' 10254 link_all_deplibs=yes 10255 file_list_spec='$wl-f,' 10256 case $with_aix_soname,$aix_use_runtimelinking in 10257 aix,*) ;; # traditional, no import file 10258 svr4,* | *,yes) # use import file 10259 # The Import File defines what to hardcode. 10260 hardcode_direct=no 10261 hardcode_direct_absolute=no 10262 ;; 10263 esac 10264 10265 if test yes = "$GCC"; then 10266 case $host_os in aix4.[012]|aix4.[012].*) 10267 # We only want to do this on AIX 4.2 and lower, the check 10268 # below for broken collect2 doesn't work under 4.3+ 10269 collect2name=`$CC -print-prog-name=collect2` 10270 if test -f "$collect2name" && 10271 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10272 then 10273 # We have reworked collect2 10274 : 10275 else 10276 # We have old collect2 10277 hardcode_direct=unsupported 10278 # It fails to find uninstalled libraries when the uninstalled 10279 # path is not listed in the libpath. Setting hardcode_minus_L 10280 # to unsupported forces relinking 10281 hardcode_minus_L=yes 10282 hardcode_libdir_flag_spec='-L$libdir' 10283 hardcode_libdir_separator= 10284 fi 10285 ;; 10286 esac 10287 shared_flag='-shared' 10288 if test yes = "$aix_use_runtimelinking"; then 10289 shared_flag="$shared_flag "'$wl-G' 10290 fi 10291 # Need to ensure runtime linking is disabled for the traditional 10292 # shared library, or the linker may eventually find shared libraries 10293 # /with/ Import File - we do not want to mix them. 10294 shared_flag_aix='-shared' 10295 shared_flag_svr4='-shared $wl-G' 10296 else 10297 # not using gcc 10298 if test ia64 = "$host_cpu"; then 10299 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10300 # chokes on -Wl,-G. The following line is correct: 10301 shared_flag='-G' 10302 else 10303 if test yes = "$aix_use_runtimelinking"; then 10304 shared_flag='$wl-G' 10305 else 10306 shared_flag='$wl-bM:SRE' 10307 fi 10308 shared_flag_aix='$wl-bM:SRE' 10309 shared_flag_svr4='$wl-G' 10310 fi 10311 fi 10312 10313 export_dynamic_flag_spec='$wl-bexpall' 10314 # It seems that -bexpall does not export symbols beginning with 10315 # underscore (_), so it is better to generate a list of symbols to export. 10316 always_export_symbols=yes 10317 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10318 # Warning - without using the other runtime loading flags (-brtl), 10319 # -berok will link without error, but may produce a broken library. 10320 allow_undefined_flag='-berok' 10321 # Determine the default libpath from the value encoded in an 10322 # empty executable. 10323 if test set = "${lt_cv_aix_libpath+set}"; then 10324 aix_libpath=$lt_cv_aix_libpath 10325else 10326 if ${lt_cv_aix_libpath_+:} false; then : 10327 $as_echo_n "(cached) " >&6 10328else 10329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10330/* end confdefs.h. */ 10331 10332int 10333main () 10334{ 10335 10336 ; 10337 return 0; 10338} 10339_ACEOF 10340if ac_fn_c_try_link "$LINENO"; then : 10341 10342 lt_aix_libpath_sed=' 10343 /Import File Strings/,/^$/ { 10344 /^0/ { 10345 s/^0 *\([^ ]*\) *$/\1/ 10346 p 10347 } 10348 }' 10349 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10350 # Check for a 64-bit object if we didn't find anything. 10351 if test -z "$lt_cv_aix_libpath_"; then 10352 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10353 fi 10354fi 10355rm -f core conftest.err conftest.$ac_objext \ 10356 conftest$ac_exeext conftest.$ac_ext 10357 if test -z "$lt_cv_aix_libpath_"; then 10358 lt_cv_aix_libpath_=/usr/lib:/lib 10359 fi 10360 10361fi 10362 10363 aix_libpath=$lt_cv_aix_libpath_ 10364fi 10365 10366 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10367 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 10368 else 10369 if test ia64 = "$host_cpu"; then 10370 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 10371 allow_undefined_flag="-z nodefs" 10372 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" 10373 else 10374 # Determine the default libpath from the value encoded in an 10375 # empty executable. 10376 if test set = "${lt_cv_aix_libpath+set}"; then 10377 aix_libpath=$lt_cv_aix_libpath 10378else 10379 if ${lt_cv_aix_libpath_+:} false; then : 10380 $as_echo_n "(cached) " >&6 10381else 10382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10383/* end confdefs.h. */ 10384 10385int 10386main () 10387{ 10388 10389 ; 10390 return 0; 10391} 10392_ACEOF 10393if ac_fn_c_try_link "$LINENO"; then : 10394 10395 lt_aix_libpath_sed=' 10396 /Import File Strings/,/^$/ { 10397 /^0/ { 10398 s/^0 *\([^ ]*\) *$/\1/ 10399 p 10400 } 10401 }' 10402 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10403 # Check for a 64-bit object if we didn't find anything. 10404 if test -z "$lt_cv_aix_libpath_"; then 10405 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10406 fi 10407fi 10408rm -f core conftest.err conftest.$ac_objext \ 10409 conftest$ac_exeext conftest.$ac_ext 10410 if test -z "$lt_cv_aix_libpath_"; then 10411 lt_cv_aix_libpath_=/usr/lib:/lib 10412 fi 10413 10414fi 10415 10416 aix_libpath=$lt_cv_aix_libpath_ 10417fi 10418 10419 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 10420 # Warning - without using the other run time loading flags, 10421 # -berok will link without error, but may produce a broken library. 10422 no_undefined_flag=' $wl-bernotok' 10423 allow_undefined_flag=' $wl-berok' 10424 if test yes = "$with_gnu_ld"; then 10425 # We only use this code for GNU lds that support --whole-archive. 10426 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 10427 else 10428 # Exported symbols can be pulled into shared objects from archives 10429 whole_archive_flag_spec='$convenience' 10430 fi 10431 archive_cmds_need_lc=yes 10432 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 10433 # -brtl affects multiple linker settings, -berok does not and is overridden later 10434 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 10435 if test svr4 != "$with_aix_soname"; then 10436 # This is similar to how AIX traditionally builds its shared libraries. 10437 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 10438 fi 10439 if test aix != "$with_aix_soname"; then 10440 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 10441 else 10442 # used by -dlpreopen to get the symbols 10443 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 10444 fi 10445 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 10446 fi 10447 fi 10448 ;; 10449 10450 amigaos*) 10451 case $host_cpu in 10452 powerpc) 10453 # see comment about AmigaOS4 .so support 10454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10455 archive_expsym_cmds='' 10456 ;; 10457 m68k) 10458 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)' 10459 hardcode_libdir_flag_spec='-L$libdir' 10460 hardcode_minus_L=yes 10461 ;; 10462 esac 10463 ;; 10464 10465 bsdi[45]*) 10466 export_dynamic_flag_spec=-rdynamic 10467 ;; 10468 10469 cygwin* | mingw* | pw32* | cegcc*) 10470 # When not using gcc, we currently assume that we are using 10471 # Microsoft Visual C++. 10472 # hardcode_libdir_flag_spec is actually meaningless, as there is 10473 # no search path for DLLs. 10474 case $cc_basename in 10475 cl*) 10476 # Native MSVC 10477 hardcode_libdir_flag_spec=' ' 10478 allow_undefined_flag=unsupported 10479 always_export_symbols=yes 10480 file_list_spec='@' 10481 # Tell ltmain to make .lib files, not .a files. 10482 libext=lib 10483 # Tell ltmain to make .dll files, not .so files. 10484 shrext_cmds=.dll 10485 # FIXME: Setting linknames here is a bad hack. 10486 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 10487 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10488 cp "$export_symbols" "$output_objdir/$soname.def"; 10489 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 10490 else 10491 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 10492 fi~ 10493 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 10494 linknames=' 10495 # The linker will not automatically build a static lib if we build a DLL. 10496 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 10497 enable_shared_with_static_runtimes=yes 10498 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 10499 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 10500 # Don't use ranlib 10501 old_postinstall_cmds='chmod 644 $oldlib' 10502 postlink_cmds='lt_outputfile="@OUTPUT@"~ 10503 lt_tool_outputfile="@TOOL_OUTPUT@"~ 10504 case $lt_outputfile in 10505 *.exe|*.EXE) ;; 10506 *) 10507 lt_outputfile=$lt_outputfile.exe 10508 lt_tool_outputfile=$lt_tool_outputfile.exe 10509 ;; 10510 esac~ 10511 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 10512 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 10513 $RM "$lt_outputfile.manifest"; 10514 fi' 10515 ;; 10516 *) 10517 # Assume MSVC wrapper 10518 hardcode_libdir_flag_spec=' ' 10519 allow_undefined_flag=unsupported 10520 # Tell ltmain to make .lib files, not .a files. 10521 libext=lib 10522 # Tell ltmain to make .dll files, not .so files. 10523 shrext_cmds=.dll 10524 # FIXME: Setting linknames here is a bad hack. 10525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10526 # The linker will automatically build a .lib file if we build a DLL. 10527 old_archive_from_new_cmds='true' 10528 # FIXME: Should let the user specify the lib program. 10529 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10530 enable_shared_with_static_runtimes=yes 10531 ;; 10532 esac 10533 ;; 10534 10535 darwin* | rhapsody*) 10536 10537 10538 archive_cmds_need_lc=no 10539 hardcode_direct=no 10540 hardcode_automatic=yes 10541 hardcode_shlibpath_var=unsupported 10542 if test yes = "$lt_cv_ld_force_load"; then 10543 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\"`' 10544 10545 else 10546 whole_archive_flag_spec='' 10547 fi 10548 link_all_deplibs=yes 10549 allow_undefined_flag=$_lt_dar_allow_undefined 10550 case $cc_basename in 10551 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 10552 *) _lt_dar_can_shared=$GCC ;; 10553 esac 10554 if test yes = "$_lt_dar_can_shared"; then 10555 output_verbose_link_cmd=func_echo_all 10556 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 10557 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 10558 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" 10559 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" 10560 10561 else 10562 ld_shlibs=no 10563 fi 10564 10565 ;; 10566 10567 dgux*) 10568 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10569 hardcode_libdir_flag_spec='-L$libdir' 10570 hardcode_shlibpath_var=no 10571 ;; 10572 10573 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10574 # support. Future versions do this automatically, but an explicit c++rt0.o 10575 # does not break anything, and helps significantly (at the cost of a little 10576 # extra space). 10577 freebsd2.2*) 10578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10579 hardcode_libdir_flag_spec='-R$libdir' 10580 hardcode_direct=yes 10581 hardcode_shlibpath_var=no 10582 ;; 10583 10584 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10585 freebsd2.*) 10586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10587 hardcode_direct=yes 10588 hardcode_minus_L=yes 10589 hardcode_shlibpath_var=no 10590 ;; 10591 10592 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10593 freebsd* | dragonfly*) 10594 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10595 hardcode_libdir_flag_spec='-R$libdir' 10596 hardcode_direct=yes 10597 hardcode_shlibpath_var=no 10598 ;; 10599 10600 hpux9*) 10601 if test yes = "$GCC"; then 10602 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10603 else 10604 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 10605 fi 10606 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10607 hardcode_libdir_separator=: 10608 hardcode_direct=yes 10609 10610 # hardcode_minus_L: Not really in the search PATH, 10611 # but as the default location of the library. 10612 hardcode_minus_L=yes 10613 export_dynamic_flag_spec='$wl-E' 10614 ;; 10615 10616 hpux10*) 10617 if test yes,no = "$GCC,$with_gnu_ld"; then 10618 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10619 else 10620 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10621 fi 10622 if test no = "$with_gnu_ld"; then 10623 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10624 hardcode_libdir_separator=: 10625 hardcode_direct=yes 10626 hardcode_direct_absolute=yes 10627 export_dynamic_flag_spec='$wl-E' 10628 # hardcode_minus_L: Not really in the search PATH, 10629 # but as the default location of the library. 10630 hardcode_minus_L=yes 10631 fi 10632 ;; 10633 10634 hpux11*) 10635 if test yes,no = "$GCC,$with_gnu_ld"; then 10636 case $host_cpu in 10637 hppa*64*) 10638 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10639 ;; 10640 ia64*) 10641 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10642 ;; 10643 *) 10644 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10645 ;; 10646 esac 10647 else 10648 case $host_cpu in 10649 hppa*64*) 10650 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10651 ;; 10652 ia64*) 10653 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10654 ;; 10655 *) 10656 10657 # Older versions of the 11.00 compiler do not understand -b yet 10658 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10660$as_echo_n "checking if $CC understands -b... " >&6; } 10661if ${lt_cv_prog_compiler__b+:} false; then : 10662 $as_echo_n "(cached) " >&6 10663else 10664 lt_cv_prog_compiler__b=no 10665 save_LDFLAGS=$LDFLAGS 10666 LDFLAGS="$LDFLAGS -b" 10667 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10668 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10669 # The linker can only warn and ignore the option if not recognized 10670 # So say no if there are warnings 10671 if test -s conftest.err; then 10672 # Append any errors to the config.log. 10673 cat conftest.err 1>&5 10674 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10676 if diff conftest.exp conftest.er2 >/dev/null; then 10677 lt_cv_prog_compiler__b=yes 10678 fi 10679 else 10680 lt_cv_prog_compiler__b=yes 10681 fi 10682 fi 10683 $RM -r conftest* 10684 LDFLAGS=$save_LDFLAGS 10685 10686fi 10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10688$as_echo "$lt_cv_prog_compiler__b" >&6; } 10689 10690if test yes = "$lt_cv_prog_compiler__b"; then 10691 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10692else 10693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10694fi 10695 10696 ;; 10697 esac 10698 fi 10699 if test no = "$with_gnu_ld"; then 10700 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 10701 hardcode_libdir_separator=: 10702 10703 case $host_cpu in 10704 hppa*64*|ia64*) 10705 hardcode_direct=no 10706 hardcode_shlibpath_var=no 10707 ;; 10708 *) 10709 hardcode_direct=yes 10710 hardcode_direct_absolute=yes 10711 export_dynamic_flag_spec='$wl-E' 10712 10713 # hardcode_minus_L: Not really in the search PATH, 10714 # but as the default location of the library. 10715 hardcode_minus_L=yes 10716 ;; 10717 esac 10718 fi 10719 ;; 10720 10721 irix5* | irix6* | nonstopux*) 10722 if test yes = "$GCC"; then 10723 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' 10724 # Try to use the -exported_symbol ld option, if it does not 10725 # work, assume that -exports_file does not work either and 10726 # implicitly export all symbols. 10727 # This should be the same for all languages, so no per-tag cache variable. 10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 10729$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 10730if ${lt_cv_irix_exported_symbol+:} false; then : 10731 $as_echo_n "(cached) " >&6 10732else 10733 save_LDFLAGS=$LDFLAGS 10734 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10736/* end confdefs.h. */ 10737int foo (void) { return 0; } 10738_ACEOF 10739if ac_fn_c_try_link "$LINENO"; then : 10740 lt_cv_irix_exported_symbol=yes 10741else 10742 lt_cv_irix_exported_symbol=no 10743fi 10744rm -f core conftest.err conftest.$ac_objext \ 10745 conftest$ac_exeext conftest.$ac_ext 10746 LDFLAGS=$save_LDFLAGS 10747fi 10748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 10749$as_echo "$lt_cv_irix_exported_symbol" >&6; } 10750 if test yes = "$lt_cv_irix_exported_symbol"; then 10751 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' 10752 fi 10753 else 10754 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' 10755 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' 10756 fi 10757 archive_cmds_need_lc='no' 10758 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10759 hardcode_libdir_separator=: 10760 inherit_rpath=yes 10761 link_all_deplibs=yes 10762 ;; 10763 10764 linux*) 10765 case $cc_basename in 10766 tcc*) 10767 # Fabrice Bellard et al's Tiny C Compiler 10768 ld_shlibs=yes 10769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10770 ;; 10771 esac 10772 ;; 10773 10774 netbsd*) 10775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10777 else 10778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10779 fi 10780 hardcode_libdir_flag_spec='-R$libdir' 10781 hardcode_direct=yes 10782 hardcode_shlibpath_var=no 10783 ;; 10784 10785 newsos6) 10786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10787 hardcode_direct=yes 10788 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10789 hardcode_libdir_separator=: 10790 hardcode_shlibpath_var=no 10791 ;; 10792 10793 *nto* | *qnx*) 10794 ;; 10795 10796 openbsd* | bitrig*) 10797 if test -f /usr/libexec/ld.so; then 10798 hardcode_direct=yes 10799 hardcode_shlibpath_var=no 10800 hardcode_direct_absolute=yes 10801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10803 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10804 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10805 export_dynamic_flag_spec='$wl-E' 10806 else 10807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10808 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10809 fi 10810 else 10811 ld_shlibs=no 10812 fi 10813 ;; 10814 10815 os2*) 10816 hardcode_libdir_flag_spec='-L$libdir' 10817 hardcode_minus_L=yes 10818 allow_undefined_flag=unsupported 10819 shrext_cmds=.dll 10820 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10821 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10822 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10823 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10824 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10825 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10826 emximp -o $lib $output_objdir/$libname.def' 10827 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10828 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10829 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10830 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10831 prefix_cmds="$SED"~ 10832 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10833 prefix_cmds="$prefix_cmds -e 1d"; 10834 fi~ 10835 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10836 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10837 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10838 emximp -o $lib $output_objdir/$libname.def' 10839 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10840 enable_shared_with_static_runtimes=yes 10841 ;; 10842 10843 osf3*) 10844 if test yes = "$GCC"; then 10845 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10846 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' 10847 else 10848 allow_undefined_flag=' -expect_unresolved \*' 10849 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' 10850 fi 10851 archive_cmds_need_lc='no' 10852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10853 hardcode_libdir_separator=: 10854 ;; 10855 10856 osf4* | osf5*) # as osf3* with the addition of -msym flag 10857 if test yes = "$GCC"; then 10858 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10859 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' 10860 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10861 else 10862 allow_undefined_flag=' -expect_unresolved \*' 10863 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' 10864 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~ 10865 $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' 10866 10867 # Both c and cxx compiler support -rpath directly 10868 hardcode_libdir_flag_spec='-rpath $libdir' 10869 fi 10870 archive_cmds_need_lc='no' 10871 hardcode_libdir_separator=: 10872 ;; 10873 10874 solaris*) 10875 no_undefined_flag=' -z defs' 10876 if test yes = "$GCC"; then 10877 wlarc='$wl' 10878 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10879 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10880 $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' 10881 else 10882 case `$CC -V 2>&1` in 10883 *"Compilers 5.0"*) 10884 wlarc='' 10885 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10886 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10887 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10888 ;; 10889 *) 10890 wlarc='$wl' 10891 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10892 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10893 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10894 ;; 10895 esac 10896 fi 10897 hardcode_libdir_flag_spec='-R$libdir' 10898 hardcode_shlibpath_var=no 10899 case $host_os in 10900 solaris2.[0-5] | solaris2.[0-5].*) ;; 10901 *) 10902 # The compiler driver will combine and reorder linker options, 10903 # but understands '-z linker_flag'. GCC discards it without '$wl', 10904 # but is careful enough not to reorder. 10905 # Supported since Solaris 2.6 (maybe 2.5.1?) 10906 if test yes = "$GCC"; then 10907 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10908 else 10909 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10910 fi 10911 ;; 10912 esac 10913 link_all_deplibs=yes 10914 ;; 10915 10916 sunos4*) 10917 if test sequent = "$host_vendor"; then 10918 # Use $CC to link under sequent, because it throws in some extra .o 10919 # files that make .init and .fini sections work. 10920 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10921 else 10922 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10923 fi 10924 hardcode_libdir_flag_spec='-L$libdir' 10925 hardcode_direct=yes 10926 hardcode_minus_L=yes 10927 hardcode_shlibpath_var=no 10928 ;; 10929 10930 sysv4) 10931 case $host_vendor in 10932 sni) 10933 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10934 hardcode_direct=yes # is this really true??? 10935 ;; 10936 siemens) 10937 ## LD is ld it makes a PLAMLIB 10938 ## CC just makes a GrossModule. 10939 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10940 reload_cmds='$CC -r -o $output$reload_objs' 10941 hardcode_direct=no 10942 ;; 10943 motorola) 10944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10945 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10946 ;; 10947 esac 10948 runpath_var='LD_RUN_PATH' 10949 hardcode_shlibpath_var=no 10950 ;; 10951 10952 sysv4.3*) 10953 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10954 hardcode_shlibpath_var=no 10955 export_dynamic_flag_spec='-Bexport' 10956 ;; 10957 10958 sysv4*MP*) 10959 if test -d /usr/nec; then 10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10961 hardcode_shlibpath_var=no 10962 runpath_var=LD_RUN_PATH 10963 hardcode_runpath_var=yes 10964 ld_shlibs=yes 10965 fi 10966 ;; 10967 10968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10969 no_undefined_flag='$wl-z,text' 10970 archive_cmds_need_lc=no 10971 hardcode_shlibpath_var=no 10972 runpath_var='LD_RUN_PATH' 10973 10974 if test yes = "$GCC"; then 10975 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10976 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10977 else 10978 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10979 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10980 fi 10981 ;; 10982 10983 sysv5* | sco3.2v5* | sco5v6*) 10984 # Note: We CANNOT use -z defs as we might desire, because we do not 10985 # link with -lc, and that would cause any symbols used from libc to 10986 # always be unresolved, which means just about no library would 10987 # ever link correctly. If we're not using GNU ld we use -z text 10988 # though, which does catch some bad symbols but isn't as heavy-handed 10989 # as -z defs. 10990 no_undefined_flag='$wl-z,text' 10991 allow_undefined_flag='$wl-z,nodefs' 10992 archive_cmds_need_lc=no 10993 hardcode_shlibpath_var=no 10994 hardcode_libdir_flag_spec='$wl-R,$libdir' 10995 hardcode_libdir_separator=':' 10996 link_all_deplibs=yes 10997 export_dynamic_flag_spec='$wl-Bexport' 10998 runpath_var='LD_RUN_PATH' 10999 11000 if test yes = "$GCC"; then 11001 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11002 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11003 else 11004 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11005 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11006 fi 11007 ;; 11008 11009 uts4*) 11010 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11011 hardcode_libdir_flag_spec='-L$libdir' 11012 hardcode_shlibpath_var=no 11013 ;; 11014 11015 *) 11016 ld_shlibs=no 11017 ;; 11018 esac 11019 11020 if test sni = "$host_vendor"; then 11021 case $host in 11022 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11023 export_dynamic_flag_spec='$wl-Blargedynsym' 11024 ;; 11025 esac 11026 fi 11027 fi 11028 11029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11030$as_echo "$ld_shlibs" >&6; } 11031test no = "$ld_shlibs" && can_build_shared=no 11032 11033with_gnu_ld=$with_gnu_ld 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049# 11050# Do we need to explicitly link libc? 11051# 11052case "x$archive_cmds_need_lc" in 11053x|xyes) 11054 # Assume -lc should be added 11055 archive_cmds_need_lc=yes 11056 11057 if test yes,yes = "$GCC,$enable_shared"; then 11058 case $archive_cmds in 11059 *'~'*) 11060 # FIXME: we may have to deal with multi-command sequences. 11061 ;; 11062 '$CC '*) 11063 # Test whether the compiler implicitly links with -lc since on some 11064 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11065 # to ld, don't add -lc before -lgcc. 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11067$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11068if ${lt_cv_archive_cmds_need_lc+:} false; then : 11069 $as_echo_n "(cached) " >&6 11070else 11071 $RM conftest* 11072 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11073 11074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11075 (eval $ac_compile) 2>&5 11076 ac_status=$? 11077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11078 test $ac_status = 0; } 2>conftest.err; then 11079 soname=conftest 11080 lib=conftest 11081 libobjs=conftest.$ac_objext 11082 deplibs= 11083 wl=$lt_prog_compiler_wl 11084 pic_flag=$lt_prog_compiler_pic 11085 compiler_flags=-v 11086 linker_flags=-v 11087 verstring= 11088 output_objdir=. 11089 libname=conftest 11090 lt_save_allow_undefined_flag=$allow_undefined_flag 11091 allow_undefined_flag= 11092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11093 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11094 ac_status=$? 11095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11096 test $ac_status = 0; } 11097 then 11098 lt_cv_archive_cmds_need_lc=no 11099 else 11100 lt_cv_archive_cmds_need_lc=yes 11101 fi 11102 allow_undefined_flag=$lt_save_allow_undefined_flag 11103 else 11104 cat conftest.err 1>&5 11105 fi 11106 $RM conftest* 11107 11108fi 11109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11110$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11111 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11112 ;; 11113 esac 11114 fi 11115 ;; 11116esac 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11270$as_echo_n "checking dynamic linker characteristics... " >&6; } 11271 11272if test yes = "$GCC"; then 11273 case $host_os in 11274 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11275 *) lt_awk_arg='/^libraries:/' ;; 11276 esac 11277 case $host_os in 11278 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11279 *) lt_sed_strip_eq='s|=/|/|g' ;; 11280 esac 11281 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11282 case $lt_search_path_spec in 11283 *\;*) 11284 # if the path contains ";" then we assume it to be the separator 11285 # otherwise default to the standard path separator (i.e. ":") - it is 11286 # assumed that no part of a normal pathname contains ";" but that should 11287 # okay in the real world where ";" in dirpaths is itself problematic. 11288 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11289 ;; 11290 *) 11291 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11292 ;; 11293 esac 11294 # Ok, now we have the path, separated by spaces, we can step through it 11295 # and add multilib dir if necessary... 11296 lt_tmp_lt_search_path_spec= 11297 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11298 # ...but if some path component already ends with the multilib dir we assume 11299 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11300 case "$lt_multi_os_dir; $lt_search_path_spec " in 11301 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11302 lt_multi_os_dir= 11303 ;; 11304 esac 11305 for lt_sys_path in $lt_search_path_spec; do 11306 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11307 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11308 elif test -n "$lt_multi_os_dir"; then 11309 test -d "$lt_sys_path" && \ 11310 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11311 fi 11312 done 11313 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11314BEGIN {RS = " "; FS = "/|\n";} { 11315 lt_foo = ""; 11316 lt_count = 0; 11317 for (lt_i = NF; lt_i > 0; lt_i--) { 11318 if ($lt_i != "" && $lt_i != ".") { 11319 if ($lt_i == "..") { 11320 lt_count++; 11321 } else { 11322 if (lt_count == 0) { 11323 lt_foo = "/" $lt_i lt_foo; 11324 } else { 11325 lt_count--; 11326 } 11327 } 11328 } 11329 } 11330 if (lt_foo != "") { lt_freq[lt_foo]++; } 11331 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11332}'` 11333 # AWK program above erroneously prepends '/' to C:/dos/paths 11334 # for these hosts. 11335 case $host_os in 11336 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11337 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11338 esac 11339 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 11340else 11341 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11342fi 11343library_names_spec= 11344libname_spec='lib$name' 11345soname_spec= 11346shrext_cmds=.so 11347postinstall_cmds= 11348postuninstall_cmds= 11349finish_cmds= 11350finish_eval= 11351shlibpath_var= 11352shlibpath_overrides_runpath=unknown 11353version_type=none 11354dynamic_linker="$host_os ld.so" 11355sys_lib_dlsearch_path_spec="/lib /usr/lib" 11356need_lib_prefix=unknown 11357hardcode_into_libs=no 11358 11359# when you set need_version to no, make sure it does not cause -set_version 11360# flags to be left without arguments 11361need_version=unknown 11362 11363 11364 11365case $host_os in 11366aix3*) 11367 version_type=linux # correct to gnu/linux during the next big refactor 11368 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 11369 shlibpath_var=LIBPATH 11370 11371 # AIX 3 has no versioning support, so we append a major version to the name. 11372 soname_spec='$libname$release$shared_ext$major' 11373 ;; 11374 11375aix[4-9]*) 11376 version_type=linux # correct to gnu/linux during the next big refactor 11377 need_lib_prefix=no 11378 need_version=no 11379 hardcode_into_libs=yes 11380 if test ia64 = "$host_cpu"; then 11381 # AIX 5 supports IA64 11382 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 11383 shlibpath_var=LD_LIBRARY_PATH 11384 else 11385 # With GCC up to 2.95.x, collect2 would create an import file 11386 # for dependence libraries. The import file would start with 11387 # the line '#! .'. This would cause the generated library to 11388 # depend on '.', always an invalid library. This was fixed in 11389 # development snapshots of GCC prior to 3.0. 11390 case $host_os in 11391 aix4 | aix4.[01] | aix4.[01].*) 11392 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 11393 echo ' yes ' 11394 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 11395 : 11396 else 11397 can_build_shared=no 11398 fi 11399 ;; 11400 esac 11401 # Using Import Files as archive members, it is possible to support 11402 # filename-based versioning of shared library archives on AIX. While 11403 # this would work for both with and without runtime linking, it will 11404 # prevent static linking of such archives. So we do filename-based 11405 # shared library versioning with .so extension only, which is used 11406 # when both runtime linking and shared linking is enabled. 11407 # Unfortunately, runtime linking may impact performance, so we do 11408 # not want this to be the default eventually. Also, we use the 11409 # versioned .so libs for executables only if there is the -brtl 11410 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 11411 # To allow for filename-based versioning support, we need to create 11412 # libNAME.so.V as an archive file, containing: 11413 # *) an Import File, referring to the versioned filename of the 11414 # archive as well as the shared archive member, telling the 11415 # bitwidth (32 or 64) of that shared object, and providing the 11416 # list of exported symbols of that shared object, eventually 11417 # decorated with the 'weak' keyword 11418 # *) the shared object with the F_LOADONLY flag set, to really avoid 11419 # it being seen by the linker. 11420 # At run time we better use the real file rather than another symlink, 11421 # but for link time we create the symlink libNAME.so -> libNAME.so.V 11422 11423 case $with_aix_soname,$aix_use_runtimelinking in 11424 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 11425 # soname into executable. Probably we can add versioning support to 11426 # collect2, so additional links can be useful in future. 11427 aix,yes) # traditional libtool 11428 dynamic_linker='AIX unversionable lib.so' 11429 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 11430 # instead of lib<name>.a to let people know that these are not 11431 # typical AIX shared libraries. 11432 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11433 ;; 11434 aix,no) # traditional AIX only 11435 dynamic_linker='AIX lib.a(lib.so.V)' 11436 # We preserve .a as extension for shared libraries through AIX4.2 11437 # and later when we are not doing run time linking. 11438 library_names_spec='$libname$release.a $libname.a' 11439 soname_spec='$libname$release$shared_ext$major' 11440 ;; 11441 svr4,*) # full svr4 only 11442 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 11443 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11444 # We do not specify a path in Import Files, so LIBPATH fires. 11445 shlibpath_overrides_runpath=yes 11446 ;; 11447 *,yes) # both, prefer svr4 11448 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 11449 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 11450 # unpreferred sharedlib libNAME.a needs extra handling 11451 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 11452 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 11453 # We do not specify a path in Import Files, so LIBPATH fires. 11454 shlibpath_overrides_runpath=yes 11455 ;; 11456 *,no) # both, prefer aix 11457 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 11458 library_names_spec='$libname$release.a $libname.a' 11459 soname_spec='$libname$release$shared_ext$major' 11460 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 11461 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 11462 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 11463 ;; 11464 esac 11465 shlibpath_var=LIBPATH 11466 fi 11467 ;; 11468 11469amigaos*) 11470 case $host_cpu in 11471 powerpc) 11472 # Since July 2007 AmigaOS4 officially supports .so libraries. 11473 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 11474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11475 ;; 11476 m68k) 11477 library_names_spec='$libname.ixlibrary $libname.a' 11478 # Create ${libname}_ixlibrary.a entries in /sys/libs. 11479 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 11480 ;; 11481 esac 11482 ;; 11483 11484beos*) 11485 library_names_spec='$libname$shared_ext' 11486 dynamic_linker="$host_os ld.so" 11487 shlibpath_var=LIBRARY_PATH 11488 ;; 11489 11490bsdi[45]*) 11491 version_type=linux # correct to gnu/linux during the next big refactor 11492 need_version=no 11493 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11494 soname_spec='$libname$release$shared_ext$major' 11495 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 11496 shlibpath_var=LD_LIBRARY_PATH 11497 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 11498 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 11499 # the default ld.so.conf also contains /usr/contrib/lib and 11500 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 11501 # libtool to hard-code these into programs 11502 ;; 11503 11504cygwin* | mingw* | pw32* | cegcc*) 11505 version_type=windows 11506 shrext_cmds=.dll 11507 need_version=no 11508 need_lib_prefix=no 11509 11510 case $GCC,$cc_basename in 11511 yes,*) 11512 # gcc 11513 library_names_spec='$libname.dll.a' 11514 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11515 postinstall_cmds='base_file=`basename \$file`~ 11516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11517 dldir=$destdir/`dirname \$dlpath`~ 11518 test -d \$dldir || mkdir -p \$dldir~ 11519 $install_prog $dir/$dlname \$dldir/$dlname~ 11520 chmod a+x \$dldir/$dlname~ 11521 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11522 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11523 fi' 11524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11525 dlpath=$dir/\$dldll~ 11526 $RM \$dlpath' 11527 shlibpath_overrides_runpath=yes 11528 11529 case $host_os in 11530 cygwin*) 11531 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11532 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11533 11534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11535 ;; 11536 mingw* | cegcc*) 11537 # MinGW DLLs use traditional 'lib' prefix 11538 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11539 ;; 11540 pw32*) 11541 # pw32 DLLs use 'pw' prefix rather than 'lib' 11542 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11543 ;; 11544 esac 11545 dynamic_linker='Win32 ld.exe' 11546 ;; 11547 11548 *,cl*) 11549 # Native MSVC 11550 libname_spec='$name' 11551 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 11552 library_names_spec='$libname.dll.lib' 11553 11554 case $build_os in 11555 mingw*) 11556 sys_lib_search_path_spec= 11557 lt_save_ifs=$IFS 11558 IFS=';' 11559 for lt_path in $LIB 11560 do 11561 IFS=$lt_save_ifs 11562 # Let DOS variable expansion print the short 8.3 style file name. 11563 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 11564 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 11565 done 11566 IFS=$lt_save_ifs 11567 # Convert to MSYS style. 11568 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 11569 ;; 11570 cygwin*) 11571 # Convert to unix form, then to dos form, then back to unix form 11572 # but this time dos style (no spaces!) so that the unix form looks 11573 # like /cygdrive/c/PROGRA~1:/cygdr... 11574 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 11575 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 11576 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11577 ;; 11578 *) 11579 sys_lib_search_path_spec=$LIB 11580 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 11581 # It is most probably a Windows format PATH. 11582 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 11583 else 11584 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 11585 fi 11586 # FIXME: find the short name or the path components, as spaces are 11587 # common. (e.g. "Program Files" -> "PROGRA~1") 11588 ;; 11589 esac 11590 11591 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11592 postinstall_cmds='base_file=`basename \$file`~ 11593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 11594 dldir=$destdir/`dirname \$dlpath`~ 11595 test -d \$dldir || mkdir -p \$dldir~ 11596 $install_prog $dir/$dlname \$dldir/$dlname' 11597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11598 dlpath=$dir/\$dldll~ 11599 $RM \$dlpath' 11600 shlibpath_overrides_runpath=yes 11601 dynamic_linker='Win32 link.exe' 11602 ;; 11603 11604 *) 11605 # Assume MSVC wrapper 11606 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 11607 dynamic_linker='Win32 ld.exe' 11608 ;; 11609 esac 11610 # FIXME: first we should search . and the directory the executable is in 11611 shlibpath_var=PATH 11612 ;; 11613 11614darwin* | rhapsody*) 11615 dynamic_linker="$host_os dyld" 11616 version_type=darwin 11617 need_lib_prefix=no 11618 need_version=no 11619 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext' 11620 soname_spec='$libname$release$major$shared_ext' 11621 shlibpath_overrides_runpath=yes 11622 shlibpath_var=DYLD_LIBRARY_PATH 11623 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`' 11624 11625 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11626 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11627 ;; 11628 11629dgux*) 11630 version_type=linux # correct to gnu/linux during the next big refactor 11631 need_lib_prefix=no 11632 need_version=no 11633 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11634 soname_spec='$libname$release$shared_ext$major' 11635 shlibpath_var=LD_LIBRARY_PATH 11636 ;; 11637 11638freebsd* | dragonfly*) 11639 # DragonFly does not have aout. When/if they implement a new 11640 # versioning mechanism, adjust this. 11641 if test -x /usr/bin/objformat; then 11642 objformat=`/usr/bin/objformat` 11643 else 11644 case $host_os in 11645 freebsd[23].*) objformat=aout ;; 11646 *) objformat=elf ;; 11647 esac 11648 fi 11649 # Handle Gentoo/FreeBSD as it was Linux 11650 case $host_vendor in 11651 gentoo) 11652 version_type=linux ;; 11653 *) 11654 version_type=freebsd-$objformat ;; 11655 esac 11656 11657 case $version_type in 11658 freebsd-elf*) 11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11660 soname_spec='$libname$release$shared_ext$major' 11661 need_version=no 11662 need_lib_prefix=no 11663 ;; 11664 freebsd-*) 11665 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11666 need_version=yes 11667 ;; 11668 linux) 11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11670 soname_spec='${libname}${release}${shared_ext}$major' 11671 need_lib_prefix=no 11672 need_version=no 11673 ;; 11674 esac 11675 shlibpath_var=LD_LIBRARY_PATH 11676 case $host_os in 11677 freebsd2.*) 11678 shlibpath_overrides_runpath=yes 11679 ;; 11680 freebsd3.[01]* | freebsdelf3.[01]*) 11681 shlibpath_overrides_runpath=yes 11682 hardcode_into_libs=yes 11683 ;; 11684 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11685 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11686 shlibpath_overrides_runpath=no 11687 hardcode_into_libs=yes 11688 ;; 11689 *) # from 4.6 on, and DragonFly 11690 shlibpath_overrides_runpath=yes 11691 hardcode_into_libs=yes 11692 ;; 11693 esac 11694 ;; 11695 11696haiku*) 11697 version_type=linux # correct to gnu/linux during the next big refactor 11698 need_lib_prefix=no 11699 need_version=no 11700 dynamic_linker="$host_os runtime_loader" 11701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11702 soname_spec='$libname$release$shared_ext$major' 11703 shlibpath_var=LIBRARY_PATH 11704 shlibpath_overrides_runpath=no 11705 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11706 hardcode_into_libs=yes 11707 ;; 11708 11709hpux9* | hpux10* | hpux11*) 11710 # Give a soname corresponding to the major version so that dld.sl refuses to 11711 # link against other versions. 11712 version_type=sunos 11713 need_lib_prefix=no 11714 need_version=no 11715 case $host_cpu in 11716 ia64*) 11717 shrext_cmds='.so' 11718 hardcode_into_libs=yes 11719 dynamic_linker="$host_os dld.so" 11720 shlibpath_var=LD_LIBRARY_PATH 11721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11722 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11723 soname_spec='$libname$release$shared_ext$major' 11724 if test 32 = "$HPUX_IA64_MODE"; then 11725 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11726 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 11727 else 11728 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11729 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 11730 fi 11731 ;; 11732 hppa*64*) 11733 shrext_cmds='.sl' 11734 hardcode_into_libs=yes 11735 dynamic_linker="$host_os dld.sl" 11736 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11738 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11739 soname_spec='$libname$release$shared_ext$major' 11740 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11741 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11742 ;; 11743 *) 11744 shrext_cmds='.sl' 11745 dynamic_linker="$host_os dld.sl" 11746 shlibpath_var=SHLIB_PATH 11747 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11749 soname_spec='$libname$release$shared_ext$major' 11750 ;; 11751 esac 11752 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11753 postinstall_cmds='chmod 555 $lib' 11754 # or fails outright, so override atomically: 11755 install_override_mode=555 11756 ;; 11757 11758interix[3-9]*) 11759 version_type=linux # correct to gnu/linux during the next big refactor 11760 need_lib_prefix=no 11761 need_version=no 11762 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11763 soname_spec='$libname$release$shared_ext$major' 11764 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11765 shlibpath_var=LD_LIBRARY_PATH 11766 shlibpath_overrides_runpath=no 11767 hardcode_into_libs=yes 11768 ;; 11769 11770irix5* | irix6* | nonstopux*) 11771 case $host_os in 11772 nonstopux*) version_type=nonstopux ;; 11773 *) 11774 if test yes = "$lt_cv_prog_gnu_ld"; then 11775 version_type=linux # correct to gnu/linux during the next big refactor 11776 else 11777 version_type=irix 11778 fi ;; 11779 esac 11780 need_lib_prefix=no 11781 need_version=no 11782 soname_spec='$libname$release$shared_ext$major' 11783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 11784 case $host_os in 11785 irix5* | nonstopux*) 11786 libsuff= shlibsuff= 11787 ;; 11788 *) 11789 case $LD in # libtool.m4 will add one of these switches to LD 11790 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11791 libsuff= shlibsuff= libmagic=32-bit;; 11792 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11793 libsuff=32 shlibsuff=N32 libmagic=N32;; 11794 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11795 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11796 *) libsuff= shlibsuff= libmagic=never-match;; 11797 esac 11798 ;; 11799 esac 11800 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11801 shlibpath_overrides_runpath=no 11802 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11803 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11804 hardcode_into_libs=yes 11805 ;; 11806 11807# No shared lib support for Linux oldld, aout, or coff. 11808linux*oldld* | linux*aout* | linux*coff*) 11809 dynamic_linker=no 11810 ;; 11811 11812linux*android*) 11813 version_type=none # Android doesn't support versioned libraries. 11814 need_lib_prefix=no 11815 need_version=no 11816 library_names_spec='$libname$release$shared_ext' 11817 soname_spec='$libname$release$shared_ext' 11818 finish_cmds= 11819 shlibpath_var=LD_LIBRARY_PATH 11820 shlibpath_overrides_runpath=yes 11821 11822 # This implies no fast_install, which is unacceptable. 11823 # Some rework will be needed to allow for fast_install 11824 # before this can be enabled. 11825 hardcode_into_libs=yes 11826 11827 dynamic_linker='Android linker' 11828 # Don't embed -rpath directories since the linker doesn't support them. 11829 hardcode_libdir_flag_spec='-L$libdir' 11830 ;; 11831 11832# This must be glibc/ELF. 11833linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11834 version_type=linux # correct to gnu/linux during the next big refactor 11835 need_lib_prefix=no 11836 need_version=no 11837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11838 soname_spec='$libname$release$shared_ext$major' 11839 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11840 shlibpath_var=LD_LIBRARY_PATH 11841 shlibpath_overrides_runpath=no 11842 11843 # Some binutils ld are patched to set DT_RUNPATH 11844 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11845 $as_echo_n "(cached) " >&6 11846else 11847 lt_cv_shlibpath_overrides_runpath=no 11848 save_LDFLAGS=$LDFLAGS 11849 save_libdir=$libdir 11850 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11851 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11853/* end confdefs.h. */ 11854 11855int 11856main () 11857{ 11858 11859 ; 11860 return 0; 11861} 11862_ACEOF 11863if ac_fn_c_try_link "$LINENO"; then : 11864 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11865 lt_cv_shlibpath_overrides_runpath=yes 11866fi 11867fi 11868rm -f core conftest.err conftest.$ac_objext \ 11869 conftest$ac_exeext conftest.$ac_ext 11870 LDFLAGS=$save_LDFLAGS 11871 libdir=$save_libdir 11872 11873fi 11874 11875 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11876 11877 # This implies no fast_install, which is unacceptable. 11878 # Some rework will be needed to allow for fast_install 11879 # before this can be enabled. 11880 hardcode_into_libs=yes 11881 11882 # Ideally, we could use ldconfig to report *all* directores which are 11883 # searched for libraries, however this is still not possible. Aside from not 11884 # being certain /sbin/ldconfig is available, command 11885 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11886 # even though it is searched at run-time. Try to do the best guess by 11887 # appending ld.so.conf contents (and includes) to the search path. 11888 if test -f /etc/ld.so.conf; then 11889 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' ' '` 11890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11891 fi 11892 11893 # We used to test for /lib/ld.so.1 and disable shared libraries on 11894 # powerpc, because MkLinux only supported shared libraries with the 11895 # GNU dynamic linker. Since this was broken with cross compilers, 11896 # most powerpc-linux boxes support dynamic linking these days and 11897 # people can always --disable-shared, the test was removed, and we 11898 # assume the GNU/Linux dynamic linker is in use. 11899 dynamic_linker='GNU/Linux ld.so' 11900 ;; 11901 11902netbsd*) 11903 version_type=sunos 11904 need_lib_prefix=no 11905 need_version=no 11906 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11907 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11909 dynamic_linker='NetBSD (a.out) ld.so' 11910 else 11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11912 soname_spec='$libname$release$shared_ext$major' 11913 dynamic_linker='NetBSD ld.elf_so' 11914 fi 11915 shlibpath_var=LD_LIBRARY_PATH 11916 shlibpath_overrides_runpath=yes 11917 hardcode_into_libs=yes 11918 ;; 11919 11920newsos6) 11921 version_type=linux # correct to gnu/linux during the next big refactor 11922 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11923 shlibpath_var=LD_LIBRARY_PATH 11924 shlibpath_overrides_runpath=yes 11925 ;; 11926 11927*nto* | *qnx*) 11928 version_type=qnx 11929 need_lib_prefix=no 11930 need_version=no 11931 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11932 soname_spec='$libname$release$shared_ext$major' 11933 shlibpath_var=LD_LIBRARY_PATH 11934 shlibpath_overrides_runpath=no 11935 hardcode_into_libs=yes 11936 dynamic_linker='ldqnx.so' 11937 ;; 11938 11939openbsd* | bitrig*) 11940 version_type=sunos 11941 sys_lib_dlsearch_path_spec=/usr/lib 11942 need_lib_prefix=no 11943 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11944 need_version=no 11945 else 11946 need_version=yes 11947 fi 11948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11950 shlibpath_var=LD_LIBRARY_PATH 11951 shlibpath_overrides_runpath=yes 11952 ;; 11953 11954os2*) 11955 libname_spec='$name' 11956 version_type=windows 11957 shrext_cmds=.dll 11958 need_version=no 11959 need_lib_prefix=no 11960 # OS/2 can only load a DLL with a base name of 8 characters or less. 11961 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11962 v=$($ECHO $release$versuffix | tr -d .-); 11963 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11964 $ECHO $n$v`$shared_ext' 11965 library_names_spec='${libname}_dll.$libext' 11966 dynamic_linker='OS/2 ld.exe' 11967 shlibpath_var=BEGINLIBPATH 11968 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11970 postinstall_cmds='base_file=`basename \$file`~ 11971 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11972 dldir=$destdir/`dirname \$dlpath`~ 11973 test -d \$dldir || mkdir -p \$dldir~ 11974 $install_prog $dir/$dlname \$dldir/$dlname~ 11975 chmod a+x \$dldir/$dlname~ 11976 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11977 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11978 fi' 11979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11980 dlpath=$dir/\$dldll~ 11981 $RM \$dlpath' 11982 ;; 11983 11984osf3* | osf4* | osf5*) 11985 version_type=osf 11986 need_lib_prefix=no 11987 need_version=no 11988 soname_spec='$libname$release$shared_ext$major' 11989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11990 shlibpath_var=LD_LIBRARY_PATH 11991 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11992 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11993 ;; 11994 11995rdos*) 11996 dynamic_linker=no 11997 ;; 11998 11999solaris*) 12000 version_type=linux # correct to gnu/linux during the next big refactor 12001 need_lib_prefix=no 12002 need_version=no 12003 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12004 soname_spec='$libname$release$shared_ext$major' 12005 shlibpath_var=LD_LIBRARY_PATH 12006 shlibpath_overrides_runpath=yes 12007 hardcode_into_libs=yes 12008 # ldd complains unless libraries are executable 12009 postinstall_cmds='chmod +x $lib' 12010 ;; 12011 12012sunos4*) 12013 version_type=sunos 12014 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12015 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12016 shlibpath_var=LD_LIBRARY_PATH 12017 shlibpath_overrides_runpath=yes 12018 if test yes = "$with_gnu_ld"; then 12019 need_lib_prefix=no 12020 fi 12021 need_version=yes 12022 ;; 12023 12024sysv4 | sysv4.3*) 12025 version_type=linux # correct to gnu/linux during the next big refactor 12026 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12027 soname_spec='$libname$release$shared_ext$major' 12028 shlibpath_var=LD_LIBRARY_PATH 12029 case $host_vendor in 12030 sni) 12031 shlibpath_overrides_runpath=no 12032 need_lib_prefix=no 12033 runpath_var=LD_RUN_PATH 12034 ;; 12035 siemens) 12036 need_lib_prefix=no 12037 ;; 12038 motorola) 12039 need_lib_prefix=no 12040 need_version=no 12041 shlibpath_overrides_runpath=no 12042 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12043 ;; 12044 esac 12045 ;; 12046 12047sysv4*MP*) 12048 if test -d /usr/nec; then 12049 version_type=linux # correct to gnu/linux during the next big refactor 12050 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12051 soname_spec='$libname$shared_ext.$major' 12052 shlibpath_var=LD_LIBRARY_PATH 12053 fi 12054 ;; 12055 12056sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12057 version_type=sco 12058 need_lib_prefix=no 12059 need_version=no 12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12061 soname_spec='$libname$release$shared_ext$major' 12062 shlibpath_var=LD_LIBRARY_PATH 12063 shlibpath_overrides_runpath=yes 12064 hardcode_into_libs=yes 12065 if test yes = "$with_gnu_ld"; then 12066 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12067 else 12068 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12069 case $host_os in 12070 sco3.2v5*) 12071 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12072 ;; 12073 esac 12074 fi 12075 sys_lib_dlsearch_path_spec='/usr/lib' 12076 ;; 12077 12078tpf*) 12079 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12080 version_type=linux # correct to gnu/linux during the next big refactor 12081 need_lib_prefix=no 12082 need_version=no 12083 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12084 shlibpath_var=LD_LIBRARY_PATH 12085 shlibpath_overrides_runpath=no 12086 hardcode_into_libs=yes 12087 ;; 12088 12089uts4*) 12090 version_type=linux # correct to gnu/linux during the next big refactor 12091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12092 soname_spec='$libname$release$shared_ext$major' 12093 shlibpath_var=LD_LIBRARY_PATH 12094 ;; 12095 12096*) 12097 dynamic_linker=no 12098 ;; 12099esac 12100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12101$as_echo "$dynamic_linker" >&6; } 12102test no = "$dynamic_linker" && can_build_shared=no 12103 12104variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12105if test yes = "$GCC"; then 12106 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12107fi 12108 12109if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12110 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12111fi 12112 12113if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12114 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12115fi 12116 12117# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12118configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12119 12120# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12121func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12122 12123# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12124configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12223$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12224hardcode_action= 12225if test -n "$hardcode_libdir_flag_spec" || 12226 test -n "$runpath_var" || 12227 test yes = "$hardcode_automatic"; then 12228 12229 # We can hardcode non-existent directories. 12230 if test no != "$hardcode_direct" && 12231 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12232 # have to relink, otherwise we might link with an installed library 12233 # when we should be linking with a yet-to-be-installed one 12234 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12235 test no != "$hardcode_minus_L"; then 12236 # Linking always hardcodes the temporary library directory. 12237 hardcode_action=relink 12238 else 12239 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12240 hardcode_action=immediate 12241 fi 12242else 12243 # We cannot hardcode anything, or else we can only hardcode existing 12244 # directories. 12245 hardcode_action=unsupported 12246fi 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12248$as_echo "$hardcode_action" >&6; } 12249 12250if test relink = "$hardcode_action" || 12251 test yes = "$inherit_rpath"; then 12252 # Fast installation is not supported 12253 enable_fast_install=no 12254elif test yes = "$shlibpath_overrides_runpath" || 12255 test no = "$enable_shared"; then 12256 # Fast installation is not necessary 12257 enable_fast_install=needless 12258fi 12259 12260 12261 12262 12263 12264 12265 if test yes != "$enable_dlopen"; then 12266 enable_dlopen=unknown 12267 enable_dlopen_self=unknown 12268 enable_dlopen_self_static=unknown 12269else 12270 lt_cv_dlopen=no 12271 lt_cv_dlopen_libs= 12272 12273 case $host_os in 12274 beos*) 12275 lt_cv_dlopen=load_add_on 12276 lt_cv_dlopen_libs= 12277 lt_cv_dlopen_self=yes 12278 ;; 12279 12280 mingw* | pw32* | cegcc*) 12281 lt_cv_dlopen=LoadLibrary 12282 lt_cv_dlopen_libs= 12283 ;; 12284 12285 cygwin*) 12286 lt_cv_dlopen=dlopen 12287 lt_cv_dlopen_libs= 12288 ;; 12289 12290 darwin*) 12291 # if libdl is installed we need to link against it 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12293$as_echo_n "checking for dlopen in -ldl... " >&6; } 12294if ${ac_cv_lib_dl_dlopen+:} false; then : 12295 $as_echo_n "(cached) " >&6 12296else 12297 ac_check_lib_save_LIBS=$LIBS 12298LIBS="-ldl $LIBS" 12299cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12300/* end confdefs.h. */ 12301 12302/* Override any GCC internal prototype to avoid an error. 12303 Use char because int might match the return type of a GCC 12304 builtin and then its argument prototype would still apply. */ 12305#ifdef __cplusplus 12306extern "C" 12307#endif 12308char dlopen (); 12309int 12310main () 12311{ 12312return dlopen (); 12313 ; 12314 return 0; 12315} 12316_ACEOF 12317if ac_fn_c_try_link "$LINENO"; then : 12318 ac_cv_lib_dl_dlopen=yes 12319else 12320 ac_cv_lib_dl_dlopen=no 12321fi 12322rm -f core conftest.err conftest.$ac_objext \ 12323 conftest$ac_exeext conftest.$ac_ext 12324LIBS=$ac_check_lib_save_LIBS 12325fi 12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12327$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12328if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12329 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12330else 12331 12332 lt_cv_dlopen=dyld 12333 lt_cv_dlopen_libs= 12334 lt_cv_dlopen_self=yes 12335 12336fi 12337 12338 ;; 12339 12340 tpf*) 12341 # Don't try to run any link tests for TPF. We know it's impossible 12342 # because TPF is a cross-compiler, and we know how we open DSOs. 12343 lt_cv_dlopen=dlopen 12344 lt_cv_dlopen_libs= 12345 lt_cv_dlopen_self=no 12346 ;; 12347 12348 *) 12349 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12350if test "x$ac_cv_func_shl_load" = xyes; then : 12351 lt_cv_dlopen=shl_load 12352else 12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 12354$as_echo_n "checking for shl_load in -ldld... " >&6; } 12355if ${ac_cv_lib_dld_shl_load+:} false; then : 12356 $as_echo_n "(cached) " >&6 12357else 12358 ac_check_lib_save_LIBS=$LIBS 12359LIBS="-ldld $LIBS" 12360cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12361/* end confdefs.h. */ 12362 12363/* Override any GCC internal prototype to avoid an error. 12364 Use char because int might match the return type of a GCC 12365 builtin and then its argument prototype would still apply. */ 12366#ifdef __cplusplus 12367extern "C" 12368#endif 12369char shl_load (); 12370int 12371main () 12372{ 12373return shl_load (); 12374 ; 12375 return 0; 12376} 12377_ACEOF 12378if ac_fn_c_try_link "$LINENO"; then : 12379 ac_cv_lib_dld_shl_load=yes 12380else 12381 ac_cv_lib_dld_shl_load=no 12382fi 12383rm -f core conftest.err conftest.$ac_objext \ 12384 conftest$ac_exeext conftest.$ac_ext 12385LIBS=$ac_check_lib_save_LIBS 12386fi 12387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 12388$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 12389if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 12390 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 12391else 12392 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 12393if test "x$ac_cv_func_dlopen" = xyes; then : 12394 lt_cv_dlopen=dlopen 12395else 12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12397$as_echo_n "checking for dlopen in -ldl... " >&6; } 12398if ${ac_cv_lib_dl_dlopen+:} false; then : 12399 $as_echo_n "(cached) " >&6 12400else 12401 ac_check_lib_save_LIBS=$LIBS 12402LIBS="-ldl $LIBS" 12403cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405 12406/* Override any GCC internal prototype to avoid an error. 12407 Use char because int might match the return type of a GCC 12408 builtin and then its argument prototype would still apply. */ 12409#ifdef __cplusplus 12410extern "C" 12411#endif 12412char dlopen (); 12413int 12414main () 12415{ 12416return dlopen (); 12417 ; 12418 return 0; 12419} 12420_ACEOF 12421if ac_fn_c_try_link "$LINENO"; then : 12422 ac_cv_lib_dl_dlopen=yes 12423else 12424 ac_cv_lib_dl_dlopen=no 12425fi 12426rm -f core conftest.err conftest.$ac_objext \ 12427 conftest$ac_exeext conftest.$ac_ext 12428LIBS=$ac_check_lib_save_LIBS 12429fi 12430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12431$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12432if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12433 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12434else 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 12436$as_echo_n "checking for dlopen in -lsvld... " >&6; } 12437if ${ac_cv_lib_svld_dlopen+:} false; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 ac_check_lib_save_LIBS=$LIBS 12441LIBS="-lsvld $LIBS" 12442cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12443/* end confdefs.h. */ 12444 12445/* Override any GCC internal prototype to avoid an error. 12446 Use char because int might match the return type of a GCC 12447 builtin and then its argument prototype would still apply. */ 12448#ifdef __cplusplus 12449extern "C" 12450#endif 12451char dlopen (); 12452int 12453main () 12454{ 12455return dlopen (); 12456 ; 12457 return 0; 12458} 12459_ACEOF 12460if ac_fn_c_try_link "$LINENO"; then : 12461 ac_cv_lib_svld_dlopen=yes 12462else 12463 ac_cv_lib_svld_dlopen=no 12464fi 12465rm -f core conftest.err conftest.$ac_objext \ 12466 conftest$ac_exeext conftest.$ac_ext 12467LIBS=$ac_check_lib_save_LIBS 12468fi 12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 12470$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 12471if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 12472 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 12473else 12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 12475$as_echo_n "checking for dld_link in -ldld... " >&6; } 12476if ${ac_cv_lib_dld_dld_link+:} false; then : 12477 $as_echo_n "(cached) " >&6 12478else 12479 ac_check_lib_save_LIBS=$LIBS 12480LIBS="-ldld $LIBS" 12481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12482/* end confdefs.h. */ 12483 12484/* Override any GCC internal prototype to avoid an error. 12485 Use char because int might match the return type of a GCC 12486 builtin and then its argument prototype would still apply. */ 12487#ifdef __cplusplus 12488extern "C" 12489#endif 12490char dld_link (); 12491int 12492main () 12493{ 12494return dld_link (); 12495 ; 12496 return 0; 12497} 12498_ACEOF 12499if ac_fn_c_try_link "$LINENO"; then : 12500 ac_cv_lib_dld_dld_link=yes 12501else 12502 ac_cv_lib_dld_dld_link=no 12503fi 12504rm -f core conftest.err conftest.$ac_objext \ 12505 conftest$ac_exeext conftest.$ac_ext 12506LIBS=$ac_check_lib_save_LIBS 12507fi 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 12509$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 12510if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 12511 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 12512fi 12513 12514 12515fi 12516 12517 12518fi 12519 12520 12521fi 12522 12523 12524fi 12525 12526 12527fi 12528 12529 ;; 12530 esac 12531 12532 if test no = "$lt_cv_dlopen"; then 12533 enable_dlopen=no 12534 else 12535 enable_dlopen=yes 12536 fi 12537 12538 case $lt_cv_dlopen in 12539 dlopen) 12540 save_CPPFLAGS=$CPPFLAGS 12541 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 12542 12543 save_LDFLAGS=$LDFLAGS 12544 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 12545 12546 save_LIBS=$LIBS 12547 LIBS="$lt_cv_dlopen_libs $LIBS" 12548 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 12550$as_echo_n "checking whether a program can dlopen itself... " >&6; } 12551if ${lt_cv_dlopen_self+:} false; then : 12552 $as_echo_n "(cached) " >&6 12553else 12554 if test yes = "$cross_compiling"; then : 12555 lt_cv_dlopen_self=cross 12556else 12557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12558 lt_status=$lt_dlunknown 12559 cat > conftest.$ac_ext <<_LT_EOF 12560#line $LINENO "configure" 12561#include "confdefs.h" 12562 12563#if HAVE_DLFCN_H 12564#include <dlfcn.h> 12565#endif 12566 12567#include <stdio.h> 12568 12569#ifdef RTLD_GLOBAL 12570# define LT_DLGLOBAL RTLD_GLOBAL 12571#else 12572# ifdef DL_GLOBAL 12573# define LT_DLGLOBAL DL_GLOBAL 12574# else 12575# define LT_DLGLOBAL 0 12576# endif 12577#endif 12578 12579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12580 find out it does not work in some platform. */ 12581#ifndef LT_DLLAZY_OR_NOW 12582# ifdef RTLD_LAZY 12583# define LT_DLLAZY_OR_NOW RTLD_LAZY 12584# else 12585# ifdef DL_LAZY 12586# define LT_DLLAZY_OR_NOW DL_LAZY 12587# else 12588# ifdef RTLD_NOW 12589# define LT_DLLAZY_OR_NOW RTLD_NOW 12590# else 12591# ifdef DL_NOW 12592# define LT_DLLAZY_OR_NOW DL_NOW 12593# else 12594# define LT_DLLAZY_OR_NOW 0 12595# endif 12596# endif 12597# endif 12598# endif 12599#endif 12600 12601/* When -fvisibility=hidden is used, assume the code has been annotated 12602 correspondingly for the symbols needed. */ 12603#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12604int fnord () __attribute__((visibility("default"))); 12605#endif 12606 12607int fnord () { return 42; } 12608int main () 12609{ 12610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12611 int status = $lt_dlunknown; 12612 12613 if (self) 12614 { 12615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12616 else 12617 { 12618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12619 else puts (dlerror ()); 12620 } 12621 /* dlclose (self); */ 12622 } 12623 else 12624 puts (dlerror ()); 12625 12626 return status; 12627} 12628_LT_EOF 12629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12630 (eval $ac_link) 2>&5 12631 ac_status=$? 12632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12633 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12634 (./conftest; exit; ) >&5 2>/dev/null 12635 lt_status=$? 12636 case x$lt_status in 12637 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12638 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12639 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12640 esac 12641 else : 12642 # compilation failed 12643 lt_cv_dlopen_self=no 12644 fi 12645fi 12646rm -fr conftest* 12647 12648 12649fi 12650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12651$as_echo "$lt_cv_dlopen_self" >&6; } 12652 12653 if test yes = "$lt_cv_dlopen_self"; then 12654 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12656$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12657if ${lt_cv_dlopen_self_static+:} false; then : 12658 $as_echo_n "(cached) " >&6 12659else 12660 if test yes = "$cross_compiling"; then : 12661 lt_cv_dlopen_self_static=cross 12662else 12663 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12664 lt_status=$lt_dlunknown 12665 cat > conftest.$ac_ext <<_LT_EOF 12666#line $LINENO "configure" 12667#include "confdefs.h" 12668 12669#if HAVE_DLFCN_H 12670#include <dlfcn.h> 12671#endif 12672 12673#include <stdio.h> 12674 12675#ifdef RTLD_GLOBAL 12676# define LT_DLGLOBAL RTLD_GLOBAL 12677#else 12678# ifdef DL_GLOBAL 12679# define LT_DLGLOBAL DL_GLOBAL 12680# else 12681# define LT_DLGLOBAL 0 12682# endif 12683#endif 12684 12685/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12686 find out it does not work in some platform. */ 12687#ifndef LT_DLLAZY_OR_NOW 12688# ifdef RTLD_LAZY 12689# define LT_DLLAZY_OR_NOW RTLD_LAZY 12690# else 12691# ifdef DL_LAZY 12692# define LT_DLLAZY_OR_NOW DL_LAZY 12693# else 12694# ifdef RTLD_NOW 12695# define LT_DLLAZY_OR_NOW RTLD_NOW 12696# else 12697# ifdef DL_NOW 12698# define LT_DLLAZY_OR_NOW DL_NOW 12699# else 12700# define LT_DLLAZY_OR_NOW 0 12701# endif 12702# endif 12703# endif 12704# endif 12705#endif 12706 12707/* When -fvisibility=hidden is used, assume the code has been annotated 12708 correspondingly for the symbols needed. */ 12709#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12710int fnord () __attribute__((visibility("default"))); 12711#endif 12712 12713int fnord () { return 42; } 12714int main () 12715{ 12716 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12717 int status = $lt_dlunknown; 12718 12719 if (self) 12720 { 12721 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12722 else 12723 { 12724 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12725 else puts (dlerror ()); 12726 } 12727 /* dlclose (self); */ 12728 } 12729 else 12730 puts (dlerror ()); 12731 12732 return status; 12733} 12734_LT_EOF 12735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12736 (eval $ac_link) 2>&5 12737 ac_status=$? 12738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12739 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 12740 (./conftest; exit; ) >&5 2>/dev/null 12741 lt_status=$? 12742 case x$lt_status in 12743 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12744 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12745 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12746 esac 12747 else : 12748 # compilation failed 12749 lt_cv_dlopen_self_static=no 12750 fi 12751fi 12752rm -fr conftest* 12753 12754 12755fi 12756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12757$as_echo "$lt_cv_dlopen_self_static" >&6; } 12758 fi 12759 12760 CPPFLAGS=$save_CPPFLAGS 12761 LDFLAGS=$save_LDFLAGS 12762 LIBS=$save_LIBS 12763 ;; 12764 esac 12765 12766 case $lt_cv_dlopen_self in 12767 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12768 *) enable_dlopen_self=unknown ;; 12769 esac 12770 12771 case $lt_cv_dlopen_self_static in 12772 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12773 *) enable_dlopen_self_static=unknown ;; 12774 esac 12775fi 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793striplib= 12794old_striplib= 12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12796$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12797if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12798 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12799 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12801$as_echo "yes" >&6; } 12802else 12803# FIXME - insert some real tests, host_os isn't really good enough 12804 case $host_os in 12805 darwin*) 12806 if test -n "$STRIP"; then 12807 striplib="$STRIP -x" 12808 old_striplib="$STRIP -S" 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12810$as_echo "yes" >&6; } 12811 else 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12813$as_echo "no" >&6; } 12814 fi 12815 ;; 12816 *) 12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12818$as_echo "no" >&6; } 12819 ;; 12820 esac 12821fi 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 # Report what library types will actually be built 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12836$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12838$as_echo "$can_build_shared" >&6; } 12839 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12841$as_echo_n "checking whether to build shared libraries... " >&6; } 12842 test no = "$can_build_shared" && enable_shared=no 12843 12844 # On AIX, shared libraries and static libraries use the same namespace, and 12845 # are all built from PIC. 12846 case $host_os in 12847 aix3*) 12848 test yes = "$enable_shared" && enable_static=no 12849 if test -n "$RANLIB"; then 12850 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12851 postinstall_cmds='$RANLIB $lib' 12852 fi 12853 ;; 12854 12855 aix[4-9]*) 12856 if test ia64 != "$host_cpu"; then 12857 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12858 yes,aix,yes) ;; # shared object as lib.so file only 12859 yes,svr4,*) ;; # shared object as lib.so archive member only 12860 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12861 esac 12862 fi 12863 ;; 12864 esac 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12866$as_echo "$enable_shared" >&6; } 12867 12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12869$as_echo_n "checking whether to build static libraries... " >&6; } 12870 # Make sure either enable_shared or enable_static is yes. 12871 test yes = "$enable_shared" || enable_static=yes 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12873$as_echo "$enable_static" >&6; } 12874 12875 12876 12877 12878fi 12879ac_ext=c 12880ac_cpp='$CPP $CPPFLAGS' 12881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12883ac_compiler_gnu=$ac_cv_c_compiler_gnu 12884 12885CC=$lt_save_CC 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 ac_config_commands="$ac_config_commands libtool" 12902 12903 12904 12905 12906# Only expand once: 12907 12908 12909 12910# Require xorg-macros minimum of 1.18 - Initial version 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12923$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12924if ${ac_cv_prog_cc_c99+:} false; then : 12925 $as_echo_n "(cached) " >&6 12926else 12927 ac_cv_prog_cc_c99=no 12928ac_save_CC=$CC 12929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12930/* end confdefs.h. */ 12931#include <stdarg.h> 12932#include <stdbool.h> 12933#include <stdlib.h> 12934#include <wchar.h> 12935#include <stdio.h> 12936 12937// Check varargs macros. These examples are taken from C99 6.10.3.5. 12938#define debug(...) fprintf (stderr, __VA_ARGS__) 12939#define showlist(...) puts (#__VA_ARGS__) 12940#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12941static void 12942test_varargs_macros (void) 12943{ 12944 int x = 1234; 12945 int y = 5678; 12946 debug ("Flag"); 12947 debug ("X = %d\n", x); 12948 showlist (The first, second, and third items.); 12949 report (x>y, "x is %d but y is %d", x, y); 12950} 12951 12952// Check long long types. 12953#define BIG64 18446744073709551615ull 12954#define BIG32 4294967295ul 12955#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12956#if !BIG_OK 12957 your preprocessor is broken; 12958#endif 12959#if BIG_OK 12960#else 12961 your preprocessor is broken; 12962#endif 12963static long long int bignum = -9223372036854775807LL; 12964static unsigned long long int ubignum = BIG64; 12965 12966struct incomplete_array 12967{ 12968 int datasize; 12969 double data[]; 12970}; 12971 12972struct named_init { 12973 int number; 12974 const wchar_t *name; 12975 double average; 12976}; 12977 12978typedef const char *ccp; 12979 12980static inline int 12981test_restrict (ccp restrict text) 12982{ 12983 // See if C++-style comments work. 12984 // Iterate through items via the restricted pointer. 12985 // Also check for declarations in for loops. 12986 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12987 continue; 12988 return 0; 12989} 12990 12991// Check varargs and va_copy. 12992static void 12993test_varargs (const char *format, ...) 12994{ 12995 va_list args; 12996 va_start (args, format); 12997 va_list args_copy; 12998 va_copy (args_copy, args); 12999 13000 const char *str; 13001 int number; 13002 float fnumber; 13003 13004 while (*format) 13005 { 13006 switch (*format++) 13007 { 13008 case 's': // string 13009 str = va_arg (args_copy, const char *); 13010 break; 13011 case 'd': // int 13012 number = va_arg (args_copy, int); 13013 break; 13014 case 'f': // float 13015 fnumber = va_arg (args_copy, double); 13016 break; 13017 default: 13018 break; 13019 } 13020 } 13021 va_end (args_copy); 13022 va_end (args); 13023} 13024 13025int 13026main () 13027{ 13028 13029 // Check bool. 13030 _Bool success = false; 13031 13032 // Check restrict. 13033 if (test_restrict ("String literal") == 0) 13034 success = true; 13035 char *restrict newvar = "Another string"; 13036 13037 // Check varargs. 13038 test_varargs ("s, d' f .", "string", 65, 34.234); 13039 test_varargs_macros (); 13040 13041 // Check flexible array members. 13042 struct incomplete_array *ia = 13043 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 13044 ia->datasize = 10; 13045 for (int i = 0; i < ia->datasize; ++i) 13046 ia->data[i] = i * 1.234; 13047 13048 // Check named initializers. 13049 struct named_init ni = { 13050 .number = 34, 13051 .name = L"Test wide string", 13052 .average = 543.34343, 13053 }; 13054 13055 ni.number = 58; 13056 13057 int dynamic_array[ni.number]; 13058 dynamic_array[ni.number - 1] = 543; 13059 13060 // work around unused variable warnings 13061 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 13062 || dynamic_array[ni.number - 1] != 543); 13063 13064 ; 13065 return 0; 13066} 13067_ACEOF 13068for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 13069do 13070 CC="$ac_save_CC $ac_arg" 13071 if ac_fn_c_try_compile "$LINENO"; then : 13072 ac_cv_prog_cc_c99=$ac_arg 13073fi 13074rm -f core conftest.err conftest.$ac_objext 13075 test "x$ac_cv_prog_cc_c99" != "xno" && break 13076done 13077rm -f conftest.$ac_ext 13078CC=$ac_save_CC 13079 13080fi 13081# AC_CACHE_VAL 13082case "x$ac_cv_prog_cc_c99" in 13083 x) 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 13085$as_echo "none needed" >&6; } ;; 13086 xno) 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 13088$as_echo "unsupported" >&6; } ;; 13089 *) 13090 CC="$CC $ac_cv_prog_cc_c99" 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 13092$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 13093esac 13094if test "x$ac_cv_prog_cc_c99" != xno; then : 13095 13096fi 13097 13098 13099 13100 13101 13102 13103ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 13104if test "x$ac_cv_have_decl___clang__" = xyes; then : 13105 CLANGCC="yes" 13106else 13107 CLANGCC="no" 13108fi 13109 13110ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 13111if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 13112 INTELCC="yes" 13113else 13114 INTELCC="no" 13115fi 13116 13117ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 13118if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 13119 SUNCC="yes" 13120else 13121 SUNCC="no" 13122fi 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 13133 if test -n "$ac_tool_prefix"; then 13134 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 13135set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 13136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13137$as_echo_n "checking for $ac_word... " >&6; } 13138if ${ac_cv_path_PKG_CONFIG+:} false; then : 13139 $as_echo_n "(cached) " >&6 13140else 13141 case $PKG_CONFIG in 13142 [\\/]* | ?:[\\/]*) 13143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13144 ;; 13145 *) 13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13147for as_dir in $PATH 13148do 13149 IFS=$as_save_IFS 13150 test -z "$as_dir" && as_dir=. 13151 for ac_exec_ext in '' $ac_executable_extensions; do 13152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13155 break 2 13156 fi 13157done 13158 done 13159IFS=$as_save_IFS 13160 13161 ;; 13162esac 13163fi 13164PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13165if test -n "$PKG_CONFIG"; then 13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13167$as_echo "$PKG_CONFIG" >&6; } 13168else 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13170$as_echo "no" >&6; } 13171fi 13172 13173 13174fi 13175if test -z "$ac_cv_path_PKG_CONFIG"; then 13176 ac_pt_PKG_CONFIG=$PKG_CONFIG 13177 # Extract the first word of "pkg-config", so it can be a program name with args. 13178set dummy pkg-config; ac_word=$2 13179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13180$as_echo_n "checking for $ac_word... " >&6; } 13181if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 13182 $as_echo_n "(cached) " >&6 13183else 13184 case $ac_pt_PKG_CONFIG in 13185 [\\/]* | ?:[\\/]*) 13186 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 13187 ;; 13188 *) 13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13190for as_dir in $PATH 13191do 13192 IFS=$as_save_IFS 13193 test -z "$as_dir" && as_dir=. 13194 for ac_exec_ext in '' $ac_executable_extensions; do 13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13196 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13198 break 2 13199 fi 13200done 13201 done 13202IFS=$as_save_IFS 13203 13204 ;; 13205esac 13206fi 13207ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 13208if test -n "$ac_pt_PKG_CONFIG"; then 13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 13210$as_echo "$ac_pt_PKG_CONFIG" >&6; } 13211else 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13213$as_echo "no" >&6; } 13214fi 13215 13216 if test "x$ac_pt_PKG_CONFIG" = x; then 13217 PKG_CONFIG="" 13218 else 13219 case $cross_compiling:$ac_tool_warned in 13220yes:) 13221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13223ac_tool_warned=yes ;; 13224esac 13225 PKG_CONFIG=$ac_pt_PKG_CONFIG 13226 fi 13227else 13228 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 13229fi 13230 13231fi 13232if test -n "$PKG_CONFIG"; then 13233 _pkg_min_version=0.9.0 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 13235$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 13236 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13238$as_echo "yes" >&6; } 13239 else 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13241$as_echo "no" >&6; } 13242 PKG_CONFIG="" 13243 fi 13244fi 13245 13246 13247 13248 13249 13250# Check whether --enable-selective-werror was given. 13251if test "${enable_selective_werror+set}" = set; then : 13252 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 13253else 13254 SELECTIVE_WERROR=yes 13255fi 13256 13257 13258 13259 13260 13261# -v is too short to test reliably with XORG_TESTSET_CFLAG 13262if test "x$SUNCC" = "xyes"; then 13263 BASE_CFLAGS="-v" 13264else 13265 BASE_CFLAGS="" 13266fi 13267 13268# This chunk of warnings were those that existed in the legacy CWARNFLAGS 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282xorg_testset_save_CFLAGS="$CFLAGS" 13283 13284if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13285 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13287$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13288if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13289 $as_echo_n "(cached) " >&6 13290else 13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13292/* end confdefs.h. */ 13293int i; 13294_ACEOF 13295if ac_fn_c_try_compile "$LINENO"; then : 13296 xorg_cv_cc_flag_unknown_warning_option=yes 13297else 13298 xorg_cv_cc_flag_unknown_warning_option=no 13299fi 13300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13301fi 13302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13303$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13305 CFLAGS="$xorg_testset_save_CFLAGS" 13306fi 13307 13308if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13311 fi 13312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13314$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13315if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13316 $as_echo_n "(cached) " >&6 13317else 13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319/* end confdefs.h. */ 13320int i; 13321_ACEOF 13322if ac_fn_c_try_compile "$LINENO"; then : 13323 xorg_cv_cc_flag_unused_command_line_argument=yes 13324else 13325 xorg_cv_cc_flag_unused_command_line_argument=no 13326fi 13327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13328fi 13329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13330$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13332 CFLAGS="$xorg_testset_save_CFLAGS" 13333fi 13334 13335found="no" 13336 13337 if test $found = "no" ; then 13338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13339 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13340 fi 13341 13342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13344 fi 13345 13346 CFLAGS="$CFLAGS -Wall" 13347 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 13349$as_echo_n "checking if $CC supports -Wall... " >&6; } 13350 cacheid=xorg_cv_cc_flag__Wall 13351 if eval \${$cacheid+:} false; then : 13352 $as_echo_n "(cached) " >&6 13353else 13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13355/* end confdefs.h. */ 13356int i; 13357int 13358main () 13359{ 13360 13361 ; 13362 return 0; 13363} 13364_ACEOF 13365if ac_fn_c_try_link "$LINENO"; then : 13366 eval $cacheid=yes 13367else 13368 eval $cacheid=no 13369fi 13370rm -f core conftest.err conftest.$ac_objext \ 13371 conftest$ac_exeext conftest.$ac_ext 13372fi 13373 13374 13375 CFLAGS="$xorg_testset_save_CFLAGS" 13376 13377 eval supported=\$$cacheid 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13379$as_echo "$supported" >&6; } 13380 if test "$supported" = "yes" ; then 13381 BASE_CFLAGS="$BASE_CFLAGS -Wall" 13382 found="yes" 13383 fi 13384 fi 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400xorg_testset_save_CFLAGS="$CFLAGS" 13401 13402if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13405$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13406if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13407 $as_echo_n "(cached) " >&6 13408else 13409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410/* end confdefs.h. */ 13411int i; 13412_ACEOF 13413if ac_fn_c_try_compile "$LINENO"; then : 13414 xorg_cv_cc_flag_unknown_warning_option=yes 13415else 13416 xorg_cv_cc_flag_unknown_warning_option=no 13417fi 13418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13419fi 13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13421$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13423 CFLAGS="$xorg_testset_save_CFLAGS" 13424fi 13425 13426if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13429 fi 13430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13432$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13433if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13434 $as_echo_n "(cached) " >&6 13435else 13436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13437/* end confdefs.h. */ 13438int i; 13439_ACEOF 13440if ac_fn_c_try_compile "$LINENO"; then : 13441 xorg_cv_cc_flag_unused_command_line_argument=yes 13442else 13443 xorg_cv_cc_flag_unused_command_line_argument=no 13444fi 13445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13446fi 13447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13448$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13450 CFLAGS="$xorg_testset_save_CFLAGS" 13451fi 13452 13453found="no" 13454 13455 if test $found = "no" ; then 13456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13457 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13458 fi 13459 13460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13462 fi 13463 13464 CFLAGS="$CFLAGS -Wpointer-arith" 13465 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 13467$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 13468 cacheid=xorg_cv_cc_flag__Wpointer_arith 13469 if eval \${$cacheid+:} false; then : 13470 $as_echo_n "(cached) " >&6 13471else 13472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13473/* end confdefs.h. */ 13474int i; 13475int 13476main () 13477{ 13478 13479 ; 13480 return 0; 13481} 13482_ACEOF 13483if ac_fn_c_try_link "$LINENO"; then : 13484 eval $cacheid=yes 13485else 13486 eval $cacheid=no 13487fi 13488rm -f core conftest.err conftest.$ac_objext \ 13489 conftest$ac_exeext conftest.$ac_ext 13490fi 13491 13492 13493 CFLAGS="$xorg_testset_save_CFLAGS" 13494 13495 eval supported=\$$cacheid 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13497$as_echo "$supported" >&6; } 13498 if test "$supported" = "yes" ; then 13499 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 13500 found="yes" 13501 fi 13502 fi 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518xorg_testset_save_CFLAGS="$CFLAGS" 13519 13520if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13521 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13523$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13524if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13525 $as_echo_n "(cached) " >&6 13526else 13527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13528/* end confdefs.h. */ 13529int i; 13530_ACEOF 13531if ac_fn_c_try_compile "$LINENO"; then : 13532 xorg_cv_cc_flag_unknown_warning_option=yes 13533else 13534 xorg_cv_cc_flag_unknown_warning_option=no 13535fi 13536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13537fi 13538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13539$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13541 CFLAGS="$xorg_testset_save_CFLAGS" 13542fi 13543 13544if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13547 fi 13548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13550$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13551if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13552 $as_echo_n "(cached) " >&6 13553else 13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13555/* end confdefs.h. */ 13556int i; 13557_ACEOF 13558if ac_fn_c_try_compile "$LINENO"; then : 13559 xorg_cv_cc_flag_unused_command_line_argument=yes 13560else 13561 xorg_cv_cc_flag_unused_command_line_argument=no 13562fi 13563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13564fi 13565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13566$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13568 CFLAGS="$xorg_testset_save_CFLAGS" 13569fi 13570 13571found="no" 13572 13573 if test $found = "no" ; then 13574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13575 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13576 fi 13577 13578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13580 fi 13581 13582 CFLAGS="$CFLAGS -Wmissing-declarations" 13583 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 13585$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 13586 cacheid=xorg_cv_cc_flag__Wmissing_declarations 13587 if eval \${$cacheid+:} false; then : 13588 $as_echo_n "(cached) " >&6 13589else 13590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13591/* end confdefs.h. */ 13592int i; 13593int 13594main () 13595{ 13596 13597 ; 13598 return 0; 13599} 13600_ACEOF 13601if ac_fn_c_try_link "$LINENO"; then : 13602 eval $cacheid=yes 13603else 13604 eval $cacheid=no 13605fi 13606rm -f core conftest.err conftest.$ac_objext \ 13607 conftest$ac_exeext conftest.$ac_ext 13608fi 13609 13610 13611 CFLAGS="$xorg_testset_save_CFLAGS" 13612 13613 eval supported=\$$cacheid 13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13615$as_echo "$supported" >&6; } 13616 if test "$supported" = "yes" ; then 13617 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 13618 found="yes" 13619 fi 13620 fi 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636xorg_testset_save_CFLAGS="$CFLAGS" 13637 13638if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13639 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13641$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13642if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13643 $as_echo_n "(cached) " >&6 13644else 13645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13646/* end confdefs.h. */ 13647int i; 13648_ACEOF 13649if ac_fn_c_try_compile "$LINENO"; then : 13650 xorg_cv_cc_flag_unknown_warning_option=yes 13651else 13652 xorg_cv_cc_flag_unknown_warning_option=no 13653fi 13654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13655fi 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13657$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13659 CFLAGS="$xorg_testset_save_CFLAGS" 13660fi 13661 13662if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13665 fi 13666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13668$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13669if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13670 $as_echo_n "(cached) " >&6 13671else 13672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13673/* end confdefs.h. */ 13674int i; 13675_ACEOF 13676if ac_fn_c_try_compile "$LINENO"; then : 13677 xorg_cv_cc_flag_unused_command_line_argument=yes 13678else 13679 xorg_cv_cc_flag_unused_command_line_argument=no 13680fi 13681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13682fi 13683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13684$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13686 CFLAGS="$xorg_testset_save_CFLAGS" 13687fi 13688 13689found="no" 13690 13691 if test $found = "no" ; then 13692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13693 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13694 fi 13695 13696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13698 fi 13699 13700 CFLAGS="$CFLAGS -Wformat=2" 13701 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 13703$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 13704 cacheid=xorg_cv_cc_flag__Wformat_2 13705 if eval \${$cacheid+:} false; then : 13706 $as_echo_n "(cached) " >&6 13707else 13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13709/* end confdefs.h. */ 13710int i; 13711int 13712main () 13713{ 13714 13715 ; 13716 return 0; 13717} 13718_ACEOF 13719if ac_fn_c_try_link "$LINENO"; then : 13720 eval $cacheid=yes 13721else 13722 eval $cacheid=no 13723fi 13724rm -f core conftest.err conftest.$ac_objext \ 13725 conftest$ac_exeext conftest.$ac_ext 13726fi 13727 13728 13729 CFLAGS="$xorg_testset_save_CFLAGS" 13730 13731 eval supported=\$$cacheid 13732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13733$as_echo "$supported" >&6; } 13734 if test "$supported" = "yes" ; then 13735 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 13736 found="yes" 13737 fi 13738 fi 13739 13740 if test $found = "no" ; then 13741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13743 fi 13744 13745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13747 fi 13748 13749 CFLAGS="$CFLAGS -Wformat" 13750 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 13752$as_echo_n "checking if $CC supports -Wformat... " >&6; } 13753 cacheid=xorg_cv_cc_flag__Wformat 13754 if eval \${$cacheid+:} false; then : 13755 $as_echo_n "(cached) " >&6 13756else 13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13758/* end confdefs.h. */ 13759int i; 13760int 13761main () 13762{ 13763 13764 ; 13765 return 0; 13766} 13767_ACEOF 13768if ac_fn_c_try_link "$LINENO"; then : 13769 eval $cacheid=yes 13770else 13771 eval $cacheid=no 13772fi 13773rm -f core conftest.err conftest.$ac_objext \ 13774 conftest$ac_exeext conftest.$ac_ext 13775fi 13776 13777 13778 CFLAGS="$xorg_testset_save_CFLAGS" 13779 13780 eval supported=\$$cacheid 13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13782$as_echo "$supported" >&6; } 13783 if test "$supported" = "yes" ; then 13784 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13785 found="yes" 13786 fi 13787 fi 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805xorg_testset_save_CFLAGS="$CFLAGS" 13806 13807if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13808 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13810$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13811if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13812 $as_echo_n "(cached) " >&6 13813else 13814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13815/* end confdefs.h. */ 13816int i; 13817_ACEOF 13818if ac_fn_c_try_compile "$LINENO"; then : 13819 xorg_cv_cc_flag_unknown_warning_option=yes 13820else 13821 xorg_cv_cc_flag_unknown_warning_option=no 13822fi 13823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13824fi 13825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13826$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13827 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13828 CFLAGS="$xorg_testset_save_CFLAGS" 13829fi 13830 13831if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13833 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13834 fi 13835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13837$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13838if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13839 $as_echo_n "(cached) " >&6 13840else 13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13842/* end confdefs.h. */ 13843int i; 13844_ACEOF 13845if ac_fn_c_try_compile "$LINENO"; then : 13846 xorg_cv_cc_flag_unused_command_line_argument=yes 13847else 13848 xorg_cv_cc_flag_unused_command_line_argument=no 13849fi 13850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13851fi 13852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13853$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13855 CFLAGS="$xorg_testset_save_CFLAGS" 13856fi 13857 13858found="no" 13859 13860 if test $found = "no" ; then 13861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13863 fi 13864 13865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13867 fi 13868 13869 CFLAGS="$CFLAGS -Wstrict-prototypes" 13870 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13872$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13873 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13874 if eval \${$cacheid+:} false; then : 13875 $as_echo_n "(cached) " >&6 13876else 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879int i; 13880int 13881main () 13882{ 13883 13884 ; 13885 return 0; 13886} 13887_ACEOF 13888if ac_fn_c_try_link "$LINENO"; then : 13889 eval $cacheid=yes 13890else 13891 eval $cacheid=no 13892fi 13893rm -f core conftest.err conftest.$ac_objext \ 13894 conftest$ac_exeext conftest.$ac_ext 13895fi 13896 13897 13898 CFLAGS="$xorg_testset_save_CFLAGS" 13899 13900 eval supported=\$$cacheid 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13902$as_echo "$supported" >&6; } 13903 if test "$supported" = "yes" ; then 13904 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13905 found="yes" 13906 fi 13907 fi 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923xorg_testset_save_CFLAGS="$CFLAGS" 13924 13925if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13926 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13928$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13929if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934int i; 13935_ACEOF 13936if ac_fn_c_try_compile "$LINENO"; then : 13937 xorg_cv_cc_flag_unknown_warning_option=yes 13938else 13939 xorg_cv_cc_flag_unknown_warning_option=no 13940fi 13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13942fi 13943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13944$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13946 CFLAGS="$xorg_testset_save_CFLAGS" 13947fi 13948 13949if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13951 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13952 fi 13953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13955$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13956if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13957 $as_echo_n "(cached) " >&6 13958else 13959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13960/* end confdefs.h. */ 13961int i; 13962_ACEOF 13963if ac_fn_c_try_compile "$LINENO"; then : 13964 xorg_cv_cc_flag_unused_command_line_argument=yes 13965else 13966 xorg_cv_cc_flag_unused_command_line_argument=no 13967fi 13968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13969fi 13970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13971$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13973 CFLAGS="$xorg_testset_save_CFLAGS" 13974fi 13975 13976found="no" 13977 13978 if test $found = "no" ; then 13979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13981 fi 13982 13983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13985 fi 13986 13987 CFLAGS="$CFLAGS -Wmissing-prototypes" 13988 13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13990$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13991 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13992 if eval \${$cacheid+:} false; then : 13993 $as_echo_n "(cached) " >&6 13994else 13995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13996/* end confdefs.h. */ 13997int i; 13998int 13999main () 14000{ 14001 14002 ; 14003 return 0; 14004} 14005_ACEOF 14006if ac_fn_c_try_link "$LINENO"; then : 14007 eval $cacheid=yes 14008else 14009 eval $cacheid=no 14010fi 14011rm -f core conftest.err conftest.$ac_objext \ 14012 conftest$ac_exeext conftest.$ac_ext 14013fi 14014 14015 14016 CFLAGS="$xorg_testset_save_CFLAGS" 14017 14018 eval supported=\$$cacheid 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14020$as_echo "$supported" >&6; } 14021 if test "$supported" = "yes" ; then 14022 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 14023 found="yes" 14024 fi 14025 fi 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041xorg_testset_save_CFLAGS="$CFLAGS" 14042 14043if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14044 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14046$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14047if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14048 $as_echo_n "(cached) " >&6 14049else 14050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14051/* end confdefs.h. */ 14052int i; 14053_ACEOF 14054if ac_fn_c_try_compile "$LINENO"; then : 14055 xorg_cv_cc_flag_unknown_warning_option=yes 14056else 14057 xorg_cv_cc_flag_unknown_warning_option=no 14058fi 14059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14060fi 14061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14062$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14064 CFLAGS="$xorg_testset_save_CFLAGS" 14065fi 14066 14067if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14069 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14070 fi 14071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14073$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14074if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14075 $as_echo_n "(cached) " >&6 14076else 14077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14078/* end confdefs.h. */ 14079int i; 14080_ACEOF 14081if ac_fn_c_try_compile "$LINENO"; then : 14082 xorg_cv_cc_flag_unused_command_line_argument=yes 14083else 14084 xorg_cv_cc_flag_unused_command_line_argument=no 14085fi 14086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14087fi 14088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14089$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14091 CFLAGS="$xorg_testset_save_CFLAGS" 14092fi 14093 14094found="no" 14095 14096 if test $found = "no" ; then 14097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14099 fi 14100 14101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14103 fi 14104 14105 CFLAGS="$CFLAGS -Wnested-externs" 14106 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 14108$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 14109 cacheid=xorg_cv_cc_flag__Wnested_externs 14110 if eval \${$cacheid+:} false; then : 14111 $as_echo_n "(cached) " >&6 14112else 14113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14114/* end confdefs.h. */ 14115int i; 14116int 14117main () 14118{ 14119 14120 ; 14121 return 0; 14122} 14123_ACEOF 14124if ac_fn_c_try_link "$LINENO"; then : 14125 eval $cacheid=yes 14126else 14127 eval $cacheid=no 14128fi 14129rm -f core conftest.err conftest.$ac_objext \ 14130 conftest$ac_exeext conftest.$ac_ext 14131fi 14132 14133 14134 CFLAGS="$xorg_testset_save_CFLAGS" 14135 14136 eval supported=\$$cacheid 14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14138$as_echo "$supported" >&6; } 14139 if test "$supported" = "yes" ; then 14140 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 14141 found="yes" 14142 fi 14143 fi 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159xorg_testset_save_CFLAGS="$CFLAGS" 14160 14161if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14162 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14164$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14165if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14166 $as_echo_n "(cached) " >&6 14167else 14168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14169/* end confdefs.h. */ 14170int i; 14171_ACEOF 14172if ac_fn_c_try_compile "$LINENO"; then : 14173 xorg_cv_cc_flag_unknown_warning_option=yes 14174else 14175 xorg_cv_cc_flag_unknown_warning_option=no 14176fi 14177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14178fi 14179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14180$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14182 CFLAGS="$xorg_testset_save_CFLAGS" 14183fi 14184 14185if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14187 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14188 fi 14189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14191$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14192if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14193 $as_echo_n "(cached) " >&6 14194else 14195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14196/* end confdefs.h. */ 14197int i; 14198_ACEOF 14199if ac_fn_c_try_compile "$LINENO"; then : 14200 xorg_cv_cc_flag_unused_command_line_argument=yes 14201else 14202 xorg_cv_cc_flag_unused_command_line_argument=no 14203fi 14204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14205fi 14206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14207$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14209 CFLAGS="$xorg_testset_save_CFLAGS" 14210fi 14211 14212found="no" 14213 14214 if test $found = "no" ; then 14215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14217 fi 14218 14219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14221 fi 14222 14223 CFLAGS="$CFLAGS -Wbad-function-cast" 14224 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 14226$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 14227 cacheid=xorg_cv_cc_flag__Wbad_function_cast 14228 if eval \${$cacheid+:} false; then : 14229 $as_echo_n "(cached) " >&6 14230else 14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14232/* end confdefs.h. */ 14233int i; 14234int 14235main () 14236{ 14237 14238 ; 14239 return 0; 14240} 14241_ACEOF 14242if ac_fn_c_try_link "$LINENO"; then : 14243 eval $cacheid=yes 14244else 14245 eval $cacheid=no 14246fi 14247rm -f core conftest.err conftest.$ac_objext \ 14248 conftest$ac_exeext conftest.$ac_ext 14249fi 14250 14251 14252 CFLAGS="$xorg_testset_save_CFLAGS" 14253 14254 eval supported=\$$cacheid 14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14256$as_echo "$supported" >&6; } 14257 if test "$supported" = "yes" ; then 14258 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 14259 found="yes" 14260 fi 14261 fi 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277xorg_testset_save_CFLAGS="$CFLAGS" 14278 14279if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14280 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14282$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14283if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14284 $as_echo_n "(cached) " >&6 14285else 14286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14287/* end confdefs.h. */ 14288int i; 14289_ACEOF 14290if ac_fn_c_try_compile "$LINENO"; then : 14291 xorg_cv_cc_flag_unknown_warning_option=yes 14292else 14293 xorg_cv_cc_flag_unknown_warning_option=no 14294fi 14295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14296fi 14297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14298$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14299 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14300 CFLAGS="$xorg_testset_save_CFLAGS" 14301fi 14302 14303if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14304 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14305 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14306 fi 14307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14309$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14310if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14311 $as_echo_n "(cached) " >&6 14312else 14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14314/* end confdefs.h. */ 14315int i; 14316_ACEOF 14317if ac_fn_c_try_compile "$LINENO"; then : 14318 xorg_cv_cc_flag_unused_command_line_argument=yes 14319else 14320 xorg_cv_cc_flag_unused_command_line_argument=no 14321fi 14322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14323fi 14324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14325$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14327 CFLAGS="$xorg_testset_save_CFLAGS" 14328fi 14329 14330found="no" 14331 14332 if test $found = "no" ; then 14333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14335 fi 14336 14337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14339 fi 14340 14341 CFLAGS="$CFLAGS -Wold-style-definition" 14342 14343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 14344$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 14345 cacheid=xorg_cv_cc_flag__Wold_style_definition 14346 if eval \${$cacheid+:} false; then : 14347 $as_echo_n "(cached) " >&6 14348else 14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14350/* end confdefs.h. */ 14351int i; 14352int 14353main () 14354{ 14355 14356 ; 14357 return 0; 14358} 14359_ACEOF 14360if ac_fn_c_try_link "$LINENO"; then : 14361 eval $cacheid=yes 14362else 14363 eval $cacheid=no 14364fi 14365rm -f core conftest.err conftest.$ac_objext \ 14366 conftest$ac_exeext conftest.$ac_ext 14367fi 14368 14369 14370 CFLAGS="$xorg_testset_save_CFLAGS" 14371 14372 eval supported=\$$cacheid 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14374$as_echo "$supported" >&6; } 14375 if test "$supported" = "yes" ; then 14376 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 14377 found="yes" 14378 fi 14379 fi 14380 14381 if test $found = "no" ; then 14382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14384 fi 14385 14386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14388 fi 14389 14390 CFLAGS="$CFLAGS -fd" 14391 14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 14393$as_echo_n "checking if $CC supports -fd... " >&6; } 14394 cacheid=xorg_cv_cc_flag__fd 14395 if eval \${$cacheid+:} false; then : 14396 $as_echo_n "(cached) " >&6 14397else 14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14399/* end confdefs.h. */ 14400int i; 14401int 14402main () 14403{ 14404 14405 ; 14406 return 0; 14407} 14408_ACEOF 14409if ac_fn_c_try_link "$LINENO"; then : 14410 eval $cacheid=yes 14411else 14412 eval $cacheid=no 14413fi 14414rm -f core conftest.err conftest.$ac_objext \ 14415 conftest$ac_exeext conftest.$ac_ext 14416fi 14417 14418 14419 CFLAGS="$xorg_testset_save_CFLAGS" 14420 14421 eval supported=\$$cacheid 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14423$as_echo "$supported" >&6; } 14424 if test "$supported" = "yes" ; then 14425 BASE_CFLAGS="$BASE_CFLAGS -fd" 14426 found="yes" 14427 fi 14428 fi 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444xorg_testset_save_CFLAGS="$CFLAGS" 14445 14446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14451 $as_echo_n "(cached) " >&6 14452else 14453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14454/* end confdefs.h. */ 14455int i; 14456_ACEOF 14457if ac_fn_c_try_compile "$LINENO"; then : 14458 xorg_cv_cc_flag_unknown_warning_option=yes 14459else 14460 xorg_cv_cc_flag_unknown_warning_option=no 14461fi 14462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14463fi 14464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14467 CFLAGS="$xorg_testset_save_CFLAGS" 14468fi 14469 14470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14473 fi 14474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14478 $as_echo_n "(cached) " >&6 14479else 14480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14481/* end confdefs.h. */ 14482int i; 14483_ACEOF 14484if ac_fn_c_try_compile "$LINENO"; then : 14485 xorg_cv_cc_flag_unused_command_line_argument=yes 14486else 14487 xorg_cv_cc_flag_unused_command_line_argument=no 14488fi 14489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14490fi 14491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14494 CFLAGS="$xorg_testset_save_CFLAGS" 14495fi 14496 14497found="no" 14498 14499 if test $found = "no" ; then 14500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14502 fi 14503 14504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14506 fi 14507 14508 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 14509 14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 14511$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 14512 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 14513 if eval \${$cacheid+:} false; then : 14514 $as_echo_n "(cached) " >&6 14515else 14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14517/* end confdefs.h. */ 14518int i; 14519int 14520main () 14521{ 14522 14523 ; 14524 return 0; 14525} 14526_ACEOF 14527if ac_fn_c_try_link "$LINENO"; then : 14528 eval $cacheid=yes 14529else 14530 eval $cacheid=no 14531fi 14532rm -f core conftest.err conftest.$ac_objext \ 14533 conftest$ac_exeext conftest.$ac_ext 14534fi 14535 14536 14537 CFLAGS="$xorg_testset_save_CFLAGS" 14538 14539 eval supported=\$$cacheid 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14541$as_echo "$supported" >&6; } 14542 if test "$supported" = "yes" ; then 14543 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 14544 found="yes" 14545 fi 14546 fi 14547 14548 14549 14550 14551 14552# This chunk adds additional warnings that could catch undesired effects. 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566xorg_testset_save_CFLAGS="$CFLAGS" 14567 14568if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14569 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14571$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14572if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14573 $as_echo_n "(cached) " >&6 14574else 14575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14576/* end confdefs.h. */ 14577int i; 14578_ACEOF 14579if ac_fn_c_try_compile "$LINENO"; then : 14580 xorg_cv_cc_flag_unknown_warning_option=yes 14581else 14582 xorg_cv_cc_flag_unknown_warning_option=no 14583fi 14584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14585fi 14586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14587$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14588 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14589 CFLAGS="$xorg_testset_save_CFLAGS" 14590fi 14591 14592if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14594 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14595 fi 14596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14598$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14599if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14600 $as_echo_n "(cached) " >&6 14601else 14602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14603/* end confdefs.h. */ 14604int i; 14605_ACEOF 14606if ac_fn_c_try_compile "$LINENO"; then : 14607 xorg_cv_cc_flag_unused_command_line_argument=yes 14608else 14609 xorg_cv_cc_flag_unused_command_line_argument=no 14610fi 14611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14612fi 14613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14614$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14615 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14616 CFLAGS="$xorg_testset_save_CFLAGS" 14617fi 14618 14619found="no" 14620 14621 if test $found = "no" ; then 14622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14623 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14624 fi 14625 14626 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14628 fi 14629 14630 CFLAGS="$CFLAGS -Wunused" 14631 14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 14633$as_echo_n "checking if $CC supports -Wunused... " >&6; } 14634 cacheid=xorg_cv_cc_flag__Wunused 14635 if eval \${$cacheid+:} false; then : 14636 $as_echo_n "(cached) " >&6 14637else 14638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14639/* end confdefs.h. */ 14640int i; 14641int 14642main () 14643{ 14644 14645 ; 14646 return 0; 14647} 14648_ACEOF 14649if ac_fn_c_try_link "$LINENO"; then : 14650 eval $cacheid=yes 14651else 14652 eval $cacheid=no 14653fi 14654rm -f core conftest.err conftest.$ac_objext \ 14655 conftest$ac_exeext conftest.$ac_ext 14656fi 14657 14658 14659 CFLAGS="$xorg_testset_save_CFLAGS" 14660 14661 eval supported=\$$cacheid 14662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14663$as_echo "$supported" >&6; } 14664 if test "$supported" = "yes" ; then 14665 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 14666 found="yes" 14667 fi 14668 fi 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684xorg_testset_save_CFLAGS="$CFLAGS" 14685 14686if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14689$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14690if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14691 $as_echo_n "(cached) " >&6 14692else 14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14694/* end confdefs.h. */ 14695int i; 14696_ACEOF 14697if ac_fn_c_try_compile "$LINENO"; then : 14698 xorg_cv_cc_flag_unknown_warning_option=yes 14699else 14700 xorg_cv_cc_flag_unknown_warning_option=no 14701fi 14702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14703fi 14704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14705$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14706 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14707 CFLAGS="$xorg_testset_save_CFLAGS" 14708fi 14709 14710if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14713 fi 14714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14716$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14717if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14718 $as_echo_n "(cached) " >&6 14719else 14720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14721/* end confdefs.h. */ 14722int i; 14723_ACEOF 14724if ac_fn_c_try_compile "$LINENO"; then : 14725 xorg_cv_cc_flag_unused_command_line_argument=yes 14726else 14727 xorg_cv_cc_flag_unused_command_line_argument=no 14728fi 14729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14730fi 14731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14732$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14733 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14734 CFLAGS="$xorg_testset_save_CFLAGS" 14735fi 14736 14737found="no" 14738 14739 if test $found = "no" ; then 14740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14741 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14742 fi 14743 14744 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14746 fi 14747 14748 CFLAGS="$CFLAGS -Wuninitialized" 14749 14750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 14751$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 14752 cacheid=xorg_cv_cc_flag__Wuninitialized 14753 if eval \${$cacheid+:} false; then : 14754 $as_echo_n "(cached) " >&6 14755else 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14757/* end confdefs.h. */ 14758int i; 14759int 14760main () 14761{ 14762 14763 ; 14764 return 0; 14765} 14766_ACEOF 14767if ac_fn_c_try_link "$LINENO"; then : 14768 eval $cacheid=yes 14769else 14770 eval $cacheid=no 14771fi 14772rm -f core conftest.err conftest.$ac_objext \ 14773 conftest$ac_exeext conftest.$ac_ext 14774fi 14775 14776 14777 CFLAGS="$xorg_testset_save_CFLAGS" 14778 14779 eval supported=\$$cacheid 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14781$as_echo "$supported" >&6; } 14782 if test "$supported" = "yes" ; then 14783 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 14784 found="yes" 14785 fi 14786 fi 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802xorg_testset_save_CFLAGS="$CFLAGS" 14803 14804if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14807$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14808if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14809 $as_echo_n "(cached) " >&6 14810else 14811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812/* end confdefs.h. */ 14813int i; 14814_ACEOF 14815if ac_fn_c_try_compile "$LINENO"; then : 14816 xorg_cv_cc_flag_unknown_warning_option=yes 14817else 14818 xorg_cv_cc_flag_unknown_warning_option=no 14819fi 14820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14821fi 14822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14823$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14825 CFLAGS="$xorg_testset_save_CFLAGS" 14826fi 14827 14828if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14831 fi 14832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14834$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14835if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14836 $as_echo_n "(cached) " >&6 14837else 14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14839/* end confdefs.h. */ 14840int i; 14841_ACEOF 14842if ac_fn_c_try_compile "$LINENO"; then : 14843 xorg_cv_cc_flag_unused_command_line_argument=yes 14844else 14845 xorg_cv_cc_flag_unused_command_line_argument=no 14846fi 14847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14848fi 14849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14850$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14851 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14852 CFLAGS="$xorg_testset_save_CFLAGS" 14853fi 14854 14855found="no" 14856 14857 if test $found = "no" ; then 14858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14859 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14860 fi 14861 14862 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14864 fi 14865 14866 CFLAGS="$CFLAGS -Wshadow" 14867 14868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14869$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14870 cacheid=xorg_cv_cc_flag__Wshadow 14871 if eval \${$cacheid+:} false; then : 14872 $as_echo_n "(cached) " >&6 14873else 14874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14875/* end confdefs.h. */ 14876int i; 14877int 14878main () 14879{ 14880 14881 ; 14882 return 0; 14883} 14884_ACEOF 14885if ac_fn_c_try_link "$LINENO"; then : 14886 eval $cacheid=yes 14887else 14888 eval $cacheid=no 14889fi 14890rm -f core conftest.err conftest.$ac_objext \ 14891 conftest$ac_exeext conftest.$ac_ext 14892fi 14893 14894 14895 CFLAGS="$xorg_testset_save_CFLAGS" 14896 14897 eval supported=\$$cacheid 14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14899$as_echo "$supported" >&6; } 14900 if test "$supported" = "yes" ; then 14901 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14902 found="yes" 14903 fi 14904 fi 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920xorg_testset_save_CFLAGS="$CFLAGS" 14921 14922if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14923 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14925$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14926if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14927 $as_echo_n "(cached) " >&6 14928else 14929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14930/* end confdefs.h. */ 14931int i; 14932_ACEOF 14933if ac_fn_c_try_compile "$LINENO"; then : 14934 xorg_cv_cc_flag_unknown_warning_option=yes 14935else 14936 xorg_cv_cc_flag_unknown_warning_option=no 14937fi 14938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14939fi 14940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14941$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14943 CFLAGS="$xorg_testset_save_CFLAGS" 14944fi 14945 14946if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14948 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14949 fi 14950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14952$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14953if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14954 $as_echo_n "(cached) " >&6 14955else 14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14957/* end confdefs.h. */ 14958int i; 14959_ACEOF 14960if ac_fn_c_try_compile "$LINENO"; then : 14961 xorg_cv_cc_flag_unused_command_line_argument=yes 14962else 14963 xorg_cv_cc_flag_unused_command_line_argument=no 14964fi 14965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14966fi 14967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14968$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14970 CFLAGS="$xorg_testset_save_CFLAGS" 14971fi 14972 14973found="no" 14974 14975 if test $found = "no" ; then 14976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14977 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14978 fi 14979 14980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14982 fi 14983 14984 CFLAGS="$CFLAGS -Wmissing-noreturn" 14985 14986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14987$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14988 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14989 if eval \${$cacheid+:} false; then : 14990 $as_echo_n "(cached) " >&6 14991else 14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14993/* end confdefs.h. */ 14994int i; 14995int 14996main () 14997{ 14998 14999 ; 15000 return 0; 15001} 15002_ACEOF 15003if ac_fn_c_try_link "$LINENO"; then : 15004 eval $cacheid=yes 15005else 15006 eval $cacheid=no 15007fi 15008rm -f core conftest.err conftest.$ac_objext \ 15009 conftest$ac_exeext conftest.$ac_ext 15010fi 15011 15012 15013 CFLAGS="$xorg_testset_save_CFLAGS" 15014 15015 eval supported=\$$cacheid 15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15017$as_echo "$supported" >&6; } 15018 if test "$supported" = "yes" ; then 15019 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 15020 found="yes" 15021 fi 15022 fi 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038xorg_testset_save_CFLAGS="$CFLAGS" 15039 15040if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15041 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15043$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15044if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15045 $as_echo_n "(cached) " >&6 15046else 15047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15048/* end confdefs.h. */ 15049int i; 15050_ACEOF 15051if ac_fn_c_try_compile "$LINENO"; then : 15052 xorg_cv_cc_flag_unknown_warning_option=yes 15053else 15054 xorg_cv_cc_flag_unknown_warning_option=no 15055fi 15056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15057fi 15058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15059$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15061 CFLAGS="$xorg_testset_save_CFLAGS" 15062fi 15063 15064if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15066 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15067 fi 15068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15070$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15071if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15072 $as_echo_n "(cached) " >&6 15073else 15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075/* end confdefs.h. */ 15076int i; 15077_ACEOF 15078if ac_fn_c_try_compile "$LINENO"; then : 15079 xorg_cv_cc_flag_unused_command_line_argument=yes 15080else 15081 xorg_cv_cc_flag_unused_command_line_argument=no 15082fi 15083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15084fi 15085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15086$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15088 CFLAGS="$xorg_testset_save_CFLAGS" 15089fi 15090 15091found="no" 15092 15093 if test $found = "no" ; then 15094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15095 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15096 fi 15097 15098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15100 fi 15101 15102 CFLAGS="$CFLAGS -Wmissing-format-attribute" 15103 15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 15105$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 15106 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 15107 if eval \${$cacheid+:} false; then : 15108 $as_echo_n "(cached) " >&6 15109else 15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15111/* end confdefs.h. */ 15112int i; 15113int 15114main () 15115{ 15116 15117 ; 15118 return 0; 15119} 15120_ACEOF 15121if ac_fn_c_try_link "$LINENO"; then : 15122 eval $cacheid=yes 15123else 15124 eval $cacheid=no 15125fi 15126rm -f core conftest.err conftest.$ac_objext \ 15127 conftest$ac_exeext conftest.$ac_ext 15128fi 15129 15130 15131 CFLAGS="$xorg_testset_save_CFLAGS" 15132 15133 eval supported=\$$cacheid 15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15135$as_echo "$supported" >&6; } 15136 if test "$supported" = "yes" ; then 15137 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 15138 found="yes" 15139 fi 15140 fi 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156xorg_testset_save_CFLAGS="$CFLAGS" 15157 15158if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15159 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15161$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15162if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15163 $as_echo_n "(cached) " >&6 15164else 15165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15166/* end confdefs.h. */ 15167int i; 15168_ACEOF 15169if ac_fn_c_try_compile "$LINENO"; then : 15170 xorg_cv_cc_flag_unknown_warning_option=yes 15171else 15172 xorg_cv_cc_flag_unknown_warning_option=no 15173fi 15174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15175fi 15176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15177$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15179 CFLAGS="$xorg_testset_save_CFLAGS" 15180fi 15181 15182if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15184 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15185 fi 15186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15188$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15189if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15190 $as_echo_n "(cached) " >&6 15191else 15192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15193/* end confdefs.h. */ 15194int i; 15195_ACEOF 15196if ac_fn_c_try_compile "$LINENO"; then : 15197 xorg_cv_cc_flag_unused_command_line_argument=yes 15198else 15199 xorg_cv_cc_flag_unused_command_line_argument=no 15200fi 15201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15202fi 15203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15204$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15205 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15206 CFLAGS="$xorg_testset_save_CFLAGS" 15207fi 15208 15209found="no" 15210 15211 if test $found = "no" ; then 15212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15213 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15214 fi 15215 15216 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15218 fi 15219 15220 CFLAGS="$CFLAGS -Wredundant-decls" 15221 15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 15223$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 15224 cacheid=xorg_cv_cc_flag__Wredundant_decls 15225 if eval \${$cacheid+:} false; then : 15226 $as_echo_n "(cached) " >&6 15227else 15228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15229/* end confdefs.h. */ 15230int i; 15231int 15232main () 15233{ 15234 15235 ; 15236 return 0; 15237} 15238_ACEOF 15239if ac_fn_c_try_link "$LINENO"; then : 15240 eval $cacheid=yes 15241else 15242 eval $cacheid=no 15243fi 15244rm -f core conftest.err conftest.$ac_objext \ 15245 conftest$ac_exeext conftest.$ac_ext 15246fi 15247 15248 15249 CFLAGS="$xorg_testset_save_CFLAGS" 15250 15251 eval supported=\$$cacheid 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15253$as_echo "$supported" >&6; } 15254 if test "$supported" = "yes" ; then 15255 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 15256 found="yes" 15257 fi 15258 fi 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274xorg_testset_save_CFLAGS="$CFLAGS" 15275 15276if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15277 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15279$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15280if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15281 $as_echo_n "(cached) " >&6 15282else 15283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15284/* end confdefs.h. */ 15285int i; 15286_ACEOF 15287if ac_fn_c_try_compile "$LINENO"; then : 15288 xorg_cv_cc_flag_unknown_warning_option=yes 15289else 15290 xorg_cv_cc_flag_unknown_warning_option=no 15291fi 15292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15293fi 15294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15295$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15297 CFLAGS="$xorg_testset_save_CFLAGS" 15298fi 15299 15300if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15302 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15303 fi 15304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15306$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15307if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15308 $as_echo_n "(cached) " >&6 15309else 15310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15311/* end confdefs.h. */ 15312int i; 15313_ACEOF 15314if ac_fn_c_try_compile "$LINENO"; then : 15315 xorg_cv_cc_flag_unused_command_line_argument=yes 15316else 15317 xorg_cv_cc_flag_unused_command_line_argument=no 15318fi 15319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15320fi 15321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15322$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15324 CFLAGS="$xorg_testset_save_CFLAGS" 15325fi 15326 15327found="no" 15328 15329 if test $found = "no" ; then 15330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15332 fi 15333 15334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15336 fi 15337 15338 CFLAGS="$CFLAGS -Wlogical-op" 15339 15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 15341$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 15342 cacheid=xorg_cv_cc_flag__Wlogical_op 15343 if eval \${$cacheid+:} false; then : 15344 $as_echo_n "(cached) " >&6 15345else 15346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15347/* end confdefs.h. */ 15348int i; 15349int 15350main () 15351{ 15352 15353 ; 15354 return 0; 15355} 15356_ACEOF 15357if ac_fn_c_try_link "$LINENO"; then : 15358 eval $cacheid=yes 15359else 15360 eval $cacheid=no 15361fi 15362rm -f core conftest.err conftest.$ac_objext \ 15363 conftest$ac_exeext conftest.$ac_ext 15364fi 15365 15366 15367 CFLAGS="$xorg_testset_save_CFLAGS" 15368 15369 eval supported=\$$cacheid 15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15371$as_echo "$supported" >&6; } 15372 if test "$supported" = "yes" ; then 15373 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 15374 found="yes" 15375 fi 15376 fi 15377 15378 15379 15380# These are currently disabled because they are noisy. They will be enabled 15381# in the future once the codebase is sufficiently modernized to silence 15382# them. For now, I don't want them to drown out the other warnings. 15383# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 15384# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 15385# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 15386 15387# Turn some warnings into errors, so we don't accidently get successful builds 15388# when there are problems that should be fixed. 15389 15390if test "x$SELECTIVE_WERROR" = "xyes" ; then 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404xorg_testset_save_CFLAGS="$CFLAGS" 15405 15406if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15407 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15409$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15410if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15411 $as_echo_n "(cached) " >&6 15412else 15413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15414/* end confdefs.h. */ 15415int i; 15416_ACEOF 15417if ac_fn_c_try_compile "$LINENO"; then : 15418 xorg_cv_cc_flag_unknown_warning_option=yes 15419else 15420 xorg_cv_cc_flag_unknown_warning_option=no 15421fi 15422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15423fi 15424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15425$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15427 CFLAGS="$xorg_testset_save_CFLAGS" 15428fi 15429 15430if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15432 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15433 fi 15434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15436$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15437if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15438 $as_echo_n "(cached) " >&6 15439else 15440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15441/* end confdefs.h. */ 15442int i; 15443_ACEOF 15444if ac_fn_c_try_compile "$LINENO"; then : 15445 xorg_cv_cc_flag_unused_command_line_argument=yes 15446else 15447 xorg_cv_cc_flag_unused_command_line_argument=no 15448fi 15449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15450fi 15451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15452$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15454 CFLAGS="$xorg_testset_save_CFLAGS" 15455fi 15456 15457found="no" 15458 15459 if test $found = "no" ; then 15460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15461 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15462 fi 15463 15464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15466 fi 15467 15468 CFLAGS="$CFLAGS -Werror=implicit" 15469 15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 15471$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 15472 cacheid=xorg_cv_cc_flag__Werror_implicit 15473 if eval \${$cacheid+:} false; then : 15474 $as_echo_n "(cached) " >&6 15475else 15476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15477/* end confdefs.h. */ 15478int i; 15479int 15480main () 15481{ 15482 15483 ; 15484 return 0; 15485} 15486_ACEOF 15487if ac_fn_c_try_link "$LINENO"; then : 15488 eval $cacheid=yes 15489else 15490 eval $cacheid=no 15491fi 15492rm -f core conftest.err conftest.$ac_objext \ 15493 conftest$ac_exeext conftest.$ac_ext 15494fi 15495 15496 15497 CFLAGS="$xorg_testset_save_CFLAGS" 15498 15499 eval supported=\$$cacheid 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15501$as_echo "$supported" >&6; } 15502 if test "$supported" = "yes" ; then 15503 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 15504 found="yes" 15505 fi 15506 fi 15507 15508 if test $found = "no" ; then 15509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15511 fi 15512 15513 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15515 fi 15516 15517 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15518 15519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 15520$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 15521 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 15522 if eval \${$cacheid+:} false; then : 15523 $as_echo_n "(cached) " >&6 15524else 15525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15526/* end confdefs.h. */ 15527int i; 15528int 15529main () 15530{ 15531 15532 ; 15533 return 0; 15534} 15535_ACEOF 15536if ac_fn_c_try_link "$LINENO"; then : 15537 eval $cacheid=yes 15538else 15539 eval $cacheid=no 15540fi 15541rm -f core conftest.err conftest.$ac_objext \ 15542 conftest$ac_exeext conftest.$ac_ext 15543fi 15544 15545 15546 CFLAGS="$xorg_testset_save_CFLAGS" 15547 15548 eval supported=\$$cacheid 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15550$as_echo "$supported" >&6; } 15551 if test "$supported" = "yes" ; then 15552 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 15553 found="yes" 15554 fi 15555 fi 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571xorg_testset_save_CFLAGS="$CFLAGS" 15572 15573if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15576$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15577if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15578 $as_echo_n "(cached) " >&6 15579else 15580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15581/* end confdefs.h. */ 15582int i; 15583_ACEOF 15584if ac_fn_c_try_compile "$LINENO"; then : 15585 xorg_cv_cc_flag_unknown_warning_option=yes 15586else 15587 xorg_cv_cc_flag_unknown_warning_option=no 15588fi 15589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15590fi 15591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15592$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15594 CFLAGS="$xorg_testset_save_CFLAGS" 15595fi 15596 15597if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15599 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15600 fi 15601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15603$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15604if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15605 $as_echo_n "(cached) " >&6 15606else 15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15608/* end confdefs.h. */ 15609int i; 15610_ACEOF 15611if ac_fn_c_try_compile "$LINENO"; then : 15612 xorg_cv_cc_flag_unused_command_line_argument=yes 15613else 15614 xorg_cv_cc_flag_unused_command_line_argument=no 15615fi 15616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15617fi 15618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15619$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15621 CFLAGS="$xorg_testset_save_CFLAGS" 15622fi 15623 15624found="no" 15625 15626 if test $found = "no" ; then 15627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15628 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15629 fi 15630 15631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15633 fi 15634 15635 CFLAGS="$CFLAGS -Werror=nonnull" 15636 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 15638$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 15639 cacheid=xorg_cv_cc_flag__Werror_nonnull 15640 if eval \${$cacheid+:} false; then : 15641 $as_echo_n "(cached) " >&6 15642else 15643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15644/* end confdefs.h. */ 15645int i; 15646int 15647main () 15648{ 15649 15650 ; 15651 return 0; 15652} 15653_ACEOF 15654if ac_fn_c_try_link "$LINENO"; then : 15655 eval $cacheid=yes 15656else 15657 eval $cacheid=no 15658fi 15659rm -f core conftest.err conftest.$ac_objext \ 15660 conftest$ac_exeext conftest.$ac_ext 15661fi 15662 15663 15664 CFLAGS="$xorg_testset_save_CFLAGS" 15665 15666 eval supported=\$$cacheid 15667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15668$as_echo "$supported" >&6; } 15669 if test "$supported" = "yes" ; then 15670 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 15671 found="yes" 15672 fi 15673 fi 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689xorg_testset_save_CFLAGS="$CFLAGS" 15690 15691if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15694$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15695if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15696 $as_echo_n "(cached) " >&6 15697else 15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15699/* end confdefs.h. */ 15700int i; 15701_ACEOF 15702if ac_fn_c_try_compile "$LINENO"; then : 15703 xorg_cv_cc_flag_unknown_warning_option=yes 15704else 15705 xorg_cv_cc_flag_unknown_warning_option=no 15706fi 15707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15708fi 15709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15710$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15711 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15712 CFLAGS="$xorg_testset_save_CFLAGS" 15713fi 15714 15715if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15717 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15718 fi 15719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15721$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15722if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15723 $as_echo_n "(cached) " >&6 15724else 15725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15726/* end confdefs.h. */ 15727int i; 15728_ACEOF 15729if ac_fn_c_try_compile "$LINENO"; then : 15730 xorg_cv_cc_flag_unused_command_line_argument=yes 15731else 15732 xorg_cv_cc_flag_unused_command_line_argument=no 15733fi 15734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15735fi 15736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15737$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15739 CFLAGS="$xorg_testset_save_CFLAGS" 15740fi 15741 15742found="no" 15743 15744 if test $found = "no" ; then 15745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15747 fi 15748 15749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15751 fi 15752 15753 CFLAGS="$CFLAGS -Werror=init-self" 15754 15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 15756$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 15757 cacheid=xorg_cv_cc_flag__Werror_init_self 15758 if eval \${$cacheid+:} false; then : 15759 $as_echo_n "(cached) " >&6 15760else 15761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15762/* end confdefs.h. */ 15763int i; 15764int 15765main () 15766{ 15767 15768 ; 15769 return 0; 15770} 15771_ACEOF 15772if ac_fn_c_try_link "$LINENO"; then : 15773 eval $cacheid=yes 15774else 15775 eval $cacheid=no 15776fi 15777rm -f core conftest.err conftest.$ac_objext \ 15778 conftest$ac_exeext conftest.$ac_ext 15779fi 15780 15781 15782 CFLAGS="$xorg_testset_save_CFLAGS" 15783 15784 eval supported=\$$cacheid 15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15786$as_echo "$supported" >&6; } 15787 if test "$supported" = "yes" ; then 15788 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15789 found="yes" 15790 fi 15791 fi 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807xorg_testset_save_CFLAGS="$CFLAGS" 15808 15809if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15812$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15813if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15814 $as_echo_n "(cached) " >&6 15815else 15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15817/* end confdefs.h. */ 15818int i; 15819_ACEOF 15820if ac_fn_c_try_compile "$LINENO"; then : 15821 xorg_cv_cc_flag_unknown_warning_option=yes 15822else 15823 xorg_cv_cc_flag_unknown_warning_option=no 15824fi 15825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15826fi 15827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15828$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15830 CFLAGS="$xorg_testset_save_CFLAGS" 15831fi 15832 15833if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15835 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15836 fi 15837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15839$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15840if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15841 $as_echo_n "(cached) " >&6 15842else 15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15844/* end confdefs.h. */ 15845int i; 15846_ACEOF 15847if ac_fn_c_try_compile "$LINENO"; then : 15848 xorg_cv_cc_flag_unused_command_line_argument=yes 15849else 15850 xorg_cv_cc_flag_unused_command_line_argument=no 15851fi 15852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15853fi 15854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15855$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15856 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15857 CFLAGS="$xorg_testset_save_CFLAGS" 15858fi 15859 15860found="no" 15861 15862 if test $found = "no" ; then 15863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15865 fi 15866 15867 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15869 fi 15870 15871 CFLAGS="$CFLAGS -Werror=main" 15872 15873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15874$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15875 cacheid=xorg_cv_cc_flag__Werror_main 15876 if eval \${$cacheid+:} false; then : 15877 $as_echo_n "(cached) " >&6 15878else 15879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15880/* end confdefs.h. */ 15881int i; 15882int 15883main () 15884{ 15885 15886 ; 15887 return 0; 15888} 15889_ACEOF 15890if ac_fn_c_try_link "$LINENO"; then : 15891 eval $cacheid=yes 15892else 15893 eval $cacheid=no 15894fi 15895rm -f core conftest.err conftest.$ac_objext \ 15896 conftest$ac_exeext conftest.$ac_ext 15897fi 15898 15899 15900 CFLAGS="$xorg_testset_save_CFLAGS" 15901 15902 eval supported=\$$cacheid 15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15904$as_echo "$supported" >&6; } 15905 if test "$supported" = "yes" ; then 15906 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15907 found="yes" 15908 fi 15909 fi 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925xorg_testset_save_CFLAGS="$CFLAGS" 15926 15927if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15930$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15931if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15932 $as_echo_n "(cached) " >&6 15933else 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936int i; 15937_ACEOF 15938if ac_fn_c_try_compile "$LINENO"; then : 15939 xorg_cv_cc_flag_unknown_warning_option=yes 15940else 15941 xorg_cv_cc_flag_unknown_warning_option=no 15942fi 15943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15944fi 15945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15946$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15948 CFLAGS="$xorg_testset_save_CFLAGS" 15949fi 15950 15951if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15953 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15954 fi 15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15957$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15958if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15959 $as_echo_n "(cached) " >&6 15960else 15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15962/* end confdefs.h. */ 15963int i; 15964_ACEOF 15965if ac_fn_c_try_compile "$LINENO"; then : 15966 xorg_cv_cc_flag_unused_command_line_argument=yes 15967else 15968 xorg_cv_cc_flag_unused_command_line_argument=no 15969fi 15970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15971fi 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15973$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15974 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15975 CFLAGS="$xorg_testset_save_CFLAGS" 15976fi 15977 15978found="no" 15979 15980 if test $found = "no" ; then 15981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15982 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15983 fi 15984 15985 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15987 fi 15988 15989 CFLAGS="$CFLAGS -Werror=missing-braces" 15990 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15992$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15993 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15994 if eval \${$cacheid+:} false; then : 15995 $as_echo_n "(cached) " >&6 15996else 15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15998/* end confdefs.h. */ 15999int i; 16000int 16001main () 16002{ 16003 16004 ; 16005 return 0; 16006} 16007_ACEOF 16008if ac_fn_c_try_link "$LINENO"; then : 16009 eval $cacheid=yes 16010else 16011 eval $cacheid=no 16012fi 16013rm -f core conftest.err conftest.$ac_objext \ 16014 conftest$ac_exeext conftest.$ac_ext 16015fi 16016 16017 16018 CFLAGS="$xorg_testset_save_CFLAGS" 16019 16020 eval supported=\$$cacheid 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16022$as_echo "$supported" >&6; } 16023 if test "$supported" = "yes" ; then 16024 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 16025 found="yes" 16026 fi 16027 fi 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043xorg_testset_save_CFLAGS="$CFLAGS" 16044 16045if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16048$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16049if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16050 $as_echo_n "(cached) " >&6 16051else 16052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16053/* end confdefs.h. */ 16054int i; 16055_ACEOF 16056if ac_fn_c_try_compile "$LINENO"; then : 16057 xorg_cv_cc_flag_unknown_warning_option=yes 16058else 16059 xorg_cv_cc_flag_unknown_warning_option=no 16060fi 16061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16062fi 16063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16064$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16066 CFLAGS="$xorg_testset_save_CFLAGS" 16067fi 16068 16069if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16071 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16072 fi 16073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16075$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16076if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16077 $as_echo_n "(cached) " >&6 16078else 16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16080/* end confdefs.h. */ 16081int i; 16082_ACEOF 16083if ac_fn_c_try_compile "$LINENO"; then : 16084 xorg_cv_cc_flag_unused_command_line_argument=yes 16085else 16086 xorg_cv_cc_flag_unused_command_line_argument=no 16087fi 16088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16089fi 16090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16091$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16092 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16093 CFLAGS="$xorg_testset_save_CFLAGS" 16094fi 16095 16096found="no" 16097 16098 if test $found = "no" ; then 16099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16100 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16101 fi 16102 16103 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16105 fi 16106 16107 CFLAGS="$CFLAGS -Werror=sequence-point" 16108 16109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 16110$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 16111 cacheid=xorg_cv_cc_flag__Werror_sequence_point 16112 if eval \${$cacheid+:} false; then : 16113 $as_echo_n "(cached) " >&6 16114else 16115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16116/* end confdefs.h. */ 16117int i; 16118int 16119main () 16120{ 16121 16122 ; 16123 return 0; 16124} 16125_ACEOF 16126if ac_fn_c_try_link "$LINENO"; then : 16127 eval $cacheid=yes 16128else 16129 eval $cacheid=no 16130fi 16131rm -f core conftest.err conftest.$ac_objext \ 16132 conftest$ac_exeext conftest.$ac_ext 16133fi 16134 16135 16136 CFLAGS="$xorg_testset_save_CFLAGS" 16137 16138 eval supported=\$$cacheid 16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16140$as_echo "$supported" >&6; } 16141 if test "$supported" = "yes" ; then 16142 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 16143 found="yes" 16144 fi 16145 fi 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161xorg_testset_save_CFLAGS="$CFLAGS" 16162 16163if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16166$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16167if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16168 $as_echo_n "(cached) " >&6 16169else 16170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16171/* end confdefs.h. */ 16172int i; 16173_ACEOF 16174if ac_fn_c_try_compile "$LINENO"; then : 16175 xorg_cv_cc_flag_unknown_warning_option=yes 16176else 16177 xorg_cv_cc_flag_unknown_warning_option=no 16178fi 16179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16180fi 16181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16182$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16184 CFLAGS="$xorg_testset_save_CFLAGS" 16185fi 16186 16187if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16189 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16190 fi 16191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16193$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16194if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16195 $as_echo_n "(cached) " >&6 16196else 16197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16198/* end confdefs.h. */ 16199int i; 16200_ACEOF 16201if ac_fn_c_try_compile "$LINENO"; then : 16202 xorg_cv_cc_flag_unused_command_line_argument=yes 16203else 16204 xorg_cv_cc_flag_unused_command_line_argument=no 16205fi 16206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16207fi 16208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16209$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16211 CFLAGS="$xorg_testset_save_CFLAGS" 16212fi 16213 16214found="no" 16215 16216 if test $found = "no" ; then 16217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16218 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16219 fi 16220 16221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16223 fi 16224 16225 CFLAGS="$CFLAGS -Werror=return-type" 16226 16227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 16228$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 16229 cacheid=xorg_cv_cc_flag__Werror_return_type 16230 if eval \${$cacheid+:} false; then : 16231 $as_echo_n "(cached) " >&6 16232else 16233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16234/* end confdefs.h. */ 16235int i; 16236int 16237main () 16238{ 16239 16240 ; 16241 return 0; 16242} 16243_ACEOF 16244if ac_fn_c_try_link "$LINENO"; then : 16245 eval $cacheid=yes 16246else 16247 eval $cacheid=no 16248fi 16249rm -f core conftest.err conftest.$ac_objext \ 16250 conftest$ac_exeext conftest.$ac_ext 16251fi 16252 16253 16254 CFLAGS="$xorg_testset_save_CFLAGS" 16255 16256 eval supported=\$$cacheid 16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16258$as_echo "$supported" >&6; } 16259 if test "$supported" = "yes" ; then 16260 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 16261 found="yes" 16262 fi 16263 fi 16264 16265 if test $found = "no" ; then 16266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16268 fi 16269 16270 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16271 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16272 fi 16273 16274 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16275 16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 16277$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 16278 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 16279 if eval \${$cacheid+:} false; then : 16280 $as_echo_n "(cached) " >&6 16281else 16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283/* end confdefs.h. */ 16284int i; 16285int 16286main () 16287{ 16288 16289 ; 16290 return 0; 16291} 16292_ACEOF 16293if ac_fn_c_try_link "$LINENO"; then : 16294 eval $cacheid=yes 16295else 16296 eval $cacheid=no 16297fi 16298rm -f core conftest.err conftest.$ac_objext \ 16299 conftest$ac_exeext conftest.$ac_ext 16300fi 16301 16302 16303 CFLAGS="$xorg_testset_save_CFLAGS" 16304 16305 eval supported=\$$cacheid 16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16307$as_echo "$supported" >&6; } 16308 if test "$supported" = "yes" ; then 16309 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 16310 found="yes" 16311 fi 16312 fi 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328xorg_testset_save_CFLAGS="$CFLAGS" 16329 16330if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16333$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16334if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16335 $as_echo_n "(cached) " >&6 16336else 16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16338/* end confdefs.h. */ 16339int i; 16340_ACEOF 16341if ac_fn_c_try_compile "$LINENO"; then : 16342 xorg_cv_cc_flag_unknown_warning_option=yes 16343else 16344 xorg_cv_cc_flag_unknown_warning_option=no 16345fi 16346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16347fi 16348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16349$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16350 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16351 CFLAGS="$xorg_testset_save_CFLAGS" 16352fi 16353 16354if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16357 fi 16358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16360$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16361if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16362 $as_echo_n "(cached) " >&6 16363else 16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16365/* end confdefs.h. */ 16366int i; 16367_ACEOF 16368if ac_fn_c_try_compile "$LINENO"; then : 16369 xorg_cv_cc_flag_unused_command_line_argument=yes 16370else 16371 xorg_cv_cc_flag_unused_command_line_argument=no 16372fi 16373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16374fi 16375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16376$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16377 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16378 CFLAGS="$xorg_testset_save_CFLAGS" 16379fi 16380 16381found="no" 16382 16383 if test $found = "no" ; then 16384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16385 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16386 fi 16387 16388 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16390 fi 16391 16392 CFLAGS="$CFLAGS -Werror=trigraphs" 16393 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 16395$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 16396 cacheid=xorg_cv_cc_flag__Werror_trigraphs 16397 if eval \${$cacheid+:} false; then : 16398 $as_echo_n "(cached) " >&6 16399else 16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16401/* end confdefs.h. */ 16402int i; 16403int 16404main () 16405{ 16406 16407 ; 16408 return 0; 16409} 16410_ACEOF 16411if ac_fn_c_try_link "$LINENO"; then : 16412 eval $cacheid=yes 16413else 16414 eval $cacheid=no 16415fi 16416rm -f core conftest.err conftest.$ac_objext \ 16417 conftest$ac_exeext conftest.$ac_ext 16418fi 16419 16420 16421 CFLAGS="$xorg_testset_save_CFLAGS" 16422 16423 eval supported=\$$cacheid 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16425$as_echo "$supported" >&6; } 16426 if test "$supported" = "yes" ; then 16427 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 16428 found="yes" 16429 fi 16430 fi 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446xorg_testset_save_CFLAGS="$CFLAGS" 16447 16448if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16451$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16452if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16453 $as_echo_n "(cached) " >&6 16454else 16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16456/* end confdefs.h. */ 16457int i; 16458_ACEOF 16459if ac_fn_c_try_compile "$LINENO"; then : 16460 xorg_cv_cc_flag_unknown_warning_option=yes 16461else 16462 xorg_cv_cc_flag_unknown_warning_option=no 16463fi 16464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16465fi 16466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16467$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16469 CFLAGS="$xorg_testset_save_CFLAGS" 16470fi 16471 16472if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16475 fi 16476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16478$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16479if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16480 $as_echo_n "(cached) " >&6 16481else 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484int i; 16485_ACEOF 16486if ac_fn_c_try_compile "$LINENO"; then : 16487 xorg_cv_cc_flag_unused_command_line_argument=yes 16488else 16489 xorg_cv_cc_flag_unused_command_line_argument=no 16490fi 16491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16492fi 16493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16494$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16496 CFLAGS="$xorg_testset_save_CFLAGS" 16497fi 16498 16499found="no" 16500 16501 if test $found = "no" ; then 16502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16503 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16504 fi 16505 16506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16508 fi 16509 16510 CFLAGS="$CFLAGS -Werror=array-bounds" 16511 16512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 16513$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 16514 cacheid=xorg_cv_cc_flag__Werror_array_bounds 16515 if eval \${$cacheid+:} false; then : 16516 $as_echo_n "(cached) " >&6 16517else 16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16519/* end confdefs.h. */ 16520int i; 16521int 16522main () 16523{ 16524 16525 ; 16526 return 0; 16527} 16528_ACEOF 16529if ac_fn_c_try_link "$LINENO"; then : 16530 eval $cacheid=yes 16531else 16532 eval $cacheid=no 16533fi 16534rm -f core conftest.err conftest.$ac_objext \ 16535 conftest$ac_exeext conftest.$ac_ext 16536fi 16537 16538 16539 CFLAGS="$xorg_testset_save_CFLAGS" 16540 16541 eval supported=\$$cacheid 16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16543$as_echo "$supported" >&6; } 16544 if test "$supported" = "yes" ; then 16545 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 16546 found="yes" 16547 fi 16548 fi 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564xorg_testset_save_CFLAGS="$CFLAGS" 16565 16566if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16569$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16570if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16571 $as_echo_n "(cached) " >&6 16572else 16573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16574/* end confdefs.h. */ 16575int i; 16576_ACEOF 16577if ac_fn_c_try_compile "$LINENO"; then : 16578 xorg_cv_cc_flag_unknown_warning_option=yes 16579else 16580 xorg_cv_cc_flag_unknown_warning_option=no 16581fi 16582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16583fi 16584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16585$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16587 CFLAGS="$xorg_testset_save_CFLAGS" 16588fi 16589 16590if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16592 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16593 fi 16594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16596$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16597if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16598 $as_echo_n "(cached) " >&6 16599else 16600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16601/* end confdefs.h. */ 16602int i; 16603_ACEOF 16604if ac_fn_c_try_compile "$LINENO"; then : 16605 xorg_cv_cc_flag_unused_command_line_argument=yes 16606else 16607 xorg_cv_cc_flag_unused_command_line_argument=no 16608fi 16609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16610fi 16611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16612$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16613 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16614 CFLAGS="$xorg_testset_save_CFLAGS" 16615fi 16616 16617found="no" 16618 16619 if test $found = "no" ; then 16620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16621 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16622 fi 16623 16624 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16626 fi 16627 16628 CFLAGS="$CFLAGS -Werror=write-strings" 16629 16630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 16631$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 16632 cacheid=xorg_cv_cc_flag__Werror_write_strings 16633 if eval \${$cacheid+:} false; then : 16634 $as_echo_n "(cached) " >&6 16635else 16636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16637/* end confdefs.h. */ 16638int i; 16639int 16640main () 16641{ 16642 16643 ; 16644 return 0; 16645} 16646_ACEOF 16647if ac_fn_c_try_link "$LINENO"; then : 16648 eval $cacheid=yes 16649else 16650 eval $cacheid=no 16651fi 16652rm -f core conftest.err conftest.$ac_objext \ 16653 conftest$ac_exeext conftest.$ac_ext 16654fi 16655 16656 16657 CFLAGS="$xorg_testset_save_CFLAGS" 16658 16659 eval supported=\$$cacheid 16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16661$as_echo "$supported" >&6; } 16662 if test "$supported" = "yes" ; then 16663 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 16664 found="yes" 16665 fi 16666 fi 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682xorg_testset_save_CFLAGS="$CFLAGS" 16683 16684if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16687$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16688if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16689 $as_echo_n "(cached) " >&6 16690else 16691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16692/* end confdefs.h. */ 16693int i; 16694_ACEOF 16695if ac_fn_c_try_compile "$LINENO"; then : 16696 xorg_cv_cc_flag_unknown_warning_option=yes 16697else 16698 xorg_cv_cc_flag_unknown_warning_option=no 16699fi 16700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16701fi 16702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16703$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16704 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16705 CFLAGS="$xorg_testset_save_CFLAGS" 16706fi 16707 16708if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16711 fi 16712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16714$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16715if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16716 $as_echo_n "(cached) " >&6 16717else 16718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16719/* end confdefs.h. */ 16720int i; 16721_ACEOF 16722if ac_fn_c_try_compile "$LINENO"; then : 16723 xorg_cv_cc_flag_unused_command_line_argument=yes 16724else 16725 xorg_cv_cc_flag_unused_command_line_argument=no 16726fi 16727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16728fi 16729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16730$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16731 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16732 CFLAGS="$xorg_testset_save_CFLAGS" 16733fi 16734 16735found="no" 16736 16737 if test $found = "no" ; then 16738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16739 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16740 fi 16741 16742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16744 fi 16745 16746 CFLAGS="$CFLAGS -Werror=address" 16747 16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 16749$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 16750 cacheid=xorg_cv_cc_flag__Werror_address 16751 if eval \${$cacheid+:} false; then : 16752 $as_echo_n "(cached) " >&6 16753else 16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16755/* end confdefs.h. */ 16756int i; 16757int 16758main () 16759{ 16760 16761 ; 16762 return 0; 16763} 16764_ACEOF 16765if ac_fn_c_try_link "$LINENO"; then : 16766 eval $cacheid=yes 16767else 16768 eval $cacheid=no 16769fi 16770rm -f core conftest.err conftest.$ac_objext \ 16771 conftest$ac_exeext conftest.$ac_ext 16772fi 16773 16774 16775 CFLAGS="$xorg_testset_save_CFLAGS" 16776 16777 eval supported=\$$cacheid 16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16779$as_echo "$supported" >&6; } 16780 if test "$supported" = "yes" ; then 16781 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 16782 found="yes" 16783 fi 16784 fi 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800xorg_testset_save_CFLAGS="$CFLAGS" 16801 16802if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16805$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16806if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16807 $as_echo_n "(cached) " >&6 16808else 16809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16810/* end confdefs.h. */ 16811int i; 16812_ACEOF 16813if ac_fn_c_try_compile "$LINENO"; then : 16814 xorg_cv_cc_flag_unknown_warning_option=yes 16815else 16816 xorg_cv_cc_flag_unknown_warning_option=no 16817fi 16818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16819fi 16820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16821$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16823 CFLAGS="$xorg_testset_save_CFLAGS" 16824fi 16825 16826if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16829 fi 16830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16832$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16833if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16834 $as_echo_n "(cached) " >&6 16835else 16836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16837/* end confdefs.h. */ 16838int i; 16839_ACEOF 16840if ac_fn_c_try_compile "$LINENO"; then : 16841 xorg_cv_cc_flag_unused_command_line_argument=yes 16842else 16843 xorg_cv_cc_flag_unused_command_line_argument=no 16844fi 16845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16846fi 16847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16848$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16850 CFLAGS="$xorg_testset_save_CFLAGS" 16851fi 16852 16853found="no" 16854 16855 if test $found = "no" ; then 16856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16857 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16858 fi 16859 16860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16862 fi 16863 16864 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16865 16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16867$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16868 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16869 if eval \${$cacheid+:} false; then : 16870 $as_echo_n "(cached) " >&6 16871else 16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16873/* end confdefs.h. */ 16874int i; 16875int 16876main () 16877{ 16878 16879 ; 16880 return 0; 16881} 16882_ACEOF 16883if ac_fn_c_try_link "$LINENO"; then : 16884 eval $cacheid=yes 16885else 16886 eval $cacheid=no 16887fi 16888rm -f core conftest.err conftest.$ac_objext \ 16889 conftest$ac_exeext conftest.$ac_ext 16890fi 16891 16892 16893 CFLAGS="$xorg_testset_save_CFLAGS" 16894 16895 eval supported=\$$cacheid 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16897$as_echo "$supported" >&6; } 16898 if test "$supported" = "yes" ; then 16899 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16900 found="yes" 16901 fi 16902 fi 16903 16904 if test $found = "no" ; then 16905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16906 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16907 fi 16908 16909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16911 fi 16912 16913 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16914 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16916$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16917 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16918 if eval \${$cacheid+:} false; then : 16919 $as_echo_n "(cached) " >&6 16920else 16921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16922/* end confdefs.h. */ 16923int i; 16924int 16925main () 16926{ 16927 16928 ; 16929 return 0; 16930} 16931_ACEOF 16932if ac_fn_c_try_link "$LINENO"; then : 16933 eval $cacheid=yes 16934else 16935 eval $cacheid=no 16936fi 16937rm -f core conftest.err conftest.$ac_objext \ 16938 conftest$ac_exeext conftest.$ac_ext 16939fi 16940 16941 16942 CFLAGS="$xorg_testset_save_CFLAGS" 16943 16944 eval supported=\$$cacheid 16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16946$as_echo "$supported" >&6; } 16947 if test "$supported" = "yes" ; then 16948 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16949 found="yes" 16950 fi 16951 fi 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967xorg_testset_save_CFLAGS="$CFLAGS" 16968 16969if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16970 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16972$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16973if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16974 $as_echo_n "(cached) " >&6 16975else 16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16977/* end confdefs.h. */ 16978int i; 16979_ACEOF 16980if ac_fn_c_try_compile "$LINENO"; then : 16981 xorg_cv_cc_flag_unknown_warning_option=yes 16982else 16983 xorg_cv_cc_flag_unknown_warning_option=no 16984fi 16985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16986fi 16987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16988$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16990 CFLAGS="$xorg_testset_save_CFLAGS" 16991fi 16992 16993if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16995 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16996 fi 16997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16999$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17000if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17001 $as_echo_n "(cached) " >&6 17002else 17003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17004/* end confdefs.h. */ 17005int i; 17006_ACEOF 17007if ac_fn_c_try_compile "$LINENO"; then : 17008 xorg_cv_cc_flag_unused_command_line_argument=yes 17009else 17010 xorg_cv_cc_flag_unused_command_line_argument=no 17011fi 17012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17013fi 17014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17015$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17017 CFLAGS="$xorg_testset_save_CFLAGS" 17018fi 17019 17020found="no" 17021 17022 if test $found = "no" ; then 17023 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17024 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17025 fi 17026 17027 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17029 fi 17030 17031 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 17032 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 17034$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 17035 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 17036 if eval \${$cacheid+:} false; then : 17037 $as_echo_n "(cached) " >&6 17038else 17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17040/* end confdefs.h. */ 17041int i; 17042int 17043main () 17044{ 17045 17046 ; 17047 return 0; 17048} 17049_ACEOF 17050if ac_fn_c_try_link "$LINENO"; then : 17051 eval $cacheid=yes 17052else 17053 eval $cacheid=no 17054fi 17055rm -f core conftest.err conftest.$ac_objext \ 17056 conftest$ac_exeext conftest.$ac_ext 17057fi 17058 17059 17060 CFLAGS="$xorg_testset_save_CFLAGS" 17061 17062 eval supported=\$$cacheid 17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17064$as_echo "$supported" >&6; } 17065 if test "$supported" = "yes" ; then 17066 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 17067 found="yes" 17068 fi 17069 fi 17070 17071 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 17072else 17073{ $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 17074$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;} 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088xorg_testset_save_CFLAGS="$CFLAGS" 17089 17090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17095 $as_echo_n "(cached) " >&6 17096else 17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17098/* end confdefs.h. */ 17099int i; 17100_ACEOF 17101if ac_fn_c_try_compile "$LINENO"; then : 17102 xorg_cv_cc_flag_unknown_warning_option=yes 17103else 17104 xorg_cv_cc_flag_unknown_warning_option=no 17105fi 17106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17107fi 17108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17111 CFLAGS="$xorg_testset_save_CFLAGS" 17112fi 17113 17114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17117 fi 17118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17122 $as_echo_n "(cached) " >&6 17123else 17124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17125/* end confdefs.h. */ 17126int i; 17127_ACEOF 17128if ac_fn_c_try_compile "$LINENO"; then : 17129 xorg_cv_cc_flag_unused_command_line_argument=yes 17130else 17131 xorg_cv_cc_flag_unused_command_line_argument=no 17132fi 17133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17134fi 17135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17138 CFLAGS="$xorg_testset_save_CFLAGS" 17139fi 17140 17141found="no" 17142 17143 if test $found = "no" ; then 17144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17146 fi 17147 17148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17150 fi 17151 17152 CFLAGS="$CFLAGS -Wimplicit" 17153 17154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 17155$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 17156 cacheid=xorg_cv_cc_flag__Wimplicit 17157 if eval \${$cacheid+:} false; then : 17158 $as_echo_n "(cached) " >&6 17159else 17160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17161/* end confdefs.h. */ 17162int i; 17163int 17164main () 17165{ 17166 17167 ; 17168 return 0; 17169} 17170_ACEOF 17171if ac_fn_c_try_link "$LINENO"; then : 17172 eval $cacheid=yes 17173else 17174 eval $cacheid=no 17175fi 17176rm -f core conftest.err conftest.$ac_objext \ 17177 conftest$ac_exeext conftest.$ac_ext 17178fi 17179 17180 17181 CFLAGS="$xorg_testset_save_CFLAGS" 17182 17183 eval supported=\$$cacheid 17184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17185$as_echo "$supported" >&6; } 17186 if test "$supported" = "yes" ; then 17187 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 17188 found="yes" 17189 fi 17190 fi 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206xorg_testset_save_CFLAGS="$CFLAGS" 17207 17208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17213 $as_echo_n "(cached) " >&6 17214else 17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17216/* end confdefs.h. */ 17217int i; 17218_ACEOF 17219if ac_fn_c_try_compile "$LINENO"; then : 17220 xorg_cv_cc_flag_unknown_warning_option=yes 17221else 17222 xorg_cv_cc_flag_unknown_warning_option=no 17223fi 17224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17225fi 17226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17229 CFLAGS="$xorg_testset_save_CFLAGS" 17230fi 17231 17232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17235 fi 17236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17240 $as_echo_n "(cached) " >&6 17241else 17242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17243/* end confdefs.h. */ 17244int i; 17245_ACEOF 17246if ac_fn_c_try_compile "$LINENO"; then : 17247 xorg_cv_cc_flag_unused_command_line_argument=yes 17248else 17249 xorg_cv_cc_flag_unused_command_line_argument=no 17250fi 17251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17252fi 17253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17256 CFLAGS="$xorg_testset_save_CFLAGS" 17257fi 17258 17259found="no" 17260 17261 if test $found = "no" ; then 17262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17264 fi 17265 17266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17268 fi 17269 17270 CFLAGS="$CFLAGS -Wnonnull" 17271 17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 17273$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 17274 cacheid=xorg_cv_cc_flag__Wnonnull 17275 if eval \${$cacheid+:} false; then : 17276 $as_echo_n "(cached) " >&6 17277else 17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280int i; 17281int 17282main () 17283{ 17284 17285 ; 17286 return 0; 17287} 17288_ACEOF 17289if ac_fn_c_try_link "$LINENO"; then : 17290 eval $cacheid=yes 17291else 17292 eval $cacheid=no 17293fi 17294rm -f core conftest.err conftest.$ac_objext \ 17295 conftest$ac_exeext conftest.$ac_ext 17296fi 17297 17298 17299 CFLAGS="$xorg_testset_save_CFLAGS" 17300 17301 eval supported=\$$cacheid 17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17303$as_echo "$supported" >&6; } 17304 if test "$supported" = "yes" ; then 17305 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 17306 found="yes" 17307 fi 17308 fi 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324xorg_testset_save_CFLAGS="$CFLAGS" 17325 17326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17331 $as_echo_n "(cached) " >&6 17332else 17333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17334/* end confdefs.h. */ 17335int i; 17336_ACEOF 17337if ac_fn_c_try_compile "$LINENO"; then : 17338 xorg_cv_cc_flag_unknown_warning_option=yes 17339else 17340 xorg_cv_cc_flag_unknown_warning_option=no 17341fi 17342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17343fi 17344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17347 CFLAGS="$xorg_testset_save_CFLAGS" 17348fi 17349 17350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17353 fi 17354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17358 $as_echo_n "(cached) " >&6 17359else 17360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17361/* end confdefs.h. */ 17362int i; 17363_ACEOF 17364if ac_fn_c_try_compile "$LINENO"; then : 17365 xorg_cv_cc_flag_unused_command_line_argument=yes 17366else 17367 xorg_cv_cc_flag_unused_command_line_argument=no 17368fi 17369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17370fi 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17374 CFLAGS="$xorg_testset_save_CFLAGS" 17375fi 17376 17377found="no" 17378 17379 if test $found = "no" ; then 17380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17382 fi 17383 17384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17386 fi 17387 17388 CFLAGS="$CFLAGS -Winit-self" 17389 17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 17391$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 17392 cacheid=xorg_cv_cc_flag__Winit_self 17393 if eval \${$cacheid+:} false; then : 17394 $as_echo_n "(cached) " >&6 17395else 17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17397/* end confdefs.h. */ 17398int i; 17399int 17400main () 17401{ 17402 17403 ; 17404 return 0; 17405} 17406_ACEOF 17407if ac_fn_c_try_link "$LINENO"; then : 17408 eval $cacheid=yes 17409else 17410 eval $cacheid=no 17411fi 17412rm -f core conftest.err conftest.$ac_objext \ 17413 conftest$ac_exeext conftest.$ac_ext 17414fi 17415 17416 17417 CFLAGS="$xorg_testset_save_CFLAGS" 17418 17419 eval supported=\$$cacheid 17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17421$as_echo "$supported" >&6; } 17422 if test "$supported" = "yes" ; then 17423 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 17424 found="yes" 17425 fi 17426 fi 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442xorg_testset_save_CFLAGS="$CFLAGS" 17443 17444if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17445 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17447$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17448if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17449 $as_echo_n "(cached) " >&6 17450else 17451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17452/* end confdefs.h. */ 17453int i; 17454_ACEOF 17455if ac_fn_c_try_compile "$LINENO"; then : 17456 xorg_cv_cc_flag_unknown_warning_option=yes 17457else 17458 xorg_cv_cc_flag_unknown_warning_option=no 17459fi 17460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17461fi 17462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17463$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17464 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17465 CFLAGS="$xorg_testset_save_CFLAGS" 17466fi 17467 17468if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17471 fi 17472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17474$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17475if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17476 $as_echo_n "(cached) " >&6 17477else 17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17479/* end confdefs.h. */ 17480int i; 17481_ACEOF 17482if ac_fn_c_try_compile "$LINENO"; then : 17483 xorg_cv_cc_flag_unused_command_line_argument=yes 17484else 17485 xorg_cv_cc_flag_unused_command_line_argument=no 17486fi 17487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17488fi 17489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17490$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17492 CFLAGS="$xorg_testset_save_CFLAGS" 17493fi 17494 17495found="no" 17496 17497 if test $found = "no" ; then 17498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17499 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17500 fi 17501 17502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17504 fi 17505 17506 CFLAGS="$CFLAGS -Wmain" 17507 17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 17509$as_echo_n "checking if $CC supports -Wmain... " >&6; } 17510 cacheid=xorg_cv_cc_flag__Wmain 17511 if eval \${$cacheid+:} false; then : 17512 $as_echo_n "(cached) " >&6 17513else 17514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17515/* end confdefs.h. */ 17516int i; 17517int 17518main () 17519{ 17520 17521 ; 17522 return 0; 17523} 17524_ACEOF 17525if ac_fn_c_try_link "$LINENO"; then : 17526 eval $cacheid=yes 17527else 17528 eval $cacheid=no 17529fi 17530rm -f core conftest.err conftest.$ac_objext \ 17531 conftest$ac_exeext conftest.$ac_ext 17532fi 17533 17534 17535 CFLAGS="$xorg_testset_save_CFLAGS" 17536 17537 eval supported=\$$cacheid 17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17539$as_echo "$supported" >&6; } 17540 if test "$supported" = "yes" ; then 17541 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 17542 found="yes" 17543 fi 17544 fi 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560xorg_testset_save_CFLAGS="$CFLAGS" 17561 17562if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17563 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17565$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17566if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17567 $as_echo_n "(cached) " >&6 17568else 17569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17570/* end confdefs.h. */ 17571int i; 17572_ACEOF 17573if ac_fn_c_try_compile "$LINENO"; then : 17574 xorg_cv_cc_flag_unknown_warning_option=yes 17575else 17576 xorg_cv_cc_flag_unknown_warning_option=no 17577fi 17578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17579fi 17580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17581$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17582 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17583 CFLAGS="$xorg_testset_save_CFLAGS" 17584fi 17585 17586if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17588 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17589 fi 17590 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17592$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17593if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17594 $as_echo_n "(cached) " >&6 17595else 17596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17597/* end confdefs.h. */ 17598int i; 17599_ACEOF 17600if ac_fn_c_try_compile "$LINENO"; then : 17601 xorg_cv_cc_flag_unused_command_line_argument=yes 17602else 17603 xorg_cv_cc_flag_unused_command_line_argument=no 17604fi 17605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17606fi 17607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17608$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17609 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17610 CFLAGS="$xorg_testset_save_CFLAGS" 17611fi 17612 17613found="no" 17614 17615 if test $found = "no" ; then 17616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17617 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17618 fi 17619 17620 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17621 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17622 fi 17623 17624 CFLAGS="$CFLAGS -Wmissing-braces" 17625 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 17627$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 17628 cacheid=xorg_cv_cc_flag__Wmissing_braces 17629 if eval \${$cacheid+:} false; then : 17630 $as_echo_n "(cached) " >&6 17631else 17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17633/* end confdefs.h. */ 17634int i; 17635int 17636main () 17637{ 17638 17639 ; 17640 return 0; 17641} 17642_ACEOF 17643if ac_fn_c_try_link "$LINENO"; then : 17644 eval $cacheid=yes 17645else 17646 eval $cacheid=no 17647fi 17648rm -f core conftest.err conftest.$ac_objext \ 17649 conftest$ac_exeext conftest.$ac_ext 17650fi 17651 17652 17653 CFLAGS="$xorg_testset_save_CFLAGS" 17654 17655 eval supported=\$$cacheid 17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17657$as_echo "$supported" >&6; } 17658 if test "$supported" = "yes" ; then 17659 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 17660 found="yes" 17661 fi 17662 fi 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678xorg_testset_save_CFLAGS="$CFLAGS" 17679 17680if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17681 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17683$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17684if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17685 $as_echo_n "(cached) " >&6 17686else 17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17688/* end confdefs.h. */ 17689int i; 17690_ACEOF 17691if ac_fn_c_try_compile "$LINENO"; then : 17692 xorg_cv_cc_flag_unknown_warning_option=yes 17693else 17694 xorg_cv_cc_flag_unknown_warning_option=no 17695fi 17696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17697fi 17698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17699$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17701 CFLAGS="$xorg_testset_save_CFLAGS" 17702fi 17703 17704if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17706 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17707 fi 17708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17710$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17711if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17712 $as_echo_n "(cached) " >&6 17713else 17714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17715/* end confdefs.h. */ 17716int i; 17717_ACEOF 17718if ac_fn_c_try_compile "$LINENO"; then : 17719 xorg_cv_cc_flag_unused_command_line_argument=yes 17720else 17721 xorg_cv_cc_flag_unused_command_line_argument=no 17722fi 17723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17724fi 17725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17726$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17727 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17728 CFLAGS="$xorg_testset_save_CFLAGS" 17729fi 17730 17731found="no" 17732 17733 if test $found = "no" ; then 17734 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17735 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17736 fi 17737 17738 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17740 fi 17741 17742 CFLAGS="$CFLAGS -Wsequence-point" 17743 17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 17745$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 17746 cacheid=xorg_cv_cc_flag__Wsequence_point 17747 if eval \${$cacheid+:} false; then : 17748 $as_echo_n "(cached) " >&6 17749else 17750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17751/* end confdefs.h. */ 17752int i; 17753int 17754main () 17755{ 17756 17757 ; 17758 return 0; 17759} 17760_ACEOF 17761if ac_fn_c_try_link "$LINENO"; then : 17762 eval $cacheid=yes 17763else 17764 eval $cacheid=no 17765fi 17766rm -f core conftest.err conftest.$ac_objext \ 17767 conftest$ac_exeext conftest.$ac_ext 17768fi 17769 17770 17771 CFLAGS="$xorg_testset_save_CFLAGS" 17772 17773 eval supported=\$$cacheid 17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17775$as_echo "$supported" >&6; } 17776 if test "$supported" = "yes" ; then 17777 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 17778 found="yes" 17779 fi 17780 fi 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796xorg_testset_save_CFLAGS="$CFLAGS" 17797 17798if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17799 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17801$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17802if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17803 $as_echo_n "(cached) " >&6 17804else 17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17806/* end confdefs.h. */ 17807int i; 17808_ACEOF 17809if ac_fn_c_try_compile "$LINENO"; then : 17810 xorg_cv_cc_flag_unknown_warning_option=yes 17811else 17812 xorg_cv_cc_flag_unknown_warning_option=no 17813fi 17814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17815fi 17816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17817$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17819 CFLAGS="$xorg_testset_save_CFLAGS" 17820fi 17821 17822if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17824 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17825 fi 17826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17828$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17829if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17830 $as_echo_n "(cached) " >&6 17831else 17832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17833/* end confdefs.h. */ 17834int i; 17835_ACEOF 17836if ac_fn_c_try_compile "$LINENO"; then : 17837 xorg_cv_cc_flag_unused_command_line_argument=yes 17838else 17839 xorg_cv_cc_flag_unused_command_line_argument=no 17840fi 17841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17842fi 17843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17844$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17846 CFLAGS="$xorg_testset_save_CFLAGS" 17847fi 17848 17849found="no" 17850 17851 if test $found = "no" ; then 17852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17853 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17854 fi 17855 17856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17858 fi 17859 17860 CFLAGS="$CFLAGS -Wreturn-type" 17861 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17863$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17864 cacheid=xorg_cv_cc_flag__Wreturn_type 17865 if eval \${$cacheid+:} false; then : 17866 $as_echo_n "(cached) " >&6 17867else 17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17869/* end confdefs.h. */ 17870int i; 17871int 17872main () 17873{ 17874 17875 ; 17876 return 0; 17877} 17878_ACEOF 17879if ac_fn_c_try_link "$LINENO"; then : 17880 eval $cacheid=yes 17881else 17882 eval $cacheid=no 17883fi 17884rm -f core conftest.err conftest.$ac_objext \ 17885 conftest$ac_exeext conftest.$ac_ext 17886fi 17887 17888 17889 CFLAGS="$xorg_testset_save_CFLAGS" 17890 17891 eval supported=\$$cacheid 17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17893$as_echo "$supported" >&6; } 17894 if test "$supported" = "yes" ; then 17895 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17896 found="yes" 17897 fi 17898 fi 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914xorg_testset_save_CFLAGS="$CFLAGS" 17915 17916if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17917 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17919$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17920if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17921 $as_echo_n "(cached) " >&6 17922else 17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17924/* end confdefs.h. */ 17925int i; 17926_ACEOF 17927if ac_fn_c_try_compile "$LINENO"; then : 17928 xorg_cv_cc_flag_unknown_warning_option=yes 17929else 17930 xorg_cv_cc_flag_unknown_warning_option=no 17931fi 17932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17933fi 17934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17935$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17937 CFLAGS="$xorg_testset_save_CFLAGS" 17938fi 17939 17940if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17943 fi 17944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17946$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17947if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17948 $as_echo_n "(cached) " >&6 17949else 17950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17951/* end confdefs.h. */ 17952int i; 17953_ACEOF 17954if ac_fn_c_try_compile "$LINENO"; then : 17955 xorg_cv_cc_flag_unused_command_line_argument=yes 17956else 17957 xorg_cv_cc_flag_unused_command_line_argument=no 17958fi 17959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17960fi 17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17962$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17964 CFLAGS="$xorg_testset_save_CFLAGS" 17965fi 17966 17967found="no" 17968 17969 if test $found = "no" ; then 17970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17972 fi 17973 17974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17976 fi 17977 17978 CFLAGS="$CFLAGS -Wtrigraphs" 17979 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17981$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17982 cacheid=xorg_cv_cc_flag__Wtrigraphs 17983 if eval \${$cacheid+:} false; then : 17984 $as_echo_n "(cached) " >&6 17985else 17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17987/* end confdefs.h. */ 17988int i; 17989int 17990main () 17991{ 17992 17993 ; 17994 return 0; 17995} 17996_ACEOF 17997if ac_fn_c_try_link "$LINENO"; then : 17998 eval $cacheid=yes 17999else 18000 eval $cacheid=no 18001fi 18002rm -f core conftest.err conftest.$ac_objext \ 18003 conftest$ac_exeext conftest.$ac_ext 18004fi 18005 18006 18007 CFLAGS="$xorg_testset_save_CFLAGS" 18008 18009 eval supported=\$$cacheid 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18011$as_echo "$supported" >&6; } 18012 if test "$supported" = "yes" ; then 18013 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 18014 found="yes" 18015 fi 18016 fi 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032xorg_testset_save_CFLAGS="$CFLAGS" 18033 18034if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18037$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18038if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18039 $as_echo_n "(cached) " >&6 18040else 18041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18042/* end confdefs.h. */ 18043int i; 18044_ACEOF 18045if ac_fn_c_try_compile "$LINENO"; then : 18046 xorg_cv_cc_flag_unknown_warning_option=yes 18047else 18048 xorg_cv_cc_flag_unknown_warning_option=no 18049fi 18050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18051fi 18052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18053$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18055 CFLAGS="$xorg_testset_save_CFLAGS" 18056fi 18057 18058if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18061 fi 18062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18064$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18065if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18066 $as_echo_n "(cached) " >&6 18067else 18068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18069/* end confdefs.h. */ 18070int i; 18071_ACEOF 18072if ac_fn_c_try_compile "$LINENO"; then : 18073 xorg_cv_cc_flag_unused_command_line_argument=yes 18074else 18075 xorg_cv_cc_flag_unused_command_line_argument=no 18076fi 18077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18078fi 18079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18080$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18081 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18082 CFLAGS="$xorg_testset_save_CFLAGS" 18083fi 18084 18085found="no" 18086 18087 if test $found = "no" ; then 18088 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18089 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18090 fi 18091 18092 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18094 fi 18095 18096 CFLAGS="$CFLAGS -Warray-bounds" 18097 18098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 18099$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 18100 cacheid=xorg_cv_cc_flag__Warray_bounds 18101 if eval \${$cacheid+:} false; then : 18102 $as_echo_n "(cached) " >&6 18103else 18104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18105/* end confdefs.h. */ 18106int i; 18107int 18108main () 18109{ 18110 18111 ; 18112 return 0; 18113} 18114_ACEOF 18115if ac_fn_c_try_link "$LINENO"; then : 18116 eval $cacheid=yes 18117else 18118 eval $cacheid=no 18119fi 18120rm -f core conftest.err conftest.$ac_objext \ 18121 conftest$ac_exeext conftest.$ac_ext 18122fi 18123 18124 18125 CFLAGS="$xorg_testset_save_CFLAGS" 18126 18127 eval supported=\$$cacheid 18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18129$as_echo "$supported" >&6; } 18130 if test "$supported" = "yes" ; then 18131 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 18132 found="yes" 18133 fi 18134 fi 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150xorg_testset_save_CFLAGS="$CFLAGS" 18151 18152if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18153 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18155$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18156if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18157 $as_echo_n "(cached) " >&6 18158else 18159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18160/* end confdefs.h. */ 18161int i; 18162_ACEOF 18163if ac_fn_c_try_compile "$LINENO"; then : 18164 xorg_cv_cc_flag_unknown_warning_option=yes 18165else 18166 xorg_cv_cc_flag_unknown_warning_option=no 18167fi 18168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18169fi 18170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18171$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18173 CFLAGS="$xorg_testset_save_CFLAGS" 18174fi 18175 18176if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18179 fi 18180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18182$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18183if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18184 $as_echo_n "(cached) " >&6 18185else 18186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18187/* end confdefs.h. */ 18188int i; 18189_ACEOF 18190if ac_fn_c_try_compile "$LINENO"; then : 18191 xorg_cv_cc_flag_unused_command_line_argument=yes 18192else 18193 xorg_cv_cc_flag_unused_command_line_argument=no 18194fi 18195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18196fi 18197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18198$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18200 CFLAGS="$xorg_testset_save_CFLAGS" 18201fi 18202 18203found="no" 18204 18205 if test $found = "no" ; then 18206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18208 fi 18209 18210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18212 fi 18213 18214 CFLAGS="$CFLAGS -Wwrite-strings" 18215 18216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 18217$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 18218 cacheid=xorg_cv_cc_flag__Wwrite_strings 18219 if eval \${$cacheid+:} false; then : 18220 $as_echo_n "(cached) " >&6 18221else 18222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18223/* end confdefs.h. */ 18224int i; 18225int 18226main () 18227{ 18228 18229 ; 18230 return 0; 18231} 18232_ACEOF 18233if ac_fn_c_try_link "$LINENO"; then : 18234 eval $cacheid=yes 18235else 18236 eval $cacheid=no 18237fi 18238rm -f core conftest.err conftest.$ac_objext \ 18239 conftest$ac_exeext conftest.$ac_ext 18240fi 18241 18242 18243 CFLAGS="$xorg_testset_save_CFLAGS" 18244 18245 eval supported=\$$cacheid 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18247$as_echo "$supported" >&6; } 18248 if test "$supported" = "yes" ; then 18249 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 18250 found="yes" 18251 fi 18252 fi 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268xorg_testset_save_CFLAGS="$CFLAGS" 18269 18270if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18271 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18273$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18274if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18275 $as_echo_n "(cached) " >&6 18276else 18277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18278/* end confdefs.h. */ 18279int i; 18280_ACEOF 18281if ac_fn_c_try_compile "$LINENO"; then : 18282 xorg_cv_cc_flag_unknown_warning_option=yes 18283else 18284 xorg_cv_cc_flag_unknown_warning_option=no 18285fi 18286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18287fi 18288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18289$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18291 CFLAGS="$xorg_testset_save_CFLAGS" 18292fi 18293 18294if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18297 fi 18298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18300$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18301if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18302 $as_echo_n "(cached) " >&6 18303else 18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18305/* end confdefs.h. */ 18306int i; 18307_ACEOF 18308if ac_fn_c_try_compile "$LINENO"; then : 18309 xorg_cv_cc_flag_unused_command_line_argument=yes 18310else 18311 xorg_cv_cc_flag_unused_command_line_argument=no 18312fi 18313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18314fi 18315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18316$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18318 CFLAGS="$xorg_testset_save_CFLAGS" 18319fi 18320 18321found="no" 18322 18323 if test $found = "no" ; then 18324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18326 fi 18327 18328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18330 fi 18331 18332 CFLAGS="$CFLAGS -Waddress" 18333 18334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 18335$as_echo_n "checking if $CC supports -Waddress... " >&6; } 18336 cacheid=xorg_cv_cc_flag__Waddress 18337 if eval \${$cacheid+:} false; then : 18338 $as_echo_n "(cached) " >&6 18339else 18340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18341/* end confdefs.h. */ 18342int i; 18343int 18344main () 18345{ 18346 18347 ; 18348 return 0; 18349} 18350_ACEOF 18351if ac_fn_c_try_link "$LINENO"; then : 18352 eval $cacheid=yes 18353else 18354 eval $cacheid=no 18355fi 18356rm -f core conftest.err conftest.$ac_objext \ 18357 conftest$ac_exeext conftest.$ac_ext 18358fi 18359 18360 18361 CFLAGS="$xorg_testset_save_CFLAGS" 18362 18363 eval supported=\$$cacheid 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18365$as_echo "$supported" >&6; } 18366 if test "$supported" = "yes" ; then 18367 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 18368 found="yes" 18369 fi 18370 fi 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386xorg_testset_save_CFLAGS="$CFLAGS" 18387 18388if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18389 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18391$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18392if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18393 $as_echo_n "(cached) " >&6 18394else 18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18396/* end confdefs.h. */ 18397int i; 18398_ACEOF 18399if ac_fn_c_try_compile "$LINENO"; then : 18400 xorg_cv_cc_flag_unknown_warning_option=yes 18401else 18402 xorg_cv_cc_flag_unknown_warning_option=no 18403fi 18404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18405fi 18406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18407$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18408 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18409 CFLAGS="$xorg_testset_save_CFLAGS" 18410fi 18411 18412if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18414 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18415 fi 18416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18418$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18419if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18420 $as_echo_n "(cached) " >&6 18421else 18422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18423/* end confdefs.h. */ 18424int i; 18425_ACEOF 18426if ac_fn_c_try_compile "$LINENO"; then : 18427 xorg_cv_cc_flag_unused_command_line_argument=yes 18428else 18429 xorg_cv_cc_flag_unused_command_line_argument=no 18430fi 18431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18432fi 18433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18434$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18436 CFLAGS="$xorg_testset_save_CFLAGS" 18437fi 18438 18439found="no" 18440 18441 if test $found = "no" ; then 18442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18443 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18444 fi 18445 18446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18448 fi 18449 18450 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 18451 18452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 18453$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 18454 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 18455 if eval \${$cacheid+:} false; then : 18456 $as_echo_n "(cached) " >&6 18457else 18458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18459/* end confdefs.h. */ 18460int i; 18461int 18462main () 18463{ 18464 18465 ; 18466 return 0; 18467} 18468_ACEOF 18469if ac_fn_c_try_link "$LINENO"; then : 18470 eval $cacheid=yes 18471else 18472 eval $cacheid=no 18473fi 18474rm -f core conftest.err conftest.$ac_objext \ 18475 conftest$ac_exeext conftest.$ac_ext 18476fi 18477 18478 18479 CFLAGS="$xorg_testset_save_CFLAGS" 18480 18481 eval supported=\$$cacheid 18482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18483$as_echo "$supported" >&6; } 18484 if test "$supported" = "yes" ; then 18485 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 18486 found="yes" 18487 fi 18488 fi 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504xorg_testset_save_CFLAGS="$CFLAGS" 18505 18506if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18507 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18509$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18510if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18511 $as_echo_n "(cached) " >&6 18512else 18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18514/* end confdefs.h. */ 18515int i; 18516_ACEOF 18517if ac_fn_c_try_compile "$LINENO"; then : 18518 xorg_cv_cc_flag_unknown_warning_option=yes 18519else 18520 xorg_cv_cc_flag_unknown_warning_option=no 18521fi 18522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18523fi 18524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18525$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18527 CFLAGS="$xorg_testset_save_CFLAGS" 18528fi 18529 18530if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18532 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18533 fi 18534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18536$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18537if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18538 $as_echo_n "(cached) " >&6 18539else 18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18541/* end confdefs.h. */ 18542int i; 18543_ACEOF 18544if ac_fn_c_try_compile "$LINENO"; then : 18545 xorg_cv_cc_flag_unused_command_line_argument=yes 18546else 18547 xorg_cv_cc_flag_unused_command_line_argument=no 18548fi 18549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18550fi 18551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18552$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18554 CFLAGS="$xorg_testset_save_CFLAGS" 18555fi 18556 18557found="no" 18558 18559 if test $found = "no" ; then 18560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18561 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18562 fi 18563 18564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18566 fi 18567 18568 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 18569 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 18571$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 18572 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 18573 if eval \${$cacheid+:} false; then : 18574 $as_echo_n "(cached) " >&6 18575else 18576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18577/* end confdefs.h. */ 18578int i; 18579int 18580main () 18581{ 18582 18583 ; 18584 return 0; 18585} 18586_ACEOF 18587if ac_fn_c_try_link "$LINENO"; then : 18588 eval $cacheid=yes 18589else 18590 eval $cacheid=no 18591fi 18592rm -f core conftest.err conftest.$ac_objext \ 18593 conftest$ac_exeext conftest.$ac_ext 18594fi 18595 18596 18597 CFLAGS="$xorg_testset_save_CFLAGS" 18598 18599 eval supported=\$$cacheid 18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18601$as_echo "$supported" >&6; } 18602 if test "$supported" = "yes" ; then 18603 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 18604 found="yes" 18605 fi 18606 fi 18607 18608 18609fi 18610 18611 18612 18613 18614 18615 18616 18617 CWARNFLAGS="$BASE_CFLAGS" 18618 if test "x$GCC" = xyes ; then 18619 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 18620 fi 18621 18622 18623 18624 18625 18626 18627 18628 18629# Check whether --enable-strict-compilation was given. 18630if test "${enable_strict_compilation+set}" = set; then : 18631 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 18632else 18633 STRICT_COMPILE=no 18634fi 18635 18636 18637 18638 18639 18640 18641STRICT_CFLAGS="" 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655xorg_testset_save_CFLAGS="$CFLAGS" 18656 18657if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18660$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18661if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18662 $as_echo_n "(cached) " >&6 18663else 18664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18665/* end confdefs.h. */ 18666int i; 18667_ACEOF 18668if ac_fn_c_try_compile "$LINENO"; then : 18669 xorg_cv_cc_flag_unknown_warning_option=yes 18670else 18671 xorg_cv_cc_flag_unknown_warning_option=no 18672fi 18673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18674fi 18675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18676$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18677 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18678 CFLAGS="$xorg_testset_save_CFLAGS" 18679fi 18680 18681if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18684 fi 18685 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18687$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18688if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18689 $as_echo_n "(cached) " >&6 18690else 18691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18692/* end confdefs.h. */ 18693int i; 18694_ACEOF 18695if ac_fn_c_try_compile "$LINENO"; then : 18696 xorg_cv_cc_flag_unused_command_line_argument=yes 18697else 18698 xorg_cv_cc_flag_unused_command_line_argument=no 18699fi 18700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18701fi 18702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18703$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18704 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18705 CFLAGS="$xorg_testset_save_CFLAGS" 18706fi 18707 18708found="no" 18709 18710 if test $found = "no" ; then 18711 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18712 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18713 fi 18714 18715 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18717 fi 18718 18719 CFLAGS="$CFLAGS -pedantic" 18720 18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 18722$as_echo_n "checking if $CC supports -pedantic... " >&6; } 18723 cacheid=xorg_cv_cc_flag__pedantic 18724 if eval \${$cacheid+:} false; then : 18725 $as_echo_n "(cached) " >&6 18726else 18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18728/* end confdefs.h. */ 18729int i; 18730int 18731main () 18732{ 18733 18734 ; 18735 return 0; 18736} 18737_ACEOF 18738if ac_fn_c_try_link "$LINENO"; then : 18739 eval $cacheid=yes 18740else 18741 eval $cacheid=no 18742fi 18743rm -f core conftest.err conftest.$ac_objext \ 18744 conftest$ac_exeext conftest.$ac_ext 18745fi 18746 18747 18748 CFLAGS="$xorg_testset_save_CFLAGS" 18749 18750 eval supported=\$$cacheid 18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18752$as_echo "$supported" >&6; } 18753 if test "$supported" = "yes" ; then 18754 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 18755 found="yes" 18756 fi 18757 fi 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773xorg_testset_save_CFLAGS="$CFLAGS" 18774 18775if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18778$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18779if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18780 $as_echo_n "(cached) " >&6 18781else 18782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18783/* end confdefs.h. */ 18784int i; 18785_ACEOF 18786if ac_fn_c_try_compile "$LINENO"; then : 18787 xorg_cv_cc_flag_unknown_warning_option=yes 18788else 18789 xorg_cv_cc_flag_unknown_warning_option=no 18790fi 18791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18792fi 18793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18794$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18795 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18796 CFLAGS="$xorg_testset_save_CFLAGS" 18797fi 18798 18799if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18802 fi 18803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18805$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18806if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18807 $as_echo_n "(cached) " >&6 18808else 18809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18810/* end confdefs.h. */ 18811int i; 18812_ACEOF 18813if ac_fn_c_try_compile "$LINENO"; then : 18814 xorg_cv_cc_flag_unused_command_line_argument=yes 18815else 18816 xorg_cv_cc_flag_unused_command_line_argument=no 18817fi 18818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18819fi 18820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18821$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18822 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18823 CFLAGS="$xorg_testset_save_CFLAGS" 18824fi 18825 18826found="no" 18827 18828 if test $found = "no" ; then 18829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18830 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18831 fi 18832 18833 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18835 fi 18836 18837 CFLAGS="$CFLAGS -Werror" 18838 18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18840$as_echo_n "checking if $CC supports -Werror... " >&6; } 18841 cacheid=xorg_cv_cc_flag__Werror 18842 if eval \${$cacheid+:} false; then : 18843 $as_echo_n "(cached) " >&6 18844else 18845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18846/* end confdefs.h. */ 18847int i; 18848int 18849main () 18850{ 18851 18852 ; 18853 return 0; 18854} 18855_ACEOF 18856if ac_fn_c_try_link "$LINENO"; then : 18857 eval $cacheid=yes 18858else 18859 eval $cacheid=no 18860fi 18861rm -f core conftest.err conftest.$ac_objext \ 18862 conftest$ac_exeext conftest.$ac_ext 18863fi 18864 18865 18866 CFLAGS="$xorg_testset_save_CFLAGS" 18867 18868 eval supported=\$$cacheid 18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18870$as_echo "$supported" >&6; } 18871 if test "$supported" = "yes" ; then 18872 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18873 found="yes" 18874 fi 18875 fi 18876 18877 if test $found = "no" ; then 18878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18880 fi 18881 18882 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18883 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18884 fi 18885 18886 CFLAGS="$CFLAGS -errwarn" 18887 18888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18889$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18890 cacheid=xorg_cv_cc_flag__errwarn 18891 if eval \${$cacheid+:} false; then : 18892 $as_echo_n "(cached) " >&6 18893else 18894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18895/* end confdefs.h. */ 18896int i; 18897int 18898main () 18899{ 18900 18901 ; 18902 return 0; 18903} 18904_ACEOF 18905if ac_fn_c_try_link "$LINENO"; then : 18906 eval $cacheid=yes 18907else 18908 eval $cacheid=no 18909fi 18910rm -f core conftest.err conftest.$ac_objext \ 18911 conftest$ac_exeext conftest.$ac_ext 18912fi 18913 18914 18915 CFLAGS="$xorg_testset_save_CFLAGS" 18916 18917 eval supported=\$$cacheid 18918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18919$as_echo "$supported" >&6; } 18920 if test "$supported" = "yes" ; then 18921 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18922 found="yes" 18923 fi 18924 fi 18925 18926 18927 18928# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18929# activate it with -Werror, so we add it here explicitly. 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943xorg_testset_save_CFLAGS="$CFLAGS" 18944 18945if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18946 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18948$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18949if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18950 $as_echo_n "(cached) " >&6 18951else 18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18953/* end confdefs.h. */ 18954int i; 18955_ACEOF 18956if ac_fn_c_try_compile "$LINENO"; then : 18957 xorg_cv_cc_flag_unknown_warning_option=yes 18958else 18959 xorg_cv_cc_flag_unknown_warning_option=no 18960fi 18961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18962fi 18963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18964$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18965 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18966 CFLAGS="$xorg_testset_save_CFLAGS" 18967fi 18968 18969if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18972 fi 18973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18975$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18976if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18977 $as_echo_n "(cached) " >&6 18978else 18979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18980/* end confdefs.h. */ 18981int i; 18982_ACEOF 18983if ac_fn_c_try_compile "$LINENO"; then : 18984 xorg_cv_cc_flag_unused_command_line_argument=yes 18985else 18986 xorg_cv_cc_flag_unused_command_line_argument=no 18987fi 18988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18989fi 18990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18991$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18993 CFLAGS="$xorg_testset_save_CFLAGS" 18994fi 18995 18996found="no" 18997 18998 if test $found = "no" ; then 18999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 19000 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 19001 fi 19002 19003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 19004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 19005 fi 19006 19007 CFLAGS="$CFLAGS -Werror=attributes" 19008 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 19010$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 19011 cacheid=xorg_cv_cc_flag__Werror_attributes 19012 if eval \${$cacheid+:} false; then : 19013 $as_echo_n "(cached) " >&6 19014else 19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19016/* end confdefs.h. */ 19017int i; 19018int 19019main () 19020{ 19021 19022 ; 19023 return 0; 19024} 19025_ACEOF 19026if ac_fn_c_try_link "$LINENO"; then : 19027 eval $cacheid=yes 19028else 19029 eval $cacheid=no 19030fi 19031rm -f core conftest.err conftest.$ac_objext \ 19032 conftest$ac_exeext conftest.$ac_ext 19033fi 19034 19035 19036 CFLAGS="$xorg_testset_save_CFLAGS" 19037 19038 eval supported=\$$cacheid 19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 19040$as_echo "$supported" >&6; } 19041 if test "$supported" = "yes" ; then 19042 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 19043 found="yes" 19044 fi 19045 fi 19046 19047 19048 19049if test "x$STRICT_COMPILE" = "xyes"; then 19050 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 19051 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 19052fi 19053 19054 19055 19056 19057 19058 19059cat >>confdefs.h <<_ACEOF 19060#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 19061_ACEOF 19062 19063 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 19064 if test "x$PVM" = "x"; then 19065 PVM="0" 19066 fi 19067 19068cat >>confdefs.h <<_ACEOF 19069#define PACKAGE_VERSION_MINOR $PVM 19070_ACEOF 19071 19072 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 19073 if test "x$PVP" = "x"; then 19074 PVP="0" 19075 fi 19076 19077cat >>confdefs.h <<_ACEOF 19078#define PACKAGE_VERSION_PATCHLEVEL $PVP 19079_ACEOF 19080 19081 19082 19083CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \ 19084mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 19085|| (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \ 19086touch \$(top_srcdir)/ChangeLog; \ 19087echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))" 19088 19089 19090 19091 19092macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 19093INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 19094mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 19095|| (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \ 19096touch \$(top_srcdir)/INSTALL; \ 19097echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))" 19098 19099 19100 19101 19102 19103 19104case $host_os in 19105 solaris*) 19106 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we 19107 # check for a man page file found in later versions that use 19108 # traditional section numbers instead 19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5 19110$as_echo_n "checking for /usr/share/man/man7/attributes.7... " >&6; } 19111if ${ac_cv_file__usr_share_man_man7_attributes_7+:} false; then : 19112 $as_echo_n "(cached) " >&6 19113else 19114 test "$cross_compiling" = yes && 19115 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 19116if test -r "/usr/share/man/man7/attributes.7"; then 19117 ac_cv_file__usr_share_man_man7_attributes_7=yes 19118else 19119 ac_cv_file__usr_share_man_man7_attributes_7=no 19120fi 19121fi 19122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5 19123$as_echo "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; } 19124if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes; then : 19125 SYSV_MAN_SECTIONS=false 19126else 19127 SYSV_MAN_SECTIONS=true 19128fi 19129 19130 ;; 19131 *) SYSV_MAN_SECTIONS=false ;; 19132esac 19133 19134if test x$APP_MAN_SUFFIX = x ; then 19135 APP_MAN_SUFFIX=1 19136fi 19137if test x$APP_MAN_DIR = x ; then 19138 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 19139fi 19140 19141if test x$LIB_MAN_SUFFIX = x ; then 19142 LIB_MAN_SUFFIX=3 19143fi 19144if test x$LIB_MAN_DIR = x ; then 19145 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 19146fi 19147 19148if test x$FILE_MAN_SUFFIX = x ; then 19149 case $SYSV_MAN_SECTIONS in 19150 true) FILE_MAN_SUFFIX=4 ;; 19151 *) FILE_MAN_SUFFIX=5 ;; 19152 esac 19153fi 19154if test x$FILE_MAN_DIR = x ; then 19155 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 19156fi 19157 19158if test x$MISC_MAN_SUFFIX = x ; then 19159 case $SYSV_MAN_SECTIONS in 19160 true) MISC_MAN_SUFFIX=5 ;; 19161 *) MISC_MAN_SUFFIX=7 ;; 19162 esac 19163fi 19164if test x$MISC_MAN_DIR = x ; then 19165 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 19166fi 19167 19168if test x$DRIVER_MAN_SUFFIX = x ; then 19169 case $SYSV_MAN_SECTIONS in 19170 true) DRIVER_MAN_SUFFIX=7 ;; 19171 *) DRIVER_MAN_SUFFIX=4 ;; 19172 esac 19173fi 19174if test x$DRIVER_MAN_DIR = x ; then 19175 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 19176fi 19177 19178if test x$ADMIN_MAN_SUFFIX = x ; then 19179 case $SYSV_MAN_SECTIONS in 19180 true) ADMIN_MAN_SUFFIX=1m ;; 19181 *) ADMIN_MAN_SUFFIX=8 ;; 19182 esac 19183fi 19184if test x$ADMIN_MAN_DIR = x ; then 19185 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 19186fi 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202XORG_MAN_PAGE="X Version 11" 19203 19204MAN_SUBSTS="\ 19205 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19206 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 19207 -e 's|__xservername__|Xorg|g' \ 19208 -e 's|__xconfigfile__|xorg.conf|g' \ 19209 -e 's|__projectroot__|\$(prefix)|g' \ 19210 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 19211 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 19212 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 19213 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 19214 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 19215 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 19216 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 19217 19218 19219 19220# Check whether --enable-silent-rules was given. 19221if test "${enable_silent_rules+set}" = set; then : 19222 enableval=$enable_silent_rules; 19223fi 19224 19225case $enable_silent_rules in # ((( 19226 yes) AM_DEFAULT_VERBOSITY=0;; 19227 no) AM_DEFAULT_VERBOSITY=1;; 19228 *) AM_DEFAULT_VERBOSITY=0;; 19229esac 19230am_make=${MAKE-make} 19231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 19232$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 19233if ${am_cv_make_support_nested_variables+:} false; then : 19234 $as_echo_n "(cached) " >&6 19235else 19236 if $as_echo 'TRUE=$(BAR$(V)) 19237BAR0=false 19238BAR1=true 19239V=1 19240am__doit: 19241 @$(TRUE) 19242.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 19243 am_cv_make_support_nested_variables=yes 19244else 19245 am_cv_make_support_nested_variables=no 19246fi 19247fi 19248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 19249$as_echo "$am_cv_make_support_nested_variables" >&6; } 19250if test $am_cv_make_support_nested_variables = yes; then 19251 AM_V='$(V)' 19252 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 19253else 19254 AM_V=$AM_DEFAULT_VERBOSITY 19255 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 19256fi 19257AM_BACKSLASH='\' 19258 19259 19260 19261 19262# Check whether --enable-devel-docs was given. 19263if test "${enable_devel_docs+set}" = set; then : 19264 enableval=$enable_devel_docs; build_devel_docs=$enableval 19265else 19266 build_devel_docs=yes 19267fi 19268 19269 19270 if test x$build_devel_docs = xyes; then 19271 ENABLE_DEVEL_DOCS_TRUE= 19272 ENABLE_DEVEL_DOCS_FALSE='#' 19273else 19274 ENABLE_DEVEL_DOCS_TRUE='#' 19275 ENABLE_DEVEL_DOCS_FALSE= 19276fi 19277 19278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5 19279$as_echo_n "checking whether to build developer documentation... " >&6; } 19280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5 19281$as_echo "$build_devel_docs" >&6; } 19282 19283 19284 19285 19286 19287 19288# Check whether --with-doxygen was given. 19289if test "${with_doxygen+set}" = set; then : 19290 withval=$with_doxygen; use_doxygen=$withval 19291else 19292 use_doxygen=auto 19293fi 19294 19295 19296 19297if test "x$use_doxygen" = x"auto"; then 19298 # Extract the first word of "doxygen", so it can be a program name with args. 19299set dummy doxygen; ac_word=$2 19300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19301$as_echo_n "checking for $ac_word... " >&6; } 19302if ${ac_cv_path_DOXYGEN+:} false; then : 19303 $as_echo_n "(cached) " >&6 19304else 19305 case $DOXYGEN in 19306 [\\/]* | ?:[\\/]*) 19307 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 19308 ;; 19309 *) 19310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19311for as_dir in $PATH 19312do 19313 IFS=$as_save_IFS 19314 test -z "$as_dir" && as_dir=. 19315 for ac_exec_ext in '' $ac_executable_extensions; do 19316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19317 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 19318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19319 break 2 19320 fi 19321done 19322 done 19323IFS=$as_save_IFS 19324 19325 ;; 19326esac 19327fi 19328DOXYGEN=$ac_cv_path_DOXYGEN 19329if test -n "$DOXYGEN"; then 19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 19331$as_echo "$DOXYGEN" >&6; } 19332else 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19334$as_echo "no" >&6; } 19335fi 19336 19337 19338 if test "x$DOXYGEN" = "x"; then 19339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - documentation targets will be skipped" >&5 19340$as_echo "$as_me: WARNING: doxygen not found - documentation targets will be skipped" >&2;} 19341 have_doxygen=no 19342 else 19343 have_doxygen=yes 19344 fi 19345elif test "x$use_doxygen" = x"yes" ; then 19346 # Extract the first word of "doxygen", so it can be a program name with args. 19347set dummy doxygen; ac_word=$2 19348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19349$as_echo_n "checking for $ac_word... " >&6; } 19350if ${ac_cv_path_DOXYGEN+:} false; then : 19351 $as_echo_n "(cached) " >&6 19352else 19353 case $DOXYGEN in 19354 [\\/]* | ?:[\\/]*) 19355 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. 19356 ;; 19357 *) 19358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19359for as_dir in $PATH 19360do 19361 IFS=$as_save_IFS 19362 test -z "$as_dir" && as_dir=. 19363 for ac_exec_ext in '' $ac_executable_extensions; do 19364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19365 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" 19366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19367 break 2 19368 fi 19369done 19370 done 19371IFS=$as_save_IFS 19372 19373 ;; 19374esac 19375fi 19376DOXYGEN=$ac_cv_path_DOXYGEN 19377if test -n "$DOXYGEN"; then 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 19379$as_echo "$DOXYGEN" >&6; } 19380else 19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19382$as_echo "no" >&6; } 19383fi 19384 19385 19386 if test "x$DOXYGEN" = "x"; then 19387 as_fn_error $? "--with-doxygen=yes specified but doxygen not found in PATH" "$LINENO" 5 19388 fi 19389 have_doxygen=yes 19390elif test "x$use_doxygen" = x"no" ; then 19391 if test "x$DOXYGEN" != "x"; then 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&5 19393$as_echo "$as_me: WARNING: ignoring DOXYGEN environment variable since --with-doxygen=no was specified" >&2;} 19394 fi 19395 have_doxygen=no 19396else 19397 as_fn_error $? "--with-doxygen expects 'yes' or 'no'" "$LINENO" 5 19398fi 19399 19400 19401HAVE_DOT=no 19402if test "x$have_doxygen" = "xyes"; then 19403 # Extract the first word of "dot", so it can be a program name with args. 19404set dummy dot; ac_word=$2 19405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19406$as_echo_n "checking for $ac_word... " >&6; } 19407if ${ac_cv_path_DOT+:} false; then : 19408 $as_echo_n "(cached) " >&6 19409else 19410 case $DOT in 19411 [\\/]* | ?:[\\/]*) 19412 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 19413 ;; 19414 *) 19415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19416for as_dir in $PATH 19417do 19418 IFS=$as_save_IFS 19419 test -z "$as_dir" && as_dir=. 19420 for ac_exec_ext in '' $ac_executable_extensions; do 19421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19422 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 19423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19424 break 2 19425 fi 19426done 19427 done 19428IFS=$as_save_IFS 19429 19430 ;; 19431esac 19432fi 19433DOT=$ac_cv_path_DOT 19434if test -n "$DOT"; then 19435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 19436$as_echo "$DOT" >&6; } 19437else 19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19439$as_echo "no" >&6; } 19440fi 19441 19442 19443 if test "x$DOT" != "x"; then 19444 HAVE_DOT=yes 19445 fi 19446fi 19447 19448 19449 if test "$HAVE_DOT" = "yes"; then 19450 HAVE_DOT_TRUE= 19451 HAVE_DOT_FALSE='#' 19452else 19453 HAVE_DOT_TRUE='#' 19454 HAVE_DOT_FALSE= 19455fi 19456 19457 if test "$have_doxygen" = yes; then 19458 HAVE_DOXYGEN_TRUE= 19459 HAVE_DOXYGEN_FALSE='#' 19460else 19461 HAVE_DOXYGEN_TRUE='#' 19462 HAVE_DOXYGEN_FALSE= 19463fi 19464 19465 19466 19467# The dot drawing tool is checked by XORG_WITH_DOXYGEN, needed for xcb manual 19468if test x"$HAVE_DOT" = xno; then 19469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - doxygen targets will be skipped" >&5 19470$as_echo "$as_me: WARNING: dot not found - doxygen targets will be skipped" >&2;} 19471fi 19472 19473 19474pkg_failed=no 19475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 19476$as_echo_n "checking for CHECK... " >&6; } 19477 19478if test -n "$CHECK_CFLAGS"; then 19479 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 19480 elif test -n "$PKG_CONFIG"; then 19481 if test -n "$PKG_CONFIG" && \ 19482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 19483 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 19484 ac_status=$? 19485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19486 test $ac_status = 0; }; then 19487 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null` 19488 test "x$?" != "x0" && pkg_failed=yes 19489else 19490 pkg_failed=yes 19491fi 19492 else 19493 pkg_failed=untried 19494fi 19495if test -n "$CHECK_LIBS"; then 19496 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 19497 elif test -n "$PKG_CONFIG"; then 19498 if test -n "$PKG_CONFIG" && \ 19499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 19500 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 19501 ac_status=$? 19502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19503 test $ac_status = 0; }; then 19504 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null` 19505 test "x$?" != "x0" && pkg_failed=yes 19506else 19507 pkg_failed=yes 19508fi 19509 else 19510 pkg_failed=untried 19511fi 19512 19513 19514 19515if test $pkg_failed = yes; then 19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19517$as_echo "no" >&6; } 19518 19519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19520 _pkg_short_errors_supported=yes 19521else 19522 _pkg_short_errors_supported=no 19523fi 19524 if test $_pkg_short_errors_supported = yes; then 19525 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 19526 else 19527 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 19528 fi 19529 # Put the nasty error message in config.log where it belongs 19530 echo "$CHECK_PKG_ERRORS" >&5 19531 19532 HAVE_CHECK=no 19533elif test $pkg_failed = untried; then 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19535$as_echo "no" >&6; } 19536 HAVE_CHECK=no 19537else 19538 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 19539 CHECK_LIBS=$pkg_cv_CHECK_LIBS 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19541$as_echo "yes" >&6; } 19542 HAVE_CHECK=yes 19543fi 19544 if test x$HAVE_CHECK = xyes; then 19545 HAVE_CHECK_TRUE= 19546 HAVE_CHECK_FALSE='#' 19547else 19548 HAVE_CHECK_TRUE='#' 19549 HAVE_CHECK_FALSE= 19550fi 19551 19552 19553XSLTPROC=no 19554HTML_CHECK_RESULT=no 19555if test x"$HAVE_CHECK" = xyes; then 19556 # Extract the first word of "xsltproc", so it can be a program name with args. 19557set dummy xsltproc; ac_word=$2 19558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19559$as_echo_n "checking for $ac_word... " >&6; } 19560if ${ac_cv_path_XSLTPROC+:} false; then : 19561 $as_echo_n "(cached) " >&6 19562else 19563 case $XSLTPROC in 19564 [\\/]* | ?:[\\/]*) 19565 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path. 19566 ;; 19567 *) 19568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19569for as_dir in $PATH 19570do 19571 IFS=$as_save_IFS 19572 test -z "$as_dir" && as_dir=. 19573 for ac_exec_ext in '' $ac_executable_extensions; do 19574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19575 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext" 19576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19577 break 2 19578 fi 19579done 19580 done 19581IFS=$as_save_IFS 19582 19583 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no" 19584 ;; 19585esac 19586fi 19587XSLTPROC=$ac_cv_path_XSLTPROC 19588if test -n "$XSLTPROC"; then 19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 19590$as_echo "$XSLTPROC" >&6; } 19591else 19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19593$as_echo "no" >&6; } 19594fi 19595 19596 19597 if test x"$XSLTPROC" != xno; then 19598 HTML_CHECK_RESULT=yes 19599 fi 19600fi 19601 19602 19603# Checks for pkg-config packages 19604 19605pkg_failed=no 19606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCBPROTO" >&5 19607$as_echo_n "checking for XCBPROTO... " >&6; } 19608 19609if test -n "$XCBPROTO_CFLAGS"; then 19610 pkg_cv_XCBPROTO_CFLAGS="$XCBPROTO_CFLAGS" 19611 elif test -n "$PKG_CONFIG"; then 19612 if test -n "$PKG_CONFIG" && \ 19613 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.14\""; } >&5 19614 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.14") 2>&5 19615 ac_status=$? 19616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19617 test $ac_status = 0; }; then 19618 pkg_cv_XCBPROTO_CFLAGS=`$PKG_CONFIG --cflags "xcb-proto >= 1.14" 2>/dev/null` 19619 test "x$?" != "x0" && pkg_failed=yes 19620else 19621 pkg_failed=yes 19622fi 19623 else 19624 pkg_failed=untried 19625fi 19626if test -n "$XCBPROTO_LIBS"; then 19627 pkg_cv_XCBPROTO_LIBS="$XCBPROTO_LIBS" 19628 elif test -n "$PKG_CONFIG"; then 19629 if test -n "$PKG_CONFIG" && \ 19630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb-proto >= 1.14\""; } >&5 19631 ($PKG_CONFIG --exists --print-errors "xcb-proto >= 1.14") 2>&5 19632 ac_status=$? 19633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19634 test $ac_status = 0; }; then 19635 pkg_cv_XCBPROTO_LIBS=`$PKG_CONFIG --libs "xcb-proto >= 1.14" 2>/dev/null` 19636 test "x$?" != "x0" && pkg_failed=yes 19637else 19638 pkg_failed=yes 19639fi 19640 else 19641 pkg_failed=untried 19642fi 19643 19644 19645 19646if test $pkg_failed = yes; then 19647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19648$as_echo "no" >&6; } 19649 19650if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19651 _pkg_short_errors_supported=yes 19652else 19653 _pkg_short_errors_supported=no 19654fi 19655 if test $_pkg_short_errors_supported = yes; then 19656 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb-proto >= 1.14" 2>&1` 19657 else 19658 XCBPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb-proto >= 1.14" 2>&1` 19659 fi 19660 # Put the nasty error message in config.log where it belongs 19661 echo "$XCBPROTO_PKG_ERRORS" >&5 19662 19663 as_fn_error $? "Package requirements (xcb-proto >= 1.14) were not met: 19664 19665$XCBPROTO_PKG_ERRORS 19666 19667Consider adjusting the PKG_CONFIG_PATH environment variable if you 19668installed software in a non-standard prefix. 19669 19670Alternatively, you may set the environment variables XCBPROTO_CFLAGS 19671and XCBPROTO_LIBS to avoid the need to call pkg-config. 19672See the pkg-config man page for more details." "$LINENO" 5 19673elif test $pkg_failed = untried; then 19674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19675$as_echo "no" >&6; } 19676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19678as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19679is in your PATH or set the PKG_CONFIG environment variable to the full 19680path to pkg-config. 19681 19682Alternatively, you may set the environment variables XCBPROTO_CFLAGS 19683and XCBPROTO_LIBS to avoid the need to call pkg-config. 19684See the pkg-config man page for more details. 19685 19686To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19687See \`config.log' for more details" "$LINENO" 5; } 19688else 19689 XCBPROTO_CFLAGS=$pkg_cv_XCBPROTO_CFLAGS 19690 XCBPROTO_LIBS=$pkg_cv_XCBPROTO_LIBS 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19692$as_echo "yes" >&6; } 19693 19694fi 19695NEEDED="xau >= 0.99.2" 19696case $host_os in 19697linux*) ;; 19698 *) NEEDED="$NEEDED pthread-stubs" ;; 19699esac 19700 19701pkg_failed=no 19702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NEEDED" >&5 19703$as_echo_n "checking for NEEDED... " >&6; } 19704 19705if test -n "$NEEDED_CFLAGS"; then 19706 pkg_cv_NEEDED_CFLAGS="$NEEDED_CFLAGS" 19707 elif test -n "$PKG_CONFIG"; then 19708 if test -n "$PKG_CONFIG" && \ 19709 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 19710 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 19711 ac_status=$? 19712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19713 test $ac_status = 0; }; then 19714 pkg_cv_NEEDED_CFLAGS=`$PKG_CONFIG --cflags "$NEEDED" 2>/dev/null` 19715 test "x$?" != "x0" && pkg_failed=yes 19716else 19717 pkg_failed=yes 19718fi 19719 else 19720 pkg_failed=untried 19721fi 19722if test -n "$NEEDED_LIBS"; then 19723 pkg_cv_NEEDED_LIBS="$NEEDED_LIBS" 19724 elif test -n "$PKG_CONFIG"; then 19725 if test -n "$PKG_CONFIG" && \ 19726 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$NEEDED\""; } >&5 19727 ($PKG_CONFIG --exists --print-errors "$NEEDED") 2>&5 19728 ac_status=$? 19729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19730 test $ac_status = 0; }; then 19731 pkg_cv_NEEDED_LIBS=`$PKG_CONFIG --libs "$NEEDED" 2>/dev/null` 19732 test "x$?" != "x0" && pkg_failed=yes 19733else 19734 pkg_failed=yes 19735fi 19736 else 19737 pkg_failed=untried 19738fi 19739 19740 19741 19742if test $pkg_failed = yes; then 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19744$as_echo "no" >&6; } 19745 19746if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19747 _pkg_short_errors_supported=yes 19748else 19749 _pkg_short_errors_supported=no 19750fi 19751 if test $_pkg_short_errors_supported = yes; then 19752 NEEDED_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$NEEDED" 2>&1` 19753 else 19754 NEEDED_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$NEEDED" 2>&1` 19755 fi 19756 # Put the nasty error message in config.log where it belongs 19757 echo "$NEEDED_PKG_ERRORS" >&5 19758 19759 as_fn_error $? "Package requirements ($NEEDED) were not met: 19760 19761$NEEDED_PKG_ERRORS 19762 19763Consider adjusting the PKG_CONFIG_PATH environment variable if you 19764installed software in a non-standard prefix. 19765 19766Alternatively, you may set the environment variables NEEDED_CFLAGS 19767and NEEDED_LIBS to avoid the need to call pkg-config. 19768See the pkg-config man page for more details." "$LINENO" 5 19769elif test $pkg_failed = untried; then 19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19771$as_echo "no" >&6; } 19772 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 19774as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 19775is in your PATH or set the PKG_CONFIG environment variable to the full 19776path to pkg-config. 19777 19778Alternatively, you may set the environment variables NEEDED_CFLAGS 19779and NEEDED_LIBS to avoid the need to call pkg-config. 19780See the pkg-config man page for more details. 19781 19782To get pkg-config, see <http://pkg-config.freedesktop.org/>. 19783See \`config.log' for more details" "$LINENO" 5; } 19784else 19785 NEEDED_CFLAGS=$pkg_cv_NEEDED_CFLAGS 19786 NEEDED_LIBS=$pkg_cv_NEEDED_LIBS 19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19788$as_echo "yes" >&6; } 19789 19790fi 19791 19792have_xdmcp="no" 19793 19794pkg_failed=no 19795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 19796$as_echo_n "checking for XDMCP... " >&6; } 19797 19798if test -n "$XDMCP_CFLAGS"; then 19799 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 19800 elif test -n "$PKG_CONFIG"; then 19801 if test -n "$PKG_CONFIG" && \ 19802 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19803 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19804 ac_status=$? 19805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19806 test $ac_status = 0; }; then 19807 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xdmcp" 2>/dev/null` 19808 test "x$?" != "x0" && pkg_failed=yes 19809else 19810 pkg_failed=yes 19811fi 19812 else 19813 pkg_failed=untried 19814fi 19815if test -n "$XDMCP_LIBS"; then 19816 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 19817 elif test -n "$PKG_CONFIG"; then 19818 if test -n "$PKG_CONFIG" && \ 19819 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xdmcp\""; } >&5 19820 ($PKG_CONFIG --exists --print-errors "xdmcp") 2>&5 19821 ac_status=$? 19822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 19823 test $ac_status = 0; }; then 19824 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xdmcp" 2>/dev/null` 19825 test "x$?" != "x0" && pkg_failed=yes 19826else 19827 pkg_failed=yes 19828fi 19829 else 19830 pkg_failed=untried 19831fi 19832 19833 19834 19835if test $pkg_failed = yes; then 19836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19837$as_echo "no" >&6; } 19838 19839if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 19840 _pkg_short_errors_supported=yes 19841else 19842 _pkg_short_errors_supported=no 19843fi 19844 if test $_pkg_short_errors_supported = yes; then 19845 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xdmcp" 2>&1` 19846 else 19847 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xdmcp" 2>&1` 19848 fi 19849 # Put the nasty error message in config.log where it belongs 19850 echo "$XDMCP_PKG_ERRORS" >&5 19851 19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19853$as_echo "no" >&6; } 19854elif test $pkg_failed = untried; then 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19856$as_echo "no" >&6; } 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19858$as_echo "no" >&6; } 19859else 19860 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 19861 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19863$as_echo "yes" >&6; } 19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XdmcpWrap in -lXdmcp" >&5 19865$as_echo_n "checking for XdmcpWrap in -lXdmcp... " >&6; } 19866if ${ac_cv_lib_Xdmcp_XdmcpWrap+:} false; then : 19867 $as_echo_n "(cached) " >&6 19868else 19869 ac_check_lib_save_LIBS=$LIBS 19870LIBS="-lXdmcp $XDMCP_LIBS $LIBS" 19871cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19872/* end confdefs.h. */ 19873 19874/* Override any GCC internal prototype to avoid an error. 19875 Use char because int might match the return type of a GCC 19876 builtin and then its argument prototype would still apply. */ 19877#ifdef __cplusplus 19878extern "C" 19879#endif 19880char XdmcpWrap (); 19881int 19882main () 19883{ 19884return XdmcpWrap (); 19885 ; 19886 return 0; 19887} 19888_ACEOF 19889if ac_fn_c_try_link "$LINENO"; then : 19890 ac_cv_lib_Xdmcp_XdmcpWrap=yes 19891else 19892 ac_cv_lib_Xdmcp_XdmcpWrap=no 19893fi 19894rm -f core conftest.err conftest.$ac_objext \ 19895 conftest$ac_exeext conftest.$ac_ext 19896LIBS=$ac_check_lib_save_LIBS 19897fi 19898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdmcp_XdmcpWrap" >&5 19899$as_echo "$ac_cv_lib_Xdmcp_XdmcpWrap" >&6; } 19900if test "x$ac_cv_lib_Xdmcp_XdmcpWrap" = xyes; then : 19901 19902 19903$as_echo "#define HASXDMAUTH 1" >>confdefs.h 19904 19905 NEEDED="$NEEDED xdmcp" 19906 have_xdmcp="yes" 19907 19908else 19909 19910 XDMCP_CFLAGS= 19911 XDMCP_LIBS= 19912 19913fi 19914 19915fi 19916 19917 19918 19919# Find the xcb-proto protocol descriptions 19920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBINCLUDEDIR" >&5 19921$as_echo_n "checking XCBPROTO_XCBINCLUDEDIR... " >&6; } 19922XCBPROTO_XCBINCLUDEDIR=`$PKG_CONFIG --variable=xcbincludedir xcb-proto` 19923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBINCLUDEDIR" >&5 19924$as_echo "$XCBPROTO_XCBINCLUDEDIR" >&6; } 19925 19926 19927# Find the xcb-proto version 19928XCBPROTO_VERSION=`$PKG_CONFIG --modversion xcb-proto` 19929 19930 19931# Find the xcbgen Python package 19932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking XCBPROTO_XCBPYTHONDIR" >&5 19933$as_echo_n "checking XCBPROTO_XCBPYTHONDIR... " >&6; } 19934XCBPROTO_XCBPYTHONDIR=`$PKG_CONFIG --variable=pythondir xcb-proto` 19935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCBPROTO_XCBPYTHONDIR" >&5 19936$as_echo "$XCBPROTO_XCBPYTHONDIR" >&6; } 19937 19938 19939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 19940$as_echo_n "checking for ANSI C header files... " >&6; } 19941if ${ac_cv_header_stdc+:} false; then : 19942 $as_echo_n "(cached) " >&6 19943else 19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19945/* end confdefs.h. */ 19946#include <stdlib.h> 19947#include <stdarg.h> 19948#include <string.h> 19949#include <float.h> 19950 19951int 19952main () 19953{ 19954 19955 ; 19956 return 0; 19957} 19958_ACEOF 19959if ac_fn_c_try_compile "$LINENO"; then : 19960 ac_cv_header_stdc=yes 19961else 19962 ac_cv_header_stdc=no 19963fi 19964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19965 19966if test $ac_cv_header_stdc = yes; then 19967 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19969/* end confdefs.h. */ 19970#include <string.h> 19971 19972_ACEOF 19973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19974 $EGREP "memchr" >/dev/null 2>&1; then : 19975 19976else 19977 ac_cv_header_stdc=no 19978fi 19979rm -f conftest* 19980 19981fi 19982 19983if test $ac_cv_header_stdc = yes; then 19984 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19986/* end confdefs.h. */ 19987#include <stdlib.h> 19988 19989_ACEOF 19990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19991 $EGREP "free" >/dev/null 2>&1; then : 19992 19993else 19994 ac_cv_header_stdc=no 19995fi 19996rm -f conftest* 19997 19998fi 19999 20000if test $ac_cv_header_stdc = yes; then 20001 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 20002 if test "$cross_compiling" = yes; then : 20003 : 20004else 20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20006/* end confdefs.h. */ 20007#include <ctype.h> 20008#include <stdlib.h> 20009#if ((' ' & 0x0FF) == 0x020) 20010# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 20011# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 20012#else 20013# define ISLOWER(c) \ 20014 (('a' <= (c) && (c) <= 'i') \ 20015 || ('j' <= (c) && (c) <= 'r') \ 20016 || ('s' <= (c) && (c) <= 'z')) 20017# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 20018#endif 20019 20020#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 20021int 20022main () 20023{ 20024 int i; 20025 for (i = 0; i < 256; i++) 20026 if (XOR (islower (i), ISLOWER (i)) 20027 || toupper (i) != TOUPPER (i)) 20028 return 2; 20029 return 0; 20030} 20031_ACEOF 20032if ac_fn_c_try_run "$LINENO"; then : 20033 20034else 20035 ac_cv_header_stdc=no 20036fi 20037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20038 conftest.$ac_objext conftest.beam conftest.$ac_ext 20039fi 20040 20041fi 20042fi 20043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 20044$as_echo "$ac_cv_header_stdc" >&6; } 20045if test $ac_cv_header_stdc = yes; then 20046 20047$as_echo "#define STDC_HEADERS 1" >>confdefs.h 20048 20049fi 20050 20051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 20052$as_echo_n "checking for library containing getaddrinfo... " >&6; } 20053if ${ac_cv_search_getaddrinfo+:} false; then : 20054 $as_echo_n "(cached) " >&6 20055else 20056 ac_func_search_save_LIBS=$LIBS 20057cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20058/* end confdefs.h. */ 20059 20060/* Override any GCC internal prototype to avoid an error. 20061 Use char because int might match the return type of a GCC 20062 builtin and then its argument prototype would still apply. */ 20063#ifdef __cplusplus 20064extern "C" 20065#endif 20066char getaddrinfo (); 20067int 20068main () 20069{ 20070return getaddrinfo (); 20071 ; 20072 return 0; 20073} 20074_ACEOF 20075for ac_lib in '' socket; do 20076 if test -z "$ac_lib"; then 20077 ac_res="none required" 20078 else 20079 ac_res=-l$ac_lib 20080 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20081 fi 20082 if ac_fn_c_try_link "$LINENO"; then : 20083 ac_cv_search_getaddrinfo=$ac_res 20084fi 20085rm -f core conftest.err conftest.$ac_objext \ 20086 conftest$ac_exeext 20087 if ${ac_cv_search_getaddrinfo+:} false; then : 20088 break 20089fi 20090done 20091if ${ac_cv_search_getaddrinfo+:} false; then : 20092 20093else 20094 ac_cv_search_getaddrinfo=no 20095fi 20096rm conftest.$ac_ext 20097LIBS=$ac_func_search_save_LIBS 20098fi 20099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 20100$as_echo "$ac_cv_search_getaddrinfo" >&6; } 20101ac_res=$ac_cv_search_getaddrinfo 20102if test "$ac_res" != no; then : 20103 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20104 20105fi 20106 20107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5 20108$as_echo_n "checking for library containing connect... " >&6; } 20109if ${ac_cv_search_connect+:} false; then : 20110 $as_echo_n "(cached) " >&6 20111else 20112 ac_func_search_save_LIBS=$LIBS 20113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20114/* end confdefs.h. */ 20115 20116/* Override any GCC internal prototype to avoid an error. 20117 Use char because int might match the return type of a GCC 20118 builtin and then its argument prototype would still apply. */ 20119#ifdef __cplusplus 20120extern "C" 20121#endif 20122char connect (); 20123int 20124main () 20125{ 20126return connect (); 20127 ; 20128 return 0; 20129} 20130_ACEOF 20131for ac_lib in '' socket; do 20132 if test -z "$ac_lib"; then 20133 ac_res="none required" 20134 else 20135 ac_res=-l$ac_lib 20136 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20137 fi 20138 if ac_fn_c_try_link "$LINENO"; then : 20139 ac_cv_search_connect=$ac_res 20140fi 20141rm -f core conftest.err conftest.$ac_objext \ 20142 conftest$ac_exeext 20143 if ${ac_cv_search_connect+:} false; then : 20144 break 20145fi 20146done 20147if ${ac_cv_search_connect+:} false; then : 20148 20149else 20150 ac_cv_search_connect=no 20151fi 20152rm conftest.$ac_ext 20153LIBS=$ac_func_search_save_LIBS 20154fi 20155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5 20156$as_echo "$ac_cv_search_connect" >&6; } 20157ac_res=$ac_cv_search_connect 20158if test "$ac_res" != no; then : 20159 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20160 20161fi 20162 20163 20164# Find support for sending a message from a socket 20165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5 20166$as_echo_n "checking for library containing sendmsg... " >&6; } 20167if ${ac_cv_search_sendmsg+:} false; then : 20168 $as_echo_n "(cached) " >&6 20169else 20170 ac_func_search_save_LIBS=$LIBS 20171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20172/* end confdefs.h. */ 20173 20174/* Override any GCC internal prototype to avoid an error. 20175 Use char because int might match the return type of a GCC 20176 builtin and then its argument prototype would still apply. */ 20177#ifdef __cplusplus 20178extern "C" 20179#endif 20180char sendmsg (); 20181int 20182main () 20183{ 20184return sendmsg (); 20185 ; 20186 return 0; 20187} 20188_ACEOF 20189for ac_lib in '' socket; do 20190 if test -z "$ac_lib"; then 20191 ac_res="none required" 20192 else 20193 ac_res=-l$ac_lib 20194 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 20195 fi 20196 if ac_fn_c_try_link "$LINENO"; then : 20197 ac_cv_search_sendmsg=$ac_res 20198fi 20199rm -f core conftest.err conftest.$ac_objext \ 20200 conftest$ac_exeext 20201 if ${ac_cv_search_sendmsg+:} false; then : 20202 break 20203fi 20204done 20205if ${ac_cv_search_sendmsg+:} false; then : 20206 20207else 20208 ac_cv_search_sendmsg=no 20209fi 20210rm conftest.$ac_ext 20211LIBS=$ac_func_search_save_LIBS 20212fi 20213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5 20214$as_echo "$ac_cv_search_sendmsg" >&6; } 20215ac_res=$ac_cv_search_sendmsg 20216if test "$ac_res" != no; then : 20217 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 20218 have_sendmsg="yes" 20219else 20220 have_sendmsg="no" 20221fi 20222 20223 20224# XPG4v2/UNIX95 added msg_control - check to see if we need to define 20225# _XOPEN_SOURCE to get it (such as on Solaris) 20226ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20227$ac_includes_default 20228#include <sys/socket.h> 20229 20230" 20231if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20232 20233fi 20234 20235# First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03 20236if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20237 unset ac_cv_member_struct_msghdr_msg_control 20238 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5 20239$as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;} 20240 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20241#define _XOPEN_SOURCE 600 20242$ac_includes_default 20243#include <sys/socket.h> 20244 20245" 20246if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20247 20248$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 20249 20250 20251fi 20252 20253fi 20254# If that didn't work, fall back to XPG5/UNIX98 with C89 20255if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then 20256 unset ac_cv_member_struct_msghdr_msg_control 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5 20258$as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;} 20259 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" " 20260#define _XOPEN_SOURCE 500 20261$ac_includes_default 20262#include <sys/socket.h> 20263 20264" 20265if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then : 20266 20267$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h 20268 20269 20270else 20271 have_sendmsg="no" 20272fi 20273 20274fi 20275 20276case x$have_sendmsg in 20277xyes) 20278 20279$as_echo "#define HAVE_SENDMSG 1" >>confdefs.h 20280 20281 ;; 20282esac 20283 20284have_win32="no" 20285lt_enable_auto_import="" 20286case $host_os in 20287mingw*) 20288 have_win32="yes" 20289 lt_enable_auto_import="-Wl,--enable-auto-import" 20290 ;; 20291linux*) 20292 20293$as_echo "#define HAVE_ABSTRACT_SOCKETS 1" >>confdefs.h 20294 20295 ;; 20296esac 20297 20298 20299 if test "x${have_win32}" = "xyes"; then 20300 XCB_HAVE_WIN32_TRUE= 20301 XCB_HAVE_WIN32_FALSE='#' 20302else 20303 XCB_HAVE_WIN32_TRUE='#' 20304 XCB_HAVE_WIN32_FALSE= 20305fi 20306 20307 20308 20309# Check whether --with-queue-size was given. 20310if test "${with_queue_size+set}" = set; then : 20311 withval=$with_queue_size; xcb_queue_buffer_size="$withval" 20312else 20313 xcb_queue_buffer_size=16384 20314fi 20315 20316 20317cat >>confdefs.h <<_ACEOF 20318#define XCB_QUEUE_BUFFER_SIZE $xcb_queue_buffer_size 20319_ACEOF 20320 20321 20322ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" " #include <sys/types.h> 20323 #include <sys/un.h> 20324 20325" 20326if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then : 20327 20328$as_echo "#define HAVE_SOCKADDR_SUN_LEN 1" >>confdefs.h 20329 20330fi 20331 20332 20333for ac_header in tsol/label.h 20334do : 20335 ac_fn_c_check_header_mongrel "$LINENO" "tsol/label.h" "ac_cv_header_tsol_label_h" "$ac_includes_default" 20336if test "x$ac_cv_header_tsol_label_h" = xyes; then : 20337 cat >>confdefs.h <<_ACEOF 20338#define HAVE_TSOL_LABEL_H 1 20339_ACEOF 20340 20341fi 20342 20343done 20344 20345for ac_func in is_system_labeled 20346do : 20347 ac_fn_c_check_func "$LINENO" "is_system_labeled" "ac_cv_func_is_system_labeled" 20348if test "x$ac_cv_func_is_system_labeled" = xyes; then : 20349 cat >>confdefs.h <<_ACEOF 20350#define HAVE_IS_SYSTEM_LABELED 1 20351_ACEOF 20352 20353fi 20354done 20355 20356 20357ac_fn_c_check_decl "$LINENO" "IOV_MAX" "ac_cv_have_decl_IOV_MAX" "#include <limits.h> 20358" 20359if test "x$ac_cv_have_decl_IOV_MAX" = xyes; then : 20360 20361else 20362 ac_fn_c_check_decl "$LINENO" "UIO_MAXIOV" "ac_cv_have_decl_UIO_MAXIOV" "#include <sys/uio.h> 20363" 20364if test "x$ac_cv_have_decl_UIO_MAXIOV" = xyes; then : 20365 $as_echo "#define IOV_MAX UIO_MAXIOV" >>confdefs.h 20366 20367else 20368 20369$as_echo "#define IOV_MAX 16" >>confdefs.h 20370 20371fi 20372 20373fi 20374 20375 20376xcbincludedir='${includedir}/xcb' 20377 20378 20379 20380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} supports symbol visibility" >&5 20381$as_echo_n "checking whether ${CC} supports symbol visibility... " >&6; } 20382 20383save_CFLAGS=${CFLAGS} 20384CFLAGS="$CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden" 20385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20386/* end confdefs.h. */ 20387 20388#pragma GCC visibility push(hidden) 20389extern void f(int); 20390#pragma GCC visibility pop 20391 20392int 20393main () 20394{ 20395 20396 20397 ; 20398 return 0; 20399} 20400_ACEOF 20401if ac_fn_c_try_compile "$LINENO"; then : 20402 20403$as_echo "#define GCC_HAS_VISIBILITY /**/" >>confdefs.h 20404 20405 : 20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20407$as_echo "yes" >&6; } 20408else 20409 : 20410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20411$as_echo "no" >&6; } 20412fi 20413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20414 20415CFLAGS=${save_CFLAGS} 20416 20417 20418ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo" 20419if test "x$ac_cv_func_getaddrinfo" = xyes; then : 20420 20421$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 20422 20423fi 20424 20425 20426case $host_os in 20427 # darwin through Snow Leopard has poll() but can't be used to poll character devices. 20428 darwin[789]*|darwin10*) ;; 20429 darwin*) 20430 _ac_xorg_macosx_version_min="" 20431 if echo $CPPFLAGS $CFLAGS | grep -q mmacosx-version-min ; then 20432 _ac_xorg_macosx_version_min=`echo $CPPFLAGS $CFLAGS | sed 's/^.*-mmacosx-version-min=\([^ ]*\).*$/\1/'` 20433 else 20434 _ac_xorg_macosx_version_min=$MACOSX_DEPLOYMENT_TARGET 20435 fi 20436 case $_ac_xorg_macosx_version_min in 20437 10.[0123456]|10.[0123456].*) ;; 20438 *) 20439 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20440if test "x$ac_cv_func_poll" = xyes; then : 20441 20442$as_echo "#define USE_POLL 1" >>confdefs.h 20443 20444fi 20445 20446 ;; 20447 esac 20448 unset _ac_xorg_macosx_version_min 20449 ;; 20450 *) 20451 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 20452if test "x$ac_cv_func_poll" = xyes; then : 20453 20454$as_echo "#define USE_POLL 1" >>confdefs.h 20455 20456fi 20457 20458 ;; 20459esac 20460 20461case $host_os in 20462 *mingw*) 20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5 20464$as_echo_n "checking for main in -lws2_32... " >&6; } 20465if ${ac_cv_lib_ws2_32_main+:} false; then : 20466 $as_echo_n "(cached) " >&6 20467else 20468 ac_check_lib_save_LIBS=$LIBS 20469LIBS="-lws2_32 $LIBS" 20470cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20471/* end confdefs.h. */ 20472 20473 20474int 20475main () 20476{ 20477return main (); 20478 ; 20479 return 0; 20480} 20481_ACEOF 20482if ac_fn_c_try_link "$LINENO"; then : 20483 ac_cv_lib_ws2_32_main=yes 20484else 20485 ac_cv_lib_ws2_32_main=no 20486fi 20487rm -f core conftest.err conftest.$ac_objext \ 20488 conftest$ac_exeext conftest.$ac_ext 20489LIBS=$ac_check_lib_save_LIBS 20490fi 20491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5 20492$as_echo "$ac_cv_lib_ws2_32_main" >&6; } 20493if test "x$ac_cv_lib_ws2_32_main" = xyes; then : 20494 cat >>confdefs.h <<_ACEOF 20495#define HAVE_LIBWS2_32 1 20496_ACEOF 20497 20498 LIBS="-lws2_32 $LIBS" 20499 20500fi 20501 20502 ;; 20503 *) 20504 ;; 20505esac 20506 20507 20508# Check whether --enable-composite was given. 20509if test "${enable_composite+set}" = set; then : 20510 enableval=$enable_composite; BUILD_COMPOSITE=$enableval 20511else 20512 BUILD_COMPOSITE=yes 20513fi 20514 20515 20516 20517 if test "x$BUILD_COMPOSITE" = "xyes"; then 20518 BUILD_COMPOSITE_TRUE= 20519 BUILD_COMPOSITE_FALSE='#' 20520else 20521 BUILD_COMPOSITE_TRUE='#' 20522 BUILD_COMPOSITE_FALSE= 20523fi 20524 20525 20526 20527# Check whether --enable-damage was given. 20528if test "${enable_damage+set}" = set; then : 20529 enableval=$enable_damage; BUILD_DAMAGE=$enableval 20530else 20531 BUILD_DAMAGE=yes 20532fi 20533 20534 20535 20536 if test "x$BUILD_DAMAGE" = "xyes"; then 20537 BUILD_DAMAGE_TRUE= 20538 BUILD_DAMAGE_FALSE='#' 20539else 20540 BUILD_DAMAGE_TRUE='#' 20541 BUILD_DAMAGE_FALSE= 20542fi 20543 20544 20545 20546# Check whether --enable-dpms was given. 20547if test "${enable_dpms+set}" = set; then : 20548 enableval=$enable_dpms; BUILD_DPMS=$enableval 20549else 20550 BUILD_DPMS=yes 20551fi 20552 20553 20554 20555 if test "x$BUILD_DPMS" = "xyes"; then 20556 BUILD_DPMS_TRUE= 20557 BUILD_DPMS_FALSE='#' 20558else 20559 BUILD_DPMS_TRUE='#' 20560 BUILD_DPMS_FALSE= 20561fi 20562 20563 20564 20565# Check whether --enable-dri2 was given. 20566if test "${enable_dri2+set}" = set; then : 20567 enableval=$enable_dri2; BUILD_DRI2=$enableval 20568else 20569 BUILD_DRI2=yes 20570fi 20571 20572 20573 20574 if test "x$BUILD_DRI2" = "xyes"; then 20575 BUILD_DRI2_TRUE= 20576 BUILD_DRI2_FALSE='#' 20577else 20578 BUILD_DRI2_TRUE='#' 20579 BUILD_DRI2_FALSE= 20580fi 20581 20582 20583 20584# Check whether --enable-dri3 was given. 20585if test "${enable_dri3+set}" = set; then : 20586 enableval=$enable_dri3; BUILD_DRI3=$enableval 20587else 20588 BUILD_DRI3=auto 20589fi 20590 20591 20592# This extension has a default value of "auto" and depends on the value of $have_sendmsg 20593if test "x$BUILD_DRI3" = "xauto" ; then 20594 BUILD_DRI3=$have_sendmsg 20595fi 20596if test "x$BUILD_DRI3" = "xyes" ; then 20597 if test "x$have_sendmsg" = "xno" ; then 20598 as_fn_error $? "Extension DRI3 requested, but dependencies are not met" "$LINENO" 5 20599 fi 20600fi 20601 20602 if test "x$BUILD_DRI3" = "xyes"; then 20603 BUILD_DRI3_TRUE= 20604 BUILD_DRI3_FALSE='#' 20605else 20606 BUILD_DRI3_TRUE='#' 20607 BUILD_DRI3_FALSE= 20608fi 20609 20610 20611 20612# Check whether --enable-ge was given. 20613if test "${enable_ge+set}" = set; then : 20614 enableval=$enable_ge; BUILD_GE=$enableval 20615else 20616 BUILD_GE=no 20617fi 20618 20619 20620 20621 if test "x$BUILD_GE" = "xyes"; then 20622 BUILD_GE_TRUE= 20623 BUILD_GE_FALSE='#' 20624else 20625 BUILD_GE_TRUE='#' 20626 BUILD_GE_FALSE= 20627fi 20628 20629 20630 20631# Check whether --enable-glx was given. 20632if test "${enable_glx+set}" = set; then : 20633 enableval=$enable_glx; BUILD_GLX=$enableval 20634else 20635 BUILD_GLX=yes 20636fi 20637 20638 20639 20640 if test "x$BUILD_GLX" = "xyes"; then 20641 BUILD_GLX_TRUE= 20642 BUILD_GLX_FALSE='#' 20643else 20644 BUILD_GLX_TRUE='#' 20645 BUILD_GLX_FALSE= 20646fi 20647 20648 20649 20650# Check whether --enable-present was given. 20651if test "${enable_present+set}" = set; then : 20652 enableval=$enable_present; BUILD_PRESENT=$enableval 20653else 20654 BUILD_PRESENT=yes 20655fi 20656 20657 20658 20659 if test "x$BUILD_PRESENT" = "xyes"; then 20660 BUILD_PRESENT_TRUE= 20661 BUILD_PRESENT_FALSE='#' 20662else 20663 BUILD_PRESENT_TRUE='#' 20664 BUILD_PRESENT_FALSE= 20665fi 20666 20667 20668 20669# Check whether --enable-randr was given. 20670if test "${enable_randr+set}" = set; then : 20671 enableval=$enable_randr; BUILD_RANDR=$enableval 20672else 20673 BUILD_RANDR=yes 20674fi 20675 20676 20677 20678 if test "x$BUILD_RANDR" = "xyes"; then 20679 BUILD_RANDR_TRUE= 20680 BUILD_RANDR_FALSE='#' 20681else 20682 BUILD_RANDR_TRUE='#' 20683 BUILD_RANDR_FALSE= 20684fi 20685 20686 20687 20688# Check whether --enable-record was given. 20689if test "${enable_record+set}" = set; then : 20690 enableval=$enable_record; BUILD_RECORD=$enableval 20691else 20692 BUILD_RECORD=yes 20693fi 20694 20695 20696 20697 if test "x$BUILD_RECORD" = "xyes"; then 20698 BUILD_RECORD_TRUE= 20699 BUILD_RECORD_FALSE='#' 20700else 20701 BUILD_RECORD_TRUE='#' 20702 BUILD_RECORD_FALSE= 20703fi 20704 20705 20706 20707# Check whether --enable-render was given. 20708if test "${enable_render+set}" = set; then : 20709 enableval=$enable_render; BUILD_RENDER=$enableval 20710else 20711 BUILD_RENDER=yes 20712fi 20713 20714 20715 20716 if test "x$BUILD_RENDER" = "xyes"; then 20717 BUILD_RENDER_TRUE= 20718 BUILD_RENDER_FALSE='#' 20719else 20720 BUILD_RENDER_TRUE='#' 20721 BUILD_RENDER_FALSE= 20722fi 20723 20724 20725 20726# Check whether --enable-resource was given. 20727if test "${enable_resource+set}" = set; then : 20728 enableval=$enable_resource; BUILD_RESOURCE=$enableval 20729else 20730 BUILD_RESOURCE=yes 20731fi 20732 20733 20734 20735 if test "x$BUILD_RESOURCE" = "xyes"; then 20736 BUILD_RESOURCE_TRUE= 20737 BUILD_RESOURCE_FALSE='#' 20738else 20739 BUILD_RESOURCE_TRUE='#' 20740 BUILD_RESOURCE_FALSE= 20741fi 20742 20743 20744 20745# Check whether --enable-screensaver was given. 20746if test "${enable_screensaver+set}" = set; then : 20747 enableval=$enable_screensaver; BUILD_SCREENSAVER=$enableval 20748else 20749 BUILD_SCREENSAVER=yes 20750fi 20751 20752 20753 20754 if test "x$BUILD_SCREENSAVER" = "xyes"; then 20755 BUILD_SCREENSAVER_TRUE= 20756 BUILD_SCREENSAVER_FALSE='#' 20757else 20758 BUILD_SCREENSAVER_TRUE='#' 20759 BUILD_SCREENSAVER_FALSE= 20760fi 20761 20762 20763 20764# Check whether --enable-shape was given. 20765if test "${enable_shape+set}" = set; then : 20766 enableval=$enable_shape; BUILD_SHAPE=$enableval 20767else 20768 BUILD_SHAPE=yes 20769fi 20770 20771 20772 20773 if test "x$BUILD_SHAPE" = "xyes"; then 20774 BUILD_SHAPE_TRUE= 20775 BUILD_SHAPE_FALSE='#' 20776else 20777 BUILD_SHAPE_TRUE='#' 20778 BUILD_SHAPE_FALSE= 20779fi 20780 20781 20782 20783# Check whether --enable-shm was given. 20784if test "${enable_shm+set}" = set; then : 20785 enableval=$enable_shm; BUILD_SHM=$enableval 20786else 20787 BUILD_SHM=yes 20788fi 20789 20790 20791 20792 if test "x$BUILD_SHM" = "xyes"; then 20793 BUILD_SHM_TRUE= 20794 BUILD_SHM_FALSE='#' 20795else 20796 BUILD_SHM_TRUE='#' 20797 BUILD_SHM_FALSE= 20798fi 20799 20800 20801 20802# Check whether --enable-sync was given. 20803if test "${enable_sync+set}" = set; then : 20804 enableval=$enable_sync; BUILD_SYNC=$enableval 20805else 20806 BUILD_SYNC=yes 20807fi 20808 20809 20810 20811 if test "x$BUILD_SYNC" = "xyes"; then 20812 BUILD_SYNC_TRUE= 20813 BUILD_SYNC_FALSE='#' 20814else 20815 BUILD_SYNC_TRUE='#' 20816 BUILD_SYNC_FALSE= 20817fi 20818 20819 20820 20821# Check whether --enable-xevie was given. 20822if test "${enable_xevie+set}" = set; then : 20823 enableval=$enable_xevie; BUILD_XEVIE=$enableval 20824else 20825 BUILD_XEVIE=no 20826fi 20827 20828 20829 20830 if test "x$BUILD_XEVIE" = "xyes"; then 20831 BUILD_XEVIE_TRUE= 20832 BUILD_XEVIE_FALSE='#' 20833else 20834 BUILD_XEVIE_TRUE='#' 20835 BUILD_XEVIE_FALSE= 20836fi 20837 20838 20839 20840# Check whether --enable-xfixes was given. 20841if test "${enable_xfixes+set}" = set; then : 20842 enableval=$enable_xfixes; BUILD_XFIXES=$enableval 20843else 20844 BUILD_XFIXES=yes 20845fi 20846 20847 20848 20849 if test "x$BUILD_XFIXES" = "xyes"; then 20850 BUILD_XFIXES_TRUE= 20851 BUILD_XFIXES_FALSE='#' 20852else 20853 BUILD_XFIXES_TRUE='#' 20854 BUILD_XFIXES_FALSE= 20855fi 20856 20857 20858 20859# Check whether --enable-xfree86-dri was given. 20860if test "${enable_xfree86_dri+set}" = set; then : 20861 enableval=$enable_xfree86_dri; BUILD_XFREE86_DRI=$enableval 20862else 20863 BUILD_XFREE86_DRI=yes 20864fi 20865 20866 20867 20868 if test "x$BUILD_XFREE86_DRI" = "xyes"; then 20869 BUILD_XFREE86_DRI_TRUE= 20870 BUILD_XFREE86_DRI_FALSE='#' 20871else 20872 BUILD_XFREE86_DRI_TRUE='#' 20873 BUILD_XFREE86_DRI_FALSE= 20874fi 20875 20876 20877 20878# Check whether --enable-xinerama was given. 20879if test "${enable_xinerama+set}" = set; then : 20880 enableval=$enable_xinerama; BUILD_XINERAMA=$enableval 20881else 20882 BUILD_XINERAMA=yes 20883fi 20884 20885 20886 20887 if test "x$BUILD_XINERAMA" = "xyes"; then 20888 BUILD_XINERAMA_TRUE= 20889 BUILD_XINERAMA_FALSE='#' 20890else 20891 BUILD_XINERAMA_TRUE='#' 20892 BUILD_XINERAMA_FALSE= 20893fi 20894 20895 20896 20897# Check whether --enable-xinput was given. 20898if test "${enable_xinput+set}" = set; then : 20899 enableval=$enable_xinput; BUILD_XINPUT=$enableval 20900else 20901 BUILD_XINPUT=yes 20902fi 20903 20904 20905 20906 if test "x$BUILD_XINPUT" = "xyes"; then 20907 BUILD_XINPUT_TRUE= 20908 BUILD_XINPUT_FALSE='#' 20909else 20910 BUILD_XINPUT_TRUE='#' 20911 BUILD_XINPUT_FALSE= 20912fi 20913 20914 20915 20916# Check whether --enable-xkb was given. 20917if test "${enable_xkb+set}" = set; then : 20918 enableval=$enable_xkb; BUILD_XKB=$enableval 20919else 20920 BUILD_XKB=yes 20921fi 20922 20923 20924 20925 if test "x$BUILD_XKB" = "xyes"; then 20926 BUILD_XKB_TRUE= 20927 BUILD_XKB_FALSE='#' 20928else 20929 BUILD_XKB_TRUE='#' 20930 BUILD_XKB_FALSE= 20931fi 20932 20933 20934 20935# Check whether --enable-xprint was given. 20936if test "${enable_xprint+set}" = set; then : 20937 enableval=$enable_xprint; BUILD_XPRINT=$enableval 20938else 20939 BUILD_XPRINT=no 20940fi 20941 20942 20943 20944 if test "x$BUILD_XPRINT" = "xyes"; then 20945 BUILD_XPRINT_TRUE= 20946 BUILD_XPRINT_FALSE='#' 20947else 20948 BUILD_XPRINT_TRUE='#' 20949 BUILD_XPRINT_FALSE= 20950fi 20951 20952 20953 20954# Check whether --enable-selinux was given. 20955if test "${enable_selinux+set}" = set; then : 20956 enableval=$enable_selinux; BUILD_SELINUX=$enableval 20957else 20958 BUILD_SELINUX=no 20959fi 20960 20961 20962 20963 if test "x$BUILD_SELINUX" = "xyes"; then 20964 BUILD_SELINUX_TRUE= 20965 BUILD_SELINUX_FALSE='#' 20966else 20967 BUILD_SELINUX_TRUE='#' 20968 BUILD_SELINUX_FALSE= 20969fi 20970 20971 20972 20973# Check whether --enable-xtest was given. 20974if test "${enable_xtest+set}" = set; then : 20975 enableval=$enable_xtest; BUILD_XTEST=$enableval 20976else 20977 BUILD_XTEST=yes 20978fi 20979 20980 20981 20982 if test "x$BUILD_XTEST" = "xyes"; then 20983 BUILD_XTEST_TRUE= 20984 BUILD_XTEST_FALSE='#' 20985else 20986 BUILD_XTEST_TRUE='#' 20987 BUILD_XTEST_FALSE= 20988fi 20989 20990 20991 20992# Check whether --enable-xv was given. 20993if test "${enable_xv+set}" = set; then : 20994 enableval=$enable_xv; BUILD_XV=$enableval 20995else 20996 BUILD_XV=yes 20997fi 20998 20999 21000 21001 if test "x$BUILD_XV" = "xyes"; then 21002 BUILD_XV_TRUE= 21003 BUILD_XV_FALSE='#' 21004else 21005 BUILD_XV_TRUE='#' 21006 BUILD_XV_FALSE= 21007fi 21008 21009 21010 21011# Check whether --enable-xvmc was given. 21012if test "${enable_xvmc+set}" = set; then : 21013 enableval=$enable_xvmc; BUILD_XVMC=$enableval 21014else 21015 BUILD_XVMC=yes 21016fi 21017 21018 21019 21020 if test "x$BUILD_XVMC" = "xyes"; then 21021 BUILD_XVMC_TRUE= 21022 BUILD_XVMC_FALSE='#' 21023else 21024 BUILD_XVMC_TRUE='#' 21025 BUILD_XVMC_FALSE= 21026fi 21027 21028 21029 21030 21031# Check whether --with-launchd was given. 21032if test "${with_launchd+set}" = set; then : 21033 withval=$with_launchd; LAUNCHD=$withval 21034else 21035 LAUNCHD=auto 21036fi 21037 21038if test "x$LAUNCHD" = xauto; then 21039 unset LAUNCHD 21040 # Extract the first word of "launchd", so it can be a program name with args. 21041set dummy launchd; ac_word=$2 21042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21043$as_echo_n "checking for $ac_word... " >&6; } 21044if ${ac_cv_prog_LAUNCHD+:} false; then : 21045 $as_echo_n "(cached) " >&6 21046else 21047 if test -n "$LAUNCHD"; then 21048 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test. 21049else 21050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21051for as_dir in $PATH$PATH_SEPARATOR/sbin 21052do 21053 IFS=$as_save_IFS 21054 test -z "$as_dir" && as_dir=. 21055 for ac_exec_ext in '' $ac_executable_extensions; do 21056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21057 ac_cv_prog_LAUNCHD="yes" 21058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21059 break 2 21060 fi 21061done 21062 done 21063IFS=$as_save_IFS 21064 21065 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no" 21066fi 21067fi 21068LAUNCHD=$ac_cv_prog_LAUNCHD 21069if test -n "$LAUNCHD"; then 21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5 21071$as_echo "$LAUNCHD" >&6; } 21072else 21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21074$as_echo "no" >&6; } 21075fi 21076 21077 21078fi 21079 21080if test "x$LAUNCHD" = xyes ; then 21081 21082$as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h 21083 21084fi 21085 21086 21087# Check whether --with-serverside-support was given. 21088if test "${with_serverside_support+set}" = set; then : 21089 withval=$with_serverside_support; XCB_SERVERSIDE_SUPPORT=$withval 21090else 21091 XCB_SERVERSIDE_SUPPORT=no 21092fi 21093 21094 21095 if test "x$XCB_SERVERSIDE_SUPPORT" = "xyes"; then 21096 XCB_SERVERSIDE_SUPPORT_TRUE= 21097 XCB_SERVERSIDE_SUPPORT_FALSE='#' 21098else 21099 XCB_SERVERSIDE_SUPPORT_TRUE='#' 21100 XCB_SERVERSIDE_SUPPORT_FALSE= 21101fi 21102 21103 21104ac_config_files="$ac_config_files Makefile doc/Makefile man/Makefile src/Makefile tests/Makefile" 21105 21106 21107ac_config_files="$ac_config_files xcb.pc xcb-composite.pc xcb-damage.pc xcb-dpms.pc xcb-dri2.pc xcb-dri3.pc xcb-ge.pc xcb-glx.pc xcb-present.pc xcb-randr.pc xcb-record.pc xcb-render.pc xcb-res.pc xcb-screensaver.pc xcb-shape.pc xcb-shm.pc xcb-sync.pc xcb-xevie.pc xcb-xf86dri.pc xcb-xfixes.pc xcb-xinerama.pc xcb-xinput.pc xcb-xkb.pc xcb-xprint.pc xcb-xselinux.pc xcb-xtest.pc xcb-xv.pc xcb-xvmc.pc" 21108 21109 21110ac_config_files="$ac_config_files doc/xcb.doxygen" 21111 21112 21113cat >confcache <<\_ACEOF 21114# This file is a shell script that caches the results of configure 21115# tests run on this system so they can be shared between configure 21116# scripts and configure runs, see configure's option --config-cache. 21117# It is not useful on other systems. If it contains results you don't 21118# want to keep, you may remove or edit it. 21119# 21120# config.status only pays attention to the cache file if you give it 21121# the --recheck option to rerun configure. 21122# 21123# `ac_cv_env_foo' variables (set or unset) will be overridden when 21124# loading this file, other *unset* `ac_cv_foo' will be assigned the 21125# following values. 21126 21127_ACEOF 21128 21129# The following way of writing the cache mishandles newlines in values, 21130# but we know of no workaround that is simple, portable, and efficient. 21131# So, we kill variables containing newlines. 21132# Ultrix sh set writes to stderr and can't be redirected directly, 21133# and sets the high bit in the cache file unless we assign to the vars. 21134( 21135 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 21136 eval ac_val=\$$ac_var 21137 case $ac_val in #( 21138 *${as_nl}*) 21139 case $ac_var in #( 21140 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 21141$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 21142 esac 21143 case $ac_var in #( 21144 _ | IFS | as_nl) ;; #( 21145 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 21146 *) { eval $ac_var=; unset $ac_var;} ;; 21147 esac ;; 21148 esac 21149 done 21150 21151 (set) 2>&1 | 21152 case $as_nl`(ac_space=' '; set) 2>&1` in #( 21153 *${as_nl}ac_space=\ *) 21154 # `set' does not quote correctly, so add quotes: double-quote 21155 # substitution turns \\\\ into \\, and sed turns \\ into \. 21156 sed -n \ 21157 "s/'/'\\\\''/g; 21158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 21159 ;; #( 21160 *) 21161 # `set' quotes correctly as required by POSIX, so do not add quotes. 21162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 21163 ;; 21164 esac | 21165 sort 21166) | 21167 sed ' 21168 /^ac_cv_env_/b end 21169 t clear 21170 :clear 21171 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 21172 t end 21173 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 21174 :end' >>confcache 21175if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 21176 if test -w "$cache_file"; then 21177 if test "x$cache_file" != "x/dev/null"; then 21178 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 21179$as_echo "$as_me: updating cache $cache_file" >&6;} 21180 if test ! -f "$cache_file" || test -h "$cache_file"; then 21181 cat confcache >"$cache_file" 21182 else 21183 case $cache_file in #( 21184 */* | ?:*) 21185 mv -f confcache "$cache_file"$$ && 21186 mv -f "$cache_file"$$ "$cache_file" ;; #( 21187 *) 21188 mv -f confcache "$cache_file" ;; 21189 esac 21190 fi 21191 fi 21192 else 21193 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 21194$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 21195 fi 21196fi 21197rm -f confcache 21198 21199test "x$prefix" = xNONE && prefix=$ac_default_prefix 21200# Let make expand exec_prefix. 21201test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 21202 21203DEFS=-DHAVE_CONFIG_H 21204 21205ac_libobjs= 21206ac_ltlibobjs= 21207U= 21208for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 21209 # 1. Remove the extension, and $U if already installed. 21210 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 21211 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 21212 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 21213 # will be set to the directory where LIBOBJS objects are built. 21214 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 21215 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 21216done 21217LIBOBJS=$ac_libobjs 21218 21219LTLIBOBJS=$ac_ltlibobjs 21220 21221 21222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 21223$as_echo_n "checking that generated files are newer than configure... " >&6; } 21224 if test -n "$am_sleep_pid"; then 21225 # Hide warnings about reused PIDs. 21226 wait $am_sleep_pid 2>/dev/null 21227 fi 21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 21229$as_echo "done" >&6; } 21230 if test -n "$EXEEXT"; then 21231 am__EXEEXT_TRUE= 21232 am__EXEEXT_FALSE='#' 21233else 21234 am__EXEEXT_TRUE='#' 21235 am__EXEEXT_FALSE= 21236fi 21237 21238if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 21239 as_fn_error $? "conditional \"AMDEP\" was never defined. 21240Usually this means the macro was only invoked conditionally." "$LINENO" 5 21241fi 21242if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 21243 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 21244Usually this means the macro was only invoked conditionally." "$LINENO" 5 21245fi 21246if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then 21247 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined. 21248Usually this means the macro was only invoked conditionally." "$LINENO" 5 21249fi 21250if test -z "${HAVE_DOT_TRUE}" && test -z "${HAVE_DOT_FALSE}"; then 21251 as_fn_error $? "conditional \"HAVE_DOT\" was never defined. 21252Usually this means the macro was only invoked conditionally." "$LINENO" 5 21253fi 21254if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then 21255 as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined. 21256Usually this means the macro was only invoked conditionally." "$LINENO" 5 21257fi 21258if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then 21259 as_fn_error $? "conditional \"HAVE_CHECK\" was never defined. 21260Usually this means the macro was only invoked conditionally." "$LINENO" 5 21261fi 21262if test -z "${XCB_HAVE_WIN32_TRUE}" && test -z "${XCB_HAVE_WIN32_FALSE}"; then 21263 as_fn_error $? "conditional \"XCB_HAVE_WIN32\" was never defined. 21264Usually this means the macro was only invoked conditionally." "$LINENO" 5 21265fi 21266if test -z "${BUILD_COMPOSITE_TRUE}" && test -z "${BUILD_COMPOSITE_FALSE}"; then 21267 as_fn_error $? "conditional \"BUILD_COMPOSITE\" was never defined. 21268Usually this means the macro was only invoked conditionally." "$LINENO" 5 21269fi 21270if test -z "${BUILD_DAMAGE_TRUE}" && test -z "${BUILD_DAMAGE_FALSE}"; then 21271 as_fn_error $? "conditional \"BUILD_DAMAGE\" was never defined. 21272Usually this means the macro was only invoked conditionally." "$LINENO" 5 21273fi 21274if test -z "${BUILD_DPMS_TRUE}" && test -z "${BUILD_DPMS_FALSE}"; then 21275 as_fn_error $? "conditional \"BUILD_DPMS\" was never defined. 21276Usually this means the macro was only invoked conditionally." "$LINENO" 5 21277fi 21278if test -z "${BUILD_DRI2_TRUE}" && test -z "${BUILD_DRI2_FALSE}"; then 21279 as_fn_error $? "conditional \"BUILD_DRI2\" was never defined. 21280Usually this means the macro was only invoked conditionally." "$LINENO" 5 21281fi 21282if test -z "${BUILD_DRI3_TRUE}" && test -z "${BUILD_DRI3_FALSE}"; then 21283 as_fn_error $? "conditional \"BUILD_DRI3\" was never defined. 21284Usually this means the macro was only invoked conditionally." "$LINENO" 5 21285fi 21286if test -z "${BUILD_GE_TRUE}" && test -z "${BUILD_GE_FALSE}"; then 21287 as_fn_error $? "conditional \"BUILD_GE\" was never defined. 21288Usually this means the macro was only invoked conditionally." "$LINENO" 5 21289fi 21290if test -z "${BUILD_GLX_TRUE}" && test -z "${BUILD_GLX_FALSE}"; then 21291 as_fn_error $? "conditional \"BUILD_GLX\" was never defined. 21292Usually this means the macro was only invoked conditionally." "$LINENO" 5 21293fi 21294if test -z "${BUILD_PRESENT_TRUE}" && test -z "${BUILD_PRESENT_FALSE}"; then 21295 as_fn_error $? "conditional \"BUILD_PRESENT\" was never defined. 21296Usually this means the macro was only invoked conditionally." "$LINENO" 5 21297fi 21298if test -z "${BUILD_RANDR_TRUE}" && test -z "${BUILD_RANDR_FALSE}"; then 21299 as_fn_error $? "conditional \"BUILD_RANDR\" was never defined. 21300Usually this means the macro was only invoked conditionally." "$LINENO" 5 21301fi 21302if test -z "${BUILD_RECORD_TRUE}" && test -z "${BUILD_RECORD_FALSE}"; then 21303 as_fn_error $? "conditional \"BUILD_RECORD\" was never defined. 21304Usually this means the macro was only invoked conditionally." "$LINENO" 5 21305fi 21306if test -z "${BUILD_RENDER_TRUE}" && test -z "${BUILD_RENDER_FALSE}"; then 21307 as_fn_error $? "conditional \"BUILD_RENDER\" was never defined. 21308Usually this means the macro was only invoked conditionally." "$LINENO" 5 21309fi 21310if test -z "${BUILD_RESOURCE_TRUE}" && test -z "${BUILD_RESOURCE_FALSE}"; then 21311 as_fn_error $? "conditional \"BUILD_RESOURCE\" was never defined. 21312Usually this means the macro was only invoked conditionally." "$LINENO" 5 21313fi 21314if test -z "${BUILD_SCREENSAVER_TRUE}" && test -z "${BUILD_SCREENSAVER_FALSE}"; then 21315 as_fn_error $? "conditional \"BUILD_SCREENSAVER\" was never defined. 21316Usually this means the macro was only invoked conditionally." "$LINENO" 5 21317fi 21318if test -z "${BUILD_SHAPE_TRUE}" && test -z "${BUILD_SHAPE_FALSE}"; then 21319 as_fn_error $? "conditional \"BUILD_SHAPE\" was never defined. 21320Usually this means the macro was only invoked conditionally." "$LINENO" 5 21321fi 21322if test -z "${BUILD_SHM_TRUE}" && test -z "${BUILD_SHM_FALSE}"; then 21323 as_fn_error $? "conditional \"BUILD_SHM\" was never defined. 21324Usually this means the macro was only invoked conditionally." "$LINENO" 5 21325fi 21326if test -z "${BUILD_SYNC_TRUE}" && test -z "${BUILD_SYNC_FALSE}"; then 21327 as_fn_error $? "conditional \"BUILD_SYNC\" was never defined. 21328Usually this means the macro was only invoked conditionally." "$LINENO" 5 21329fi 21330if test -z "${BUILD_XEVIE_TRUE}" && test -z "${BUILD_XEVIE_FALSE}"; then 21331 as_fn_error $? "conditional \"BUILD_XEVIE\" was never defined. 21332Usually this means the macro was only invoked conditionally." "$LINENO" 5 21333fi 21334if test -z "${BUILD_XFIXES_TRUE}" && test -z "${BUILD_XFIXES_FALSE}"; then 21335 as_fn_error $? "conditional \"BUILD_XFIXES\" was never defined. 21336Usually this means the macro was only invoked conditionally." "$LINENO" 5 21337fi 21338if test -z "${BUILD_XFREE86_DRI_TRUE}" && test -z "${BUILD_XFREE86_DRI_FALSE}"; then 21339 as_fn_error $? "conditional \"BUILD_XFREE86_DRI\" was never defined. 21340Usually this means the macro was only invoked conditionally." "$LINENO" 5 21341fi 21342if test -z "${BUILD_XINERAMA_TRUE}" && test -z "${BUILD_XINERAMA_FALSE}"; then 21343 as_fn_error $? "conditional \"BUILD_XINERAMA\" was never defined. 21344Usually this means the macro was only invoked conditionally." "$LINENO" 5 21345fi 21346if test -z "${BUILD_XINPUT_TRUE}" && test -z "${BUILD_XINPUT_FALSE}"; then 21347 as_fn_error $? "conditional \"BUILD_XINPUT\" was never defined. 21348Usually this means the macro was only invoked conditionally." "$LINENO" 5 21349fi 21350if test -z "${BUILD_XKB_TRUE}" && test -z "${BUILD_XKB_FALSE}"; then 21351 as_fn_error $? "conditional \"BUILD_XKB\" was never defined. 21352Usually this means the macro was only invoked conditionally." "$LINENO" 5 21353fi 21354if test -z "${BUILD_XPRINT_TRUE}" && test -z "${BUILD_XPRINT_FALSE}"; then 21355 as_fn_error $? "conditional \"BUILD_XPRINT\" was never defined. 21356Usually this means the macro was only invoked conditionally." "$LINENO" 5 21357fi 21358if test -z "${BUILD_SELINUX_TRUE}" && test -z "${BUILD_SELINUX_FALSE}"; then 21359 as_fn_error $? "conditional \"BUILD_SELINUX\" was never defined. 21360Usually this means the macro was only invoked conditionally." "$LINENO" 5 21361fi 21362if test -z "${BUILD_XTEST_TRUE}" && test -z "${BUILD_XTEST_FALSE}"; then 21363 as_fn_error $? "conditional \"BUILD_XTEST\" was never defined. 21364Usually this means the macro was only invoked conditionally." "$LINENO" 5 21365fi 21366if test -z "${BUILD_XV_TRUE}" && test -z "${BUILD_XV_FALSE}"; then 21367 as_fn_error $? "conditional \"BUILD_XV\" was never defined. 21368Usually this means the macro was only invoked conditionally." "$LINENO" 5 21369fi 21370if test -z "${BUILD_XVMC_TRUE}" && test -z "${BUILD_XVMC_FALSE}"; then 21371 as_fn_error $? "conditional \"BUILD_XVMC\" was never defined. 21372Usually this means the macro was only invoked conditionally." "$LINENO" 5 21373fi 21374if test -z "${XCB_SERVERSIDE_SUPPORT_TRUE}" && test -z "${XCB_SERVERSIDE_SUPPORT_FALSE}"; then 21375 as_fn_error $? "conditional \"XCB_SERVERSIDE_SUPPORT\" was never defined. 21376Usually this means the macro was only invoked conditionally." "$LINENO" 5 21377fi 21378 21379: "${CONFIG_STATUS=./config.status}" 21380ac_write_fail=0 21381ac_clean_files_save=$ac_clean_files 21382ac_clean_files="$ac_clean_files $CONFIG_STATUS" 21383{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 21384$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 21385as_write_fail=0 21386cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 21387#! $SHELL 21388# Generated by $as_me. 21389# Run this file to recreate the current configuration. 21390# Compiler output produced by configure, useful for debugging 21391# configure, is in config.log if it exists. 21392 21393debug=false 21394ac_cs_recheck=false 21395ac_cs_silent=false 21396 21397SHELL=\${CONFIG_SHELL-$SHELL} 21398export SHELL 21399_ASEOF 21400cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 21401## -------------------- ## 21402## M4sh Initialization. ## 21403## -------------------- ## 21404 21405# Be more Bourne compatible 21406DUALCASE=1; export DUALCASE # for MKS sh 21407if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21408 emulate sh 21409 NULLCMD=: 21410 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21411 # is contrary to our usage. Disable this feature. 21412 alias -g '${1+"$@"}'='"$@"' 21413 setopt NO_GLOB_SUBST 21414else 21415 case `(set -o) 2>/dev/null` in #( 21416 *posix*) : 21417 set -o posix ;; #( 21418 *) : 21419 ;; 21420esac 21421fi 21422 21423 21424as_nl=' 21425' 21426export as_nl 21427# Printing a long string crashes Solaris 7 /usr/bin/printf. 21428as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 21429as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 21430as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 21431# Prefer a ksh shell builtin over an external printf program on Solaris, 21432# but without wasting forks for bash or zsh. 21433if test -z "$BASH_VERSION$ZSH_VERSION" \ 21434 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 21435 as_echo='print -r --' 21436 as_echo_n='print -rn --' 21437elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 21438 as_echo='printf %s\n' 21439 as_echo_n='printf %s' 21440else 21441 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 21442 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 21443 as_echo_n='/usr/ucb/echo -n' 21444 else 21445 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 21446 as_echo_n_body='eval 21447 arg=$1; 21448 case $arg in #( 21449 *"$as_nl"*) 21450 expr "X$arg" : "X\\(.*\\)$as_nl"; 21451 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 21452 esac; 21453 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 21454 ' 21455 export as_echo_n_body 21456 as_echo_n='sh -c $as_echo_n_body as_echo' 21457 fi 21458 export as_echo_body 21459 as_echo='sh -c $as_echo_body as_echo' 21460fi 21461 21462# The user is always right. 21463if test "${PATH_SEPARATOR+set}" != set; then 21464 PATH_SEPARATOR=: 21465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 21466 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 21467 PATH_SEPARATOR=';' 21468 } 21469fi 21470 21471 21472# IFS 21473# We need space, tab and new line, in precisely that order. Quoting is 21474# there to prevent editors from complaining about space-tab. 21475# (If _AS_PATH_WALK were called with IFS unset, it would disable word 21476# splitting by setting IFS to empty value.) 21477IFS=" "" $as_nl" 21478 21479# Find who we are. Look in the path if we contain no directory separator. 21480as_myself= 21481case $0 in #(( 21482 *[\\/]* ) as_myself=$0 ;; 21483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21484for as_dir in $PATH 21485do 21486 IFS=$as_save_IFS 21487 test -z "$as_dir" && as_dir=. 21488 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 21489 done 21490IFS=$as_save_IFS 21491 21492 ;; 21493esac 21494# We did not find ourselves, most probably we were run as `sh COMMAND' 21495# in which case we are not to be found in the path. 21496if test "x$as_myself" = x; then 21497 as_myself=$0 21498fi 21499if test ! -f "$as_myself"; then 21500 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 21501 exit 1 21502fi 21503 21504# Unset variables that we do not need and which cause bugs (e.g. in 21505# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 21506# suppresses any "Segmentation fault" message there. '((' could 21507# trigger a bug in pdksh 5.2.14. 21508for as_var in BASH_ENV ENV MAIL MAILPATH 21509do eval test x\${$as_var+set} = xset \ 21510 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 21511done 21512PS1='$ ' 21513PS2='> ' 21514PS4='+ ' 21515 21516# NLS nuisances. 21517LC_ALL=C 21518export LC_ALL 21519LANGUAGE=C 21520export LANGUAGE 21521 21522# CDPATH. 21523(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21524 21525 21526# as_fn_error STATUS ERROR [LINENO LOG_FD] 21527# ---------------------------------------- 21528# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 21529# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 21530# script with STATUS, using 1 if that was 0. 21531as_fn_error () 21532{ 21533 as_status=$1; test $as_status -eq 0 && as_status=1 21534 if test "$4"; then 21535 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 21536 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 21537 fi 21538 $as_echo "$as_me: error: $2" >&2 21539 as_fn_exit $as_status 21540} # as_fn_error 21541 21542 21543# as_fn_set_status STATUS 21544# ----------------------- 21545# Set $? to STATUS, without forking. 21546as_fn_set_status () 21547{ 21548 return $1 21549} # as_fn_set_status 21550 21551# as_fn_exit STATUS 21552# ----------------- 21553# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 21554as_fn_exit () 21555{ 21556 set +e 21557 as_fn_set_status $1 21558 exit $1 21559} # as_fn_exit 21560 21561# as_fn_unset VAR 21562# --------------- 21563# Portably unset VAR. 21564as_fn_unset () 21565{ 21566 { eval $1=; unset $1;} 21567} 21568as_unset=as_fn_unset 21569# as_fn_append VAR VALUE 21570# ---------------------- 21571# Append the text in VALUE to the end of the definition contained in VAR. Take 21572# advantage of any shell optimizations that allow amortized linear growth over 21573# repeated appends, instead of the typical quadratic growth present in naive 21574# implementations. 21575if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 21576 eval 'as_fn_append () 21577 { 21578 eval $1+=\$2 21579 }' 21580else 21581 as_fn_append () 21582 { 21583 eval $1=\$$1\$2 21584 } 21585fi # as_fn_append 21586 21587# as_fn_arith ARG... 21588# ------------------ 21589# Perform arithmetic evaluation on the ARGs, and store the result in the 21590# global $as_val. Take advantage of shells that can avoid forks. The arguments 21591# must be portable across $(()) and expr. 21592if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 21593 eval 'as_fn_arith () 21594 { 21595 as_val=$(( $* )) 21596 }' 21597else 21598 as_fn_arith () 21599 { 21600 as_val=`expr "$@" || test $? -eq 1` 21601 } 21602fi # as_fn_arith 21603 21604 21605if expr a : '\(a\)' >/dev/null 2>&1 && 21606 test "X`expr 00001 : '.*\(...\)'`" = X001; then 21607 as_expr=expr 21608else 21609 as_expr=false 21610fi 21611 21612if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 21613 as_basename=basename 21614else 21615 as_basename=false 21616fi 21617 21618if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 21619 as_dirname=dirname 21620else 21621 as_dirname=false 21622fi 21623 21624as_me=`$as_basename -- "$0" || 21625$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 21626 X"$0" : 'X\(//\)$' \| \ 21627 X"$0" : 'X\(/\)' \| . 2>/dev/null || 21628$as_echo X/"$0" | 21629 sed '/^.*\/\([^/][^/]*\)\/*$/{ 21630 s//\1/ 21631 q 21632 } 21633 /^X\/\(\/\/\)$/{ 21634 s//\1/ 21635 q 21636 } 21637 /^X\/\(\/\).*/{ 21638 s//\1/ 21639 q 21640 } 21641 s/.*/./; q'` 21642 21643# Avoid depending upon Character Ranges. 21644as_cr_letters='abcdefghijklmnopqrstuvwxyz' 21645as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 21646as_cr_Letters=$as_cr_letters$as_cr_LETTERS 21647as_cr_digits='0123456789' 21648as_cr_alnum=$as_cr_Letters$as_cr_digits 21649 21650ECHO_C= ECHO_N= ECHO_T= 21651case `echo -n x` in #((((( 21652-n*) 21653 case `echo 'xy\c'` in 21654 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 21655 xy) ECHO_C='\c';; 21656 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 21657 ECHO_T=' ';; 21658 esac;; 21659*) 21660 ECHO_N='-n';; 21661esac 21662 21663rm -f conf$$ conf$$.exe conf$$.file 21664if test -d conf$$.dir; then 21665 rm -f conf$$.dir/conf$$.file 21666else 21667 rm -f conf$$.dir 21668 mkdir conf$$.dir 2>/dev/null 21669fi 21670if (echo >conf$$.file) 2>/dev/null; then 21671 if ln -s conf$$.file conf$$ 2>/dev/null; then 21672 as_ln_s='ln -s' 21673 # ... but there are two gotchas: 21674 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 21675 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 21676 # In both cases, we have to default to `cp -pR'. 21677 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 21678 as_ln_s='cp -pR' 21679 elif ln conf$$.file conf$$ 2>/dev/null; then 21680 as_ln_s=ln 21681 else 21682 as_ln_s='cp -pR' 21683 fi 21684else 21685 as_ln_s='cp -pR' 21686fi 21687rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 21688rmdir conf$$.dir 2>/dev/null 21689 21690 21691# as_fn_mkdir_p 21692# ------------- 21693# Create "$as_dir" as a directory, including parents if necessary. 21694as_fn_mkdir_p () 21695{ 21696 21697 case $as_dir in #( 21698 -*) as_dir=./$as_dir;; 21699 esac 21700 test -d "$as_dir" || eval $as_mkdir_p || { 21701 as_dirs= 21702 while :; do 21703 case $as_dir in #( 21704 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 21705 *) as_qdir=$as_dir;; 21706 esac 21707 as_dirs="'$as_qdir' $as_dirs" 21708 as_dir=`$as_dirname -- "$as_dir" || 21709$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21710 X"$as_dir" : 'X\(//\)[^/]' \| \ 21711 X"$as_dir" : 'X\(//\)$' \| \ 21712 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 21713$as_echo X"$as_dir" | 21714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21715 s//\1/ 21716 q 21717 } 21718 /^X\(\/\/\)[^/].*/{ 21719 s//\1/ 21720 q 21721 } 21722 /^X\(\/\/\)$/{ 21723 s//\1/ 21724 q 21725 } 21726 /^X\(\/\).*/{ 21727 s//\1/ 21728 q 21729 } 21730 s/.*/./; q'` 21731 test -d "$as_dir" && break 21732 done 21733 test -z "$as_dirs" || eval "mkdir $as_dirs" 21734 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 21735 21736 21737} # as_fn_mkdir_p 21738if mkdir -p . 2>/dev/null; then 21739 as_mkdir_p='mkdir -p "$as_dir"' 21740else 21741 test -d ./-p && rmdir ./-p 21742 as_mkdir_p=false 21743fi 21744 21745 21746# as_fn_executable_p FILE 21747# ----------------------- 21748# Test if FILE is an executable regular file. 21749as_fn_executable_p () 21750{ 21751 test -f "$1" && test -x "$1" 21752} # as_fn_executable_p 21753as_test_x='test -x' 21754as_executable_p=as_fn_executable_p 21755 21756# Sed expression to map a string onto a valid CPP name. 21757as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 21758 21759# Sed expression to map a string onto a valid variable name. 21760as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 21761 21762 21763exec 6>&1 21764## ----------------------------------- ## 21765## Main body of $CONFIG_STATUS script. ## 21766## ----------------------------------- ## 21767_ASEOF 21768test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 21769 21770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21771# Save the log message, to keep $0 and so on meaningful, and to 21772# report actual input values of CONFIG_FILES etc. instead of their 21773# values after options handling. 21774ac_log=" 21775This file was extended by libxcb $as_me 1.14, which was 21776generated by GNU Autoconf 2.69. Invocation command line was 21777 21778 CONFIG_FILES = $CONFIG_FILES 21779 CONFIG_HEADERS = $CONFIG_HEADERS 21780 CONFIG_LINKS = $CONFIG_LINKS 21781 CONFIG_COMMANDS = $CONFIG_COMMANDS 21782 $ $0 $@ 21783 21784on `(hostname || uname -n) 2>/dev/null | sed 1q` 21785" 21786 21787_ACEOF 21788 21789case $ac_config_files in *" 21790"*) set x $ac_config_files; shift; ac_config_files=$*;; 21791esac 21792 21793case $ac_config_headers in *" 21794"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 21795esac 21796 21797 21798cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21799# Files that config.status was made for. 21800config_files="$ac_config_files" 21801config_headers="$ac_config_headers" 21802config_commands="$ac_config_commands" 21803 21804_ACEOF 21805 21806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21807ac_cs_usage="\ 21808\`$as_me' instantiates files and other configuration actions 21809from templates according to the current configuration. Unless the files 21810and actions are specified as TAGs, all are instantiated by default. 21811 21812Usage: $0 [OPTION]... [TAG]... 21813 21814 -h, --help print this help, then exit 21815 -V, --version print version number and configuration settings, then exit 21816 --config print configuration, then exit 21817 -q, --quiet, --silent 21818 do not print progress messages 21819 -d, --debug don't remove temporary files 21820 --recheck update $as_me by reconfiguring in the same conditions 21821 --file=FILE[:TEMPLATE] 21822 instantiate the configuration file FILE 21823 --header=FILE[:TEMPLATE] 21824 instantiate the configuration header FILE 21825 21826Configuration files: 21827$config_files 21828 21829Configuration headers: 21830$config_headers 21831 21832Configuration commands: 21833$config_commands 21834 21835Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxcb/issues>." 21836 21837_ACEOF 21838cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21839ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 21840ac_cs_version="\\ 21841libxcb config.status 1.14 21842configured by $0, generated by GNU Autoconf 2.69, 21843 with options \\"\$ac_cs_config\\" 21844 21845Copyright (C) 2012 Free Software Foundation, Inc. 21846This config.status script is free software; the Free Software Foundation 21847gives unlimited permission to copy, distribute and modify it." 21848 21849ac_pwd='$ac_pwd' 21850srcdir='$srcdir' 21851INSTALL='$INSTALL' 21852MKDIR_P='$MKDIR_P' 21853AWK='$AWK' 21854test -n "\$AWK" || AWK=awk 21855_ACEOF 21856 21857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21858# The default lists apply if the user does not specify any file. 21859ac_need_defaults=: 21860while test $# != 0 21861do 21862 case $1 in 21863 --*=?*) 21864 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21865 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 21866 ac_shift=: 21867 ;; 21868 --*=) 21869 ac_option=`expr "X$1" : 'X\([^=]*\)='` 21870 ac_optarg= 21871 ac_shift=: 21872 ;; 21873 *) 21874 ac_option=$1 21875 ac_optarg=$2 21876 ac_shift=shift 21877 ;; 21878 esac 21879 21880 case $ac_option in 21881 # Handling of the options. 21882 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 21883 ac_cs_recheck=: ;; 21884 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 21885 $as_echo "$ac_cs_version"; exit ;; 21886 --config | --confi | --conf | --con | --co | --c ) 21887 $as_echo "$ac_cs_config"; exit ;; 21888 --debug | --debu | --deb | --de | --d | -d ) 21889 debug=: ;; 21890 --file | --fil | --fi | --f ) 21891 $ac_shift 21892 case $ac_optarg in 21893 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21894 '') as_fn_error $? "missing file argument" ;; 21895 esac 21896 as_fn_append CONFIG_FILES " '$ac_optarg'" 21897 ac_need_defaults=false;; 21898 --header | --heade | --head | --hea ) 21899 $ac_shift 21900 case $ac_optarg in 21901 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 21902 esac 21903 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 21904 ac_need_defaults=false;; 21905 --he | --h) 21906 # Conflict between --help and --header 21907 as_fn_error $? "ambiguous option: \`$1' 21908Try \`$0 --help' for more information.";; 21909 --help | --hel | -h ) 21910 $as_echo "$ac_cs_usage"; exit ;; 21911 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 21912 | -silent | --silent | --silen | --sile | --sil | --si | --s) 21913 ac_cs_silent=: ;; 21914 21915 # This is an error. 21916 -*) as_fn_error $? "unrecognized option: \`$1' 21917Try \`$0 --help' for more information." ;; 21918 21919 *) as_fn_append ac_config_targets " $1" 21920 ac_need_defaults=false ;; 21921 21922 esac 21923 shift 21924done 21925 21926ac_configure_extra_args= 21927 21928if $ac_cs_silent; then 21929 exec 6>/dev/null 21930 ac_configure_extra_args="$ac_configure_extra_args --silent" 21931fi 21932 21933_ACEOF 21934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21935if \$ac_cs_recheck; then 21936 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 21937 shift 21938 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21939 CONFIG_SHELL='$SHELL' 21940 export CONFIG_SHELL 21941 exec "\$@" 21942fi 21943 21944_ACEOF 21945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21946exec 5>>config.log 21947{ 21948 echo 21949 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21950## Running $as_me. ## 21951_ASBOX 21952 $as_echo "$ac_log" 21953} >&5 21954 21955_ACEOF 21956cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21957# 21958# INIT-COMMANDS 21959# 21960AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 21961 21962 21963# The HP-UX ksh and POSIX shell print the target directory to stdout 21964# if CDPATH is set. 21965(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21966 21967sed_quote_subst='$sed_quote_subst' 21968double_quote_subst='$double_quote_subst' 21969delay_variable_subst='$delay_variable_subst' 21970macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21971macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21972AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 21973DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21974OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21975enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21976enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21977pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21978enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21979shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 21980SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21981ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21982PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21983host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21984host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21985host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21986build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21987build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21988build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21989SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21990Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21991GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21992EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21993FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21994LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21995NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21996LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21997max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21998ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21999exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 22000lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 22001lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 22002lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 22003lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 22004lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 22005reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 22006reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 22007deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 22008file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 22009file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 22010want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 22011sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 22012AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 22013AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 22014archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 22015STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 22016RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 22017old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22018old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22019old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 22020lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 22021CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 22022CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 22023compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 22024GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 22025lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 22026lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 22027lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 22028lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 22029lt_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"`' 22030lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 22031nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 22032lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 22033lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 22034objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 22035MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 22036lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 22037lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 22038lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 22039lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 22040lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 22041need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 22042MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 22043DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 22044NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 22045LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 22046OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 22047OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 22048libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 22049shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 22050extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22051archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 22052enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 22053export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 22054whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 22055compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 22056old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 22057old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 22058archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 22059archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22060module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 22061module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 22062with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 22063allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 22064no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 22065hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 22066hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 22067hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 22068hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 22069hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 22070hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 22071hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 22072inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 22073link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 22074always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 22075export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 22076exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 22077include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 22078prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 22079postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 22080file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 22081variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 22082need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 22083need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 22084version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 22085runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 22086shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 22087shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 22088libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 22089library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 22090soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 22091install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 22092postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 22093postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 22094finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 22095finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 22096hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 22097sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 22098configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 22099configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 22100hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 22101enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 22102enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 22103enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 22104old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 22105striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 22106 22107LTCC='$LTCC' 22108LTCFLAGS='$LTCFLAGS' 22109compiler='$compiler_DEFAULT' 22110 22111# A function that is used when there is no print builtin or printf. 22112func_fallback_echo () 22113{ 22114 eval 'cat <<_LTECHO_EOF 22115\$1 22116_LTECHO_EOF' 22117} 22118 22119# Quote evaled strings. 22120for var in AS \ 22121DLLTOOL \ 22122OBJDUMP \ 22123SHELL \ 22124ECHO \ 22125PATH_SEPARATOR \ 22126SED \ 22127GREP \ 22128EGREP \ 22129FGREP \ 22130LD \ 22131NM \ 22132LN_S \ 22133lt_SP2NL \ 22134lt_NL2SP \ 22135reload_flag \ 22136deplibs_check_method \ 22137file_magic_cmd \ 22138file_magic_glob \ 22139want_nocaseglob \ 22140sharedlib_from_linklib_cmd \ 22141AR \ 22142AR_FLAGS \ 22143archiver_list_spec \ 22144STRIP \ 22145RANLIB \ 22146CC \ 22147CFLAGS \ 22148compiler \ 22149lt_cv_sys_global_symbol_pipe \ 22150lt_cv_sys_global_symbol_to_cdecl \ 22151lt_cv_sys_global_symbol_to_import \ 22152lt_cv_sys_global_symbol_to_c_name_address \ 22153lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 22154lt_cv_nm_interface \ 22155nm_file_list_spec \ 22156lt_cv_truncate_bin \ 22157lt_prog_compiler_no_builtin_flag \ 22158lt_prog_compiler_pic \ 22159lt_prog_compiler_wl \ 22160lt_prog_compiler_static \ 22161lt_cv_prog_compiler_c_o \ 22162need_locks \ 22163MANIFEST_TOOL \ 22164DSYMUTIL \ 22165NMEDIT \ 22166LIPO \ 22167OTOOL \ 22168OTOOL64 \ 22169shrext_cmds \ 22170export_dynamic_flag_spec \ 22171whole_archive_flag_spec \ 22172compiler_needs_object \ 22173with_gnu_ld \ 22174allow_undefined_flag \ 22175no_undefined_flag \ 22176hardcode_libdir_flag_spec \ 22177hardcode_libdir_separator \ 22178exclude_expsyms \ 22179include_expsyms \ 22180file_list_spec \ 22181variables_saved_for_relink \ 22182libname_spec \ 22183library_names_spec \ 22184soname_spec \ 22185install_override_mode \ 22186finish_eval \ 22187old_striplib \ 22188striplib; do 22189 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22190 *[\\\\\\\`\\"\\\$]*) 22191 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22192 ;; 22193 *) 22194 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22195 ;; 22196 esac 22197done 22198 22199# Double-quote double-evaled strings. 22200for var in reload_cmds \ 22201old_postinstall_cmds \ 22202old_postuninstall_cmds \ 22203old_archive_cmds \ 22204extract_expsyms_cmds \ 22205old_archive_from_new_cmds \ 22206old_archive_from_expsyms_cmds \ 22207archive_cmds \ 22208archive_expsym_cmds \ 22209module_cmds \ 22210module_expsym_cmds \ 22211export_symbols_cmds \ 22212prelink_cmds \ 22213postlink_cmds \ 22214postinstall_cmds \ 22215postuninstall_cmds \ 22216finish_cmds \ 22217sys_lib_search_path_spec \ 22218configure_time_dlsearch_path \ 22219configure_time_lt_sys_library_path; do 22220 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 22221 *[\\\\\\\`\\"\\\$]*) 22222 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 22223 ;; 22224 *) 22225 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 22226 ;; 22227 esac 22228done 22229 22230ac_aux_dir='$ac_aux_dir' 22231 22232# See if we are running on zsh, and set the options that allow our 22233# commands through without removal of \ escapes INIT. 22234if test -n "\${ZSH_VERSION+set}"; then 22235 setopt NO_GLOB_SUBST 22236fi 22237 22238 22239 PACKAGE='$PACKAGE' 22240 VERSION='$VERSION' 22241 RM='$RM' 22242 ofile='$ofile' 22243 22244 22245 22246 22247_ACEOF 22248 22249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22250 22251# Handling of arguments. 22252for ac_config_target in $ac_config_targets 22253do 22254 case $ac_config_target in 22255 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 22256 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 22257 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 22258 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 22259 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 22260 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 22261 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 22262 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 22263 "xcb.pc") CONFIG_FILES="$CONFIG_FILES xcb.pc" ;; 22264 "xcb-composite.pc") CONFIG_FILES="$CONFIG_FILES xcb-composite.pc" ;; 22265 "xcb-damage.pc") CONFIG_FILES="$CONFIG_FILES xcb-damage.pc" ;; 22266 "xcb-dpms.pc") CONFIG_FILES="$CONFIG_FILES xcb-dpms.pc" ;; 22267 "xcb-dri2.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri2.pc" ;; 22268 "xcb-dri3.pc") CONFIG_FILES="$CONFIG_FILES xcb-dri3.pc" ;; 22269 "xcb-ge.pc") CONFIG_FILES="$CONFIG_FILES xcb-ge.pc" ;; 22270 "xcb-glx.pc") CONFIG_FILES="$CONFIG_FILES xcb-glx.pc" ;; 22271 "xcb-present.pc") CONFIG_FILES="$CONFIG_FILES xcb-present.pc" ;; 22272 "xcb-randr.pc") CONFIG_FILES="$CONFIG_FILES xcb-randr.pc" ;; 22273 "xcb-record.pc") CONFIG_FILES="$CONFIG_FILES xcb-record.pc" ;; 22274 "xcb-render.pc") CONFIG_FILES="$CONFIG_FILES xcb-render.pc" ;; 22275 "xcb-res.pc") CONFIG_FILES="$CONFIG_FILES xcb-res.pc" ;; 22276 "xcb-screensaver.pc") CONFIG_FILES="$CONFIG_FILES xcb-screensaver.pc" ;; 22277 "xcb-shape.pc") CONFIG_FILES="$CONFIG_FILES xcb-shape.pc" ;; 22278 "xcb-shm.pc") CONFIG_FILES="$CONFIG_FILES xcb-shm.pc" ;; 22279 "xcb-sync.pc") CONFIG_FILES="$CONFIG_FILES xcb-sync.pc" ;; 22280 "xcb-xevie.pc") CONFIG_FILES="$CONFIG_FILES xcb-xevie.pc" ;; 22281 "xcb-xf86dri.pc") CONFIG_FILES="$CONFIG_FILES xcb-xf86dri.pc" ;; 22282 "xcb-xfixes.pc") CONFIG_FILES="$CONFIG_FILES xcb-xfixes.pc" ;; 22283 "xcb-xinerama.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinerama.pc" ;; 22284 "xcb-xinput.pc") CONFIG_FILES="$CONFIG_FILES xcb-xinput.pc" ;; 22285 "xcb-xkb.pc") CONFIG_FILES="$CONFIG_FILES xcb-xkb.pc" ;; 22286 "xcb-xprint.pc") CONFIG_FILES="$CONFIG_FILES xcb-xprint.pc" ;; 22287 "xcb-xselinux.pc") CONFIG_FILES="$CONFIG_FILES xcb-xselinux.pc" ;; 22288 "xcb-xtest.pc") CONFIG_FILES="$CONFIG_FILES xcb-xtest.pc" ;; 22289 "xcb-xv.pc") CONFIG_FILES="$CONFIG_FILES xcb-xv.pc" ;; 22290 "xcb-xvmc.pc") CONFIG_FILES="$CONFIG_FILES xcb-xvmc.pc" ;; 22291 "doc/xcb.doxygen") CONFIG_FILES="$CONFIG_FILES doc/xcb.doxygen" ;; 22292 22293 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 22294 esac 22295done 22296 22297 22298# If the user did not use the arguments to specify the items to instantiate, 22299# then the envvar interface is used. Set only those that are not. 22300# We use the long form for the default assignment because of an extremely 22301# bizarre bug on SunOS 4.1.3. 22302if $ac_need_defaults; then 22303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 22304 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 22305 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 22306fi 22307 22308# Have a temporary directory for convenience. Make it in the build tree 22309# simply because there is no reason against having it here, and in addition, 22310# creating and moving files from /tmp can sometimes cause problems. 22311# Hook for its removal unless debugging. 22312# Note that there is a small window in which the directory will not be cleaned: 22313# after its creation but before its name has been assigned to `$tmp'. 22314$debug || 22315{ 22316 tmp= ac_tmp= 22317 trap 'exit_status=$? 22318 : "${ac_tmp:=$tmp}" 22319 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 22320' 0 22321 trap 'as_fn_exit 1' 1 2 13 15 22322} 22323# Create a (secure) tmp directory for tmp files. 22324 22325{ 22326 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 22327 test -d "$tmp" 22328} || 22329{ 22330 tmp=./conf$$-$RANDOM 22331 (umask 077 && mkdir "$tmp") 22332} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 22333ac_tmp=$tmp 22334 22335# Set up the scripts for CONFIG_FILES section. 22336# No need to generate them if there are no CONFIG_FILES. 22337# This happens for instance with `./config.status config.h'. 22338if test -n "$CONFIG_FILES"; then 22339 22340 22341ac_cr=`echo X | tr X '\015'` 22342# On cygwin, bash can eat \r inside `` if the user requested igncr. 22343# But we know of no other shell where ac_cr would be empty at this 22344# point, so we can use a bashism as a fallback. 22345if test "x$ac_cr" = x; then 22346 eval ac_cr=\$\'\\r\' 22347fi 22348ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 22349if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 22350 ac_cs_awk_cr='\\r' 22351else 22352 ac_cs_awk_cr=$ac_cr 22353fi 22354 22355echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 22356_ACEOF 22357 22358 22359{ 22360 echo "cat >conf$$subs.awk <<_ACEOF" && 22361 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 22362 echo "_ACEOF" 22363} >conf$$subs.sh || 22364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22365ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 22366ac_delim='%!_!# ' 22367for ac_last_try in false false false false false :; do 22368 . ./conf$$subs.sh || 22369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22370 22371 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 22372 if test $ac_delim_n = $ac_delim_num; then 22373 break 22374 elif $ac_last_try; then 22375 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 22376 else 22377 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22378 fi 22379done 22380rm -f conf$$subs.sh 22381 22382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22383cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 22384_ACEOF 22385sed -n ' 22386h 22387s/^/S["/; s/!.*/"]=/ 22388p 22389g 22390s/^[^!]*!// 22391:repl 22392t repl 22393s/'"$ac_delim"'$// 22394t delim 22395:nl 22396h 22397s/\(.\{148\}\)..*/\1/ 22398t more1 22399s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 22400p 22401n 22402b repl 22403:more1 22404s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22405p 22406g 22407s/.\{148\}// 22408t nl 22409:delim 22410h 22411s/\(.\{148\}\)..*/\1/ 22412t more2 22413s/["\\]/\\&/g; s/^/"/; s/$/"/ 22414p 22415b 22416:more2 22417s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 22418p 22419g 22420s/.\{148\}// 22421t delim 22422' <conf$$subs.awk | sed ' 22423/^[^""]/{ 22424 N 22425 s/\n// 22426} 22427' >>$CONFIG_STATUS || ac_write_fail=1 22428rm -f conf$$subs.awk 22429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22430_ACAWK 22431cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 22432 for (key in S) S_is_set[key] = 1 22433 FS = "" 22434 22435} 22436{ 22437 line = $ 0 22438 nfields = split(line, field, "@") 22439 substed = 0 22440 len = length(field[1]) 22441 for (i = 2; i < nfields; i++) { 22442 key = field[i] 22443 keylen = length(key) 22444 if (S_is_set[key]) { 22445 value = S[key] 22446 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 22447 len += length(value) + length(field[++i]) 22448 substed = 1 22449 } else 22450 len += 1 + keylen 22451 } 22452 22453 print line 22454} 22455 22456_ACAWK 22457_ACEOF 22458cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22459if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 22460 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 22461else 22462 cat 22463fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 22464 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 22465_ACEOF 22466 22467# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 22468# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 22469# trailing colons and then remove the whole line if VPATH becomes empty 22470# (actually we leave an empty line to preserve line numbers). 22471if test "x$srcdir" = x.; then 22472 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 22473h 22474s/// 22475s/^/:/ 22476s/[ ]*$/:/ 22477s/:\$(srcdir):/:/g 22478s/:\${srcdir}:/:/g 22479s/:@srcdir@:/:/g 22480s/^:*// 22481s/:*$// 22482x 22483s/\(=[ ]*\).*/\1/ 22484G 22485s/\n// 22486s/^[^=]*=[ ]*$// 22487}' 22488fi 22489 22490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22491fi # test -n "$CONFIG_FILES" 22492 22493# Set up the scripts for CONFIG_HEADERS section. 22494# No need to generate them if there are no CONFIG_HEADERS. 22495# This happens for instance with `./config.status Makefile'. 22496if test -n "$CONFIG_HEADERS"; then 22497cat >"$ac_tmp/defines.awk" <<\_ACAWK || 22498BEGIN { 22499_ACEOF 22500 22501# Transform confdefs.h into an awk script `defines.awk', embedded as 22502# here-document in config.status, that substitutes the proper values into 22503# config.h.in to produce config.h. 22504 22505# Create a delimiter string that does not exist in confdefs.h, to ease 22506# handling of long lines. 22507ac_delim='%!_!# ' 22508for ac_last_try in false false :; do 22509 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 22510 if test -z "$ac_tt"; then 22511 break 22512 elif $ac_last_try; then 22513 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 22514 else 22515 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 22516 fi 22517done 22518 22519# For the awk script, D is an array of macro values keyed by name, 22520# likewise P contains macro parameters if any. Preserve backslash 22521# newline sequences. 22522 22523ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 22524sed -n ' 22525s/.\{148\}/&'"$ac_delim"'/g 22526t rset 22527:rset 22528s/^[ ]*#[ ]*define[ ][ ]*/ / 22529t def 22530d 22531:def 22532s/\\$// 22533t bsnl 22534s/["\\]/\\&/g 22535s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22536D["\1"]=" \3"/p 22537s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 22538d 22539:bsnl 22540s/["\\]/\\&/g 22541s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 22542D["\1"]=" \3\\\\\\n"\\/p 22543t cont 22544s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 22545t cont 22546d 22547:cont 22548n 22549s/.\{148\}/&'"$ac_delim"'/g 22550t clear 22551:clear 22552s/\\$// 22553t bsnlc 22554s/["\\]/\\&/g; s/^/"/; s/$/"/p 22555d 22556:bsnlc 22557s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 22558b cont 22559' <confdefs.h | sed ' 22560s/'"$ac_delim"'/"\\\ 22561"/g' >>$CONFIG_STATUS || ac_write_fail=1 22562 22563cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22564 for (key in D) D_is_set[key] = 1 22565 FS = "" 22566} 22567/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 22568 line = \$ 0 22569 split(line, arg, " ") 22570 if (arg[1] == "#") { 22571 defundef = arg[2] 22572 mac1 = arg[3] 22573 } else { 22574 defundef = substr(arg[1], 2) 22575 mac1 = arg[2] 22576 } 22577 split(mac1, mac2, "(") #) 22578 macro = mac2[1] 22579 prefix = substr(line, 1, index(line, defundef) - 1) 22580 if (D_is_set[macro]) { 22581 # Preserve the white space surrounding the "#". 22582 print prefix "define", macro P[macro] D[macro] 22583 next 22584 } else { 22585 # Replace #undef with comments. This is necessary, for example, 22586 # in the case of _POSIX_SOURCE, which is predefined and required 22587 # on some systems where configure will not decide to define it. 22588 if (defundef == "undef") { 22589 print "/*", prefix defundef, macro, "*/" 22590 next 22591 } 22592 } 22593} 22594{ print } 22595_ACAWK 22596_ACEOF 22597cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22598 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 22599fi # test -n "$CONFIG_HEADERS" 22600 22601 22602eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 22603shift 22604for ac_tag 22605do 22606 case $ac_tag in 22607 :[FHLC]) ac_mode=$ac_tag; continue;; 22608 esac 22609 case $ac_mode$ac_tag in 22610 :[FHL]*:*);; 22611 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 22612 :[FH]-) ac_tag=-:-;; 22613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 22614 esac 22615 ac_save_IFS=$IFS 22616 IFS=: 22617 set x $ac_tag 22618 IFS=$ac_save_IFS 22619 shift 22620 ac_file=$1 22621 shift 22622 22623 case $ac_mode in 22624 :L) ac_source=$1;; 22625 :[FH]) 22626 ac_file_inputs= 22627 for ac_f 22628 do 22629 case $ac_f in 22630 -) ac_f="$ac_tmp/stdin";; 22631 *) # Look for the file first in the build tree, then in the source tree 22632 # (if the path is not absolute). The absolute path cannot be DOS-style, 22633 # because $ac_f cannot contain `:'. 22634 test -f "$ac_f" || 22635 case $ac_f in 22636 [\\/$]*) false;; 22637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 22638 esac || 22639 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 22640 esac 22641 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 22642 as_fn_append ac_file_inputs " '$ac_f'" 22643 done 22644 22645 # Let's still pretend it is `configure' which instantiates (i.e., don't 22646 # use $as_me), people would be surprised to read: 22647 # /* config.h. Generated by config.status. */ 22648 configure_input='Generated from '` 22649 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 22650 `' by configure.' 22651 if test x"$ac_file" != x-; then 22652 configure_input="$ac_file. $configure_input" 22653 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 22654$as_echo "$as_me: creating $ac_file" >&6;} 22655 fi 22656 # Neutralize special characters interpreted by sed in replacement strings. 22657 case $configure_input in #( 22658 *\&* | *\|* | *\\* ) 22659 ac_sed_conf_input=`$as_echo "$configure_input" | 22660 sed 's/[\\\\&|]/\\\\&/g'`;; #( 22661 *) ac_sed_conf_input=$configure_input;; 22662 esac 22663 22664 case $ac_tag in 22665 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 22666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 22667 esac 22668 ;; 22669 esac 22670 22671 ac_dir=`$as_dirname -- "$ac_file" || 22672$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22673 X"$ac_file" : 'X\(//\)[^/]' \| \ 22674 X"$ac_file" : 'X\(//\)$' \| \ 22675 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 22676$as_echo X"$ac_file" | 22677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22678 s//\1/ 22679 q 22680 } 22681 /^X\(\/\/\)[^/].*/{ 22682 s//\1/ 22683 q 22684 } 22685 /^X\(\/\/\)$/{ 22686 s//\1/ 22687 q 22688 } 22689 /^X\(\/\).*/{ 22690 s//\1/ 22691 q 22692 } 22693 s/.*/./; q'` 22694 as_dir="$ac_dir"; as_fn_mkdir_p 22695 ac_builddir=. 22696 22697case "$ac_dir" in 22698.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 22699*) 22700 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 22701 # A ".." for each directory in $ac_dir_suffix. 22702 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 22703 case $ac_top_builddir_sub in 22704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 22705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 22706 esac ;; 22707esac 22708ac_abs_top_builddir=$ac_pwd 22709ac_abs_builddir=$ac_pwd$ac_dir_suffix 22710# for backward compatibility: 22711ac_top_builddir=$ac_top_build_prefix 22712 22713case $srcdir in 22714 .) # We are building in place. 22715 ac_srcdir=. 22716 ac_top_srcdir=$ac_top_builddir_sub 22717 ac_abs_top_srcdir=$ac_pwd ;; 22718 [\\/]* | ?:[\\/]* ) # Absolute name. 22719 ac_srcdir=$srcdir$ac_dir_suffix; 22720 ac_top_srcdir=$srcdir 22721 ac_abs_top_srcdir=$srcdir ;; 22722 *) # Relative name. 22723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 22724 ac_top_srcdir=$ac_top_build_prefix$srcdir 22725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 22726esac 22727ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 22728 22729 22730 case $ac_mode in 22731 :F) 22732 # 22733 # CONFIG_FILE 22734 # 22735 22736 case $INSTALL in 22737 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 22738 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 22739 esac 22740 ac_MKDIR_P=$MKDIR_P 22741 case $MKDIR_P in 22742 [\\/$]* | ?:[\\/]* ) ;; 22743 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 22744 esac 22745_ACEOF 22746 22747cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22748# If the template does not know about datarootdir, expand it. 22749# FIXME: This hack should be removed a few years after 2.60. 22750ac_datarootdir_hack=; ac_datarootdir_seen= 22751ac_sed_dataroot=' 22752/datarootdir/ { 22753 p 22754 q 22755} 22756/@datadir@/p 22757/@docdir@/p 22758/@infodir@/p 22759/@localedir@/p 22760/@mandir@/p' 22761case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 22762*datarootdir*) ac_datarootdir_seen=yes;; 22763*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 22764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 22765$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 22766_ACEOF 22767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22768 ac_datarootdir_hack=' 22769 s&@datadir@&$datadir&g 22770 s&@docdir@&$docdir&g 22771 s&@infodir@&$infodir&g 22772 s&@localedir@&$localedir&g 22773 s&@mandir@&$mandir&g 22774 s&\\\${datarootdir}&$datarootdir&g' ;; 22775esac 22776_ACEOF 22777 22778# Neutralize VPATH when `$srcdir' = `.'. 22779# Shell code in configure.ac might set extrasub. 22780# FIXME: do we really want to maintain this feature? 22781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 22782ac_sed_extra="$ac_vpsub 22783$extrasub 22784_ACEOF 22785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 22786:t 22787/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 22788s|@configure_input@|$ac_sed_conf_input|;t t 22789s&@top_builddir@&$ac_top_builddir_sub&;t t 22790s&@top_build_prefix@&$ac_top_build_prefix&;t t 22791s&@srcdir@&$ac_srcdir&;t t 22792s&@abs_srcdir@&$ac_abs_srcdir&;t t 22793s&@top_srcdir@&$ac_top_srcdir&;t t 22794s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 22795s&@builddir@&$ac_builddir&;t t 22796s&@abs_builddir@&$ac_abs_builddir&;t t 22797s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 22798s&@INSTALL@&$ac_INSTALL&;t t 22799s&@MKDIR_P@&$ac_MKDIR_P&;t t 22800$ac_datarootdir_hack 22801" 22802eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 22803 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22804 22805test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 22806 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 22807 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 22808 "$ac_tmp/out"`; test -z "$ac_out"; } && 22809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22810which seems to be undefined. Please make sure it is defined" >&5 22811$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 22812which seems to be undefined. Please make sure it is defined" >&2;} 22813 22814 rm -f "$ac_tmp/stdin" 22815 case $ac_file in 22816 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 22817 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 22818 esac \ 22819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22820 ;; 22821 :H) 22822 # 22823 # CONFIG_HEADER 22824 # 22825 if test x"$ac_file" != x-; then 22826 { 22827 $as_echo "/* $configure_input */" \ 22828 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 22829 } >"$ac_tmp/config.h" \ 22830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22831 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 22833$as_echo "$as_me: $ac_file is unchanged" >&6;} 22834 else 22835 rm -f "$ac_file" 22836 mv "$ac_tmp/config.h" "$ac_file" \ 22837 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 22838 fi 22839 else 22840 $as_echo "/* $configure_input */" \ 22841 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 22842 || as_fn_error $? "could not create -" "$LINENO" 5 22843 fi 22844# Compute "$ac_file"'s index in $config_headers. 22845_am_arg="$ac_file" 22846_am_stamp_count=1 22847for _am_header in $config_headers :; do 22848 case $_am_header in 22849 $_am_arg | $_am_arg:* ) 22850 break ;; 22851 * ) 22852 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 22853 esac 22854done 22855echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 22856$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22857 X"$_am_arg" : 'X\(//\)[^/]' \| \ 22858 X"$_am_arg" : 'X\(//\)$' \| \ 22859 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 22860$as_echo X"$_am_arg" | 22861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22862 s//\1/ 22863 q 22864 } 22865 /^X\(\/\/\)[^/].*/{ 22866 s//\1/ 22867 q 22868 } 22869 /^X\(\/\/\)$/{ 22870 s//\1/ 22871 q 22872 } 22873 /^X\(\/\).*/{ 22874 s//\1/ 22875 q 22876 } 22877 s/.*/./; q'`/stamp-h$_am_stamp_count 22878 ;; 22879 22880 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 22881$as_echo "$as_me: executing $ac_file commands" >&6;} 22882 ;; 22883 esac 22884 22885 22886 case $ac_file$ac_mode in 22887 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22888 # Older Autoconf quotes --file arguments for eval, but not when files 22889 # are listed without --file. Let's play safe and only enable the eval 22890 # if we detect the quoting. 22891 # TODO: see whether this extra hack can be removed once we start 22892 # requiring Autoconf 2.70 or later. 22893 case $CONFIG_FILES in #( 22894 *\'*) : 22895 eval set x "$CONFIG_FILES" ;; #( 22896 *) : 22897 set x $CONFIG_FILES ;; #( 22898 *) : 22899 ;; 22900esac 22901 shift 22902 # Used to flag and report bootstrapping failures. 22903 am_rc=0 22904 for am_mf 22905 do 22906 # Strip MF so we end up with the name of the file. 22907 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 22908 # Check whether this is an Automake generated Makefile which includes 22909 # dependency-tracking related rules and includes. 22910 # Grep'ing the whole file directly is not great: AIX grep has a line 22911 # limit of 2048, but all sed's we know have understand at least 4000. 22912 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 22913 || continue 22914 am_dirpart=`$as_dirname -- "$am_mf" || 22915$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22916 X"$am_mf" : 'X\(//\)[^/]' \| \ 22917 X"$am_mf" : 'X\(//\)$' \| \ 22918 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22919$as_echo X"$am_mf" | 22920 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22921 s//\1/ 22922 q 22923 } 22924 /^X\(\/\/\)[^/].*/{ 22925 s//\1/ 22926 q 22927 } 22928 /^X\(\/\/\)$/{ 22929 s//\1/ 22930 q 22931 } 22932 /^X\(\/\).*/{ 22933 s//\1/ 22934 q 22935 } 22936 s/.*/./; q'` 22937 am_filepart=`$as_basename -- "$am_mf" || 22938$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 22939 X"$am_mf" : 'X\(//\)$' \| \ 22940 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 22941$as_echo X/"$am_mf" | 22942 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22943 s//\1/ 22944 q 22945 } 22946 /^X\/\(\/\/\)$/{ 22947 s//\1/ 22948 q 22949 } 22950 /^X\/\(\/\).*/{ 22951 s//\1/ 22952 q 22953 } 22954 s/.*/./; q'` 22955 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 22956 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22957 | $MAKE -f - am--depfiles" >&5 22958 (cd "$am_dirpart" \ 22959 && sed -e '/# am--include-marker/d' "$am_filepart" \ 22960 | $MAKE -f - am--depfiles) >&5 2>&5 22961 ac_status=$? 22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22963 (exit $ac_status); } || am_rc=$? 22964 done 22965 if test $am_rc -ne 0; then 22966 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22967$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22968as_fn_error $? "Something went wrong bootstrapping makefile fragments 22969 for automatic dependency tracking. Try re-running configure with the 22970 '--disable-dependency-tracking' option to at least be able to build 22971 the package (albeit without support for automatic dependency tracking). 22972See \`config.log' for more details" "$LINENO" 5; } 22973 fi 22974 { am_dirpart=; unset am_dirpart;} 22975 { am_filepart=; unset am_filepart;} 22976 { am_mf=; unset am_mf;} 22977 { am_rc=; unset am_rc;} 22978 rm -f conftest-deps.mk 22979} 22980 ;; 22981 "libtool":C) 22982 22983 # See if we are running on zsh, and set the options that allow our 22984 # commands through without removal of \ escapes. 22985 if test -n "${ZSH_VERSION+set}"; then 22986 setopt NO_GLOB_SUBST 22987 fi 22988 22989 cfgfile=${ofile}T 22990 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 22991 $RM "$cfgfile" 22992 22993 cat <<_LT_EOF >> "$cfgfile" 22994#! $SHELL 22995# Generated automatically by $as_me ($PACKAGE) $VERSION 22996# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 22997# NOTE: Changes made to this file will be lost: look at ltmain.sh. 22998 22999# Provide generalized library-building support services. 23000# Written by Gordon Matzigkeit, 1996 23001 23002# Copyright (C) 2014 Free Software Foundation, Inc. 23003# This is free software; see the source for copying conditions. There is NO 23004# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 23005 23006# GNU Libtool is free software; you can redistribute it and/or modify 23007# it under the terms of the GNU General Public License as published by 23008# the Free Software Foundation; either version 2 of of the License, or 23009# (at your option) any later version. 23010# 23011# As a special exception to the GNU General Public License, if you 23012# distribute this file as part of a program or library that is built 23013# using GNU Libtool, you may include this file under the same 23014# distribution terms that you use for the rest of that program. 23015# 23016# GNU Libtool is distributed in the hope that it will be useful, but 23017# WITHOUT ANY WARRANTY; without even the implied warranty of 23018# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23019# GNU General Public License for more details. 23020# 23021# You should have received a copy of the GNU General Public License 23022# along with this program. If not, see <http://www.gnu.org/licenses/>. 23023 23024 23025# The names of the tagged configurations supported by this script. 23026available_tags='' 23027 23028# Configured defaults for sys_lib_dlsearch_path munging. 23029: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 23030 23031# ### BEGIN LIBTOOL CONFIG 23032 23033# Which release of libtool.m4 was used? 23034macro_version=$macro_version 23035macro_revision=$macro_revision 23036 23037# Assembler program. 23038AS=$lt_AS 23039 23040# DLL creation program. 23041DLLTOOL=$lt_DLLTOOL 23042 23043# Object dumper program. 23044OBJDUMP=$lt_OBJDUMP 23045 23046# Whether or not to build shared libraries. 23047build_libtool_libs=$enable_shared 23048 23049# Whether or not to build static libraries. 23050build_old_libs=$enable_static 23051 23052# What type of objects to build. 23053pic_mode=$pic_mode 23054 23055# Whether or not to optimize for fast installation. 23056fast_install=$enable_fast_install 23057 23058# Shared archive member basename,for filename based shared library versioning on AIX. 23059shared_archive_member_spec=$shared_archive_member_spec 23060 23061# Shell to use when invoking shell scripts. 23062SHELL=$lt_SHELL 23063 23064# An echo program that protects backslashes. 23065ECHO=$lt_ECHO 23066 23067# The PATH separator for the build system. 23068PATH_SEPARATOR=$lt_PATH_SEPARATOR 23069 23070# The host system. 23071host_alias=$host_alias 23072host=$host 23073host_os=$host_os 23074 23075# The build system. 23076build_alias=$build_alias 23077build=$build 23078build_os=$build_os 23079 23080# A sed program that does not truncate output. 23081SED=$lt_SED 23082 23083# Sed that helps us avoid accidentally triggering echo(1) options like -n. 23084Xsed="\$SED -e 1s/^X//" 23085 23086# A grep program that handles long lines. 23087GREP=$lt_GREP 23088 23089# An ERE matcher. 23090EGREP=$lt_EGREP 23091 23092# A literal string matcher. 23093FGREP=$lt_FGREP 23094 23095# A BSD- or MS-compatible name lister. 23096NM=$lt_NM 23097 23098# Whether we need soft or hard links. 23099LN_S=$lt_LN_S 23100 23101# What is the maximum length of a command? 23102max_cmd_len=$max_cmd_len 23103 23104# Object file suffix (normally "o"). 23105objext=$ac_objext 23106 23107# Executable file suffix (normally ""). 23108exeext=$exeext 23109 23110# whether the shell understands "unset". 23111lt_unset=$lt_unset 23112 23113# turn spaces into newlines. 23114SP2NL=$lt_lt_SP2NL 23115 23116# turn newlines into spaces. 23117NL2SP=$lt_lt_NL2SP 23118 23119# convert \$build file names to \$host format. 23120to_host_file_cmd=$lt_cv_to_host_file_cmd 23121 23122# convert \$build files to toolchain format. 23123to_tool_file_cmd=$lt_cv_to_tool_file_cmd 23124 23125# Method to check whether dependent libraries are shared objects. 23126deplibs_check_method=$lt_deplibs_check_method 23127 23128# Command to use when deplibs_check_method = "file_magic". 23129file_magic_cmd=$lt_file_magic_cmd 23130 23131# How to find potential files when deplibs_check_method = "file_magic". 23132file_magic_glob=$lt_file_magic_glob 23133 23134# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 23135want_nocaseglob=$lt_want_nocaseglob 23136 23137# Command to associate shared and link libraries. 23138sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 23139 23140# The archiver. 23141AR=$lt_AR 23142 23143# Flags to create an archive. 23144AR_FLAGS=$lt_AR_FLAGS 23145 23146# How to feed a file listing to the archiver. 23147archiver_list_spec=$lt_archiver_list_spec 23148 23149# A symbol stripping program. 23150STRIP=$lt_STRIP 23151 23152# Commands used to install an old-style archive. 23153RANLIB=$lt_RANLIB 23154old_postinstall_cmds=$lt_old_postinstall_cmds 23155old_postuninstall_cmds=$lt_old_postuninstall_cmds 23156 23157# Whether to use a lock for old archive extraction. 23158lock_old_archive_extraction=$lock_old_archive_extraction 23159 23160# A C compiler. 23161LTCC=$lt_CC 23162 23163# LTCC compiler flags. 23164LTCFLAGS=$lt_CFLAGS 23165 23166# Take the output of nm and produce a listing of raw symbols and C names. 23167global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 23168 23169# Transform the output of nm in a proper C declaration. 23170global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 23171 23172# Transform the output of nm into a list of symbols to manually relocate. 23173global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 23174 23175# Transform the output of nm in a C name address pair. 23176global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 23177 23178# Transform the output of nm in a C name address pair when lib prefix is needed. 23179global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 23180 23181# The name lister interface. 23182nm_interface=$lt_lt_cv_nm_interface 23183 23184# Specify filename containing input files for \$NM. 23185nm_file_list_spec=$lt_nm_file_list_spec 23186 23187# The root where to search for dependent libraries,and where our libraries should be installed. 23188lt_sysroot=$lt_sysroot 23189 23190# Command to truncate a binary pipe. 23191lt_truncate_bin=$lt_lt_cv_truncate_bin 23192 23193# The name of the directory that contains temporary libtool files. 23194objdir=$objdir 23195 23196# Used to examine libraries when file_magic_cmd begins with "file". 23197MAGIC_CMD=$MAGIC_CMD 23198 23199# Must we lock files when doing compilation? 23200need_locks=$lt_need_locks 23201 23202# Manifest tool. 23203MANIFEST_TOOL=$lt_MANIFEST_TOOL 23204 23205# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 23206DSYMUTIL=$lt_DSYMUTIL 23207 23208# Tool to change global to local symbols on Mac OS X. 23209NMEDIT=$lt_NMEDIT 23210 23211# Tool to manipulate fat objects and archives on Mac OS X. 23212LIPO=$lt_LIPO 23213 23214# ldd/readelf like tool for Mach-O binaries on Mac OS X. 23215OTOOL=$lt_OTOOL 23216 23217# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 23218OTOOL64=$lt_OTOOL64 23219 23220# Old archive suffix (normally "a"). 23221libext=$libext 23222 23223# Shared library suffix (normally ".so"). 23224shrext_cmds=$lt_shrext_cmds 23225 23226# The commands to extract the exported symbol list from a shared archive. 23227extract_expsyms_cmds=$lt_extract_expsyms_cmds 23228 23229# Variables whose values should be saved in libtool wrapper scripts and 23230# restored at link time. 23231variables_saved_for_relink=$lt_variables_saved_for_relink 23232 23233# Do we need the "lib" prefix for modules? 23234need_lib_prefix=$need_lib_prefix 23235 23236# Do we need a version for libraries? 23237need_version=$need_version 23238 23239# Library versioning type. 23240version_type=$version_type 23241 23242# Shared library runtime path variable. 23243runpath_var=$runpath_var 23244 23245# Shared library path variable. 23246shlibpath_var=$shlibpath_var 23247 23248# Is shlibpath searched before the hard-coded library search path? 23249shlibpath_overrides_runpath=$shlibpath_overrides_runpath 23250 23251# Format of library name prefix. 23252libname_spec=$lt_libname_spec 23253 23254# List of archive names. First name is the real one, the rest are links. 23255# The last name is the one that the linker finds with -lNAME 23256library_names_spec=$lt_library_names_spec 23257 23258# The coded name of the library, if different from the real name. 23259soname_spec=$lt_soname_spec 23260 23261# Permission mode override for installation of shared libraries. 23262install_override_mode=$lt_install_override_mode 23263 23264# Command to use after installation of a shared archive. 23265postinstall_cmds=$lt_postinstall_cmds 23266 23267# Command to use after uninstallation of a shared archive. 23268postuninstall_cmds=$lt_postuninstall_cmds 23269 23270# Commands used to finish a libtool library installation in a directory. 23271finish_cmds=$lt_finish_cmds 23272 23273# As "finish_cmds", except a single script fragment to be evaled but 23274# not shown. 23275finish_eval=$lt_finish_eval 23276 23277# Whether we should hardcode library paths into libraries. 23278hardcode_into_libs=$hardcode_into_libs 23279 23280# Compile-time system search path for libraries. 23281sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 23282 23283# Detected run-time system search path for libraries. 23284sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 23285 23286# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 23287configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 23288 23289# Whether dlopen is supported. 23290dlopen_support=$enable_dlopen 23291 23292# Whether dlopen of programs is supported. 23293dlopen_self=$enable_dlopen_self 23294 23295# Whether dlopen of statically linked programs is supported. 23296dlopen_self_static=$enable_dlopen_self_static 23297 23298# Commands to strip libraries. 23299old_striplib=$lt_old_striplib 23300striplib=$lt_striplib 23301 23302 23303# The linker used to build libraries. 23304LD=$lt_LD 23305 23306# How to create reloadable object files. 23307reload_flag=$lt_reload_flag 23308reload_cmds=$lt_reload_cmds 23309 23310# Commands used to build an old-style archive. 23311old_archive_cmds=$lt_old_archive_cmds 23312 23313# A language specific compiler. 23314CC=$lt_compiler 23315 23316# Is the compiler the GNU compiler? 23317with_gcc=$GCC 23318 23319# Compiler flag to turn off builtin functions. 23320no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 23321 23322# Additional compiler flags for building library objects. 23323pic_flag=$lt_lt_prog_compiler_pic 23324 23325# How to pass a linker flag through the compiler. 23326wl=$lt_lt_prog_compiler_wl 23327 23328# Compiler flag to prevent dynamic linking. 23329link_static_flag=$lt_lt_prog_compiler_static 23330 23331# Does compiler simultaneously support -c and -o options? 23332compiler_c_o=$lt_lt_cv_prog_compiler_c_o 23333 23334# Whether or not to add -lc for building shared libraries. 23335build_libtool_need_lc=$archive_cmds_need_lc 23336 23337# Whether or not to disallow shared libs when runtime libs are static. 23338allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 23339 23340# Compiler flag to allow reflexive dlopens. 23341export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 23342 23343# Compiler flag to generate shared objects directly from archives. 23344whole_archive_flag_spec=$lt_whole_archive_flag_spec 23345 23346# Whether the compiler copes with passing no objects directly. 23347compiler_needs_object=$lt_compiler_needs_object 23348 23349# Create an old-style archive from a shared archive. 23350old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 23351 23352# Create a temporary old-style archive to link instead of a shared archive. 23353old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 23354 23355# Commands used to build a shared archive. 23356archive_cmds=$lt_archive_cmds 23357archive_expsym_cmds=$lt_archive_expsym_cmds 23358 23359# Commands used to build a loadable module if different from building 23360# a shared archive. 23361module_cmds=$lt_module_cmds 23362module_expsym_cmds=$lt_module_expsym_cmds 23363 23364# Whether we are building with GNU ld or not. 23365with_gnu_ld=$lt_with_gnu_ld 23366 23367# Flag that allows shared libraries with undefined symbols to be built. 23368allow_undefined_flag=$lt_allow_undefined_flag 23369 23370# Flag that enforces no undefined symbols. 23371no_undefined_flag=$lt_no_undefined_flag 23372 23373# Flag to hardcode \$libdir into a binary during linking. 23374# This must work even if \$libdir does not exist 23375hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 23376 23377# Whether we need a single "-rpath" flag with a separated argument. 23378hardcode_libdir_separator=$lt_hardcode_libdir_separator 23379 23380# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23381# DIR into the resulting binary. 23382hardcode_direct=$hardcode_direct 23383 23384# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 23385# DIR into the resulting binary and the resulting library dependency is 23386# "absolute",i.e impossible to change by setting \$shlibpath_var if the 23387# library is relocated. 23388hardcode_direct_absolute=$hardcode_direct_absolute 23389 23390# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 23391# into the resulting binary. 23392hardcode_minus_L=$hardcode_minus_L 23393 23394# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 23395# into the resulting binary. 23396hardcode_shlibpath_var=$hardcode_shlibpath_var 23397 23398# Set to "yes" if building a shared library automatically hardcodes DIR 23399# into the library and all subsequent libraries and executables linked 23400# against it. 23401hardcode_automatic=$hardcode_automatic 23402 23403# Set to yes if linker adds runtime paths of dependent libraries 23404# to runtime path list. 23405inherit_rpath=$inherit_rpath 23406 23407# Whether libtool must link a program against all its dependency libraries. 23408link_all_deplibs=$link_all_deplibs 23409 23410# Set to "yes" if exported symbols are required. 23411always_export_symbols=$always_export_symbols 23412 23413# The commands to list exported symbols. 23414export_symbols_cmds=$lt_export_symbols_cmds 23415 23416# Symbols that should not be listed in the preloaded symbols. 23417exclude_expsyms=$lt_exclude_expsyms 23418 23419# Symbols that must always be exported. 23420include_expsyms=$lt_include_expsyms 23421 23422# Commands necessary for linking programs (against libraries) with templates. 23423prelink_cmds=$lt_prelink_cmds 23424 23425# Commands necessary for finishing linking programs. 23426postlink_cmds=$lt_postlink_cmds 23427 23428# Specify filename containing input files. 23429file_list_spec=$lt_file_list_spec 23430 23431# How to hardcode a shared library path into an executable. 23432hardcode_action=$hardcode_action 23433 23434# ### END LIBTOOL CONFIG 23435 23436_LT_EOF 23437 23438 cat <<'_LT_EOF' >> "$cfgfile" 23439 23440# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 23441 23442# func_munge_path_list VARIABLE PATH 23443# ----------------------------------- 23444# VARIABLE is name of variable containing _space_ separated list of 23445# directories to be munged by the contents of PATH, which is string 23446# having a format: 23447# "DIR[:DIR]:" 23448# string "DIR[ DIR]" will be prepended to VARIABLE 23449# ":DIR[:DIR]" 23450# string "DIR[ DIR]" will be appended to VARIABLE 23451# "DIRP[:DIRP]::[DIRA:]DIRA" 23452# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 23453# "DIRA[ DIRA]" will be appended to VARIABLE 23454# "DIR[:DIR]" 23455# VARIABLE will be replaced by "DIR[ DIR]" 23456func_munge_path_list () 23457{ 23458 case x$2 in 23459 x) 23460 ;; 23461 *:) 23462 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 23463 ;; 23464 x:*) 23465 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 23466 ;; 23467 *::*) 23468 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 23469 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 23470 ;; 23471 *) 23472 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 23473 ;; 23474 esac 23475} 23476 23477 23478# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 23479func_cc_basename () 23480{ 23481 for cc_temp in $*""; do 23482 case $cc_temp in 23483 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 23484 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 23485 \-*) ;; 23486 *) break;; 23487 esac 23488 done 23489 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 23490} 23491 23492 23493# ### END FUNCTIONS SHARED WITH CONFIGURE 23494 23495_LT_EOF 23496 23497 case $host_os in 23498 aix3*) 23499 cat <<\_LT_EOF >> "$cfgfile" 23500# AIX sometimes has problems with the GCC collect2 program. For some 23501# reason, if we set the COLLECT_NAMES environment variable, the problems 23502# vanish in a puff of smoke. 23503if test set != "${COLLECT_NAMES+set}"; then 23504 COLLECT_NAMES= 23505 export COLLECT_NAMES 23506fi 23507_LT_EOF 23508 ;; 23509 esac 23510 23511 23512ltmain=$ac_aux_dir/ltmain.sh 23513 23514 23515 # We use sed instead of cat because bash on DJGPP gets confused if 23516 # if finds mixed CR/LF and LF-only lines. Since sed operates in 23517 # text mode, it properly converts lines to CR/LF. This bash problem 23518 # is reportedly fixed, but why not run on old versions too? 23519 sed '$q' "$ltmain" >> "$cfgfile" \ 23520 || (rm -f "$cfgfile"; exit 1) 23521 23522 mv -f "$cfgfile" "$ofile" || 23523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 23524 chmod +x "$ofile" 23525 23526 ;; 23527 23528 esac 23529done # for ac_tag 23530 23531 23532as_fn_exit 0 23533_ACEOF 23534ac_clean_files=$ac_clean_files_save 23535 23536test $ac_write_fail = 0 || 23537 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 23538 23539 23540# configure is writing to config.log, and then calls config.status. 23541# config.status does its own redirection, appending to config.log. 23542# Unfortunately, on DOS this fails, as config.log is still kept open 23543# by configure, so config.status won't be able to write to it; its 23544# output is simply discarded. So we exec the FD to /dev/null, 23545# effectively closing config.log, so it can be properly (re)opened and 23546# appended to by config.status. When coming back to configure, we 23547# need to make the FD available again. 23548if test "$no_create" != yes; then 23549 ac_cs_success=: 23550 ac_config_status_args= 23551 test "$silent" = yes && 23552 ac_config_status_args="$ac_config_status_args --quiet" 23553 exec 5>/dev/null 23554 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 23555 exec 5>>config.log 23556 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 23557 # would make configure fail if this is the last instruction. 23558 $ac_cs_success || as_fn_exit 1 23559fi 23560if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 23561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 23562$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 23563fi 23564 23565 23566 23567echo "" 23568echo " Package: ${PACKAGE_NAME} ${PACKAGE_VERSION}" 23569echo "" 23570echo " Configuration" 23571echo " XDM support.........: ${have_xdmcp}" 23572echo " sendmsg fd passing..: ${have_sendmsg}" 23573echo " Build unit tests....: ${HAVE_CHECK}" 23574echo " with html results.: ${HTML_CHECK_RESULT}" 23575echo " XCB buffer size.....: ${xcb_queue_buffer_size}" 23576echo "" 23577echo " X11 extensions" 23578echo " Composite...........: ${BUILD_COMPOSITE}" 23579echo " Damage..............: ${BUILD_DAMAGE}" 23580echo " Dpms................: ${BUILD_DPMS}" 23581echo " Dri2................: ${BUILD_DRI2}" 23582echo " Dri3................: ${BUILD_DRI3}" 23583echo " GenericEvent........: ${BUILD_GE}" 23584echo " Glx.................: ${BUILD_GLX}" 23585echo " Randr...............: ${BUILD_RANDR}" 23586echo " Record..............: ${BUILD_RECORD}" 23587echo " Render..............: ${BUILD_RENDER}" 23588echo " Resource............: ${BUILD_RESOURCE}" 23589echo " Screensaver.........: ${BUILD_SCREENSAVER}" 23590echo " selinux.............: ${BUILD_SELINUX}" 23591echo " Shape...............: ${BUILD_SHAPE}" 23592echo " Shm.................: ${BUILD_SHM}" 23593echo " Sync................: ${BUILD_SYNC}" 23594echo " Xevie...............: ${BUILD_XEVIE}" 23595echo " Xfixes..............: ${BUILD_XFIXES}" 23596echo " Xfree86-dri.........: ${BUILD_XFREE86_DRI}" 23597echo " xinerama............: ${BUILD_XINERAMA}" 23598echo " xinput..............: ${BUILD_XINPUT}" 23599echo " xkb.................: ${BUILD_XKB}" 23600echo " xprint..............: ${BUILD_XPRINT}" 23601echo " xtest...............: ${BUILD_XTEST}" 23602echo " xv..................: ${BUILD_XV}" 23603echo " xvmc................: ${BUILD_XVMC}" 23604echo "" 23605echo " Used CFLAGS:" 23606echo " CPPFLAGS............: ${CPPFLAGS}" 23607echo " CFLAGS..............: ${CFLAGS}" 23608echo "" 23609echo " Installation:" 23610echo " Prefix..............: ${prefix}" 23611echo "" 23612