configure revision fbc03982
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for libxshmfence 1.3. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1 202 203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 207 PATH=/empty FPATH=/empty; export PATH FPATH 208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='libxshmfence' 593PACKAGE_TARNAME='libxshmfence' 594PACKAGE_VERSION='1.3' 595PACKAGE_STRING='libxshmfence 1.3' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640XPROTO_LIBS 641XPROTO_CFLAGS 642PTHREAD_FALSE 643PTHREAD_TRUE 644FUTEX_FALSE 645FUTEX_TRUE 646PTHREAD_LIBS 647LINT_FALSE 648LINT_TRUE 649LINT_FLAGS 650LINT 651MAN_SUBSTS 652XORG_MAN_PAGE 653ADMIN_MAN_DIR 654DRIVER_MAN_DIR 655MISC_MAN_DIR 656FILE_MAN_DIR 657LIB_MAN_DIR 658APP_MAN_DIR 659ADMIN_MAN_SUFFIX 660DRIVER_MAN_SUFFIX 661MISC_MAN_SUFFIX 662FILE_MAN_SUFFIX 663LIB_MAN_SUFFIX 664APP_MAN_SUFFIX 665INSTALL_CMD 666PKG_CONFIG_LIBDIR 667PKG_CONFIG_PATH 668PKG_CONFIG 669CHANGELOG_CMD 670STRICT_CFLAGS 671CWARNFLAGS 672BASE_CFLAGS 673LT_SYS_LIBRARY_PATH 674OTOOL64 675OTOOL 676LIPO 677NMEDIT 678DSYMUTIL 679MANIFEST_TOOL 680RANLIB 681ac_ct_AR 682AR 683DLLTOOL 684OBJDUMP 685LN_S 686NM 687ac_ct_DUMPBIN 688DUMPBIN 689LD 690FGREP 691SED 692host_os 693host_vendor 694host_cpu 695host 696build_os 697build_vendor 698build_cpu 699build 700LIBTOOL 701AM_BACKSLASH 702AM_DEFAULT_VERBOSITY 703AM_DEFAULT_V 704AM_V 705am__fastdepCC_FALSE 706am__fastdepCC_TRUE 707CCDEPMODE 708am__nodep 709AMDEPBACKSLASH 710AMDEP_FALSE 711AMDEP_TRUE 712am__quote 713am__include 714DEPDIR 715am__untar 716am__tar 717AMTAR 718am__leading_dot 719SET_MAKE 720AWK 721mkdir_p 722MKDIR_P 723INSTALL_STRIP_PROGRAM 724STRIP 725install_sh 726MAKEINFO 727AUTOHEADER 728AUTOMAKE 729AUTOCONF 730ACLOCAL 731VERSION 732PACKAGE 733CYGPATH_W 734am__isrc 735INSTALL_DATA 736INSTALL_SCRIPT 737INSTALL_PROGRAM 738EGREP 739GREP 740CPP 741OBJEXT 742EXEEXT 743ac_ct_CC 744CPPFLAGS 745LDFLAGS 746CFLAGS 747CC 748target_alias 749host_alias 750build_alias 751LIBS 752ECHO_T 753ECHO_N 754ECHO_C 755DEFS 756mandir 757localedir 758libdir 759psdir 760pdfdir 761dvidir 762htmldir 763infodir 764docdir 765oldincludedir 766includedir 767localstatedir 768sharedstatedir 769sysconfdir 770datadir 771datarootdir 772libexecdir 773sbindir 774bindir 775program_transform_name 776prefix 777exec_prefix 778PACKAGE_URL 779PACKAGE_BUGREPORT 780PACKAGE_STRING 781PACKAGE_VERSION 782PACKAGE_TARNAME 783PACKAGE_NAME 784PATH_SEPARATOR 785SHELL' 786ac_subst_files='' 787ac_user_opts=' 788enable_option_checking 789enable_dependency_tracking 790enable_silent_rules 791enable_shared 792enable_static 793with_pic 794enable_fast_install 795with_aix_soname 796with_gnu_ld 797with_sysroot 798enable_libtool_lock 799enable_selective_werror 800enable_strict_compilation 801with_lint 802enable_futex 803enable_visibility 804with_shared_memory_dir 805' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812LIBS 813CPPFLAGS 814CPP 815LT_SYS_LIBRARY_PATH 816PKG_CONFIG 817PKG_CONFIG_PATH 818PKG_CONFIG_LIBDIR 819LINT 820LINT_FLAGS 821XPROTO_CFLAGS 822XPROTO_LIBS' 823 824 825# Initialize some variables set by options. 826ac_init_help= 827ac_init_version=false 828ac_unrecognized_opts= 829ac_unrecognized_sep= 830# The variables have the same names as the options, with 831# dashes changed to underlines. 832cache_file=/dev/null 833exec_prefix=NONE 834no_create= 835no_recursion= 836prefix=NONE 837program_prefix=NONE 838program_suffix=NONE 839program_transform_name=s,x,x, 840silent= 841site= 842srcdir= 843verbose= 844x_includes=NONE 845x_libraries=NONE 846 847# Installation directory options. 848# These are left unexpanded so users can "make install exec_prefix=/foo" 849# and all the variables that are supposed to be based on exec_prefix 850# by default will actually change. 851# Use braces instead of parens because sh, perl, etc. also accept them. 852# (The list follows the same order as the GNU Coding Standards.) 853bindir='${exec_prefix}/bin' 854sbindir='${exec_prefix}/sbin' 855libexecdir='${exec_prefix}/libexec' 856datarootdir='${prefix}/share' 857datadir='${datarootdir}' 858sysconfdir='${prefix}/etc' 859sharedstatedir='${prefix}/com' 860localstatedir='${prefix}/var' 861includedir='${prefix}/include' 862oldincludedir='/usr/include' 863docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 864infodir='${datarootdir}/info' 865htmldir='${docdir}' 866dvidir='${docdir}' 867pdfdir='${docdir}' 868psdir='${docdir}' 869libdir='${exec_prefix}/lib' 870localedir='${datarootdir}/locale' 871mandir='${datarootdir}/man' 872 873ac_prev= 874ac_dashdash= 875for ac_option 876do 877 # If the previous option needs an argument, assign it. 878 if test -n "$ac_prev"; then 879 eval $ac_prev=\$ac_option 880 ac_prev= 881 continue 882 fi 883 884 case $ac_option in 885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 886 *=) ac_optarg= ;; 887 *) ac_optarg=yes ;; 888 esac 889 890 # Accept the important Cygnus configure options, so we can diagnose typos. 891 892 case $ac_dashdash$ac_option in 893 --) 894 ac_dashdash=yes ;; 895 896 -bindir | --bindir | --bindi | --bind | --bin | --bi) 897 ac_prev=bindir ;; 898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 899 bindir=$ac_optarg ;; 900 901 -build | --build | --buil | --bui | --bu) 902 ac_prev=build_alias ;; 903 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 904 build_alias=$ac_optarg ;; 905 906 -cache-file | --cache-file | --cache-fil | --cache-fi \ 907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 908 ac_prev=cache_file ;; 909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 911 cache_file=$ac_optarg ;; 912 913 --config-cache | -C) 914 cache_file=config.cache ;; 915 916 -datadir | --datadir | --datadi | --datad) 917 ac_prev=datadir ;; 918 -datadir=* | --datadir=* | --datadi=* | --datad=*) 919 datadir=$ac_optarg ;; 920 921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 922 | --dataroo | --dataro | --datar) 923 ac_prev=datarootdir ;; 924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 926 datarootdir=$ac_optarg ;; 927 928 -disable-* | --disable-*) 929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 930 # Reject names that are not valid shell variable names. 931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 932 as_fn_error $? "invalid feature name: $ac_useropt" 933 ac_useropt_orig=$ac_useropt 934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 935 case $ac_user_opts in 936 *" 937"enable_$ac_useropt" 938"*) ;; 939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 940 ac_unrecognized_sep=', ';; 941 esac 942 eval enable_$ac_useropt=no ;; 943 944 -docdir | --docdir | --docdi | --doc | --do) 945 ac_prev=docdir ;; 946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 947 docdir=$ac_optarg ;; 948 949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 950 ac_prev=dvidir ;; 951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 952 dvidir=$ac_optarg ;; 953 954 -enable-* | --enable-*) 955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 956 # Reject names that are not valid shell variable names. 957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 958 as_fn_error $? "invalid feature name: $ac_useropt" 959 ac_useropt_orig=$ac_useropt 960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 961 case $ac_user_opts in 962 *" 963"enable_$ac_useropt" 964"*) ;; 965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 966 ac_unrecognized_sep=', ';; 967 esac 968 eval enable_$ac_useropt=\$ac_optarg ;; 969 970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 972 | --exec | --exe | --ex) 973 ac_prev=exec_prefix ;; 974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 976 | --exec=* | --exe=* | --ex=*) 977 exec_prefix=$ac_optarg ;; 978 979 -gas | --gas | --ga | --g) 980 # Obsolete; use --with-gas. 981 with_gas=yes ;; 982 983 -help | --help | --hel | --he | -h) 984 ac_init_help=long ;; 985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 986 ac_init_help=recursive ;; 987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 988 ac_init_help=short ;; 989 990 -host | --host | --hos | --ho) 991 ac_prev=host_alias ;; 992 -host=* | --host=* | --hos=* | --ho=*) 993 host_alias=$ac_optarg ;; 994 995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 996 ac_prev=htmldir ;; 997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 998 | --ht=*) 999 htmldir=$ac_optarg ;; 1000 1001 -includedir | --includedir | --includedi | --included | --include \ 1002 | --includ | --inclu | --incl | --inc) 1003 ac_prev=includedir ;; 1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1005 | --includ=* | --inclu=* | --incl=* | --inc=*) 1006 includedir=$ac_optarg ;; 1007 1008 -infodir | --infodir | --infodi | --infod | --info | --inf) 1009 ac_prev=infodir ;; 1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1011 infodir=$ac_optarg ;; 1012 1013 -libdir | --libdir | --libdi | --libd) 1014 ac_prev=libdir ;; 1015 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1016 libdir=$ac_optarg ;; 1017 1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1019 | --libexe | --libex | --libe) 1020 ac_prev=libexecdir ;; 1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1022 | --libexe=* | --libex=* | --libe=*) 1023 libexecdir=$ac_optarg ;; 1024 1025 -localedir | --localedir | --localedi | --localed | --locale) 1026 ac_prev=localedir ;; 1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1028 localedir=$ac_optarg ;; 1029 1030 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1031 | --localstate | --localstat | --localsta | --localst | --locals) 1032 ac_prev=localstatedir ;; 1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1035 localstatedir=$ac_optarg ;; 1036 1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1038 ac_prev=mandir ;; 1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1040 mandir=$ac_optarg ;; 1041 1042 -nfp | --nfp | --nf) 1043 # Obsolete; use --without-fp. 1044 with_fp=no ;; 1045 1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1047 | --no-cr | --no-c | -n) 1048 no_create=yes ;; 1049 1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1052 no_recursion=yes ;; 1053 1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1056 | --oldin | --oldi | --old | --ol | --o) 1057 ac_prev=oldincludedir ;; 1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1061 oldincludedir=$ac_optarg ;; 1062 1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1064 ac_prev=prefix ;; 1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1066 prefix=$ac_optarg ;; 1067 1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1069 | --program-pre | --program-pr | --program-p) 1070 ac_prev=program_prefix ;; 1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1073 program_prefix=$ac_optarg ;; 1074 1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1076 | --program-suf | --program-su | --program-s) 1077 ac_prev=program_suffix ;; 1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1080 program_suffix=$ac_optarg ;; 1081 1082 -program-transform-name | --program-transform-name \ 1083 | --program-transform-nam | --program-transform-na \ 1084 | --program-transform-n | --program-transform- \ 1085 | --program-transform | --program-transfor \ 1086 | --program-transfo | --program-transf \ 1087 | --program-trans | --program-tran \ 1088 | --progr-tra | --program-tr | --program-t) 1089 ac_prev=program_transform_name ;; 1090 -program-transform-name=* | --program-transform-name=* \ 1091 | --program-transform-nam=* | --program-transform-na=* \ 1092 | --program-transform-n=* | --program-transform-=* \ 1093 | --program-transform=* | --program-transfor=* \ 1094 | --program-transfo=* | --program-transf=* \ 1095 | --program-trans=* | --program-tran=* \ 1096 | --progr-tra=* | --program-tr=* | --program-t=*) 1097 program_transform_name=$ac_optarg ;; 1098 1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1100 ac_prev=pdfdir ;; 1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1102 pdfdir=$ac_optarg ;; 1103 1104 -psdir | --psdir | --psdi | --psd | --ps) 1105 ac_prev=psdir ;; 1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1107 psdir=$ac_optarg ;; 1108 1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1110 | -silent | --silent | --silen | --sile | --sil) 1111 silent=yes ;; 1112 1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1114 ac_prev=sbindir ;; 1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1116 | --sbi=* | --sb=*) 1117 sbindir=$ac_optarg ;; 1118 1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1121 | --sharedst | --shareds | --shared | --share | --shar \ 1122 | --sha | --sh) 1123 ac_prev=sharedstatedir ;; 1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1127 | --sha=* | --sh=*) 1128 sharedstatedir=$ac_optarg ;; 1129 1130 -site | --site | --sit) 1131 ac_prev=site ;; 1132 -site=* | --site=* | --sit=*) 1133 site=$ac_optarg ;; 1134 1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1136 ac_prev=srcdir ;; 1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1138 srcdir=$ac_optarg ;; 1139 1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1141 | --syscon | --sysco | --sysc | --sys | --sy) 1142 ac_prev=sysconfdir ;; 1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1145 sysconfdir=$ac_optarg ;; 1146 1147 -target | --target | --targe | --targ | --tar | --ta | --t) 1148 ac_prev=target_alias ;; 1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1150 target_alias=$ac_optarg ;; 1151 1152 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1153 verbose=yes ;; 1154 1155 -version | --version | --versio | --versi | --vers | -V) 1156 ac_init_version=: ;; 1157 1158 -with-* | --with-*) 1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1160 # Reject names that are not valid shell variable names. 1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1162 as_fn_error $? "invalid package name: $ac_useropt" 1163 ac_useropt_orig=$ac_useropt 1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1165 case $ac_user_opts in 1166 *" 1167"with_$ac_useropt" 1168"*) ;; 1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1170 ac_unrecognized_sep=', ';; 1171 esac 1172 eval with_$ac_useropt=\$ac_optarg ;; 1173 1174 -without-* | --without-*) 1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 as_fn_error $? "invalid package name: $ac_useropt" 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183"with_$ac_useropt" 1184"*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=no ;; 1189 1190 --x) 1191 # Obsolete; use --with-x. 1192 with_x=yes ;; 1193 1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1195 | --x-incl | --x-inc | --x-in | --x-i) 1196 ac_prev=x_includes ;; 1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1199 x_includes=$ac_optarg ;; 1200 1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1203 ac_prev=x_libraries ;; 1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1206 x_libraries=$ac_optarg ;; 1207 1208 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1209Try \`$0 --help' for more information" 1210 ;; 1211 1212 *=*) 1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1214 # Reject names that are not valid shell variable names. 1215 case $ac_envvar in #( 1216 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1218 esac 1219 eval $ac_envvar=\$ac_optarg 1220 export $ac_envvar ;; 1221 1222 *) 1223 # FIXME: should be removed in autoconf 3.0. 1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1228 ;; 1229 1230 esac 1231done 1232 1233if test -n "$ac_prev"; then 1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1235 as_fn_error $? "missing argument to $ac_option" 1236fi 1237 1238if test -n "$ac_unrecognized_opts"; then 1239 case $enable_option_checking in 1240 no) ;; 1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1243 esac 1244fi 1245 1246# Check all directory arguments for consistency. 1247for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1248 datadir sysconfdir sharedstatedir localstatedir includedir \ 1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1250 libdir localedir mandir 1251do 1252 eval ac_val=\$$ac_var 1253 # Remove trailing slashes. 1254 case $ac_val in 1255 */ ) 1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1257 eval $ac_var=\$ac_val;; 1258 esac 1259 # Be sure to have absolute directory names. 1260 case $ac_val in 1261 [\\/$]* | ?:[\\/]* ) continue;; 1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1263 esac 1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1265done 1266 1267# There might be people who depend on the old broken behavior: `$host' 1268# used to hold the argument of --host etc. 1269# FIXME: To remove some day. 1270build=$build_alias 1271host=$host_alias 1272target=$target_alias 1273 1274# FIXME: To remove some day. 1275if test "x$host_alias" != x; then 1276 if test "x$build_alias" = x; then 1277 cross_compiling=maybe 1278 elif test "x$build_alias" != "x$host_alias"; then 1279 cross_compiling=yes 1280 fi 1281fi 1282 1283ac_tool_prefix= 1284test -n "$host_alias" && ac_tool_prefix=$host_alias- 1285 1286test "$silent" = yes && exec 6>/dev/null 1287 1288 1289ac_pwd=`pwd` && test -n "$ac_pwd" && 1290ac_ls_di=`ls -di .` && 1291ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1292 as_fn_error $? "working directory cannot be determined" 1293test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1294 as_fn_error $? "pwd does not report name of working directory" 1295 1296 1297# Find the source files, if location was not specified. 1298if test -z "$srcdir"; then 1299 ac_srcdir_defaulted=yes 1300 # Try the directory containing this script, then the parent directory. 1301 ac_confdir=`$as_dirname -- "$as_myself" || 1302$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1303 X"$as_myself" : 'X\(//\)[^/]' \| \ 1304 X"$as_myself" : 'X\(//\)$' \| \ 1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1306$as_echo X"$as_myself" | 1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1308 s//\1/ 1309 q 1310 } 1311 /^X\(\/\/\)[^/].*/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\/\)$/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\).*/{ 1320 s//\1/ 1321 q 1322 } 1323 s/.*/./; q'` 1324 srcdir=$ac_confdir 1325 if test ! -r "$srcdir/$ac_unique_file"; then 1326 srcdir=.. 1327 fi 1328else 1329 ac_srcdir_defaulted=no 1330fi 1331if test ! -r "$srcdir/$ac_unique_file"; then 1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1334fi 1335ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1336ac_abs_confdir=`( 1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1338 pwd)` 1339# When building in place, set srcdir=. 1340if test "$ac_abs_confdir" = "$ac_pwd"; then 1341 srcdir=. 1342fi 1343# Remove unnecessary trailing slashes from srcdir. 1344# Double slashes in file names in object file debugging info 1345# mess up M-x gdb in Emacs. 1346case $srcdir in 1347*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1348esac 1349for ac_var in $ac_precious_vars; do 1350 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1351 eval ac_env_${ac_var}_value=\$${ac_var} 1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1354done 1355 1356# 1357# Report the --help message. 1358# 1359if test "$ac_init_help" = "long"; then 1360 # Omit some internal or obsolete options to make the list less imposing. 1361 # This message is too long to be a string in the A/UX 3.1 sh. 1362 cat <<_ACEOF 1363\`configure' configures libxshmfence 1.3 to adapt to many kinds of systems. 1364 1365Usage: $0 [OPTION]... [VAR=VALUE]... 1366 1367To assign environment variables (e.g., CC, CFLAGS...), specify them as 1368VAR=VALUE. See below for descriptions of some of the useful variables. 1369 1370Defaults for the options are specified in brackets. 1371 1372Configuration: 1373 -h, --help display this help and exit 1374 --help=short display options specific to this package 1375 --help=recursive display the short help of all the included packages 1376 -V, --version display version information and exit 1377 -q, --quiet, --silent do not print \`checking ...' messages 1378 --cache-file=FILE cache test results in FILE [disabled] 1379 -C, --config-cache alias for \`--cache-file=config.cache' 1380 -n, --no-create do not create output files 1381 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1382 1383Installation directories: 1384 --prefix=PREFIX install architecture-independent files in PREFIX 1385 [$ac_default_prefix] 1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1387 [PREFIX] 1388 1389By default, \`make install' will install all the files in 1390\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1391an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1392for instance \`--prefix=\$HOME'. 1393 1394For better control, use the options below. 1395 1396Fine tuning of the installation directories: 1397 --bindir=DIR user executables [EPREFIX/bin] 1398 --sbindir=DIR system admin executables [EPREFIX/sbin] 1399 --libexecdir=DIR program executables [EPREFIX/libexec] 1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1403 --libdir=DIR object code libraries [EPREFIX/lib] 1404 --includedir=DIR C header files [PREFIX/include] 1405 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1408 --infodir=DIR info documentation [DATAROOTDIR/info] 1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1410 --mandir=DIR man documentation [DATAROOTDIR/man] 1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libxshmfence] 1412 --htmldir=DIR html documentation [DOCDIR] 1413 --dvidir=DIR dvi documentation [DOCDIR] 1414 --pdfdir=DIR pdf documentation [DOCDIR] 1415 --psdir=DIR ps documentation [DOCDIR] 1416_ACEOF 1417 1418 cat <<\_ACEOF 1419 1420Program names: 1421 --program-prefix=PREFIX prepend PREFIX to installed program names 1422 --program-suffix=SUFFIX append SUFFIX to installed program names 1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1424 1425System types: 1426 --build=BUILD configure for building on BUILD [guessed] 1427 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1428_ACEOF 1429fi 1430 1431if test -n "$ac_init_help"; then 1432 case $ac_init_help in 1433 short | recursive ) echo "Configuration of libxshmfence 1.3:";; 1434 esac 1435 cat <<\_ACEOF 1436 1437Optional Features: 1438 --disable-option-checking ignore unrecognized --enable/--with options 1439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1441 --enable-dependency-tracking 1442 do not reject slow dependency extractors 1443 --disable-dependency-tracking 1444 speeds up one-time build 1445 --enable-silent-rules less verbose build output (undo: "make V=1") 1446 --disable-silent-rules verbose build output (undo: "make V=0") 1447 --enable-shared[=PKGS] build shared libraries [default=yes] 1448 --enable-static[=PKGS] build static libraries [default=yes] 1449 --enable-fast-install[=PKGS] 1450 optimize for fast installation [default=yes] 1451 --disable-libtool-lock avoid locking (might break parallel builds) 1452 --disable-selective-werror 1453 Turn off selective compiler errors. (default: 1454 enabled) 1455 --enable-strict-compilation 1456 Enable all warnings from compiler and make them 1457 errors (default: disabled) 1458 --enable-futex Enable futexes (default: auto) 1459 --enable-visibility Enable symbol visibility (default: auto) 1460 1461Optional Packages: 1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1464 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1465 both] 1466 --with-aix-soname=aix|svr4|both 1467 shared library versioning (aka "SONAME") variant to 1468 provide on AIX, [default=aix]. 1469 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1470 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1471 compiler's sysroot if not specified). 1472 --with-lint Use a lint-style source code checker (default: 1473 disabled) 1474 --with-shared-memory-dir=PATH 1475 Path to directory in a world-writable temporary 1476 directory for anonymous shared memory (default: 1477 auto) 1478 1479Some influential environment variables: 1480 CC C compiler command 1481 CFLAGS C compiler flags 1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1483 nonstandard directory <lib dir> 1484 LIBS libraries to pass to the linker, e.g. -l<library> 1485 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1486 you have headers in a nonstandard directory <include dir> 1487 CPP C preprocessor 1488 LT_SYS_LIBRARY_PATH 1489 User-defined run-time library search path. 1490 PKG_CONFIG path to pkg-config utility 1491 PKG_CONFIG_PATH 1492 directories to add to pkg-config's search path 1493 PKG_CONFIG_LIBDIR 1494 path overriding pkg-config's built-in search path 1495 LINT Path to a lint-style command 1496 LINT_FLAGS Flags for the lint-style command 1497 XPROTO_CFLAGS 1498 C compiler flags for XPROTO, overriding pkg-config 1499 XPROTO_LIBS linker flags for XPROTO, overriding pkg-config 1500 1501Use these variables to override the choices made by `configure' or to help 1502it to find libraries and programs with nonstandard names/locations. 1503 1504Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1505_ACEOF 1506ac_status=$? 1507fi 1508 1509if test "$ac_init_help" = "recursive"; then 1510 # If there are subdirs, report their specific --help. 1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1512 test -d "$ac_dir" || 1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1514 continue 1515 ac_builddir=. 1516 1517case "$ac_dir" in 1518.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519*) 1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1521 # A ".." for each directory in $ac_dir_suffix. 1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1523 case $ac_top_builddir_sub in 1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1526 esac ;; 1527esac 1528ac_abs_top_builddir=$ac_pwd 1529ac_abs_builddir=$ac_pwd$ac_dir_suffix 1530# for backward compatibility: 1531ac_top_builddir=$ac_top_build_prefix 1532 1533case $srcdir in 1534 .) # We are building in place. 1535 ac_srcdir=. 1536 ac_top_srcdir=$ac_top_builddir_sub 1537 ac_abs_top_srcdir=$ac_pwd ;; 1538 [\\/]* | ?:[\\/]* ) # Absolute name. 1539 ac_srcdir=$srcdir$ac_dir_suffix; 1540 ac_top_srcdir=$srcdir 1541 ac_abs_top_srcdir=$srcdir ;; 1542 *) # Relative name. 1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1544 ac_top_srcdir=$ac_top_build_prefix$srcdir 1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1546esac 1547ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1548 1549 cd "$ac_dir" || { ac_status=$?; continue; } 1550 # Check for guested configure. 1551 if test -f "$ac_srcdir/configure.gnu"; then 1552 echo && 1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1554 elif test -f "$ac_srcdir/configure"; then 1555 echo && 1556 $SHELL "$ac_srcdir/configure" --help=recursive 1557 else 1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1559 fi || ac_status=$? 1560 cd "$ac_pwd" || { ac_status=$?; break; } 1561 done 1562fi 1563 1564test -n "$ac_init_help" && exit $ac_status 1565if $ac_init_version; then 1566 cat <<\_ACEOF 1567libxshmfence configure 1.3 1568generated by GNU Autoconf 2.69 1569 1570Copyright (C) 2012 Free Software Foundation, Inc. 1571This configure script is free software; the Free Software Foundation 1572gives unlimited permission to copy, distribute and modify it. 1573_ACEOF 1574 exit 1575fi 1576 1577## ------------------------ ## 1578## Autoconf initialization. ## 1579## ------------------------ ## 1580 1581# ac_fn_c_try_compile LINENO 1582# -------------------------- 1583# Try to compile conftest.$ac_ext, and return whether this succeeded. 1584ac_fn_c_try_compile () 1585{ 1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1587 rm -f conftest.$ac_objext 1588 if { { ac_try="$ac_compile" 1589case "(($ac_try" in 1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1591 *) ac_try_echo=$ac_try;; 1592esac 1593eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1594$as_echo "$ac_try_echo"; } >&5 1595 (eval "$ac_compile") 2>conftest.err 1596 ac_status=$? 1597 if test -s conftest.err; then 1598 grep -v '^ *+' conftest.err >conftest.er1 1599 cat conftest.er1 >&5 1600 mv -f conftest.er1 conftest.err 1601 fi 1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1603 test $ac_status = 0; } && { 1604 test -z "$ac_c_werror_flag" || 1605 test ! -s conftest.err 1606 } && test -s conftest.$ac_objext; then : 1607 ac_retval=0 1608else 1609 $as_echo "$as_me: failed program was:" >&5 1610sed 's/^/| /' conftest.$ac_ext >&5 1611 1612 ac_retval=1 1613fi 1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1615 as_fn_set_status $ac_retval 1616 1617} # ac_fn_c_try_compile 1618 1619# ac_fn_c_try_cpp LINENO 1620# ---------------------- 1621# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1622ac_fn_c_try_cpp () 1623{ 1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1625 if { { ac_try="$ac_cpp conftest.$ac_ext" 1626case "(($ac_try" in 1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1628 *) ac_try_echo=$ac_try;; 1629esac 1630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1631$as_echo "$ac_try_echo"; } >&5 1632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1633 ac_status=$? 1634 if test -s conftest.err; then 1635 grep -v '^ *+' conftest.err >conftest.er1 1636 cat conftest.er1 >&5 1637 mv -f conftest.er1 conftest.err 1638 fi 1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1640 test $ac_status = 0; } > conftest.i && { 1641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1642 test ! -s conftest.err 1643 }; then : 1644 ac_retval=0 1645else 1646 $as_echo "$as_me: failed program was:" >&5 1647sed 's/^/| /' conftest.$ac_ext >&5 1648 1649 ac_retval=1 1650fi 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 as_fn_set_status $ac_retval 1653 1654} # ac_fn_c_try_cpp 1655 1656# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1657# ------------------------------------------------------- 1658# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1659# the include files in INCLUDES and setting the cache variable VAR 1660# accordingly. 1661ac_fn_c_check_header_mongrel () 1662{ 1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1664 if eval \${$3+:} false; then : 1665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1666$as_echo_n "checking for $2... " >&6; } 1667if eval \${$3+:} false; then : 1668 $as_echo_n "(cached) " >&6 1669fi 1670eval ac_res=\$$3 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672$as_echo "$ac_res" >&6; } 1673else 1674 # Is the header compilable? 1675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1676$as_echo_n "checking $2 usability... " >&6; } 1677cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1678/* end confdefs.h. */ 1679$4 1680#include <$2> 1681_ACEOF 1682if ac_fn_c_try_compile "$LINENO"; then : 1683 ac_header_compiler=yes 1684else 1685 ac_header_compiler=no 1686fi 1687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1689$as_echo "$ac_header_compiler" >&6; } 1690 1691# Is the header present? 1692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1693$as_echo_n "checking $2 presence... " >&6; } 1694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1695/* end confdefs.h. */ 1696#include <$2> 1697_ACEOF 1698if ac_fn_c_try_cpp "$LINENO"; then : 1699 ac_header_preproc=yes 1700else 1701 ac_header_preproc=no 1702fi 1703rm -f conftest.err conftest.i conftest.$ac_ext 1704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1705$as_echo "$ac_header_preproc" >&6; } 1706 1707# So? What about this header? 1708case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1709 yes:no: ) 1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1711$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1713$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1714 ;; 1715 no:yes:* ) 1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1717$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1719$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1721$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1723$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1725$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1726( $as_echo "## ---------------------------------------------------------------------- ## 1727## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1728## ---------------------------------------------------------------------- ##" 1729 ) | sed "s/^/$as_me: WARNING: /" >&2 1730 ;; 1731esac 1732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1733$as_echo_n "checking for $2... " >&6; } 1734if eval \${$3+:} false; then : 1735 $as_echo_n "(cached) " >&6 1736else 1737 eval "$3=\$ac_header_compiler" 1738fi 1739eval ac_res=\$$3 1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1741$as_echo "$ac_res" >&6; } 1742fi 1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1744 1745} # ac_fn_c_check_header_mongrel 1746 1747# ac_fn_c_try_run LINENO 1748# ---------------------- 1749# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1750# that executables *can* be run. 1751ac_fn_c_try_run () 1752{ 1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1754 if { { ac_try="$ac_link" 1755case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_link") 2>&5 1762 ac_status=$? 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1765 { { case "(($ac_try" in 1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1767 *) ac_try_echo=$ac_try;; 1768esac 1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1770$as_echo "$ac_try_echo"; } >&5 1771 (eval "$ac_try") 2>&5 1772 ac_status=$? 1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1774 test $ac_status = 0; }; }; then : 1775 ac_retval=0 1776else 1777 $as_echo "$as_me: program exited with status $ac_status" >&5 1778 $as_echo "$as_me: failed program was:" >&5 1779sed 's/^/| /' conftest.$ac_ext >&5 1780 1781 ac_retval=$ac_status 1782fi 1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1785 as_fn_set_status $ac_retval 1786 1787} # ac_fn_c_try_run 1788 1789# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1790# ------------------------------------------------------- 1791# Tests whether HEADER exists and can be compiled using the include files in 1792# INCLUDES, setting the cache variable VAR accordingly. 1793ac_fn_c_check_header_compile () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1797$as_echo_n "checking for $2... " >&6; } 1798if eval \${$3+:} false; then : 1799 $as_echo_n "(cached) " >&6 1800else 1801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1802/* end confdefs.h. */ 1803$4 1804#include <$2> 1805_ACEOF 1806if ac_fn_c_try_compile "$LINENO"; then : 1807 eval "$3=yes" 1808else 1809 eval "$3=no" 1810fi 1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1812fi 1813eval ac_res=\$$3 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1815$as_echo "$ac_res" >&6; } 1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1817 1818} # ac_fn_c_check_header_compile 1819 1820# ac_fn_c_try_link LINENO 1821# ----------------------- 1822# Try to link conftest.$ac_ext, and return whether this succeeded. 1823ac_fn_c_try_link () 1824{ 1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1826 rm -f conftest.$ac_objext conftest$ac_exeext 1827 if { { ac_try="$ac_link" 1828case "(($ac_try" in 1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1830 *) ac_try_echo=$ac_try;; 1831esac 1832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1833$as_echo "$ac_try_echo"; } >&5 1834 (eval "$ac_link") 2>conftest.err 1835 ac_status=$? 1836 if test -s conftest.err; then 1837 grep -v '^ *+' conftest.err >conftest.er1 1838 cat conftest.er1 >&5 1839 mv -f conftest.er1 conftest.err 1840 fi 1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1842 test $ac_status = 0; } && { 1843 test -z "$ac_c_werror_flag" || 1844 test ! -s conftest.err 1845 } && test -s conftest$ac_exeext && { 1846 test "$cross_compiling" = yes || 1847 test -x conftest$ac_exeext 1848 }; then : 1849 ac_retval=0 1850else 1851 $as_echo "$as_me: failed program was:" >&5 1852sed 's/^/| /' conftest.$ac_ext >&5 1853 1854 ac_retval=1 1855fi 1856 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1857 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1858 # interfere with the next link command; also delete a directory that is 1859 # left behind by Apple's compiler. We do this before executing the actions. 1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1862 as_fn_set_status $ac_retval 1863 1864} # ac_fn_c_try_link 1865 1866# ac_fn_c_check_func LINENO FUNC VAR 1867# ---------------------------------- 1868# Tests whether FUNC exists, setting the cache variable VAR accordingly 1869ac_fn_c_check_func () 1870{ 1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1873$as_echo_n "checking for $2... " >&6; } 1874if eval \${$3+:} false; then : 1875 $as_echo_n "(cached) " >&6 1876else 1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1878/* end confdefs.h. */ 1879/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1881#define $2 innocuous_$2 1882 1883/* System header to define __stub macros and hopefully few prototypes, 1884 which can conflict with char $2 (); below. 1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1886 <limits.h> exists even on freestanding compilers. */ 1887 1888#ifdef __STDC__ 1889# include <limits.h> 1890#else 1891# include <assert.h> 1892#endif 1893 1894#undef $2 1895 1896/* Override any GCC internal prototype to avoid an error. 1897 Use char because int might match the return type of a GCC 1898 builtin and then its argument prototype would still apply. */ 1899#ifdef __cplusplus 1900extern "C" 1901#endif 1902char $2 (); 1903/* The GNU C library defines this for functions which it implements 1904 to always fail with ENOSYS. Some functions are actually named 1905 something starting with __ and the normal name is an alias. */ 1906#if defined __stub_$2 || defined __stub___$2 1907choke me 1908#endif 1909 1910int 1911main () 1912{ 1913return $2 (); 1914 ; 1915 return 0; 1916} 1917_ACEOF 1918if ac_fn_c_try_link "$LINENO"; then : 1919 eval "$3=yes" 1920else 1921 eval "$3=no" 1922fi 1923rm -f core conftest.err conftest.$ac_objext \ 1924 conftest$ac_exeext conftest.$ac_ext 1925fi 1926eval ac_res=\$$3 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928$as_echo "$ac_res" >&6; } 1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1930 1931} # ac_fn_c_check_func 1932 1933# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1934# --------------------------------------------- 1935# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1936# accordingly. 1937ac_fn_c_check_decl () 1938{ 1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1940 as_decl_name=`echo $2|sed 's/ *(.*//'` 1941 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1943$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1944if eval \${$3+:} false; then : 1945 $as_echo_n "(cached) " >&6 1946else 1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1948/* end confdefs.h. */ 1949$4 1950int 1951main () 1952{ 1953#ifndef $as_decl_name 1954#ifdef __cplusplus 1955 (void) $as_decl_use; 1956#else 1957 (void) $as_decl_name; 1958#endif 1959#endif 1960 1961 ; 1962 return 0; 1963} 1964_ACEOF 1965if ac_fn_c_try_compile "$LINENO"; then : 1966 eval "$3=yes" 1967else 1968 eval "$3=no" 1969fi 1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1971fi 1972eval ac_res=\$$3 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1974$as_echo "$ac_res" >&6; } 1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1976 1977} # ac_fn_c_check_decl 1978cat >config.log <<_ACEOF 1979This file contains any messages produced by compilers while 1980running configure, to aid debugging if configure makes a mistake. 1981 1982It was created by libxshmfence $as_me 1.3, which was 1983generated by GNU Autoconf 2.69. Invocation command line was 1984 1985 $ $0 $@ 1986 1987_ACEOF 1988exec 5>>config.log 1989{ 1990cat <<_ASUNAME 1991## --------- ## 1992## Platform. ## 1993## --------- ## 1994 1995hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1996uname -m = `(uname -m) 2>/dev/null || echo unknown` 1997uname -r = `(uname -r) 2>/dev/null || echo unknown` 1998uname -s = `(uname -s) 2>/dev/null || echo unknown` 1999uname -v = `(uname -v) 2>/dev/null || echo unknown` 2000 2001/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2002/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2003 2004/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2005/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2006/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2007/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2008/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2009/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2010/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2011 2012_ASUNAME 2013 2014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2015for as_dir in $PATH 2016do 2017 IFS=$as_save_IFS 2018 test -z "$as_dir" && as_dir=. 2019 $as_echo "PATH: $as_dir" 2020 done 2021IFS=$as_save_IFS 2022 2023} >&5 2024 2025cat >&5 <<_ACEOF 2026 2027 2028## ----------- ## 2029## Core tests. ## 2030## ----------- ## 2031 2032_ACEOF 2033 2034 2035# Keep a trace of the command line. 2036# Strip out --no-create and --no-recursion so they do not pile up. 2037# Strip out --silent because we don't want to record it for future runs. 2038# Also quote any args containing shell meta-characters. 2039# Make two passes to allow for proper duplicate-argument suppression. 2040ac_configure_args= 2041ac_configure_args0= 2042ac_configure_args1= 2043ac_must_keep_next=false 2044for ac_pass in 1 2 2045do 2046 for ac_arg 2047 do 2048 case $ac_arg in 2049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2051 | -silent | --silent | --silen | --sile | --sil) 2052 continue ;; 2053 *\'*) 2054 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2055 esac 2056 case $ac_pass in 2057 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2058 2) 2059 as_fn_append ac_configure_args1 " '$ac_arg'" 2060 if test $ac_must_keep_next = true; then 2061 ac_must_keep_next=false # Got value, back to normal. 2062 else 2063 case $ac_arg in 2064 *=* | --config-cache | -C | -disable-* | --disable-* \ 2065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2067 | -with-* | --with-* | -without-* | --without-* | --x) 2068 case "$ac_configure_args0 " in 2069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2070 esac 2071 ;; 2072 -* ) ac_must_keep_next=true ;; 2073 esac 2074 fi 2075 as_fn_append ac_configure_args " '$ac_arg'" 2076 ;; 2077 esac 2078 done 2079done 2080{ ac_configure_args0=; unset ac_configure_args0;} 2081{ ac_configure_args1=; unset ac_configure_args1;} 2082 2083# When interrupted or exit'd, cleanup temporary files, and complete 2084# config.log. We remove comments because anyway the quotes in there 2085# would cause problems or look ugly. 2086# WARNING: Use '\'' to represent an apostrophe within the trap. 2087# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2088trap 'exit_status=$? 2089 # Save into config.log some information that might help in debugging. 2090 { 2091 echo 2092 2093 $as_echo "## ---------------- ## 2094## Cache variables. ## 2095## ---------------- ##" 2096 echo 2097 # The following way of writing the cache mishandles newlines in values, 2098( 2099 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2100 eval ac_val=\$$ac_var 2101 case $ac_val in #( 2102 *${as_nl}*) 2103 case $ac_var in #( 2104 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2105$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2106 esac 2107 case $ac_var in #( 2108 _ | IFS | as_nl) ;; #( 2109 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2110 *) { eval $ac_var=; unset $ac_var;} ;; 2111 esac ;; 2112 esac 2113 done 2114 (set) 2>&1 | 2115 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2116 *${as_nl}ac_space=\ *) 2117 sed -n \ 2118 "s/'\''/'\''\\\\'\'''\''/g; 2119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2120 ;; #( 2121 *) 2122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2123 ;; 2124 esac | 2125 sort 2126) 2127 echo 2128 2129 $as_echo "## ----------------- ## 2130## Output variables. ## 2131## ----------------- ##" 2132 echo 2133 for ac_var in $ac_subst_vars 2134 do 2135 eval ac_val=\$$ac_var 2136 case $ac_val in 2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2138 esac 2139 $as_echo "$ac_var='\''$ac_val'\''" 2140 done | sort 2141 echo 2142 2143 if test -n "$ac_subst_files"; then 2144 $as_echo "## ------------------- ## 2145## File substitutions. ## 2146## ------------------- ##" 2147 echo 2148 for ac_var in $ac_subst_files 2149 do 2150 eval ac_val=\$$ac_var 2151 case $ac_val in 2152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2153 esac 2154 $as_echo "$ac_var='\''$ac_val'\''" 2155 done | sort 2156 echo 2157 fi 2158 2159 if test -s confdefs.h; then 2160 $as_echo "## ----------- ## 2161## confdefs.h. ## 2162## ----------- ##" 2163 echo 2164 cat confdefs.h 2165 echo 2166 fi 2167 test "$ac_signal" != 0 && 2168 $as_echo "$as_me: caught signal $ac_signal" 2169 $as_echo "$as_me: exit $exit_status" 2170 } >&5 2171 rm -f core *.core core.conftest.* && 2172 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2173 exit $exit_status 2174' 0 2175for ac_signal in 1 2 13 15; do 2176 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2177done 2178ac_signal=0 2179 2180# confdefs.h avoids OS command line length limits that DEFS can exceed. 2181rm -f -r conftest* confdefs.h 2182 2183$as_echo "/* confdefs.h */" > confdefs.h 2184 2185# Predefined preprocessor variables. 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_NAME "$PACKAGE_NAME" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_VERSION "$PACKAGE_VERSION" 2197_ACEOF 2198 2199cat >>confdefs.h <<_ACEOF 2200#define PACKAGE_STRING "$PACKAGE_STRING" 2201_ACEOF 2202 2203cat >>confdefs.h <<_ACEOF 2204#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2205_ACEOF 2206 2207cat >>confdefs.h <<_ACEOF 2208#define PACKAGE_URL "$PACKAGE_URL" 2209_ACEOF 2210 2211 2212# Let the site file select an alternate cache file if it wants to. 2213# Prefer an explicitly selected file to automatically selected ones. 2214ac_site_file1=NONE 2215ac_site_file2=NONE 2216if test -n "$CONFIG_SITE"; then 2217 # We do not want a PATH search for config.site. 2218 case $CONFIG_SITE in #(( 2219 -*) ac_site_file1=./$CONFIG_SITE;; 2220 */*) ac_site_file1=$CONFIG_SITE;; 2221 *) ac_site_file1=./$CONFIG_SITE;; 2222 esac 2223elif test "x$prefix" != xNONE; then 2224 ac_site_file1=$prefix/share/config.site 2225 ac_site_file2=$prefix/etc/config.site 2226else 2227 ac_site_file1=$ac_default_prefix/share/config.site 2228 ac_site_file2=$ac_default_prefix/etc/config.site 2229fi 2230for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2231do 2232 test "x$ac_site_file" = xNONE && continue 2233 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2235$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2236 sed 's/^/| /' "$ac_site_file" >&5 2237 . "$ac_site_file" \ 2238 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2240as_fn_error $? "failed to load site script $ac_site_file 2241See \`config.log' for more details" "$LINENO" 5; } 2242 fi 2243done 2244 2245if test -r "$cache_file"; then 2246 # Some versions of bash will fail to source /dev/null (special files 2247 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2248 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2249 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2250$as_echo "$as_me: loading cache $cache_file" >&6;} 2251 case $cache_file in 2252 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2253 *) . "./$cache_file";; 2254 esac 2255 fi 2256else 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2258$as_echo "$as_me: creating cache $cache_file" >&6;} 2259 >$cache_file 2260fi 2261 2262# Check that the precious variables saved in the cache have kept the same 2263# value. 2264ac_cache_corrupted=false 2265for ac_var in $ac_precious_vars; do 2266 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2267 eval ac_new_set=\$ac_env_${ac_var}_set 2268 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2269 eval ac_new_val=\$ac_env_${ac_var}_value 2270 case $ac_old_set,$ac_new_set in 2271 set,) 2272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2273$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2274 ac_cache_corrupted=: ;; 2275 ,set) 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2277$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2278 ac_cache_corrupted=: ;; 2279 ,);; 2280 *) 2281 if test "x$ac_old_val" != "x$ac_new_val"; then 2282 # differences in whitespace do not lead to failure. 2283 ac_old_val_w=`echo x $ac_old_val` 2284 ac_new_val_w=`echo x $ac_new_val` 2285 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2287$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2288 ac_cache_corrupted=: 2289 else 2290 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2291$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2292 eval $ac_var=\$ac_old_val 2293 fi 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2295$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2297$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2298 fi;; 2299 esac 2300 # Pass precious variables to config.status. 2301 if test "$ac_new_set" = set; then 2302 case $ac_new_val in 2303 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2304 *) ac_arg=$ac_var=$ac_new_val ;; 2305 esac 2306 case " $ac_configure_args " in 2307 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2308 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2309 esac 2310 fi 2311done 2312if $ac_cache_corrupted; then 2313 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2316$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2317 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2318fi 2319## -------------------- ## 2320## Main body of script. ## 2321## -------------------- ## 2322 2323ac_ext=c 2324ac_cpp='$CPP $CPPFLAGS' 2325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2327ac_compiler_gnu=$ac_cv_c_compiler_gnu 2328 2329 2330 2331ac_config_headers="$ac_config_headers config.h" 2332 2333 2334ac_aux_dir= 2335for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2336 if test -f "$ac_dir/install-sh"; then 2337 ac_aux_dir=$ac_dir 2338 ac_install_sh="$ac_aux_dir/install-sh -c" 2339 break 2340 elif test -f "$ac_dir/install.sh"; then 2341 ac_aux_dir=$ac_dir 2342 ac_install_sh="$ac_aux_dir/install.sh -c" 2343 break 2344 elif test -f "$ac_dir/shtool"; then 2345 ac_aux_dir=$ac_dir 2346 ac_install_sh="$ac_aux_dir/shtool install -c" 2347 break 2348 fi 2349done 2350if test -z "$ac_aux_dir"; then 2351 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2352fi 2353 2354# These three variables are undocumented and unsupported, 2355# and are intended to be withdrawn in a future Autoconf release. 2356# They can cause serious problems if a builder's source tree is in a directory 2357# whose full name contains unusual characters. 2358ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2359ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2360ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2361 2362 2363# Expand $ac_aux_dir to an absolute path. 2364am_aux_dir=`cd "$ac_aux_dir" && pwd` 2365 2366ac_ext=c 2367ac_cpp='$CPP $CPPFLAGS' 2368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2370ac_compiler_gnu=$ac_cv_c_compiler_gnu 2371if test -n "$ac_tool_prefix"; then 2372 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2373set dummy ${ac_tool_prefix}gcc; ac_word=$2 2374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2375$as_echo_n "checking for $ac_word... " >&6; } 2376if ${ac_cv_prog_CC+:} false; then : 2377 $as_echo_n "(cached) " >&6 2378else 2379 if test -n "$CC"; then 2380 ac_cv_prog_CC="$CC" # Let the user override the test. 2381else 2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2383for as_dir in $PATH 2384do 2385 IFS=$as_save_IFS 2386 test -z "$as_dir" && as_dir=. 2387 for ac_exec_ext in '' $ac_executable_extensions; do 2388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2389 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2391 break 2 2392 fi 2393done 2394 done 2395IFS=$as_save_IFS 2396 2397fi 2398fi 2399CC=$ac_cv_prog_CC 2400if test -n "$CC"; then 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2402$as_echo "$CC" >&6; } 2403else 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2405$as_echo "no" >&6; } 2406fi 2407 2408 2409fi 2410if test -z "$ac_cv_prog_CC"; then 2411 ac_ct_CC=$CC 2412 # Extract the first word of "gcc", so it can be a program name with args. 2413set dummy gcc; ac_word=$2 2414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2415$as_echo_n "checking for $ac_word... " >&6; } 2416if ${ac_cv_prog_ac_ct_CC+:} false; then : 2417 $as_echo_n "(cached) " >&6 2418else 2419 if test -n "$ac_ct_CC"; then 2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2421else 2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2423for as_dir in $PATH 2424do 2425 IFS=$as_save_IFS 2426 test -z "$as_dir" && as_dir=. 2427 for ac_exec_ext in '' $ac_executable_extensions; do 2428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2429 ac_cv_prog_ac_ct_CC="gcc" 2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2431 break 2 2432 fi 2433done 2434 done 2435IFS=$as_save_IFS 2436 2437fi 2438fi 2439ac_ct_CC=$ac_cv_prog_ac_ct_CC 2440if test -n "$ac_ct_CC"; then 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2442$as_echo "$ac_ct_CC" >&6; } 2443else 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2445$as_echo "no" >&6; } 2446fi 2447 2448 if test "x$ac_ct_CC" = x; then 2449 CC="" 2450 else 2451 case $cross_compiling:$ac_tool_warned in 2452yes:) 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2455ac_tool_warned=yes ;; 2456esac 2457 CC=$ac_ct_CC 2458 fi 2459else 2460 CC="$ac_cv_prog_CC" 2461fi 2462 2463if test -z "$CC"; then 2464 if test -n "$ac_tool_prefix"; then 2465 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2466set dummy ${ac_tool_prefix}cc; ac_word=$2 2467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2468$as_echo_n "checking for $ac_word... " >&6; } 2469if ${ac_cv_prog_CC+:} false; then : 2470 $as_echo_n "(cached) " >&6 2471else 2472 if test -n "$CC"; then 2473 ac_cv_prog_CC="$CC" # Let the user override the test. 2474else 2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2476for as_dir in $PATH 2477do 2478 IFS=$as_save_IFS 2479 test -z "$as_dir" && as_dir=. 2480 for ac_exec_ext in '' $ac_executable_extensions; do 2481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2482 ac_cv_prog_CC="${ac_tool_prefix}cc" 2483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2484 break 2 2485 fi 2486done 2487 done 2488IFS=$as_save_IFS 2489 2490fi 2491fi 2492CC=$ac_cv_prog_CC 2493if test -n "$CC"; then 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2495$as_echo "$CC" >&6; } 2496else 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2498$as_echo "no" >&6; } 2499fi 2500 2501 2502 fi 2503fi 2504if test -z "$CC"; then 2505 # Extract the first word of "cc", so it can be a program name with args. 2506set dummy cc; ac_word=$2 2507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2508$as_echo_n "checking for $ac_word... " >&6; } 2509if ${ac_cv_prog_CC+:} false; then : 2510 $as_echo_n "(cached) " >&6 2511else 2512 if test -n "$CC"; then 2513 ac_cv_prog_CC="$CC" # Let the user override the test. 2514else 2515 ac_prog_rejected=no 2516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2517for as_dir in $PATH 2518do 2519 IFS=$as_save_IFS 2520 test -z "$as_dir" && as_dir=. 2521 for ac_exec_ext in '' $ac_executable_extensions; do 2522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2523 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2524 ac_prog_rejected=yes 2525 continue 2526 fi 2527 ac_cv_prog_CC="cc" 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531done 2532 done 2533IFS=$as_save_IFS 2534 2535if test $ac_prog_rejected = yes; then 2536 # We found a bogon in the path, so make sure we never use it. 2537 set dummy $ac_cv_prog_CC 2538 shift 2539 if test $# != 0; then 2540 # We chose a different compiler from the bogus one. 2541 # However, it has the same basename, so the bogon will be chosen 2542 # first if we set CC to just the basename; use the full file name. 2543 shift 2544 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2545 fi 2546fi 2547fi 2548fi 2549CC=$ac_cv_prog_CC 2550if test -n "$CC"; then 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2552$as_echo "$CC" >&6; } 2553else 2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2555$as_echo "no" >&6; } 2556fi 2557 2558 2559fi 2560if test -z "$CC"; then 2561 if test -n "$ac_tool_prefix"; then 2562 for ac_prog in cl.exe 2563 do 2564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2565set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2567$as_echo_n "checking for $ac_word... " >&6; } 2568if ${ac_cv_prog_CC+:} false; then : 2569 $as_echo_n "(cached) " >&6 2570else 2571 if test -n "$CC"; then 2572 ac_cv_prog_CC="$CC" # Let the user override the test. 2573else 2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2575for as_dir in $PATH 2576do 2577 IFS=$as_save_IFS 2578 test -z "$as_dir" && as_dir=. 2579 for ac_exec_ext in '' $ac_executable_extensions; do 2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2581 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2583 break 2 2584 fi 2585done 2586 done 2587IFS=$as_save_IFS 2588 2589fi 2590fi 2591CC=$ac_cv_prog_CC 2592if test -n "$CC"; then 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2594$as_echo "$CC" >&6; } 2595else 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2597$as_echo "no" >&6; } 2598fi 2599 2600 2601 test -n "$CC" && break 2602 done 2603fi 2604if test -z "$CC"; then 2605 ac_ct_CC=$CC 2606 for ac_prog in cl.exe 2607do 2608 # Extract the first word of "$ac_prog", so it can be a program name with args. 2609set dummy $ac_prog; ac_word=$2 2610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2611$as_echo_n "checking for $ac_word... " >&6; } 2612if ${ac_cv_prog_ac_ct_CC+:} false; then : 2613 $as_echo_n "(cached) " >&6 2614else 2615 if test -n "$ac_ct_CC"; then 2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2617else 2618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2619for as_dir in $PATH 2620do 2621 IFS=$as_save_IFS 2622 test -z "$as_dir" && as_dir=. 2623 for ac_exec_ext in '' $ac_executable_extensions; do 2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2625 ac_cv_prog_ac_ct_CC="$ac_prog" 2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2627 break 2 2628 fi 2629done 2630 done 2631IFS=$as_save_IFS 2632 2633fi 2634fi 2635ac_ct_CC=$ac_cv_prog_ac_ct_CC 2636if test -n "$ac_ct_CC"; then 2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2638$as_echo "$ac_ct_CC" >&6; } 2639else 2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2641$as_echo "no" >&6; } 2642fi 2643 2644 2645 test -n "$ac_ct_CC" && break 2646done 2647 2648 if test "x$ac_ct_CC" = x; then 2649 CC="" 2650 else 2651 case $cross_compiling:$ac_tool_warned in 2652yes:) 2653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2655ac_tool_warned=yes ;; 2656esac 2657 CC=$ac_ct_CC 2658 fi 2659fi 2660 2661fi 2662 2663 2664test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2666as_fn_error $? "no acceptable C compiler found in \$PATH 2667See \`config.log' for more details" "$LINENO" 5; } 2668 2669# Provide some information about the compiler. 2670$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2671set X $ac_compile 2672ac_compiler=$2 2673for ac_option in --version -v -V -qversion; do 2674 { { ac_try="$ac_compiler $ac_option >&5" 2675case "(($ac_try" in 2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2677 *) ac_try_echo=$ac_try;; 2678esac 2679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2680$as_echo "$ac_try_echo"; } >&5 2681 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2682 ac_status=$? 2683 if test -s conftest.err; then 2684 sed '10a\ 2685... rest of stderr output deleted ... 2686 10q' conftest.err >conftest.er1 2687 cat conftest.er1 >&5 2688 fi 2689 rm -f conftest.er1 conftest.err 2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2691 test $ac_status = 0; } 2692done 2693 2694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2695/* end confdefs.h. */ 2696 2697int 2698main () 2699{ 2700 2701 ; 2702 return 0; 2703} 2704_ACEOF 2705ac_clean_files_save=$ac_clean_files 2706ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2707# Try to create an executable without -o first, disregard a.out. 2708# It will help us diagnose broken compilers, and finding out an intuition 2709# of exeext. 2710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2711$as_echo_n "checking whether the C compiler works... " >&6; } 2712ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2713 2714# The possible output files: 2715ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2716 2717ac_rmfiles= 2718for ac_file in $ac_files 2719do 2720 case $ac_file in 2721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2722 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2723 esac 2724done 2725rm -f $ac_rmfiles 2726 2727if { { ac_try="$ac_link_default" 2728case "(($ac_try" in 2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2730 *) ac_try_echo=$ac_try;; 2731esac 2732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2733$as_echo "$ac_try_echo"; } >&5 2734 (eval "$ac_link_default") 2>&5 2735 ac_status=$? 2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2737 test $ac_status = 0; }; then : 2738 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2739# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2740# in a Makefile. We should not override ac_cv_exeext if it was cached, 2741# so that the user can short-circuit this test for compilers unknown to 2742# Autoconf. 2743for ac_file in $ac_files '' 2744do 2745 test -f "$ac_file" || continue 2746 case $ac_file in 2747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2748 ;; 2749 [ab].out ) 2750 # We found the default executable, but exeext='' is most 2751 # certainly right. 2752 break;; 2753 *.* ) 2754 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2755 then :; else 2756 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2757 fi 2758 # We set ac_cv_exeext here because the later test for it is not 2759 # safe: cross compilers may not add the suffix if given an `-o' 2760 # argument, so we may need to know it at that point already. 2761 # Even if this section looks crufty: it has the advantage of 2762 # actually working. 2763 break;; 2764 * ) 2765 break;; 2766 esac 2767done 2768test "$ac_cv_exeext" = no && ac_cv_exeext= 2769 2770else 2771 ac_file='' 2772fi 2773if test -z "$ac_file"; then : 2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2775$as_echo "no" >&6; } 2776$as_echo "$as_me: failed program was:" >&5 2777sed 's/^/| /' conftest.$ac_ext >&5 2778 2779{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2781as_fn_error 77 "C compiler cannot create executables 2782See \`config.log' for more details" "$LINENO" 5; } 2783else 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2785$as_echo "yes" >&6; } 2786fi 2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2788$as_echo_n "checking for C compiler default output file name... " >&6; } 2789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2790$as_echo "$ac_file" >&6; } 2791ac_exeext=$ac_cv_exeext 2792 2793rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2794ac_clean_files=$ac_clean_files_save 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2796$as_echo_n "checking for suffix of executables... " >&6; } 2797if { { ac_try="$ac_link" 2798case "(($ac_try" in 2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2800 *) ac_try_echo=$ac_try;; 2801esac 2802eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2803$as_echo "$ac_try_echo"; } >&5 2804 (eval "$ac_link") 2>&5 2805 ac_status=$? 2806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2807 test $ac_status = 0; }; then : 2808 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2809# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2810# work properly (i.e., refer to `conftest.exe'), while it won't with 2811# `rm'. 2812for ac_file in conftest.exe conftest conftest.*; do 2813 test -f "$ac_file" || continue 2814 case $ac_file in 2815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2816 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2817 break;; 2818 * ) break;; 2819 esac 2820done 2821else 2822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2824as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2825See \`config.log' for more details" "$LINENO" 5; } 2826fi 2827rm -f conftest conftest$ac_cv_exeext 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2829$as_echo "$ac_cv_exeext" >&6; } 2830 2831rm -f conftest.$ac_ext 2832EXEEXT=$ac_cv_exeext 2833ac_exeext=$EXEEXT 2834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2835/* end confdefs.h. */ 2836#include <stdio.h> 2837int 2838main () 2839{ 2840FILE *f = fopen ("conftest.out", "w"); 2841 return ferror (f) || fclose (f) != 0; 2842 2843 ; 2844 return 0; 2845} 2846_ACEOF 2847ac_clean_files="$ac_clean_files conftest.out" 2848# Check that the compiler produces executables we can run. If not, either 2849# the compiler is broken, or we cross compile. 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2851$as_echo_n "checking whether we are cross compiling... " >&6; } 2852if test "$cross_compiling" != yes; then 2853 { { ac_try="$ac_link" 2854case "(($ac_try" in 2855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2856 *) ac_try_echo=$ac_try;; 2857esac 2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2859$as_echo "$ac_try_echo"; } >&5 2860 (eval "$ac_link") 2>&5 2861 ac_status=$? 2862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2863 test $ac_status = 0; } 2864 if { ac_try='./conftest$ac_cv_exeext' 2865 { { case "(($ac_try" in 2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2867 *) ac_try_echo=$ac_try;; 2868esac 2869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2870$as_echo "$ac_try_echo"; } >&5 2871 (eval "$ac_try") 2>&5 2872 ac_status=$? 2873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2874 test $ac_status = 0; }; }; then 2875 cross_compiling=no 2876 else 2877 if test "$cross_compiling" = maybe; then 2878 cross_compiling=yes 2879 else 2880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882as_fn_error $? "cannot run C compiled programs. 2883If you meant to cross compile, use \`--host'. 2884See \`config.log' for more details" "$LINENO" 5; } 2885 fi 2886 fi 2887fi 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2889$as_echo "$cross_compiling" >&6; } 2890 2891rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2892ac_clean_files=$ac_clean_files_save 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2894$as_echo_n "checking for suffix of object files... " >&6; } 2895if ${ac_cv_objext+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2899/* end confdefs.h. */ 2900 2901int 2902main () 2903{ 2904 2905 ; 2906 return 0; 2907} 2908_ACEOF 2909rm -f conftest.o conftest.obj 2910if { { ac_try="$ac_compile" 2911case "(($ac_try" in 2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2913 *) ac_try_echo=$ac_try;; 2914esac 2915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2916$as_echo "$ac_try_echo"; } >&5 2917 (eval "$ac_compile") 2>&5 2918 ac_status=$? 2919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2920 test $ac_status = 0; }; then : 2921 for ac_file in conftest.o conftest.obj conftest.*; do 2922 test -f "$ac_file" || continue; 2923 case $ac_file in 2924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2925 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2926 break;; 2927 esac 2928done 2929else 2930 $as_echo "$as_me: failed program was:" >&5 2931sed 's/^/| /' conftest.$ac_ext >&5 2932 2933{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2935as_fn_error $? "cannot compute suffix of object files: cannot compile 2936See \`config.log' for more details" "$LINENO" 5; } 2937fi 2938rm -f conftest.$ac_cv_objext conftest.$ac_ext 2939fi 2940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2941$as_echo "$ac_cv_objext" >&6; } 2942OBJEXT=$ac_cv_objext 2943ac_objext=$OBJEXT 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2945$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2946if ${ac_cv_c_compiler_gnu+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2950/* end confdefs.h. */ 2951 2952int 2953main () 2954{ 2955#ifndef __GNUC__ 2956 choke me 2957#endif 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963if ac_fn_c_try_compile "$LINENO"; then : 2964 ac_compiler_gnu=yes 2965else 2966 ac_compiler_gnu=no 2967fi 2968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2969ac_cv_c_compiler_gnu=$ac_compiler_gnu 2970 2971fi 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2973$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2974if test $ac_compiler_gnu = yes; then 2975 GCC=yes 2976else 2977 GCC= 2978fi 2979ac_test_CFLAGS=${CFLAGS+set} 2980ac_save_CFLAGS=$CFLAGS 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2982$as_echo_n "checking whether $CC accepts -g... " >&6; } 2983if ${ac_cv_prog_cc_g+:} false; then : 2984 $as_echo_n "(cached) " >&6 2985else 2986 ac_save_c_werror_flag=$ac_c_werror_flag 2987 ac_c_werror_flag=yes 2988 ac_cv_prog_cc_g=no 2989 CFLAGS="-g" 2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2991/* end confdefs.h. */ 2992 2993int 2994main () 2995{ 2996 2997 ; 2998 return 0; 2999} 3000_ACEOF 3001if ac_fn_c_try_compile "$LINENO"; then : 3002 ac_cv_prog_cc_g=yes 3003else 3004 CFLAGS="" 3005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3006/* end confdefs.h. */ 3007 3008int 3009main () 3010{ 3011 3012 ; 3013 return 0; 3014} 3015_ACEOF 3016if ac_fn_c_try_compile "$LINENO"; then : 3017 3018else 3019 ac_c_werror_flag=$ac_save_c_werror_flag 3020 CFLAGS="-g" 3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3022/* end confdefs.h. */ 3023 3024int 3025main () 3026{ 3027 3028 ; 3029 return 0; 3030} 3031_ACEOF 3032if ac_fn_c_try_compile "$LINENO"; then : 3033 ac_cv_prog_cc_g=yes 3034fi 3035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3036fi 3037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3038fi 3039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3040 ac_c_werror_flag=$ac_save_c_werror_flag 3041fi 3042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3043$as_echo "$ac_cv_prog_cc_g" >&6; } 3044if test "$ac_test_CFLAGS" = set; then 3045 CFLAGS=$ac_save_CFLAGS 3046elif test $ac_cv_prog_cc_g = yes; then 3047 if test "$GCC" = yes; then 3048 CFLAGS="-g -O2" 3049 else 3050 CFLAGS="-g" 3051 fi 3052else 3053 if test "$GCC" = yes; then 3054 CFLAGS="-O2" 3055 else 3056 CFLAGS= 3057 fi 3058fi 3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3060$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3061if ${ac_cv_prog_cc_c89+:} false; then : 3062 $as_echo_n "(cached) " >&6 3063else 3064 ac_cv_prog_cc_c89=no 3065ac_save_CC=$CC 3066cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3067/* end confdefs.h. */ 3068#include <stdarg.h> 3069#include <stdio.h> 3070struct stat; 3071/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3072struct buf { int x; }; 3073FILE * (*rcsopen) (struct buf *, struct stat *, int); 3074static char *e (p, i) 3075 char **p; 3076 int i; 3077{ 3078 return p[i]; 3079} 3080static char *f (char * (*g) (char **, int), char **p, ...) 3081{ 3082 char *s; 3083 va_list v; 3084 va_start (v,p); 3085 s = g (p, va_arg (v,int)); 3086 va_end (v); 3087 return s; 3088} 3089 3090/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3091 function prototypes and stuff, but not '\xHH' hex character constants. 3092 These don't provoke an error unfortunately, instead are silently treated 3093 as 'x'. The following induces an error, until -std is added to get 3094 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3095 array size at least. It's necessary to write '\x00'==0 to get something 3096 that's true only with -std. */ 3097int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3098 3099/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3100 inside strings and character constants. */ 3101#define FOO(x) 'x' 3102int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3103 3104int test (int i, double x); 3105struct s1 {int (*f) (int a);}; 3106struct s2 {int (*f) (double a);}; 3107int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3108int argc; 3109char **argv; 3110int 3111main () 3112{ 3113return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3114 ; 3115 return 0; 3116} 3117_ACEOF 3118for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3119 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3120do 3121 CC="$ac_save_CC $ac_arg" 3122 if ac_fn_c_try_compile "$LINENO"; then : 3123 ac_cv_prog_cc_c89=$ac_arg 3124fi 3125rm -f core conftest.err conftest.$ac_objext 3126 test "x$ac_cv_prog_cc_c89" != "xno" && break 3127done 3128rm -f conftest.$ac_ext 3129CC=$ac_save_CC 3130 3131fi 3132# AC_CACHE_VAL 3133case "x$ac_cv_prog_cc_c89" in 3134 x) 3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3136$as_echo "none needed" >&6; } ;; 3137 xno) 3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3139$as_echo "unsupported" >&6; } ;; 3140 *) 3141 CC="$CC $ac_cv_prog_cc_c89" 3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3143$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3144esac 3145if test "x$ac_cv_prog_cc_c89" != xno; then : 3146 3147fi 3148 3149ac_ext=c 3150ac_cpp='$CPP $CPPFLAGS' 3151ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3152ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3153ac_compiler_gnu=$ac_cv_c_compiler_gnu 3154 3155ac_ext=c 3156ac_cpp='$CPP $CPPFLAGS' 3157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3159ac_compiler_gnu=$ac_cv_c_compiler_gnu 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3161$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3162if ${am_cv_prog_cc_c_o+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3166/* end confdefs.h. */ 3167 3168int 3169main () 3170{ 3171 3172 ; 3173 return 0; 3174} 3175_ACEOF 3176 # Make sure it works both with $CC and with simple cc. 3177 # Following AC_PROG_CC_C_O, we do the test twice because some 3178 # compilers refuse to overwrite an existing .o file with -o, 3179 # though they will create one. 3180 am_cv_prog_cc_c_o=yes 3181 for am_i in 1 2; do 3182 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3183 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3184 ac_status=$? 3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3186 (exit $ac_status); } \ 3187 && test -f conftest2.$ac_objext; then 3188 : OK 3189 else 3190 am_cv_prog_cc_c_o=no 3191 break 3192 fi 3193 done 3194 rm -f core conftest* 3195 unset am_i 3196fi 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3198$as_echo "$am_cv_prog_cc_c_o" >&6; } 3199if test "$am_cv_prog_cc_c_o" != yes; then 3200 # Losing compiler, so override with the script. 3201 # FIXME: It is wrong to rewrite CC. 3202 # But if we don't then we get into trouble of one sort or another. 3203 # A longer-term fix would be to have automake use am__CC in this case, 3204 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3205 CC="$am_aux_dir/compile $CC" 3206fi 3207ac_ext=c 3208ac_cpp='$CPP $CPPFLAGS' 3209ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3210ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3211ac_compiler_gnu=$ac_cv_c_compiler_gnu 3212 3213 3214 3215ac_ext=c 3216ac_cpp='$CPP $CPPFLAGS' 3217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3219ac_compiler_gnu=$ac_cv_c_compiler_gnu 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3221$as_echo_n "checking how to run the C preprocessor... " >&6; } 3222# On Suns, sometimes $CPP names a directory. 3223if test -n "$CPP" && test -d "$CPP"; then 3224 CPP= 3225fi 3226if test -z "$CPP"; then 3227 if ${ac_cv_prog_CPP+:} false; then : 3228 $as_echo_n "(cached) " >&6 3229else 3230 # Double quotes because CPP needs to be expanded 3231 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3232 do 3233 ac_preproc_ok=false 3234for ac_c_preproc_warn_flag in '' yes 3235do 3236 # Use a header file that comes with gcc, so configuring glibc 3237 # with a fresh cross-compiler works. 3238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3239 # <limits.h> exists even on freestanding compilers. 3240 # On the NeXT, cc -E runs the code through the compiler's parser, 3241 # not just through cpp. "Syntax error" is here to catch this case. 3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3243/* end confdefs.h. */ 3244#ifdef __STDC__ 3245# include <limits.h> 3246#else 3247# include <assert.h> 3248#endif 3249 Syntax error 3250_ACEOF 3251if ac_fn_c_try_cpp "$LINENO"; then : 3252 3253else 3254 # Broken: fails on valid input. 3255continue 3256fi 3257rm -f conftest.err conftest.i conftest.$ac_ext 3258 3259 # OK, works on sane cases. Now check whether nonexistent headers 3260 # can be detected and how. 3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3262/* end confdefs.h. */ 3263#include <ac_nonexistent.h> 3264_ACEOF 3265if ac_fn_c_try_cpp "$LINENO"; then : 3266 # Broken: success on invalid input. 3267continue 3268else 3269 # Passes both tests. 3270ac_preproc_ok=: 3271break 3272fi 3273rm -f conftest.err conftest.i conftest.$ac_ext 3274 3275done 3276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3277rm -f conftest.i conftest.err conftest.$ac_ext 3278if $ac_preproc_ok; then : 3279 break 3280fi 3281 3282 done 3283 ac_cv_prog_CPP=$CPP 3284 3285fi 3286 CPP=$ac_cv_prog_CPP 3287else 3288 ac_cv_prog_CPP=$CPP 3289fi 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3291$as_echo "$CPP" >&6; } 3292ac_preproc_ok=false 3293for ac_c_preproc_warn_flag in '' yes 3294do 3295 # Use a header file that comes with gcc, so configuring glibc 3296 # with a fresh cross-compiler works. 3297 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3298 # <limits.h> exists even on freestanding compilers. 3299 # On the NeXT, cc -E runs the code through the compiler's parser, 3300 # not just through cpp. "Syntax error" is here to catch this case. 3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3302/* end confdefs.h. */ 3303#ifdef __STDC__ 3304# include <limits.h> 3305#else 3306# include <assert.h> 3307#endif 3308 Syntax error 3309_ACEOF 3310if ac_fn_c_try_cpp "$LINENO"; then : 3311 3312else 3313 # Broken: fails on valid input. 3314continue 3315fi 3316rm -f conftest.err conftest.i conftest.$ac_ext 3317 3318 # OK, works on sane cases. Now check whether nonexistent headers 3319 # can be detected and how. 3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3321/* end confdefs.h. */ 3322#include <ac_nonexistent.h> 3323_ACEOF 3324if ac_fn_c_try_cpp "$LINENO"; then : 3325 # Broken: success on invalid input. 3326continue 3327else 3328 # Passes both tests. 3329ac_preproc_ok=: 3330break 3331fi 3332rm -f conftest.err conftest.i conftest.$ac_ext 3333 3334done 3335# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3336rm -f conftest.i conftest.err conftest.$ac_ext 3337if $ac_preproc_ok; then : 3338 3339else 3340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3342as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3343See \`config.log' for more details" "$LINENO" 5; } 3344fi 3345 3346ac_ext=c 3347ac_cpp='$CPP $CPPFLAGS' 3348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3350ac_compiler_gnu=$ac_cv_c_compiler_gnu 3351 3352 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3354$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3355if ${ac_cv_path_GREP+:} false; then : 3356 $as_echo_n "(cached) " >&6 3357else 3358 if test -z "$GREP"; then 3359 ac_path_GREP_found=false 3360 # Loop through the user's path and test for each of PROGNAME-LIST 3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3362for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3363do 3364 IFS=$as_save_IFS 3365 test -z "$as_dir" && as_dir=. 3366 for ac_prog in grep ggrep; do 3367 for ac_exec_ext in '' $ac_executable_extensions; do 3368 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3369 as_fn_executable_p "$ac_path_GREP" || continue 3370# Check for GNU ac_path_GREP and select it if it is found. 3371 # Check for GNU $ac_path_GREP 3372case `"$ac_path_GREP" --version 2>&1` in 3373*GNU*) 3374 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3375*) 3376 ac_count=0 3377 $as_echo_n 0123456789 >"conftest.in" 3378 while : 3379 do 3380 cat "conftest.in" "conftest.in" >"conftest.tmp" 3381 mv "conftest.tmp" "conftest.in" 3382 cp "conftest.in" "conftest.nl" 3383 $as_echo 'GREP' >> "conftest.nl" 3384 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3386 as_fn_arith $ac_count + 1 && ac_count=$as_val 3387 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3388 # Best one so far, save it but keep looking for a better one 3389 ac_cv_path_GREP="$ac_path_GREP" 3390 ac_path_GREP_max=$ac_count 3391 fi 3392 # 10*(2^10) chars as input seems more than enough 3393 test $ac_count -gt 10 && break 3394 done 3395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3396esac 3397 3398 $ac_path_GREP_found && break 3 3399 done 3400 done 3401 done 3402IFS=$as_save_IFS 3403 if test -z "$ac_cv_path_GREP"; then 3404 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3405 fi 3406else 3407 ac_cv_path_GREP=$GREP 3408fi 3409 3410fi 3411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3412$as_echo "$ac_cv_path_GREP" >&6; } 3413 GREP="$ac_cv_path_GREP" 3414 3415 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3417$as_echo_n "checking for egrep... " >&6; } 3418if ${ac_cv_path_EGREP+:} false; then : 3419 $as_echo_n "(cached) " >&6 3420else 3421 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3422 then ac_cv_path_EGREP="$GREP -E" 3423 else 3424 if test -z "$EGREP"; then 3425 ac_path_EGREP_found=false 3426 # Loop through the user's path and test for each of PROGNAME-LIST 3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3428for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3429do 3430 IFS=$as_save_IFS 3431 test -z "$as_dir" && as_dir=. 3432 for ac_prog in egrep; do 3433 for ac_exec_ext in '' $ac_executable_extensions; do 3434 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3435 as_fn_executable_p "$ac_path_EGREP" || continue 3436# Check for GNU ac_path_EGREP and select it if it is found. 3437 # Check for GNU $ac_path_EGREP 3438case `"$ac_path_EGREP" --version 2>&1` in 3439*GNU*) 3440 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3441*) 3442 ac_count=0 3443 $as_echo_n 0123456789 >"conftest.in" 3444 while : 3445 do 3446 cat "conftest.in" "conftest.in" >"conftest.tmp" 3447 mv "conftest.tmp" "conftest.in" 3448 cp "conftest.in" "conftest.nl" 3449 $as_echo 'EGREP' >> "conftest.nl" 3450 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3452 as_fn_arith $ac_count + 1 && ac_count=$as_val 3453 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3454 # Best one so far, save it but keep looking for a better one 3455 ac_cv_path_EGREP="$ac_path_EGREP" 3456 ac_path_EGREP_max=$ac_count 3457 fi 3458 # 10*(2^10) chars as input seems more than enough 3459 test $ac_count -gt 10 && break 3460 done 3461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3462esac 3463 3464 $ac_path_EGREP_found && break 3 3465 done 3466 done 3467 done 3468IFS=$as_save_IFS 3469 if test -z "$ac_cv_path_EGREP"; then 3470 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3471 fi 3472else 3473 ac_cv_path_EGREP=$EGREP 3474fi 3475 3476 fi 3477fi 3478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3479$as_echo "$ac_cv_path_EGREP" >&6; } 3480 EGREP="$ac_cv_path_EGREP" 3481 3482 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3484$as_echo_n "checking for ANSI C header files... " >&6; } 3485if ${ac_cv_header_stdc+:} false; then : 3486 $as_echo_n "(cached) " >&6 3487else 3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3489/* end confdefs.h. */ 3490#include <stdlib.h> 3491#include <stdarg.h> 3492#include <string.h> 3493#include <float.h> 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503if ac_fn_c_try_compile "$LINENO"; then : 3504 ac_cv_header_stdc=yes 3505else 3506 ac_cv_header_stdc=no 3507fi 3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509 3510if test $ac_cv_header_stdc = yes; then 3511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3513/* end confdefs.h. */ 3514#include <string.h> 3515 3516_ACEOF 3517if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3518 $EGREP "memchr" >/dev/null 2>&1; then : 3519 3520else 3521 ac_cv_header_stdc=no 3522fi 3523rm -f conftest* 3524 3525fi 3526 3527if test $ac_cv_header_stdc = yes; then 3528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3530/* end confdefs.h. */ 3531#include <stdlib.h> 3532 3533_ACEOF 3534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3535 $EGREP "free" >/dev/null 2>&1; then : 3536 3537else 3538 ac_cv_header_stdc=no 3539fi 3540rm -f conftest* 3541 3542fi 3543 3544if test $ac_cv_header_stdc = yes; then 3545 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3546 if test "$cross_compiling" = yes; then : 3547 : 3548else 3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3550/* end confdefs.h. */ 3551#include <ctype.h> 3552#include <stdlib.h> 3553#if ((' ' & 0x0FF) == 0x020) 3554# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3555# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3556#else 3557# define ISLOWER(c) \ 3558 (('a' <= (c) && (c) <= 'i') \ 3559 || ('j' <= (c) && (c) <= 'r') \ 3560 || ('s' <= (c) && (c) <= 'z')) 3561# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3562#endif 3563 3564#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3565int 3566main () 3567{ 3568 int i; 3569 for (i = 0; i < 256; i++) 3570 if (XOR (islower (i), ISLOWER (i)) 3571 || toupper (i) != TOUPPER (i)) 3572 return 2; 3573 return 0; 3574} 3575_ACEOF 3576if ac_fn_c_try_run "$LINENO"; then : 3577 3578else 3579 ac_cv_header_stdc=no 3580fi 3581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3582 conftest.$ac_objext conftest.beam conftest.$ac_ext 3583fi 3584 3585fi 3586fi 3587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3588$as_echo "$ac_cv_header_stdc" >&6; } 3589if test $ac_cv_header_stdc = yes; then 3590 3591$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3592 3593fi 3594 3595# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3596for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3597 inttypes.h stdint.h unistd.h 3598do : 3599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3600ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3601" 3602if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3603 cat >>confdefs.h <<_ACEOF 3604#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3605_ACEOF 3606 3607fi 3608 3609done 3610 3611 3612 3613 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3614if test "x$ac_cv_header_minix_config_h" = xyes; then : 3615 MINIX=yes 3616else 3617 MINIX= 3618fi 3619 3620 3621 if test "$MINIX" = yes; then 3622 3623$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3624 3625 3626$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3627 3628 3629$as_echo "#define _MINIX 1" >>confdefs.h 3630 3631 fi 3632 3633 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3635$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3636if ${ac_cv_safe_to_define___extensions__+:} false; then : 3637 $as_echo_n "(cached) " >&6 3638else 3639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3640/* end confdefs.h. */ 3641 3642# define __EXTENSIONS__ 1 3643 $ac_includes_default 3644int 3645main () 3646{ 3647 3648 ; 3649 return 0; 3650} 3651_ACEOF 3652if ac_fn_c_try_compile "$LINENO"; then : 3653 ac_cv_safe_to_define___extensions__=yes 3654else 3655 ac_cv_safe_to_define___extensions__=no 3656fi 3657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3658fi 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3660$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3661 test $ac_cv_safe_to_define___extensions__ = yes && 3662 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3663 3664 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3665 3666 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3667 3668 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3669 3670 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3671 3672 3673 3674# Initialize Automake 3675am__api_version='1.15' 3676 3677# Find a good install program. We prefer a C program (faster), 3678# so one script is as good as another. But avoid the broken or 3679# incompatible versions: 3680# SysV /etc/install, /usr/sbin/install 3681# SunOS /usr/etc/install 3682# IRIX /sbin/install 3683# AIX /bin/install 3684# AmigaOS /C/install, which installs bootblocks on floppy discs 3685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3686# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3688# OS/2's system install, which has a completely different semantic 3689# ./install, which can be erroneously created by make from ./install.sh. 3690# Reject install programs that cannot install multiple files. 3691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3692$as_echo_n "checking for a BSD-compatible install... " >&6; } 3693if test -z "$INSTALL"; then 3694if ${ac_cv_path_install+:} false; then : 3695 $as_echo_n "(cached) " >&6 3696else 3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3698for as_dir in $PATH 3699do 3700 IFS=$as_save_IFS 3701 test -z "$as_dir" && as_dir=. 3702 # Account for people who put trailing slashes in PATH elements. 3703case $as_dir/ in #(( 3704 ./ | .// | /[cC]/* | \ 3705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3706 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3707 /usr/ucb/* ) ;; 3708 *) 3709 # OSF1 and SCO ODT 3.0 have their own names for install. 3710 # Don't use installbsd from OSF since it installs stuff as root 3711 # by default. 3712 for ac_prog in ginstall scoinst install; do 3713 for ac_exec_ext in '' $ac_executable_extensions; do 3714 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3715 if test $ac_prog = install && 3716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3717 # AIX install. It has an incompatible calling convention. 3718 : 3719 elif test $ac_prog = install && 3720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3721 # program-specific install script used by HP pwplus--don't use. 3722 : 3723 else 3724 rm -rf conftest.one conftest.two conftest.dir 3725 echo one > conftest.one 3726 echo two > conftest.two 3727 mkdir conftest.dir 3728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3729 test -s conftest.one && test -s conftest.two && 3730 test -s conftest.dir/conftest.one && 3731 test -s conftest.dir/conftest.two 3732 then 3733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3734 break 3 3735 fi 3736 fi 3737 fi 3738 done 3739 done 3740 ;; 3741esac 3742 3743 done 3744IFS=$as_save_IFS 3745 3746rm -rf conftest.one conftest.two conftest.dir 3747 3748fi 3749 if test "${ac_cv_path_install+set}" = set; then 3750 INSTALL=$ac_cv_path_install 3751 else 3752 # As a last resort, use the slow shell script. Don't cache a 3753 # value for INSTALL within a source directory, because that will 3754 # break other packages using the cache if that directory is 3755 # removed, or if the value is a relative name. 3756 INSTALL=$ac_install_sh 3757 fi 3758fi 3759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3760$as_echo "$INSTALL" >&6; } 3761 3762# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3763# It thinks the first close brace ends the variable substitution. 3764test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3765 3766test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3767 3768test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3769 3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3771$as_echo_n "checking whether build environment is sane... " >&6; } 3772# Reject unsafe characters in $srcdir or the absolute working directory 3773# name. Accept space and tab only in the latter. 3774am_lf=' 3775' 3776case `pwd` in 3777 *[\\\"\#\$\&\'\`$am_lf]*) 3778 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3779esac 3780case $srcdir in 3781 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3782 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3783esac 3784 3785# Do 'set' in a subshell so we don't clobber the current shell's 3786# arguments. Must try -L first in case configure is actually a 3787# symlink; some systems play weird games with the mod time of symlinks 3788# (eg FreeBSD returns the mod time of the symlink's containing 3789# directory). 3790if ( 3791 am_has_slept=no 3792 for am_try in 1 2; do 3793 echo "timestamp, slept: $am_has_slept" > conftest.file 3794 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3795 if test "$*" = "X"; then 3796 # -L didn't work. 3797 set X `ls -t "$srcdir/configure" conftest.file` 3798 fi 3799 if test "$*" != "X $srcdir/configure conftest.file" \ 3800 && test "$*" != "X conftest.file $srcdir/configure"; then 3801 3802 # If neither matched, then we have a broken ls. This can happen 3803 # if, for instance, CONFIG_SHELL is bash and it inherits a 3804 # broken ls alias from the environment. This has actually 3805 # happened. Such a system could not be considered "sane". 3806 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3807 alias in your environment" "$LINENO" 5 3808 fi 3809 if test "$2" = conftest.file || test $am_try -eq 2; then 3810 break 3811 fi 3812 # Just in case. 3813 sleep 1 3814 am_has_slept=yes 3815 done 3816 test "$2" = conftest.file 3817 ) 3818then 3819 # Ok. 3820 : 3821else 3822 as_fn_error $? "newly created file is older than distributed files! 3823Check your system clock" "$LINENO" 5 3824fi 3825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3826$as_echo "yes" >&6; } 3827# If we didn't sleep, we still need to ensure time stamps of config.status and 3828# generated files are strictly newer. 3829am_sleep_pid= 3830if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3831 ( sleep 1 ) & 3832 am_sleep_pid=$! 3833fi 3834 3835rm -f conftest.file 3836 3837test "$program_prefix" != NONE && 3838 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3839# Use a double $ so make ignores it. 3840test "$program_suffix" != NONE && 3841 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3842# Double any \ or $. 3843# By default was `s,x,x', remove it if useless. 3844ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3845program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3846 3847if test x"${MISSING+set}" != xset; then 3848 case $am_aux_dir in 3849 *\ * | *\ *) 3850 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3851 *) 3852 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3853 esac 3854fi 3855# Use eval to expand $SHELL 3856if eval "$MISSING --is-lightweight"; then 3857 am_missing_run="$MISSING " 3858else 3859 am_missing_run= 3860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3861$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3862fi 3863 3864if test x"${install_sh+set}" != xset; then 3865 case $am_aux_dir in 3866 *\ * | *\ *) 3867 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3868 *) 3869 install_sh="\${SHELL} $am_aux_dir/install-sh" 3870 esac 3871fi 3872 3873# Installed binaries are usually stripped using 'strip' when the user 3874# run "make install-strip". However 'strip' might not be the right 3875# tool to use in cross-compilation environments, therefore Automake 3876# will honor the 'STRIP' environment variable to overrule this program. 3877if test "$cross_compiling" != no; then 3878 if test -n "$ac_tool_prefix"; then 3879 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3880set dummy ${ac_tool_prefix}strip; ac_word=$2 3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3882$as_echo_n "checking for $ac_word... " >&6; } 3883if ${ac_cv_prog_STRIP+:} false; then : 3884 $as_echo_n "(cached) " >&6 3885else 3886 if test -n "$STRIP"; then 3887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3888else 3889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3890for as_dir in $PATH 3891do 3892 IFS=$as_save_IFS 3893 test -z "$as_dir" && as_dir=. 3894 for ac_exec_ext in '' $ac_executable_extensions; do 3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3896 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3898 break 2 3899 fi 3900done 3901 done 3902IFS=$as_save_IFS 3903 3904fi 3905fi 3906STRIP=$ac_cv_prog_STRIP 3907if test -n "$STRIP"; then 3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3909$as_echo "$STRIP" >&6; } 3910else 3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3912$as_echo "no" >&6; } 3913fi 3914 3915 3916fi 3917if test -z "$ac_cv_prog_STRIP"; then 3918 ac_ct_STRIP=$STRIP 3919 # Extract the first word of "strip", so it can be a program name with args. 3920set dummy strip; ac_word=$2 3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3922$as_echo_n "checking for $ac_word... " >&6; } 3923if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3924 $as_echo_n "(cached) " >&6 3925else 3926 if test -n "$ac_ct_STRIP"; then 3927 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3928else 3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3930for as_dir in $PATH 3931do 3932 IFS=$as_save_IFS 3933 test -z "$as_dir" && as_dir=. 3934 for ac_exec_ext in '' $ac_executable_extensions; do 3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3936 ac_cv_prog_ac_ct_STRIP="strip" 3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3938 break 2 3939 fi 3940done 3941 done 3942IFS=$as_save_IFS 3943 3944fi 3945fi 3946ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3947if test -n "$ac_ct_STRIP"; then 3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3949$as_echo "$ac_ct_STRIP" >&6; } 3950else 3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3952$as_echo "no" >&6; } 3953fi 3954 3955 if test "x$ac_ct_STRIP" = x; then 3956 STRIP=":" 3957 else 3958 case $cross_compiling:$ac_tool_warned in 3959yes:) 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3961$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3962ac_tool_warned=yes ;; 3963esac 3964 STRIP=$ac_ct_STRIP 3965 fi 3966else 3967 STRIP="$ac_cv_prog_STRIP" 3968fi 3969 3970fi 3971INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3974$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3975if test -z "$MKDIR_P"; then 3976 if ${ac_cv_path_mkdir+:} false; then : 3977 $as_echo_n "(cached) " >&6 3978else 3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3980for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3981do 3982 IFS=$as_save_IFS 3983 test -z "$as_dir" && as_dir=. 3984 for ac_prog in mkdir gmkdir; do 3985 for ac_exec_ext in '' $ac_executable_extensions; do 3986 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3988 'mkdir (GNU coreutils) '* | \ 3989 'mkdir (coreutils) '* | \ 3990 'mkdir (fileutils) '4.1*) 3991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3992 break 3;; 3993 esac 3994 done 3995 done 3996 done 3997IFS=$as_save_IFS 3998 3999fi 4000 4001 test -d ./--version && rmdir ./--version 4002 if test "${ac_cv_path_mkdir+set}" = set; then 4003 MKDIR_P="$ac_cv_path_mkdir -p" 4004 else 4005 # As a last resort, use the slow shell script. Don't cache a 4006 # value for MKDIR_P within a source directory, because that will 4007 # break other packages using the cache if that directory is 4008 # removed, or if the value is a relative name. 4009 MKDIR_P="$ac_install_sh -d" 4010 fi 4011fi 4012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 4013$as_echo "$MKDIR_P" >&6; } 4014 4015for ac_prog in gawk mawk nawk awk 4016do 4017 # Extract the first word of "$ac_prog", so it can be a program name with args. 4018set dummy $ac_prog; ac_word=$2 4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4020$as_echo_n "checking for $ac_word... " >&6; } 4021if ${ac_cv_prog_AWK+:} false; then : 4022 $as_echo_n "(cached) " >&6 4023else 4024 if test -n "$AWK"; then 4025 ac_cv_prog_AWK="$AWK" # Let the user override the test. 4026else 4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4028for as_dir in $PATH 4029do 4030 IFS=$as_save_IFS 4031 test -z "$as_dir" && as_dir=. 4032 for ac_exec_ext in '' $ac_executable_extensions; do 4033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4034 ac_cv_prog_AWK="$ac_prog" 4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4036 break 2 4037 fi 4038done 4039 done 4040IFS=$as_save_IFS 4041 4042fi 4043fi 4044AWK=$ac_cv_prog_AWK 4045if test -n "$AWK"; then 4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4047$as_echo "$AWK" >&6; } 4048else 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4050$as_echo "no" >&6; } 4051fi 4052 4053 4054 test -n "$AWK" && break 4055done 4056 4057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 4058$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 4059set x ${MAKE-make} 4060ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 4061if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 4062 $as_echo_n "(cached) " >&6 4063else 4064 cat >conftest.make <<\_ACEOF 4065SHELL = /bin/sh 4066all: 4067 @echo '@@@%%%=$(MAKE)=@@@%%%' 4068_ACEOF 4069# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4070case `${MAKE-make} -f conftest.make 2>/dev/null` in 4071 *@@@%%%=?*=@@@%%%*) 4072 eval ac_cv_prog_make_${ac_make}_set=yes;; 4073 *) 4074 eval ac_cv_prog_make_${ac_make}_set=no;; 4075esac 4076rm -f conftest.make 4077fi 4078if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4080$as_echo "yes" >&6; } 4081 SET_MAKE= 4082else 4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4084$as_echo "no" >&6; } 4085 SET_MAKE="MAKE=${MAKE-make}" 4086fi 4087 4088rm -rf .tst 2>/dev/null 4089mkdir .tst 2>/dev/null 4090if test -d .tst; then 4091 am__leading_dot=. 4092else 4093 am__leading_dot=_ 4094fi 4095rmdir .tst 2>/dev/null 4096 4097DEPDIR="${am__leading_dot}deps" 4098 4099ac_config_commands="$ac_config_commands depfiles" 4100 4101 4102am_make=${MAKE-make} 4103cat > confinc << 'END' 4104am__doit: 4105 @echo this is the am__doit target 4106.PHONY: am__doit 4107END 4108# If we don't find an include directive, just comment out the code. 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4110$as_echo_n "checking for style of include used by $am_make... " >&6; } 4111am__include="#" 4112am__quote= 4113_am_result=none 4114# First try GNU make style include. 4115echo "include confinc" > confmf 4116# Ignore all kinds of additional output from 'make'. 4117case `$am_make -s -f confmf 2> /dev/null` in #( 4118*the\ am__doit\ target*) 4119 am__include=include 4120 am__quote= 4121 _am_result=GNU 4122 ;; 4123esac 4124# Now try BSD make style include. 4125if test "$am__include" = "#"; then 4126 echo '.include "confinc"' > confmf 4127 case `$am_make -s -f confmf 2> /dev/null` in #( 4128 *the\ am__doit\ target*) 4129 am__include=.include 4130 am__quote="\"" 4131 _am_result=BSD 4132 ;; 4133 esac 4134fi 4135 4136 4137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4138$as_echo "$_am_result" >&6; } 4139rm -f confinc confmf 4140 4141# Check whether --enable-dependency-tracking was given. 4142if test "${enable_dependency_tracking+set}" = set; then : 4143 enableval=$enable_dependency_tracking; 4144fi 4145 4146if test "x$enable_dependency_tracking" != xno; then 4147 am_depcomp="$ac_aux_dir/depcomp" 4148 AMDEPBACKSLASH='\' 4149 am__nodep='_no' 4150fi 4151 if test "x$enable_dependency_tracking" != xno; then 4152 AMDEP_TRUE= 4153 AMDEP_FALSE='#' 4154else 4155 AMDEP_TRUE='#' 4156 AMDEP_FALSE= 4157fi 4158 4159 4160# Check whether --enable-silent-rules was given. 4161if test "${enable_silent_rules+set}" = set; then : 4162 enableval=$enable_silent_rules; 4163fi 4164 4165case $enable_silent_rules in # ((( 4166 yes) AM_DEFAULT_VERBOSITY=0;; 4167 no) AM_DEFAULT_VERBOSITY=1;; 4168 *) AM_DEFAULT_VERBOSITY=1;; 4169esac 4170am_make=${MAKE-make} 4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4172$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4173if ${am_cv_make_support_nested_variables+:} false; then : 4174 $as_echo_n "(cached) " >&6 4175else 4176 if $as_echo 'TRUE=$(BAR$(V)) 4177BAR0=false 4178BAR1=true 4179V=1 4180am__doit: 4181 @$(TRUE) 4182.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4183 am_cv_make_support_nested_variables=yes 4184else 4185 am_cv_make_support_nested_variables=no 4186fi 4187fi 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4189$as_echo "$am_cv_make_support_nested_variables" >&6; } 4190if test $am_cv_make_support_nested_variables = yes; then 4191 AM_V='$(V)' 4192 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4193else 4194 AM_V=$AM_DEFAULT_VERBOSITY 4195 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4196fi 4197AM_BACKSLASH='\' 4198 4199if test "`cd $srcdir && pwd`" != "`pwd`"; then 4200 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4201 # is not polluted with repeated "-I." 4202 am__isrc=' -I$(srcdir)' 4203 # test to see if srcdir already configured 4204 if test -f $srcdir/config.status; then 4205 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4206 fi 4207fi 4208 4209# test whether we have cygpath 4210if test -z "$CYGPATH_W"; then 4211 if (cygpath --version) >/dev/null 2>/dev/null; then 4212 CYGPATH_W='cygpath -w' 4213 else 4214 CYGPATH_W=echo 4215 fi 4216fi 4217 4218 4219# Define the identity of the package. 4220 PACKAGE='libxshmfence' 4221 VERSION='1.3' 4222 4223 4224cat >>confdefs.h <<_ACEOF 4225#define PACKAGE "$PACKAGE" 4226_ACEOF 4227 4228 4229cat >>confdefs.h <<_ACEOF 4230#define VERSION "$VERSION" 4231_ACEOF 4232 4233# Some tools Automake needs. 4234 4235ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4236 4237 4238AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4239 4240 4241AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4242 4243 4244AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4245 4246 4247MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4248 4249# For better backward compatibility. To be removed once Automake 1.9.x 4250# dies out for good. For more background, see: 4251# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4252# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4253mkdir_p='$(MKDIR_P)' 4254 4255# We need awk for the "check" target (and possibly the TAP driver). The 4256# system "awk" is bad on some platforms. 4257# Always define AMTAR for backward compatibility. Yes, it's still used 4258# in the wild :-( We should find a proper way to deprecate it ... 4259AMTAR='$${TAR-tar}' 4260 4261 4262# We'll loop over all known methods to create a tar archive until one works. 4263_am_tools='gnutar pax cpio none' 4264 4265am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4266 4267 4268 4269 4270 4271depcc="$CC" am_compiler_list= 4272 4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4274$as_echo_n "checking dependency style of $depcc... " >&6; } 4275if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4276 $as_echo_n "(cached) " >&6 4277else 4278 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4279 # We make a subdir and do the tests there. Otherwise we can end up 4280 # making bogus files that we don't know about and never remove. For 4281 # instance it was reported that on HP-UX the gcc test will end up 4282 # making a dummy file named 'D' -- because '-MD' means "put the output 4283 # in D". 4284 rm -rf conftest.dir 4285 mkdir conftest.dir 4286 # Copy depcomp to subdir because otherwise we won't find it if we're 4287 # using a relative directory. 4288 cp "$am_depcomp" conftest.dir 4289 cd conftest.dir 4290 # We will build objects and dependencies in a subdirectory because 4291 # it helps to detect inapplicable dependency modes. For instance 4292 # both Tru64's cc and ICC support -MD to output dependencies as a 4293 # side effect of compilation, but ICC will put the dependencies in 4294 # the current directory while Tru64 will put them in the object 4295 # directory. 4296 mkdir sub 4297 4298 am_cv_CC_dependencies_compiler_type=none 4299 if test "$am_compiler_list" = ""; then 4300 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4301 fi 4302 am__universal=false 4303 case " $depcc " in #( 4304 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4305 esac 4306 4307 for depmode in $am_compiler_list; do 4308 # Setup a source with many dependencies, because some compilers 4309 # like to wrap large dependency lists on column 80 (with \), and 4310 # we should not choose a depcomp mode which is confused by this. 4311 # 4312 # We need to recreate these files for each test, as the compiler may 4313 # overwrite some of them when testing with obscure command lines. 4314 # This happens at least with the AIX C compiler. 4315 : > sub/conftest.c 4316 for i in 1 2 3 4 5 6; do 4317 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4318 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4319 # Solaris 10 /bin/sh. 4320 echo '/* dummy */' > sub/conftst$i.h 4321 done 4322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4323 4324 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4325 # mode. It turns out that the SunPro C++ compiler does not properly 4326 # handle '-M -o', and we need to detect this. Also, some Intel 4327 # versions had trouble with output in subdirs. 4328 am__obj=sub/conftest.${OBJEXT-o} 4329 am__minus_obj="-o $am__obj" 4330 case $depmode in 4331 gcc) 4332 # This depmode causes a compiler race in universal mode. 4333 test "$am__universal" = false || continue 4334 ;; 4335 nosideeffect) 4336 # After this tag, mechanisms are not by side-effect, so they'll 4337 # only be used when explicitly requested. 4338 if test "x$enable_dependency_tracking" = xyes; then 4339 continue 4340 else 4341 break 4342 fi 4343 ;; 4344 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4345 # This compiler won't grok '-c -o', but also, the minuso test has 4346 # not run yet. These depmodes are late enough in the game, and 4347 # so weak that their functioning should not be impacted. 4348 am__obj=conftest.${OBJEXT-o} 4349 am__minus_obj= 4350 ;; 4351 none) break ;; 4352 esac 4353 if depmode=$depmode \ 4354 source=sub/conftest.c object=$am__obj \ 4355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4356 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4357 >/dev/null 2>conftest.err && 4358 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4359 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4360 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4361 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4362 # icc doesn't choke on unknown options, it will just issue warnings 4363 # or remarks (even with -Werror). So we grep stderr for any message 4364 # that says an option was ignored or not supported. 4365 # When given -MP, icc 7.0 and 7.1 complain thusly: 4366 # icc: Command line warning: ignoring option '-M'; no argument required 4367 # The diagnosis changed in icc 8.0: 4368 # icc: Command line remark: option '-MP' not supported 4369 if (grep 'ignoring option' conftest.err || 4370 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4371 am_cv_CC_dependencies_compiler_type=$depmode 4372 break 4373 fi 4374 fi 4375 done 4376 4377 cd .. 4378 rm -rf conftest.dir 4379else 4380 am_cv_CC_dependencies_compiler_type=none 4381fi 4382 4383fi 4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4385$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4386CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4387 4388 if 4389 test "x$enable_dependency_tracking" != xno \ 4390 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4391 am__fastdepCC_TRUE= 4392 am__fastdepCC_FALSE='#' 4393else 4394 am__fastdepCC_TRUE='#' 4395 am__fastdepCC_FALSE= 4396fi 4397 4398 4399 4400# POSIX will say in a future version that running "rm -f" with no argument 4401# is OK; and we want to be able to make that assumption in our Makefile 4402# recipes. So use an aggressive probe to check that the usage we want is 4403# actually supported "in the wild" to an acceptable degree. 4404# See automake bug#10828. 4405# To make any issue more visible, cause the running configure to be aborted 4406# by default if the 'rm' program in use doesn't match our expectations; the 4407# user can still override this though. 4408if rm -f && rm -fr && rm -rf; then : OK; else 4409 cat >&2 <<'END' 4410Oops! 4411 4412Your 'rm' program seems unable to run without file operands specified 4413on the command line, even when the '-f' option is present. This is contrary 4414to the behaviour of most rm programs out there, and not conforming with 4415the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4416 4417Please tell bug-automake@gnu.org about your system, including the value 4418of your $PATH and any error possibly output before this message. This 4419can help us improve future automake versions. 4420 4421END 4422 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4423 echo 'Configuration will proceed anyway, since you have set the' >&2 4424 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4425 echo >&2 4426 else 4427 cat >&2 <<'END' 4428Aborting the configuration process, to ensure you take notice of the issue. 4429 4430You can download and install GNU coreutils to get an 'rm' implementation 4431that behaves properly: <http://www.gnu.org/software/coreutils/>. 4432 4433If you want to complete the configuration process using your problematic 4434'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4435to "yes", and re-run configure. 4436 4437END 4438 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4439 fi 4440fi 4441 4442 4443# Initialize libtool 4444case `pwd` in 4445 *\ * | *\ *) 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4447$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4448esac 4449 4450 4451 4452macro_version='2.4.6' 4453macro_revision='2.4.6' 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467ltmain=$ac_aux_dir/ltmain.sh 4468 4469# Make sure we can run config.sub. 4470$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4471 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4472 4473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4474$as_echo_n "checking build system type... " >&6; } 4475if ${ac_cv_build+:} false; then : 4476 $as_echo_n "(cached) " >&6 4477else 4478 ac_build_alias=$build_alias 4479test "x$ac_build_alias" = x && 4480 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4481test "x$ac_build_alias" = x && 4482 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4483ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4484 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4485 4486fi 4487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4488$as_echo "$ac_cv_build" >&6; } 4489case $ac_cv_build in 4490*-*-*) ;; 4491*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4492esac 4493build=$ac_cv_build 4494ac_save_IFS=$IFS; IFS='-' 4495set x $ac_cv_build 4496shift 4497build_cpu=$1 4498build_vendor=$2 4499shift; shift 4500# Remember, the first character of IFS is used to create $*, 4501# except with old shells: 4502build_os=$* 4503IFS=$ac_save_IFS 4504case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4505 4506 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4508$as_echo_n "checking host system type... " >&6; } 4509if ${ac_cv_host+:} false; then : 4510 $as_echo_n "(cached) " >&6 4511else 4512 if test "x$host_alias" = x; then 4513 ac_cv_host=$ac_cv_build 4514else 4515 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4516 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4517fi 4518 4519fi 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4521$as_echo "$ac_cv_host" >&6; } 4522case $ac_cv_host in 4523*-*-*) ;; 4524*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4525esac 4526host=$ac_cv_host 4527ac_save_IFS=$IFS; IFS='-' 4528set x $ac_cv_host 4529shift 4530host_cpu=$1 4531host_vendor=$2 4532shift; shift 4533# Remember, the first character of IFS is used to create $*, 4534# except with old shells: 4535host_os=$* 4536IFS=$ac_save_IFS 4537case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4538 4539 4540# Backslashify metacharacters that are still active within 4541# double-quoted strings. 4542sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4543 4544# Same as above, but do not quote variable references. 4545double_quote_subst='s/\(["`\\]\)/\\\1/g' 4546 4547# Sed substitution to delay expansion of an escaped shell variable in a 4548# double_quote_subst'ed string. 4549delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4550 4551# Sed substitution to delay expansion of an escaped single quote. 4552delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4553 4554# Sed substitution to avoid accidental globbing in evaled expressions 4555no_glob_subst='s/\*/\\\*/g' 4556 4557ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4558ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4559ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4560 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4562$as_echo_n "checking how to print strings... " >&6; } 4563# Test print first, because it will be a builtin if present. 4564if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4565 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4566 ECHO='print -r --' 4567elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4568 ECHO='printf %s\n' 4569else 4570 # Use this function as a fallback that always works. 4571 func_fallback_echo () 4572 { 4573 eval 'cat <<_LTECHO_EOF 4574$1 4575_LTECHO_EOF' 4576 } 4577 ECHO='func_fallback_echo' 4578fi 4579 4580# func_echo_all arg... 4581# Invoke $ECHO with all args, space-separated. 4582func_echo_all () 4583{ 4584 $ECHO "" 4585} 4586 4587case $ECHO in 4588 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4589$as_echo "printf" >&6; } ;; 4590 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4591$as_echo "print -r" >&6; } ;; 4592 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4593$as_echo "cat" >&6; } ;; 4594esac 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4610$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4611if ${ac_cv_path_SED+:} false; then : 4612 $as_echo_n "(cached) " >&6 4613else 4614 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4615 for ac_i in 1 2 3 4 5 6 7; do 4616 ac_script="$ac_script$as_nl$ac_script" 4617 done 4618 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4619 { ac_script=; unset ac_script;} 4620 if test -z "$SED"; then 4621 ac_path_SED_found=false 4622 # Loop through the user's path and test for each of PROGNAME-LIST 4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4624for as_dir in $PATH 4625do 4626 IFS=$as_save_IFS 4627 test -z "$as_dir" && as_dir=. 4628 for ac_prog in sed gsed; do 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4631 as_fn_executable_p "$ac_path_SED" || continue 4632# Check for GNU ac_path_SED and select it if it is found. 4633 # Check for GNU $ac_path_SED 4634case `"$ac_path_SED" --version 2>&1` in 4635*GNU*) 4636 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4637*) 4638 ac_count=0 4639 $as_echo_n 0123456789 >"conftest.in" 4640 while : 4641 do 4642 cat "conftest.in" "conftest.in" >"conftest.tmp" 4643 mv "conftest.tmp" "conftest.in" 4644 cp "conftest.in" "conftest.nl" 4645 $as_echo '' >> "conftest.nl" 4646 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4647 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4648 as_fn_arith $ac_count + 1 && ac_count=$as_val 4649 if test $ac_count -gt ${ac_path_SED_max-0}; then 4650 # Best one so far, save it but keep looking for a better one 4651 ac_cv_path_SED="$ac_path_SED" 4652 ac_path_SED_max=$ac_count 4653 fi 4654 # 10*(2^10) chars as input seems more than enough 4655 test $ac_count -gt 10 && break 4656 done 4657 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4658esac 4659 4660 $ac_path_SED_found && break 3 4661 done 4662 done 4663 done 4664IFS=$as_save_IFS 4665 if test -z "$ac_cv_path_SED"; then 4666 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4667 fi 4668else 4669 ac_cv_path_SED=$SED 4670fi 4671 4672fi 4673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4674$as_echo "$ac_cv_path_SED" >&6; } 4675 SED="$ac_cv_path_SED" 4676 rm -f conftest.sed 4677 4678test -z "$SED" && SED=sed 4679Xsed="$SED -e 1s/^X//" 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4692$as_echo_n "checking for fgrep... " >&6; } 4693if ${ac_cv_path_FGREP+:} false; then : 4694 $as_echo_n "(cached) " >&6 4695else 4696 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4697 then ac_cv_path_FGREP="$GREP -F" 4698 else 4699 if test -z "$FGREP"; then 4700 ac_path_FGREP_found=false 4701 # Loop through the user's path and test for each of PROGNAME-LIST 4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4704do 4705 IFS=$as_save_IFS 4706 test -z "$as_dir" && as_dir=. 4707 for ac_prog in fgrep; do 4708 for ac_exec_ext in '' $ac_executable_extensions; do 4709 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4710 as_fn_executable_p "$ac_path_FGREP" || continue 4711# Check for GNU ac_path_FGREP and select it if it is found. 4712 # Check for GNU $ac_path_FGREP 4713case `"$ac_path_FGREP" --version 2>&1` in 4714*GNU*) 4715 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4716*) 4717 ac_count=0 4718 $as_echo_n 0123456789 >"conftest.in" 4719 while : 4720 do 4721 cat "conftest.in" "conftest.in" >"conftest.tmp" 4722 mv "conftest.tmp" "conftest.in" 4723 cp "conftest.in" "conftest.nl" 4724 $as_echo 'FGREP' >> "conftest.nl" 4725 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4727 as_fn_arith $ac_count + 1 && ac_count=$as_val 4728 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4729 # Best one so far, save it but keep looking for a better one 4730 ac_cv_path_FGREP="$ac_path_FGREP" 4731 ac_path_FGREP_max=$ac_count 4732 fi 4733 # 10*(2^10) chars as input seems more than enough 4734 test $ac_count -gt 10 && break 4735 done 4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4737esac 4738 4739 $ac_path_FGREP_found && break 3 4740 done 4741 done 4742 done 4743IFS=$as_save_IFS 4744 if test -z "$ac_cv_path_FGREP"; then 4745 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4746 fi 4747else 4748 ac_cv_path_FGREP=$FGREP 4749fi 4750 4751 fi 4752fi 4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4754$as_echo "$ac_cv_path_FGREP" >&6; } 4755 FGREP="$ac_cv_path_FGREP" 4756 4757 4758test -z "$GREP" && GREP=grep 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778# Check whether --with-gnu-ld was given. 4779if test "${with_gnu_ld+set}" = set; then : 4780 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4781else 4782 with_gnu_ld=no 4783fi 4784 4785ac_prog=ld 4786if test yes = "$GCC"; then 4787 # Check if gcc -print-prog-name=ld gives a path. 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4789$as_echo_n "checking for ld used by $CC... " >&6; } 4790 case $host in 4791 *-*-mingw*) 4792 # gcc leaves a trailing carriage return, which upsets mingw 4793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4794 *) 4795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4796 esac 4797 case $ac_prog in 4798 # Accept absolute paths. 4799 [\\/]* | ?:[\\/]*) 4800 re_direlt='/[^/][^/]*/\.\./' 4801 # Canonicalize the pathname of ld 4802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4805 done 4806 test -z "$LD" && LD=$ac_prog 4807 ;; 4808 "") 4809 # If it fails, then pretend we aren't using GCC. 4810 ac_prog=ld 4811 ;; 4812 *) 4813 # If it is relative, then search for the first ld in PATH. 4814 with_gnu_ld=unknown 4815 ;; 4816 esac 4817elif test yes = "$with_gnu_ld"; then 4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4819$as_echo_n "checking for GNU ld... " >&6; } 4820else 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4822$as_echo_n "checking for non-GNU ld... " >&6; } 4823fi 4824if ${lt_cv_path_LD+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826else 4827 if test -z "$LD"; then 4828 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4829 for ac_dir in $PATH; do 4830 IFS=$lt_save_ifs 4831 test -z "$ac_dir" && ac_dir=. 4832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4833 lt_cv_path_LD=$ac_dir/$ac_prog 4834 # Check to see if the program is GNU ld. I'd rather use --version, 4835 # but apparently some variants of GNU ld only accept -v. 4836 # Break only if it was the GNU/non-GNU ld that we prefer. 4837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4838 *GNU* | *'with BFD'*) 4839 test no != "$with_gnu_ld" && break 4840 ;; 4841 *) 4842 test yes != "$with_gnu_ld" && break 4843 ;; 4844 esac 4845 fi 4846 done 4847 IFS=$lt_save_ifs 4848else 4849 lt_cv_path_LD=$LD # Let the user override the test with a path. 4850fi 4851fi 4852 4853LD=$lt_cv_path_LD 4854if test -n "$LD"; then 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4856$as_echo "$LD" >&6; } 4857else 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4859$as_echo "no" >&6; } 4860fi 4861test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4863$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4864if ${lt_cv_prog_gnu_ld+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4868case `$LD -v 2>&1 </dev/null` in 4869*GNU* | *'with BFD'*) 4870 lt_cv_prog_gnu_ld=yes 4871 ;; 4872*) 4873 lt_cv_prog_gnu_ld=no 4874 ;; 4875esac 4876fi 4877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4878$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4879with_gnu_ld=$lt_cv_prog_gnu_ld 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4890$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4891if ${lt_cv_path_NM+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 if test -n "$NM"; then 4895 # Let the user override the test. 4896 lt_cv_path_NM=$NM 4897else 4898 lt_nm_to_check=${ac_tool_prefix}nm 4899 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4900 lt_nm_to_check="$lt_nm_to_check nm" 4901 fi 4902 for lt_tmp_nm in $lt_nm_to_check; do 4903 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4904 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4905 IFS=$lt_save_ifs 4906 test -z "$ac_dir" && ac_dir=. 4907 tmp_nm=$ac_dir/$lt_tmp_nm 4908 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4909 # Check to see if the nm accepts a BSD-compat flag. 4910 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4911 # nm: unknown option "B" ignored 4912 # Tru64's nm complains that /dev/null is an invalid object file 4913 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4914 case $build_os in 4915 mingw*) lt_bad_file=conftest.nm/nofile ;; 4916 *) lt_bad_file=/dev/null ;; 4917 esac 4918 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4919 *$lt_bad_file* | *'Invalid file or object type'*) 4920 lt_cv_path_NM="$tmp_nm -B" 4921 break 2 4922 ;; 4923 *) 4924 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4925 */dev/null*) 4926 lt_cv_path_NM="$tmp_nm -p" 4927 break 2 4928 ;; 4929 *) 4930 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4931 continue # so that we can try to find one that supports BSD flags 4932 ;; 4933 esac 4934 ;; 4935 esac 4936 fi 4937 done 4938 IFS=$lt_save_ifs 4939 done 4940 : ${lt_cv_path_NM=no} 4941fi 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4944$as_echo "$lt_cv_path_NM" >&6; } 4945if test no != "$lt_cv_path_NM"; then 4946 NM=$lt_cv_path_NM 4947else 4948 # Didn't find any BSD compatible name lister, look for dumpbin. 4949 if test -n "$DUMPBIN"; then : 4950 # Let the user override the test. 4951 else 4952 if test -n "$ac_tool_prefix"; then 4953 for ac_prog in dumpbin "link -dump" 4954 do 4955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4956set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if ${ac_cv_prog_DUMPBIN+:} false; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 if test -n "$DUMPBIN"; then 4963 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4964else 4965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4966for as_dir in $PATH 4967do 4968 IFS=$as_save_IFS 4969 test -z "$as_dir" && as_dir=. 4970 for ac_exec_ext in '' $ac_executable_extensions; do 4971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4972 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4974 break 2 4975 fi 4976done 4977 done 4978IFS=$as_save_IFS 4979 4980fi 4981fi 4982DUMPBIN=$ac_cv_prog_DUMPBIN 4983if test -n "$DUMPBIN"; then 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4985$as_echo "$DUMPBIN" >&6; } 4986else 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4988$as_echo "no" >&6; } 4989fi 4990 4991 4992 test -n "$DUMPBIN" && break 4993 done 4994fi 4995if test -z "$DUMPBIN"; then 4996 ac_ct_DUMPBIN=$DUMPBIN 4997 for ac_prog in dumpbin "link -dump" 4998do 4999 # Extract the first word of "$ac_prog", so it can be a program name with args. 5000set dummy $ac_prog; ac_word=$2 5001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5002$as_echo_n "checking for $ac_word... " >&6; } 5003if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5004 $as_echo_n "(cached) " >&6 5005else 5006 if test -n "$ac_ct_DUMPBIN"; then 5007 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5008else 5009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5010for as_dir in $PATH 5011do 5012 IFS=$as_save_IFS 5013 test -z "$as_dir" && as_dir=. 5014 for ac_exec_ext in '' $ac_executable_extensions; do 5015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5016 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5018 break 2 5019 fi 5020done 5021 done 5022IFS=$as_save_IFS 5023 5024fi 5025fi 5026ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5027if test -n "$ac_ct_DUMPBIN"; then 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5029$as_echo "$ac_ct_DUMPBIN" >&6; } 5030else 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5032$as_echo "no" >&6; } 5033fi 5034 5035 5036 test -n "$ac_ct_DUMPBIN" && break 5037done 5038 5039 if test "x$ac_ct_DUMPBIN" = x; then 5040 DUMPBIN=":" 5041 else 5042 case $cross_compiling:$ac_tool_warned in 5043yes:) 5044{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5045$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5046ac_tool_warned=yes ;; 5047esac 5048 DUMPBIN=$ac_ct_DUMPBIN 5049 fi 5050fi 5051 5052 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 5053 *COFF*) 5054 DUMPBIN="$DUMPBIN -symbols -headers" 5055 ;; 5056 *) 5057 DUMPBIN=: 5058 ;; 5059 esac 5060 fi 5061 5062 if test : != "$DUMPBIN"; then 5063 NM=$DUMPBIN 5064 fi 5065fi 5066test -z "$NM" && NM=nm 5067 5068 5069 5070 5071 5072 5073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5074$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5075if ${lt_cv_nm_interface+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 lt_cv_nm_interface="BSD nm" 5079 echo "int some_variable = 0;" > conftest.$ac_ext 5080 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5081 (eval "$ac_compile" 2>conftest.err) 5082 cat conftest.err >&5 5083 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5084 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5085 cat conftest.err >&5 5086 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5087 cat conftest.out >&5 5088 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5089 lt_cv_nm_interface="MS dumpbin" 5090 fi 5091 rm -f conftest* 5092fi 5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5094$as_echo "$lt_cv_nm_interface" >&6; } 5095 5096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5097$as_echo_n "checking whether ln -s works... " >&6; } 5098LN_S=$as_ln_s 5099if test "$LN_S" = "ln -s"; then 5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5101$as_echo "yes" >&6; } 5102else 5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5104$as_echo "no, using $LN_S" >&6; } 5105fi 5106 5107# find the maximum length of command line arguments 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5109$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5110if ${lt_cv_sys_max_cmd_len+:} false; then : 5111 $as_echo_n "(cached) " >&6 5112else 5113 i=0 5114 teststring=ABCD 5115 5116 case $build_os in 5117 msdosdjgpp*) 5118 # On DJGPP, this test can blow up pretty badly due to problems in libc 5119 # (any single argument exceeding 2000 bytes causes a buffer overrun 5120 # during glob expansion). Even if it were fixed, the result of this 5121 # check would be larger than it should be. 5122 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5123 ;; 5124 5125 gnu*) 5126 # Under GNU Hurd, this test is not required because there is 5127 # no limit to the length of command line arguments. 5128 # Libtool will interpret -1 as no limit whatsoever 5129 lt_cv_sys_max_cmd_len=-1; 5130 ;; 5131 5132 cygwin* | mingw* | cegcc*) 5133 # On Win9x/ME, this test blows up -- it succeeds, but takes 5134 # about 5 minutes as the teststring grows exponentially. 5135 # Worse, since 9x/ME are not pre-emptively multitasking, 5136 # you end up with a "frozen" computer, even though with patience 5137 # the test eventually succeeds (with a max line length of 256k). 5138 # Instead, let's just punt: use the minimum linelength reported by 5139 # all of the supported platforms: 8192 (on NT/2K/XP). 5140 lt_cv_sys_max_cmd_len=8192; 5141 ;; 5142 5143 mint*) 5144 # On MiNT this can take a long time and run out of memory. 5145 lt_cv_sys_max_cmd_len=8192; 5146 ;; 5147 5148 amigaos*) 5149 # On AmigaOS with pdksh, this test takes hours, literally. 5150 # So we just punt and use a minimum line length of 8192. 5151 lt_cv_sys_max_cmd_len=8192; 5152 ;; 5153 5154 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 5155 # This has been around since 386BSD, at least. Likely further. 5156 if test -x /sbin/sysctl; then 5157 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5158 elif test -x /usr/sbin/sysctl; then 5159 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5160 else 5161 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5162 fi 5163 # And add a safety zone 5164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5165 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5166 ;; 5167 5168 interix*) 5169 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5170 lt_cv_sys_max_cmd_len=196608 5171 ;; 5172 5173 os2*) 5174 # The test takes a long time on OS/2. 5175 lt_cv_sys_max_cmd_len=8192 5176 ;; 5177 5178 osf*) 5179 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5180 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5181 # nice to cause kernel panics so lets avoid the loop below. 5182 # First set a reasonable default. 5183 lt_cv_sys_max_cmd_len=16384 5184 # 5185 if test -x /sbin/sysconfig; then 5186 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5187 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5188 esac 5189 fi 5190 ;; 5191 sco3.2v5*) 5192 lt_cv_sys_max_cmd_len=102400 5193 ;; 5194 sysv5* | sco5v6* | sysv4.2uw2*) 5195 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5196 if test -n "$kargmax"; then 5197 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5198 else 5199 lt_cv_sys_max_cmd_len=32768 5200 fi 5201 ;; 5202 *) 5203 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5204 if test -n "$lt_cv_sys_max_cmd_len" && \ 5205 test undefined != "$lt_cv_sys_max_cmd_len"; then 5206 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5207 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5208 else 5209 # Make teststring a little bigger before we do anything with it. 5210 # a 1K string should be a reasonable start. 5211 for i in 1 2 3 4 5 6 7 8; do 5212 teststring=$teststring$teststring 5213 done 5214 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5215 # If test is not a shell built-in, we'll probably end up computing a 5216 # maximum length that is only half of the actual maximum length, but 5217 # we can't tell. 5218 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 5219 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5220 test 17 != "$i" # 1/2 MB should be enough 5221 do 5222 i=`expr $i + 1` 5223 teststring=$teststring$teststring 5224 done 5225 # Only check the string length outside the loop. 5226 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5227 teststring= 5228 # Add a significant safety factor because C++ compilers can tack on 5229 # massive amounts of additional arguments before passing them to the 5230 # linker. It appears as though 1/2 is a usable value. 5231 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5232 fi 5233 ;; 5234 esac 5235 5236fi 5237 5238if test -n "$lt_cv_sys_max_cmd_len"; then 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5240$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5241else 5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5243$as_echo "none" >&6; } 5244fi 5245max_cmd_len=$lt_cv_sys_max_cmd_len 5246 5247 5248 5249 5250 5251 5252: ${CP="cp -f"} 5253: ${MV="mv -f"} 5254: ${RM="rm -f"} 5255 5256if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5257 lt_unset=unset 5258else 5259 lt_unset=false 5260fi 5261 5262 5263 5264 5265 5266# test EBCDIC or ASCII 5267case `echo X|tr X '\101'` in 5268 A) # ASCII based system 5269 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5270 lt_SP2NL='tr \040 \012' 5271 lt_NL2SP='tr \015\012 \040\040' 5272 ;; 5273 *) # EBCDIC based system 5274 lt_SP2NL='tr \100 \n' 5275 lt_NL2SP='tr \r\n \100\100' 5276 ;; 5277esac 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5288$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5289if ${lt_cv_to_host_file_cmd+:} false; then : 5290 $as_echo_n "(cached) " >&6 5291else 5292 case $host in 5293 *-*-mingw* ) 5294 case $build in 5295 *-*-mingw* ) # actually msys 5296 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5297 ;; 5298 *-*-cygwin* ) 5299 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5300 ;; 5301 * ) # otherwise, assume *nix 5302 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5303 ;; 5304 esac 5305 ;; 5306 *-*-cygwin* ) 5307 case $build in 5308 *-*-mingw* ) # actually msys 5309 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5310 ;; 5311 *-*-cygwin* ) 5312 lt_cv_to_host_file_cmd=func_convert_file_noop 5313 ;; 5314 * ) # otherwise, assume *nix 5315 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5316 ;; 5317 esac 5318 ;; 5319 * ) # unhandled hosts (and "normal" native builds) 5320 lt_cv_to_host_file_cmd=func_convert_file_noop 5321 ;; 5322esac 5323 5324fi 5325 5326to_host_file_cmd=$lt_cv_to_host_file_cmd 5327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5328$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5329 5330 5331 5332 5333 5334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5335$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5336if ${lt_cv_to_tool_file_cmd+:} false; then : 5337 $as_echo_n "(cached) " >&6 5338else 5339 #assume ordinary cross tools, or native build. 5340lt_cv_to_tool_file_cmd=func_convert_file_noop 5341case $host in 5342 *-*-mingw* ) 5343 case $build in 5344 *-*-mingw* ) # actually msys 5345 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5346 ;; 5347 esac 5348 ;; 5349esac 5350 5351fi 5352 5353to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5355$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5356 5357 5358 5359 5360 5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5362$as_echo_n "checking for $LD option to reload object files... " >&6; } 5363if ${lt_cv_ld_reload_flag+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 lt_cv_ld_reload_flag='-r' 5367fi 5368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5369$as_echo "$lt_cv_ld_reload_flag" >&6; } 5370reload_flag=$lt_cv_ld_reload_flag 5371case $reload_flag in 5372"" | " "*) ;; 5373*) reload_flag=" $reload_flag" ;; 5374esac 5375reload_cmds='$LD$reload_flag -o $output$reload_objs' 5376case $host_os in 5377 cygwin* | mingw* | pw32* | cegcc*) 5378 if test yes != "$GCC"; then 5379 reload_cmds=false 5380 fi 5381 ;; 5382 darwin*) 5383 if test yes = "$GCC"; then 5384 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5385 else 5386 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5387 fi 5388 ;; 5389esac 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399if test -n "$ac_tool_prefix"; then 5400 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5401set dummy ${ac_tool_prefix}objdump; ac_word=$2 5402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5403$as_echo_n "checking for $ac_word... " >&6; } 5404if ${ac_cv_prog_OBJDUMP+:} false; then : 5405 $as_echo_n "(cached) " >&6 5406else 5407 if test -n "$OBJDUMP"; then 5408 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5409else 5410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5411for as_dir in $PATH 5412do 5413 IFS=$as_save_IFS 5414 test -z "$as_dir" && as_dir=. 5415 for ac_exec_ext in '' $ac_executable_extensions; do 5416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5417 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5419 break 2 5420 fi 5421done 5422 done 5423IFS=$as_save_IFS 5424 5425fi 5426fi 5427OBJDUMP=$ac_cv_prog_OBJDUMP 5428if test -n "$OBJDUMP"; then 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5430$as_echo "$OBJDUMP" >&6; } 5431else 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5433$as_echo "no" >&6; } 5434fi 5435 5436 5437fi 5438if test -z "$ac_cv_prog_OBJDUMP"; then 5439 ac_ct_OBJDUMP=$OBJDUMP 5440 # Extract the first word of "objdump", so it can be a program name with args. 5441set dummy objdump; ac_word=$2 5442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5443$as_echo_n "checking for $ac_word... " >&6; } 5444if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5445 $as_echo_n "(cached) " >&6 5446else 5447 if test -n "$ac_ct_OBJDUMP"; then 5448 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5449else 5450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5451for as_dir in $PATH 5452do 5453 IFS=$as_save_IFS 5454 test -z "$as_dir" && as_dir=. 5455 for ac_exec_ext in '' $ac_executable_extensions; do 5456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5457 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5459 break 2 5460 fi 5461done 5462 done 5463IFS=$as_save_IFS 5464 5465fi 5466fi 5467ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5468if test -n "$ac_ct_OBJDUMP"; then 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5470$as_echo "$ac_ct_OBJDUMP" >&6; } 5471else 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5473$as_echo "no" >&6; } 5474fi 5475 5476 if test "x$ac_ct_OBJDUMP" = x; then 5477 OBJDUMP="false" 5478 else 5479 case $cross_compiling:$ac_tool_warned in 5480yes:) 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5483ac_tool_warned=yes ;; 5484esac 5485 OBJDUMP=$ac_ct_OBJDUMP 5486 fi 5487else 5488 OBJDUMP="$ac_cv_prog_OBJDUMP" 5489fi 5490 5491test -z "$OBJDUMP" && OBJDUMP=objdump 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5502$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5503if ${lt_cv_deplibs_check_method+:} false; then : 5504 $as_echo_n "(cached) " >&6 5505else 5506 lt_cv_file_magic_cmd='$MAGIC_CMD' 5507lt_cv_file_magic_test_file= 5508lt_cv_deplibs_check_method='unknown' 5509# Need to set the preceding variable on all platforms that support 5510# interlibrary dependencies. 5511# 'none' -- dependencies not supported. 5512# 'unknown' -- same as none, but documents that we really don't know. 5513# 'pass_all' -- all dependencies passed with no checks. 5514# 'test_compile' -- check by making test program. 5515# 'file_magic [[regex]]' -- check by looking for files in library path 5516# that responds to the $file_magic_cmd with a given extended regex. 5517# If you have 'file' or equivalent on your system and you're not sure 5518# whether 'pass_all' will *always* work, you probably want this one. 5519 5520case $host_os in 5521aix[4-9]*) 5522 lt_cv_deplibs_check_method=pass_all 5523 ;; 5524 5525beos*) 5526 lt_cv_deplibs_check_method=pass_all 5527 ;; 5528 5529bsdi[45]*) 5530 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5531 lt_cv_file_magic_cmd='/usr/bin/file -L' 5532 lt_cv_file_magic_test_file=/shlib/libc.so 5533 ;; 5534 5535cygwin*) 5536 # func_win32_libid is a shell function defined in ltmain.sh 5537 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5538 lt_cv_file_magic_cmd='func_win32_libid' 5539 ;; 5540 5541mingw* | pw32*) 5542 # Base MSYS/MinGW do not provide the 'file' command needed by 5543 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5544 # unless we find 'file', for example because we are cross-compiling. 5545 if ( file / ) >/dev/null 2>&1; then 5546 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5547 lt_cv_file_magic_cmd='func_win32_libid' 5548 else 5549 # Keep this pattern in sync with the one in func_win32_libid. 5550 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5551 lt_cv_file_magic_cmd='$OBJDUMP -f' 5552 fi 5553 ;; 5554 5555cegcc*) 5556 # use the weaker test based on 'objdump'. See mingw*. 5557 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5558 lt_cv_file_magic_cmd='$OBJDUMP -f' 5559 ;; 5560 5561darwin* | rhapsody*) 5562 lt_cv_deplibs_check_method=pass_all 5563 ;; 5564 5565freebsd* | dragonfly*) 5566 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5567 case $host_cpu in 5568 i*86 ) 5569 # Not sure whether the presence of OpenBSD here was a mistake. 5570 # Let's accept both of them until this is cleared up. 5571 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5572 lt_cv_file_magic_cmd=/usr/bin/file 5573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5574 ;; 5575 esac 5576 else 5577 lt_cv_deplibs_check_method=pass_all 5578 fi 5579 ;; 5580 5581haiku*) 5582 lt_cv_deplibs_check_method=pass_all 5583 ;; 5584 5585hpux10.20* | hpux11*) 5586 lt_cv_file_magic_cmd=/usr/bin/file 5587 case $host_cpu in 5588 ia64*) 5589 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5590 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5591 ;; 5592 hppa*64*) 5593 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]' 5594 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5595 ;; 5596 *) 5597 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5598 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5599 ;; 5600 esac 5601 ;; 5602 5603interix[3-9]*) 5604 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5605 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5606 ;; 5607 5608irix5* | irix6* | nonstopux*) 5609 case $LD in 5610 *-32|*"-32 ") libmagic=32-bit;; 5611 *-n32|*"-n32 ") libmagic=N32;; 5612 *-64|*"-64 ") libmagic=64-bit;; 5613 *) libmagic=never-match;; 5614 esac 5615 lt_cv_deplibs_check_method=pass_all 5616 ;; 5617 5618# This must be glibc/ELF. 5619linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5620 lt_cv_deplibs_check_method=pass_all 5621 ;; 5622 5623netbsd*) 5624 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5626 else 5627 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5628 fi 5629 ;; 5630 5631newos6*) 5632 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5633 lt_cv_file_magic_cmd=/usr/bin/file 5634 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5635 ;; 5636 5637*nto* | *qnx*) 5638 lt_cv_deplibs_check_method=pass_all 5639 ;; 5640 5641openbsd* | bitrig*) 5642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5643 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5644 else 5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5646 fi 5647 ;; 5648 5649osf3* | osf4* | osf5*) 5650 lt_cv_deplibs_check_method=pass_all 5651 ;; 5652 5653rdos*) 5654 lt_cv_deplibs_check_method=pass_all 5655 ;; 5656 5657solaris*) 5658 lt_cv_deplibs_check_method=pass_all 5659 ;; 5660 5661sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5662 lt_cv_deplibs_check_method=pass_all 5663 ;; 5664 5665sysv4 | sysv4.3*) 5666 case $host_vendor in 5667 motorola) 5668 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]' 5669 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5670 ;; 5671 ncr) 5672 lt_cv_deplibs_check_method=pass_all 5673 ;; 5674 sequent) 5675 lt_cv_file_magic_cmd='/bin/file' 5676 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5677 ;; 5678 sni) 5679 lt_cv_file_magic_cmd='/bin/file' 5680 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5681 lt_cv_file_magic_test_file=/lib/libc.so 5682 ;; 5683 siemens) 5684 lt_cv_deplibs_check_method=pass_all 5685 ;; 5686 pc) 5687 lt_cv_deplibs_check_method=pass_all 5688 ;; 5689 esac 5690 ;; 5691 5692tpf*) 5693 lt_cv_deplibs_check_method=pass_all 5694 ;; 5695os2*) 5696 lt_cv_deplibs_check_method=pass_all 5697 ;; 5698esac 5699 5700fi 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5702$as_echo "$lt_cv_deplibs_check_method" >&6; } 5703 5704file_magic_glob= 5705want_nocaseglob=no 5706if test "$build" = "$host"; then 5707 case $host_os in 5708 mingw* | pw32*) 5709 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5710 want_nocaseglob=yes 5711 else 5712 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5713 fi 5714 ;; 5715 esac 5716fi 5717 5718file_magic_cmd=$lt_cv_file_magic_cmd 5719deplibs_check_method=$lt_cv_deplibs_check_method 5720test -z "$deplibs_check_method" && deplibs_check_method=unknown 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743if test -n "$ac_tool_prefix"; then 5744 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5745set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5747$as_echo_n "checking for $ac_word... " >&6; } 5748if ${ac_cv_prog_DLLTOOL+:} false; then : 5749 $as_echo_n "(cached) " >&6 5750else 5751 if test -n "$DLLTOOL"; then 5752 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5753else 5754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5755for as_dir in $PATH 5756do 5757 IFS=$as_save_IFS 5758 test -z "$as_dir" && as_dir=. 5759 for ac_exec_ext in '' $ac_executable_extensions; do 5760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5761 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5763 break 2 5764 fi 5765done 5766 done 5767IFS=$as_save_IFS 5768 5769fi 5770fi 5771DLLTOOL=$ac_cv_prog_DLLTOOL 5772if test -n "$DLLTOOL"; then 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5774$as_echo "$DLLTOOL" >&6; } 5775else 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5777$as_echo "no" >&6; } 5778fi 5779 5780 5781fi 5782if test -z "$ac_cv_prog_DLLTOOL"; then 5783 ac_ct_DLLTOOL=$DLLTOOL 5784 # Extract the first word of "dlltool", so it can be a program name with args. 5785set dummy dlltool; ac_word=$2 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5787$as_echo_n "checking for $ac_word... " >&6; } 5788if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5789 $as_echo_n "(cached) " >&6 5790else 5791 if test -n "$ac_ct_DLLTOOL"; then 5792 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5793else 5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5795for as_dir in $PATH 5796do 5797 IFS=$as_save_IFS 5798 test -z "$as_dir" && as_dir=. 5799 for ac_exec_ext in '' $ac_executable_extensions; do 5800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5801 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5803 break 2 5804 fi 5805done 5806 done 5807IFS=$as_save_IFS 5808 5809fi 5810fi 5811ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5812if test -n "$ac_ct_DLLTOOL"; then 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5814$as_echo "$ac_ct_DLLTOOL" >&6; } 5815else 5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5817$as_echo "no" >&6; } 5818fi 5819 5820 if test "x$ac_ct_DLLTOOL" = x; then 5821 DLLTOOL="false" 5822 else 5823 case $cross_compiling:$ac_tool_warned in 5824yes:) 5825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5827ac_tool_warned=yes ;; 5828esac 5829 DLLTOOL=$ac_ct_DLLTOOL 5830 fi 5831else 5832 DLLTOOL="$ac_cv_prog_DLLTOOL" 5833fi 5834 5835test -z "$DLLTOOL" && DLLTOOL=dlltool 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5847$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5848if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5849 $as_echo_n "(cached) " >&6 5850else 5851 lt_cv_sharedlib_from_linklib_cmd='unknown' 5852 5853case $host_os in 5854cygwin* | mingw* | pw32* | cegcc*) 5855 # two different shell functions defined in ltmain.sh; 5856 # decide which one to use based on capabilities of $DLLTOOL 5857 case `$DLLTOOL --help 2>&1` in 5858 *--identify-strict*) 5859 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5860 ;; 5861 *) 5862 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5863 ;; 5864 esac 5865 ;; 5866*) 5867 # fallback: assume linklib IS sharedlib 5868 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5869 ;; 5870esac 5871 5872fi 5873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5874$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5875sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5876test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5877 5878 5879 5880 5881 5882 5883 5884if test -n "$ac_tool_prefix"; then 5885 for ac_prog in ar 5886 do 5887 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5888set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_AR+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$AR"; then 5895 ac_cv_prog_AR="$AR" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5904 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914AR=$ac_cv_prog_AR 5915if test -n "$AR"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5917$as_echo "$AR" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 5924 test -n "$AR" && break 5925 done 5926fi 5927if test -z "$AR"; then 5928 ac_ct_AR=$AR 5929 for ac_prog in ar 5930do 5931 # Extract the first word of "$ac_prog", so it can be a program name with args. 5932set dummy $ac_prog; ac_word=$2 5933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5934$as_echo_n "checking for $ac_word... " >&6; } 5935if ${ac_cv_prog_ac_ct_AR+:} false; then : 5936 $as_echo_n "(cached) " >&6 5937else 5938 if test -n "$ac_ct_AR"; then 5939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5940else 5941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5942for as_dir in $PATH 5943do 5944 IFS=$as_save_IFS 5945 test -z "$as_dir" && as_dir=. 5946 for ac_exec_ext in '' $ac_executable_extensions; do 5947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5948 ac_cv_prog_ac_ct_AR="$ac_prog" 5949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5950 break 2 5951 fi 5952done 5953 done 5954IFS=$as_save_IFS 5955 5956fi 5957fi 5958ac_ct_AR=$ac_cv_prog_ac_ct_AR 5959if test -n "$ac_ct_AR"; then 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5961$as_echo "$ac_ct_AR" >&6; } 5962else 5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5964$as_echo "no" >&6; } 5965fi 5966 5967 5968 test -n "$ac_ct_AR" && break 5969done 5970 5971 if test "x$ac_ct_AR" = x; then 5972 AR="false" 5973 else 5974 case $cross_compiling:$ac_tool_warned in 5975yes:) 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5977$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5978ac_tool_warned=yes ;; 5979esac 5980 AR=$ac_ct_AR 5981 fi 5982fi 5983 5984: ${AR=ar} 5985: ${AR_FLAGS=cru} 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5998$as_echo_n "checking for archiver @FILE support... " >&6; } 5999if ${lt_cv_ar_at_file+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 lt_cv_ar_at_file=no 6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6004/* end confdefs.h. */ 6005 6006int 6007main () 6008{ 6009 6010 ; 6011 return 0; 6012} 6013_ACEOF 6014if ac_fn_c_try_compile "$LINENO"; then : 6015 echo conftest.$ac_objext > conftest.lst 6016 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 6017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6018 (eval $lt_ar_try) 2>&5 6019 ac_status=$? 6020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6021 test $ac_status = 0; } 6022 if test 0 -eq "$ac_status"; then 6023 # Ensure the archiver fails upon bogus file names. 6024 rm -f conftest.$ac_objext libconftest.a 6025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 6026 (eval $lt_ar_try) 2>&5 6027 ac_status=$? 6028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6029 test $ac_status = 0; } 6030 if test 0 -ne "$ac_status"; then 6031 lt_cv_ar_at_file=@ 6032 fi 6033 fi 6034 rm -f conftest.* libconftest.a 6035 6036fi 6037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6038 6039fi 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 6041$as_echo "$lt_cv_ar_at_file" >&6; } 6042 6043if test no = "$lt_cv_ar_at_file"; then 6044 archiver_list_spec= 6045else 6046 archiver_list_spec=$lt_cv_ar_at_file 6047fi 6048 6049 6050 6051 6052 6053 6054 6055if test -n "$ac_tool_prefix"; then 6056 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6057set dummy ${ac_tool_prefix}strip; ac_word=$2 6058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6059$as_echo_n "checking for $ac_word... " >&6; } 6060if ${ac_cv_prog_STRIP+:} false; then : 6061 $as_echo_n "(cached) " >&6 6062else 6063 if test -n "$STRIP"; then 6064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6065else 6066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6067for as_dir in $PATH 6068do 6069 IFS=$as_save_IFS 6070 test -z "$as_dir" && as_dir=. 6071 for ac_exec_ext in '' $ac_executable_extensions; do 6072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6073 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6075 break 2 6076 fi 6077done 6078 done 6079IFS=$as_save_IFS 6080 6081fi 6082fi 6083STRIP=$ac_cv_prog_STRIP 6084if test -n "$STRIP"; then 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6086$as_echo "$STRIP" >&6; } 6087else 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6089$as_echo "no" >&6; } 6090fi 6091 6092 6093fi 6094if test -z "$ac_cv_prog_STRIP"; then 6095 ac_ct_STRIP=$STRIP 6096 # Extract the first word of "strip", so it can be a program name with args. 6097set dummy strip; ac_word=$2 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6099$as_echo_n "checking for $ac_word... " >&6; } 6100if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 if test -n "$ac_ct_STRIP"; then 6104 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6113 ac_cv_prog_ac_ct_STRIP="strip" 6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118 done 6119IFS=$as_save_IFS 6120 6121fi 6122fi 6123ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6124if test -n "$ac_ct_STRIP"; then 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6126$as_echo "$ac_ct_STRIP" >&6; } 6127else 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6129$as_echo "no" >&6; } 6130fi 6131 6132 if test "x$ac_ct_STRIP" = x; then 6133 STRIP=":" 6134 else 6135 case $cross_compiling:$ac_tool_warned in 6136yes:) 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6138$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6139ac_tool_warned=yes ;; 6140esac 6141 STRIP=$ac_ct_STRIP 6142 fi 6143else 6144 STRIP="$ac_cv_prog_STRIP" 6145fi 6146 6147test -z "$STRIP" && STRIP=: 6148 6149 6150 6151 6152 6153 6154if test -n "$ac_tool_prefix"; then 6155 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6156set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6158$as_echo_n "checking for $ac_word... " >&6; } 6159if ${ac_cv_prog_RANLIB+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161else 6162 if test -n "$RANLIB"; then 6163 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6164else 6165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6166for as_dir in $PATH 6167do 6168 IFS=$as_save_IFS 6169 test -z "$as_dir" && as_dir=. 6170 for ac_exec_ext in '' $ac_executable_extensions; do 6171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6172 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6174 break 2 6175 fi 6176done 6177 done 6178IFS=$as_save_IFS 6179 6180fi 6181fi 6182RANLIB=$ac_cv_prog_RANLIB 6183if test -n "$RANLIB"; then 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6185$as_echo "$RANLIB" >&6; } 6186else 6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6188$as_echo "no" >&6; } 6189fi 6190 6191 6192fi 6193if test -z "$ac_cv_prog_RANLIB"; then 6194 ac_ct_RANLIB=$RANLIB 6195 # Extract the first word of "ranlib", so it can be a program name with args. 6196set dummy ranlib; ac_word=$2 6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198$as_echo_n "checking for $ac_word... " >&6; } 6199if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6200 $as_echo_n "(cached) " >&6 6201else 6202 if test -n "$ac_ct_RANLIB"; then 6203 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6204else 6205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6206for as_dir in $PATH 6207do 6208 IFS=$as_save_IFS 6209 test -z "$as_dir" && as_dir=. 6210 for ac_exec_ext in '' $ac_executable_extensions; do 6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6212 ac_cv_prog_ac_ct_RANLIB="ranlib" 6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6214 break 2 6215 fi 6216done 6217 done 6218IFS=$as_save_IFS 6219 6220fi 6221fi 6222ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6223if test -n "$ac_ct_RANLIB"; then 6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6225$as_echo "$ac_ct_RANLIB" >&6; } 6226else 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6228$as_echo "no" >&6; } 6229fi 6230 6231 if test "x$ac_ct_RANLIB" = x; then 6232 RANLIB=":" 6233 else 6234 case $cross_compiling:$ac_tool_warned in 6235yes:) 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6237$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6238ac_tool_warned=yes ;; 6239esac 6240 RANLIB=$ac_ct_RANLIB 6241 fi 6242else 6243 RANLIB="$ac_cv_prog_RANLIB" 6244fi 6245 6246test -z "$RANLIB" && RANLIB=: 6247 6248 6249 6250 6251 6252 6253# Determine commands to create old-style static archives. 6254old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6255old_postinstall_cmds='chmod 644 $oldlib' 6256old_postuninstall_cmds= 6257 6258if test -n "$RANLIB"; then 6259 case $host_os in 6260 bitrig* | openbsd*) 6261 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6262 ;; 6263 *) 6264 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6265 ;; 6266 esac 6267 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6268fi 6269 6270case $host_os in 6271 darwin*) 6272 lock_old_archive_extraction=yes ;; 6273 *) 6274 lock_old_archive_extraction=no ;; 6275esac 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315# If no C compiler was specified, use CC. 6316LTCC=${LTCC-"$CC"} 6317 6318# If no C compiler flags were specified, use CFLAGS. 6319LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6320 6321# Allow CC to be a program name with arguments. 6322compiler=$CC 6323 6324 6325# Check for command to grab the raw symbol name followed by C symbol from nm. 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6327$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6328if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330else 6331 6332# These are sane defaults that work on at least a few old systems. 6333# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6334 6335# Character class describing NM global symbol codes. 6336symcode='[BCDEGRST]' 6337 6338# Regexp to match symbols that can be accessed directly from C. 6339sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6340 6341# Define system-specific variables. 6342case $host_os in 6343aix*) 6344 symcode='[BCDT]' 6345 ;; 6346cygwin* | mingw* | pw32* | cegcc*) 6347 symcode='[ABCDGISTW]' 6348 ;; 6349hpux*) 6350 if test ia64 = "$host_cpu"; then 6351 symcode='[ABCDEGRST]' 6352 fi 6353 ;; 6354irix* | nonstopux*) 6355 symcode='[BCDEGRST]' 6356 ;; 6357osf*) 6358 symcode='[BCDEGQRST]' 6359 ;; 6360solaris*) 6361 symcode='[BDRT]' 6362 ;; 6363sco3.2v5*) 6364 symcode='[DT]' 6365 ;; 6366sysv4.2uw2*) 6367 symcode='[DT]' 6368 ;; 6369sysv5* | sco5v6* | unixware* | OpenUNIX*) 6370 symcode='[ABDT]' 6371 ;; 6372sysv4) 6373 symcode='[DFNSTU]' 6374 ;; 6375esac 6376 6377# If we're using GNU nm, then use its standard symbol codes. 6378case `$NM -V 2>&1` in 6379*GNU* | *'with BFD'*) 6380 symcode='[ABCDGIRSTW]' ;; 6381esac 6382 6383if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6384 # Gets list of data symbols to import. 6385 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6386 # Adjust the below global symbol transforms to fixup imported variables. 6387 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6388 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6389 lt_c_name_lib_hook="\ 6390 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6391 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6392else 6393 # Disable hooks by default. 6394 lt_cv_sys_global_symbol_to_import= 6395 lt_cdecl_hook= 6396 lt_c_name_hook= 6397 lt_c_name_lib_hook= 6398fi 6399 6400# Transform an extracted symbol line into a proper C declaration. 6401# Some systems (esp. on ia64) link data and code symbols differently, 6402# so use this general approach. 6403lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6404$lt_cdecl_hook\ 6405" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6406" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6407 6408# Transform an extracted symbol line into symbol name and symbol address 6409lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6410$lt_c_name_hook\ 6411" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6412" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6413 6414# Transform an extracted symbol line into symbol name with lib prefix and 6415# symbol address. 6416lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6417$lt_c_name_lib_hook\ 6418" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6419" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6420" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6421 6422# Handle CRLF in mingw tool chain 6423opt_cr= 6424case $build_os in 6425mingw*) 6426 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6427 ;; 6428esac 6429 6430# Try without a prefix underscore, then with it. 6431for ac_symprfx in "" "_"; do 6432 6433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6434 symxfrm="\\1 $ac_symprfx\\2 \\2" 6435 6436 # Write the raw and C identifiers. 6437 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6438 # Fake it for dumpbin and say T for any non-static function, 6439 # D for any global variable and I for any imported variable. 6440 # Also find C++ and __fastcall symbols from MSVC++, 6441 # which start with @ or ?. 6442 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6443" {last_section=section; section=\$ 3};"\ 6444" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6445" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6446" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6447" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6448" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6449" \$ 0!~/External *\|/{next};"\ 6450" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6451" {if(hide[section]) next};"\ 6452" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6453" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6454" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6455" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6456" ' prfx=^$ac_symprfx" 6457 else 6458 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6459 fi 6460 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6461 6462 # Check to see that the pipe works correctly. 6463 pipe_works=no 6464 6465 rm -f conftest* 6466 cat > conftest.$ac_ext <<_LT_EOF 6467#ifdef __cplusplus 6468extern "C" { 6469#endif 6470char nm_test_var; 6471void nm_test_func(void); 6472void nm_test_func(void){} 6473#ifdef __cplusplus 6474} 6475#endif 6476int main(){nm_test_var='a';nm_test_func();return(0);} 6477_LT_EOF 6478 6479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6480 (eval $ac_compile) 2>&5 6481 ac_status=$? 6482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6483 test $ac_status = 0; }; then 6484 # Now try to grab the symbols. 6485 nlist=conftest.nm 6486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6487 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6488 ac_status=$? 6489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6490 test $ac_status = 0; } && test -s "$nlist"; then 6491 # Try sorting and uniquifying the output. 6492 if sort "$nlist" | uniq > "$nlist"T; then 6493 mv -f "$nlist"T "$nlist" 6494 else 6495 rm -f "$nlist"T 6496 fi 6497 6498 # Make sure that we snagged all the symbols we need. 6499 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6500 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6501 cat <<_LT_EOF > conftest.$ac_ext 6502/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6503#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6504/* DATA imports from DLLs on WIN32 can't be const, because runtime 6505 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6506# define LT_DLSYM_CONST 6507#elif defined __osf__ 6508/* This system does not cope well with relocations in const data. */ 6509# define LT_DLSYM_CONST 6510#else 6511# define LT_DLSYM_CONST const 6512#endif 6513 6514#ifdef __cplusplus 6515extern "C" { 6516#endif 6517 6518_LT_EOF 6519 # Now generate the symbol file. 6520 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6521 6522 cat <<_LT_EOF >> conftest.$ac_ext 6523 6524/* The mapping between symbol names and symbols. */ 6525LT_DLSYM_CONST struct { 6526 const char *name; 6527 void *address; 6528} 6529lt__PROGRAM__LTX_preloaded_symbols[] = 6530{ 6531 { "@PROGRAM@", (void *) 0 }, 6532_LT_EOF 6533 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6534 cat <<\_LT_EOF >> conftest.$ac_ext 6535 {0, (void *) 0} 6536}; 6537 6538/* This works around a problem in FreeBSD linker */ 6539#ifdef FREEBSD_WORKAROUND 6540static const void *lt_preloaded_setup() { 6541 return lt__PROGRAM__LTX_preloaded_symbols; 6542} 6543#endif 6544 6545#ifdef __cplusplus 6546} 6547#endif 6548_LT_EOF 6549 # Now try linking the two files. 6550 mv conftest.$ac_objext conftstm.$ac_objext 6551 lt_globsym_save_LIBS=$LIBS 6552 lt_globsym_save_CFLAGS=$CFLAGS 6553 LIBS=conftstm.$ac_objext 6554 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6556 (eval $ac_link) 2>&5 6557 ac_status=$? 6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6559 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6560 pipe_works=yes 6561 fi 6562 LIBS=$lt_globsym_save_LIBS 6563 CFLAGS=$lt_globsym_save_CFLAGS 6564 else 6565 echo "cannot find nm_test_func in $nlist" >&5 6566 fi 6567 else 6568 echo "cannot find nm_test_var in $nlist" >&5 6569 fi 6570 else 6571 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6572 fi 6573 else 6574 echo "$progname: failed program was:" >&5 6575 cat conftest.$ac_ext >&5 6576 fi 6577 rm -rf conftest* conftst* 6578 6579 # Do not use the global_symbol_pipe unless it works. 6580 if test yes = "$pipe_works"; then 6581 break 6582 else 6583 lt_cv_sys_global_symbol_pipe= 6584 fi 6585done 6586 6587fi 6588 6589if test -z "$lt_cv_sys_global_symbol_pipe"; then 6590 lt_cv_sys_global_symbol_to_cdecl= 6591fi 6592if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6594$as_echo "failed" >&6; } 6595else 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6597$as_echo "ok" >&6; } 6598fi 6599 6600# Response file support. 6601if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6602 nm_file_list_spec='@' 6603elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6604 nm_file_list_spec='@' 6605fi 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6644$as_echo_n "checking for sysroot... " >&6; } 6645 6646# Check whether --with-sysroot was given. 6647if test "${with_sysroot+set}" = set; then : 6648 withval=$with_sysroot; 6649else 6650 with_sysroot=no 6651fi 6652 6653 6654lt_sysroot= 6655case $with_sysroot in #( 6656 yes) 6657 if test yes = "$GCC"; then 6658 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6659 fi 6660 ;; #( 6661 /*) 6662 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6663 ;; #( 6664 no|'') 6665 ;; #( 6666 *) 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6668$as_echo "$with_sysroot" >&6; } 6669 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6670 ;; 6671esac 6672 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6674$as_echo "${lt_sysroot:-no}" >&6; } 6675 6676 6677 6678 6679 6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6681$as_echo_n "checking for a working dd... " >&6; } 6682if ${ac_cv_path_lt_DD+:} false; then : 6683 $as_echo_n "(cached) " >&6 6684else 6685 printf 0123456789abcdef0123456789abcdef >conftest.i 6686cat conftest.i conftest.i >conftest2.i 6687: ${lt_DD:=$DD} 6688if test -z "$lt_DD"; then 6689 ac_path_lt_DD_found=false 6690 # Loop through the user's path and test for each of PROGNAME-LIST 6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692for as_dir in $PATH 6693do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_prog in dd; do 6697 for ac_exec_ext in '' $ac_executable_extensions; do 6698 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6699 as_fn_executable_p "$ac_path_lt_DD" || continue 6700if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6701 cmp -s conftest.i conftest.out \ 6702 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6703fi 6704 $ac_path_lt_DD_found && break 3 6705 done 6706 done 6707 done 6708IFS=$as_save_IFS 6709 if test -z "$ac_cv_path_lt_DD"; then 6710 : 6711 fi 6712else 6713 ac_cv_path_lt_DD=$lt_DD 6714fi 6715 6716rm -f conftest.i conftest2.i conftest.out 6717fi 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6719$as_echo "$ac_cv_path_lt_DD" >&6; } 6720 6721 6722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6723$as_echo_n "checking how to truncate binary pipes... " >&6; } 6724if ${lt_cv_truncate_bin+:} false; then : 6725 $as_echo_n "(cached) " >&6 6726else 6727 printf 0123456789abcdef0123456789abcdef >conftest.i 6728cat conftest.i conftest.i >conftest2.i 6729lt_cv_truncate_bin= 6730if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6731 cmp -s conftest.i conftest.out \ 6732 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6733fi 6734rm -f conftest.i conftest2.i conftest.out 6735test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6736fi 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6738$as_echo "$lt_cv_truncate_bin" >&6; } 6739 6740 6741 6742 6743 6744 6745 6746# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6747func_cc_basename () 6748{ 6749 for cc_temp in $*""; do 6750 case $cc_temp in 6751 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6752 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6753 \-*) ;; 6754 *) break;; 6755 esac 6756 done 6757 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6758} 6759 6760# Check whether --enable-libtool-lock was given. 6761if test "${enable_libtool_lock+set}" = set; then : 6762 enableval=$enable_libtool_lock; 6763fi 6764 6765test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6766 6767# Some flags need to be propagated to the compiler or linker for good 6768# libtool support. 6769case $host in 6770ia64-*-hpux*) 6771 # Find out what ABI is being produced by ac_compile, and set mode 6772 # options accordingly. 6773 echo 'int i;' > conftest.$ac_ext 6774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6775 (eval $ac_compile) 2>&5 6776 ac_status=$? 6777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6778 test $ac_status = 0; }; then 6779 case `/usr/bin/file conftest.$ac_objext` in 6780 *ELF-32*) 6781 HPUX_IA64_MODE=32 6782 ;; 6783 *ELF-64*) 6784 HPUX_IA64_MODE=64 6785 ;; 6786 esac 6787 fi 6788 rm -rf conftest* 6789 ;; 6790*-*-irix6*) 6791 # Find out what ABI is being produced by ac_compile, and set linker 6792 # options accordingly. 6793 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6795 (eval $ac_compile) 2>&5 6796 ac_status=$? 6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6798 test $ac_status = 0; }; then 6799 if test yes = "$lt_cv_prog_gnu_ld"; then 6800 case `/usr/bin/file conftest.$ac_objext` in 6801 *32-bit*) 6802 LD="${LD-ld} -melf32bsmip" 6803 ;; 6804 *N32*) 6805 LD="${LD-ld} -melf32bmipn32" 6806 ;; 6807 *64-bit*) 6808 LD="${LD-ld} -melf64bmip" 6809 ;; 6810 esac 6811 else 6812 case `/usr/bin/file conftest.$ac_objext` in 6813 *32-bit*) 6814 LD="${LD-ld} -32" 6815 ;; 6816 *N32*) 6817 LD="${LD-ld} -n32" 6818 ;; 6819 *64-bit*) 6820 LD="${LD-ld} -64" 6821 ;; 6822 esac 6823 fi 6824 fi 6825 rm -rf conftest* 6826 ;; 6827 6828mips64*-*linux*) 6829 # Find out what ABI is being produced by ac_compile, and set linker 6830 # options accordingly. 6831 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6833 (eval $ac_compile) 2>&5 6834 ac_status=$? 6835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6836 test $ac_status = 0; }; then 6837 emul=elf 6838 case `/usr/bin/file conftest.$ac_objext` in 6839 *32-bit*) 6840 emul="${emul}32" 6841 ;; 6842 *64-bit*) 6843 emul="${emul}64" 6844 ;; 6845 esac 6846 case `/usr/bin/file conftest.$ac_objext` in 6847 *MSB*) 6848 emul="${emul}btsmip" 6849 ;; 6850 *LSB*) 6851 emul="${emul}ltsmip" 6852 ;; 6853 esac 6854 case `/usr/bin/file conftest.$ac_objext` in 6855 *N32*) 6856 emul="${emul}n32" 6857 ;; 6858 esac 6859 LD="${LD-ld} -m $emul" 6860 fi 6861 rm -rf conftest* 6862 ;; 6863 6864x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6865s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6866 # Find out what ABI is being produced by ac_compile, and set linker 6867 # options accordingly. Note that the listed cases only cover the 6868 # situations where additional linker options are needed (such as when 6869 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6870 # vice versa); the common cases where no linker options are needed do 6871 # not appear in the list. 6872 echo 'int i;' > conftest.$ac_ext 6873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6874 (eval $ac_compile) 2>&5 6875 ac_status=$? 6876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6877 test $ac_status = 0; }; then 6878 case `/usr/bin/file conftest.o` in 6879 *32-bit*) 6880 case $host in 6881 x86_64-*kfreebsd*-gnu) 6882 LD="${LD-ld} -m elf_i386_fbsd" 6883 ;; 6884 x86_64-*linux*) 6885 case `/usr/bin/file conftest.o` in 6886 *x86-64*) 6887 LD="${LD-ld} -m elf32_x86_64" 6888 ;; 6889 *) 6890 LD="${LD-ld} -m elf_i386" 6891 ;; 6892 esac 6893 ;; 6894 powerpc64le-*linux*) 6895 LD="${LD-ld} -m elf32lppclinux" 6896 ;; 6897 powerpc64-*linux*) 6898 LD="${LD-ld} -m elf32ppclinux" 6899 ;; 6900 s390x-*linux*) 6901 LD="${LD-ld} -m elf_s390" 6902 ;; 6903 sparc64-*linux*) 6904 LD="${LD-ld} -m elf32_sparc" 6905 ;; 6906 esac 6907 ;; 6908 *64-bit*) 6909 case $host in 6910 x86_64-*kfreebsd*-gnu) 6911 LD="${LD-ld} -m elf_x86_64_fbsd" 6912 ;; 6913 x86_64-*linux*) 6914 LD="${LD-ld} -m elf_x86_64" 6915 ;; 6916 powerpcle-*linux*|powerpc64le-*linux*) 6917 LD="${LD-ld} -m elf64lppc" 6918 ;; 6919 powerpc-*linux*|powerpc64-*linux*) 6920 LD="${LD-ld} -m elf64ppc" 6921 ;; 6922 s390*-*linux*|s390*-*tpf*) 6923 LD="${LD-ld} -m elf64_s390" 6924 ;; 6925 sparc*-*linux*) 6926 LD="${LD-ld} -m elf64_sparc" 6927 ;; 6928 esac 6929 ;; 6930 esac 6931 fi 6932 rm -rf conftest* 6933 ;; 6934 6935*-*-sco3.2v5*) 6936 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6937 SAVE_CFLAGS=$CFLAGS 6938 CFLAGS="$CFLAGS -belf" 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6940$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6941if ${lt_cv_cc_needs_belf+:} false; then : 6942 $as_echo_n "(cached) " >&6 6943else 6944 ac_ext=c 6945ac_cpp='$CPP $CPPFLAGS' 6946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6948ac_compiler_gnu=$ac_cv_c_compiler_gnu 6949 6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6951/* end confdefs.h. */ 6952 6953int 6954main () 6955{ 6956 6957 ; 6958 return 0; 6959} 6960_ACEOF 6961if ac_fn_c_try_link "$LINENO"; then : 6962 lt_cv_cc_needs_belf=yes 6963else 6964 lt_cv_cc_needs_belf=no 6965fi 6966rm -f core conftest.err conftest.$ac_objext \ 6967 conftest$ac_exeext conftest.$ac_ext 6968 ac_ext=c 6969ac_cpp='$CPP $CPPFLAGS' 6970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6972ac_compiler_gnu=$ac_cv_c_compiler_gnu 6973 6974fi 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6976$as_echo "$lt_cv_cc_needs_belf" >&6; } 6977 if test yes != "$lt_cv_cc_needs_belf"; then 6978 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6979 CFLAGS=$SAVE_CFLAGS 6980 fi 6981 ;; 6982*-*solaris*) 6983 # Find out what ABI is being produced by ac_compile, and set linker 6984 # options accordingly. 6985 echo 'int i;' > conftest.$ac_ext 6986 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6987 (eval $ac_compile) 2>&5 6988 ac_status=$? 6989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6990 test $ac_status = 0; }; then 6991 case `/usr/bin/file conftest.o` in 6992 *64-bit*) 6993 case $lt_cv_prog_gnu_ld in 6994 yes*) 6995 case $host in 6996 i?86-*-solaris*|x86_64-*-solaris*) 6997 LD="${LD-ld} -m elf_x86_64" 6998 ;; 6999 sparc*-*-solaris*) 7000 LD="${LD-ld} -m elf64_sparc" 7001 ;; 7002 esac 7003 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 7004 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 7005 LD=${LD-ld}_sol2 7006 fi 7007 ;; 7008 *) 7009 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7010 LD="${LD-ld} -64" 7011 fi 7012 ;; 7013 esac 7014 ;; 7015 esac 7016 fi 7017 rm -rf conftest* 7018 ;; 7019esac 7020 7021need_locks=$enable_libtool_lock 7022 7023if test -n "$ac_tool_prefix"; then 7024 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 7025set dummy ${ac_tool_prefix}mt; ac_word=$2 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7027$as_echo_n "checking for $ac_word... " >&6; } 7028if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 7029 $as_echo_n "(cached) " >&6 7030else 7031 if test -n "$MANIFEST_TOOL"; then 7032 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 7033else 7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7035for as_dir in $PATH 7036do 7037 IFS=$as_save_IFS 7038 test -z "$as_dir" && as_dir=. 7039 for ac_exec_ext in '' $ac_executable_extensions; do 7040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7041 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 7042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7043 break 2 7044 fi 7045done 7046 done 7047IFS=$as_save_IFS 7048 7049fi 7050fi 7051MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 7052if test -n "$MANIFEST_TOOL"; then 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 7054$as_echo "$MANIFEST_TOOL" >&6; } 7055else 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7057$as_echo "no" >&6; } 7058fi 7059 7060 7061fi 7062if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 7063 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 7064 # Extract the first word of "mt", so it can be a program name with args. 7065set dummy mt; ac_word=$2 7066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7067$as_echo_n "checking for $ac_word... " >&6; } 7068if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 7069 $as_echo_n "(cached) " >&6 7070else 7071 if test -n "$ac_ct_MANIFEST_TOOL"; then 7072 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 7073else 7074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7075for as_dir in $PATH 7076do 7077 IFS=$as_save_IFS 7078 test -z "$as_dir" && as_dir=. 7079 for ac_exec_ext in '' $ac_executable_extensions; do 7080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7081 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 7082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7083 break 2 7084 fi 7085done 7086 done 7087IFS=$as_save_IFS 7088 7089fi 7090fi 7091ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 7092if test -n "$ac_ct_MANIFEST_TOOL"; then 7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 7094$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 7095else 7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7097$as_echo "no" >&6; } 7098fi 7099 7100 if test "x$ac_ct_MANIFEST_TOOL" = x; then 7101 MANIFEST_TOOL=":" 7102 else 7103 case $cross_compiling:$ac_tool_warned in 7104yes:) 7105{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7106$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7107ac_tool_warned=yes ;; 7108esac 7109 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 7110 fi 7111else 7112 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 7113fi 7114 7115test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 7116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 7117$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 7118if ${lt_cv_path_mainfest_tool+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120else 7121 lt_cv_path_mainfest_tool=no 7122 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 7123 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 7124 cat conftest.err >&5 7125 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 7126 lt_cv_path_mainfest_tool=yes 7127 fi 7128 rm -f conftest* 7129fi 7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 7131$as_echo "$lt_cv_path_mainfest_tool" >&6; } 7132if test yes != "$lt_cv_path_mainfest_tool"; then 7133 MANIFEST_TOOL=: 7134fi 7135 7136 7137 7138 7139 7140 7141 case $host_os in 7142 rhapsody* | darwin*) 7143 if test -n "$ac_tool_prefix"; then 7144 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7145set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7147$as_echo_n "checking for $ac_word... " >&6; } 7148if ${ac_cv_prog_DSYMUTIL+:} false; then : 7149 $as_echo_n "(cached) " >&6 7150else 7151 if test -n "$DSYMUTIL"; then 7152 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7153else 7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7155for as_dir in $PATH 7156do 7157 IFS=$as_save_IFS 7158 test -z "$as_dir" && as_dir=. 7159 for ac_exec_ext in '' $ac_executable_extensions; do 7160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7161 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7163 break 2 7164 fi 7165done 7166 done 7167IFS=$as_save_IFS 7168 7169fi 7170fi 7171DSYMUTIL=$ac_cv_prog_DSYMUTIL 7172if test -n "$DSYMUTIL"; then 7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7174$as_echo "$DSYMUTIL" >&6; } 7175else 7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7177$as_echo "no" >&6; } 7178fi 7179 7180 7181fi 7182if test -z "$ac_cv_prog_DSYMUTIL"; then 7183 ac_ct_DSYMUTIL=$DSYMUTIL 7184 # Extract the first word of "dsymutil", so it can be a program name with args. 7185set dummy dsymutil; ac_word=$2 7186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7187$as_echo_n "checking for $ac_word... " >&6; } 7188if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7189 $as_echo_n "(cached) " >&6 7190else 7191 if test -n "$ac_ct_DSYMUTIL"; then 7192 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7193else 7194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7195for as_dir in $PATH 7196do 7197 IFS=$as_save_IFS 7198 test -z "$as_dir" && as_dir=. 7199 for ac_exec_ext in '' $ac_executable_extensions; do 7200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7201 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7203 break 2 7204 fi 7205done 7206 done 7207IFS=$as_save_IFS 7208 7209fi 7210fi 7211ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7212if test -n "$ac_ct_DSYMUTIL"; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7214$as_echo "$ac_ct_DSYMUTIL" >&6; } 7215else 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7217$as_echo "no" >&6; } 7218fi 7219 7220 if test "x$ac_ct_DSYMUTIL" = x; then 7221 DSYMUTIL=":" 7222 else 7223 case $cross_compiling:$ac_tool_warned in 7224yes:) 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7226$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7227ac_tool_warned=yes ;; 7228esac 7229 DSYMUTIL=$ac_ct_DSYMUTIL 7230 fi 7231else 7232 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7233fi 7234 7235 if test -n "$ac_tool_prefix"; then 7236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7237set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7239$as_echo_n "checking for $ac_word... " >&6; } 7240if ${ac_cv_prog_NMEDIT+:} false; then : 7241 $as_echo_n "(cached) " >&6 7242else 7243 if test -n "$NMEDIT"; then 7244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7245else 7246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7247for as_dir in $PATH 7248do 7249 IFS=$as_save_IFS 7250 test -z "$as_dir" && as_dir=. 7251 for ac_exec_ext in '' $ac_executable_extensions; do 7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7253 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7255 break 2 7256 fi 7257done 7258 done 7259IFS=$as_save_IFS 7260 7261fi 7262fi 7263NMEDIT=$ac_cv_prog_NMEDIT 7264if test -n "$NMEDIT"; then 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7266$as_echo "$NMEDIT" >&6; } 7267else 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7269$as_echo "no" >&6; } 7270fi 7271 7272 7273fi 7274if test -z "$ac_cv_prog_NMEDIT"; then 7275 ac_ct_NMEDIT=$NMEDIT 7276 # Extract the first word of "nmedit", so it can be a program name with args. 7277set dummy nmedit; ac_word=$2 7278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7279$as_echo_n "checking for $ac_word... " >&6; } 7280if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7281 $as_echo_n "(cached) " >&6 7282else 7283 if test -n "$ac_ct_NMEDIT"; then 7284 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7285else 7286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7287for as_dir in $PATH 7288do 7289 IFS=$as_save_IFS 7290 test -z "$as_dir" && as_dir=. 7291 for ac_exec_ext in '' $ac_executable_extensions; do 7292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7293 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7295 break 2 7296 fi 7297done 7298 done 7299IFS=$as_save_IFS 7300 7301fi 7302fi 7303ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7304if test -n "$ac_ct_NMEDIT"; then 7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7306$as_echo "$ac_ct_NMEDIT" >&6; } 7307else 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7309$as_echo "no" >&6; } 7310fi 7311 7312 if test "x$ac_ct_NMEDIT" = x; then 7313 NMEDIT=":" 7314 else 7315 case $cross_compiling:$ac_tool_warned in 7316yes:) 7317{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7318$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7319ac_tool_warned=yes ;; 7320esac 7321 NMEDIT=$ac_ct_NMEDIT 7322 fi 7323else 7324 NMEDIT="$ac_cv_prog_NMEDIT" 7325fi 7326 7327 if test -n "$ac_tool_prefix"; then 7328 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7329set dummy ${ac_tool_prefix}lipo; ac_word=$2 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7331$as_echo_n "checking for $ac_word... " >&6; } 7332if ${ac_cv_prog_LIPO+:} false; then : 7333 $as_echo_n "(cached) " >&6 7334else 7335 if test -n "$LIPO"; then 7336 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7337else 7338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7339for as_dir in $PATH 7340do 7341 IFS=$as_save_IFS 7342 test -z "$as_dir" && as_dir=. 7343 for ac_exec_ext in '' $ac_executable_extensions; do 7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7345 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7347 break 2 7348 fi 7349done 7350 done 7351IFS=$as_save_IFS 7352 7353fi 7354fi 7355LIPO=$ac_cv_prog_LIPO 7356if test -n "$LIPO"; then 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7358$as_echo "$LIPO" >&6; } 7359else 7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7361$as_echo "no" >&6; } 7362fi 7363 7364 7365fi 7366if test -z "$ac_cv_prog_LIPO"; then 7367 ac_ct_LIPO=$LIPO 7368 # Extract the first word of "lipo", so it can be a program name with args. 7369set dummy lipo; ac_word=$2 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7371$as_echo_n "checking for $ac_word... " >&6; } 7372if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 if test -n "$ac_ct_LIPO"; then 7376 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7377else 7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7379for as_dir in $PATH 7380do 7381 IFS=$as_save_IFS 7382 test -z "$as_dir" && as_dir=. 7383 for ac_exec_ext in '' $ac_executable_extensions; do 7384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7385 ac_cv_prog_ac_ct_LIPO="lipo" 7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7387 break 2 7388 fi 7389done 7390 done 7391IFS=$as_save_IFS 7392 7393fi 7394fi 7395ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7396if test -n "$ac_ct_LIPO"; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7398$as_echo "$ac_ct_LIPO" >&6; } 7399else 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401$as_echo "no" >&6; } 7402fi 7403 7404 if test "x$ac_ct_LIPO" = x; then 7405 LIPO=":" 7406 else 7407 case $cross_compiling:$ac_tool_warned in 7408yes:) 7409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7411ac_tool_warned=yes ;; 7412esac 7413 LIPO=$ac_ct_LIPO 7414 fi 7415else 7416 LIPO="$ac_cv_prog_LIPO" 7417fi 7418 7419 if test -n "$ac_tool_prefix"; then 7420 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7421set dummy ${ac_tool_prefix}otool; ac_word=$2 7422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7423$as_echo_n "checking for $ac_word... " >&6; } 7424if ${ac_cv_prog_OTOOL+:} false; then : 7425 $as_echo_n "(cached) " >&6 7426else 7427 if test -n "$OTOOL"; then 7428 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7429else 7430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7431for as_dir in $PATH 7432do 7433 IFS=$as_save_IFS 7434 test -z "$as_dir" && as_dir=. 7435 for ac_exec_ext in '' $ac_executable_extensions; do 7436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7437 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7439 break 2 7440 fi 7441done 7442 done 7443IFS=$as_save_IFS 7444 7445fi 7446fi 7447OTOOL=$ac_cv_prog_OTOOL 7448if test -n "$OTOOL"; then 7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7450$as_echo "$OTOOL" >&6; } 7451else 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7453$as_echo "no" >&6; } 7454fi 7455 7456 7457fi 7458if test -z "$ac_cv_prog_OTOOL"; then 7459 ac_ct_OTOOL=$OTOOL 7460 # Extract the first word of "otool", so it can be a program name with args. 7461set dummy otool; ac_word=$2 7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7463$as_echo_n "checking for $ac_word... " >&6; } 7464if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 if test -n "$ac_ct_OTOOL"; then 7468 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7469else 7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7471for as_dir in $PATH 7472do 7473 IFS=$as_save_IFS 7474 test -z "$as_dir" && as_dir=. 7475 for ac_exec_ext in '' $ac_executable_extensions; do 7476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7477 ac_cv_prog_ac_ct_OTOOL="otool" 7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7479 break 2 7480 fi 7481done 7482 done 7483IFS=$as_save_IFS 7484 7485fi 7486fi 7487ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7488if test -n "$ac_ct_OTOOL"; then 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7490$as_echo "$ac_ct_OTOOL" >&6; } 7491else 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7493$as_echo "no" >&6; } 7494fi 7495 7496 if test "x$ac_ct_OTOOL" = x; then 7497 OTOOL=":" 7498 else 7499 case $cross_compiling:$ac_tool_warned in 7500yes:) 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7502$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7503ac_tool_warned=yes ;; 7504esac 7505 OTOOL=$ac_ct_OTOOL 7506 fi 7507else 7508 OTOOL="$ac_cv_prog_OTOOL" 7509fi 7510 7511 if test -n "$ac_tool_prefix"; then 7512 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7513set dummy ${ac_tool_prefix}otool64; ac_word=$2 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7515$as_echo_n "checking for $ac_word... " >&6; } 7516if ${ac_cv_prog_OTOOL64+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 if test -n "$OTOOL64"; then 7520 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7521else 7522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7523for as_dir in $PATH 7524do 7525 IFS=$as_save_IFS 7526 test -z "$as_dir" && as_dir=. 7527 for ac_exec_ext in '' $ac_executable_extensions; do 7528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7529 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7531 break 2 7532 fi 7533done 7534 done 7535IFS=$as_save_IFS 7536 7537fi 7538fi 7539OTOOL64=$ac_cv_prog_OTOOL64 7540if test -n "$OTOOL64"; then 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7542$as_echo "$OTOOL64" >&6; } 7543else 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7545$as_echo "no" >&6; } 7546fi 7547 7548 7549fi 7550if test -z "$ac_cv_prog_OTOOL64"; then 7551 ac_ct_OTOOL64=$OTOOL64 7552 # Extract the first word of "otool64", so it can be a program name with args. 7553set dummy otool64; ac_word=$2 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7555$as_echo_n "checking for $ac_word... " >&6; } 7556if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 if test -n "$ac_ct_OTOOL64"; then 7560 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7561else 7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7563for as_dir in $PATH 7564do 7565 IFS=$as_save_IFS 7566 test -z "$as_dir" && as_dir=. 7567 for ac_exec_ext in '' $ac_executable_extensions; do 7568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7569 ac_cv_prog_ac_ct_OTOOL64="otool64" 7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7571 break 2 7572 fi 7573done 7574 done 7575IFS=$as_save_IFS 7576 7577fi 7578fi 7579ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7580if test -n "$ac_ct_OTOOL64"; then 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7582$as_echo "$ac_ct_OTOOL64" >&6; } 7583else 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7585$as_echo "no" >&6; } 7586fi 7587 7588 if test "x$ac_ct_OTOOL64" = x; then 7589 OTOOL64=":" 7590 else 7591 case $cross_compiling:$ac_tool_warned in 7592yes:) 7593{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7594$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7595ac_tool_warned=yes ;; 7596esac 7597 OTOOL64=$ac_ct_OTOOL64 7598 fi 7599else 7600 OTOOL64="$ac_cv_prog_OTOOL64" 7601fi 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7630$as_echo_n "checking for -single_module linker flag... " >&6; } 7631if ${lt_cv_apple_cc_single_mod+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 lt_cv_apple_cc_single_mod=no 7635 if test -z "$LT_MULTI_MODULE"; then 7636 # By default we will add the -single_module flag. You can override 7637 # by either setting the environment variable LT_MULTI_MODULE 7638 # non-empty at configure time, or by adding -multi_module to the 7639 # link flags. 7640 rm -rf libconftest.dylib* 7641 echo "int foo(void){return 1;}" > conftest.c 7642 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7643-dynamiclib -Wl,-single_module conftest.c" >&5 7644 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7645 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7646 _lt_result=$? 7647 # If there is a non-empty error log, and "single_module" 7648 # appears in it, assume the flag caused a linker warning 7649 if test -s conftest.err && $GREP single_module conftest.err; then 7650 cat conftest.err >&5 7651 # Otherwise, if the output was created with a 0 exit code from 7652 # the compiler, it worked. 7653 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7654 lt_cv_apple_cc_single_mod=yes 7655 else 7656 cat conftest.err >&5 7657 fi 7658 rm -rf libconftest.dylib* 7659 rm -f conftest.* 7660 fi 7661fi 7662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7663$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7664 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7666$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7667if ${lt_cv_ld_exported_symbols_list+:} false; then : 7668 $as_echo_n "(cached) " >&6 7669else 7670 lt_cv_ld_exported_symbols_list=no 7671 save_LDFLAGS=$LDFLAGS 7672 echo "_main" > conftest.sym 7673 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7675/* end confdefs.h. */ 7676 7677int 7678main () 7679{ 7680 7681 ; 7682 return 0; 7683} 7684_ACEOF 7685if ac_fn_c_try_link "$LINENO"; then : 7686 lt_cv_ld_exported_symbols_list=yes 7687else 7688 lt_cv_ld_exported_symbols_list=no 7689fi 7690rm -f core conftest.err conftest.$ac_objext \ 7691 conftest$ac_exeext conftest.$ac_ext 7692 LDFLAGS=$save_LDFLAGS 7693 7694fi 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7696$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7697 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7699$as_echo_n "checking for -force_load linker flag... " >&6; } 7700if ${lt_cv_ld_force_load+:} false; then : 7701 $as_echo_n "(cached) " >&6 7702else 7703 lt_cv_ld_force_load=no 7704 cat > conftest.c << _LT_EOF 7705int forced_loaded() { return 2;} 7706_LT_EOF 7707 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7708 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7709 echo "$AR cru libconftest.a conftest.o" >&5 7710 $AR cru libconftest.a conftest.o 2>&5 7711 echo "$RANLIB libconftest.a" >&5 7712 $RANLIB libconftest.a 2>&5 7713 cat > conftest.c << _LT_EOF 7714int main() { return 0;} 7715_LT_EOF 7716 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7717 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7718 _lt_result=$? 7719 if test -s conftest.err && $GREP force_load conftest.err; then 7720 cat conftest.err >&5 7721 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7722 lt_cv_ld_force_load=yes 7723 else 7724 cat conftest.err >&5 7725 fi 7726 rm -f conftest.err libconftest.a conftest conftest.c 7727 rm -rf conftest.dSYM 7728 7729fi 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7731$as_echo "$lt_cv_ld_force_load" >&6; } 7732 case $host_os in 7733 rhapsody* | darwin1.[012]) 7734 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7735 darwin1.*) 7736 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7737 darwin*) # darwin 5.x on 7738 # if running on 10.5 or later, the deployment target defaults 7739 # to the OS version, if on x86, and 10.4, the deployment 7740 # target defaults to 10.4. Don't you love it? 7741 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7742 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7743 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7744 10.[012][,.]*) 7745 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7746 10.*) 7747 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7748 esac 7749 ;; 7750 esac 7751 if test yes = "$lt_cv_apple_cc_single_mod"; then 7752 _lt_dar_single_mod='$single_module' 7753 fi 7754 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7755 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7756 else 7757 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7758 fi 7759 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7760 _lt_dsymutil='~$DSYMUTIL $lib || :' 7761 else 7762 _lt_dsymutil= 7763 fi 7764 ;; 7765 esac 7766 7767# func_munge_path_list VARIABLE PATH 7768# ----------------------------------- 7769# VARIABLE is name of variable containing _space_ separated list of 7770# directories to be munged by the contents of PATH, which is string 7771# having a format: 7772# "DIR[:DIR]:" 7773# string "DIR[ DIR]" will be prepended to VARIABLE 7774# ":DIR[:DIR]" 7775# string "DIR[ DIR]" will be appended to VARIABLE 7776# "DIRP[:DIRP]::[DIRA:]DIRA" 7777# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7778# "DIRA[ DIRA]" will be appended to VARIABLE 7779# "DIR[:DIR]" 7780# VARIABLE will be replaced by "DIR[ DIR]" 7781func_munge_path_list () 7782{ 7783 case x$2 in 7784 x) 7785 ;; 7786 *:) 7787 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7788 ;; 7789 x:*) 7790 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7791 ;; 7792 *::*) 7793 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7794 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7795 ;; 7796 *) 7797 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7798 ;; 7799 esac 7800} 7801 7802for ac_header in dlfcn.h 7803do : 7804 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7805" 7806if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7807 cat >>confdefs.h <<_ACEOF 7808#define HAVE_DLFCN_H 1 7809_ACEOF 7810 7811fi 7812 7813done 7814 7815 7816 7817 7818 7819# Set options 7820 7821 7822 7823 enable_dlopen=no 7824 7825 7826 enable_win32_dll=no 7827 7828 7829 # Check whether --enable-shared was given. 7830if test "${enable_shared+set}" = set; then : 7831 enableval=$enable_shared; p=${PACKAGE-default} 7832 case $enableval in 7833 yes) enable_shared=yes ;; 7834 no) enable_shared=no ;; 7835 *) 7836 enable_shared=no 7837 # Look at the argument we got. We use all the common list separators. 7838 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7839 for pkg in $enableval; do 7840 IFS=$lt_save_ifs 7841 if test "X$pkg" = "X$p"; then 7842 enable_shared=yes 7843 fi 7844 done 7845 IFS=$lt_save_ifs 7846 ;; 7847 esac 7848else 7849 enable_shared=yes 7850fi 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 # Check whether --enable-static was given. 7861if test "${enable_static+set}" = set; then : 7862 enableval=$enable_static; p=${PACKAGE-default} 7863 case $enableval in 7864 yes) enable_static=yes ;; 7865 no) enable_static=no ;; 7866 *) 7867 enable_static=no 7868 # Look at the argument we got. We use all the common list separators. 7869 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7870 for pkg in $enableval; do 7871 IFS=$lt_save_ifs 7872 if test "X$pkg" = "X$p"; then 7873 enable_static=yes 7874 fi 7875 done 7876 IFS=$lt_save_ifs 7877 ;; 7878 esac 7879else 7880 enable_static=yes 7881fi 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892# Check whether --with-pic was given. 7893if test "${with_pic+set}" = set; then : 7894 withval=$with_pic; lt_p=${PACKAGE-default} 7895 case $withval in 7896 yes|no) pic_mode=$withval ;; 7897 *) 7898 pic_mode=default 7899 # Look at the argument we got. We use all the common list separators. 7900 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7901 for lt_pkg in $withval; do 7902 IFS=$lt_save_ifs 7903 if test "X$lt_pkg" = "X$lt_p"; then 7904 pic_mode=yes 7905 fi 7906 done 7907 IFS=$lt_save_ifs 7908 ;; 7909 esac 7910else 7911 pic_mode=default 7912fi 7913 7914 7915 7916 7917 7918 7919 7920 7921 # Check whether --enable-fast-install was given. 7922if test "${enable_fast_install+set}" = set; then : 7923 enableval=$enable_fast_install; p=${PACKAGE-default} 7924 case $enableval in 7925 yes) enable_fast_install=yes ;; 7926 no) enable_fast_install=no ;; 7927 *) 7928 enable_fast_install=no 7929 # Look at the argument we got. We use all the common list separators. 7930 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7931 for pkg in $enableval; do 7932 IFS=$lt_save_ifs 7933 if test "X$pkg" = "X$p"; then 7934 enable_fast_install=yes 7935 fi 7936 done 7937 IFS=$lt_save_ifs 7938 ;; 7939 esac 7940else 7941 enable_fast_install=yes 7942fi 7943 7944 7945 7946 7947 7948 7949 7950 7951 shared_archive_member_spec= 7952case $host,$enable_shared in 7953power*-*-aix[5-9]*,yes) 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7955$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7956 7957# Check whether --with-aix-soname was given. 7958if test "${with_aix_soname+set}" = set; then : 7959 withval=$with_aix_soname; case $withval in 7960 aix|svr4|both) 7961 ;; 7962 *) 7963 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7964 ;; 7965 esac 7966 lt_cv_with_aix_soname=$with_aix_soname 7967else 7968 if ${lt_cv_with_aix_soname+:} false; then : 7969 $as_echo_n "(cached) " >&6 7970else 7971 lt_cv_with_aix_soname=aix 7972fi 7973 7974 with_aix_soname=$lt_cv_with_aix_soname 7975fi 7976 7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7978$as_echo "$with_aix_soname" >&6; } 7979 if test aix != "$with_aix_soname"; then 7980 # For the AIX way of multilib, we name the shared archive member 7981 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7982 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7983 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7984 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7985 if test 64 = "${OBJECT_MODE-32}"; then 7986 shared_archive_member_spec=shr_64 7987 else 7988 shared_archive_member_spec=shr 7989 fi 7990 fi 7991 ;; 7992*) 7993 with_aix_soname=aix 7994 ;; 7995esac 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006# This can be used to rebuild libtool when needed 8007LIBTOOL_DEPS=$ltmain 8008 8009# Always use our own libtool. 8010LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041test -z "$LN_S" && LN_S="ln -s" 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056if test -n "${ZSH_VERSION+set}"; then 8057 setopt NO_GLOB_SUBST 8058fi 8059 8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8061$as_echo_n "checking for objdir... " >&6; } 8062if ${lt_cv_objdir+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 rm -f .libs 2>/dev/null 8066mkdir .libs 2>/dev/null 8067if test -d .libs; then 8068 lt_cv_objdir=.libs 8069else 8070 # MS-DOS does not allow filenames that begin with a dot. 8071 lt_cv_objdir=_libs 8072fi 8073rmdir .libs 2>/dev/null 8074fi 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8076$as_echo "$lt_cv_objdir" >&6; } 8077objdir=$lt_cv_objdir 8078 8079 8080 8081 8082 8083cat >>confdefs.h <<_ACEOF 8084#define LT_OBJDIR "$lt_cv_objdir/" 8085_ACEOF 8086 8087 8088 8089 8090case $host_os in 8091aix3*) 8092 # AIX sometimes has problems with the GCC collect2 program. For some 8093 # reason, if we set the COLLECT_NAMES environment variable, the problems 8094 # vanish in a puff of smoke. 8095 if test set != "${COLLECT_NAMES+set}"; then 8096 COLLECT_NAMES= 8097 export COLLECT_NAMES 8098 fi 8099 ;; 8100esac 8101 8102# Global variables: 8103ofile=libtool 8104can_build_shared=yes 8105 8106# All known linkers require a '.a' archive for static linking (except MSVC, 8107# which needs '.lib'). 8108libext=a 8109 8110with_gnu_ld=$lt_cv_prog_gnu_ld 8111 8112old_CC=$CC 8113old_CFLAGS=$CFLAGS 8114 8115# Set sane defaults for various variables 8116test -z "$CC" && CC=cc 8117test -z "$LTCC" && LTCC=$CC 8118test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8119test -z "$LD" && LD=ld 8120test -z "$ac_objext" && ac_objext=o 8121 8122func_cc_basename $compiler 8123cc_basename=$func_cc_basename_result 8124 8125 8126# Only perform the check for file, if the check method requires it 8127test -z "$MAGIC_CMD" && MAGIC_CMD=file 8128case $deplibs_check_method in 8129file_magic*) 8130 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8132$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8133if ${lt_cv_path_MAGIC_CMD+:} false; then : 8134 $as_echo_n "(cached) " >&6 8135else 8136 case $MAGIC_CMD in 8137[\\/*] | ?:[\\/]*) 8138 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8139 ;; 8140*) 8141 lt_save_MAGIC_CMD=$MAGIC_CMD 8142 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8143 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8144 for ac_dir in $ac_dummy; do 8145 IFS=$lt_save_ifs 8146 test -z "$ac_dir" && ac_dir=. 8147 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8148 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8149 if test -n "$file_magic_test_file"; then 8150 case $deplibs_check_method in 8151 "file_magic "*) 8152 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8153 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8154 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8155 $EGREP "$file_magic_regex" > /dev/null; then 8156 : 8157 else 8158 cat <<_LT_EOF 1>&2 8159 8160*** Warning: the command libtool uses to detect shared libraries, 8161*** $file_magic_cmd, produces output that libtool cannot recognize. 8162*** The result is that libtool may fail to recognize shared libraries 8163*** as such. This will affect the creation of libtool libraries that 8164*** depend on shared libraries, but programs linked with such libtool 8165*** libraries will work regardless of this problem. Nevertheless, you 8166*** may want to report the problem to your system manager and/or to 8167*** bug-libtool@gnu.org 8168 8169_LT_EOF 8170 fi ;; 8171 esac 8172 fi 8173 break 8174 fi 8175 done 8176 IFS=$lt_save_ifs 8177 MAGIC_CMD=$lt_save_MAGIC_CMD 8178 ;; 8179esac 8180fi 8181 8182MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8183if test -n "$MAGIC_CMD"; then 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8185$as_echo "$MAGIC_CMD" >&6; } 8186else 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8188$as_echo "no" >&6; } 8189fi 8190 8191 8192 8193 8194 8195if test -z "$lt_cv_path_MAGIC_CMD"; then 8196 if test -n "$ac_tool_prefix"; then 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8198$as_echo_n "checking for file... " >&6; } 8199if ${lt_cv_path_MAGIC_CMD+:} false; then : 8200 $as_echo_n "(cached) " >&6 8201else 8202 case $MAGIC_CMD in 8203[\\/*] | ?:[\\/]*) 8204 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8205 ;; 8206*) 8207 lt_save_MAGIC_CMD=$MAGIC_CMD 8208 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8209 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8210 for ac_dir in $ac_dummy; do 8211 IFS=$lt_save_ifs 8212 test -z "$ac_dir" && ac_dir=. 8213 if test -f "$ac_dir/file"; then 8214 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8215 if test -n "$file_magic_test_file"; then 8216 case $deplibs_check_method in 8217 "file_magic "*) 8218 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8219 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8220 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8221 $EGREP "$file_magic_regex" > /dev/null; then 8222 : 8223 else 8224 cat <<_LT_EOF 1>&2 8225 8226*** Warning: the command libtool uses to detect shared libraries, 8227*** $file_magic_cmd, produces output that libtool cannot recognize. 8228*** The result is that libtool may fail to recognize shared libraries 8229*** as such. This will affect the creation of libtool libraries that 8230*** depend on shared libraries, but programs linked with such libtool 8231*** libraries will work regardless of this problem. Nevertheless, you 8232*** may want to report the problem to your system manager and/or to 8233*** bug-libtool@gnu.org 8234 8235_LT_EOF 8236 fi ;; 8237 esac 8238 fi 8239 break 8240 fi 8241 done 8242 IFS=$lt_save_ifs 8243 MAGIC_CMD=$lt_save_MAGIC_CMD 8244 ;; 8245esac 8246fi 8247 8248MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8249if test -n "$MAGIC_CMD"; then 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8251$as_echo "$MAGIC_CMD" >&6; } 8252else 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8254$as_echo "no" >&6; } 8255fi 8256 8257 8258 else 8259 MAGIC_CMD=: 8260 fi 8261fi 8262 8263 fi 8264 ;; 8265esac 8266 8267# Use C for the default configuration in the libtool script 8268 8269lt_save_CC=$CC 8270ac_ext=c 8271ac_cpp='$CPP $CPPFLAGS' 8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8274ac_compiler_gnu=$ac_cv_c_compiler_gnu 8275 8276 8277# Source file extension for C test sources. 8278ac_ext=c 8279 8280# Object file extension for compiled C test sources. 8281objext=o 8282objext=$objext 8283 8284# Code to be used in simple compile tests 8285lt_simple_compile_test_code="int some_variable = 0;" 8286 8287# Code to be used in simple link tests 8288lt_simple_link_test_code='int main(){return(0);}' 8289 8290 8291 8292 8293 8294 8295 8296# If no C compiler was specified, use CC. 8297LTCC=${LTCC-"$CC"} 8298 8299# If no C compiler flags were specified, use CFLAGS. 8300LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8301 8302# Allow CC to be a program name with arguments. 8303compiler=$CC 8304 8305# Save the default compiler, since it gets overwritten when the other 8306# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8307compiler_DEFAULT=$CC 8308 8309# save warnings/boilerplate of simple test code 8310ac_outfile=conftest.$ac_objext 8311echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8312eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8313_lt_compiler_boilerplate=`cat conftest.err` 8314$RM conftest* 8315 8316ac_outfile=conftest.$ac_objext 8317echo "$lt_simple_link_test_code" >conftest.$ac_ext 8318eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8319_lt_linker_boilerplate=`cat conftest.err` 8320$RM -r conftest* 8321 8322 8323if test -n "$compiler"; then 8324 8325lt_prog_compiler_no_builtin_flag= 8326 8327if test yes = "$GCC"; then 8328 case $cc_basename in 8329 nvcc*) 8330 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8331 *) 8332 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8333 esac 8334 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8336$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8337if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8338 $as_echo_n "(cached) " >&6 8339else 8340 lt_cv_prog_compiler_rtti_exceptions=no 8341 ac_outfile=conftest.$ac_objext 8342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8343 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8344 # Insert the option either (1) after the last *FLAGS variable, or 8345 # (2) before a word containing "conftest.", or (3) at the end. 8346 # Note that $ac_compile itself does not contain backslashes and begins 8347 # with a dollar sign (not a hyphen), so the echo should work correctly. 8348 # The option is referenced via a variable to avoid confusing sed. 8349 lt_compile=`echo "$ac_compile" | $SED \ 8350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8352 -e 's:$: $lt_compiler_flag:'` 8353 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8354 (eval "$lt_compile" 2>conftest.err) 8355 ac_status=$? 8356 cat conftest.err >&5 8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8358 if (exit $ac_status) && test -s "$ac_outfile"; then 8359 # The compiler can only warn and ignore the option if not recognized 8360 # So say no if there are warnings other than the usual output. 8361 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8363 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8364 lt_cv_prog_compiler_rtti_exceptions=yes 8365 fi 8366 fi 8367 $RM conftest* 8368 8369fi 8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8371$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8372 8373if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8374 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8375else 8376 : 8377fi 8378 8379fi 8380 8381 8382 8383 8384 8385 8386 lt_prog_compiler_wl= 8387lt_prog_compiler_pic= 8388lt_prog_compiler_static= 8389 8390 8391 if test yes = "$GCC"; then 8392 lt_prog_compiler_wl='-Wl,' 8393 lt_prog_compiler_static='-static' 8394 8395 case $host_os in 8396 aix*) 8397 # All AIX code is PIC. 8398 if test ia64 = "$host_cpu"; then 8399 # AIX 5 now supports IA64 processor 8400 lt_prog_compiler_static='-Bstatic' 8401 fi 8402 lt_prog_compiler_pic='-fPIC' 8403 ;; 8404 8405 amigaos*) 8406 case $host_cpu in 8407 powerpc) 8408 # see comment about AmigaOS4 .so support 8409 lt_prog_compiler_pic='-fPIC' 8410 ;; 8411 m68k) 8412 # FIXME: we need at least 68020 code to build shared libraries, but 8413 # adding the '-m68020' flag to GCC prevents building anything better, 8414 # like '-m68040'. 8415 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8416 ;; 8417 esac 8418 ;; 8419 8420 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8421 # PIC is the default for these OSes. 8422 ;; 8423 8424 mingw* | cygwin* | pw32* | os2* | cegcc*) 8425 # This hack is so that the source file can tell whether it is being 8426 # built for inclusion in a dll (and should export symbols for example). 8427 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8428 # (--disable-auto-import) libraries 8429 lt_prog_compiler_pic='-DDLL_EXPORT' 8430 case $host_os in 8431 os2*) 8432 lt_prog_compiler_static='$wl-static' 8433 ;; 8434 esac 8435 ;; 8436 8437 darwin* | rhapsody*) 8438 # PIC is the default on this platform 8439 # Common symbols not allowed in MH_DYLIB files 8440 lt_prog_compiler_pic='-fno-common' 8441 ;; 8442 8443 haiku*) 8444 # PIC is the default for Haiku. 8445 # The "-static" flag exists, but is broken. 8446 lt_prog_compiler_static= 8447 ;; 8448 8449 hpux*) 8450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8452 # sets the default TLS model and affects inlining. 8453 case $host_cpu in 8454 hppa*64*) 8455 # +Z the default 8456 ;; 8457 *) 8458 lt_prog_compiler_pic='-fPIC' 8459 ;; 8460 esac 8461 ;; 8462 8463 interix[3-9]*) 8464 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8465 # Instead, we relocate shared libraries at runtime. 8466 ;; 8467 8468 msdosdjgpp*) 8469 # Just because we use GCC doesn't mean we suddenly get shared libraries 8470 # on systems that don't support them. 8471 lt_prog_compiler_can_build_shared=no 8472 enable_shared=no 8473 ;; 8474 8475 *nto* | *qnx*) 8476 # QNX uses GNU C++, but need to define -shared option too, otherwise 8477 # it will coredump. 8478 lt_prog_compiler_pic='-fPIC -shared' 8479 ;; 8480 8481 sysv4*MP*) 8482 if test -d /usr/nec; then 8483 lt_prog_compiler_pic=-Kconform_pic 8484 fi 8485 ;; 8486 8487 *) 8488 lt_prog_compiler_pic='-fPIC' 8489 ;; 8490 esac 8491 8492 case $cc_basename in 8493 nvcc*) # Cuda Compiler Driver 2.2 8494 lt_prog_compiler_wl='-Xlinker ' 8495 if test -n "$lt_prog_compiler_pic"; then 8496 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8497 fi 8498 ;; 8499 esac 8500 else 8501 # PORTME Check for flag to pass linker flags through the system compiler. 8502 case $host_os in 8503 aix*) 8504 lt_prog_compiler_wl='-Wl,' 8505 if test ia64 = "$host_cpu"; then 8506 # AIX 5 now supports IA64 processor 8507 lt_prog_compiler_static='-Bstatic' 8508 else 8509 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8510 fi 8511 ;; 8512 8513 darwin* | rhapsody*) 8514 # PIC is the default on this platform 8515 # Common symbols not allowed in MH_DYLIB files 8516 lt_prog_compiler_pic='-fno-common' 8517 case $cc_basename in 8518 nagfor*) 8519 # NAG Fortran compiler 8520 lt_prog_compiler_wl='-Wl,-Wl,,' 8521 lt_prog_compiler_pic='-PIC' 8522 lt_prog_compiler_static='-Bstatic' 8523 ;; 8524 esac 8525 ;; 8526 8527 mingw* | cygwin* | pw32* | os2* | cegcc*) 8528 # This hack is so that the source file can tell whether it is being 8529 # built for inclusion in a dll (and should export symbols for example). 8530 lt_prog_compiler_pic='-DDLL_EXPORT' 8531 case $host_os in 8532 os2*) 8533 lt_prog_compiler_static='$wl-static' 8534 ;; 8535 esac 8536 ;; 8537 8538 hpux9* | hpux10* | hpux11*) 8539 lt_prog_compiler_wl='-Wl,' 8540 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8541 # not for PA HP-UX. 8542 case $host_cpu in 8543 hppa*64*|ia64*) 8544 # +Z the default 8545 ;; 8546 *) 8547 lt_prog_compiler_pic='+Z' 8548 ;; 8549 esac 8550 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8551 lt_prog_compiler_static='$wl-a ${wl}archive' 8552 ;; 8553 8554 irix5* | irix6* | nonstopux*) 8555 lt_prog_compiler_wl='-Wl,' 8556 # PIC (with -KPIC) is the default. 8557 lt_prog_compiler_static='-non_shared' 8558 ;; 8559 8560 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8561 case $cc_basename in 8562 # old Intel for x86_64, which still supported -KPIC. 8563 ecc*) 8564 lt_prog_compiler_wl='-Wl,' 8565 lt_prog_compiler_pic='-KPIC' 8566 lt_prog_compiler_static='-static' 8567 ;; 8568 # icc used to be incompatible with GCC. 8569 # ICC 10 doesn't accept -KPIC any more. 8570 icc* | ifort*) 8571 lt_prog_compiler_wl='-Wl,' 8572 lt_prog_compiler_pic='-fPIC' 8573 lt_prog_compiler_static='-static' 8574 ;; 8575 # Lahey Fortran 8.1. 8576 lf95*) 8577 lt_prog_compiler_wl='-Wl,' 8578 lt_prog_compiler_pic='--shared' 8579 lt_prog_compiler_static='--static' 8580 ;; 8581 nagfor*) 8582 # NAG Fortran compiler 8583 lt_prog_compiler_wl='-Wl,-Wl,,' 8584 lt_prog_compiler_pic='-PIC' 8585 lt_prog_compiler_static='-Bstatic' 8586 ;; 8587 tcc*) 8588 # Fabrice Bellard et al's Tiny C Compiler 8589 lt_prog_compiler_wl='-Wl,' 8590 lt_prog_compiler_pic='-fPIC' 8591 lt_prog_compiler_static='-static' 8592 ;; 8593 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8594 # Portland Group compilers (*not* the Pentium gcc compiler, 8595 # which looks to be a dead project) 8596 lt_prog_compiler_wl='-Wl,' 8597 lt_prog_compiler_pic='-fpic' 8598 lt_prog_compiler_static='-Bstatic' 8599 ;; 8600 ccc*) 8601 lt_prog_compiler_wl='-Wl,' 8602 # All Alpha code is PIC. 8603 lt_prog_compiler_static='-non_shared' 8604 ;; 8605 xl* | bgxl* | bgf* | mpixl*) 8606 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8607 lt_prog_compiler_wl='-Wl,' 8608 lt_prog_compiler_pic='-qpic' 8609 lt_prog_compiler_static='-qstaticlink' 8610 ;; 8611 *) 8612 case `$CC -V 2>&1 | sed 5q` in 8613 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8614 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8615 lt_prog_compiler_pic='-KPIC' 8616 lt_prog_compiler_static='-Bstatic' 8617 lt_prog_compiler_wl='' 8618 ;; 8619 *Sun\ F* | *Sun*Fortran*) 8620 lt_prog_compiler_pic='-KPIC' 8621 lt_prog_compiler_static='-Bstatic' 8622 lt_prog_compiler_wl='-Qoption ld ' 8623 ;; 8624 *Sun\ C*) 8625 # Sun C 5.9 8626 lt_prog_compiler_pic='-KPIC' 8627 lt_prog_compiler_static='-Bstatic' 8628 lt_prog_compiler_wl='-Wl,' 8629 ;; 8630 *Intel*\ [CF]*Compiler*) 8631 lt_prog_compiler_wl='-Wl,' 8632 lt_prog_compiler_pic='-fPIC' 8633 lt_prog_compiler_static='-static' 8634 ;; 8635 *Portland\ Group*) 8636 lt_prog_compiler_wl='-Wl,' 8637 lt_prog_compiler_pic='-fpic' 8638 lt_prog_compiler_static='-Bstatic' 8639 ;; 8640 esac 8641 ;; 8642 esac 8643 ;; 8644 8645 newsos6) 8646 lt_prog_compiler_pic='-KPIC' 8647 lt_prog_compiler_static='-Bstatic' 8648 ;; 8649 8650 *nto* | *qnx*) 8651 # QNX uses GNU C++, but need to define -shared option too, otherwise 8652 # it will coredump. 8653 lt_prog_compiler_pic='-fPIC -shared' 8654 ;; 8655 8656 osf3* | osf4* | osf5*) 8657 lt_prog_compiler_wl='-Wl,' 8658 # All OSF/1 code is PIC. 8659 lt_prog_compiler_static='-non_shared' 8660 ;; 8661 8662 rdos*) 8663 lt_prog_compiler_static='-non_shared' 8664 ;; 8665 8666 solaris*) 8667 lt_prog_compiler_pic='-KPIC' 8668 lt_prog_compiler_static='-Bstatic' 8669 case $cc_basename in 8670 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8671 lt_prog_compiler_wl='-Qoption ld ';; 8672 *) 8673 lt_prog_compiler_wl='-Wl,';; 8674 esac 8675 ;; 8676 8677 sunos4*) 8678 lt_prog_compiler_wl='-Qoption ld ' 8679 lt_prog_compiler_pic='-PIC' 8680 lt_prog_compiler_static='-Bstatic' 8681 ;; 8682 8683 sysv4 | sysv4.2uw2* | sysv4.3*) 8684 lt_prog_compiler_wl='-Wl,' 8685 lt_prog_compiler_pic='-KPIC' 8686 lt_prog_compiler_static='-Bstatic' 8687 ;; 8688 8689 sysv4*MP*) 8690 if test -d /usr/nec; then 8691 lt_prog_compiler_pic='-Kconform_pic' 8692 lt_prog_compiler_static='-Bstatic' 8693 fi 8694 ;; 8695 8696 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8697 lt_prog_compiler_wl='-Wl,' 8698 lt_prog_compiler_pic='-KPIC' 8699 lt_prog_compiler_static='-Bstatic' 8700 ;; 8701 8702 unicos*) 8703 lt_prog_compiler_wl='-Wl,' 8704 lt_prog_compiler_can_build_shared=no 8705 ;; 8706 8707 uts4*) 8708 lt_prog_compiler_pic='-pic' 8709 lt_prog_compiler_static='-Bstatic' 8710 ;; 8711 8712 *) 8713 lt_prog_compiler_can_build_shared=no 8714 ;; 8715 esac 8716 fi 8717 8718case $host_os in 8719 # For platforms that do not support PIC, -DPIC is meaningless: 8720 *djgpp*) 8721 lt_prog_compiler_pic= 8722 ;; 8723 *) 8724 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8725 ;; 8726esac 8727 8728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8729$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8730if ${lt_cv_prog_compiler_pic+:} false; then : 8731 $as_echo_n "(cached) " >&6 8732else 8733 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8734fi 8735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8736$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8737lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8738 8739# 8740# Check to make sure the PIC flag actually works. 8741# 8742if test -n "$lt_prog_compiler_pic"; then 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8744$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8745if ${lt_cv_prog_compiler_pic_works+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 lt_cv_prog_compiler_pic_works=no 8749 ac_outfile=conftest.$ac_objext 8750 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8751 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8752 # Insert the option either (1) after the last *FLAGS variable, or 8753 # (2) before a word containing "conftest.", or (3) at the end. 8754 # Note that $ac_compile itself does not contain backslashes and begins 8755 # with a dollar sign (not a hyphen), so the echo should work correctly. 8756 # The option is referenced via a variable to avoid confusing sed. 8757 lt_compile=`echo "$ac_compile" | $SED \ 8758 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8759 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8760 -e 's:$: $lt_compiler_flag:'` 8761 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8762 (eval "$lt_compile" 2>conftest.err) 8763 ac_status=$? 8764 cat conftest.err >&5 8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8766 if (exit $ac_status) && test -s "$ac_outfile"; then 8767 # The compiler can only warn and ignore the option if not recognized 8768 # So say no if there are warnings other than the usual output. 8769 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8771 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8772 lt_cv_prog_compiler_pic_works=yes 8773 fi 8774 fi 8775 $RM conftest* 8776 8777fi 8778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8779$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8780 8781if test yes = "$lt_cv_prog_compiler_pic_works"; then 8782 case $lt_prog_compiler_pic in 8783 "" | " "*) ;; 8784 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8785 esac 8786else 8787 lt_prog_compiler_pic= 8788 lt_prog_compiler_can_build_shared=no 8789fi 8790 8791fi 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803# 8804# Check to make sure the static flag actually works. 8805# 8806wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8808$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8809if ${lt_cv_prog_compiler_static_works+:} false; then : 8810 $as_echo_n "(cached) " >&6 8811else 8812 lt_cv_prog_compiler_static_works=no 8813 save_LDFLAGS=$LDFLAGS 8814 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8815 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8816 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8817 # The linker can only warn and ignore the option if not recognized 8818 # So say no if there are warnings 8819 if test -s conftest.err; then 8820 # Append any errors to the config.log. 8821 cat conftest.err 1>&5 8822 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8824 if diff conftest.exp conftest.er2 >/dev/null; then 8825 lt_cv_prog_compiler_static_works=yes 8826 fi 8827 else 8828 lt_cv_prog_compiler_static_works=yes 8829 fi 8830 fi 8831 $RM -r conftest* 8832 LDFLAGS=$save_LDFLAGS 8833 8834fi 8835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8836$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8837 8838if test yes = "$lt_cv_prog_compiler_static_works"; then 8839 : 8840else 8841 lt_prog_compiler_static= 8842fi 8843 8844 8845 8846 8847 8848 8849 8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8851$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8852if ${lt_cv_prog_compiler_c_o+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854else 8855 lt_cv_prog_compiler_c_o=no 8856 $RM -r conftest 2>/dev/null 8857 mkdir conftest 8858 cd conftest 8859 mkdir out 8860 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8861 8862 lt_compiler_flag="-o out/conftest2.$ac_objext" 8863 # Insert the option either (1) after the last *FLAGS variable, or 8864 # (2) before a word containing "conftest.", or (3) at the end. 8865 # Note that $ac_compile itself does not contain backslashes and begins 8866 # with a dollar sign (not a hyphen), so the echo should work correctly. 8867 lt_compile=`echo "$ac_compile" | $SED \ 8868 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8870 -e 's:$: $lt_compiler_flag:'` 8871 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8872 (eval "$lt_compile" 2>out/conftest.err) 8873 ac_status=$? 8874 cat out/conftest.err >&5 8875 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8876 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8877 then 8878 # The compiler can only warn and ignore the option if not recognized 8879 # So say no if there are warnings 8880 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8881 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8882 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8883 lt_cv_prog_compiler_c_o=yes 8884 fi 8885 fi 8886 chmod u+w . 2>&5 8887 $RM conftest* 8888 # SGI C++ compiler will create directory out/ii_files/ for 8889 # template instantiation 8890 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8891 $RM out/* && rmdir out 8892 cd .. 8893 $RM -r conftest 8894 $RM conftest* 8895 8896fi 8897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8898$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8899 8900 8901 8902 8903 8904 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8906$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8907if ${lt_cv_prog_compiler_c_o+:} false; then : 8908 $as_echo_n "(cached) " >&6 8909else 8910 lt_cv_prog_compiler_c_o=no 8911 $RM -r conftest 2>/dev/null 8912 mkdir conftest 8913 cd conftest 8914 mkdir out 8915 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8916 8917 lt_compiler_flag="-o out/conftest2.$ac_objext" 8918 # Insert the option either (1) after the last *FLAGS variable, or 8919 # (2) before a word containing "conftest.", or (3) at the end. 8920 # Note that $ac_compile itself does not contain backslashes and begins 8921 # with a dollar sign (not a hyphen), so the echo should work correctly. 8922 lt_compile=`echo "$ac_compile" | $SED \ 8923 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8924 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8925 -e 's:$: $lt_compiler_flag:'` 8926 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8927 (eval "$lt_compile" 2>out/conftest.err) 8928 ac_status=$? 8929 cat out/conftest.err >&5 8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8931 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8932 then 8933 # The compiler can only warn and ignore the option if not recognized 8934 # So say no if there are warnings 8935 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8936 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8937 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8938 lt_cv_prog_compiler_c_o=yes 8939 fi 8940 fi 8941 chmod u+w . 2>&5 8942 $RM conftest* 8943 # SGI C++ compiler will create directory out/ii_files/ for 8944 # template instantiation 8945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8946 $RM out/* && rmdir out 8947 cd .. 8948 $RM -r conftest 8949 $RM conftest* 8950 8951fi 8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8953$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8954 8955 8956 8957 8958hard_links=nottested 8959if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8960 # do not overwrite the value of need_locks provided by the user 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8962$as_echo_n "checking if we can lock with hard links... " >&6; } 8963 hard_links=yes 8964 $RM conftest* 8965 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8966 touch conftest.a 8967 ln conftest.a conftest.b 2>&5 || hard_links=no 8968 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8970$as_echo "$hard_links" >&6; } 8971 if test no = "$hard_links"; then 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8973$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8974 need_locks=warn 8975 fi 8976else 8977 need_locks=no 8978fi 8979 8980 8981 8982 8983 8984 8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8986$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8987 8988 runpath_var= 8989 allow_undefined_flag= 8990 always_export_symbols=no 8991 archive_cmds= 8992 archive_expsym_cmds= 8993 compiler_needs_object=no 8994 enable_shared_with_static_runtimes=no 8995 export_dynamic_flag_spec= 8996 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8997 hardcode_automatic=no 8998 hardcode_direct=no 8999 hardcode_direct_absolute=no 9000 hardcode_libdir_flag_spec= 9001 hardcode_libdir_separator= 9002 hardcode_minus_L=no 9003 hardcode_shlibpath_var=unsupported 9004 inherit_rpath=no 9005 link_all_deplibs=unknown 9006 module_cmds= 9007 module_expsym_cmds= 9008 old_archive_from_new_cmds= 9009 old_archive_from_expsyms_cmds= 9010 thread_safe_flag_spec= 9011 whole_archive_flag_spec= 9012 # include_expsyms should be a list of space-separated symbols to be *always* 9013 # included in the symbol list 9014 include_expsyms= 9015 # exclude_expsyms can be an extended regexp of symbols to exclude 9016 # it will be wrapped by ' (' and ')$', so one must not match beginning or 9017 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 9018 # as well as any symbol that contains 'd'. 9019 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9020 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9021 # platforms (ab)use it in PIC code, but their linkers get confused if 9022 # the symbol is explicitly referenced. Since portable code cannot 9023 # rely on this symbol name, it's probably fine to never include it in 9024 # preloaded symbol tables. 9025 # Exclude shared library initialization/finalization symbols. 9026 extract_expsyms_cmds= 9027 9028 case $host_os in 9029 cygwin* | mingw* | pw32* | cegcc*) 9030 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9031 # When not using gcc, we currently assume that we are using 9032 # Microsoft Visual C++. 9033 if test yes != "$GCC"; then 9034 with_gnu_ld=no 9035 fi 9036 ;; 9037 interix*) 9038 # we just hope/assume this is gcc and not c89 (= MSVC++) 9039 with_gnu_ld=yes 9040 ;; 9041 openbsd* | bitrig*) 9042 with_gnu_ld=no 9043 ;; 9044 esac 9045 9046 ld_shlibs=yes 9047 9048 # On some targets, GNU ld is compatible enough with the native linker 9049 # that we're better off using the native interface for both. 9050 lt_use_gnu_ld_interface=no 9051 if test yes = "$with_gnu_ld"; then 9052 case $host_os in 9053 aix*) 9054 # The AIX port of GNU ld has always aspired to compatibility 9055 # with the native linker. However, as the warning in the GNU ld 9056 # block says, versions before 2.19.5* couldn't really create working 9057 # shared libraries, regardless of the interface used. 9058 case `$LD -v 2>&1` in 9059 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9060 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9061 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9062 *) 9063 lt_use_gnu_ld_interface=yes 9064 ;; 9065 esac 9066 ;; 9067 *) 9068 lt_use_gnu_ld_interface=yes 9069 ;; 9070 esac 9071 fi 9072 9073 if test yes = "$lt_use_gnu_ld_interface"; then 9074 # If archive_cmds runs LD, not CC, wlarc should be empty 9075 wlarc='$wl' 9076 9077 # Set some defaults for GNU ld with shared library support. These 9078 # are reset later if shared libraries are not supported. Putting them 9079 # here allows them to be overridden if necessary. 9080 runpath_var=LD_RUN_PATH 9081 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9082 export_dynamic_flag_spec='$wl--export-dynamic' 9083 # ancient GNU ld didn't support --whole-archive et. al. 9084 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9085 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 9086 else 9087 whole_archive_flag_spec= 9088 fi 9089 supports_anon_versioning=no 9090 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 9091 *GNU\ gold*) supports_anon_versioning=yes ;; 9092 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9093 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9094 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9095 *\ 2.11.*) ;; # other 2.11 versions 9096 *) supports_anon_versioning=yes ;; 9097 esac 9098 9099 # See if GNU ld supports shared libraries. 9100 case $host_os in 9101 aix[3-9]*) 9102 # On AIX/PPC, the GNU linker is very broken 9103 if test ia64 != "$host_cpu"; then 9104 ld_shlibs=no 9105 cat <<_LT_EOF 1>&2 9106 9107*** Warning: the GNU linker, at least up to release 2.19, is reported 9108*** to be unable to reliably create shared libraries on AIX. 9109*** Therefore, libtool is disabling shared libraries support. If you 9110*** really care for shared libraries, you may want to install binutils 9111*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9112*** You will then need to restart the configuration process. 9113 9114_LT_EOF 9115 fi 9116 ;; 9117 9118 amigaos*) 9119 case $host_cpu in 9120 powerpc) 9121 # see comment about AmigaOS4 .so support 9122 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9123 archive_expsym_cmds='' 9124 ;; 9125 m68k) 9126 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)' 9127 hardcode_libdir_flag_spec='-L$libdir' 9128 hardcode_minus_L=yes 9129 ;; 9130 esac 9131 ;; 9132 9133 beos*) 9134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9135 allow_undefined_flag=unsupported 9136 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9137 # support --undefined. This deserves some investigation. FIXME 9138 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9139 else 9140 ld_shlibs=no 9141 fi 9142 ;; 9143 9144 cygwin* | mingw* | pw32* | cegcc*) 9145 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9146 # as there is no search path for DLLs. 9147 hardcode_libdir_flag_spec='-L$libdir' 9148 export_dynamic_flag_spec='$wl--export-all-symbols' 9149 allow_undefined_flag=unsupported 9150 always_export_symbols=no 9151 enable_shared_with_static_runtimes=yes 9152 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' 9153 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9154 9155 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9157 # If the export-symbols file already is a .def file, use it as 9158 # is; otherwise, prepend EXPORTS... 9159 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9160 cp $export_symbols $output_objdir/$soname.def; 9161 else 9162 echo EXPORTS > $output_objdir/$soname.def; 9163 cat $export_symbols >> $output_objdir/$soname.def; 9164 fi~ 9165 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9166 else 9167 ld_shlibs=no 9168 fi 9169 ;; 9170 9171 haiku*) 9172 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9173 link_all_deplibs=yes 9174 ;; 9175 9176 os2*) 9177 hardcode_libdir_flag_spec='-L$libdir' 9178 hardcode_minus_L=yes 9179 allow_undefined_flag=unsupported 9180 shrext_cmds=.dll 9181 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9182 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9183 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9184 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9185 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9186 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9187 emximp -o $lib $output_objdir/$libname.def' 9188 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9189 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9190 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9191 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9192 prefix_cmds="$SED"~ 9193 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9194 prefix_cmds="$prefix_cmds -e 1d"; 9195 fi~ 9196 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9197 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9198 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9199 emximp -o $lib $output_objdir/$libname.def' 9200 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9201 enable_shared_with_static_runtimes=yes 9202 ;; 9203 9204 interix[3-9]*) 9205 hardcode_direct=no 9206 hardcode_shlibpath_var=no 9207 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9208 export_dynamic_flag_spec='$wl-E' 9209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9210 # Instead, shared libraries are loaded at an image base (0x10000000 by 9211 # default) and relocated if they conflict, which is a slow very memory 9212 # consuming and fragmenting process. To avoid this, we pick a random, 9213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9214 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9215 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9216 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' 9217 ;; 9218 9219 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9220 tmp_diet=no 9221 if test linux-dietlibc = "$host_os"; then 9222 case $cc_basename in 9223 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9224 esac 9225 fi 9226 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9227 && test no = "$tmp_diet" 9228 then 9229 tmp_addflag=' $pic_flag' 9230 tmp_sharedflag='-shared' 9231 case $cc_basename,$host_cpu in 9232 pgcc*) # Portland Group C compiler 9233 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' 9234 tmp_addflag=' $pic_flag' 9235 ;; 9236 pgf77* | pgf90* | pgf95* | pgfortran*) 9237 # Portland Group f77 and f90 compilers 9238 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' 9239 tmp_addflag=' $pic_flag -Mnomain' ;; 9240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9241 tmp_addflag=' -i_dynamic' ;; 9242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9243 tmp_addflag=' -i_dynamic -nofor_main' ;; 9244 ifc* | ifort*) # Intel Fortran compiler 9245 tmp_addflag=' -nofor_main' ;; 9246 lf95*) # Lahey Fortran 8.1 9247 whole_archive_flag_spec= 9248 tmp_sharedflag='--shared' ;; 9249 nagfor*) # NAGFOR 5.3 9250 tmp_sharedflag='-Wl,-shared' ;; 9251 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9252 tmp_sharedflag='-qmkshrobj' 9253 tmp_addflag= ;; 9254 nvcc*) # Cuda Compiler Driver 2.2 9255 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' 9256 compiler_needs_object=yes 9257 ;; 9258 esac 9259 case `$CC -V 2>&1 | sed 5q` in 9260 *Sun\ C*) # Sun C 5.9 9261 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' 9262 compiler_needs_object=yes 9263 tmp_sharedflag='-G' ;; 9264 *Sun\ F*) # Sun Fortran 8.3 9265 tmp_sharedflag='-G' ;; 9266 esac 9267 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9268 9269 if test yes = "$supports_anon_versioning"; then 9270 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9271 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9272 echo "local: *; };" >> $output_objdir/$libname.ver~ 9273 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9274 fi 9275 9276 case $cc_basename in 9277 tcc*) 9278 export_dynamic_flag_spec='-rdynamic' 9279 ;; 9280 xlf* | bgf* | bgxlf* | mpixlf*) 9281 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9282 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9283 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9284 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9285 if test yes = "$supports_anon_versioning"; then 9286 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9287 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9288 echo "local: *; };" >> $output_objdir/$libname.ver~ 9289 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9290 fi 9291 ;; 9292 esac 9293 else 9294 ld_shlibs=no 9295 fi 9296 ;; 9297 9298 netbsd*) 9299 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9300 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9301 wlarc= 9302 else 9303 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9304 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9305 fi 9306 ;; 9307 9308 solaris*) 9309 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9310 ld_shlibs=no 9311 cat <<_LT_EOF 1>&2 9312 9313*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9314*** create shared libraries on Solaris systems. Therefore, libtool 9315*** is disabling shared libraries support. We urge you to upgrade GNU 9316*** binutils to release 2.9.1 or newer. Another option is to modify 9317*** your PATH or compiler configuration so that the native linker is 9318*** used, and then restart. 9319 9320_LT_EOF 9321 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9322 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9323 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9324 else 9325 ld_shlibs=no 9326 fi 9327 ;; 9328 9329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9330 case `$LD -v 2>&1` in 9331 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9332 ld_shlibs=no 9333 cat <<_LT_EOF 1>&2 9334 9335*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9336*** reliably create shared libraries on SCO systems. Therefore, libtool 9337*** is disabling shared libraries support. We urge you to upgrade GNU 9338*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9339*** your PATH or compiler configuration so that the native linker is 9340*** used, and then restart. 9341 9342_LT_EOF 9343 ;; 9344 *) 9345 # For security reasons, it is highly recommended that you always 9346 # use absolute paths for naming shared libraries, and exclude the 9347 # DT_RUNPATH tag from executables and libraries. But doing so 9348 # requires that you compile everything twice, which is a pain. 9349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9350 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9351 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9352 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9353 else 9354 ld_shlibs=no 9355 fi 9356 ;; 9357 esac 9358 ;; 9359 9360 sunos4*) 9361 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9362 wlarc= 9363 hardcode_direct=yes 9364 hardcode_shlibpath_var=no 9365 ;; 9366 9367 *) 9368 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9369 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9370 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9371 else 9372 ld_shlibs=no 9373 fi 9374 ;; 9375 esac 9376 9377 if test no = "$ld_shlibs"; then 9378 runpath_var= 9379 hardcode_libdir_flag_spec= 9380 export_dynamic_flag_spec= 9381 whole_archive_flag_spec= 9382 fi 9383 else 9384 # PORTME fill in a description of your system's linker (not GNU ld) 9385 case $host_os in 9386 aix3*) 9387 allow_undefined_flag=unsupported 9388 always_export_symbols=yes 9389 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' 9390 # Note: this linker hardcodes the directories in LIBPATH if there 9391 # are no directories specified by -L. 9392 hardcode_minus_L=yes 9393 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9394 # Neither direct hardcoding nor static linking is supported with a 9395 # broken collect2. 9396 hardcode_direct=unsupported 9397 fi 9398 ;; 9399 9400 aix[4-9]*) 9401 if test ia64 = "$host_cpu"; then 9402 # On IA64, the linker does run time linking by default, so we don't 9403 # have to do anything special. 9404 aix_use_runtimelinking=no 9405 exp_sym_flag='-Bexport' 9406 no_entry_flag= 9407 else 9408 # If we're using GNU nm, then we don't want the "-C" option. 9409 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9410 # Without the "-l" option, or with the "-B" option, AIX nm treats 9411 # weak defined symbols like other global defined symbols, whereas 9412 # GNU nm marks them as "W". 9413 # While the 'weak' keyword is ignored in the Export File, we need 9414 # it in the Import File for the 'aix-soname' feature, so we have 9415 # to replace the "-B" option with "-P" for AIX nm. 9416 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9417 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' 9418 else 9419 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' 9420 fi 9421 aix_use_runtimelinking=no 9422 9423 # Test if we are trying to use run time linking or normal 9424 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9425 # have runtime linking enabled, and use it for executables. 9426 # For shared libraries, we enable/disable runtime linking 9427 # depending on the kind of the shared library created - 9428 # when "with_aix_soname,aix_use_runtimelinking" is: 9429 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9430 # "aix,yes" lib.so shared, rtl:yes, for executables 9431 # lib.a static archive 9432 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9433 # lib.a(lib.so.V) shared, rtl:no, for executables 9434 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9435 # lib.a(lib.so.V) shared, rtl:no 9436 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9437 # lib.a static archive 9438 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9439 for ld_flag in $LDFLAGS; do 9440 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9441 aix_use_runtimelinking=yes 9442 break 9443 fi 9444 done 9445 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9446 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9447 # so we don't have lib.a shared libs to link our executables. 9448 # We have to force runtime linking in this case. 9449 aix_use_runtimelinking=yes 9450 LDFLAGS="$LDFLAGS -Wl,-brtl" 9451 fi 9452 ;; 9453 esac 9454 9455 exp_sym_flag='-bexport' 9456 no_entry_flag='-bnoentry' 9457 fi 9458 9459 # When large executables or shared objects are built, AIX ld can 9460 # have problems creating the table of contents. If linking a library 9461 # or program results in "error TOC overflow" add -mminimal-toc to 9462 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9463 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9464 9465 archive_cmds='' 9466 hardcode_direct=yes 9467 hardcode_direct_absolute=yes 9468 hardcode_libdir_separator=':' 9469 link_all_deplibs=yes 9470 file_list_spec='$wl-f,' 9471 case $with_aix_soname,$aix_use_runtimelinking in 9472 aix,*) ;; # traditional, no import file 9473 svr4,* | *,yes) # use import file 9474 # The Import File defines what to hardcode. 9475 hardcode_direct=no 9476 hardcode_direct_absolute=no 9477 ;; 9478 esac 9479 9480 if test yes = "$GCC"; then 9481 case $host_os in aix4.[012]|aix4.[012].*) 9482 # We only want to do this on AIX 4.2 and lower, the check 9483 # below for broken collect2 doesn't work under 4.3+ 9484 collect2name=`$CC -print-prog-name=collect2` 9485 if test -f "$collect2name" && 9486 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9487 then 9488 # We have reworked collect2 9489 : 9490 else 9491 # We have old collect2 9492 hardcode_direct=unsupported 9493 # It fails to find uninstalled libraries when the uninstalled 9494 # path is not listed in the libpath. Setting hardcode_minus_L 9495 # to unsupported forces relinking 9496 hardcode_minus_L=yes 9497 hardcode_libdir_flag_spec='-L$libdir' 9498 hardcode_libdir_separator= 9499 fi 9500 ;; 9501 esac 9502 shared_flag='-shared' 9503 if test yes = "$aix_use_runtimelinking"; then 9504 shared_flag="$shared_flag "'$wl-G' 9505 fi 9506 # Need to ensure runtime linking is disabled for the traditional 9507 # shared library, or the linker may eventually find shared libraries 9508 # /with/ Import File - we do not want to mix them. 9509 shared_flag_aix='-shared' 9510 shared_flag_svr4='-shared $wl-G' 9511 else 9512 # not using gcc 9513 if test ia64 = "$host_cpu"; then 9514 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9515 # chokes on -Wl,-G. The following line is correct: 9516 shared_flag='-G' 9517 else 9518 if test yes = "$aix_use_runtimelinking"; then 9519 shared_flag='$wl-G' 9520 else 9521 shared_flag='$wl-bM:SRE' 9522 fi 9523 shared_flag_aix='$wl-bM:SRE' 9524 shared_flag_svr4='$wl-G' 9525 fi 9526 fi 9527 9528 export_dynamic_flag_spec='$wl-bexpall' 9529 # It seems that -bexpall does not export symbols beginning with 9530 # underscore (_), so it is better to generate a list of symbols to export. 9531 always_export_symbols=yes 9532 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9533 # Warning - without using the other runtime loading flags (-brtl), 9534 # -berok will link without error, but may produce a broken library. 9535 allow_undefined_flag='-berok' 9536 # Determine the default libpath from the value encoded in an 9537 # empty executable. 9538 if test set = "${lt_cv_aix_libpath+set}"; then 9539 aix_libpath=$lt_cv_aix_libpath 9540else 9541 if ${lt_cv_aix_libpath_+:} false; then : 9542 $as_echo_n "(cached) " >&6 9543else 9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9545/* end confdefs.h. */ 9546 9547int 9548main () 9549{ 9550 9551 ; 9552 return 0; 9553} 9554_ACEOF 9555if ac_fn_c_try_link "$LINENO"; then : 9556 9557 lt_aix_libpath_sed=' 9558 /Import File Strings/,/^$/ { 9559 /^0/ { 9560 s/^0 *\([^ ]*\) *$/\1/ 9561 p 9562 } 9563 }' 9564 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9565 # Check for a 64-bit object if we didn't find anything. 9566 if test -z "$lt_cv_aix_libpath_"; then 9567 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9568 fi 9569fi 9570rm -f core conftest.err conftest.$ac_objext \ 9571 conftest$ac_exeext conftest.$ac_ext 9572 if test -z "$lt_cv_aix_libpath_"; then 9573 lt_cv_aix_libpath_=/usr/lib:/lib 9574 fi 9575 9576fi 9577 9578 aix_libpath=$lt_cv_aix_libpath_ 9579fi 9580 9581 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9582 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 9583 else 9584 if test ia64 = "$host_cpu"; then 9585 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9586 allow_undefined_flag="-z nodefs" 9587 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" 9588 else 9589 # Determine the default libpath from the value encoded in an 9590 # empty executable. 9591 if test set = "${lt_cv_aix_libpath+set}"; then 9592 aix_libpath=$lt_cv_aix_libpath 9593else 9594 if ${lt_cv_aix_libpath_+:} false; then : 9595 $as_echo_n "(cached) " >&6 9596else 9597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9598/* end confdefs.h. */ 9599 9600int 9601main () 9602{ 9603 9604 ; 9605 return 0; 9606} 9607_ACEOF 9608if ac_fn_c_try_link "$LINENO"; then : 9609 9610 lt_aix_libpath_sed=' 9611 /Import File Strings/,/^$/ { 9612 /^0/ { 9613 s/^0 *\([^ ]*\) *$/\1/ 9614 p 9615 } 9616 }' 9617 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9618 # Check for a 64-bit object if we didn't find anything. 9619 if test -z "$lt_cv_aix_libpath_"; then 9620 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9621 fi 9622fi 9623rm -f core conftest.err conftest.$ac_objext \ 9624 conftest$ac_exeext conftest.$ac_ext 9625 if test -z "$lt_cv_aix_libpath_"; then 9626 lt_cv_aix_libpath_=/usr/lib:/lib 9627 fi 9628 9629fi 9630 9631 aix_libpath=$lt_cv_aix_libpath_ 9632fi 9633 9634 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9635 # Warning - without using the other run time loading flags, 9636 # -berok will link without error, but may produce a broken library. 9637 no_undefined_flag=' $wl-bernotok' 9638 allow_undefined_flag=' $wl-berok' 9639 if test yes = "$with_gnu_ld"; then 9640 # We only use this code for GNU lds that support --whole-archive. 9641 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9642 else 9643 # Exported symbols can be pulled into shared objects from archives 9644 whole_archive_flag_spec='$convenience' 9645 fi 9646 archive_cmds_need_lc=yes 9647 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9648 # -brtl affects multiple linker settings, -berok does not and is overridden later 9649 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9650 if test svr4 != "$with_aix_soname"; then 9651 # This is similar to how AIX traditionally builds its shared libraries. 9652 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' 9653 fi 9654 if test aix != "$with_aix_soname"; then 9655 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' 9656 else 9657 # used by -dlpreopen to get the symbols 9658 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9659 fi 9660 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9661 fi 9662 fi 9663 ;; 9664 9665 amigaos*) 9666 case $host_cpu in 9667 powerpc) 9668 # see comment about AmigaOS4 .so support 9669 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9670 archive_expsym_cmds='' 9671 ;; 9672 m68k) 9673 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)' 9674 hardcode_libdir_flag_spec='-L$libdir' 9675 hardcode_minus_L=yes 9676 ;; 9677 esac 9678 ;; 9679 9680 bsdi[45]*) 9681 export_dynamic_flag_spec=-rdynamic 9682 ;; 9683 9684 cygwin* | mingw* | pw32* | cegcc*) 9685 # When not using gcc, we currently assume that we are using 9686 # Microsoft Visual C++. 9687 # hardcode_libdir_flag_spec is actually meaningless, as there is 9688 # no search path for DLLs. 9689 case $cc_basename in 9690 cl*) 9691 # Native MSVC 9692 hardcode_libdir_flag_spec=' ' 9693 allow_undefined_flag=unsupported 9694 always_export_symbols=yes 9695 file_list_spec='@' 9696 # Tell ltmain to make .lib files, not .a files. 9697 libext=lib 9698 # Tell ltmain to make .dll files, not .so files. 9699 shrext_cmds=.dll 9700 # FIXME: Setting linknames here is a bad hack. 9701 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9702 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9703 cp "$export_symbols" "$output_objdir/$soname.def"; 9704 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9705 else 9706 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9707 fi~ 9708 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9709 linknames=' 9710 # The linker will not automatically build a static lib if we build a DLL. 9711 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9712 enable_shared_with_static_runtimes=yes 9713 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9714 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9715 # Don't use ranlib 9716 old_postinstall_cmds='chmod 644 $oldlib' 9717 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9718 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9719 case $lt_outputfile in 9720 *.exe|*.EXE) ;; 9721 *) 9722 lt_outputfile=$lt_outputfile.exe 9723 lt_tool_outputfile=$lt_tool_outputfile.exe 9724 ;; 9725 esac~ 9726 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9727 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9728 $RM "$lt_outputfile.manifest"; 9729 fi' 9730 ;; 9731 *) 9732 # Assume MSVC wrapper 9733 hardcode_libdir_flag_spec=' ' 9734 allow_undefined_flag=unsupported 9735 # Tell ltmain to make .lib files, not .a files. 9736 libext=lib 9737 # Tell ltmain to make .dll files, not .so files. 9738 shrext_cmds=.dll 9739 # FIXME: Setting linknames here is a bad hack. 9740 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9741 # The linker will automatically build a .lib file if we build a DLL. 9742 old_archive_from_new_cmds='true' 9743 # FIXME: Should let the user specify the lib program. 9744 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9745 enable_shared_with_static_runtimes=yes 9746 ;; 9747 esac 9748 ;; 9749 9750 darwin* | rhapsody*) 9751 9752 9753 archive_cmds_need_lc=no 9754 hardcode_direct=no 9755 hardcode_automatic=yes 9756 hardcode_shlibpath_var=unsupported 9757 if test yes = "$lt_cv_ld_force_load"; then 9758 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\"`' 9759 9760 else 9761 whole_archive_flag_spec='' 9762 fi 9763 link_all_deplibs=yes 9764 allow_undefined_flag=$_lt_dar_allow_undefined 9765 case $cc_basename in 9766 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9767 *) _lt_dar_can_shared=$GCC ;; 9768 esac 9769 if test yes = "$_lt_dar_can_shared"; then 9770 output_verbose_link_cmd=func_echo_all 9771 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9772 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9773 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" 9774 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" 9775 9776 else 9777 ld_shlibs=no 9778 fi 9779 9780 ;; 9781 9782 dgux*) 9783 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9784 hardcode_libdir_flag_spec='-L$libdir' 9785 hardcode_shlibpath_var=no 9786 ;; 9787 9788 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9789 # support. Future versions do this automatically, but an explicit c++rt0.o 9790 # does not break anything, and helps significantly (at the cost of a little 9791 # extra space). 9792 freebsd2.2*) 9793 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9794 hardcode_libdir_flag_spec='-R$libdir' 9795 hardcode_direct=yes 9796 hardcode_shlibpath_var=no 9797 ;; 9798 9799 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9800 freebsd2.*) 9801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9802 hardcode_direct=yes 9803 hardcode_minus_L=yes 9804 hardcode_shlibpath_var=no 9805 ;; 9806 9807 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9808 freebsd* | dragonfly*) 9809 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9810 hardcode_libdir_flag_spec='-R$libdir' 9811 hardcode_direct=yes 9812 hardcode_shlibpath_var=no 9813 ;; 9814 9815 hpux9*) 9816 if test yes = "$GCC"; then 9817 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' 9818 else 9819 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' 9820 fi 9821 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9822 hardcode_libdir_separator=: 9823 hardcode_direct=yes 9824 9825 # hardcode_minus_L: Not really in the search PATH, 9826 # but as the default location of the library. 9827 hardcode_minus_L=yes 9828 export_dynamic_flag_spec='$wl-E' 9829 ;; 9830 9831 hpux10*) 9832 if test yes,no = "$GCC,$with_gnu_ld"; then 9833 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9834 else 9835 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9836 fi 9837 if test no = "$with_gnu_ld"; then 9838 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9839 hardcode_libdir_separator=: 9840 hardcode_direct=yes 9841 hardcode_direct_absolute=yes 9842 export_dynamic_flag_spec='$wl-E' 9843 # hardcode_minus_L: Not really in the search PATH, 9844 # but as the default location of the library. 9845 hardcode_minus_L=yes 9846 fi 9847 ;; 9848 9849 hpux11*) 9850 if test yes,no = "$GCC,$with_gnu_ld"; then 9851 case $host_cpu in 9852 hppa*64*) 9853 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9854 ;; 9855 ia64*) 9856 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9857 ;; 9858 *) 9859 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9860 ;; 9861 esac 9862 else 9863 case $host_cpu in 9864 hppa*64*) 9865 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9866 ;; 9867 ia64*) 9868 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9869 ;; 9870 *) 9871 9872 # Older versions of the 11.00 compiler do not understand -b yet 9873 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9875$as_echo_n "checking if $CC understands -b... " >&6; } 9876if ${lt_cv_prog_compiler__b+:} false; then : 9877 $as_echo_n "(cached) " >&6 9878else 9879 lt_cv_prog_compiler__b=no 9880 save_LDFLAGS=$LDFLAGS 9881 LDFLAGS="$LDFLAGS -b" 9882 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9883 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9884 # The linker can only warn and ignore the option if not recognized 9885 # So say no if there are warnings 9886 if test -s conftest.err; then 9887 # Append any errors to the config.log. 9888 cat conftest.err 1>&5 9889 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9890 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9891 if diff conftest.exp conftest.er2 >/dev/null; then 9892 lt_cv_prog_compiler__b=yes 9893 fi 9894 else 9895 lt_cv_prog_compiler__b=yes 9896 fi 9897 fi 9898 $RM -r conftest* 9899 LDFLAGS=$save_LDFLAGS 9900 9901fi 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9903$as_echo "$lt_cv_prog_compiler__b" >&6; } 9904 9905if test yes = "$lt_cv_prog_compiler__b"; then 9906 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9907else 9908 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9909fi 9910 9911 ;; 9912 esac 9913 fi 9914 if test no = "$with_gnu_ld"; then 9915 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9916 hardcode_libdir_separator=: 9917 9918 case $host_cpu in 9919 hppa*64*|ia64*) 9920 hardcode_direct=no 9921 hardcode_shlibpath_var=no 9922 ;; 9923 *) 9924 hardcode_direct=yes 9925 hardcode_direct_absolute=yes 9926 export_dynamic_flag_spec='$wl-E' 9927 9928 # hardcode_minus_L: Not really in the search PATH, 9929 # but as the default location of the library. 9930 hardcode_minus_L=yes 9931 ;; 9932 esac 9933 fi 9934 ;; 9935 9936 irix5* | irix6* | nonstopux*) 9937 if test yes = "$GCC"; then 9938 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' 9939 # Try to use the -exported_symbol ld option, if it does not 9940 # work, assume that -exports_file does not work either and 9941 # implicitly export all symbols. 9942 # This should be the same for all languages, so no per-tag cache variable. 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9944$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9945if ${lt_cv_irix_exported_symbol+:} false; then : 9946 $as_echo_n "(cached) " >&6 9947else 9948 save_LDFLAGS=$LDFLAGS 9949 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951/* end confdefs.h. */ 9952int foo (void) { return 0; } 9953_ACEOF 9954if ac_fn_c_try_link "$LINENO"; then : 9955 lt_cv_irix_exported_symbol=yes 9956else 9957 lt_cv_irix_exported_symbol=no 9958fi 9959rm -f core conftest.err conftest.$ac_objext \ 9960 conftest$ac_exeext conftest.$ac_ext 9961 LDFLAGS=$save_LDFLAGS 9962fi 9963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9964$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9965 if test yes = "$lt_cv_irix_exported_symbol"; then 9966 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' 9967 fi 9968 else 9969 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' 9970 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' 9971 fi 9972 archive_cmds_need_lc='no' 9973 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9974 hardcode_libdir_separator=: 9975 inherit_rpath=yes 9976 link_all_deplibs=yes 9977 ;; 9978 9979 linux*) 9980 case $cc_basename in 9981 tcc*) 9982 # Fabrice Bellard et al's Tiny C Compiler 9983 ld_shlibs=yes 9984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9985 ;; 9986 esac 9987 ;; 9988 9989 netbsd*) 9990 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9992 else 9993 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9994 fi 9995 hardcode_libdir_flag_spec='-R$libdir' 9996 hardcode_direct=yes 9997 hardcode_shlibpath_var=no 9998 ;; 9999 10000 newsos6) 10001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10002 hardcode_direct=yes 10003 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10004 hardcode_libdir_separator=: 10005 hardcode_shlibpath_var=no 10006 ;; 10007 10008 *nto* | *qnx*) 10009 ;; 10010 10011 openbsd* | bitrig*) 10012 if test -f /usr/libexec/ld.so; then 10013 hardcode_direct=yes 10014 hardcode_shlibpath_var=no 10015 hardcode_direct_absolute=yes 10016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10017 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10018 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 10019 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10020 export_dynamic_flag_spec='$wl-E' 10021 else 10022 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10023 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10024 fi 10025 else 10026 ld_shlibs=no 10027 fi 10028 ;; 10029 10030 os2*) 10031 hardcode_libdir_flag_spec='-L$libdir' 10032 hardcode_minus_L=yes 10033 allow_undefined_flag=unsupported 10034 shrext_cmds=.dll 10035 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10036 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10037 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10038 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10039 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10040 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10041 emximp -o $lib $output_objdir/$libname.def' 10042 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10043 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10044 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10045 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10046 prefix_cmds="$SED"~ 10047 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10048 prefix_cmds="$prefix_cmds -e 1d"; 10049 fi~ 10050 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10051 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10052 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10053 emximp -o $lib $output_objdir/$libname.def' 10054 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10055 enable_shared_with_static_runtimes=yes 10056 ;; 10057 10058 osf3*) 10059 if test yes = "$GCC"; then 10060 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10061 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' 10062 else 10063 allow_undefined_flag=' -expect_unresolved \*' 10064 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' 10065 fi 10066 archive_cmds_need_lc='no' 10067 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10068 hardcode_libdir_separator=: 10069 ;; 10070 10071 osf4* | osf5*) # as osf3* with the addition of -msym flag 10072 if test yes = "$GCC"; then 10073 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 10074 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' 10075 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10076 else 10077 allow_undefined_flag=' -expect_unresolved \*' 10078 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' 10079 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~ 10080 $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' 10081 10082 # Both c and cxx compiler support -rpath directly 10083 hardcode_libdir_flag_spec='-rpath $libdir' 10084 fi 10085 archive_cmds_need_lc='no' 10086 hardcode_libdir_separator=: 10087 ;; 10088 10089 solaris*) 10090 no_undefined_flag=' -z defs' 10091 if test yes = "$GCC"; then 10092 wlarc='$wl' 10093 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 10094 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10095 $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' 10096 else 10097 case `$CC -V 2>&1` in 10098 *"Compilers 5.0"*) 10099 wlarc='' 10100 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 10101 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10102 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10103 ;; 10104 *) 10105 wlarc='$wl' 10106 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10107 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10108 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10109 ;; 10110 esac 10111 fi 10112 hardcode_libdir_flag_spec='-R$libdir' 10113 hardcode_shlibpath_var=no 10114 case $host_os in 10115 solaris2.[0-5] | solaris2.[0-5].*) ;; 10116 *) 10117 # The compiler driver will combine and reorder linker options, 10118 # but understands '-z linker_flag'. GCC discards it without '$wl', 10119 # but is careful enough not to reorder. 10120 # Supported since Solaris 2.6 (maybe 2.5.1?) 10121 if test yes = "$GCC"; then 10122 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 10123 else 10124 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10125 fi 10126 ;; 10127 esac 10128 link_all_deplibs=yes 10129 ;; 10130 10131 sunos4*) 10132 if test sequent = "$host_vendor"; then 10133 # Use $CC to link under sequent, because it throws in some extra .o 10134 # files that make .init and .fini sections work. 10135 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10136 else 10137 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10138 fi 10139 hardcode_libdir_flag_spec='-L$libdir' 10140 hardcode_direct=yes 10141 hardcode_minus_L=yes 10142 hardcode_shlibpath_var=no 10143 ;; 10144 10145 sysv4) 10146 case $host_vendor in 10147 sni) 10148 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10149 hardcode_direct=yes # is this really true??? 10150 ;; 10151 siemens) 10152 ## LD is ld it makes a PLAMLIB 10153 ## CC just makes a GrossModule. 10154 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10155 reload_cmds='$CC -r -o $output$reload_objs' 10156 hardcode_direct=no 10157 ;; 10158 motorola) 10159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10160 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10161 ;; 10162 esac 10163 runpath_var='LD_RUN_PATH' 10164 hardcode_shlibpath_var=no 10165 ;; 10166 10167 sysv4.3*) 10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10169 hardcode_shlibpath_var=no 10170 export_dynamic_flag_spec='-Bexport' 10171 ;; 10172 10173 sysv4*MP*) 10174 if test -d /usr/nec; then 10175 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10176 hardcode_shlibpath_var=no 10177 runpath_var=LD_RUN_PATH 10178 hardcode_runpath_var=yes 10179 ld_shlibs=yes 10180 fi 10181 ;; 10182 10183 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10184 no_undefined_flag='$wl-z,text' 10185 archive_cmds_need_lc=no 10186 hardcode_shlibpath_var=no 10187 runpath_var='LD_RUN_PATH' 10188 10189 if test yes = "$GCC"; then 10190 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10191 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10192 else 10193 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10194 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10195 fi 10196 ;; 10197 10198 sysv5* | sco3.2v5* | sco5v6*) 10199 # Note: We CANNOT use -z defs as we might desire, because we do not 10200 # link with -lc, and that would cause any symbols used from libc to 10201 # always be unresolved, which means just about no library would 10202 # ever link correctly. If we're not using GNU ld we use -z text 10203 # though, which does catch some bad symbols but isn't as heavy-handed 10204 # as -z defs. 10205 no_undefined_flag='$wl-z,text' 10206 allow_undefined_flag='$wl-z,nodefs' 10207 archive_cmds_need_lc=no 10208 hardcode_shlibpath_var=no 10209 hardcode_libdir_flag_spec='$wl-R,$libdir' 10210 hardcode_libdir_separator=':' 10211 link_all_deplibs=yes 10212 export_dynamic_flag_spec='$wl-Bexport' 10213 runpath_var='LD_RUN_PATH' 10214 10215 if test yes = "$GCC"; then 10216 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10217 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10218 else 10219 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10220 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10221 fi 10222 ;; 10223 10224 uts4*) 10225 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10226 hardcode_libdir_flag_spec='-L$libdir' 10227 hardcode_shlibpath_var=no 10228 ;; 10229 10230 *) 10231 ld_shlibs=no 10232 ;; 10233 esac 10234 10235 if test sni = "$host_vendor"; then 10236 case $host in 10237 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10238 export_dynamic_flag_spec='$wl-Blargedynsym' 10239 ;; 10240 esac 10241 fi 10242 fi 10243 10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10245$as_echo "$ld_shlibs" >&6; } 10246test no = "$ld_shlibs" && can_build_shared=no 10247 10248with_gnu_ld=$with_gnu_ld 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264# 10265# Do we need to explicitly link libc? 10266# 10267case "x$archive_cmds_need_lc" in 10268x|xyes) 10269 # Assume -lc should be added 10270 archive_cmds_need_lc=yes 10271 10272 if test yes,yes = "$GCC,$enable_shared"; then 10273 case $archive_cmds in 10274 *'~'*) 10275 # FIXME: we may have to deal with multi-command sequences. 10276 ;; 10277 '$CC '*) 10278 # Test whether the compiler implicitly links with -lc since on some 10279 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10280 # to ld, don't add -lc before -lgcc. 10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10282$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10283if ${lt_cv_archive_cmds_need_lc+:} false; then : 10284 $as_echo_n "(cached) " >&6 10285else 10286 $RM conftest* 10287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10288 10289 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10290 (eval $ac_compile) 2>&5 10291 ac_status=$? 10292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10293 test $ac_status = 0; } 2>conftest.err; then 10294 soname=conftest 10295 lib=conftest 10296 libobjs=conftest.$ac_objext 10297 deplibs= 10298 wl=$lt_prog_compiler_wl 10299 pic_flag=$lt_prog_compiler_pic 10300 compiler_flags=-v 10301 linker_flags=-v 10302 verstring= 10303 output_objdir=. 10304 libname=conftest 10305 lt_save_allow_undefined_flag=$allow_undefined_flag 10306 allow_undefined_flag= 10307 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10308 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10309 ac_status=$? 10310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10311 test $ac_status = 0; } 10312 then 10313 lt_cv_archive_cmds_need_lc=no 10314 else 10315 lt_cv_archive_cmds_need_lc=yes 10316 fi 10317 allow_undefined_flag=$lt_save_allow_undefined_flag 10318 else 10319 cat conftest.err 1>&5 10320 fi 10321 $RM conftest* 10322 10323fi 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10325$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10326 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10327 ;; 10328 esac 10329 fi 10330 ;; 10331esac 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10485$as_echo_n "checking dynamic linker characteristics... " >&6; } 10486 10487if test yes = "$GCC"; then 10488 case $host_os in 10489 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10490 *) lt_awk_arg='/^libraries:/' ;; 10491 esac 10492 case $host_os in 10493 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10494 *) lt_sed_strip_eq='s|=/|/|g' ;; 10495 esac 10496 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10497 case $lt_search_path_spec in 10498 *\;*) 10499 # if the path contains ";" then we assume it to be the separator 10500 # otherwise default to the standard path separator (i.e. ":") - it is 10501 # assumed that no part of a normal pathname contains ";" but that should 10502 # okay in the real world where ";" in dirpaths is itself problematic. 10503 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10504 ;; 10505 *) 10506 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10507 ;; 10508 esac 10509 # Ok, now we have the path, separated by spaces, we can step through it 10510 # and add multilib dir if necessary... 10511 lt_tmp_lt_search_path_spec= 10512 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10513 # ...but if some path component already ends with the multilib dir we assume 10514 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10515 case "$lt_multi_os_dir; $lt_search_path_spec " in 10516 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10517 lt_multi_os_dir= 10518 ;; 10519 esac 10520 for lt_sys_path in $lt_search_path_spec; do 10521 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10522 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10523 elif test -n "$lt_multi_os_dir"; then 10524 test -d "$lt_sys_path" && \ 10525 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10526 fi 10527 done 10528 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10529BEGIN {RS = " "; FS = "/|\n";} { 10530 lt_foo = ""; 10531 lt_count = 0; 10532 for (lt_i = NF; lt_i > 0; lt_i--) { 10533 if ($lt_i != "" && $lt_i != ".") { 10534 if ($lt_i == "..") { 10535 lt_count++; 10536 } else { 10537 if (lt_count == 0) { 10538 lt_foo = "/" $lt_i lt_foo; 10539 } else { 10540 lt_count--; 10541 } 10542 } 10543 } 10544 } 10545 if (lt_foo != "") { lt_freq[lt_foo]++; } 10546 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10547}'` 10548 # AWK program above erroneously prepends '/' to C:/dos/paths 10549 # for these hosts. 10550 case $host_os in 10551 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10552 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10553 esac 10554 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10555else 10556 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10557fi 10558library_names_spec= 10559libname_spec='lib$name' 10560soname_spec= 10561shrext_cmds=.so 10562postinstall_cmds= 10563postuninstall_cmds= 10564finish_cmds= 10565finish_eval= 10566shlibpath_var= 10567shlibpath_overrides_runpath=unknown 10568version_type=none 10569dynamic_linker="$host_os ld.so" 10570sys_lib_dlsearch_path_spec="/lib /usr/lib" 10571need_lib_prefix=unknown 10572hardcode_into_libs=no 10573 10574# when you set need_version to no, make sure it does not cause -set_version 10575# flags to be left without arguments 10576need_version=unknown 10577 10578 10579 10580case $host_os in 10581aix3*) 10582 version_type=linux # correct to gnu/linux during the next big refactor 10583 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10584 shlibpath_var=LIBPATH 10585 10586 # AIX 3 has no versioning support, so we append a major version to the name. 10587 soname_spec='$libname$release$shared_ext$major' 10588 ;; 10589 10590aix[4-9]*) 10591 version_type=linux # correct to gnu/linux during the next big refactor 10592 need_lib_prefix=no 10593 need_version=no 10594 hardcode_into_libs=yes 10595 if test ia64 = "$host_cpu"; then 10596 # AIX 5 supports IA64 10597 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10598 shlibpath_var=LD_LIBRARY_PATH 10599 else 10600 # With GCC up to 2.95.x, collect2 would create an import file 10601 # for dependence libraries. The import file would start with 10602 # the line '#! .'. This would cause the generated library to 10603 # depend on '.', always an invalid library. This was fixed in 10604 # development snapshots of GCC prior to 3.0. 10605 case $host_os in 10606 aix4 | aix4.[01] | aix4.[01].*) 10607 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10608 echo ' yes ' 10609 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10610 : 10611 else 10612 can_build_shared=no 10613 fi 10614 ;; 10615 esac 10616 # Using Import Files as archive members, it is possible to support 10617 # filename-based versioning of shared library archives on AIX. While 10618 # this would work for both with and without runtime linking, it will 10619 # prevent static linking of such archives. So we do filename-based 10620 # shared library versioning with .so extension only, which is used 10621 # when both runtime linking and shared linking is enabled. 10622 # Unfortunately, runtime linking may impact performance, so we do 10623 # not want this to be the default eventually. Also, we use the 10624 # versioned .so libs for executables only if there is the -brtl 10625 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10626 # To allow for filename-based versioning support, we need to create 10627 # libNAME.so.V as an archive file, containing: 10628 # *) an Import File, referring to the versioned filename of the 10629 # archive as well as the shared archive member, telling the 10630 # bitwidth (32 or 64) of that shared object, and providing the 10631 # list of exported symbols of that shared object, eventually 10632 # decorated with the 'weak' keyword 10633 # *) the shared object with the F_LOADONLY flag set, to really avoid 10634 # it being seen by the linker. 10635 # At run time we better use the real file rather than another symlink, 10636 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10637 10638 case $with_aix_soname,$aix_use_runtimelinking in 10639 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10640 # soname into executable. Probably we can add versioning support to 10641 # collect2, so additional links can be useful in future. 10642 aix,yes) # traditional libtool 10643 dynamic_linker='AIX unversionable lib.so' 10644 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10645 # instead of lib<name>.a to let people know that these are not 10646 # typical AIX shared libraries. 10647 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10648 ;; 10649 aix,no) # traditional AIX only 10650 dynamic_linker='AIX lib.a(lib.so.V)' 10651 # We preserve .a as extension for shared libraries through AIX4.2 10652 # and later when we are not doing run time linking. 10653 library_names_spec='$libname$release.a $libname.a' 10654 soname_spec='$libname$release$shared_ext$major' 10655 ;; 10656 svr4,*) # full svr4 only 10657 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10658 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10659 # We do not specify a path in Import Files, so LIBPATH fires. 10660 shlibpath_overrides_runpath=yes 10661 ;; 10662 *,yes) # both, prefer svr4 10663 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10664 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10665 # unpreferred sharedlib libNAME.a needs extra handling 10666 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"' 10667 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"' 10668 # We do not specify a path in Import Files, so LIBPATH fires. 10669 shlibpath_overrides_runpath=yes 10670 ;; 10671 *,no) # both, prefer aix 10672 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10673 library_names_spec='$libname$release.a $libname.a' 10674 soname_spec='$libname$release$shared_ext$major' 10675 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10676 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)' 10677 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"' 10678 ;; 10679 esac 10680 shlibpath_var=LIBPATH 10681 fi 10682 ;; 10683 10684amigaos*) 10685 case $host_cpu in 10686 powerpc) 10687 # Since July 2007 AmigaOS4 officially supports .so libraries. 10688 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10689 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10690 ;; 10691 m68k) 10692 library_names_spec='$libname.ixlibrary $libname.a' 10693 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10694 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' 10695 ;; 10696 esac 10697 ;; 10698 10699beos*) 10700 library_names_spec='$libname$shared_ext' 10701 dynamic_linker="$host_os ld.so" 10702 shlibpath_var=LIBRARY_PATH 10703 ;; 10704 10705bsdi[45]*) 10706 version_type=linux # correct to gnu/linux during the next big refactor 10707 need_version=no 10708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10709 soname_spec='$libname$release$shared_ext$major' 10710 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10711 shlibpath_var=LD_LIBRARY_PATH 10712 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10713 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10714 # the default ld.so.conf also contains /usr/contrib/lib and 10715 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10716 # libtool to hard-code these into programs 10717 ;; 10718 10719cygwin* | mingw* | pw32* | cegcc*) 10720 version_type=windows 10721 shrext_cmds=.dll 10722 need_version=no 10723 need_lib_prefix=no 10724 10725 case $GCC,$cc_basename in 10726 yes,*) 10727 # gcc 10728 library_names_spec='$libname.dll.a' 10729 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10730 postinstall_cmds='base_file=`basename \$file`~ 10731 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10732 dldir=$destdir/`dirname \$dlpath`~ 10733 test -d \$dldir || mkdir -p \$dldir~ 10734 $install_prog $dir/$dlname \$dldir/$dlname~ 10735 chmod a+x \$dldir/$dlname~ 10736 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10737 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10738 fi' 10739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10740 dlpath=$dir/\$dldll~ 10741 $RM \$dlpath' 10742 shlibpath_overrides_runpath=yes 10743 10744 case $host_os in 10745 cygwin*) 10746 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10747 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10748 10749 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10750 ;; 10751 mingw* | cegcc*) 10752 # MinGW DLLs use traditional 'lib' prefix 10753 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10754 ;; 10755 pw32*) 10756 # pw32 DLLs use 'pw' prefix rather than 'lib' 10757 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10758 ;; 10759 esac 10760 dynamic_linker='Win32 ld.exe' 10761 ;; 10762 10763 *,cl*) 10764 # Native MSVC 10765 libname_spec='$name' 10766 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10767 library_names_spec='$libname.dll.lib' 10768 10769 case $build_os in 10770 mingw*) 10771 sys_lib_search_path_spec= 10772 lt_save_ifs=$IFS 10773 IFS=';' 10774 for lt_path in $LIB 10775 do 10776 IFS=$lt_save_ifs 10777 # Let DOS variable expansion print the short 8.3 style file name. 10778 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10779 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10780 done 10781 IFS=$lt_save_ifs 10782 # Convert to MSYS style. 10783 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10784 ;; 10785 cygwin*) 10786 # Convert to unix form, then to dos form, then back to unix form 10787 # but this time dos style (no spaces!) so that the unix form looks 10788 # like /cygdrive/c/PROGRA~1:/cygdr... 10789 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10790 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10791 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10792 ;; 10793 *) 10794 sys_lib_search_path_spec=$LIB 10795 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10796 # It is most probably a Windows format PATH. 10797 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10798 else 10799 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10800 fi 10801 # FIXME: find the short name or the path components, as spaces are 10802 # common. (e.g. "Program Files" -> "PROGRA~1") 10803 ;; 10804 esac 10805 10806 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10807 postinstall_cmds='base_file=`basename \$file`~ 10808 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10809 dldir=$destdir/`dirname \$dlpath`~ 10810 test -d \$dldir || mkdir -p \$dldir~ 10811 $install_prog $dir/$dlname \$dldir/$dlname' 10812 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10813 dlpath=$dir/\$dldll~ 10814 $RM \$dlpath' 10815 shlibpath_overrides_runpath=yes 10816 dynamic_linker='Win32 link.exe' 10817 ;; 10818 10819 *) 10820 # Assume MSVC wrapper 10821 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10822 dynamic_linker='Win32 ld.exe' 10823 ;; 10824 esac 10825 # FIXME: first we should search . and the directory the executable is in 10826 shlibpath_var=PATH 10827 ;; 10828 10829darwin* | rhapsody*) 10830 dynamic_linker="$host_os dyld" 10831 version_type=darwin 10832 need_lib_prefix=no 10833 need_version=no 10834 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10835 soname_spec='$libname$release$major$shared_ext' 10836 shlibpath_overrides_runpath=yes 10837 shlibpath_var=DYLD_LIBRARY_PATH 10838 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10839 10840 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10842 ;; 10843 10844dgux*) 10845 version_type=linux # correct to gnu/linux during the next big refactor 10846 need_lib_prefix=no 10847 need_version=no 10848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10849 soname_spec='$libname$release$shared_ext$major' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 ;; 10852 10853freebsd* | dragonfly*) 10854 # DragonFly does not have aout. When/if they implement a new 10855 # versioning mechanism, adjust this. 10856 if test -x /usr/bin/objformat; then 10857 objformat=`/usr/bin/objformat` 10858 else 10859 case $host_os in 10860 freebsd[23].*) objformat=aout ;; 10861 *) objformat=elf ;; 10862 esac 10863 fi 10864 # Handle Gentoo/FreeBSD as it was Linux 10865 case $host_vendor in 10866 gentoo) 10867 version_type=linux ;; 10868 *) 10869 version_type=freebsd-$objformat ;; 10870 esac 10871 10872 case $version_type in 10873 freebsd-elf*) 10874 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10875 soname_spec='$libname$release$shared_ext$major' 10876 need_version=no 10877 need_lib_prefix=no 10878 ;; 10879 freebsd-*) 10880 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10881 need_version=yes 10882 ;; 10883 linux) 10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10885 soname_spec='${libname}${release}${shared_ext}$major' 10886 need_lib_prefix=no 10887 need_version=no 10888 ;; 10889 esac 10890 shlibpath_var=LD_LIBRARY_PATH 10891 case $host_os in 10892 freebsd2.*) 10893 shlibpath_overrides_runpath=yes 10894 ;; 10895 freebsd3.[01]* | freebsdelf3.[01]*) 10896 shlibpath_overrides_runpath=yes 10897 hardcode_into_libs=yes 10898 ;; 10899 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10900 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10901 shlibpath_overrides_runpath=no 10902 hardcode_into_libs=yes 10903 ;; 10904 *) # from 4.6 on, and DragonFly 10905 shlibpath_overrides_runpath=yes 10906 hardcode_into_libs=yes 10907 ;; 10908 esac 10909 ;; 10910 10911haiku*) 10912 version_type=linux # correct to gnu/linux during the next big refactor 10913 need_lib_prefix=no 10914 need_version=no 10915 dynamic_linker="$host_os runtime_loader" 10916 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10917 soname_spec='$libname$release$shared_ext$major' 10918 shlibpath_var=LIBRARY_PATH 10919 shlibpath_overrides_runpath=no 10920 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10921 hardcode_into_libs=yes 10922 ;; 10923 10924hpux9* | hpux10* | hpux11*) 10925 # Give a soname corresponding to the major version so that dld.sl refuses to 10926 # link against other versions. 10927 version_type=sunos 10928 need_lib_prefix=no 10929 need_version=no 10930 case $host_cpu in 10931 ia64*) 10932 shrext_cmds='.so' 10933 hardcode_into_libs=yes 10934 dynamic_linker="$host_os dld.so" 10935 shlibpath_var=LD_LIBRARY_PATH 10936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10938 soname_spec='$libname$release$shared_ext$major' 10939 if test 32 = "$HPUX_IA64_MODE"; then 10940 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10941 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10942 else 10943 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10944 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10945 fi 10946 ;; 10947 hppa*64*) 10948 shrext_cmds='.sl' 10949 hardcode_into_libs=yes 10950 dynamic_linker="$host_os dld.sl" 10951 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10952 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10953 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10954 soname_spec='$libname$release$shared_ext$major' 10955 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10956 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10957 ;; 10958 *) 10959 shrext_cmds='.sl' 10960 dynamic_linker="$host_os dld.sl" 10961 shlibpath_var=SHLIB_PATH 10962 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10964 soname_spec='$libname$release$shared_ext$major' 10965 ;; 10966 esac 10967 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10968 postinstall_cmds='chmod 555 $lib' 10969 # or fails outright, so override atomically: 10970 install_override_mode=555 10971 ;; 10972 10973interix[3-9]*) 10974 version_type=linux # correct to gnu/linux during the next big refactor 10975 need_lib_prefix=no 10976 need_version=no 10977 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10978 soname_spec='$libname$release$shared_ext$major' 10979 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10980 shlibpath_var=LD_LIBRARY_PATH 10981 shlibpath_overrides_runpath=no 10982 hardcode_into_libs=yes 10983 ;; 10984 10985irix5* | irix6* | nonstopux*) 10986 case $host_os in 10987 nonstopux*) version_type=nonstopux ;; 10988 *) 10989 if test yes = "$lt_cv_prog_gnu_ld"; then 10990 version_type=linux # correct to gnu/linux during the next big refactor 10991 else 10992 version_type=irix 10993 fi ;; 10994 esac 10995 need_lib_prefix=no 10996 need_version=no 10997 soname_spec='$libname$release$shared_ext$major' 10998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10999 case $host_os in 11000 irix5* | nonstopux*) 11001 libsuff= shlibsuff= 11002 ;; 11003 *) 11004 case $LD in # libtool.m4 will add one of these switches to LD 11005 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11006 libsuff= shlibsuff= libmagic=32-bit;; 11007 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11008 libsuff=32 shlibsuff=N32 libmagic=N32;; 11009 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11010 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11011 *) libsuff= shlibsuff= libmagic=never-match;; 11012 esac 11013 ;; 11014 esac 11015 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11016 shlibpath_overrides_runpath=no 11017 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 11018 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 11019 hardcode_into_libs=yes 11020 ;; 11021 11022# No shared lib support for Linux oldld, aout, or coff. 11023linux*oldld* | linux*aout* | linux*coff*) 11024 dynamic_linker=no 11025 ;; 11026 11027linux*android*) 11028 version_type=none # Android doesn't support versioned libraries. 11029 need_lib_prefix=no 11030 need_version=no 11031 library_names_spec='$libname$release$shared_ext' 11032 soname_spec='$libname$release$shared_ext' 11033 finish_cmds= 11034 shlibpath_var=LD_LIBRARY_PATH 11035 shlibpath_overrides_runpath=yes 11036 11037 # This implies no fast_install, which is unacceptable. 11038 # Some rework will be needed to allow for fast_install 11039 # before this can be enabled. 11040 hardcode_into_libs=yes 11041 11042 dynamic_linker='Android linker' 11043 # Don't embed -rpath directories since the linker doesn't support them. 11044 hardcode_libdir_flag_spec='-L$libdir' 11045 ;; 11046 11047# This must be glibc/ELF. 11048linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 11049 version_type=linux # correct to gnu/linux during the next big refactor 11050 need_lib_prefix=no 11051 need_version=no 11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11053 soname_spec='$libname$release$shared_ext$major' 11054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11055 shlibpath_var=LD_LIBRARY_PATH 11056 shlibpath_overrides_runpath=no 11057 11058 # Some binutils ld are patched to set DT_RUNPATH 11059 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11060 $as_echo_n "(cached) " >&6 11061else 11062 lt_cv_shlibpath_overrides_runpath=no 11063 save_LDFLAGS=$LDFLAGS 11064 save_libdir=$libdir 11065 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11066 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11068/* end confdefs.h. */ 11069 11070int 11071main () 11072{ 11073 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO"; then : 11079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11080 lt_cv_shlibpath_overrides_runpath=yes 11081fi 11082fi 11083rm -f core conftest.err conftest.$ac_objext \ 11084 conftest$ac_exeext conftest.$ac_ext 11085 LDFLAGS=$save_LDFLAGS 11086 libdir=$save_libdir 11087 11088fi 11089 11090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11091 11092 # This implies no fast_install, which is unacceptable. 11093 # Some rework will be needed to allow for fast_install 11094 # before this can be enabled. 11095 hardcode_into_libs=yes 11096 11097 # Ideally, we could use ldconfig to report *all* directores which are 11098 # searched for libraries, however this is still not possible. Aside from not 11099 # being certain /sbin/ldconfig is available, command 11100 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 11101 # even though it is searched at run-time. Try to do the best guess by 11102 # appending ld.so.conf contents (and includes) to the search path. 11103 if test -f /etc/ld.so.conf; then 11104 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' ' '` 11105 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11106 fi 11107 11108 # We used to test for /lib/ld.so.1 and disable shared libraries on 11109 # powerpc, because MkLinux only supported shared libraries with the 11110 # GNU dynamic linker. Since this was broken with cross compilers, 11111 # most powerpc-linux boxes support dynamic linking these days and 11112 # people can always --disable-shared, the test was removed, and we 11113 # assume the GNU/Linux dynamic linker is in use. 11114 dynamic_linker='GNU/Linux ld.so' 11115 ;; 11116 11117netbsd*) 11118 version_type=sunos 11119 need_lib_prefix=no 11120 need_version=no 11121 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11124 dynamic_linker='NetBSD (a.out) ld.so' 11125 else 11126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11127 soname_spec='$libname$release$shared_ext$major' 11128 dynamic_linker='NetBSD ld.elf_so' 11129 fi 11130 shlibpath_var=LD_LIBRARY_PATH 11131 shlibpath_overrides_runpath=yes 11132 hardcode_into_libs=yes 11133 ;; 11134 11135newsos6) 11136 version_type=linux # correct to gnu/linux during the next big refactor 11137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11138 shlibpath_var=LD_LIBRARY_PATH 11139 shlibpath_overrides_runpath=yes 11140 ;; 11141 11142*nto* | *qnx*) 11143 version_type=qnx 11144 need_lib_prefix=no 11145 need_version=no 11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11147 soname_spec='$libname$release$shared_ext$major' 11148 shlibpath_var=LD_LIBRARY_PATH 11149 shlibpath_overrides_runpath=no 11150 hardcode_into_libs=yes 11151 dynamic_linker='ldqnx.so' 11152 ;; 11153 11154openbsd* | bitrig*) 11155 version_type=sunos 11156 sys_lib_dlsearch_path_spec=/usr/lib 11157 need_lib_prefix=no 11158 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11159 need_version=no 11160 else 11161 need_version=yes 11162 fi 11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11165 shlibpath_var=LD_LIBRARY_PATH 11166 shlibpath_overrides_runpath=yes 11167 ;; 11168 11169os2*) 11170 libname_spec='$name' 11171 version_type=windows 11172 shrext_cmds=.dll 11173 need_version=no 11174 need_lib_prefix=no 11175 # OS/2 can only load a DLL with a base name of 8 characters or less. 11176 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11177 v=$($ECHO $release$versuffix | tr -d .-); 11178 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11179 $ECHO $n$v`$shared_ext' 11180 library_names_spec='${libname}_dll.$libext' 11181 dynamic_linker='OS/2 ld.exe' 11182 shlibpath_var=BEGINLIBPATH 11183 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11185 postinstall_cmds='base_file=`basename \$file`~ 11186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11187 dldir=$destdir/`dirname \$dlpath`~ 11188 test -d \$dldir || mkdir -p \$dldir~ 11189 $install_prog $dir/$dlname \$dldir/$dlname~ 11190 chmod a+x \$dldir/$dlname~ 11191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11193 fi' 11194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11195 dlpath=$dir/\$dldll~ 11196 $RM \$dlpath' 11197 ;; 11198 11199osf3* | osf4* | osf5*) 11200 version_type=osf 11201 need_lib_prefix=no 11202 need_version=no 11203 soname_spec='$libname$release$shared_ext$major' 11204 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11205 shlibpath_var=LD_LIBRARY_PATH 11206 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11207 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11208 ;; 11209 11210rdos*) 11211 dynamic_linker=no 11212 ;; 11213 11214solaris*) 11215 version_type=linux # correct to gnu/linux during the next big refactor 11216 need_lib_prefix=no 11217 need_version=no 11218 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11219 soname_spec='$libname$release$shared_ext$major' 11220 shlibpath_var=LD_LIBRARY_PATH 11221 shlibpath_overrides_runpath=yes 11222 hardcode_into_libs=yes 11223 # ldd complains unless libraries are executable 11224 postinstall_cmds='chmod +x $lib' 11225 ;; 11226 11227sunos4*) 11228 version_type=sunos 11229 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11230 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11231 shlibpath_var=LD_LIBRARY_PATH 11232 shlibpath_overrides_runpath=yes 11233 if test yes = "$with_gnu_ld"; then 11234 need_lib_prefix=no 11235 fi 11236 need_version=yes 11237 ;; 11238 11239sysv4 | sysv4.3*) 11240 version_type=linux # correct to gnu/linux during the next big refactor 11241 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11242 soname_spec='$libname$release$shared_ext$major' 11243 shlibpath_var=LD_LIBRARY_PATH 11244 case $host_vendor in 11245 sni) 11246 shlibpath_overrides_runpath=no 11247 need_lib_prefix=no 11248 runpath_var=LD_RUN_PATH 11249 ;; 11250 siemens) 11251 need_lib_prefix=no 11252 ;; 11253 motorola) 11254 need_lib_prefix=no 11255 need_version=no 11256 shlibpath_overrides_runpath=no 11257 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11258 ;; 11259 esac 11260 ;; 11261 11262sysv4*MP*) 11263 if test -d /usr/nec; then 11264 version_type=linux # correct to gnu/linux during the next big refactor 11265 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11266 soname_spec='$libname$shared_ext.$major' 11267 shlibpath_var=LD_LIBRARY_PATH 11268 fi 11269 ;; 11270 11271sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11272 version_type=sco 11273 need_lib_prefix=no 11274 need_version=no 11275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11276 soname_spec='$libname$release$shared_ext$major' 11277 shlibpath_var=LD_LIBRARY_PATH 11278 shlibpath_overrides_runpath=yes 11279 hardcode_into_libs=yes 11280 if test yes = "$with_gnu_ld"; then 11281 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11282 else 11283 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11284 case $host_os in 11285 sco3.2v5*) 11286 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11287 ;; 11288 esac 11289 fi 11290 sys_lib_dlsearch_path_spec='/usr/lib' 11291 ;; 11292 11293tpf*) 11294 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11295 version_type=linux # correct to gnu/linux during the next big refactor 11296 need_lib_prefix=no 11297 need_version=no 11298 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11299 shlibpath_var=LD_LIBRARY_PATH 11300 shlibpath_overrides_runpath=no 11301 hardcode_into_libs=yes 11302 ;; 11303 11304uts4*) 11305 version_type=linux # correct to gnu/linux during the next big refactor 11306 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11307 soname_spec='$libname$release$shared_ext$major' 11308 shlibpath_var=LD_LIBRARY_PATH 11309 ;; 11310 11311*) 11312 dynamic_linker=no 11313 ;; 11314esac 11315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11316$as_echo "$dynamic_linker" >&6; } 11317test no = "$dynamic_linker" && can_build_shared=no 11318 11319variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11320if test yes = "$GCC"; then 11321 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11322fi 11323 11324if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11325 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11326fi 11327 11328if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11329 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11330fi 11331 11332# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11333configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11334 11335# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11336func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11337 11338# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11339configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11438$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11439hardcode_action= 11440if test -n "$hardcode_libdir_flag_spec" || 11441 test -n "$runpath_var" || 11442 test yes = "$hardcode_automatic"; then 11443 11444 # We can hardcode non-existent directories. 11445 if test no != "$hardcode_direct" && 11446 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11447 # have to relink, otherwise we might link with an installed library 11448 # when we should be linking with a yet-to-be-installed one 11449 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11450 test no != "$hardcode_minus_L"; then 11451 # Linking always hardcodes the temporary library directory. 11452 hardcode_action=relink 11453 else 11454 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11455 hardcode_action=immediate 11456 fi 11457else 11458 # We cannot hardcode anything, or else we can only hardcode existing 11459 # directories. 11460 hardcode_action=unsupported 11461fi 11462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11463$as_echo "$hardcode_action" >&6; } 11464 11465if test relink = "$hardcode_action" || 11466 test yes = "$inherit_rpath"; then 11467 # Fast installation is not supported 11468 enable_fast_install=no 11469elif test yes = "$shlibpath_overrides_runpath" || 11470 test no = "$enable_shared"; then 11471 # Fast installation is not necessary 11472 enable_fast_install=needless 11473fi 11474 11475 11476 11477 11478 11479 11480 if test yes != "$enable_dlopen"; then 11481 enable_dlopen=unknown 11482 enable_dlopen_self=unknown 11483 enable_dlopen_self_static=unknown 11484else 11485 lt_cv_dlopen=no 11486 lt_cv_dlopen_libs= 11487 11488 case $host_os in 11489 beos*) 11490 lt_cv_dlopen=load_add_on 11491 lt_cv_dlopen_libs= 11492 lt_cv_dlopen_self=yes 11493 ;; 11494 11495 mingw* | pw32* | cegcc*) 11496 lt_cv_dlopen=LoadLibrary 11497 lt_cv_dlopen_libs= 11498 ;; 11499 11500 cygwin*) 11501 lt_cv_dlopen=dlopen 11502 lt_cv_dlopen_libs= 11503 ;; 11504 11505 darwin*) 11506 # if libdl is installed we need to link against it 11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11508$as_echo_n "checking for dlopen in -ldl... " >&6; } 11509if ${ac_cv_lib_dl_dlopen+:} false; then : 11510 $as_echo_n "(cached) " >&6 11511else 11512 ac_check_lib_save_LIBS=$LIBS 11513LIBS="-ldl $LIBS" 11514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11515/* end confdefs.h. */ 11516 11517/* Override any GCC internal prototype to avoid an error. 11518 Use char because int might match the return type of a GCC 11519 builtin and then its argument prototype would still apply. */ 11520#ifdef __cplusplus 11521extern "C" 11522#endif 11523char dlopen (); 11524int 11525main () 11526{ 11527return dlopen (); 11528 ; 11529 return 0; 11530} 11531_ACEOF 11532if ac_fn_c_try_link "$LINENO"; then : 11533 ac_cv_lib_dl_dlopen=yes 11534else 11535 ac_cv_lib_dl_dlopen=no 11536fi 11537rm -f core conftest.err conftest.$ac_objext \ 11538 conftest$ac_exeext conftest.$ac_ext 11539LIBS=$ac_check_lib_save_LIBS 11540fi 11541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11542$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11543if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11544 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11545else 11546 11547 lt_cv_dlopen=dyld 11548 lt_cv_dlopen_libs= 11549 lt_cv_dlopen_self=yes 11550 11551fi 11552 11553 ;; 11554 11555 tpf*) 11556 # Don't try to run any link tests for TPF. We know it's impossible 11557 # because TPF is a cross-compiler, and we know how we open DSOs. 11558 lt_cv_dlopen=dlopen 11559 lt_cv_dlopen_libs= 11560 lt_cv_dlopen_self=no 11561 ;; 11562 11563 *) 11564 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11565if test "x$ac_cv_func_shl_load" = xyes; then : 11566 lt_cv_dlopen=shl_load 11567else 11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11569$as_echo_n "checking for shl_load in -ldld... " >&6; } 11570if ${ac_cv_lib_dld_shl_load+:} false; then : 11571 $as_echo_n "(cached) " >&6 11572else 11573 ac_check_lib_save_LIBS=$LIBS 11574LIBS="-ldld $LIBS" 11575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11576/* end confdefs.h. */ 11577 11578/* Override any GCC internal prototype to avoid an error. 11579 Use char because int might match the return type of a GCC 11580 builtin and then its argument prototype would still apply. */ 11581#ifdef __cplusplus 11582extern "C" 11583#endif 11584char shl_load (); 11585int 11586main () 11587{ 11588return shl_load (); 11589 ; 11590 return 0; 11591} 11592_ACEOF 11593if ac_fn_c_try_link "$LINENO"; then : 11594 ac_cv_lib_dld_shl_load=yes 11595else 11596 ac_cv_lib_dld_shl_load=no 11597fi 11598rm -f core conftest.err conftest.$ac_objext \ 11599 conftest$ac_exeext conftest.$ac_ext 11600LIBS=$ac_check_lib_save_LIBS 11601fi 11602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11603$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11604if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11605 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11606else 11607 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11608if test "x$ac_cv_func_dlopen" = xyes; then : 11609 lt_cv_dlopen=dlopen 11610else 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11612$as_echo_n "checking for dlopen in -ldl... " >&6; } 11613if ${ac_cv_lib_dl_dlopen+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615else 11616 ac_check_lib_save_LIBS=$LIBS 11617LIBS="-ldl $LIBS" 11618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11619/* end confdefs.h. */ 11620 11621/* Override any GCC internal prototype to avoid an error. 11622 Use char because int might match the return type of a GCC 11623 builtin and then its argument prototype would still apply. */ 11624#ifdef __cplusplus 11625extern "C" 11626#endif 11627char dlopen (); 11628int 11629main () 11630{ 11631return dlopen (); 11632 ; 11633 return 0; 11634} 11635_ACEOF 11636if ac_fn_c_try_link "$LINENO"; then : 11637 ac_cv_lib_dl_dlopen=yes 11638else 11639 ac_cv_lib_dl_dlopen=no 11640fi 11641rm -f core conftest.err conftest.$ac_objext \ 11642 conftest$ac_exeext conftest.$ac_ext 11643LIBS=$ac_check_lib_save_LIBS 11644fi 11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11646$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11647if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11648 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11649else 11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11651$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11652if ${ac_cv_lib_svld_dlopen+:} false; then : 11653 $as_echo_n "(cached) " >&6 11654else 11655 ac_check_lib_save_LIBS=$LIBS 11656LIBS="-lsvld $LIBS" 11657cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11658/* end confdefs.h. */ 11659 11660/* Override any GCC internal prototype to avoid an error. 11661 Use char because int might match the return type of a GCC 11662 builtin and then its argument prototype would still apply. */ 11663#ifdef __cplusplus 11664extern "C" 11665#endif 11666char dlopen (); 11667int 11668main () 11669{ 11670return dlopen (); 11671 ; 11672 return 0; 11673} 11674_ACEOF 11675if ac_fn_c_try_link "$LINENO"; then : 11676 ac_cv_lib_svld_dlopen=yes 11677else 11678 ac_cv_lib_svld_dlopen=no 11679fi 11680rm -f core conftest.err conftest.$ac_objext \ 11681 conftest$ac_exeext conftest.$ac_ext 11682LIBS=$ac_check_lib_save_LIBS 11683fi 11684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11685$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11686if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11687 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11688else 11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11690$as_echo_n "checking for dld_link in -ldld... " >&6; } 11691if ${ac_cv_lib_dld_dld_link+:} false; then : 11692 $as_echo_n "(cached) " >&6 11693else 11694 ac_check_lib_save_LIBS=$LIBS 11695LIBS="-ldld $LIBS" 11696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11697/* end confdefs.h. */ 11698 11699/* Override any GCC internal prototype to avoid an error. 11700 Use char because int might match the return type of a GCC 11701 builtin and then its argument prototype would still apply. */ 11702#ifdef __cplusplus 11703extern "C" 11704#endif 11705char dld_link (); 11706int 11707main () 11708{ 11709return dld_link (); 11710 ; 11711 return 0; 11712} 11713_ACEOF 11714if ac_fn_c_try_link "$LINENO"; then : 11715 ac_cv_lib_dld_dld_link=yes 11716else 11717 ac_cv_lib_dld_dld_link=no 11718fi 11719rm -f core conftest.err conftest.$ac_objext \ 11720 conftest$ac_exeext conftest.$ac_ext 11721LIBS=$ac_check_lib_save_LIBS 11722fi 11723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11724$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11725if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11726 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11727fi 11728 11729 11730fi 11731 11732 11733fi 11734 11735 11736fi 11737 11738 11739fi 11740 11741 11742fi 11743 11744 ;; 11745 esac 11746 11747 if test no = "$lt_cv_dlopen"; then 11748 enable_dlopen=no 11749 else 11750 enable_dlopen=yes 11751 fi 11752 11753 case $lt_cv_dlopen in 11754 dlopen) 11755 save_CPPFLAGS=$CPPFLAGS 11756 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11757 11758 save_LDFLAGS=$LDFLAGS 11759 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11760 11761 save_LIBS=$LIBS 11762 LIBS="$lt_cv_dlopen_libs $LIBS" 11763 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11765$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11766if ${lt_cv_dlopen_self+:} false; then : 11767 $as_echo_n "(cached) " >&6 11768else 11769 if test yes = "$cross_compiling"; then : 11770 lt_cv_dlopen_self=cross 11771else 11772 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11773 lt_status=$lt_dlunknown 11774 cat > conftest.$ac_ext <<_LT_EOF 11775#line $LINENO "configure" 11776#include "confdefs.h" 11777 11778#if HAVE_DLFCN_H 11779#include <dlfcn.h> 11780#endif 11781 11782#include <stdio.h> 11783 11784#ifdef RTLD_GLOBAL 11785# define LT_DLGLOBAL RTLD_GLOBAL 11786#else 11787# ifdef DL_GLOBAL 11788# define LT_DLGLOBAL DL_GLOBAL 11789# else 11790# define LT_DLGLOBAL 0 11791# endif 11792#endif 11793 11794/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11795 find out it does not work in some platform. */ 11796#ifndef LT_DLLAZY_OR_NOW 11797# ifdef RTLD_LAZY 11798# define LT_DLLAZY_OR_NOW RTLD_LAZY 11799# else 11800# ifdef DL_LAZY 11801# define LT_DLLAZY_OR_NOW DL_LAZY 11802# else 11803# ifdef RTLD_NOW 11804# define LT_DLLAZY_OR_NOW RTLD_NOW 11805# else 11806# ifdef DL_NOW 11807# define LT_DLLAZY_OR_NOW DL_NOW 11808# else 11809# define LT_DLLAZY_OR_NOW 0 11810# endif 11811# endif 11812# endif 11813# endif 11814#endif 11815 11816/* When -fvisibility=hidden is used, assume the code has been annotated 11817 correspondingly for the symbols needed. */ 11818#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11819int fnord () __attribute__((visibility("default"))); 11820#endif 11821 11822int fnord () { return 42; } 11823int main () 11824{ 11825 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11826 int status = $lt_dlunknown; 11827 11828 if (self) 11829 { 11830 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11831 else 11832 { 11833 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11834 else puts (dlerror ()); 11835 } 11836 /* dlclose (self); */ 11837 } 11838 else 11839 puts (dlerror ()); 11840 11841 return status; 11842} 11843_LT_EOF 11844 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11845 (eval $ac_link) 2>&5 11846 ac_status=$? 11847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11848 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11849 (./conftest; exit; ) >&5 2>/dev/null 11850 lt_status=$? 11851 case x$lt_status in 11852 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11853 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11854 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11855 esac 11856 else : 11857 # compilation failed 11858 lt_cv_dlopen_self=no 11859 fi 11860fi 11861rm -fr conftest* 11862 11863 11864fi 11865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11866$as_echo "$lt_cv_dlopen_self" >&6; } 11867 11868 if test yes = "$lt_cv_dlopen_self"; then 11869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11871$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11872if ${lt_cv_dlopen_self_static+:} false; then : 11873 $as_echo_n "(cached) " >&6 11874else 11875 if test yes = "$cross_compiling"; then : 11876 lt_cv_dlopen_self_static=cross 11877else 11878 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11879 lt_status=$lt_dlunknown 11880 cat > conftest.$ac_ext <<_LT_EOF 11881#line $LINENO "configure" 11882#include "confdefs.h" 11883 11884#if HAVE_DLFCN_H 11885#include <dlfcn.h> 11886#endif 11887 11888#include <stdio.h> 11889 11890#ifdef RTLD_GLOBAL 11891# define LT_DLGLOBAL RTLD_GLOBAL 11892#else 11893# ifdef DL_GLOBAL 11894# define LT_DLGLOBAL DL_GLOBAL 11895# else 11896# define LT_DLGLOBAL 0 11897# endif 11898#endif 11899 11900/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11901 find out it does not work in some platform. */ 11902#ifndef LT_DLLAZY_OR_NOW 11903# ifdef RTLD_LAZY 11904# define LT_DLLAZY_OR_NOW RTLD_LAZY 11905# else 11906# ifdef DL_LAZY 11907# define LT_DLLAZY_OR_NOW DL_LAZY 11908# else 11909# ifdef RTLD_NOW 11910# define LT_DLLAZY_OR_NOW RTLD_NOW 11911# else 11912# ifdef DL_NOW 11913# define LT_DLLAZY_OR_NOW DL_NOW 11914# else 11915# define LT_DLLAZY_OR_NOW 0 11916# endif 11917# endif 11918# endif 11919# endif 11920#endif 11921 11922/* When -fvisibility=hidden is used, assume the code has been annotated 11923 correspondingly for the symbols needed. */ 11924#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11925int fnord () __attribute__((visibility("default"))); 11926#endif 11927 11928int fnord () { return 42; } 11929int main () 11930{ 11931 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11932 int status = $lt_dlunknown; 11933 11934 if (self) 11935 { 11936 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11937 else 11938 { 11939 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11940 else puts (dlerror ()); 11941 } 11942 /* dlclose (self); */ 11943 } 11944 else 11945 puts (dlerror ()); 11946 11947 return status; 11948} 11949_LT_EOF 11950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11951 (eval $ac_link) 2>&5 11952 ac_status=$? 11953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11954 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11955 (./conftest; exit; ) >&5 2>/dev/null 11956 lt_status=$? 11957 case x$lt_status in 11958 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11959 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11960 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11961 esac 11962 else : 11963 # compilation failed 11964 lt_cv_dlopen_self_static=no 11965 fi 11966fi 11967rm -fr conftest* 11968 11969 11970fi 11971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11972$as_echo "$lt_cv_dlopen_self_static" >&6; } 11973 fi 11974 11975 CPPFLAGS=$save_CPPFLAGS 11976 LDFLAGS=$save_LDFLAGS 11977 LIBS=$save_LIBS 11978 ;; 11979 esac 11980 11981 case $lt_cv_dlopen_self in 11982 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11983 *) enable_dlopen_self=unknown ;; 11984 esac 11985 11986 case $lt_cv_dlopen_self_static in 11987 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11988 *) enable_dlopen_self_static=unknown ;; 11989 esac 11990fi 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008striplib= 12009old_striplib= 12010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12011$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12012if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12013 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12014 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12016$as_echo "yes" >&6; } 12017else 12018# FIXME - insert some real tests, host_os isn't really good enough 12019 case $host_os in 12020 darwin*) 12021 if test -n "$STRIP"; then 12022 striplib="$STRIP -x" 12023 old_striplib="$STRIP -S" 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12025$as_echo "yes" >&6; } 12026 else 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12028$as_echo "no" >&6; } 12029 fi 12030 ;; 12031 *) 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12033$as_echo "no" >&6; } 12034 ;; 12035 esac 12036fi 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 # Report what library types will actually be built 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12051$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12053$as_echo "$can_build_shared" >&6; } 12054 12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12056$as_echo_n "checking whether to build shared libraries... " >&6; } 12057 test no = "$can_build_shared" && enable_shared=no 12058 12059 # On AIX, shared libraries and static libraries use the same namespace, and 12060 # are all built from PIC. 12061 case $host_os in 12062 aix3*) 12063 test yes = "$enable_shared" && enable_static=no 12064 if test -n "$RANLIB"; then 12065 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12066 postinstall_cmds='$RANLIB $lib' 12067 fi 12068 ;; 12069 12070 aix[4-9]*) 12071 if test ia64 != "$host_cpu"; then 12072 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 12073 yes,aix,yes) ;; # shared object as lib.so file only 12074 yes,svr4,*) ;; # shared object as lib.so archive member only 12075 yes,*) enable_static=no ;; # shared object in lib.a archive as well 12076 esac 12077 fi 12078 ;; 12079 esac 12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12081$as_echo "$enable_shared" >&6; } 12082 12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12084$as_echo_n "checking whether to build static libraries... " >&6; } 12085 # Make sure either enable_shared or enable_static is yes. 12086 test yes = "$enable_shared" || enable_static=yes 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12088$as_echo "$enable_static" >&6; } 12089 12090 12091 12092 12093fi 12094ac_ext=c 12095ac_cpp='$CPP $CPPFLAGS' 12096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12098ac_compiler_gnu=$ac_cv_c_compiler_gnu 12099 12100CC=$lt_save_CC 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 ac_config_commands="$ac_config_commands libtool" 12117 12118 12119 12120 12121# Only expand once: 12122 12123 12124 12125# Require xorg-macros: XORG_DEFAULT_OPTIONS, XORG_WITH_LINT 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 12138$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 12139if ${ac_cv_prog_cc_c99+:} false; then : 12140 $as_echo_n "(cached) " >&6 12141else 12142 ac_cv_prog_cc_c99=no 12143ac_save_CC=$CC 12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12145/* end confdefs.h. */ 12146#include <stdarg.h> 12147#include <stdbool.h> 12148#include <stdlib.h> 12149#include <wchar.h> 12150#include <stdio.h> 12151 12152// Check varargs macros. These examples are taken from C99 6.10.3.5. 12153#define debug(...) fprintf (stderr, __VA_ARGS__) 12154#define showlist(...) puts (#__VA_ARGS__) 12155#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12156static void 12157test_varargs_macros (void) 12158{ 12159 int x = 1234; 12160 int y = 5678; 12161 debug ("Flag"); 12162 debug ("X = %d\n", x); 12163 showlist (The first, second, and third items.); 12164 report (x>y, "x is %d but y is %d", x, y); 12165} 12166 12167// Check long long types. 12168#define BIG64 18446744073709551615ull 12169#define BIG32 4294967295ul 12170#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12171#if !BIG_OK 12172 your preprocessor is broken; 12173#endif 12174#if BIG_OK 12175#else 12176 your preprocessor is broken; 12177#endif 12178static long long int bignum = -9223372036854775807LL; 12179static unsigned long long int ubignum = BIG64; 12180 12181struct incomplete_array 12182{ 12183 int datasize; 12184 double data[]; 12185}; 12186 12187struct named_init { 12188 int number; 12189 const wchar_t *name; 12190 double average; 12191}; 12192 12193typedef const char *ccp; 12194 12195static inline int 12196test_restrict (ccp restrict text) 12197{ 12198 // See if C++-style comments work. 12199 // Iterate through items via the restricted pointer. 12200 // Also check for declarations in for loops. 12201 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12202 continue; 12203 return 0; 12204} 12205 12206// Check varargs and va_copy. 12207static void 12208test_varargs (const char *format, ...) 12209{ 12210 va_list args; 12211 va_start (args, format); 12212 va_list args_copy; 12213 va_copy (args_copy, args); 12214 12215 const char *str; 12216 int number; 12217 float fnumber; 12218 12219 while (*format) 12220 { 12221 switch (*format++) 12222 { 12223 case 's': // string 12224 str = va_arg (args_copy, const char *); 12225 break; 12226 case 'd': // int 12227 number = va_arg (args_copy, int); 12228 break; 12229 case 'f': // float 12230 fnumber = va_arg (args_copy, double); 12231 break; 12232 default: 12233 break; 12234 } 12235 } 12236 va_end (args_copy); 12237 va_end (args); 12238} 12239 12240int 12241main () 12242{ 12243 12244 // Check bool. 12245 _Bool success = false; 12246 12247 // Check restrict. 12248 if (test_restrict ("String literal") == 0) 12249 success = true; 12250 char *restrict newvar = "Another string"; 12251 12252 // Check varargs. 12253 test_varargs ("s, d' f .", "string", 65, 34.234); 12254 test_varargs_macros (); 12255 12256 // Check flexible array members. 12257 struct incomplete_array *ia = 12258 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12259 ia->datasize = 10; 12260 for (int i = 0; i < ia->datasize; ++i) 12261 ia->data[i] = i * 1.234; 12262 12263 // Check named initializers. 12264 struct named_init ni = { 12265 .number = 34, 12266 .name = L"Test wide string", 12267 .average = 543.34343, 12268 }; 12269 12270 ni.number = 58; 12271 12272 int dynamic_array[ni.number]; 12273 dynamic_array[ni.number - 1] = 543; 12274 12275 // work around unused variable warnings 12276 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12277 || dynamic_array[ni.number - 1] != 543); 12278 12279 ; 12280 return 0; 12281} 12282_ACEOF 12283for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12284do 12285 CC="$ac_save_CC $ac_arg" 12286 if ac_fn_c_try_compile "$LINENO"; then : 12287 ac_cv_prog_cc_c99=$ac_arg 12288fi 12289rm -f core conftest.err conftest.$ac_objext 12290 test "x$ac_cv_prog_cc_c99" != "xno" && break 12291done 12292rm -f conftest.$ac_ext 12293CC=$ac_save_CC 12294 12295fi 12296# AC_CACHE_VAL 12297case "x$ac_cv_prog_cc_c99" in 12298 x) 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12300$as_echo "none needed" >&6; } ;; 12301 xno) 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12303$as_echo "unsupported" >&6; } ;; 12304 *) 12305 CC="$CC $ac_cv_prog_cc_c99" 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12307$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12308esac 12309if test "x$ac_cv_prog_cc_c99" != xno; then : 12310 12311fi 12312 12313 12314 12315 12316 12317 12318ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12319if test "x$ac_cv_have_decl___clang__" = xyes; then : 12320 CLANGCC="yes" 12321else 12322 CLANGCC="no" 12323fi 12324 12325ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12326if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12327 INTELCC="yes" 12328else 12329 INTELCC="no" 12330fi 12331 12332ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12333if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12334 SUNCC="yes" 12335else 12336 SUNCC="no" 12337fi 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12348 if test -n "$ac_tool_prefix"; then 12349 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12350set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12352$as_echo_n "checking for $ac_word... " >&6; } 12353if ${ac_cv_path_PKG_CONFIG+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355else 12356 case $PKG_CONFIG in 12357 [\\/]* | ?:[\\/]*) 12358 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12359 ;; 12360 *) 12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12362for as_dir in $PATH 12363do 12364 IFS=$as_save_IFS 12365 test -z "$as_dir" && as_dir=. 12366 for ac_exec_ext in '' $ac_executable_extensions; do 12367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12368 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12370 break 2 12371 fi 12372done 12373 done 12374IFS=$as_save_IFS 12375 12376 ;; 12377esac 12378fi 12379PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12380if test -n "$PKG_CONFIG"; then 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12382$as_echo "$PKG_CONFIG" >&6; } 12383else 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12385$as_echo "no" >&6; } 12386fi 12387 12388 12389fi 12390if test -z "$ac_cv_path_PKG_CONFIG"; then 12391 ac_pt_PKG_CONFIG=$PKG_CONFIG 12392 # Extract the first word of "pkg-config", so it can be a program name with args. 12393set dummy pkg-config; ac_word=$2 12394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12395$as_echo_n "checking for $ac_word... " >&6; } 12396if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12397 $as_echo_n "(cached) " >&6 12398else 12399 case $ac_pt_PKG_CONFIG in 12400 [\\/]* | ?:[\\/]*) 12401 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12402 ;; 12403 *) 12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12405for as_dir in $PATH 12406do 12407 IFS=$as_save_IFS 12408 test -z "$as_dir" && as_dir=. 12409 for ac_exec_ext in '' $ac_executable_extensions; do 12410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12411 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12413 break 2 12414 fi 12415done 12416 done 12417IFS=$as_save_IFS 12418 12419 ;; 12420esac 12421fi 12422ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12423if test -n "$ac_pt_PKG_CONFIG"; then 12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12425$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12426else 12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12428$as_echo "no" >&6; } 12429fi 12430 12431 if test "x$ac_pt_PKG_CONFIG" = x; then 12432 PKG_CONFIG="" 12433 else 12434 case $cross_compiling:$ac_tool_warned in 12435yes:) 12436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12438ac_tool_warned=yes ;; 12439esac 12440 PKG_CONFIG=$ac_pt_PKG_CONFIG 12441 fi 12442else 12443 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12444fi 12445 12446fi 12447if test -n "$PKG_CONFIG"; then 12448 _pkg_min_version=0.9.0 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12450$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12451 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12453$as_echo "yes" >&6; } 12454 else 12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12456$as_echo "no" >&6; } 12457 PKG_CONFIG="" 12458 fi 12459fi 12460 12461 12462 12463 12464 12465# Check whether --enable-selective-werror was given. 12466if test "${enable_selective_werror+set}" = set; then : 12467 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12468else 12469 SELECTIVE_WERROR=yes 12470fi 12471 12472 12473 12474 12475 12476# -v is too short to test reliably with XORG_TESTSET_CFLAG 12477if test "x$SUNCC" = "xyes"; then 12478 BASE_CFLAGS="-v" 12479else 12480 BASE_CFLAGS="" 12481fi 12482 12483# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497xorg_testset_save_CFLAGS="$CFLAGS" 12498 12499if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12500 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12502$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12503if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12504 $as_echo_n "(cached) " >&6 12505else 12506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12507/* end confdefs.h. */ 12508int i; 12509_ACEOF 12510if ac_fn_c_try_compile "$LINENO"; then : 12511 xorg_cv_cc_flag_unknown_warning_option=yes 12512else 12513 xorg_cv_cc_flag_unknown_warning_option=no 12514fi 12515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12516fi 12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12518$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12520 CFLAGS="$xorg_testset_save_CFLAGS" 12521fi 12522 12523if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12525 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12526 fi 12527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12529$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12530if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12531 $as_echo_n "(cached) " >&6 12532else 12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12534/* end confdefs.h. */ 12535int i; 12536_ACEOF 12537if ac_fn_c_try_compile "$LINENO"; then : 12538 xorg_cv_cc_flag_unused_command_line_argument=yes 12539else 12540 xorg_cv_cc_flag_unused_command_line_argument=no 12541fi 12542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12543fi 12544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12545$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12547 CFLAGS="$xorg_testset_save_CFLAGS" 12548fi 12549 12550found="no" 12551 12552 if test $found = "no" ; then 12553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12555 fi 12556 12557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12559 fi 12560 12561 CFLAGS="$CFLAGS -Wall" 12562 12563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12564$as_echo_n "checking if $CC supports -Wall... " >&6; } 12565 cacheid=xorg_cv_cc_flag__Wall 12566 if eval \${$cacheid+:} false; then : 12567 $as_echo_n "(cached) " >&6 12568else 12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12570/* end confdefs.h. */ 12571int i; 12572int 12573main () 12574{ 12575 12576 ; 12577 return 0; 12578} 12579_ACEOF 12580if ac_fn_c_try_link "$LINENO"; then : 12581 eval $cacheid=yes 12582else 12583 eval $cacheid=no 12584fi 12585rm -f core conftest.err conftest.$ac_objext \ 12586 conftest$ac_exeext conftest.$ac_ext 12587fi 12588 12589 12590 CFLAGS="$xorg_testset_save_CFLAGS" 12591 12592 eval supported=\$$cacheid 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12594$as_echo "$supported" >&6; } 12595 if test "$supported" = "yes" ; then 12596 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12597 found="yes" 12598 fi 12599 fi 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615xorg_testset_save_CFLAGS="$CFLAGS" 12616 12617if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12618 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12620$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12621if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12622 $as_echo_n "(cached) " >&6 12623else 12624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12625/* end confdefs.h. */ 12626int i; 12627_ACEOF 12628if ac_fn_c_try_compile "$LINENO"; then : 12629 xorg_cv_cc_flag_unknown_warning_option=yes 12630else 12631 xorg_cv_cc_flag_unknown_warning_option=no 12632fi 12633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12634fi 12635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12636$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12638 CFLAGS="$xorg_testset_save_CFLAGS" 12639fi 12640 12641if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12643 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12644 fi 12645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12647$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12648if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12649 $as_echo_n "(cached) " >&6 12650else 12651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12652/* end confdefs.h. */ 12653int i; 12654_ACEOF 12655if ac_fn_c_try_compile "$LINENO"; then : 12656 xorg_cv_cc_flag_unused_command_line_argument=yes 12657else 12658 xorg_cv_cc_flag_unused_command_line_argument=no 12659fi 12660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12661fi 12662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12663$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12665 CFLAGS="$xorg_testset_save_CFLAGS" 12666fi 12667 12668found="no" 12669 12670 if test $found = "no" ; then 12671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12673 fi 12674 12675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12677 fi 12678 12679 CFLAGS="$CFLAGS -Wpointer-arith" 12680 12681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12682$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12683 cacheid=xorg_cv_cc_flag__Wpointer_arith 12684 if eval \${$cacheid+:} false; then : 12685 $as_echo_n "(cached) " >&6 12686else 12687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12688/* end confdefs.h. */ 12689int i; 12690int 12691main () 12692{ 12693 12694 ; 12695 return 0; 12696} 12697_ACEOF 12698if ac_fn_c_try_link "$LINENO"; then : 12699 eval $cacheid=yes 12700else 12701 eval $cacheid=no 12702fi 12703rm -f core conftest.err conftest.$ac_objext \ 12704 conftest$ac_exeext conftest.$ac_ext 12705fi 12706 12707 12708 CFLAGS="$xorg_testset_save_CFLAGS" 12709 12710 eval supported=\$$cacheid 12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12712$as_echo "$supported" >&6; } 12713 if test "$supported" = "yes" ; then 12714 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12715 found="yes" 12716 fi 12717 fi 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733xorg_testset_save_CFLAGS="$CFLAGS" 12734 12735if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12736 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12738$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12739if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741else 12742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12743/* end confdefs.h. */ 12744int i; 12745_ACEOF 12746if ac_fn_c_try_compile "$LINENO"; then : 12747 xorg_cv_cc_flag_unknown_warning_option=yes 12748else 12749 xorg_cv_cc_flag_unknown_warning_option=no 12750fi 12751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12752fi 12753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12754$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12756 CFLAGS="$xorg_testset_save_CFLAGS" 12757fi 12758 12759if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12761 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12762 fi 12763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12765$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12766if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12767 $as_echo_n "(cached) " >&6 12768else 12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12770/* end confdefs.h. */ 12771int i; 12772_ACEOF 12773if ac_fn_c_try_compile "$LINENO"; then : 12774 xorg_cv_cc_flag_unused_command_line_argument=yes 12775else 12776 xorg_cv_cc_flag_unused_command_line_argument=no 12777fi 12778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12779fi 12780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12781$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12783 CFLAGS="$xorg_testset_save_CFLAGS" 12784fi 12785 12786found="no" 12787 12788 if test $found = "no" ; then 12789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12791 fi 12792 12793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12795 fi 12796 12797 CFLAGS="$CFLAGS -Wmissing-declarations" 12798 12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12800$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12801 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12802 if eval \${$cacheid+:} false; then : 12803 $as_echo_n "(cached) " >&6 12804else 12805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12806/* end confdefs.h. */ 12807int i; 12808int 12809main () 12810{ 12811 12812 ; 12813 return 0; 12814} 12815_ACEOF 12816if ac_fn_c_try_link "$LINENO"; then : 12817 eval $cacheid=yes 12818else 12819 eval $cacheid=no 12820fi 12821rm -f core conftest.err conftest.$ac_objext \ 12822 conftest$ac_exeext conftest.$ac_ext 12823fi 12824 12825 12826 CFLAGS="$xorg_testset_save_CFLAGS" 12827 12828 eval supported=\$$cacheid 12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12830$as_echo "$supported" >&6; } 12831 if test "$supported" = "yes" ; then 12832 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12833 found="yes" 12834 fi 12835 fi 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851xorg_testset_save_CFLAGS="$CFLAGS" 12852 12853if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12854 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12856$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12857if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12858 $as_echo_n "(cached) " >&6 12859else 12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12861/* end confdefs.h. */ 12862int i; 12863_ACEOF 12864if ac_fn_c_try_compile "$LINENO"; then : 12865 xorg_cv_cc_flag_unknown_warning_option=yes 12866else 12867 xorg_cv_cc_flag_unknown_warning_option=no 12868fi 12869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12870fi 12871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12872$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12873 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12874 CFLAGS="$xorg_testset_save_CFLAGS" 12875fi 12876 12877if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12878 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12879 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12880 fi 12881 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12883$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12884if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12885 $as_echo_n "(cached) " >&6 12886else 12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12888/* end confdefs.h. */ 12889int i; 12890_ACEOF 12891if ac_fn_c_try_compile "$LINENO"; then : 12892 xorg_cv_cc_flag_unused_command_line_argument=yes 12893else 12894 xorg_cv_cc_flag_unused_command_line_argument=no 12895fi 12896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12897fi 12898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12899$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12900 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12901 CFLAGS="$xorg_testset_save_CFLAGS" 12902fi 12903 12904found="no" 12905 12906 if test $found = "no" ; then 12907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12909 fi 12910 12911 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12913 fi 12914 12915 CFLAGS="$CFLAGS -Wformat=2" 12916 12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12918$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12919 cacheid=xorg_cv_cc_flag__Wformat_2 12920 if eval \${$cacheid+:} false; then : 12921 $as_echo_n "(cached) " >&6 12922else 12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12924/* end confdefs.h. */ 12925int i; 12926int 12927main () 12928{ 12929 12930 ; 12931 return 0; 12932} 12933_ACEOF 12934if ac_fn_c_try_link "$LINENO"; then : 12935 eval $cacheid=yes 12936else 12937 eval $cacheid=no 12938fi 12939rm -f core conftest.err conftest.$ac_objext \ 12940 conftest$ac_exeext conftest.$ac_ext 12941fi 12942 12943 12944 CFLAGS="$xorg_testset_save_CFLAGS" 12945 12946 eval supported=\$$cacheid 12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12948$as_echo "$supported" >&6; } 12949 if test "$supported" = "yes" ; then 12950 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12951 found="yes" 12952 fi 12953 fi 12954 12955 if test $found = "no" ; then 12956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12957 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12958 fi 12959 12960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12962 fi 12963 12964 CFLAGS="$CFLAGS -Wformat" 12965 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12967$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12968 cacheid=xorg_cv_cc_flag__Wformat 12969 if eval \${$cacheid+:} false; then : 12970 $as_echo_n "(cached) " >&6 12971else 12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12973/* end confdefs.h. */ 12974int i; 12975int 12976main () 12977{ 12978 12979 ; 12980 return 0; 12981} 12982_ACEOF 12983if ac_fn_c_try_link "$LINENO"; then : 12984 eval $cacheid=yes 12985else 12986 eval $cacheid=no 12987fi 12988rm -f core conftest.err conftest.$ac_objext \ 12989 conftest$ac_exeext conftest.$ac_ext 12990fi 12991 12992 12993 CFLAGS="$xorg_testset_save_CFLAGS" 12994 12995 eval supported=\$$cacheid 12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12997$as_echo "$supported" >&6; } 12998 if test "$supported" = "yes" ; then 12999 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 13000 found="yes" 13001 fi 13002 fi 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020xorg_testset_save_CFLAGS="$CFLAGS" 13021 13022if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13025$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13026if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13027 $as_echo_n "(cached) " >&6 13028else 13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13030/* end confdefs.h. */ 13031int i; 13032_ACEOF 13033if ac_fn_c_try_compile "$LINENO"; then : 13034 xorg_cv_cc_flag_unknown_warning_option=yes 13035else 13036 xorg_cv_cc_flag_unknown_warning_option=no 13037fi 13038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13039fi 13040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13041$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13043 CFLAGS="$xorg_testset_save_CFLAGS" 13044fi 13045 13046if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13049 fi 13050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13052$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13053if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055else 13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13057/* end confdefs.h. */ 13058int i; 13059_ACEOF 13060if ac_fn_c_try_compile "$LINENO"; then : 13061 xorg_cv_cc_flag_unused_command_line_argument=yes 13062else 13063 xorg_cv_cc_flag_unused_command_line_argument=no 13064fi 13065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13066fi 13067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13068$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13070 CFLAGS="$xorg_testset_save_CFLAGS" 13071fi 13072 13073found="no" 13074 13075 if test $found = "no" ; then 13076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13078 fi 13079 13080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13082 fi 13083 13084 CFLAGS="$CFLAGS -Wstrict-prototypes" 13085 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 13087$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 13088 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 13089 if eval \${$cacheid+:} false; then : 13090 $as_echo_n "(cached) " >&6 13091else 13092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13093/* end confdefs.h. */ 13094int i; 13095int 13096main () 13097{ 13098 13099 ; 13100 return 0; 13101} 13102_ACEOF 13103if ac_fn_c_try_link "$LINENO"; then : 13104 eval $cacheid=yes 13105else 13106 eval $cacheid=no 13107fi 13108rm -f core conftest.err conftest.$ac_objext \ 13109 conftest$ac_exeext conftest.$ac_ext 13110fi 13111 13112 13113 CFLAGS="$xorg_testset_save_CFLAGS" 13114 13115 eval supported=\$$cacheid 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13117$as_echo "$supported" >&6; } 13118 if test "$supported" = "yes" ; then 13119 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 13120 found="yes" 13121 fi 13122 fi 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138xorg_testset_save_CFLAGS="$CFLAGS" 13139 13140if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13143$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13144if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13145 $as_echo_n "(cached) " >&6 13146else 13147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13148/* end confdefs.h. */ 13149int i; 13150_ACEOF 13151if ac_fn_c_try_compile "$LINENO"; then : 13152 xorg_cv_cc_flag_unknown_warning_option=yes 13153else 13154 xorg_cv_cc_flag_unknown_warning_option=no 13155fi 13156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13157fi 13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13159$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13161 CFLAGS="$xorg_testset_save_CFLAGS" 13162fi 13163 13164if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13167 fi 13168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13170$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13171if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13172 $as_echo_n "(cached) " >&6 13173else 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13175/* end confdefs.h. */ 13176int i; 13177_ACEOF 13178if ac_fn_c_try_compile "$LINENO"; then : 13179 xorg_cv_cc_flag_unused_command_line_argument=yes 13180else 13181 xorg_cv_cc_flag_unused_command_line_argument=no 13182fi 13183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13184fi 13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13186$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13188 CFLAGS="$xorg_testset_save_CFLAGS" 13189fi 13190 13191found="no" 13192 13193 if test $found = "no" ; then 13194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13196 fi 13197 13198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13200 fi 13201 13202 CFLAGS="$CFLAGS -Wmissing-prototypes" 13203 13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13205$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13206 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13207 if eval \${$cacheid+:} false; then : 13208 $as_echo_n "(cached) " >&6 13209else 13210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13211/* end confdefs.h. */ 13212int i; 13213int 13214main () 13215{ 13216 13217 ; 13218 return 0; 13219} 13220_ACEOF 13221if ac_fn_c_try_link "$LINENO"; then : 13222 eval $cacheid=yes 13223else 13224 eval $cacheid=no 13225fi 13226rm -f core conftest.err conftest.$ac_objext \ 13227 conftest$ac_exeext conftest.$ac_ext 13228fi 13229 13230 13231 CFLAGS="$xorg_testset_save_CFLAGS" 13232 13233 eval supported=\$$cacheid 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13235$as_echo "$supported" >&6; } 13236 if test "$supported" = "yes" ; then 13237 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13238 found="yes" 13239 fi 13240 fi 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256xorg_testset_save_CFLAGS="$CFLAGS" 13257 13258if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13261$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13262if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13263 $as_echo_n "(cached) " >&6 13264else 13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13266/* end confdefs.h. */ 13267int i; 13268_ACEOF 13269if ac_fn_c_try_compile "$LINENO"; then : 13270 xorg_cv_cc_flag_unknown_warning_option=yes 13271else 13272 xorg_cv_cc_flag_unknown_warning_option=no 13273fi 13274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13275fi 13276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13277$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13279 CFLAGS="$xorg_testset_save_CFLAGS" 13280fi 13281 13282if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13285 fi 13286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13288$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13289if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13290 $as_echo_n "(cached) " >&6 13291else 13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13293/* end confdefs.h. */ 13294int i; 13295_ACEOF 13296if ac_fn_c_try_compile "$LINENO"; then : 13297 xorg_cv_cc_flag_unused_command_line_argument=yes 13298else 13299 xorg_cv_cc_flag_unused_command_line_argument=no 13300fi 13301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13302fi 13303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13304$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13306 CFLAGS="$xorg_testset_save_CFLAGS" 13307fi 13308 13309found="no" 13310 13311 if test $found = "no" ; then 13312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13314 fi 13315 13316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13318 fi 13319 13320 CFLAGS="$CFLAGS -Wnested-externs" 13321 13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13323$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13324 cacheid=xorg_cv_cc_flag__Wnested_externs 13325 if eval \${$cacheid+:} false; then : 13326 $as_echo_n "(cached) " >&6 13327else 13328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13329/* end confdefs.h. */ 13330int i; 13331int 13332main () 13333{ 13334 13335 ; 13336 return 0; 13337} 13338_ACEOF 13339if ac_fn_c_try_link "$LINENO"; then : 13340 eval $cacheid=yes 13341else 13342 eval $cacheid=no 13343fi 13344rm -f core conftest.err conftest.$ac_objext \ 13345 conftest$ac_exeext conftest.$ac_ext 13346fi 13347 13348 13349 CFLAGS="$xorg_testset_save_CFLAGS" 13350 13351 eval supported=\$$cacheid 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13353$as_echo "$supported" >&6; } 13354 if test "$supported" = "yes" ; then 13355 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13356 found="yes" 13357 fi 13358 fi 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374xorg_testset_save_CFLAGS="$CFLAGS" 13375 13376if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13379$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13380if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13381 $as_echo_n "(cached) " >&6 13382else 13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13384/* end confdefs.h. */ 13385int i; 13386_ACEOF 13387if ac_fn_c_try_compile "$LINENO"; then : 13388 xorg_cv_cc_flag_unknown_warning_option=yes 13389else 13390 xorg_cv_cc_flag_unknown_warning_option=no 13391fi 13392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13393fi 13394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13395$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13397 CFLAGS="$xorg_testset_save_CFLAGS" 13398fi 13399 13400if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13403 fi 13404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13406$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13407if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13408 $as_echo_n "(cached) " >&6 13409else 13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13411/* end confdefs.h. */ 13412int i; 13413_ACEOF 13414if ac_fn_c_try_compile "$LINENO"; then : 13415 xorg_cv_cc_flag_unused_command_line_argument=yes 13416else 13417 xorg_cv_cc_flag_unused_command_line_argument=no 13418fi 13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13420fi 13421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13422$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13424 CFLAGS="$xorg_testset_save_CFLAGS" 13425fi 13426 13427found="no" 13428 13429 if test $found = "no" ; then 13430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13432 fi 13433 13434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13436 fi 13437 13438 CFLAGS="$CFLAGS -Wbad-function-cast" 13439 13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13441$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13442 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13443 if eval \${$cacheid+:} false; then : 13444 $as_echo_n "(cached) " >&6 13445else 13446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13447/* end confdefs.h. */ 13448int i; 13449int 13450main () 13451{ 13452 13453 ; 13454 return 0; 13455} 13456_ACEOF 13457if ac_fn_c_try_link "$LINENO"; then : 13458 eval $cacheid=yes 13459else 13460 eval $cacheid=no 13461fi 13462rm -f core conftest.err conftest.$ac_objext \ 13463 conftest$ac_exeext conftest.$ac_ext 13464fi 13465 13466 13467 CFLAGS="$xorg_testset_save_CFLAGS" 13468 13469 eval supported=\$$cacheid 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13471$as_echo "$supported" >&6; } 13472 if test "$supported" = "yes" ; then 13473 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13474 found="yes" 13475 fi 13476 fi 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492xorg_testset_save_CFLAGS="$CFLAGS" 13493 13494if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13497$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13498if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13499 $as_echo_n "(cached) " >&6 13500else 13501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13502/* end confdefs.h. */ 13503int i; 13504_ACEOF 13505if ac_fn_c_try_compile "$LINENO"; then : 13506 xorg_cv_cc_flag_unknown_warning_option=yes 13507else 13508 xorg_cv_cc_flag_unknown_warning_option=no 13509fi 13510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13511fi 13512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13513$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13515 CFLAGS="$xorg_testset_save_CFLAGS" 13516fi 13517 13518if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13521 fi 13522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13524$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13525if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13526 $as_echo_n "(cached) " >&6 13527else 13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13529/* end confdefs.h. */ 13530int i; 13531_ACEOF 13532if ac_fn_c_try_compile "$LINENO"; then : 13533 xorg_cv_cc_flag_unused_command_line_argument=yes 13534else 13535 xorg_cv_cc_flag_unused_command_line_argument=no 13536fi 13537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13538fi 13539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13540$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13542 CFLAGS="$xorg_testset_save_CFLAGS" 13543fi 13544 13545found="no" 13546 13547 if test $found = "no" ; then 13548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13550 fi 13551 13552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13554 fi 13555 13556 CFLAGS="$CFLAGS -Wold-style-definition" 13557 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13559$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13560 cacheid=xorg_cv_cc_flag__Wold_style_definition 13561 if eval \${$cacheid+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563else 13564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13565/* end confdefs.h. */ 13566int i; 13567int 13568main () 13569{ 13570 13571 ; 13572 return 0; 13573} 13574_ACEOF 13575if ac_fn_c_try_link "$LINENO"; then : 13576 eval $cacheid=yes 13577else 13578 eval $cacheid=no 13579fi 13580rm -f core conftest.err conftest.$ac_objext \ 13581 conftest$ac_exeext conftest.$ac_ext 13582fi 13583 13584 13585 CFLAGS="$xorg_testset_save_CFLAGS" 13586 13587 eval supported=\$$cacheid 13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13589$as_echo "$supported" >&6; } 13590 if test "$supported" = "yes" ; then 13591 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13592 found="yes" 13593 fi 13594 fi 13595 13596 if test $found = "no" ; then 13597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13599 fi 13600 13601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13603 fi 13604 13605 CFLAGS="$CFLAGS -fd" 13606 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13608$as_echo_n "checking if $CC supports -fd... " >&6; } 13609 cacheid=xorg_cv_cc_flag__fd 13610 if eval \${$cacheid+:} false; then : 13611 $as_echo_n "(cached) " >&6 13612else 13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13614/* end confdefs.h. */ 13615int i; 13616int 13617main () 13618{ 13619 13620 ; 13621 return 0; 13622} 13623_ACEOF 13624if ac_fn_c_try_link "$LINENO"; then : 13625 eval $cacheid=yes 13626else 13627 eval $cacheid=no 13628fi 13629rm -f core conftest.err conftest.$ac_objext \ 13630 conftest$ac_exeext conftest.$ac_ext 13631fi 13632 13633 13634 CFLAGS="$xorg_testset_save_CFLAGS" 13635 13636 eval supported=\$$cacheid 13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13638$as_echo "$supported" >&6; } 13639 if test "$supported" = "yes" ; then 13640 BASE_CFLAGS="$BASE_CFLAGS -fd" 13641 found="yes" 13642 fi 13643 fi 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659xorg_testset_save_CFLAGS="$CFLAGS" 13660 13661if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13664$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13665if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13666 $as_echo_n "(cached) " >&6 13667else 13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13669/* end confdefs.h. */ 13670int i; 13671_ACEOF 13672if ac_fn_c_try_compile "$LINENO"; then : 13673 xorg_cv_cc_flag_unknown_warning_option=yes 13674else 13675 xorg_cv_cc_flag_unknown_warning_option=no 13676fi 13677rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13678fi 13679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13680$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13682 CFLAGS="$xorg_testset_save_CFLAGS" 13683fi 13684 13685if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13687 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13688 fi 13689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13691$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13692if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13693 $as_echo_n "(cached) " >&6 13694else 13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13696/* end confdefs.h. */ 13697int i; 13698_ACEOF 13699if ac_fn_c_try_compile "$LINENO"; then : 13700 xorg_cv_cc_flag_unused_command_line_argument=yes 13701else 13702 xorg_cv_cc_flag_unused_command_line_argument=no 13703fi 13704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13705fi 13706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13707$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13709 CFLAGS="$xorg_testset_save_CFLAGS" 13710fi 13711 13712found="no" 13713 13714 if test $found = "no" ; then 13715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13717 fi 13718 13719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13721 fi 13722 13723 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13724 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13726$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13727 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13728 if eval \${$cacheid+:} false; then : 13729 $as_echo_n "(cached) " >&6 13730else 13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13732/* end confdefs.h. */ 13733int i; 13734int 13735main () 13736{ 13737 13738 ; 13739 return 0; 13740} 13741_ACEOF 13742if ac_fn_c_try_link "$LINENO"; then : 13743 eval $cacheid=yes 13744else 13745 eval $cacheid=no 13746fi 13747rm -f core conftest.err conftest.$ac_objext \ 13748 conftest$ac_exeext conftest.$ac_ext 13749fi 13750 13751 13752 CFLAGS="$xorg_testset_save_CFLAGS" 13753 13754 eval supported=\$$cacheid 13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13756$as_echo "$supported" >&6; } 13757 if test "$supported" = "yes" ; then 13758 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13759 found="yes" 13760 fi 13761 fi 13762 13763 13764 13765 13766 13767# This chunk adds additional warnings that could catch undesired effects. 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781xorg_testset_save_CFLAGS="$CFLAGS" 13782 13783if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13784 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13786$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13787if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13788 $as_echo_n "(cached) " >&6 13789else 13790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13791/* end confdefs.h. */ 13792int i; 13793_ACEOF 13794if ac_fn_c_try_compile "$LINENO"; then : 13795 xorg_cv_cc_flag_unknown_warning_option=yes 13796else 13797 xorg_cv_cc_flag_unknown_warning_option=no 13798fi 13799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13800fi 13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13802$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13804 CFLAGS="$xorg_testset_save_CFLAGS" 13805fi 13806 13807if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13810 fi 13811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13813$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13814if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13815 $as_echo_n "(cached) " >&6 13816else 13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13818/* end confdefs.h. */ 13819int i; 13820_ACEOF 13821if ac_fn_c_try_compile "$LINENO"; then : 13822 xorg_cv_cc_flag_unused_command_line_argument=yes 13823else 13824 xorg_cv_cc_flag_unused_command_line_argument=no 13825fi 13826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13827fi 13828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13829$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13831 CFLAGS="$xorg_testset_save_CFLAGS" 13832fi 13833 13834found="no" 13835 13836 if test $found = "no" ; then 13837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13838 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13839 fi 13840 13841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13843 fi 13844 13845 CFLAGS="$CFLAGS -Wunused" 13846 13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13848$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13849 cacheid=xorg_cv_cc_flag__Wunused 13850 if eval \${$cacheid+:} false; then : 13851 $as_echo_n "(cached) " >&6 13852else 13853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13854/* end confdefs.h. */ 13855int i; 13856int 13857main () 13858{ 13859 13860 ; 13861 return 0; 13862} 13863_ACEOF 13864if ac_fn_c_try_link "$LINENO"; then : 13865 eval $cacheid=yes 13866else 13867 eval $cacheid=no 13868fi 13869rm -f core conftest.err conftest.$ac_objext \ 13870 conftest$ac_exeext conftest.$ac_ext 13871fi 13872 13873 13874 CFLAGS="$xorg_testset_save_CFLAGS" 13875 13876 eval supported=\$$cacheid 13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13878$as_echo "$supported" >&6; } 13879 if test "$supported" = "yes" ; then 13880 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13881 found="yes" 13882 fi 13883 fi 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899xorg_testset_save_CFLAGS="$CFLAGS" 13900 13901if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13902 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13904$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13905if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13906 $as_echo_n "(cached) " >&6 13907else 13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13909/* end confdefs.h. */ 13910int i; 13911_ACEOF 13912if ac_fn_c_try_compile "$LINENO"; then : 13913 xorg_cv_cc_flag_unknown_warning_option=yes 13914else 13915 xorg_cv_cc_flag_unknown_warning_option=no 13916fi 13917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13918fi 13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13920$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13922 CFLAGS="$xorg_testset_save_CFLAGS" 13923fi 13924 13925if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13928 fi 13929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13931$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13932if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13933 $as_echo_n "(cached) " >&6 13934else 13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13936/* end confdefs.h. */ 13937int i; 13938_ACEOF 13939if ac_fn_c_try_compile "$LINENO"; then : 13940 xorg_cv_cc_flag_unused_command_line_argument=yes 13941else 13942 xorg_cv_cc_flag_unused_command_line_argument=no 13943fi 13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13945fi 13946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13947$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13949 CFLAGS="$xorg_testset_save_CFLAGS" 13950fi 13951 13952found="no" 13953 13954 if test $found = "no" ; then 13955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13957 fi 13958 13959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13961 fi 13962 13963 CFLAGS="$CFLAGS -Wuninitialized" 13964 13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13966$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13967 cacheid=xorg_cv_cc_flag__Wuninitialized 13968 if eval \${$cacheid+:} false; then : 13969 $as_echo_n "(cached) " >&6 13970else 13971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13972/* end confdefs.h. */ 13973int i; 13974int 13975main () 13976{ 13977 13978 ; 13979 return 0; 13980} 13981_ACEOF 13982if ac_fn_c_try_link "$LINENO"; then : 13983 eval $cacheid=yes 13984else 13985 eval $cacheid=no 13986fi 13987rm -f core conftest.err conftest.$ac_objext \ 13988 conftest$ac_exeext conftest.$ac_ext 13989fi 13990 13991 13992 CFLAGS="$xorg_testset_save_CFLAGS" 13993 13994 eval supported=\$$cacheid 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13996$as_echo "$supported" >&6; } 13997 if test "$supported" = "yes" ; then 13998 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13999 found="yes" 14000 fi 14001 fi 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017xorg_testset_save_CFLAGS="$CFLAGS" 14018 14019if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14020 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14022$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14023if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14024 $as_echo_n "(cached) " >&6 14025else 14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14027/* end confdefs.h. */ 14028int i; 14029_ACEOF 14030if ac_fn_c_try_compile "$LINENO"; then : 14031 xorg_cv_cc_flag_unknown_warning_option=yes 14032else 14033 xorg_cv_cc_flag_unknown_warning_option=no 14034fi 14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14036fi 14037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14038$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14040 CFLAGS="$xorg_testset_save_CFLAGS" 14041fi 14042 14043if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14046 fi 14047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14049$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14050if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14051 $as_echo_n "(cached) " >&6 14052else 14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14054/* end confdefs.h. */ 14055int i; 14056_ACEOF 14057if ac_fn_c_try_compile "$LINENO"; then : 14058 xorg_cv_cc_flag_unused_command_line_argument=yes 14059else 14060 xorg_cv_cc_flag_unused_command_line_argument=no 14061fi 14062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14063fi 14064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14065$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14067 CFLAGS="$xorg_testset_save_CFLAGS" 14068fi 14069 14070found="no" 14071 14072 if test $found = "no" ; then 14073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14074 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14075 fi 14076 14077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14079 fi 14080 14081 CFLAGS="$CFLAGS -Wshadow" 14082 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 14084$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 14085 cacheid=xorg_cv_cc_flag__Wshadow 14086 if eval \${$cacheid+:} false; then : 14087 $as_echo_n "(cached) " >&6 14088else 14089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090/* end confdefs.h. */ 14091int i; 14092int 14093main () 14094{ 14095 14096 ; 14097 return 0; 14098} 14099_ACEOF 14100if ac_fn_c_try_link "$LINENO"; then : 14101 eval $cacheid=yes 14102else 14103 eval $cacheid=no 14104fi 14105rm -f core conftest.err conftest.$ac_objext \ 14106 conftest$ac_exeext conftest.$ac_ext 14107fi 14108 14109 14110 CFLAGS="$xorg_testset_save_CFLAGS" 14111 14112 eval supported=\$$cacheid 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14114$as_echo "$supported" >&6; } 14115 if test "$supported" = "yes" ; then 14116 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 14117 found="yes" 14118 fi 14119 fi 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135xorg_testset_save_CFLAGS="$CFLAGS" 14136 14137if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14138 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14140$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14141if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14142 $as_echo_n "(cached) " >&6 14143else 14144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14145/* end confdefs.h. */ 14146int i; 14147_ACEOF 14148if ac_fn_c_try_compile "$LINENO"; then : 14149 xorg_cv_cc_flag_unknown_warning_option=yes 14150else 14151 xorg_cv_cc_flag_unknown_warning_option=no 14152fi 14153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14154fi 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14156$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14158 CFLAGS="$xorg_testset_save_CFLAGS" 14159fi 14160 14161if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14164 fi 14165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14167$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14168if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14169 $as_echo_n "(cached) " >&6 14170else 14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14172/* end confdefs.h. */ 14173int i; 14174_ACEOF 14175if ac_fn_c_try_compile "$LINENO"; then : 14176 xorg_cv_cc_flag_unused_command_line_argument=yes 14177else 14178 xorg_cv_cc_flag_unused_command_line_argument=no 14179fi 14180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14181fi 14182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14183$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14185 CFLAGS="$xorg_testset_save_CFLAGS" 14186fi 14187 14188found="no" 14189 14190 if test $found = "no" ; then 14191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14192 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14193 fi 14194 14195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14197 fi 14198 14199 CFLAGS="$CFLAGS -Wmissing-noreturn" 14200 14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14202$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14203 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14204 if eval \${$cacheid+:} false; then : 14205 $as_echo_n "(cached) " >&6 14206else 14207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14208/* end confdefs.h. */ 14209int i; 14210int 14211main () 14212{ 14213 14214 ; 14215 return 0; 14216} 14217_ACEOF 14218if ac_fn_c_try_link "$LINENO"; then : 14219 eval $cacheid=yes 14220else 14221 eval $cacheid=no 14222fi 14223rm -f core conftest.err conftest.$ac_objext \ 14224 conftest$ac_exeext conftest.$ac_ext 14225fi 14226 14227 14228 CFLAGS="$xorg_testset_save_CFLAGS" 14229 14230 eval supported=\$$cacheid 14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14232$as_echo "$supported" >&6; } 14233 if test "$supported" = "yes" ; then 14234 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14235 found="yes" 14236 fi 14237 fi 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253xorg_testset_save_CFLAGS="$CFLAGS" 14254 14255if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14256 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14258$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14259if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14260 $as_echo_n "(cached) " >&6 14261else 14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14263/* end confdefs.h. */ 14264int i; 14265_ACEOF 14266if ac_fn_c_try_compile "$LINENO"; then : 14267 xorg_cv_cc_flag_unknown_warning_option=yes 14268else 14269 xorg_cv_cc_flag_unknown_warning_option=no 14270fi 14271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14272fi 14273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14274$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14276 CFLAGS="$xorg_testset_save_CFLAGS" 14277fi 14278 14279if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14282 fi 14283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14285$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14286if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14287 $as_echo_n "(cached) " >&6 14288else 14289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14290/* end confdefs.h. */ 14291int i; 14292_ACEOF 14293if ac_fn_c_try_compile "$LINENO"; then : 14294 xorg_cv_cc_flag_unused_command_line_argument=yes 14295else 14296 xorg_cv_cc_flag_unused_command_line_argument=no 14297fi 14298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14299fi 14300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14301$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14302 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14303 CFLAGS="$xorg_testset_save_CFLAGS" 14304fi 14305 14306found="no" 14307 14308 if test $found = "no" ; then 14309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14310 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14311 fi 14312 14313 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14315 fi 14316 14317 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14318 14319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14320$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14321 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14322 if eval \${$cacheid+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324else 14325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14326/* end confdefs.h. */ 14327int i; 14328int 14329main () 14330{ 14331 14332 ; 14333 return 0; 14334} 14335_ACEOF 14336if ac_fn_c_try_link "$LINENO"; then : 14337 eval $cacheid=yes 14338else 14339 eval $cacheid=no 14340fi 14341rm -f core conftest.err conftest.$ac_objext \ 14342 conftest$ac_exeext conftest.$ac_ext 14343fi 14344 14345 14346 CFLAGS="$xorg_testset_save_CFLAGS" 14347 14348 eval supported=\$$cacheid 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14350$as_echo "$supported" >&6; } 14351 if test "$supported" = "yes" ; then 14352 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14353 found="yes" 14354 fi 14355 fi 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371xorg_testset_save_CFLAGS="$CFLAGS" 14372 14373if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14374 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14376$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14377if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14378 $as_echo_n "(cached) " >&6 14379else 14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14381/* end confdefs.h. */ 14382int i; 14383_ACEOF 14384if ac_fn_c_try_compile "$LINENO"; then : 14385 xorg_cv_cc_flag_unknown_warning_option=yes 14386else 14387 xorg_cv_cc_flag_unknown_warning_option=no 14388fi 14389rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14390fi 14391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14392$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14393 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14394 CFLAGS="$xorg_testset_save_CFLAGS" 14395fi 14396 14397if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14399 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14400 fi 14401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14403$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14404if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14405 $as_echo_n "(cached) " >&6 14406else 14407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14408/* end confdefs.h. */ 14409int i; 14410_ACEOF 14411if ac_fn_c_try_compile "$LINENO"; then : 14412 xorg_cv_cc_flag_unused_command_line_argument=yes 14413else 14414 xorg_cv_cc_flag_unused_command_line_argument=no 14415fi 14416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14417fi 14418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14419$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14420 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14421 CFLAGS="$xorg_testset_save_CFLAGS" 14422fi 14423 14424found="no" 14425 14426 if test $found = "no" ; then 14427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14428 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14429 fi 14430 14431 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14432 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14433 fi 14434 14435 CFLAGS="$CFLAGS -Wredundant-decls" 14436 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14438$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14439 cacheid=xorg_cv_cc_flag__Wredundant_decls 14440 if eval \${$cacheid+:} false; then : 14441 $as_echo_n "(cached) " >&6 14442else 14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14444/* end confdefs.h. */ 14445int i; 14446int 14447main () 14448{ 14449 14450 ; 14451 return 0; 14452} 14453_ACEOF 14454if ac_fn_c_try_link "$LINENO"; then : 14455 eval $cacheid=yes 14456else 14457 eval $cacheid=no 14458fi 14459rm -f core conftest.err conftest.$ac_objext \ 14460 conftest$ac_exeext conftest.$ac_ext 14461fi 14462 14463 14464 CFLAGS="$xorg_testset_save_CFLAGS" 14465 14466 eval supported=\$$cacheid 14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14468$as_echo "$supported" >&6; } 14469 if test "$supported" = "yes" ; then 14470 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14471 found="yes" 14472 fi 14473 fi 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489xorg_testset_save_CFLAGS="$CFLAGS" 14490 14491if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14492 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14494$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14495if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14496 $as_echo_n "(cached) " >&6 14497else 14498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14499/* end confdefs.h. */ 14500int i; 14501_ACEOF 14502if ac_fn_c_try_compile "$LINENO"; then : 14503 xorg_cv_cc_flag_unknown_warning_option=yes 14504else 14505 xorg_cv_cc_flag_unknown_warning_option=no 14506fi 14507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14508fi 14509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14510$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14511 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14512 CFLAGS="$xorg_testset_save_CFLAGS" 14513fi 14514 14515if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14516 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14517 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14518 fi 14519 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14521$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14522if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14523 $as_echo_n "(cached) " >&6 14524else 14525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14526/* end confdefs.h. */ 14527int i; 14528_ACEOF 14529if ac_fn_c_try_compile "$LINENO"; then : 14530 xorg_cv_cc_flag_unused_command_line_argument=yes 14531else 14532 xorg_cv_cc_flag_unused_command_line_argument=no 14533fi 14534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14535fi 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14537$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14538 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14539 CFLAGS="$xorg_testset_save_CFLAGS" 14540fi 14541 14542found="no" 14543 14544 if test $found = "no" ; then 14545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14547 fi 14548 14549 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14551 fi 14552 14553 CFLAGS="$CFLAGS -Wlogical-op" 14554 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14556$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14557 cacheid=xorg_cv_cc_flag__Wlogical_op 14558 if eval \${$cacheid+:} false; then : 14559 $as_echo_n "(cached) " >&6 14560else 14561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562/* end confdefs.h. */ 14563int i; 14564int 14565main () 14566{ 14567 14568 ; 14569 return 0; 14570} 14571_ACEOF 14572if ac_fn_c_try_link "$LINENO"; then : 14573 eval $cacheid=yes 14574else 14575 eval $cacheid=no 14576fi 14577rm -f core conftest.err conftest.$ac_objext \ 14578 conftest$ac_exeext conftest.$ac_ext 14579fi 14580 14581 14582 CFLAGS="$xorg_testset_save_CFLAGS" 14583 14584 eval supported=\$$cacheid 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14586$as_echo "$supported" >&6; } 14587 if test "$supported" = "yes" ; then 14588 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14589 found="yes" 14590 fi 14591 fi 14592 14593 14594 14595# These are currently disabled because they are noisy. They will be enabled 14596# in the future once the codebase is sufficiently modernized to silence 14597# them. For now, I don't want them to drown out the other warnings. 14598# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14599# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14600# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14601 14602# Turn some warnings into errors, so we don't accidently get successful builds 14603# when there are problems that should be fixed. 14604 14605if test "x$SELECTIVE_WERROR" = "xyes" ; then 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619xorg_testset_save_CFLAGS="$CFLAGS" 14620 14621if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14624$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14625if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14626 $as_echo_n "(cached) " >&6 14627else 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629/* end confdefs.h. */ 14630int i; 14631_ACEOF 14632if ac_fn_c_try_compile "$LINENO"; then : 14633 xorg_cv_cc_flag_unknown_warning_option=yes 14634else 14635 xorg_cv_cc_flag_unknown_warning_option=no 14636fi 14637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14638fi 14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14640$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14641 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14642 CFLAGS="$xorg_testset_save_CFLAGS" 14643fi 14644 14645if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14646 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14648 fi 14649 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14651$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14652if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14653 $as_echo_n "(cached) " >&6 14654else 14655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14656/* end confdefs.h. */ 14657int i; 14658_ACEOF 14659if ac_fn_c_try_compile "$LINENO"; then : 14660 xorg_cv_cc_flag_unused_command_line_argument=yes 14661else 14662 xorg_cv_cc_flag_unused_command_line_argument=no 14663fi 14664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14665fi 14666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14667$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14668 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14669 CFLAGS="$xorg_testset_save_CFLAGS" 14670fi 14671 14672found="no" 14673 14674 if test $found = "no" ; then 14675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14676 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14677 fi 14678 14679 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14680 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14681 fi 14682 14683 CFLAGS="$CFLAGS -Werror=implicit" 14684 14685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14686$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14687 cacheid=xorg_cv_cc_flag__Werror_implicit 14688 if eval \${$cacheid+:} false; then : 14689 $as_echo_n "(cached) " >&6 14690else 14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14692/* end confdefs.h. */ 14693int i; 14694int 14695main () 14696{ 14697 14698 ; 14699 return 0; 14700} 14701_ACEOF 14702if ac_fn_c_try_link "$LINENO"; then : 14703 eval $cacheid=yes 14704else 14705 eval $cacheid=no 14706fi 14707rm -f core conftest.err conftest.$ac_objext \ 14708 conftest$ac_exeext conftest.$ac_ext 14709fi 14710 14711 14712 CFLAGS="$xorg_testset_save_CFLAGS" 14713 14714 eval supported=\$$cacheid 14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14716$as_echo "$supported" >&6; } 14717 if test "$supported" = "yes" ; then 14718 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14719 found="yes" 14720 fi 14721 fi 14722 14723 if test $found = "no" ; then 14724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14725 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14726 fi 14727 14728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14730 fi 14731 14732 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14733 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14735$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14736 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14737 if eval \${$cacheid+:} false; then : 14738 $as_echo_n "(cached) " >&6 14739else 14740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14741/* end confdefs.h. */ 14742int i; 14743int 14744main () 14745{ 14746 14747 ; 14748 return 0; 14749} 14750_ACEOF 14751if ac_fn_c_try_link "$LINENO"; then : 14752 eval $cacheid=yes 14753else 14754 eval $cacheid=no 14755fi 14756rm -f core conftest.err conftest.$ac_objext \ 14757 conftest$ac_exeext conftest.$ac_ext 14758fi 14759 14760 14761 CFLAGS="$xorg_testset_save_CFLAGS" 14762 14763 eval supported=\$$cacheid 14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14765$as_echo "$supported" >&6; } 14766 if test "$supported" = "yes" ; then 14767 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14768 found="yes" 14769 fi 14770 fi 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786xorg_testset_save_CFLAGS="$CFLAGS" 14787 14788if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14789 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14791$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14792if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14793 $as_echo_n "(cached) " >&6 14794else 14795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14796/* end confdefs.h. */ 14797int i; 14798_ACEOF 14799if ac_fn_c_try_compile "$LINENO"; then : 14800 xorg_cv_cc_flag_unknown_warning_option=yes 14801else 14802 xorg_cv_cc_flag_unknown_warning_option=no 14803fi 14804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14805fi 14806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14807$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14809 CFLAGS="$xorg_testset_save_CFLAGS" 14810fi 14811 14812if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14814 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14815 fi 14816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14818$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14819if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14820 $as_echo_n "(cached) " >&6 14821else 14822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14823/* end confdefs.h. */ 14824int i; 14825_ACEOF 14826if ac_fn_c_try_compile "$LINENO"; then : 14827 xorg_cv_cc_flag_unused_command_line_argument=yes 14828else 14829 xorg_cv_cc_flag_unused_command_line_argument=no 14830fi 14831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14832fi 14833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14834$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14835 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14836 CFLAGS="$xorg_testset_save_CFLAGS" 14837fi 14838 14839found="no" 14840 14841 if test $found = "no" ; then 14842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14843 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14844 fi 14845 14846 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14848 fi 14849 14850 CFLAGS="$CFLAGS -Werror=nonnull" 14851 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14853$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14854 cacheid=xorg_cv_cc_flag__Werror_nonnull 14855 if eval \${$cacheid+:} false; then : 14856 $as_echo_n "(cached) " >&6 14857else 14858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14859/* end confdefs.h. */ 14860int i; 14861int 14862main () 14863{ 14864 14865 ; 14866 return 0; 14867} 14868_ACEOF 14869if ac_fn_c_try_link "$LINENO"; then : 14870 eval $cacheid=yes 14871else 14872 eval $cacheid=no 14873fi 14874rm -f core conftest.err conftest.$ac_objext \ 14875 conftest$ac_exeext conftest.$ac_ext 14876fi 14877 14878 14879 CFLAGS="$xorg_testset_save_CFLAGS" 14880 14881 eval supported=\$$cacheid 14882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14883$as_echo "$supported" >&6; } 14884 if test "$supported" = "yes" ; then 14885 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14886 found="yes" 14887 fi 14888 fi 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904xorg_testset_save_CFLAGS="$CFLAGS" 14905 14906if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14909$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14910if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14911 $as_echo_n "(cached) " >&6 14912else 14913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14914/* end confdefs.h. */ 14915int i; 14916_ACEOF 14917if ac_fn_c_try_compile "$LINENO"; then : 14918 xorg_cv_cc_flag_unknown_warning_option=yes 14919else 14920 xorg_cv_cc_flag_unknown_warning_option=no 14921fi 14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14923fi 14924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14925$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14927 CFLAGS="$xorg_testset_save_CFLAGS" 14928fi 14929 14930if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14932 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14933 fi 14934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14936$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14937if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14938 $as_echo_n "(cached) " >&6 14939else 14940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14941/* end confdefs.h. */ 14942int i; 14943_ACEOF 14944if ac_fn_c_try_compile "$LINENO"; then : 14945 xorg_cv_cc_flag_unused_command_line_argument=yes 14946else 14947 xorg_cv_cc_flag_unused_command_line_argument=no 14948fi 14949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14950fi 14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14952$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14954 CFLAGS="$xorg_testset_save_CFLAGS" 14955fi 14956 14957found="no" 14958 14959 if test $found = "no" ; then 14960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14961 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14962 fi 14963 14964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14966 fi 14967 14968 CFLAGS="$CFLAGS -Werror=init-self" 14969 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14971$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14972 cacheid=xorg_cv_cc_flag__Werror_init_self 14973 if eval \${$cacheid+:} false; then : 14974 $as_echo_n "(cached) " >&6 14975else 14976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14977/* end confdefs.h. */ 14978int i; 14979int 14980main () 14981{ 14982 14983 ; 14984 return 0; 14985} 14986_ACEOF 14987if ac_fn_c_try_link "$LINENO"; then : 14988 eval $cacheid=yes 14989else 14990 eval $cacheid=no 14991fi 14992rm -f core conftest.err conftest.$ac_objext \ 14993 conftest$ac_exeext conftest.$ac_ext 14994fi 14995 14996 14997 CFLAGS="$xorg_testset_save_CFLAGS" 14998 14999 eval supported=\$$cacheid 15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15001$as_echo "$supported" >&6; } 15002 if test "$supported" = "yes" ; then 15003 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 15004 found="yes" 15005 fi 15006 fi 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022xorg_testset_save_CFLAGS="$CFLAGS" 15023 15024if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15027$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15028if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15029 $as_echo_n "(cached) " >&6 15030else 15031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15032/* end confdefs.h. */ 15033int i; 15034_ACEOF 15035if ac_fn_c_try_compile "$LINENO"; then : 15036 xorg_cv_cc_flag_unknown_warning_option=yes 15037else 15038 xorg_cv_cc_flag_unknown_warning_option=no 15039fi 15040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15041fi 15042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15043$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15045 CFLAGS="$xorg_testset_save_CFLAGS" 15046fi 15047 15048if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15051 fi 15052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15054$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15055if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15056 $as_echo_n "(cached) " >&6 15057else 15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15059/* end confdefs.h. */ 15060int i; 15061_ACEOF 15062if ac_fn_c_try_compile "$LINENO"; then : 15063 xorg_cv_cc_flag_unused_command_line_argument=yes 15064else 15065 xorg_cv_cc_flag_unused_command_line_argument=no 15066fi 15067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15068fi 15069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15070$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15072 CFLAGS="$xorg_testset_save_CFLAGS" 15073fi 15074 15075found="no" 15076 15077 if test $found = "no" ; then 15078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15080 fi 15081 15082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15084 fi 15085 15086 CFLAGS="$CFLAGS -Werror=main" 15087 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 15089$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 15090 cacheid=xorg_cv_cc_flag__Werror_main 15091 if eval \${$cacheid+:} false; then : 15092 $as_echo_n "(cached) " >&6 15093else 15094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15095/* end confdefs.h. */ 15096int i; 15097int 15098main () 15099{ 15100 15101 ; 15102 return 0; 15103} 15104_ACEOF 15105if ac_fn_c_try_link "$LINENO"; then : 15106 eval $cacheid=yes 15107else 15108 eval $cacheid=no 15109fi 15110rm -f core conftest.err conftest.$ac_objext \ 15111 conftest$ac_exeext conftest.$ac_ext 15112fi 15113 15114 15115 CFLAGS="$xorg_testset_save_CFLAGS" 15116 15117 eval supported=\$$cacheid 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15119$as_echo "$supported" >&6; } 15120 if test "$supported" = "yes" ; then 15121 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 15122 found="yes" 15123 fi 15124 fi 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140xorg_testset_save_CFLAGS="$CFLAGS" 15141 15142if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15143 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15145$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15146if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15147 $as_echo_n "(cached) " >&6 15148else 15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15150/* end confdefs.h. */ 15151int i; 15152_ACEOF 15153if ac_fn_c_try_compile "$LINENO"; then : 15154 xorg_cv_cc_flag_unknown_warning_option=yes 15155else 15156 xorg_cv_cc_flag_unknown_warning_option=no 15157fi 15158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15159fi 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15161$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15163 CFLAGS="$xorg_testset_save_CFLAGS" 15164fi 15165 15166if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15168 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15169 fi 15170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15172$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15173if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15174 $as_echo_n "(cached) " >&6 15175else 15176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15177/* end confdefs.h. */ 15178int i; 15179_ACEOF 15180if ac_fn_c_try_compile "$LINENO"; then : 15181 xorg_cv_cc_flag_unused_command_line_argument=yes 15182else 15183 xorg_cv_cc_flag_unused_command_line_argument=no 15184fi 15185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15186fi 15187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15188$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15190 CFLAGS="$xorg_testset_save_CFLAGS" 15191fi 15192 15193found="no" 15194 15195 if test $found = "no" ; then 15196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15198 fi 15199 15200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15202 fi 15203 15204 CFLAGS="$CFLAGS -Werror=missing-braces" 15205 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15207$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15208 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15209 if eval \${$cacheid+:} false; then : 15210 $as_echo_n "(cached) " >&6 15211else 15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15213/* end confdefs.h. */ 15214int i; 15215int 15216main () 15217{ 15218 15219 ; 15220 return 0; 15221} 15222_ACEOF 15223if ac_fn_c_try_link "$LINENO"; then : 15224 eval $cacheid=yes 15225else 15226 eval $cacheid=no 15227fi 15228rm -f core conftest.err conftest.$ac_objext \ 15229 conftest$ac_exeext conftest.$ac_ext 15230fi 15231 15232 15233 CFLAGS="$xorg_testset_save_CFLAGS" 15234 15235 eval supported=\$$cacheid 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15237$as_echo "$supported" >&6; } 15238 if test "$supported" = "yes" ; then 15239 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15240 found="yes" 15241 fi 15242 fi 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258xorg_testset_save_CFLAGS="$CFLAGS" 15259 15260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15265 $as_echo_n "(cached) " >&6 15266else 15267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15268/* end confdefs.h. */ 15269int i; 15270_ACEOF 15271if ac_fn_c_try_compile "$LINENO"; then : 15272 xorg_cv_cc_flag_unknown_warning_option=yes 15273else 15274 xorg_cv_cc_flag_unknown_warning_option=no 15275fi 15276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15277fi 15278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15281 CFLAGS="$xorg_testset_save_CFLAGS" 15282fi 15283 15284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15287 fi 15288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15292 $as_echo_n "(cached) " >&6 15293else 15294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15295/* end confdefs.h. */ 15296int i; 15297_ACEOF 15298if ac_fn_c_try_compile "$LINENO"; then : 15299 xorg_cv_cc_flag_unused_command_line_argument=yes 15300else 15301 xorg_cv_cc_flag_unused_command_line_argument=no 15302fi 15303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15304fi 15305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15308 CFLAGS="$xorg_testset_save_CFLAGS" 15309fi 15310 15311found="no" 15312 15313 if test $found = "no" ; then 15314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15316 fi 15317 15318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15320 fi 15321 15322 CFLAGS="$CFLAGS -Werror=sequence-point" 15323 15324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15325$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15326 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15327 if eval \${$cacheid+:} false; then : 15328 $as_echo_n "(cached) " >&6 15329else 15330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15331/* end confdefs.h. */ 15332int i; 15333int 15334main () 15335{ 15336 15337 ; 15338 return 0; 15339} 15340_ACEOF 15341if ac_fn_c_try_link "$LINENO"; then : 15342 eval $cacheid=yes 15343else 15344 eval $cacheid=no 15345fi 15346rm -f core conftest.err conftest.$ac_objext \ 15347 conftest$ac_exeext conftest.$ac_ext 15348fi 15349 15350 15351 CFLAGS="$xorg_testset_save_CFLAGS" 15352 15353 eval supported=\$$cacheid 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15355$as_echo "$supported" >&6; } 15356 if test "$supported" = "yes" ; then 15357 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15358 found="yes" 15359 fi 15360 fi 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376xorg_testset_save_CFLAGS="$CFLAGS" 15377 15378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15383 $as_echo_n "(cached) " >&6 15384else 15385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386/* end confdefs.h. */ 15387int i; 15388_ACEOF 15389if ac_fn_c_try_compile "$LINENO"; then : 15390 xorg_cv_cc_flag_unknown_warning_option=yes 15391else 15392 xorg_cv_cc_flag_unknown_warning_option=no 15393fi 15394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15395fi 15396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15399 CFLAGS="$xorg_testset_save_CFLAGS" 15400fi 15401 15402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15405 fi 15406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15410 $as_echo_n "(cached) " >&6 15411else 15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15413/* end confdefs.h. */ 15414int i; 15415_ACEOF 15416if ac_fn_c_try_compile "$LINENO"; then : 15417 xorg_cv_cc_flag_unused_command_line_argument=yes 15418else 15419 xorg_cv_cc_flag_unused_command_line_argument=no 15420fi 15421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15422fi 15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15426 CFLAGS="$xorg_testset_save_CFLAGS" 15427fi 15428 15429found="no" 15430 15431 if test $found = "no" ; then 15432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15434 fi 15435 15436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15438 fi 15439 15440 CFLAGS="$CFLAGS -Werror=return-type" 15441 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15443$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15444 cacheid=xorg_cv_cc_flag__Werror_return_type 15445 if eval \${$cacheid+:} false; then : 15446 $as_echo_n "(cached) " >&6 15447else 15448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15449/* end confdefs.h. */ 15450int i; 15451int 15452main () 15453{ 15454 15455 ; 15456 return 0; 15457} 15458_ACEOF 15459if ac_fn_c_try_link "$LINENO"; then : 15460 eval $cacheid=yes 15461else 15462 eval $cacheid=no 15463fi 15464rm -f core conftest.err conftest.$ac_objext \ 15465 conftest$ac_exeext conftest.$ac_ext 15466fi 15467 15468 15469 CFLAGS="$xorg_testset_save_CFLAGS" 15470 15471 eval supported=\$$cacheid 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15473$as_echo "$supported" >&6; } 15474 if test "$supported" = "yes" ; then 15475 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15476 found="yes" 15477 fi 15478 fi 15479 15480 if test $found = "no" ; then 15481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15483 fi 15484 15485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15487 fi 15488 15489 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15490 15491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15492$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15493 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15494 if eval \${$cacheid+:} false; then : 15495 $as_echo_n "(cached) " >&6 15496else 15497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15498/* end confdefs.h. */ 15499int i; 15500int 15501main () 15502{ 15503 15504 ; 15505 return 0; 15506} 15507_ACEOF 15508if ac_fn_c_try_link "$LINENO"; then : 15509 eval $cacheid=yes 15510else 15511 eval $cacheid=no 15512fi 15513rm -f core conftest.err conftest.$ac_objext \ 15514 conftest$ac_exeext conftest.$ac_ext 15515fi 15516 15517 15518 CFLAGS="$xorg_testset_save_CFLAGS" 15519 15520 eval supported=\$$cacheid 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15522$as_echo "$supported" >&6; } 15523 if test "$supported" = "yes" ; then 15524 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15525 found="yes" 15526 fi 15527 fi 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543xorg_testset_save_CFLAGS="$CFLAGS" 15544 15545if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15546 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15548$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15549if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15550 $as_echo_n "(cached) " >&6 15551else 15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15553/* end confdefs.h. */ 15554int i; 15555_ACEOF 15556if ac_fn_c_try_compile "$LINENO"; then : 15557 xorg_cv_cc_flag_unknown_warning_option=yes 15558else 15559 xorg_cv_cc_flag_unknown_warning_option=no 15560fi 15561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15562fi 15563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15564$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15566 CFLAGS="$xorg_testset_save_CFLAGS" 15567fi 15568 15569if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15571 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15572 fi 15573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15575$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15576if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15577 $as_echo_n "(cached) " >&6 15578else 15579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15580/* end confdefs.h. */ 15581int i; 15582_ACEOF 15583if ac_fn_c_try_compile "$LINENO"; then : 15584 xorg_cv_cc_flag_unused_command_line_argument=yes 15585else 15586 xorg_cv_cc_flag_unused_command_line_argument=no 15587fi 15588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15589fi 15590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15591$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15593 CFLAGS="$xorg_testset_save_CFLAGS" 15594fi 15595 15596found="no" 15597 15598 if test $found = "no" ; then 15599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15600 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15601 fi 15602 15603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15605 fi 15606 15607 CFLAGS="$CFLAGS -Werror=trigraphs" 15608 15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15610$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15611 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15612 if eval \${$cacheid+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614else 15615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15616/* end confdefs.h. */ 15617int i; 15618int 15619main () 15620{ 15621 15622 ; 15623 return 0; 15624} 15625_ACEOF 15626if ac_fn_c_try_link "$LINENO"; then : 15627 eval $cacheid=yes 15628else 15629 eval $cacheid=no 15630fi 15631rm -f core conftest.err conftest.$ac_objext \ 15632 conftest$ac_exeext conftest.$ac_ext 15633fi 15634 15635 15636 CFLAGS="$xorg_testset_save_CFLAGS" 15637 15638 eval supported=\$$cacheid 15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15640$as_echo "$supported" >&6; } 15641 if test "$supported" = "yes" ; then 15642 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15643 found="yes" 15644 fi 15645 fi 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661xorg_testset_save_CFLAGS="$CFLAGS" 15662 15663if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15664 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15666$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15667if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15668 $as_echo_n "(cached) " >&6 15669else 15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15671/* end confdefs.h. */ 15672int i; 15673_ACEOF 15674if ac_fn_c_try_compile "$LINENO"; then : 15675 xorg_cv_cc_flag_unknown_warning_option=yes 15676else 15677 xorg_cv_cc_flag_unknown_warning_option=no 15678fi 15679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15680fi 15681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15682$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15684 CFLAGS="$xorg_testset_save_CFLAGS" 15685fi 15686 15687if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15689 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15690 fi 15691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15693$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15694if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15695 $as_echo_n "(cached) " >&6 15696else 15697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15698/* end confdefs.h. */ 15699int i; 15700_ACEOF 15701if ac_fn_c_try_compile "$LINENO"; then : 15702 xorg_cv_cc_flag_unused_command_line_argument=yes 15703else 15704 xorg_cv_cc_flag_unused_command_line_argument=no 15705fi 15706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15707fi 15708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15709$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15711 CFLAGS="$xorg_testset_save_CFLAGS" 15712fi 15713 15714found="no" 15715 15716 if test $found = "no" ; then 15717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15718 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15719 fi 15720 15721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15723 fi 15724 15725 CFLAGS="$CFLAGS -Werror=array-bounds" 15726 15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15728$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15729 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15730 if eval \${$cacheid+:} false; then : 15731 $as_echo_n "(cached) " >&6 15732else 15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15734/* end confdefs.h. */ 15735int i; 15736int 15737main () 15738{ 15739 15740 ; 15741 return 0; 15742} 15743_ACEOF 15744if ac_fn_c_try_link "$LINENO"; then : 15745 eval $cacheid=yes 15746else 15747 eval $cacheid=no 15748fi 15749rm -f core conftest.err conftest.$ac_objext \ 15750 conftest$ac_exeext conftest.$ac_ext 15751fi 15752 15753 15754 CFLAGS="$xorg_testset_save_CFLAGS" 15755 15756 eval supported=\$$cacheid 15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15758$as_echo "$supported" >&6; } 15759 if test "$supported" = "yes" ; then 15760 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15761 found="yes" 15762 fi 15763 fi 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779xorg_testset_save_CFLAGS="$CFLAGS" 15780 15781if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15782 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15784$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15785if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15786 $as_echo_n "(cached) " >&6 15787else 15788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15789/* end confdefs.h. */ 15790int i; 15791_ACEOF 15792if ac_fn_c_try_compile "$LINENO"; then : 15793 xorg_cv_cc_flag_unknown_warning_option=yes 15794else 15795 xorg_cv_cc_flag_unknown_warning_option=no 15796fi 15797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15798fi 15799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15800$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15802 CFLAGS="$xorg_testset_save_CFLAGS" 15803fi 15804 15805if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15807 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15808 fi 15809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15811$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15812if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15813 $as_echo_n "(cached) " >&6 15814else 15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15816/* end confdefs.h. */ 15817int i; 15818_ACEOF 15819if ac_fn_c_try_compile "$LINENO"; then : 15820 xorg_cv_cc_flag_unused_command_line_argument=yes 15821else 15822 xorg_cv_cc_flag_unused_command_line_argument=no 15823fi 15824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15825fi 15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15827$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15829 CFLAGS="$xorg_testset_save_CFLAGS" 15830fi 15831 15832found="no" 15833 15834 if test $found = "no" ; then 15835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15836 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15837 fi 15838 15839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15841 fi 15842 15843 CFLAGS="$CFLAGS -Werror=write-strings" 15844 15845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15846$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15847 cacheid=xorg_cv_cc_flag__Werror_write_strings 15848 if eval \${$cacheid+:} false; then : 15849 $as_echo_n "(cached) " >&6 15850else 15851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15852/* end confdefs.h. */ 15853int i; 15854int 15855main () 15856{ 15857 15858 ; 15859 return 0; 15860} 15861_ACEOF 15862if ac_fn_c_try_link "$LINENO"; then : 15863 eval $cacheid=yes 15864else 15865 eval $cacheid=no 15866fi 15867rm -f core conftest.err conftest.$ac_objext \ 15868 conftest$ac_exeext conftest.$ac_ext 15869fi 15870 15871 15872 CFLAGS="$xorg_testset_save_CFLAGS" 15873 15874 eval supported=\$$cacheid 15875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15876$as_echo "$supported" >&6; } 15877 if test "$supported" = "yes" ; then 15878 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15879 found="yes" 15880 fi 15881 fi 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897xorg_testset_save_CFLAGS="$CFLAGS" 15898 15899if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15900 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15902$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15903if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15904 $as_echo_n "(cached) " >&6 15905else 15906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15907/* end confdefs.h. */ 15908int i; 15909_ACEOF 15910if ac_fn_c_try_compile "$LINENO"; then : 15911 xorg_cv_cc_flag_unknown_warning_option=yes 15912else 15913 xorg_cv_cc_flag_unknown_warning_option=no 15914fi 15915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15916fi 15917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15918$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15920 CFLAGS="$xorg_testset_save_CFLAGS" 15921fi 15922 15923if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15926 fi 15927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15929$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15930if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15931 $as_echo_n "(cached) " >&6 15932else 15933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15934/* end confdefs.h. */ 15935int i; 15936_ACEOF 15937if ac_fn_c_try_compile "$LINENO"; then : 15938 xorg_cv_cc_flag_unused_command_line_argument=yes 15939else 15940 xorg_cv_cc_flag_unused_command_line_argument=no 15941fi 15942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15943fi 15944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15945$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15947 CFLAGS="$xorg_testset_save_CFLAGS" 15948fi 15949 15950found="no" 15951 15952 if test $found = "no" ; then 15953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15954 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15955 fi 15956 15957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15959 fi 15960 15961 CFLAGS="$CFLAGS -Werror=address" 15962 15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15964$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15965 cacheid=xorg_cv_cc_flag__Werror_address 15966 if eval \${$cacheid+:} false; then : 15967 $as_echo_n "(cached) " >&6 15968else 15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15970/* end confdefs.h. */ 15971int i; 15972int 15973main () 15974{ 15975 15976 ; 15977 return 0; 15978} 15979_ACEOF 15980if ac_fn_c_try_link "$LINENO"; then : 15981 eval $cacheid=yes 15982else 15983 eval $cacheid=no 15984fi 15985rm -f core conftest.err conftest.$ac_objext \ 15986 conftest$ac_exeext conftest.$ac_ext 15987fi 15988 15989 15990 CFLAGS="$xorg_testset_save_CFLAGS" 15991 15992 eval supported=\$$cacheid 15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15994$as_echo "$supported" >&6; } 15995 if test "$supported" = "yes" ; then 15996 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15997 found="yes" 15998 fi 15999 fi 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015xorg_testset_save_CFLAGS="$CFLAGS" 16016 16017if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16018 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16020$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16021if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16022 $as_echo_n "(cached) " >&6 16023else 16024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16025/* end confdefs.h. */ 16026int i; 16027_ACEOF 16028if ac_fn_c_try_compile "$LINENO"; then : 16029 xorg_cv_cc_flag_unknown_warning_option=yes 16030else 16031 xorg_cv_cc_flag_unknown_warning_option=no 16032fi 16033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16034fi 16035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16036$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16038 CFLAGS="$xorg_testset_save_CFLAGS" 16039fi 16040 16041if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16044 fi 16045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16047$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16048if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16049 $as_echo_n "(cached) " >&6 16050else 16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16052/* end confdefs.h. */ 16053int i; 16054_ACEOF 16055if ac_fn_c_try_compile "$LINENO"; then : 16056 xorg_cv_cc_flag_unused_command_line_argument=yes 16057else 16058 xorg_cv_cc_flag_unused_command_line_argument=no 16059fi 16060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16061fi 16062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16063$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16065 CFLAGS="$xorg_testset_save_CFLAGS" 16066fi 16067 16068found="no" 16069 16070 if test $found = "no" ; then 16071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16072 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16073 fi 16074 16075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16077 fi 16078 16079 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 16080 16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 16082$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 16083 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 16084 if eval \${$cacheid+:} false; then : 16085 $as_echo_n "(cached) " >&6 16086else 16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16088/* end confdefs.h. */ 16089int i; 16090int 16091main () 16092{ 16093 16094 ; 16095 return 0; 16096} 16097_ACEOF 16098if ac_fn_c_try_link "$LINENO"; then : 16099 eval $cacheid=yes 16100else 16101 eval $cacheid=no 16102fi 16103rm -f core conftest.err conftest.$ac_objext \ 16104 conftest$ac_exeext conftest.$ac_ext 16105fi 16106 16107 16108 CFLAGS="$xorg_testset_save_CFLAGS" 16109 16110 eval supported=\$$cacheid 16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16112$as_echo "$supported" >&6; } 16113 if test "$supported" = "yes" ; then 16114 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 16115 found="yes" 16116 fi 16117 fi 16118 16119 if test $found = "no" ; then 16120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16121 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16122 fi 16123 16124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16126 fi 16127 16128 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16129 16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 16131$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 16132 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 16133 if eval \${$cacheid+:} false; then : 16134 $as_echo_n "(cached) " >&6 16135else 16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138int i; 16139int 16140main () 16141{ 16142 16143 ; 16144 return 0; 16145} 16146_ACEOF 16147if ac_fn_c_try_link "$LINENO"; then : 16148 eval $cacheid=yes 16149else 16150 eval $cacheid=no 16151fi 16152rm -f core conftest.err conftest.$ac_objext \ 16153 conftest$ac_exeext conftest.$ac_ext 16154fi 16155 16156 16157 CFLAGS="$xorg_testset_save_CFLAGS" 16158 16159 eval supported=\$$cacheid 16160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16161$as_echo "$supported" >&6; } 16162 if test "$supported" = "yes" ; then 16163 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16164 found="yes" 16165 fi 16166 fi 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182xorg_testset_save_CFLAGS="$CFLAGS" 16183 16184if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16187$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16188if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16189 $as_echo_n "(cached) " >&6 16190else 16191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16192/* end confdefs.h. */ 16193int i; 16194_ACEOF 16195if ac_fn_c_try_compile "$LINENO"; then : 16196 xorg_cv_cc_flag_unknown_warning_option=yes 16197else 16198 xorg_cv_cc_flag_unknown_warning_option=no 16199fi 16200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16201fi 16202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16203$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16204 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16205 CFLAGS="$xorg_testset_save_CFLAGS" 16206fi 16207 16208if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16209 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16210 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16211 fi 16212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16214$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16215if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16216 $as_echo_n "(cached) " >&6 16217else 16218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16219/* end confdefs.h. */ 16220int i; 16221_ACEOF 16222if ac_fn_c_try_compile "$LINENO"; then : 16223 xorg_cv_cc_flag_unused_command_line_argument=yes 16224else 16225 xorg_cv_cc_flag_unused_command_line_argument=no 16226fi 16227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16228fi 16229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16230$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16231 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16232 CFLAGS="$xorg_testset_save_CFLAGS" 16233fi 16234 16235found="no" 16236 16237 if test $found = "no" ; then 16238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16239 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16240 fi 16241 16242 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16244 fi 16245 16246 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16247 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16249$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16250 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16251 if eval \${$cacheid+:} false; then : 16252 $as_echo_n "(cached) " >&6 16253else 16254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16255/* end confdefs.h. */ 16256int i; 16257int 16258main () 16259{ 16260 16261 ; 16262 return 0; 16263} 16264_ACEOF 16265if ac_fn_c_try_link "$LINENO"; then : 16266 eval $cacheid=yes 16267else 16268 eval $cacheid=no 16269fi 16270rm -f core conftest.err conftest.$ac_objext \ 16271 conftest$ac_exeext conftest.$ac_ext 16272fi 16273 16274 16275 CFLAGS="$xorg_testset_save_CFLAGS" 16276 16277 eval supported=\$$cacheid 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16279$as_echo "$supported" >&6; } 16280 if test "$supported" = "yes" ; then 16281 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16282 found="yes" 16283 fi 16284 fi 16285 16286 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16287else 16288{ $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 16289$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;} 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303xorg_testset_save_CFLAGS="$CFLAGS" 16304 16305if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16306 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16308$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16309if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16310 $as_echo_n "(cached) " >&6 16311else 16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16313/* end confdefs.h. */ 16314int i; 16315_ACEOF 16316if ac_fn_c_try_compile "$LINENO"; then : 16317 xorg_cv_cc_flag_unknown_warning_option=yes 16318else 16319 xorg_cv_cc_flag_unknown_warning_option=no 16320fi 16321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16322fi 16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16324$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16326 CFLAGS="$xorg_testset_save_CFLAGS" 16327fi 16328 16329if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16331 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16332 fi 16333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16335$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16336if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16337 $as_echo_n "(cached) " >&6 16338else 16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16340/* end confdefs.h. */ 16341int i; 16342_ACEOF 16343if ac_fn_c_try_compile "$LINENO"; then : 16344 xorg_cv_cc_flag_unused_command_line_argument=yes 16345else 16346 xorg_cv_cc_flag_unused_command_line_argument=no 16347fi 16348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16349fi 16350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16351$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16353 CFLAGS="$xorg_testset_save_CFLAGS" 16354fi 16355 16356found="no" 16357 16358 if test $found = "no" ; then 16359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16360 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16361 fi 16362 16363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16365 fi 16366 16367 CFLAGS="$CFLAGS -Wimplicit" 16368 16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16370$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16371 cacheid=xorg_cv_cc_flag__Wimplicit 16372 if eval \${$cacheid+:} false; then : 16373 $as_echo_n "(cached) " >&6 16374else 16375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16376/* end confdefs.h. */ 16377int i; 16378int 16379main () 16380{ 16381 16382 ; 16383 return 0; 16384} 16385_ACEOF 16386if ac_fn_c_try_link "$LINENO"; then : 16387 eval $cacheid=yes 16388else 16389 eval $cacheid=no 16390fi 16391rm -f core conftest.err conftest.$ac_objext \ 16392 conftest$ac_exeext conftest.$ac_ext 16393fi 16394 16395 16396 CFLAGS="$xorg_testset_save_CFLAGS" 16397 16398 eval supported=\$$cacheid 16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16400$as_echo "$supported" >&6; } 16401 if test "$supported" = "yes" ; then 16402 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16403 found="yes" 16404 fi 16405 fi 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421xorg_testset_save_CFLAGS="$CFLAGS" 16422 16423if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16424 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16426$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16427if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16428 $as_echo_n "(cached) " >&6 16429else 16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16431/* end confdefs.h. */ 16432int i; 16433_ACEOF 16434if ac_fn_c_try_compile "$LINENO"; then : 16435 xorg_cv_cc_flag_unknown_warning_option=yes 16436else 16437 xorg_cv_cc_flag_unknown_warning_option=no 16438fi 16439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16440fi 16441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16442$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16444 CFLAGS="$xorg_testset_save_CFLAGS" 16445fi 16446 16447if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16449 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16450 fi 16451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16453$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16454if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16455 $as_echo_n "(cached) " >&6 16456else 16457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16458/* end confdefs.h. */ 16459int i; 16460_ACEOF 16461if ac_fn_c_try_compile "$LINENO"; then : 16462 xorg_cv_cc_flag_unused_command_line_argument=yes 16463else 16464 xorg_cv_cc_flag_unused_command_line_argument=no 16465fi 16466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16467fi 16468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16469$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16471 CFLAGS="$xorg_testset_save_CFLAGS" 16472fi 16473 16474found="no" 16475 16476 if test $found = "no" ; then 16477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16478 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16479 fi 16480 16481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16483 fi 16484 16485 CFLAGS="$CFLAGS -Wnonnull" 16486 16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16488$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16489 cacheid=xorg_cv_cc_flag__Wnonnull 16490 if eval \${$cacheid+:} false; then : 16491 $as_echo_n "(cached) " >&6 16492else 16493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16494/* end confdefs.h. */ 16495int i; 16496int 16497main () 16498{ 16499 16500 ; 16501 return 0; 16502} 16503_ACEOF 16504if ac_fn_c_try_link "$LINENO"; then : 16505 eval $cacheid=yes 16506else 16507 eval $cacheid=no 16508fi 16509rm -f core conftest.err conftest.$ac_objext \ 16510 conftest$ac_exeext conftest.$ac_ext 16511fi 16512 16513 16514 CFLAGS="$xorg_testset_save_CFLAGS" 16515 16516 eval supported=\$$cacheid 16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16518$as_echo "$supported" >&6; } 16519 if test "$supported" = "yes" ; then 16520 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16521 found="yes" 16522 fi 16523 fi 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539xorg_testset_save_CFLAGS="$CFLAGS" 16540 16541if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16542 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16544$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16545if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16546 $as_echo_n "(cached) " >&6 16547else 16548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16549/* end confdefs.h. */ 16550int i; 16551_ACEOF 16552if ac_fn_c_try_compile "$LINENO"; then : 16553 xorg_cv_cc_flag_unknown_warning_option=yes 16554else 16555 xorg_cv_cc_flag_unknown_warning_option=no 16556fi 16557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16558fi 16559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16560$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16562 CFLAGS="$xorg_testset_save_CFLAGS" 16563fi 16564 16565if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16567 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16568 fi 16569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16571$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16572if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16573 $as_echo_n "(cached) " >&6 16574else 16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16576/* end confdefs.h. */ 16577int i; 16578_ACEOF 16579if ac_fn_c_try_compile "$LINENO"; then : 16580 xorg_cv_cc_flag_unused_command_line_argument=yes 16581else 16582 xorg_cv_cc_flag_unused_command_line_argument=no 16583fi 16584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16585fi 16586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16587$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16589 CFLAGS="$xorg_testset_save_CFLAGS" 16590fi 16591 16592found="no" 16593 16594 if test $found = "no" ; then 16595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16596 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16597 fi 16598 16599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16601 fi 16602 16603 CFLAGS="$CFLAGS -Winit-self" 16604 16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16606$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16607 cacheid=xorg_cv_cc_flag__Winit_self 16608 if eval \${$cacheid+:} false; then : 16609 $as_echo_n "(cached) " >&6 16610else 16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16612/* end confdefs.h. */ 16613int i; 16614int 16615main () 16616{ 16617 16618 ; 16619 return 0; 16620} 16621_ACEOF 16622if ac_fn_c_try_link "$LINENO"; then : 16623 eval $cacheid=yes 16624else 16625 eval $cacheid=no 16626fi 16627rm -f core conftest.err conftest.$ac_objext \ 16628 conftest$ac_exeext conftest.$ac_ext 16629fi 16630 16631 16632 CFLAGS="$xorg_testset_save_CFLAGS" 16633 16634 eval supported=\$$cacheid 16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16636$as_echo "$supported" >&6; } 16637 if test "$supported" = "yes" ; then 16638 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16639 found="yes" 16640 fi 16641 fi 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657xorg_testset_save_CFLAGS="$CFLAGS" 16658 16659if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16660 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16662$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16663if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16664 $as_echo_n "(cached) " >&6 16665else 16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16667/* end confdefs.h. */ 16668int i; 16669_ACEOF 16670if ac_fn_c_try_compile "$LINENO"; then : 16671 xorg_cv_cc_flag_unknown_warning_option=yes 16672else 16673 xorg_cv_cc_flag_unknown_warning_option=no 16674fi 16675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16676fi 16677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16678$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16680 CFLAGS="$xorg_testset_save_CFLAGS" 16681fi 16682 16683if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16685 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16686 fi 16687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16689$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16690if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16691 $as_echo_n "(cached) " >&6 16692else 16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16694/* end confdefs.h. */ 16695int i; 16696_ACEOF 16697if ac_fn_c_try_compile "$LINENO"; then : 16698 xorg_cv_cc_flag_unused_command_line_argument=yes 16699else 16700 xorg_cv_cc_flag_unused_command_line_argument=no 16701fi 16702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16703fi 16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16705$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16707 CFLAGS="$xorg_testset_save_CFLAGS" 16708fi 16709 16710found="no" 16711 16712 if test $found = "no" ; then 16713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16714 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16715 fi 16716 16717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16719 fi 16720 16721 CFLAGS="$CFLAGS -Wmain" 16722 16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16724$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16725 cacheid=xorg_cv_cc_flag__Wmain 16726 if eval \${$cacheid+:} false; then : 16727 $as_echo_n "(cached) " >&6 16728else 16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16730/* end confdefs.h. */ 16731int i; 16732int 16733main () 16734{ 16735 16736 ; 16737 return 0; 16738} 16739_ACEOF 16740if ac_fn_c_try_link "$LINENO"; then : 16741 eval $cacheid=yes 16742else 16743 eval $cacheid=no 16744fi 16745rm -f core conftest.err conftest.$ac_objext \ 16746 conftest$ac_exeext conftest.$ac_ext 16747fi 16748 16749 16750 CFLAGS="$xorg_testset_save_CFLAGS" 16751 16752 eval supported=\$$cacheid 16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16754$as_echo "$supported" >&6; } 16755 if test "$supported" = "yes" ; then 16756 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16757 found="yes" 16758 fi 16759 fi 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775xorg_testset_save_CFLAGS="$CFLAGS" 16776 16777if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16778 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16780$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16781if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16782 $as_echo_n "(cached) " >&6 16783else 16784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16785/* end confdefs.h. */ 16786int i; 16787_ACEOF 16788if ac_fn_c_try_compile "$LINENO"; then : 16789 xorg_cv_cc_flag_unknown_warning_option=yes 16790else 16791 xorg_cv_cc_flag_unknown_warning_option=no 16792fi 16793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16794fi 16795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16796$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16798 CFLAGS="$xorg_testset_save_CFLAGS" 16799fi 16800 16801if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16803 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16804 fi 16805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16807$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16808if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16809 $as_echo_n "(cached) " >&6 16810else 16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16812/* end confdefs.h. */ 16813int i; 16814_ACEOF 16815if ac_fn_c_try_compile "$LINENO"; then : 16816 xorg_cv_cc_flag_unused_command_line_argument=yes 16817else 16818 xorg_cv_cc_flag_unused_command_line_argument=no 16819fi 16820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16821fi 16822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16823$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16825 CFLAGS="$xorg_testset_save_CFLAGS" 16826fi 16827 16828found="no" 16829 16830 if test $found = "no" ; then 16831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16832 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16833 fi 16834 16835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16837 fi 16838 16839 CFLAGS="$CFLAGS -Wmissing-braces" 16840 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16842$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16843 cacheid=xorg_cv_cc_flag__Wmissing_braces 16844 if eval \${$cacheid+:} false; then : 16845 $as_echo_n "(cached) " >&6 16846else 16847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16848/* end confdefs.h. */ 16849int i; 16850int 16851main () 16852{ 16853 16854 ; 16855 return 0; 16856} 16857_ACEOF 16858if ac_fn_c_try_link "$LINENO"; then : 16859 eval $cacheid=yes 16860else 16861 eval $cacheid=no 16862fi 16863rm -f core conftest.err conftest.$ac_objext \ 16864 conftest$ac_exeext conftest.$ac_ext 16865fi 16866 16867 16868 CFLAGS="$xorg_testset_save_CFLAGS" 16869 16870 eval supported=\$$cacheid 16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16872$as_echo "$supported" >&6; } 16873 if test "$supported" = "yes" ; then 16874 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16875 found="yes" 16876 fi 16877 fi 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893xorg_testset_save_CFLAGS="$CFLAGS" 16894 16895if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16898$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16899if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16900 $as_echo_n "(cached) " >&6 16901else 16902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16903/* end confdefs.h. */ 16904int i; 16905_ACEOF 16906if ac_fn_c_try_compile "$LINENO"; then : 16907 xorg_cv_cc_flag_unknown_warning_option=yes 16908else 16909 xorg_cv_cc_flag_unknown_warning_option=no 16910fi 16911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16912fi 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16914$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16915 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16916 CFLAGS="$xorg_testset_save_CFLAGS" 16917fi 16918 16919if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16921 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16922 fi 16923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16925$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16926if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16927 $as_echo_n "(cached) " >&6 16928else 16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16930/* end confdefs.h. */ 16931int i; 16932_ACEOF 16933if ac_fn_c_try_compile "$LINENO"; then : 16934 xorg_cv_cc_flag_unused_command_line_argument=yes 16935else 16936 xorg_cv_cc_flag_unused_command_line_argument=no 16937fi 16938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16939fi 16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16941$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16943 CFLAGS="$xorg_testset_save_CFLAGS" 16944fi 16945 16946found="no" 16947 16948 if test $found = "no" ; then 16949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16951 fi 16952 16953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16955 fi 16956 16957 CFLAGS="$CFLAGS -Wsequence-point" 16958 16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16960$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16961 cacheid=xorg_cv_cc_flag__Wsequence_point 16962 if eval \${$cacheid+:} false; then : 16963 $as_echo_n "(cached) " >&6 16964else 16965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16966/* end confdefs.h. */ 16967int i; 16968int 16969main () 16970{ 16971 16972 ; 16973 return 0; 16974} 16975_ACEOF 16976if ac_fn_c_try_link "$LINENO"; then : 16977 eval $cacheid=yes 16978else 16979 eval $cacheid=no 16980fi 16981rm -f core conftest.err conftest.$ac_objext \ 16982 conftest$ac_exeext conftest.$ac_ext 16983fi 16984 16985 16986 CFLAGS="$xorg_testset_save_CFLAGS" 16987 16988 eval supported=\$$cacheid 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16990$as_echo "$supported" >&6; } 16991 if test "$supported" = "yes" ; then 16992 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16993 found="yes" 16994 fi 16995 fi 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011xorg_testset_save_CFLAGS="$CFLAGS" 17012 17013if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17016$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17017if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17018 $as_echo_n "(cached) " >&6 17019else 17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17021/* end confdefs.h. */ 17022int i; 17023_ACEOF 17024if ac_fn_c_try_compile "$LINENO"; then : 17025 xorg_cv_cc_flag_unknown_warning_option=yes 17026else 17027 xorg_cv_cc_flag_unknown_warning_option=no 17028fi 17029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17030fi 17031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17032$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17033 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17034 CFLAGS="$xorg_testset_save_CFLAGS" 17035fi 17036 17037if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17038 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17039 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17040 fi 17041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17043$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17044if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17045 $as_echo_n "(cached) " >&6 17046else 17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049int i; 17050_ACEOF 17051if ac_fn_c_try_compile "$LINENO"; then : 17052 xorg_cv_cc_flag_unused_command_line_argument=yes 17053else 17054 xorg_cv_cc_flag_unused_command_line_argument=no 17055fi 17056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17057fi 17058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17059$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17060 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17061 CFLAGS="$xorg_testset_save_CFLAGS" 17062fi 17063 17064found="no" 17065 17066 if test $found = "no" ; then 17067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17068 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17069 fi 17070 17071 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17073 fi 17074 17075 CFLAGS="$CFLAGS -Wreturn-type" 17076 17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 17078$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 17079 cacheid=xorg_cv_cc_flag__Wreturn_type 17080 if eval \${$cacheid+:} false; then : 17081 $as_echo_n "(cached) " >&6 17082else 17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17084/* end confdefs.h. */ 17085int i; 17086int 17087main () 17088{ 17089 17090 ; 17091 return 0; 17092} 17093_ACEOF 17094if ac_fn_c_try_link "$LINENO"; then : 17095 eval $cacheid=yes 17096else 17097 eval $cacheid=no 17098fi 17099rm -f core conftest.err conftest.$ac_objext \ 17100 conftest$ac_exeext conftest.$ac_ext 17101fi 17102 17103 17104 CFLAGS="$xorg_testset_save_CFLAGS" 17105 17106 eval supported=\$$cacheid 17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17108$as_echo "$supported" >&6; } 17109 if test "$supported" = "yes" ; then 17110 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 17111 found="yes" 17112 fi 17113 fi 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129xorg_testset_save_CFLAGS="$CFLAGS" 17130 17131if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17134$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17135if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17136 $as_echo_n "(cached) " >&6 17137else 17138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17139/* end confdefs.h. */ 17140int i; 17141_ACEOF 17142if ac_fn_c_try_compile "$LINENO"; then : 17143 xorg_cv_cc_flag_unknown_warning_option=yes 17144else 17145 xorg_cv_cc_flag_unknown_warning_option=no 17146fi 17147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17148fi 17149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17150$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17152 CFLAGS="$xorg_testset_save_CFLAGS" 17153fi 17154 17155if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17157 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17158 fi 17159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17161$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17162if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17163 $as_echo_n "(cached) " >&6 17164else 17165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17166/* end confdefs.h. */ 17167int i; 17168_ACEOF 17169if ac_fn_c_try_compile "$LINENO"; then : 17170 xorg_cv_cc_flag_unused_command_line_argument=yes 17171else 17172 xorg_cv_cc_flag_unused_command_line_argument=no 17173fi 17174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17175fi 17176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17177$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17179 CFLAGS="$xorg_testset_save_CFLAGS" 17180fi 17181 17182found="no" 17183 17184 if test $found = "no" ; then 17185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17187 fi 17188 17189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17191 fi 17192 17193 CFLAGS="$CFLAGS -Wtrigraphs" 17194 17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17196$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17197 cacheid=xorg_cv_cc_flag__Wtrigraphs 17198 if eval \${$cacheid+:} false; then : 17199 $as_echo_n "(cached) " >&6 17200else 17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17202/* end confdefs.h. */ 17203int i; 17204int 17205main () 17206{ 17207 17208 ; 17209 return 0; 17210} 17211_ACEOF 17212if ac_fn_c_try_link "$LINENO"; then : 17213 eval $cacheid=yes 17214else 17215 eval $cacheid=no 17216fi 17217rm -f core conftest.err conftest.$ac_objext \ 17218 conftest$ac_exeext conftest.$ac_ext 17219fi 17220 17221 17222 CFLAGS="$xorg_testset_save_CFLAGS" 17223 17224 eval supported=\$$cacheid 17225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17226$as_echo "$supported" >&6; } 17227 if test "$supported" = "yes" ; then 17228 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17229 found="yes" 17230 fi 17231 fi 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247xorg_testset_save_CFLAGS="$CFLAGS" 17248 17249if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17252$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17253if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17254 $as_echo_n "(cached) " >&6 17255else 17256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17257/* end confdefs.h. */ 17258int i; 17259_ACEOF 17260if ac_fn_c_try_compile "$LINENO"; then : 17261 xorg_cv_cc_flag_unknown_warning_option=yes 17262else 17263 xorg_cv_cc_flag_unknown_warning_option=no 17264fi 17265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17266fi 17267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17268$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17269 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17270 CFLAGS="$xorg_testset_save_CFLAGS" 17271fi 17272 17273if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17275 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17276 fi 17277 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17279$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17280if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17281 $as_echo_n "(cached) " >&6 17282else 17283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17284/* end confdefs.h. */ 17285int i; 17286_ACEOF 17287if ac_fn_c_try_compile "$LINENO"; then : 17288 xorg_cv_cc_flag_unused_command_line_argument=yes 17289else 17290 xorg_cv_cc_flag_unused_command_line_argument=no 17291fi 17292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17293fi 17294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17295$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17296 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17297 CFLAGS="$xorg_testset_save_CFLAGS" 17298fi 17299 17300found="no" 17301 17302 if test $found = "no" ; then 17303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17304 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17305 fi 17306 17307 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17309 fi 17310 17311 CFLAGS="$CFLAGS -Warray-bounds" 17312 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17314$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17315 cacheid=xorg_cv_cc_flag__Warray_bounds 17316 if eval \${$cacheid+:} false; then : 17317 $as_echo_n "(cached) " >&6 17318else 17319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17320/* end confdefs.h. */ 17321int i; 17322int 17323main () 17324{ 17325 17326 ; 17327 return 0; 17328} 17329_ACEOF 17330if ac_fn_c_try_link "$LINENO"; then : 17331 eval $cacheid=yes 17332else 17333 eval $cacheid=no 17334fi 17335rm -f core conftest.err conftest.$ac_objext \ 17336 conftest$ac_exeext conftest.$ac_ext 17337fi 17338 17339 17340 CFLAGS="$xorg_testset_save_CFLAGS" 17341 17342 eval supported=\$$cacheid 17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17344$as_echo "$supported" >&6; } 17345 if test "$supported" = "yes" ; then 17346 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17347 found="yes" 17348 fi 17349 fi 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365xorg_testset_save_CFLAGS="$CFLAGS" 17366 17367if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17370$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17371if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17372 $as_echo_n "(cached) " >&6 17373else 17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17375/* end confdefs.h. */ 17376int i; 17377_ACEOF 17378if ac_fn_c_try_compile "$LINENO"; then : 17379 xorg_cv_cc_flag_unknown_warning_option=yes 17380else 17381 xorg_cv_cc_flag_unknown_warning_option=no 17382fi 17383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17384fi 17385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17386$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17388 CFLAGS="$xorg_testset_save_CFLAGS" 17389fi 17390 17391if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17393 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17394 fi 17395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17397$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17398if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17399 $as_echo_n "(cached) " >&6 17400else 17401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17402/* end confdefs.h. */ 17403int i; 17404_ACEOF 17405if ac_fn_c_try_compile "$LINENO"; then : 17406 xorg_cv_cc_flag_unused_command_line_argument=yes 17407else 17408 xorg_cv_cc_flag_unused_command_line_argument=no 17409fi 17410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17411fi 17412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17413$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17415 CFLAGS="$xorg_testset_save_CFLAGS" 17416fi 17417 17418found="no" 17419 17420 if test $found = "no" ; then 17421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17422 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17423 fi 17424 17425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17427 fi 17428 17429 CFLAGS="$CFLAGS -Wwrite-strings" 17430 17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17432$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17433 cacheid=xorg_cv_cc_flag__Wwrite_strings 17434 if eval \${$cacheid+:} false; then : 17435 $as_echo_n "(cached) " >&6 17436else 17437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17438/* end confdefs.h. */ 17439int i; 17440int 17441main () 17442{ 17443 17444 ; 17445 return 0; 17446} 17447_ACEOF 17448if ac_fn_c_try_link "$LINENO"; then : 17449 eval $cacheid=yes 17450else 17451 eval $cacheid=no 17452fi 17453rm -f core conftest.err conftest.$ac_objext \ 17454 conftest$ac_exeext conftest.$ac_ext 17455fi 17456 17457 17458 CFLAGS="$xorg_testset_save_CFLAGS" 17459 17460 eval supported=\$$cacheid 17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17462$as_echo "$supported" >&6; } 17463 if test "$supported" = "yes" ; then 17464 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17465 found="yes" 17466 fi 17467 fi 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483xorg_testset_save_CFLAGS="$CFLAGS" 17484 17485if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17486 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17488$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17489if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17490 $as_echo_n "(cached) " >&6 17491else 17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17493/* end confdefs.h. */ 17494int i; 17495_ACEOF 17496if ac_fn_c_try_compile "$LINENO"; then : 17497 xorg_cv_cc_flag_unknown_warning_option=yes 17498else 17499 xorg_cv_cc_flag_unknown_warning_option=no 17500fi 17501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17502fi 17503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17504$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17506 CFLAGS="$xorg_testset_save_CFLAGS" 17507fi 17508 17509if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17511 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17512 fi 17513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17515$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17516if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17517 $as_echo_n "(cached) " >&6 17518else 17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17520/* end confdefs.h. */ 17521int i; 17522_ACEOF 17523if ac_fn_c_try_compile "$LINENO"; then : 17524 xorg_cv_cc_flag_unused_command_line_argument=yes 17525else 17526 xorg_cv_cc_flag_unused_command_line_argument=no 17527fi 17528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17529fi 17530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17531$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17533 CFLAGS="$xorg_testset_save_CFLAGS" 17534fi 17535 17536found="no" 17537 17538 if test $found = "no" ; then 17539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17540 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17541 fi 17542 17543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17545 fi 17546 17547 CFLAGS="$CFLAGS -Waddress" 17548 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17550$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17551 cacheid=xorg_cv_cc_flag__Waddress 17552 if eval \${$cacheid+:} false; then : 17553 $as_echo_n "(cached) " >&6 17554else 17555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17556/* end confdefs.h. */ 17557int i; 17558int 17559main () 17560{ 17561 17562 ; 17563 return 0; 17564} 17565_ACEOF 17566if ac_fn_c_try_link "$LINENO"; then : 17567 eval $cacheid=yes 17568else 17569 eval $cacheid=no 17570fi 17571rm -f core conftest.err conftest.$ac_objext \ 17572 conftest$ac_exeext conftest.$ac_ext 17573fi 17574 17575 17576 CFLAGS="$xorg_testset_save_CFLAGS" 17577 17578 eval supported=\$$cacheid 17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17580$as_echo "$supported" >&6; } 17581 if test "$supported" = "yes" ; then 17582 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17583 found="yes" 17584 fi 17585 fi 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601xorg_testset_save_CFLAGS="$CFLAGS" 17602 17603if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17604 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17606$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17607if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17608 $as_echo_n "(cached) " >&6 17609else 17610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17611/* end confdefs.h. */ 17612int i; 17613_ACEOF 17614if ac_fn_c_try_compile "$LINENO"; then : 17615 xorg_cv_cc_flag_unknown_warning_option=yes 17616else 17617 xorg_cv_cc_flag_unknown_warning_option=no 17618fi 17619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17620fi 17621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17622$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17623 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17624 CFLAGS="$xorg_testset_save_CFLAGS" 17625fi 17626 17627if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17629 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17630 fi 17631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17633$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17634if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17635 $as_echo_n "(cached) " >&6 17636else 17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17638/* end confdefs.h. */ 17639int i; 17640_ACEOF 17641if ac_fn_c_try_compile "$LINENO"; then : 17642 xorg_cv_cc_flag_unused_command_line_argument=yes 17643else 17644 xorg_cv_cc_flag_unused_command_line_argument=no 17645fi 17646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17647fi 17648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17649$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17651 CFLAGS="$xorg_testset_save_CFLAGS" 17652fi 17653 17654found="no" 17655 17656 if test $found = "no" ; then 17657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17658 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17659 fi 17660 17661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17663 fi 17664 17665 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17666 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17668$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17669 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17670 if eval \${$cacheid+:} false; then : 17671 $as_echo_n "(cached) " >&6 17672else 17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17674/* end confdefs.h. */ 17675int i; 17676int 17677main () 17678{ 17679 17680 ; 17681 return 0; 17682} 17683_ACEOF 17684if ac_fn_c_try_link "$LINENO"; then : 17685 eval $cacheid=yes 17686else 17687 eval $cacheid=no 17688fi 17689rm -f core conftest.err conftest.$ac_objext \ 17690 conftest$ac_exeext conftest.$ac_ext 17691fi 17692 17693 17694 CFLAGS="$xorg_testset_save_CFLAGS" 17695 17696 eval supported=\$$cacheid 17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17698$as_echo "$supported" >&6; } 17699 if test "$supported" = "yes" ; then 17700 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17701 found="yes" 17702 fi 17703 fi 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719xorg_testset_save_CFLAGS="$CFLAGS" 17720 17721if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17722 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17724$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17725if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17726 $as_echo_n "(cached) " >&6 17727else 17728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17729/* end confdefs.h. */ 17730int i; 17731_ACEOF 17732if ac_fn_c_try_compile "$LINENO"; then : 17733 xorg_cv_cc_flag_unknown_warning_option=yes 17734else 17735 xorg_cv_cc_flag_unknown_warning_option=no 17736fi 17737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17738fi 17739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17740$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17742 CFLAGS="$xorg_testset_save_CFLAGS" 17743fi 17744 17745if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17747 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17748 fi 17749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17751$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17752if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17753 $as_echo_n "(cached) " >&6 17754else 17755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17756/* end confdefs.h. */ 17757int i; 17758_ACEOF 17759if ac_fn_c_try_compile "$LINENO"; then : 17760 xorg_cv_cc_flag_unused_command_line_argument=yes 17761else 17762 xorg_cv_cc_flag_unused_command_line_argument=no 17763fi 17764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17765fi 17766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17767$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17768 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17769 CFLAGS="$xorg_testset_save_CFLAGS" 17770fi 17771 17772found="no" 17773 17774 if test $found = "no" ; then 17775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17776 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17777 fi 17778 17779 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17780 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17781 fi 17782 17783 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17784 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17786$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17787 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17788 if eval \${$cacheid+:} false; then : 17789 $as_echo_n "(cached) " >&6 17790else 17791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17792/* end confdefs.h. */ 17793int i; 17794int 17795main () 17796{ 17797 17798 ; 17799 return 0; 17800} 17801_ACEOF 17802if ac_fn_c_try_link "$LINENO"; then : 17803 eval $cacheid=yes 17804else 17805 eval $cacheid=no 17806fi 17807rm -f core conftest.err conftest.$ac_objext \ 17808 conftest$ac_exeext conftest.$ac_ext 17809fi 17810 17811 17812 CFLAGS="$xorg_testset_save_CFLAGS" 17813 17814 eval supported=\$$cacheid 17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17816$as_echo "$supported" >&6; } 17817 if test "$supported" = "yes" ; then 17818 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17819 found="yes" 17820 fi 17821 fi 17822 17823 17824fi 17825 17826 17827 17828 17829 17830 17831 17832 CWARNFLAGS="$BASE_CFLAGS" 17833 if test "x$GCC" = xyes ; then 17834 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17835 fi 17836 17837 17838 17839 17840 17841 17842 17843 17844# Check whether --enable-strict-compilation was given. 17845if test "${enable_strict_compilation+set}" = set; then : 17846 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17847else 17848 STRICT_COMPILE=no 17849fi 17850 17851 17852 17853 17854 17855 17856STRICT_CFLAGS="" 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870xorg_testset_save_CFLAGS="$CFLAGS" 17871 17872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17877 $as_echo_n "(cached) " >&6 17878else 17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17880/* end confdefs.h. */ 17881int i; 17882_ACEOF 17883if ac_fn_c_try_compile "$LINENO"; then : 17884 xorg_cv_cc_flag_unknown_warning_option=yes 17885else 17886 xorg_cv_cc_flag_unknown_warning_option=no 17887fi 17888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17889fi 17890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17893 CFLAGS="$xorg_testset_save_CFLAGS" 17894fi 17895 17896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17899 fi 17900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17904 $as_echo_n "(cached) " >&6 17905else 17906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17907/* end confdefs.h. */ 17908int i; 17909_ACEOF 17910if ac_fn_c_try_compile "$LINENO"; then : 17911 xorg_cv_cc_flag_unused_command_line_argument=yes 17912else 17913 xorg_cv_cc_flag_unused_command_line_argument=no 17914fi 17915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17916fi 17917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17920 CFLAGS="$xorg_testset_save_CFLAGS" 17921fi 17922 17923found="no" 17924 17925 if test $found = "no" ; then 17926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17928 fi 17929 17930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17932 fi 17933 17934 CFLAGS="$CFLAGS -pedantic" 17935 17936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17937$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17938 cacheid=xorg_cv_cc_flag__pedantic 17939 if eval \${$cacheid+:} false; then : 17940 $as_echo_n "(cached) " >&6 17941else 17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17943/* end confdefs.h. */ 17944int i; 17945int 17946main () 17947{ 17948 17949 ; 17950 return 0; 17951} 17952_ACEOF 17953if ac_fn_c_try_link "$LINENO"; then : 17954 eval $cacheid=yes 17955else 17956 eval $cacheid=no 17957fi 17958rm -f core conftest.err conftest.$ac_objext \ 17959 conftest$ac_exeext conftest.$ac_ext 17960fi 17961 17962 17963 CFLAGS="$xorg_testset_save_CFLAGS" 17964 17965 eval supported=\$$cacheid 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17967$as_echo "$supported" >&6; } 17968 if test "$supported" = "yes" ; then 17969 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17970 found="yes" 17971 fi 17972 fi 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988xorg_testset_save_CFLAGS="$CFLAGS" 17989 17990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17995 $as_echo_n "(cached) " >&6 17996else 17997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17998/* end confdefs.h. */ 17999int i; 18000_ACEOF 18001if ac_fn_c_try_compile "$LINENO"; then : 18002 xorg_cv_cc_flag_unknown_warning_option=yes 18003else 18004 xorg_cv_cc_flag_unknown_warning_option=no 18005fi 18006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18007fi 18008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18011 CFLAGS="$xorg_testset_save_CFLAGS" 18012fi 18013 18014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18017 fi 18018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18022 $as_echo_n "(cached) " >&6 18023else 18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18025/* end confdefs.h. */ 18026int i; 18027_ACEOF 18028if ac_fn_c_try_compile "$LINENO"; then : 18029 xorg_cv_cc_flag_unused_command_line_argument=yes 18030else 18031 xorg_cv_cc_flag_unused_command_line_argument=no 18032fi 18033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18034fi 18035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18038 CFLAGS="$xorg_testset_save_CFLAGS" 18039fi 18040 18041found="no" 18042 18043 if test $found = "no" ; then 18044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18046 fi 18047 18048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18050 fi 18051 18052 CFLAGS="$CFLAGS -Werror" 18053 18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 18055$as_echo_n "checking if $CC supports -Werror... " >&6; } 18056 cacheid=xorg_cv_cc_flag__Werror 18057 if eval \${$cacheid+:} false; then : 18058 $as_echo_n "(cached) " >&6 18059else 18060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18061/* end confdefs.h. */ 18062int i; 18063int 18064main () 18065{ 18066 18067 ; 18068 return 0; 18069} 18070_ACEOF 18071if ac_fn_c_try_link "$LINENO"; then : 18072 eval $cacheid=yes 18073else 18074 eval $cacheid=no 18075fi 18076rm -f core conftest.err conftest.$ac_objext \ 18077 conftest$ac_exeext conftest.$ac_ext 18078fi 18079 18080 18081 CFLAGS="$xorg_testset_save_CFLAGS" 18082 18083 eval supported=\$$cacheid 18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18085$as_echo "$supported" >&6; } 18086 if test "$supported" = "yes" ; then 18087 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 18088 found="yes" 18089 fi 18090 fi 18091 18092 if test $found = "no" ; then 18093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18094 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18095 fi 18096 18097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18099 fi 18100 18101 CFLAGS="$CFLAGS -errwarn" 18102 18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 18104$as_echo_n "checking if $CC supports -errwarn... " >&6; } 18105 cacheid=xorg_cv_cc_flag__errwarn 18106 if eval \${$cacheid+:} false; then : 18107 $as_echo_n "(cached) " >&6 18108else 18109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18110/* end confdefs.h. */ 18111int i; 18112int 18113main () 18114{ 18115 18116 ; 18117 return 0; 18118} 18119_ACEOF 18120if ac_fn_c_try_link "$LINENO"; then : 18121 eval $cacheid=yes 18122else 18123 eval $cacheid=no 18124fi 18125rm -f core conftest.err conftest.$ac_objext \ 18126 conftest$ac_exeext conftest.$ac_ext 18127fi 18128 18129 18130 CFLAGS="$xorg_testset_save_CFLAGS" 18131 18132 eval supported=\$$cacheid 18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18134$as_echo "$supported" >&6; } 18135 if test "$supported" = "yes" ; then 18136 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 18137 found="yes" 18138 fi 18139 fi 18140 18141 18142 18143# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 18144# activate it with -Werror, so we add it here explicitly. 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158xorg_testset_save_CFLAGS="$CFLAGS" 18159 18160if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18163$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18164if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18165 $as_echo_n "(cached) " >&6 18166else 18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18168/* end confdefs.h. */ 18169int i; 18170_ACEOF 18171if ac_fn_c_try_compile "$LINENO"; then : 18172 xorg_cv_cc_flag_unknown_warning_option=yes 18173else 18174 xorg_cv_cc_flag_unknown_warning_option=no 18175fi 18176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18177fi 18178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18179$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18181 CFLAGS="$xorg_testset_save_CFLAGS" 18182fi 18183 18184if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18186 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18187 fi 18188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18190$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18191if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18192 $as_echo_n "(cached) " >&6 18193else 18194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18195/* end confdefs.h. */ 18196int i; 18197_ACEOF 18198if ac_fn_c_try_compile "$LINENO"; then : 18199 xorg_cv_cc_flag_unused_command_line_argument=yes 18200else 18201 xorg_cv_cc_flag_unused_command_line_argument=no 18202fi 18203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18204fi 18205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18206$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18208 CFLAGS="$xorg_testset_save_CFLAGS" 18209fi 18210 18211found="no" 18212 18213 if test $found = "no" ; then 18214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18215 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18216 fi 18217 18218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18220 fi 18221 18222 CFLAGS="$CFLAGS -Werror=attributes" 18223 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18225$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18226 cacheid=xorg_cv_cc_flag__Werror_attributes 18227 if eval \${$cacheid+:} false; then : 18228 $as_echo_n "(cached) " >&6 18229else 18230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232int i; 18233int 18234main () 18235{ 18236 18237 ; 18238 return 0; 18239} 18240_ACEOF 18241if ac_fn_c_try_link "$LINENO"; then : 18242 eval $cacheid=yes 18243else 18244 eval $cacheid=no 18245fi 18246rm -f core conftest.err conftest.$ac_objext \ 18247 conftest$ac_exeext conftest.$ac_ext 18248fi 18249 18250 18251 CFLAGS="$xorg_testset_save_CFLAGS" 18252 18253 eval supported=\$$cacheid 18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18255$as_echo "$supported" >&6; } 18256 if test "$supported" = "yes" ; then 18257 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18258 found="yes" 18259 fi 18260 fi 18261 18262 18263 18264if test "x$STRICT_COMPILE" = "xyes"; then 18265 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18266 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18267fi 18268 18269 18270 18271 18272 18273 18274cat >>confdefs.h <<_ACEOF 18275#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18276_ACEOF 18277 18278 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18279 if test "x$PVM" = "x"; then 18280 PVM="0" 18281 fi 18282 18283cat >>confdefs.h <<_ACEOF 18284#define PACKAGE_VERSION_MINOR $PVM 18285_ACEOF 18286 18287 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18288 if test "x$PVP" = "x"; then 18289 PVP="0" 18290 fi 18291 18292cat >>confdefs.h <<_ACEOF 18293#define PACKAGE_VERSION_PATCHLEVEL $PVP 18294_ACEOF 18295 18296 18297 18298CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18299mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18300|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18301echo 'git directory not found: installing possibly empty changelog.' >&2)" 18302 18303 18304 18305 18306macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18307INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18308mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18309|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18310echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18311 18312 18313 18314 18315 18316 18317if test x$APP_MAN_SUFFIX = x ; then 18318 APP_MAN_SUFFIX=1 18319fi 18320if test x$APP_MAN_DIR = x ; then 18321 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18322fi 18323 18324if test x$LIB_MAN_SUFFIX = x ; then 18325 LIB_MAN_SUFFIX=3 18326fi 18327if test x$LIB_MAN_DIR = x ; then 18328 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18329fi 18330 18331if test x$FILE_MAN_SUFFIX = x ; then 18332 case $host_os in 18333 # Solaris 2.0 - 11 use SysV man page sections 18334 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 18335 *) FILE_MAN_SUFFIX=5 ;; 18336 esac 18337fi 18338if test x$FILE_MAN_DIR = x ; then 18339 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18340fi 18341 18342if test x$MISC_MAN_SUFFIX = x ; then 18343 case $host_os in 18344 # Solaris 2.0 - 11 use SysV man page sections 18345 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 18346 *) MISC_MAN_SUFFIX=7 ;; 18347 esac 18348fi 18349if test x$MISC_MAN_DIR = x ; then 18350 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18351fi 18352 18353if test x$DRIVER_MAN_SUFFIX = x ; then 18354 case $host_os in 18355 # Solaris 2.0 - 11 use SysV man page sections 18356 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 18357 *) DRIVER_MAN_SUFFIX=4 ;; 18358 esac 18359fi 18360if test x$DRIVER_MAN_DIR = x ; then 18361 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18362fi 18363 18364if test x$ADMIN_MAN_SUFFIX = x ; then 18365 case $host_os in 18366 # Solaris 2.0 - 11 use SysV man page sections 18367 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 18368 *) ADMIN_MAN_SUFFIX=8 ;; 18369 esac 18370fi 18371if test x$ADMIN_MAN_DIR = x ; then 18372 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18373fi 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389XORG_MAN_PAGE="X Version 11" 18390 18391MAN_SUBSTS="\ 18392 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18393 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18394 -e 's|__xservername__|Xorg|g' \ 18395 -e 's|__xconfigfile__|xorg.conf|g' \ 18396 -e 's|__projectroot__|\$(prefix)|g' \ 18397 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18398 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18399 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18400 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18401 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18402 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18403 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18404 18405 18406 18407# Check whether --enable-silent-rules was given. 18408if test "${enable_silent_rules+set}" = set; then : 18409 enableval=$enable_silent_rules; 18410fi 18411 18412case $enable_silent_rules in # ((( 18413 yes) AM_DEFAULT_VERBOSITY=0;; 18414 no) AM_DEFAULT_VERBOSITY=1;; 18415 *) AM_DEFAULT_VERBOSITY=0;; 18416esac 18417am_make=${MAKE-make} 18418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18419$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18420if ${am_cv_make_support_nested_variables+:} false; then : 18421 $as_echo_n "(cached) " >&6 18422else 18423 if $as_echo 'TRUE=$(BAR$(V)) 18424BAR0=false 18425BAR1=true 18426V=1 18427am__doit: 18428 @$(TRUE) 18429.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18430 am_cv_make_support_nested_variables=yes 18431else 18432 am_cv_make_support_nested_variables=no 18433fi 18434fi 18435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18436$as_echo "$am_cv_make_support_nested_variables" >&6; } 18437if test $am_cv_make_support_nested_variables = yes; then 18438 AM_V='$(V)' 18439 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18440else 18441 AM_V=$AM_DEFAULT_VERBOSITY 18442 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18443fi 18444AM_BACKSLASH='\' 18445 18446 18447 18448 18449 18450 18451 18452 18453# Check whether --with-lint was given. 18454if test "${with_lint+set}" = set; then : 18455 withval=$with_lint; use_lint=$withval 18456else 18457 use_lint=no 18458fi 18459 18460 18461# Obtain platform specific info like program name and options 18462# The lint program on FreeBSD and NetBSD is different from the one on Solaris 18463case $host_os in 18464 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 18465 lint_name=splint 18466 lint_options="-badflag" 18467 ;; 18468 *freebsd* | *netbsd*) 18469 lint_name=lint 18470 lint_options="-u -b" 18471 ;; 18472 *solaris*) 18473 lint_name=lint 18474 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 18475 ;; 18476esac 18477 18478# Test for the presence of the program (either guessed by the code or spelled out by the user) 18479if test "x$use_lint" = x"yes" ; then 18480 # Extract the first word of "$lint_name", so it can be a program name with args. 18481set dummy $lint_name; ac_word=$2 18482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18483$as_echo_n "checking for $ac_word... " >&6; } 18484if ${ac_cv_path_LINT+:} false; then : 18485 $as_echo_n "(cached) " >&6 18486else 18487 case $LINT in 18488 [\\/]* | ?:[\\/]*) 18489 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 18490 ;; 18491 *) 18492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18493for as_dir in $PATH 18494do 18495 IFS=$as_save_IFS 18496 test -z "$as_dir" && as_dir=. 18497 for ac_exec_ext in '' $ac_executable_extensions; do 18498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18499 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 18500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18501 break 2 18502 fi 18503done 18504 done 18505IFS=$as_save_IFS 18506 18507 ;; 18508esac 18509fi 18510LINT=$ac_cv_path_LINT 18511if test -n "$LINT"; then 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 18513$as_echo "$LINT" >&6; } 18514else 18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18516$as_echo "no" >&6; } 18517fi 18518 18519 18520 if test "x$LINT" = "x"; then 18521 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 18522 fi 18523elif test "x$use_lint" = x"no" ; then 18524 if test "x$LINT" != "x"; then 18525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 18526$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 18527 fi 18528else 18529 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 18530fi 18531 18532# User supplied flags override default flags 18533if test "x$LINT_FLAGS" != "x"; then 18534 lint_options=$LINT_FLAGS 18535fi 18536 18537LINT_FLAGS=$lint_options 18538 18539 if test "x$LINT" != x; then 18540 LINT_TRUE= 18541 LINT_FALSE='#' 18542else 18543 LINT_TRUE='#' 18544 LINT_FALSE= 18545fi 18546 18547 18548 18549LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}" 18550 18551 18552 18553# Check whether --enable-futex was given. 18554if test "${enable_futex+set}" = set; then : 18555 enableval=$enable_futex; FUTEX=$enableval 18556else 18557 FUTEX=auto 18558fi 18559 18560 18561if test "x$FUTEX" = "xauto"; then 18562 ac_fn_c_check_header_mongrel "$LINENO" "linux/futex.h" "ac_cv_header_linux_futex_h" "$ac_includes_default" 18563if test "x$ac_cv_header_linux_futex_h" = xyes; then : 18564 FUTEX=yes 18565fi 18566 18567 18568fi 18569 18570if test "x$FUTEX" = "xauto"; then 18571 ac_fn_c_check_header_compile "$LINENO" "sys/umtx.h" "ac_cv_header_sys_umtx_h" "#include <errno.h> 18572 #include <sys/types.h> 18573" 18574if test "x$ac_cv_header_sys_umtx_h" = xyes; then : 18575 FUTEX=yes 18576else 18577 FUTEX=no 18578fi 18579 18580 18581 if test "x$FUTEX" = "xyes"; then 18582 18583$as_echo "#define HAVE_UMTX 1" >>confdefs.h 18584 18585 fi 18586fi 18587 18588if test "x$FUTEX" = "xyes"; then 18589 PTHREAD=no 18590 18591$as_echo "#define HAVE_FUTEX 1" >>confdefs.h 18592 18593else 18594 PTHREAD=yes 18595 18596$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 18597 18598fi 18599 18600PTHREAD_LIBS= 18601if test "x$PTHREAD" = "xyes"; then 18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 18603$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 18604if ${ac_cv_lib_pthread_pthread_create+:} false; then : 18605 $as_echo_n "(cached) " >&6 18606else 18607 ac_check_lib_save_LIBS=$LIBS 18608LIBS="-lpthread $LIBS" 18609cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18610/* end confdefs.h. */ 18611 18612/* Override any GCC internal prototype to avoid an error. 18613 Use char because int might match the return type of a GCC 18614 builtin and then its argument prototype would still apply. */ 18615#ifdef __cplusplus 18616extern "C" 18617#endif 18618char pthread_create (); 18619int 18620main () 18621{ 18622return pthread_create (); 18623 ; 18624 return 0; 18625} 18626_ACEOF 18627if ac_fn_c_try_link "$LINENO"; then : 18628 ac_cv_lib_pthread_pthread_create=yes 18629else 18630 ac_cv_lib_pthread_pthread_create=no 18631fi 18632rm -f core conftest.err conftest.$ac_objext \ 18633 conftest$ac_exeext conftest.$ac_ext 18634LIBS=$ac_check_lib_save_LIBS 18635fi 18636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 18637$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 18638if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 18639 PTHREAD_LIBS=-lpthread 18640else 18641 PTHREAD_LIBS= 18642fi 18643 18644fi 18645 18646 18647 18648 if test x"$FUTEX" = xyes; then 18649 FUTEX_TRUE= 18650 FUTEX_FALSE='#' 18651else 18652 FUTEX_TRUE='#' 18653 FUTEX_FALSE= 18654fi 18655 18656 if test x"$PTHREAD" = xyes; then 18657 PTHREAD_TRUE= 18658 PTHREAD_FALSE='#' 18659else 18660 PTHREAD_TRUE='#' 18661 PTHREAD_FALSE= 18662fi 18663 18664 18665 18666pkg_failed=no 18667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for xproto" >&5 18668$as_echo_n "checking for xproto... " >&6; } 18669 18670if test -n "$XPROTO_CFLAGS"; then 18671 pkg_cv_XPROTO_CFLAGS="$XPROTO_CFLAGS" 18672 elif test -n "$PKG_CONFIG"; then 18673 if test -n "$PKG_CONFIG" && \ 18674 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18675 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18676 ac_status=$? 18677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18678 test $ac_status = 0; }; then 18679 pkg_cv_XPROTO_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 18680 test "x$?" != "x0" && pkg_failed=yes 18681else 18682 pkg_failed=yes 18683fi 18684 else 18685 pkg_failed=untried 18686fi 18687if test -n "$XPROTO_LIBS"; then 18688 pkg_cv_XPROTO_LIBS="$XPROTO_LIBS" 18689 elif test -n "$PKG_CONFIG"; then 18690 if test -n "$PKG_CONFIG" && \ 18691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 18692 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 18693 ac_status=$? 18694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18695 test $ac_status = 0; }; then 18696 pkg_cv_XPROTO_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 18697 test "x$?" != "x0" && pkg_failed=yes 18698else 18699 pkg_failed=yes 18700fi 18701 else 18702 pkg_failed=untried 18703fi 18704 18705 18706 18707if test $pkg_failed = yes; then 18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18709$as_echo "no" >&6; } 18710 18711if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18712 _pkg_short_errors_supported=yes 18713else 18714 _pkg_short_errors_supported=no 18715fi 18716 if test $_pkg_short_errors_supported = yes; then 18717 XPROTO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1` 18718 else 18719 XPROTO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1` 18720 fi 18721 # Put the nasty error message in config.log where it belongs 18722 echo "$XPROTO_PKG_ERRORS" >&5 18723 18724 as_fn_error $? "Package requirements (xproto) were not met: 18725 18726$XPROTO_PKG_ERRORS 18727 18728Consider adjusting the PKG_CONFIG_PATH environment variable if you 18729installed software in a non-standard prefix. 18730 18731Alternatively, you may set the environment variables XPROTO_CFLAGS 18732and XPROTO_LIBS to avoid the need to call pkg-config. 18733See the pkg-config man page for more details." "$LINENO" 5 18734elif test $pkg_failed = untried; then 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18736$as_echo "no" >&6; } 18737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18739as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18740is in your PATH or set the PKG_CONFIG environment variable to the full 18741path to pkg-config. 18742 18743Alternatively, you may set the environment variables XPROTO_CFLAGS 18744and XPROTO_LIBS to avoid the need to call pkg-config. 18745See the pkg-config man page for more details. 18746 18747To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18748See \`config.log' for more details" "$LINENO" 5; } 18749else 18750 XPROTO_CFLAGS=$pkg_cv_XPROTO_CFLAGS 18751 XPROTO_LIBS=$pkg_cv_XPROTO_LIBS 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18753$as_echo "yes" >&6; } 18754 18755fi 18756 18757 18758 18759CFLAGS="$CFLAGS $XPROTO_CFLAGS" 18760 18761for ac_func in memfd_create 18762do : 18763 ac_fn_c_check_func "$LINENO" "memfd_create" "ac_cv_func_memfd_create" 18764if test "x$ac_cv_func_memfd_create" = xyes; then : 18765 cat >>confdefs.h <<_ACEOF 18766#define HAVE_MEMFD_CREATE 1 18767_ACEOF 18768 18769fi 18770done 18771 18772 18773ac_fn_c_check_decl "$LINENO" "__NR_memfd_create" "ac_cv_have_decl___NR_memfd_create" "#include <asm/unistd.h> 18774" 18775if test "x$ac_cv_have_decl___NR_memfd_create" = xyes; then : 18776 ac_have_decl=1 18777else 18778 ac_have_decl=0 18779fi 18780 18781cat >>confdefs.h <<_ACEOF 18782#define HAVE_DECL___NR_MEMFD_CREATE $ac_have_decl 18783_ACEOF 18784 18785 18786for ac_header in sys/memfd.h 18787do : 18788 ac_fn_c_check_header_mongrel "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default" 18789if test "x$ac_cv_header_sys_memfd_h" = xyes; then : 18790 cat >>confdefs.h <<_ACEOF 18791#define HAVE_SYS_MEMFD_H 1 18792_ACEOF 18793 18794$as_echo "#define HAVE_MEMFD_H 1" >>confdefs.h 18795 18796fi 18797 18798done 18799 18800 18801# Check whether --enable-visibility was given. 18802if test "${enable_visibility+set}" = set; then : 18803 enableval=$enable_visibility; SYMBOL_VISIBILITY=$enableval 18804else 18805 SYMBOL_VISIBILITY=auto 18806fi 18807 18808 18809symbol_visibility= 18810have_visibility=disabled 18811if test x$SYMBOL_VISIBILITY != xno; then 18812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol visibility support" >&5 18813$as_echo_n "checking for symbol visibility support... " >&6; } 18814 if test x$GCC = xyes; then 18815 VISIBILITY_CFLAGS="-fvisibility=hidden" 18816 else 18817 if test x$SUNCC = xyes; then 18818 VISIBILITY_CFLAGS="-xldscope=hidden" 18819 else 18820 have_visibility=no 18821 fi 18822 fi 18823 if test x$have_visibility != xno; then 18824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18825/* end confdefs.h. */ 18826#include <X11/Xfuncproto.h> 18827 extern _X_HIDDEN int hidden_int; 18828 extern _X_EXPORT int public_int; 18829 extern _X_HIDDEN int hidden_int_func(void); 18830 extern _X_EXPORT int public_int_func(void); 18831int 18832main () 18833{ 18834 18835 ; 18836 return 0; 18837} 18838_ACEOF 18839if ac_fn_c_try_compile "$LINENO"; then : 18840 have_visibility=yes 18841else 18842 have_visibility=no 18843fi 18844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18845 fi 18846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_visibility" >&5 18847$as_echo "$have_visibility" >&6; } 18848 if test x$have_visibility != xno; then 18849 symbol_visibility=$VISIBILITY_CFLAGS 18850 CFLAGS="$CFLAGS $VISIBILITY_CFLAGS" 18851 fi 18852fi 18853 18854 18855# Check whether --with-shared-memory-dir was given. 18856if test "${with_shared_memory_dir+set}" = set; then : 18857 withval=$with_shared_memory_dir; 18858else 18859 with_shared_memory_dir=yes 18860fi 18861 18862 18863shmdirs="/run/shm /dev/shm /var/tmp /tmp" 18864 18865case x"$with_shared_memory_dir" in 18866xyes) 18867 for dir in $shmdirs; do 18868 case x"$with_shared_memory_dir" in 18869 xyes) 18870 echo Checking temp dir "$dir" 18871 if test -d "$dir"; then 18872 with_shared_memory_dir="$dir" 18873 fi 18874 ;; 18875 esac 18876 done 18877 ;; 18878x/*) 18879 ;; 18880xno) 18881 ;; 18882*) 18883 as_fn_error $? "Invalid directory specified for --with-shared-memory-dir: $with_shared_memory_dir" "$LINENO" 5 18884 ;; 18885esac 18886 18887case x"$with_shared_memory_dir" in 18888xyes) 18889 as_fn_error $? "No directory found for shared memory temp files." "$LINENO" 5 18890 ;; 18891xno) 18892 ;; 18893*) 18894 18895cat >>confdefs.h <<_ACEOF 18896#define SHMDIR "$with_shared_memory_dir" 18897_ACEOF 18898 18899 ;; 18900esac 18901 18902ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile xshmfence.pc" 18903 18904cat >confcache <<\_ACEOF 18905# This file is a shell script that caches the results of configure 18906# tests run on this system so they can be shared between configure 18907# scripts and configure runs, see configure's option --config-cache. 18908# It is not useful on other systems. If it contains results you don't 18909# want to keep, you may remove or edit it. 18910# 18911# config.status only pays attention to the cache file if you give it 18912# the --recheck option to rerun configure. 18913# 18914# `ac_cv_env_foo' variables (set or unset) will be overridden when 18915# loading this file, other *unset* `ac_cv_foo' will be assigned the 18916# following values. 18917 18918_ACEOF 18919 18920# The following way of writing the cache mishandles newlines in values, 18921# but we know of no workaround that is simple, portable, and efficient. 18922# So, we kill variables containing newlines. 18923# Ultrix sh set writes to stderr and can't be redirected directly, 18924# and sets the high bit in the cache file unless we assign to the vars. 18925( 18926 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18927 eval ac_val=\$$ac_var 18928 case $ac_val in #( 18929 *${as_nl}*) 18930 case $ac_var in #( 18931 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18932$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18933 esac 18934 case $ac_var in #( 18935 _ | IFS | as_nl) ;; #( 18936 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18937 *) { eval $ac_var=; unset $ac_var;} ;; 18938 esac ;; 18939 esac 18940 done 18941 18942 (set) 2>&1 | 18943 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18944 *${as_nl}ac_space=\ *) 18945 # `set' does not quote correctly, so add quotes: double-quote 18946 # substitution turns \\\\ into \\, and sed turns \\ into \. 18947 sed -n \ 18948 "s/'/'\\\\''/g; 18949 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18950 ;; #( 18951 *) 18952 # `set' quotes correctly as required by POSIX, so do not add quotes. 18953 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18954 ;; 18955 esac | 18956 sort 18957) | 18958 sed ' 18959 /^ac_cv_env_/b end 18960 t clear 18961 :clear 18962 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18963 t end 18964 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18965 :end' >>confcache 18966if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18967 if test -w "$cache_file"; then 18968 if test "x$cache_file" != "x/dev/null"; then 18969 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18970$as_echo "$as_me: updating cache $cache_file" >&6;} 18971 if test ! -f "$cache_file" || test -h "$cache_file"; then 18972 cat confcache >"$cache_file" 18973 else 18974 case $cache_file in #( 18975 */* | ?:*) 18976 mv -f confcache "$cache_file"$$ && 18977 mv -f "$cache_file"$$ "$cache_file" ;; #( 18978 *) 18979 mv -f confcache "$cache_file" ;; 18980 esac 18981 fi 18982 fi 18983 else 18984 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18985$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18986 fi 18987fi 18988rm -f confcache 18989 18990test "x$prefix" = xNONE && prefix=$ac_default_prefix 18991# Let make expand exec_prefix. 18992test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18993 18994DEFS=-DHAVE_CONFIG_H 18995 18996ac_libobjs= 18997ac_ltlibobjs= 18998U= 18999for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19000 # 1. Remove the extension, and $U if already installed. 19001 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 19002 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 19003 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 19004 # will be set to the directory where LIBOBJS objects are built. 19005 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 19006 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 19007done 19008LIBOBJS=$ac_libobjs 19009 19010LTLIBOBJS=$ac_ltlibobjs 19011 19012 19013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 19014$as_echo_n "checking that generated files are newer than configure... " >&6; } 19015 if test -n "$am_sleep_pid"; then 19016 # Hide warnings about reused PIDs. 19017 wait $am_sleep_pid 2>/dev/null 19018 fi 19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 19020$as_echo "done" >&6; } 19021if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19022 as_fn_error $? "conditional \"AMDEP\" was never defined. 19023Usually this means the macro was only invoked conditionally." "$LINENO" 5 19024fi 19025if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 19027Usually this means the macro was only invoked conditionally." "$LINENO" 5 19028fi 19029 if test -n "$EXEEXT"; then 19030 am__EXEEXT_TRUE= 19031 am__EXEEXT_FALSE='#' 19032else 19033 am__EXEEXT_TRUE='#' 19034 am__EXEEXT_FALSE= 19035fi 19036 19037if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 19038 as_fn_error $? "conditional \"LINT\" was never defined. 19039Usually this means the macro was only invoked conditionally." "$LINENO" 5 19040fi 19041if test -z "${FUTEX_TRUE}" && test -z "${FUTEX_FALSE}"; then 19042 as_fn_error $? "conditional \"FUTEX\" was never defined. 19043Usually this means the macro was only invoked conditionally." "$LINENO" 5 19044fi 19045if test -z "${PTHREAD_TRUE}" && test -z "${PTHREAD_FALSE}"; then 19046 as_fn_error $? "conditional \"PTHREAD\" was never defined. 19047Usually this means the macro was only invoked conditionally." "$LINENO" 5 19048fi 19049 19050: "${CONFIG_STATUS=./config.status}" 19051ac_write_fail=0 19052ac_clean_files_save=$ac_clean_files 19053ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19054{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 19055$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 19056as_write_fail=0 19057cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 19058#! $SHELL 19059# Generated by $as_me. 19060# Run this file to recreate the current configuration. 19061# Compiler output produced by configure, useful for debugging 19062# configure, is in config.log if it exists. 19063 19064debug=false 19065ac_cs_recheck=false 19066ac_cs_silent=false 19067 19068SHELL=\${CONFIG_SHELL-$SHELL} 19069export SHELL 19070_ASEOF 19071cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 19072## -------------------- ## 19073## M4sh Initialization. ## 19074## -------------------- ## 19075 19076# Be more Bourne compatible 19077DUALCASE=1; export DUALCASE # for MKS sh 19078if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 19079 emulate sh 19080 NULLCMD=: 19081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 19082 # is contrary to our usage. Disable this feature. 19083 alias -g '${1+"$@"}'='"$@"' 19084 setopt NO_GLOB_SUBST 19085else 19086 case `(set -o) 2>/dev/null` in #( 19087 *posix*) : 19088 set -o posix ;; #( 19089 *) : 19090 ;; 19091esac 19092fi 19093 19094 19095as_nl=' 19096' 19097export as_nl 19098# Printing a long string crashes Solaris 7 /usr/bin/printf. 19099as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 19100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 19101as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 19102# Prefer a ksh shell builtin over an external printf program on Solaris, 19103# but without wasting forks for bash or zsh. 19104if test -z "$BASH_VERSION$ZSH_VERSION" \ 19105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 19106 as_echo='print -r --' 19107 as_echo_n='print -rn --' 19108elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 19109 as_echo='printf %s\n' 19110 as_echo_n='printf %s' 19111else 19112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 19113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 19114 as_echo_n='/usr/ucb/echo -n' 19115 else 19116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 19117 as_echo_n_body='eval 19118 arg=$1; 19119 case $arg in #( 19120 *"$as_nl"*) 19121 expr "X$arg" : "X\\(.*\\)$as_nl"; 19122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 19123 esac; 19124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 19125 ' 19126 export as_echo_n_body 19127 as_echo_n='sh -c $as_echo_n_body as_echo' 19128 fi 19129 export as_echo_body 19130 as_echo='sh -c $as_echo_body as_echo' 19131fi 19132 19133# The user is always right. 19134if test "${PATH_SEPARATOR+set}" != set; then 19135 PATH_SEPARATOR=: 19136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 19137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 19138 PATH_SEPARATOR=';' 19139 } 19140fi 19141 19142 19143# IFS 19144# We need space, tab and new line, in precisely that order. Quoting is 19145# there to prevent editors from complaining about space-tab. 19146# (If _AS_PATH_WALK were called with IFS unset, it would disable word 19147# splitting by setting IFS to empty value.) 19148IFS=" "" $as_nl" 19149 19150# Find who we are. Look in the path if we contain no directory separator. 19151as_myself= 19152case $0 in #(( 19153 *[\\/]* ) as_myself=$0 ;; 19154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19155for as_dir in $PATH 19156do 19157 IFS=$as_save_IFS 19158 test -z "$as_dir" && as_dir=. 19159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19160 done 19161IFS=$as_save_IFS 19162 19163 ;; 19164esac 19165# We did not find ourselves, most probably we were run as `sh COMMAND' 19166# in which case we are not to be found in the path. 19167if test "x$as_myself" = x; then 19168 as_myself=$0 19169fi 19170if test ! -f "$as_myself"; then 19171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 19172 exit 1 19173fi 19174 19175# Unset variables that we do not need and which cause bugs (e.g. in 19176# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 19177# suppresses any "Segmentation fault" message there. '((' could 19178# trigger a bug in pdksh 5.2.14. 19179for as_var in BASH_ENV ENV MAIL MAILPATH 19180do eval test x\${$as_var+set} = xset \ 19181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 19182done 19183PS1='$ ' 19184PS2='> ' 19185PS4='+ ' 19186 19187# NLS nuisances. 19188LC_ALL=C 19189export LC_ALL 19190LANGUAGE=C 19191export LANGUAGE 19192 19193# CDPATH. 19194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19195 19196 19197# as_fn_error STATUS ERROR [LINENO LOG_FD] 19198# ---------------------------------------- 19199# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 19200# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 19201# script with STATUS, using 1 if that was 0. 19202as_fn_error () 19203{ 19204 as_status=$1; test $as_status -eq 0 && as_status=1 19205 if test "$4"; then 19206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 19207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 19208 fi 19209 $as_echo "$as_me: error: $2" >&2 19210 as_fn_exit $as_status 19211} # as_fn_error 19212 19213 19214# as_fn_set_status STATUS 19215# ----------------------- 19216# Set $? to STATUS, without forking. 19217as_fn_set_status () 19218{ 19219 return $1 19220} # as_fn_set_status 19221 19222# as_fn_exit STATUS 19223# ----------------- 19224# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19225as_fn_exit () 19226{ 19227 set +e 19228 as_fn_set_status $1 19229 exit $1 19230} # as_fn_exit 19231 19232# as_fn_unset VAR 19233# --------------- 19234# Portably unset VAR. 19235as_fn_unset () 19236{ 19237 { eval $1=; unset $1;} 19238} 19239as_unset=as_fn_unset 19240# as_fn_append VAR VALUE 19241# ---------------------- 19242# Append the text in VALUE to the end of the definition contained in VAR. Take 19243# advantage of any shell optimizations that allow amortized linear growth over 19244# repeated appends, instead of the typical quadratic growth present in naive 19245# implementations. 19246if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19247 eval 'as_fn_append () 19248 { 19249 eval $1+=\$2 19250 }' 19251else 19252 as_fn_append () 19253 { 19254 eval $1=\$$1\$2 19255 } 19256fi # as_fn_append 19257 19258# as_fn_arith ARG... 19259# ------------------ 19260# Perform arithmetic evaluation on the ARGs, and store the result in the 19261# global $as_val. Take advantage of shells that can avoid forks. The arguments 19262# must be portable across $(()) and expr. 19263if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19264 eval 'as_fn_arith () 19265 { 19266 as_val=$(( $* )) 19267 }' 19268else 19269 as_fn_arith () 19270 { 19271 as_val=`expr "$@" || test $? -eq 1` 19272 } 19273fi # as_fn_arith 19274 19275 19276if expr a : '\(a\)' >/dev/null 2>&1 && 19277 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19278 as_expr=expr 19279else 19280 as_expr=false 19281fi 19282 19283if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19284 as_basename=basename 19285else 19286 as_basename=false 19287fi 19288 19289if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19290 as_dirname=dirname 19291else 19292 as_dirname=false 19293fi 19294 19295as_me=`$as_basename -- "$0" || 19296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19297 X"$0" : 'X\(//\)$' \| \ 19298 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19299$as_echo X/"$0" | 19300 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19301 s//\1/ 19302 q 19303 } 19304 /^X\/\(\/\/\)$/{ 19305 s//\1/ 19306 q 19307 } 19308 /^X\/\(\/\).*/{ 19309 s//\1/ 19310 q 19311 } 19312 s/.*/./; q'` 19313 19314# Avoid depending upon Character Ranges. 19315as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19316as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19317as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19318as_cr_digits='0123456789' 19319as_cr_alnum=$as_cr_Letters$as_cr_digits 19320 19321ECHO_C= ECHO_N= ECHO_T= 19322case `echo -n x` in #((((( 19323-n*) 19324 case `echo 'xy\c'` in 19325 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19326 xy) ECHO_C='\c';; 19327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19328 ECHO_T=' ';; 19329 esac;; 19330*) 19331 ECHO_N='-n';; 19332esac 19333 19334rm -f conf$$ conf$$.exe conf$$.file 19335if test -d conf$$.dir; then 19336 rm -f conf$$.dir/conf$$.file 19337else 19338 rm -f conf$$.dir 19339 mkdir conf$$.dir 2>/dev/null 19340fi 19341if (echo >conf$$.file) 2>/dev/null; then 19342 if ln -s conf$$.file conf$$ 2>/dev/null; then 19343 as_ln_s='ln -s' 19344 # ... but there are two gotchas: 19345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19347 # In both cases, we have to default to `cp -pR'. 19348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19349 as_ln_s='cp -pR' 19350 elif ln conf$$.file conf$$ 2>/dev/null; then 19351 as_ln_s=ln 19352 else 19353 as_ln_s='cp -pR' 19354 fi 19355else 19356 as_ln_s='cp -pR' 19357fi 19358rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19359rmdir conf$$.dir 2>/dev/null 19360 19361 19362# as_fn_mkdir_p 19363# ------------- 19364# Create "$as_dir" as a directory, including parents if necessary. 19365as_fn_mkdir_p () 19366{ 19367 19368 case $as_dir in #( 19369 -*) as_dir=./$as_dir;; 19370 esac 19371 test -d "$as_dir" || eval $as_mkdir_p || { 19372 as_dirs= 19373 while :; do 19374 case $as_dir in #( 19375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19376 *) as_qdir=$as_dir;; 19377 esac 19378 as_dirs="'$as_qdir' $as_dirs" 19379 as_dir=`$as_dirname -- "$as_dir" || 19380$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19381 X"$as_dir" : 'X\(//\)[^/]' \| \ 19382 X"$as_dir" : 'X\(//\)$' \| \ 19383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19384$as_echo X"$as_dir" | 19385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19386 s//\1/ 19387 q 19388 } 19389 /^X\(\/\/\)[^/].*/{ 19390 s//\1/ 19391 q 19392 } 19393 /^X\(\/\/\)$/{ 19394 s//\1/ 19395 q 19396 } 19397 /^X\(\/\).*/{ 19398 s//\1/ 19399 q 19400 } 19401 s/.*/./; q'` 19402 test -d "$as_dir" && break 19403 done 19404 test -z "$as_dirs" || eval "mkdir $as_dirs" 19405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19406 19407 19408} # as_fn_mkdir_p 19409if mkdir -p . 2>/dev/null; then 19410 as_mkdir_p='mkdir -p "$as_dir"' 19411else 19412 test -d ./-p && rmdir ./-p 19413 as_mkdir_p=false 19414fi 19415 19416 19417# as_fn_executable_p FILE 19418# ----------------------- 19419# Test if FILE is an executable regular file. 19420as_fn_executable_p () 19421{ 19422 test -f "$1" && test -x "$1" 19423} # as_fn_executable_p 19424as_test_x='test -x' 19425as_executable_p=as_fn_executable_p 19426 19427# Sed expression to map a string onto a valid CPP name. 19428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19429 19430# Sed expression to map a string onto a valid variable name. 19431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19432 19433 19434exec 6>&1 19435## ----------------------------------- ## 19436## Main body of $CONFIG_STATUS script. ## 19437## ----------------------------------- ## 19438_ASEOF 19439test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19440 19441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19442# Save the log message, to keep $0 and so on meaningful, and to 19443# report actual input values of CONFIG_FILES etc. instead of their 19444# values after options handling. 19445ac_log=" 19446This file was extended by libxshmfence $as_me 1.3, which was 19447generated by GNU Autoconf 2.69. Invocation command line was 19448 19449 CONFIG_FILES = $CONFIG_FILES 19450 CONFIG_HEADERS = $CONFIG_HEADERS 19451 CONFIG_LINKS = $CONFIG_LINKS 19452 CONFIG_COMMANDS = $CONFIG_COMMANDS 19453 $ $0 $@ 19454 19455on `(hostname || uname -n) 2>/dev/null | sed 1q` 19456" 19457 19458_ACEOF 19459 19460case $ac_config_files in *" 19461"*) set x $ac_config_files; shift; ac_config_files=$*;; 19462esac 19463 19464case $ac_config_headers in *" 19465"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19466esac 19467 19468 19469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19470# Files that config.status was made for. 19471config_files="$ac_config_files" 19472config_headers="$ac_config_headers" 19473config_commands="$ac_config_commands" 19474 19475_ACEOF 19476 19477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19478ac_cs_usage="\ 19479\`$as_me' instantiates files and other configuration actions 19480from templates according to the current configuration. Unless the files 19481and actions are specified as TAGs, all are instantiated by default. 19482 19483Usage: $0 [OPTION]... [TAG]... 19484 19485 -h, --help print this help, then exit 19486 -V, --version print version number and configuration settings, then exit 19487 --config print configuration, then exit 19488 -q, --quiet, --silent 19489 do not print progress messages 19490 -d, --debug don't remove temporary files 19491 --recheck update $as_me by reconfiguring in the same conditions 19492 --file=FILE[:TEMPLATE] 19493 instantiate the configuration file FILE 19494 --header=FILE[:TEMPLATE] 19495 instantiate the configuration header FILE 19496 19497Configuration files: 19498$config_files 19499 19500Configuration headers: 19501$config_headers 19502 19503Configuration commands: 19504$config_commands 19505 19506Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19507 19508_ACEOF 19509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19510ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19511ac_cs_version="\\ 19512libxshmfence config.status 1.3 19513configured by $0, generated by GNU Autoconf 2.69, 19514 with options \\"\$ac_cs_config\\" 19515 19516Copyright (C) 2012 Free Software Foundation, Inc. 19517This config.status script is free software; the Free Software Foundation 19518gives unlimited permission to copy, distribute and modify it." 19519 19520ac_pwd='$ac_pwd' 19521srcdir='$srcdir' 19522INSTALL='$INSTALL' 19523MKDIR_P='$MKDIR_P' 19524AWK='$AWK' 19525test -n "\$AWK" || AWK=awk 19526_ACEOF 19527 19528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19529# The default lists apply if the user does not specify any file. 19530ac_need_defaults=: 19531while test $# != 0 19532do 19533 case $1 in 19534 --*=?*) 19535 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19537 ac_shift=: 19538 ;; 19539 --*=) 19540 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19541 ac_optarg= 19542 ac_shift=: 19543 ;; 19544 *) 19545 ac_option=$1 19546 ac_optarg=$2 19547 ac_shift=shift 19548 ;; 19549 esac 19550 19551 case $ac_option in 19552 # Handling of the options. 19553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19554 ac_cs_recheck=: ;; 19555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19556 $as_echo "$ac_cs_version"; exit ;; 19557 --config | --confi | --conf | --con | --co | --c ) 19558 $as_echo "$ac_cs_config"; exit ;; 19559 --debug | --debu | --deb | --de | --d | -d ) 19560 debug=: ;; 19561 --file | --fil | --fi | --f ) 19562 $ac_shift 19563 case $ac_optarg in 19564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19565 '') as_fn_error $? "missing file argument" ;; 19566 esac 19567 as_fn_append CONFIG_FILES " '$ac_optarg'" 19568 ac_need_defaults=false;; 19569 --header | --heade | --head | --hea ) 19570 $ac_shift 19571 case $ac_optarg in 19572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19573 esac 19574 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19575 ac_need_defaults=false;; 19576 --he | --h) 19577 # Conflict between --help and --header 19578 as_fn_error $? "ambiguous option: \`$1' 19579Try \`$0 --help' for more information.";; 19580 --help | --hel | -h ) 19581 $as_echo "$ac_cs_usage"; exit ;; 19582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19583 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19584 ac_cs_silent=: ;; 19585 19586 # This is an error. 19587 -*) as_fn_error $? "unrecognized option: \`$1' 19588Try \`$0 --help' for more information." ;; 19589 19590 *) as_fn_append ac_config_targets " $1" 19591 ac_need_defaults=false ;; 19592 19593 esac 19594 shift 19595done 19596 19597ac_configure_extra_args= 19598 19599if $ac_cs_silent; then 19600 exec 6>/dev/null 19601 ac_configure_extra_args="$ac_configure_extra_args --silent" 19602fi 19603 19604_ACEOF 19605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19606if \$ac_cs_recheck; then 19607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19608 shift 19609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19610 CONFIG_SHELL='$SHELL' 19611 export CONFIG_SHELL 19612 exec "\$@" 19613fi 19614 19615_ACEOF 19616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19617exec 5>>config.log 19618{ 19619 echo 19620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19621## Running $as_me. ## 19622_ASBOX 19623 $as_echo "$ac_log" 19624} >&5 19625 19626_ACEOF 19627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19628# 19629# INIT-COMMANDS 19630# 19631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19632 19633 19634# The HP-UX ksh and POSIX shell print the target directory to stdout 19635# if CDPATH is set. 19636(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19637 19638sed_quote_subst='$sed_quote_subst' 19639double_quote_subst='$double_quote_subst' 19640delay_variable_subst='$delay_variable_subst' 19641macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19642macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19643enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19644enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19645pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19646enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19647shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19648SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19649ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19650PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19651host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19652host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19653host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19654build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19655build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19656build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19657SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19658Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19659GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19660EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19661FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19662LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19663NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19664LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19665max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19666ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19667exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19668lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19669lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19670lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19671lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19672lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19673reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19674reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19675OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19676deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19677file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19678file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19679want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19680DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19681sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19682AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19683AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19684archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19685STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19686RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19687old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19688old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19689old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19690lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19691CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19692CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19693compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19694GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19695lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19696lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19697lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19698lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19699lt_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"`' 19700lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19701nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19702lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19703lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19704objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19705MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19706lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19707lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19708lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19709lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19710lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19711need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19712MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19713DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19714NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19715LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19716OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19717OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19718libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19719shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19720extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19721archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19722enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19723export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19724whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19725compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19726old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19727old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19728archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19729archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19730module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19731module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19732with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19733allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19734no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19735hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19736hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19737hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19738hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19739hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19740hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19741hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19742inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19743link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19744always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19745export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19746exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19747include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19748prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19749postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19750file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19751variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19752need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19753need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19754version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19755runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19756shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19757shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19758libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19759library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19760soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19761install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19762postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19763postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19764finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19765finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19766hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19767sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19768configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19769configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19770hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19771enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19772enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19773enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19774old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19775striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19776 19777LTCC='$LTCC' 19778LTCFLAGS='$LTCFLAGS' 19779compiler='$compiler_DEFAULT' 19780 19781# A function that is used when there is no print builtin or printf. 19782func_fallback_echo () 19783{ 19784 eval 'cat <<_LTECHO_EOF 19785\$1 19786_LTECHO_EOF' 19787} 19788 19789# Quote evaled strings. 19790for var in SHELL \ 19791ECHO \ 19792PATH_SEPARATOR \ 19793SED \ 19794GREP \ 19795EGREP \ 19796FGREP \ 19797LD \ 19798NM \ 19799LN_S \ 19800lt_SP2NL \ 19801lt_NL2SP \ 19802reload_flag \ 19803OBJDUMP \ 19804deplibs_check_method \ 19805file_magic_cmd \ 19806file_magic_glob \ 19807want_nocaseglob \ 19808DLLTOOL \ 19809sharedlib_from_linklib_cmd \ 19810AR \ 19811AR_FLAGS \ 19812archiver_list_spec \ 19813STRIP \ 19814RANLIB \ 19815CC \ 19816CFLAGS \ 19817compiler \ 19818lt_cv_sys_global_symbol_pipe \ 19819lt_cv_sys_global_symbol_to_cdecl \ 19820lt_cv_sys_global_symbol_to_import \ 19821lt_cv_sys_global_symbol_to_c_name_address \ 19822lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19823lt_cv_nm_interface \ 19824nm_file_list_spec \ 19825lt_cv_truncate_bin \ 19826lt_prog_compiler_no_builtin_flag \ 19827lt_prog_compiler_pic \ 19828lt_prog_compiler_wl \ 19829lt_prog_compiler_static \ 19830lt_cv_prog_compiler_c_o \ 19831need_locks \ 19832MANIFEST_TOOL \ 19833DSYMUTIL \ 19834NMEDIT \ 19835LIPO \ 19836OTOOL \ 19837OTOOL64 \ 19838shrext_cmds \ 19839export_dynamic_flag_spec \ 19840whole_archive_flag_spec \ 19841compiler_needs_object \ 19842with_gnu_ld \ 19843allow_undefined_flag \ 19844no_undefined_flag \ 19845hardcode_libdir_flag_spec \ 19846hardcode_libdir_separator \ 19847exclude_expsyms \ 19848include_expsyms \ 19849file_list_spec \ 19850variables_saved_for_relink \ 19851libname_spec \ 19852library_names_spec \ 19853soname_spec \ 19854install_override_mode \ 19855finish_eval \ 19856old_striplib \ 19857striplib; do 19858 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19859 *[\\\\\\\`\\"\\\$]*) 19860 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19861 ;; 19862 *) 19863 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19864 ;; 19865 esac 19866done 19867 19868# Double-quote double-evaled strings. 19869for var in reload_cmds \ 19870old_postinstall_cmds \ 19871old_postuninstall_cmds \ 19872old_archive_cmds \ 19873extract_expsyms_cmds \ 19874old_archive_from_new_cmds \ 19875old_archive_from_expsyms_cmds \ 19876archive_cmds \ 19877archive_expsym_cmds \ 19878module_cmds \ 19879module_expsym_cmds \ 19880export_symbols_cmds \ 19881prelink_cmds \ 19882postlink_cmds \ 19883postinstall_cmds \ 19884postuninstall_cmds \ 19885finish_cmds \ 19886sys_lib_search_path_spec \ 19887configure_time_dlsearch_path \ 19888configure_time_lt_sys_library_path; do 19889 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19890 *[\\\\\\\`\\"\\\$]*) 19891 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19892 ;; 19893 *) 19894 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19895 ;; 19896 esac 19897done 19898 19899ac_aux_dir='$ac_aux_dir' 19900 19901# See if we are running on zsh, and set the options that allow our 19902# commands through without removal of \ escapes INIT. 19903if test -n "\${ZSH_VERSION+set}"; then 19904 setopt NO_GLOB_SUBST 19905fi 19906 19907 19908 PACKAGE='$PACKAGE' 19909 VERSION='$VERSION' 19910 RM='$RM' 19911 ofile='$ofile' 19912 19913 19914 19915 19916_ACEOF 19917 19918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19919 19920# Handling of arguments. 19921for ac_config_target in $ac_config_targets 19922do 19923 case $ac_config_target in 19924 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19925 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19926 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19927 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19928 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19929 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; 19930 "xshmfence.pc") CONFIG_FILES="$CONFIG_FILES xshmfence.pc" ;; 19931 19932 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19933 esac 19934done 19935 19936 19937# If the user did not use the arguments to specify the items to instantiate, 19938# then the envvar interface is used. Set only those that are not. 19939# We use the long form for the default assignment because of an extremely 19940# bizarre bug on SunOS 4.1.3. 19941if $ac_need_defaults; then 19942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19944 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19945fi 19946 19947# Have a temporary directory for convenience. Make it in the build tree 19948# simply because there is no reason against having it here, and in addition, 19949# creating and moving files from /tmp can sometimes cause problems. 19950# Hook for its removal unless debugging. 19951# Note that there is a small window in which the directory will not be cleaned: 19952# after its creation but before its name has been assigned to `$tmp'. 19953$debug || 19954{ 19955 tmp= ac_tmp= 19956 trap 'exit_status=$? 19957 : "${ac_tmp:=$tmp}" 19958 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19959' 0 19960 trap 'as_fn_exit 1' 1 2 13 15 19961} 19962# Create a (secure) tmp directory for tmp files. 19963 19964{ 19965 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19966 test -d "$tmp" 19967} || 19968{ 19969 tmp=./conf$$-$RANDOM 19970 (umask 077 && mkdir "$tmp") 19971} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19972ac_tmp=$tmp 19973 19974# Set up the scripts for CONFIG_FILES section. 19975# No need to generate them if there are no CONFIG_FILES. 19976# This happens for instance with `./config.status config.h'. 19977if test -n "$CONFIG_FILES"; then 19978 19979 19980ac_cr=`echo X | tr X '\015'` 19981# On cygwin, bash can eat \r inside `` if the user requested igncr. 19982# But we know of no other shell where ac_cr would be empty at this 19983# point, so we can use a bashism as a fallback. 19984if test "x$ac_cr" = x; then 19985 eval ac_cr=\$\'\\r\' 19986fi 19987ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19988if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19989 ac_cs_awk_cr='\\r' 19990else 19991 ac_cs_awk_cr=$ac_cr 19992fi 19993 19994echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19995_ACEOF 19996 19997 19998{ 19999 echo "cat >conf$$subs.awk <<_ACEOF" && 20000 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 20001 echo "_ACEOF" 20002} >conf$$subs.sh || 20003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20004ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 20005ac_delim='%!_!# ' 20006for ac_last_try in false false false false false :; do 20007 . ./conf$$subs.sh || 20008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20009 20010 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 20011 if test $ac_delim_n = $ac_delim_num; then 20012 break 20013 elif $ac_last_try; then 20014 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 20015 else 20016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20017 fi 20018done 20019rm -f conf$$subs.sh 20020 20021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20022cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 20023_ACEOF 20024sed -n ' 20025h 20026s/^/S["/; s/!.*/"]=/ 20027p 20028g 20029s/^[^!]*!// 20030:repl 20031t repl 20032s/'"$ac_delim"'$// 20033t delim 20034:nl 20035h 20036s/\(.\{148\}\)..*/\1/ 20037t more1 20038s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 20039p 20040n 20041b repl 20042:more1 20043s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20044p 20045g 20046s/.\{148\}// 20047t nl 20048:delim 20049h 20050s/\(.\{148\}\)..*/\1/ 20051t more2 20052s/["\\]/\\&/g; s/^/"/; s/$/"/ 20053p 20054b 20055:more2 20056s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 20057p 20058g 20059s/.\{148\}// 20060t delim 20061' <conf$$subs.awk | sed ' 20062/^[^""]/{ 20063 N 20064 s/\n// 20065} 20066' >>$CONFIG_STATUS || ac_write_fail=1 20067rm -f conf$$subs.awk 20068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20069_ACAWK 20070cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 20071 for (key in S) S_is_set[key] = 1 20072 FS = "" 20073 20074} 20075{ 20076 line = $ 0 20077 nfields = split(line, field, "@") 20078 substed = 0 20079 len = length(field[1]) 20080 for (i = 2; i < nfields; i++) { 20081 key = field[i] 20082 keylen = length(key) 20083 if (S_is_set[key]) { 20084 value = S[key] 20085 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 20086 len += length(value) + length(field[++i]) 20087 substed = 1 20088 } else 20089 len += 1 + keylen 20090 } 20091 20092 print line 20093} 20094 20095_ACAWK 20096_ACEOF 20097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20098if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 20099 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 20100else 20101 cat 20102fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 20103 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 20104_ACEOF 20105 20106# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 20107# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 20108# trailing colons and then remove the whole line if VPATH becomes empty 20109# (actually we leave an empty line to preserve line numbers). 20110if test "x$srcdir" = x.; then 20111 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 20112h 20113s/// 20114s/^/:/ 20115s/[ ]*$/:/ 20116s/:\$(srcdir):/:/g 20117s/:\${srcdir}:/:/g 20118s/:@srcdir@:/:/g 20119s/^:*// 20120s/:*$// 20121x 20122s/\(=[ ]*\).*/\1/ 20123G 20124s/\n// 20125s/^[^=]*=[ ]*$// 20126}' 20127fi 20128 20129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20130fi # test -n "$CONFIG_FILES" 20131 20132# Set up the scripts for CONFIG_HEADERS section. 20133# No need to generate them if there are no CONFIG_HEADERS. 20134# This happens for instance with `./config.status Makefile'. 20135if test -n "$CONFIG_HEADERS"; then 20136cat >"$ac_tmp/defines.awk" <<\_ACAWK || 20137BEGIN { 20138_ACEOF 20139 20140# Transform confdefs.h into an awk script `defines.awk', embedded as 20141# here-document in config.status, that substitutes the proper values into 20142# config.h.in to produce config.h. 20143 20144# Create a delimiter string that does not exist in confdefs.h, to ease 20145# handling of long lines. 20146ac_delim='%!_!# ' 20147for ac_last_try in false false :; do 20148 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 20149 if test -z "$ac_tt"; then 20150 break 20151 elif $ac_last_try; then 20152 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 20153 else 20154 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 20155 fi 20156done 20157 20158# For the awk script, D is an array of macro values keyed by name, 20159# likewise P contains macro parameters if any. Preserve backslash 20160# newline sequences. 20161 20162ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 20163sed -n ' 20164s/.\{148\}/&'"$ac_delim"'/g 20165t rset 20166:rset 20167s/^[ ]*#[ ]*define[ ][ ]*/ / 20168t def 20169d 20170:def 20171s/\\$// 20172t bsnl 20173s/["\\]/\\&/g 20174s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20175D["\1"]=" \3"/p 20176s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 20177d 20178:bsnl 20179s/["\\]/\\&/g 20180s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 20181D["\1"]=" \3\\\\\\n"\\/p 20182t cont 20183s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 20184t cont 20185d 20186:cont 20187n 20188s/.\{148\}/&'"$ac_delim"'/g 20189t clear 20190:clear 20191s/\\$// 20192t bsnlc 20193s/["\\]/\\&/g; s/^/"/; s/$/"/p 20194d 20195:bsnlc 20196s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 20197b cont 20198' <confdefs.h | sed ' 20199s/'"$ac_delim"'/"\\\ 20200"/g' >>$CONFIG_STATUS || ac_write_fail=1 20201 20202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20203 for (key in D) D_is_set[key] = 1 20204 FS = "" 20205} 20206/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 20207 line = \$ 0 20208 split(line, arg, " ") 20209 if (arg[1] == "#") { 20210 defundef = arg[2] 20211 mac1 = arg[3] 20212 } else { 20213 defundef = substr(arg[1], 2) 20214 mac1 = arg[2] 20215 } 20216 split(mac1, mac2, "(") #) 20217 macro = mac2[1] 20218 prefix = substr(line, 1, index(line, defundef) - 1) 20219 if (D_is_set[macro]) { 20220 # Preserve the white space surrounding the "#". 20221 print prefix "define", macro P[macro] D[macro] 20222 next 20223 } else { 20224 # Replace #undef with comments. This is necessary, for example, 20225 # in the case of _POSIX_SOURCE, which is predefined and required 20226 # on some systems where configure will not decide to define it. 20227 if (defundef == "undef") { 20228 print "/*", prefix defundef, macro, "*/" 20229 next 20230 } 20231 } 20232} 20233{ print } 20234_ACAWK 20235_ACEOF 20236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20237 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20238fi # test -n "$CONFIG_HEADERS" 20239 20240 20241eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20242shift 20243for ac_tag 20244do 20245 case $ac_tag in 20246 :[FHLC]) ac_mode=$ac_tag; continue;; 20247 esac 20248 case $ac_mode$ac_tag in 20249 :[FHL]*:*);; 20250 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20251 :[FH]-) ac_tag=-:-;; 20252 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20253 esac 20254 ac_save_IFS=$IFS 20255 IFS=: 20256 set x $ac_tag 20257 IFS=$ac_save_IFS 20258 shift 20259 ac_file=$1 20260 shift 20261 20262 case $ac_mode in 20263 :L) ac_source=$1;; 20264 :[FH]) 20265 ac_file_inputs= 20266 for ac_f 20267 do 20268 case $ac_f in 20269 -) ac_f="$ac_tmp/stdin";; 20270 *) # Look for the file first in the build tree, then in the source tree 20271 # (if the path is not absolute). The absolute path cannot be DOS-style, 20272 # because $ac_f cannot contain `:'. 20273 test -f "$ac_f" || 20274 case $ac_f in 20275 [\\/$]*) false;; 20276 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20277 esac || 20278 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20279 esac 20280 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20281 as_fn_append ac_file_inputs " '$ac_f'" 20282 done 20283 20284 # Let's still pretend it is `configure' which instantiates (i.e., don't 20285 # use $as_me), people would be surprised to read: 20286 # /* config.h. Generated by config.status. */ 20287 configure_input='Generated from '` 20288 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20289 `' by configure.' 20290 if test x"$ac_file" != x-; then 20291 configure_input="$ac_file. $configure_input" 20292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20293$as_echo "$as_me: creating $ac_file" >&6;} 20294 fi 20295 # Neutralize special characters interpreted by sed in replacement strings. 20296 case $configure_input in #( 20297 *\&* | *\|* | *\\* ) 20298 ac_sed_conf_input=`$as_echo "$configure_input" | 20299 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20300 *) ac_sed_conf_input=$configure_input;; 20301 esac 20302 20303 case $ac_tag in 20304 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20305 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20306 esac 20307 ;; 20308 esac 20309 20310 ac_dir=`$as_dirname -- "$ac_file" || 20311$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20312 X"$ac_file" : 'X\(//\)[^/]' \| \ 20313 X"$ac_file" : 'X\(//\)$' \| \ 20314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20315$as_echo X"$ac_file" | 20316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20317 s//\1/ 20318 q 20319 } 20320 /^X\(\/\/\)[^/].*/{ 20321 s//\1/ 20322 q 20323 } 20324 /^X\(\/\/\)$/{ 20325 s//\1/ 20326 q 20327 } 20328 /^X\(\/\).*/{ 20329 s//\1/ 20330 q 20331 } 20332 s/.*/./; q'` 20333 as_dir="$ac_dir"; as_fn_mkdir_p 20334 ac_builddir=. 20335 20336case "$ac_dir" in 20337.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20338*) 20339 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20340 # A ".." for each directory in $ac_dir_suffix. 20341 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20342 case $ac_top_builddir_sub in 20343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20345 esac ;; 20346esac 20347ac_abs_top_builddir=$ac_pwd 20348ac_abs_builddir=$ac_pwd$ac_dir_suffix 20349# for backward compatibility: 20350ac_top_builddir=$ac_top_build_prefix 20351 20352case $srcdir in 20353 .) # We are building in place. 20354 ac_srcdir=. 20355 ac_top_srcdir=$ac_top_builddir_sub 20356 ac_abs_top_srcdir=$ac_pwd ;; 20357 [\\/]* | ?:[\\/]* ) # Absolute name. 20358 ac_srcdir=$srcdir$ac_dir_suffix; 20359 ac_top_srcdir=$srcdir 20360 ac_abs_top_srcdir=$srcdir ;; 20361 *) # Relative name. 20362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20363 ac_top_srcdir=$ac_top_build_prefix$srcdir 20364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20365esac 20366ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20367 20368 20369 case $ac_mode in 20370 :F) 20371 # 20372 # CONFIG_FILE 20373 # 20374 20375 case $INSTALL in 20376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20378 esac 20379 ac_MKDIR_P=$MKDIR_P 20380 case $MKDIR_P in 20381 [\\/$]* | ?:[\\/]* ) ;; 20382 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20383 esac 20384_ACEOF 20385 20386cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20387# If the template does not know about datarootdir, expand it. 20388# FIXME: This hack should be removed a few years after 2.60. 20389ac_datarootdir_hack=; ac_datarootdir_seen= 20390ac_sed_dataroot=' 20391/datarootdir/ { 20392 p 20393 q 20394} 20395/@datadir@/p 20396/@docdir@/p 20397/@infodir@/p 20398/@localedir@/p 20399/@mandir@/p' 20400case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20401*datarootdir*) ac_datarootdir_seen=yes;; 20402*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20404$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20405_ACEOF 20406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20407 ac_datarootdir_hack=' 20408 s&@datadir@&$datadir&g 20409 s&@docdir@&$docdir&g 20410 s&@infodir@&$infodir&g 20411 s&@localedir@&$localedir&g 20412 s&@mandir@&$mandir&g 20413 s&\\\${datarootdir}&$datarootdir&g' ;; 20414esac 20415_ACEOF 20416 20417# Neutralize VPATH when `$srcdir' = `.'. 20418# Shell code in configure.ac might set extrasub. 20419# FIXME: do we really want to maintain this feature? 20420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20421ac_sed_extra="$ac_vpsub 20422$extrasub 20423_ACEOF 20424cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20425:t 20426/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20427s|@configure_input@|$ac_sed_conf_input|;t t 20428s&@top_builddir@&$ac_top_builddir_sub&;t t 20429s&@top_build_prefix@&$ac_top_build_prefix&;t t 20430s&@srcdir@&$ac_srcdir&;t t 20431s&@abs_srcdir@&$ac_abs_srcdir&;t t 20432s&@top_srcdir@&$ac_top_srcdir&;t t 20433s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20434s&@builddir@&$ac_builddir&;t t 20435s&@abs_builddir@&$ac_abs_builddir&;t t 20436s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20437s&@INSTALL@&$ac_INSTALL&;t t 20438s&@MKDIR_P@&$ac_MKDIR_P&;t t 20439$ac_datarootdir_hack 20440" 20441eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20442 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20443 20444test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20445 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20447 "$ac_tmp/out"`; test -z "$ac_out"; } && 20448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20449which seems to be undefined. Please make sure it is defined" >&5 20450$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20451which seems to be undefined. Please make sure it is defined" >&2;} 20452 20453 rm -f "$ac_tmp/stdin" 20454 case $ac_file in 20455 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20456 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20457 esac \ 20458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20459 ;; 20460 :H) 20461 # 20462 # CONFIG_HEADER 20463 # 20464 if test x"$ac_file" != x-; then 20465 { 20466 $as_echo "/* $configure_input */" \ 20467 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20468 } >"$ac_tmp/config.h" \ 20469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20470 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20471 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20472$as_echo "$as_me: $ac_file is unchanged" >&6;} 20473 else 20474 rm -f "$ac_file" 20475 mv "$ac_tmp/config.h" "$ac_file" \ 20476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20477 fi 20478 else 20479 $as_echo "/* $configure_input */" \ 20480 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20481 || as_fn_error $? "could not create -" "$LINENO" 5 20482 fi 20483# Compute "$ac_file"'s index in $config_headers. 20484_am_arg="$ac_file" 20485_am_stamp_count=1 20486for _am_header in $config_headers :; do 20487 case $_am_header in 20488 $_am_arg | $_am_arg:* ) 20489 break ;; 20490 * ) 20491 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20492 esac 20493done 20494echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20495$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20496 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20497 X"$_am_arg" : 'X\(//\)$' \| \ 20498 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20499$as_echo X"$_am_arg" | 20500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20501 s//\1/ 20502 q 20503 } 20504 /^X\(\/\/\)[^/].*/{ 20505 s//\1/ 20506 q 20507 } 20508 /^X\(\/\/\)$/{ 20509 s//\1/ 20510 q 20511 } 20512 /^X\(\/\).*/{ 20513 s//\1/ 20514 q 20515 } 20516 s/.*/./; q'`/stamp-h$_am_stamp_count 20517 ;; 20518 20519 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20520$as_echo "$as_me: executing $ac_file commands" >&6;} 20521 ;; 20522 esac 20523 20524 20525 case $ac_file$ac_mode in 20526 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20527 # Older Autoconf quotes --file arguments for eval, but not when files 20528 # are listed without --file. Let's play safe and only enable the eval 20529 # if we detect the quoting. 20530 case $CONFIG_FILES in 20531 *\'*) eval set x "$CONFIG_FILES" ;; 20532 *) set x $CONFIG_FILES ;; 20533 esac 20534 shift 20535 for mf 20536 do 20537 # Strip MF so we end up with the name of the file. 20538 mf=`echo "$mf" | sed -e 's/:.*$//'` 20539 # Check whether this is an Automake generated Makefile or not. 20540 # We used to match only the files named 'Makefile.in', but 20541 # some people rename them; so instead we look at the file content. 20542 # Grep'ing the first line is not enough: some people post-process 20543 # each Makefile.in and add a new line on top of each file to say so. 20544 # Grep'ing the whole file is not good either: AIX grep has a line 20545 # limit of 2048, but all sed's we know have understand at least 4000. 20546 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20547 dirpart=`$as_dirname -- "$mf" || 20548$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20549 X"$mf" : 'X\(//\)[^/]' \| \ 20550 X"$mf" : 'X\(//\)$' \| \ 20551 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20552$as_echo X"$mf" | 20553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20554 s//\1/ 20555 q 20556 } 20557 /^X\(\/\/\)[^/].*/{ 20558 s//\1/ 20559 q 20560 } 20561 /^X\(\/\/\)$/{ 20562 s//\1/ 20563 q 20564 } 20565 /^X\(\/\).*/{ 20566 s//\1/ 20567 q 20568 } 20569 s/.*/./; q'` 20570 else 20571 continue 20572 fi 20573 # Extract the definition of DEPDIR, am__include, and am__quote 20574 # from the Makefile without running 'make'. 20575 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20576 test -z "$DEPDIR" && continue 20577 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20578 test -z "$am__include" && continue 20579 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20580 # Find all dependency output files, they are included files with 20581 # $(DEPDIR) in their names. We invoke sed twice because it is the 20582 # simplest approach to changing $(DEPDIR) to its actual value in the 20583 # expansion. 20584 for file in `sed -n " 20585 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20586 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20587 # Make sure the directory exists. 20588 test -f "$dirpart/$file" && continue 20589 fdir=`$as_dirname -- "$file" || 20590$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20591 X"$file" : 'X\(//\)[^/]' \| \ 20592 X"$file" : 'X\(//\)$' \| \ 20593 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20594$as_echo X"$file" | 20595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20596 s//\1/ 20597 q 20598 } 20599 /^X\(\/\/\)[^/].*/{ 20600 s//\1/ 20601 q 20602 } 20603 /^X\(\/\/\)$/{ 20604 s//\1/ 20605 q 20606 } 20607 /^X\(\/\).*/{ 20608 s//\1/ 20609 q 20610 } 20611 s/.*/./; q'` 20612 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20613 # echo "creating $dirpart/$file" 20614 echo '# dummy' > "$dirpart/$file" 20615 done 20616 done 20617} 20618 ;; 20619 "libtool":C) 20620 20621 # See if we are running on zsh, and set the options that allow our 20622 # commands through without removal of \ escapes. 20623 if test -n "${ZSH_VERSION+set}"; then 20624 setopt NO_GLOB_SUBST 20625 fi 20626 20627 cfgfile=${ofile}T 20628 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20629 $RM "$cfgfile" 20630 20631 cat <<_LT_EOF >> "$cfgfile" 20632#! $SHELL 20633# Generated automatically by $as_me ($PACKAGE) $VERSION 20634# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20635# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20636 20637# Provide generalized library-building support services. 20638# Written by Gordon Matzigkeit, 1996 20639 20640# Copyright (C) 2014 Free Software Foundation, Inc. 20641# This is free software; see the source for copying conditions. There is NO 20642# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20643 20644# GNU Libtool is free software; you can redistribute it and/or modify 20645# it under the terms of the GNU General Public License as published by 20646# the Free Software Foundation; either version 2 of of the License, or 20647# (at your option) any later version. 20648# 20649# As a special exception to the GNU General Public License, if you 20650# distribute this file as part of a program or library that is built 20651# using GNU Libtool, you may include this file under the same 20652# distribution terms that you use for the rest of that program. 20653# 20654# GNU Libtool is distributed in the hope that it will be useful, but 20655# WITHOUT ANY WARRANTY; without even the implied warranty of 20656# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20657# GNU General Public License for more details. 20658# 20659# You should have received a copy of the GNU General Public License 20660# along with this program. If not, see <http://www.gnu.org/licenses/>. 20661 20662 20663# The names of the tagged configurations supported by this script. 20664available_tags='' 20665 20666# Configured defaults for sys_lib_dlsearch_path munging. 20667: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20668 20669# ### BEGIN LIBTOOL CONFIG 20670 20671# Which release of libtool.m4 was used? 20672macro_version=$macro_version 20673macro_revision=$macro_revision 20674 20675# Whether or not to build shared libraries. 20676build_libtool_libs=$enable_shared 20677 20678# Whether or not to build static libraries. 20679build_old_libs=$enable_static 20680 20681# What type of objects to build. 20682pic_mode=$pic_mode 20683 20684# Whether or not to optimize for fast installation. 20685fast_install=$enable_fast_install 20686 20687# Shared archive member basename,for filename based shared library versioning on AIX. 20688shared_archive_member_spec=$shared_archive_member_spec 20689 20690# Shell to use when invoking shell scripts. 20691SHELL=$lt_SHELL 20692 20693# An echo program that protects backslashes. 20694ECHO=$lt_ECHO 20695 20696# The PATH separator for the build system. 20697PATH_SEPARATOR=$lt_PATH_SEPARATOR 20698 20699# The host system. 20700host_alias=$host_alias 20701host=$host 20702host_os=$host_os 20703 20704# The build system. 20705build_alias=$build_alias 20706build=$build 20707build_os=$build_os 20708 20709# A sed program that does not truncate output. 20710SED=$lt_SED 20711 20712# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20713Xsed="\$SED -e 1s/^X//" 20714 20715# A grep program that handles long lines. 20716GREP=$lt_GREP 20717 20718# An ERE matcher. 20719EGREP=$lt_EGREP 20720 20721# A literal string matcher. 20722FGREP=$lt_FGREP 20723 20724# A BSD- or MS-compatible name lister. 20725NM=$lt_NM 20726 20727# Whether we need soft or hard links. 20728LN_S=$lt_LN_S 20729 20730# What is the maximum length of a command? 20731max_cmd_len=$max_cmd_len 20732 20733# Object file suffix (normally "o"). 20734objext=$ac_objext 20735 20736# Executable file suffix (normally ""). 20737exeext=$exeext 20738 20739# whether the shell understands "unset". 20740lt_unset=$lt_unset 20741 20742# turn spaces into newlines. 20743SP2NL=$lt_lt_SP2NL 20744 20745# turn newlines into spaces. 20746NL2SP=$lt_lt_NL2SP 20747 20748# convert \$build file names to \$host format. 20749to_host_file_cmd=$lt_cv_to_host_file_cmd 20750 20751# convert \$build files to toolchain format. 20752to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20753 20754# An object symbol dumper. 20755OBJDUMP=$lt_OBJDUMP 20756 20757# Method to check whether dependent libraries are shared objects. 20758deplibs_check_method=$lt_deplibs_check_method 20759 20760# Command to use when deplibs_check_method = "file_magic". 20761file_magic_cmd=$lt_file_magic_cmd 20762 20763# How to find potential files when deplibs_check_method = "file_magic". 20764file_magic_glob=$lt_file_magic_glob 20765 20766# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20767want_nocaseglob=$lt_want_nocaseglob 20768 20769# DLL creation program. 20770DLLTOOL=$lt_DLLTOOL 20771 20772# Command to associate shared and link libraries. 20773sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20774 20775# The archiver. 20776AR=$lt_AR 20777 20778# Flags to create an archive. 20779AR_FLAGS=$lt_AR_FLAGS 20780 20781# How to feed a file listing to the archiver. 20782archiver_list_spec=$lt_archiver_list_spec 20783 20784# A symbol stripping program. 20785STRIP=$lt_STRIP 20786 20787# Commands used to install an old-style archive. 20788RANLIB=$lt_RANLIB 20789old_postinstall_cmds=$lt_old_postinstall_cmds 20790old_postuninstall_cmds=$lt_old_postuninstall_cmds 20791 20792# Whether to use a lock for old archive extraction. 20793lock_old_archive_extraction=$lock_old_archive_extraction 20794 20795# A C compiler. 20796LTCC=$lt_CC 20797 20798# LTCC compiler flags. 20799LTCFLAGS=$lt_CFLAGS 20800 20801# Take the output of nm and produce a listing of raw symbols and C names. 20802global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20803 20804# Transform the output of nm in a proper C declaration. 20805global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20806 20807# Transform the output of nm into a list of symbols to manually relocate. 20808global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20809 20810# Transform the output of nm in a C name address pair. 20811global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20812 20813# Transform the output of nm in a C name address pair when lib prefix is needed. 20814global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20815 20816# The name lister interface. 20817nm_interface=$lt_lt_cv_nm_interface 20818 20819# Specify filename containing input files for \$NM. 20820nm_file_list_spec=$lt_nm_file_list_spec 20821 20822# The root where to search for dependent libraries,and where our libraries should be installed. 20823lt_sysroot=$lt_sysroot 20824 20825# Command to truncate a binary pipe. 20826lt_truncate_bin=$lt_lt_cv_truncate_bin 20827 20828# The name of the directory that contains temporary libtool files. 20829objdir=$objdir 20830 20831# Used to examine libraries when file_magic_cmd begins with "file". 20832MAGIC_CMD=$MAGIC_CMD 20833 20834# Must we lock files when doing compilation? 20835need_locks=$lt_need_locks 20836 20837# Manifest tool. 20838MANIFEST_TOOL=$lt_MANIFEST_TOOL 20839 20840# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20841DSYMUTIL=$lt_DSYMUTIL 20842 20843# Tool to change global to local symbols on Mac OS X. 20844NMEDIT=$lt_NMEDIT 20845 20846# Tool to manipulate fat objects and archives on Mac OS X. 20847LIPO=$lt_LIPO 20848 20849# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20850OTOOL=$lt_OTOOL 20851 20852# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20853OTOOL64=$lt_OTOOL64 20854 20855# Old archive suffix (normally "a"). 20856libext=$libext 20857 20858# Shared library suffix (normally ".so"). 20859shrext_cmds=$lt_shrext_cmds 20860 20861# The commands to extract the exported symbol list from a shared archive. 20862extract_expsyms_cmds=$lt_extract_expsyms_cmds 20863 20864# Variables whose values should be saved in libtool wrapper scripts and 20865# restored at link time. 20866variables_saved_for_relink=$lt_variables_saved_for_relink 20867 20868# Do we need the "lib" prefix for modules? 20869need_lib_prefix=$need_lib_prefix 20870 20871# Do we need a version for libraries? 20872need_version=$need_version 20873 20874# Library versioning type. 20875version_type=$version_type 20876 20877# Shared library runtime path variable. 20878runpath_var=$runpath_var 20879 20880# Shared library path variable. 20881shlibpath_var=$shlibpath_var 20882 20883# Is shlibpath searched before the hard-coded library search path? 20884shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20885 20886# Format of library name prefix. 20887libname_spec=$lt_libname_spec 20888 20889# List of archive names. First name is the real one, the rest are links. 20890# The last name is the one that the linker finds with -lNAME 20891library_names_spec=$lt_library_names_spec 20892 20893# The coded name of the library, if different from the real name. 20894soname_spec=$lt_soname_spec 20895 20896# Permission mode override for installation of shared libraries. 20897install_override_mode=$lt_install_override_mode 20898 20899# Command to use after installation of a shared archive. 20900postinstall_cmds=$lt_postinstall_cmds 20901 20902# Command to use after uninstallation of a shared archive. 20903postuninstall_cmds=$lt_postuninstall_cmds 20904 20905# Commands used to finish a libtool library installation in a directory. 20906finish_cmds=$lt_finish_cmds 20907 20908# As "finish_cmds", except a single script fragment to be evaled but 20909# not shown. 20910finish_eval=$lt_finish_eval 20911 20912# Whether we should hardcode library paths into libraries. 20913hardcode_into_libs=$hardcode_into_libs 20914 20915# Compile-time system search path for libraries. 20916sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20917 20918# Detected run-time system search path for libraries. 20919sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20920 20921# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20922configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20923 20924# Whether dlopen is supported. 20925dlopen_support=$enable_dlopen 20926 20927# Whether dlopen of programs is supported. 20928dlopen_self=$enable_dlopen_self 20929 20930# Whether dlopen of statically linked programs is supported. 20931dlopen_self_static=$enable_dlopen_self_static 20932 20933# Commands to strip libraries. 20934old_striplib=$lt_old_striplib 20935striplib=$lt_striplib 20936 20937 20938# The linker used to build libraries. 20939LD=$lt_LD 20940 20941# How to create reloadable object files. 20942reload_flag=$lt_reload_flag 20943reload_cmds=$lt_reload_cmds 20944 20945# Commands used to build an old-style archive. 20946old_archive_cmds=$lt_old_archive_cmds 20947 20948# A language specific compiler. 20949CC=$lt_compiler 20950 20951# Is the compiler the GNU compiler? 20952with_gcc=$GCC 20953 20954# Compiler flag to turn off builtin functions. 20955no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20956 20957# Additional compiler flags for building library objects. 20958pic_flag=$lt_lt_prog_compiler_pic 20959 20960# How to pass a linker flag through the compiler. 20961wl=$lt_lt_prog_compiler_wl 20962 20963# Compiler flag to prevent dynamic linking. 20964link_static_flag=$lt_lt_prog_compiler_static 20965 20966# Does compiler simultaneously support -c and -o options? 20967compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20968 20969# Whether or not to add -lc for building shared libraries. 20970build_libtool_need_lc=$archive_cmds_need_lc 20971 20972# Whether or not to disallow shared libs when runtime libs are static. 20973allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20974 20975# Compiler flag to allow reflexive dlopens. 20976export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20977 20978# Compiler flag to generate shared objects directly from archives. 20979whole_archive_flag_spec=$lt_whole_archive_flag_spec 20980 20981# Whether the compiler copes with passing no objects directly. 20982compiler_needs_object=$lt_compiler_needs_object 20983 20984# Create an old-style archive from a shared archive. 20985old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20986 20987# Create a temporary old-style archive to link instead of a shared archive. 20988old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20989 20990# Commands used to build a shared archive. 20991archive_cmds=$lt_archive_cmds 20992archive_expsym_cmds=$lt_archive_expsym_cmds 20993 20994# Commands used to build a loadable module if different from building 20995# a shared archive. 20996module_cmds=$lt_module_cmds 20997module_expsym_cmds=$lt_module_expsym_cmds 20998 20999# Whether we are building with GNU ld or not. 21000with_gnu_ld=$lt_with_gnu_ld 21001 21002# Flag that allows shared libraries with undefined symbols to be built. 21003allow_undefined_flag=$lt_allow_undefined_flag 21004 21005# Flag that enforces no undefined symbols. 21006no_undefined_flag=$lt_no_undefined_flag 21007 21008# Flag to hardcode \$libdir into a binary during linking. 21009# This must work even if \$libdir does not exist 21010hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21011 21012# Whether we need a single "-rpath" flag with a separated argument. 21013hardcode_libdir_separator=$lt_hardcode_libdir_separator 21014 21015# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21016# DIR into the resulting binary. 21017hardcode_direct=$hardcode_direct 21018 21019# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 21020# DIR into the resulting binary and the resulting library dependency is 21021# "absolute",i.e impossible to change by setting \$shlibpath_var if the 21022# library is relocated. 21023hardcode_direct_absolute=$hardcode_direct_absolute 21024 21025# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21026# into the resulting binary. 21027hardcode_minus_L=$hardcode_minus_L 21028 21029# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21030# into the resulting binary. 21031hardcode_shlibpath_var=$hardcode_shlibpath_var 21032 21033# Set to "yes" if building a shared library automatically hardcodes DIR 21034# into the library and all subsequent libraries and executables linked 21035# against it. 21036hardcode_automatic=$hardcode_automatic 21037 21038# Set to yes if linker adds runtime paths of dependent libraries 21039# to runtime path list. 21040inherit_rpath=$inherit_rpath 21041 21042# Whether libtool must link a program against all its dependency libraries. 21043link_all_deplibs=$link_all_deplibs 21044 21045# Set to "yes" if exported symbols are required. 21046always_export_symbols=$always_export_symbols 21047 21048# The commands to list exported symbols. 21049export_symbols_cmds=$lt_export_symbols_cmds 21050 21051# Symbols that should not be listed in the preloaded symbols. 21052exclude_expsyms=$lt_exclude_expsyms 21053 21054# Symbols that must always be exported. 21055include_expsyms=$lt_include_expsyms 21056 21057# Commands necessary for linking programs (against libraries) with templates. 21058prelink_cmds=$lt_prelink_cmds 21059 21060# Commands necessary for finishing linking programs. 21061postlink_cmds=$lt_postlink_cmds 21062 21063# Specify filename containing input files. 21064file_list_spec=$lt_file_list_spec 21065 21066# How to hardcode a shared library path into an executable. 21067hardcode_action=$hardcode_action 21068 21069# ### END LIBTOOL CONFIG 21070 21071_LT_EOF 21072 21073 cat <<'_LT_EOF' >> "$cfgfile" 21074 21075# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 21076 21077# func_munge_path_list VARIABLE PATH 21078# ----------------------------------- 21079# VARIABLE is name of variable containing _space_ separated list of 21080# directories to be munged by the contents of PATH, which is string 21081# having a format: 21082# "DIR[:DIR]:" 21083# string "DIR[ DIR]" will be prepended to VARIABLE 21084# ":DIR[:DIR]" 21085# string "DIR[ DIR]" will be appended to VARIABLE 21086# "DIRP[:DIRP]::[DIRA:]DIRA" 21087# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 21088# "DIRA[ DIRA]" will be appended to VARIABLE 21089# "DIR[:DIR]" 21090# VARIABLE will be replaced by "DIR[ DIR]" 21091func_munge_path_list () 21092{ 21093 case x$2 in 21094 x) 21095 ;; 21096 *:) 21097 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 21098 ;; 21099 x:*) 21100 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 21101 ;; 21102 *::*) 21103 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 21104 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 21105 ;; 21106 *) 21107 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 21108 ;; 21109 esac 21110} 21111 21112 21113# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 21114func_cc_basename () 21115{ 21116 for cc_temp in $*""; do 21117 case $cc_temp in 21118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21120 \-*) ;; 21121 *) break;; 21122 esac 21123 done 21124 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21125} 21126 21127 21128# ### END FUNCTIONS SHARED WITH CONFIGURE 21129 21130_LT_EOF 21131 21132 case $host_os in 21133 aix3*) 21134 cat <<\_LT_EOF >> "$cfgfile" 21135# AIX sometimes has problems with the GCC collect2 program. For some 21136# reason, if we set the COLLECT_NAMES environment variable, the problems 21137# vanish in a puff of smoke. 21138if test set != "${COLLECT_NAMES+set}"; then 21139 COLLECT_NAMES= 21140 export COLLECT_NAMES 21141fi 21142_LT_EOF 21143 ;; 21144 esac 21145 21146 21147ltmain=$ac_aux_dir/ltmain.sh 21148 21149 21150 # We use sed instead of cat because bash on DJGPP gets confused if 21151 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21152 # text mode, it properly converts lines to CR/LF. This bash problem 21153 # is reportedly fixed, but why not run on old versions too? 21154 sed '$q' "$ltmain" >> "$cfgfile" \ 21155 || (rm -f "$cfgfile"; exit 1) 21156 21157 mv -f "$cfgfile" "$ofile" || 21158 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21159 chmod +x "$ofile" 21160 21161 ;; 21162 21163 esac 21164done # for ac_tag 21165 21166 21167as_fn_exit 0 21168_ACEOF 21169ac_clean_files=$ac_clean_files_save 21170 21171test $ac_write_fail = 0 || 21172 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 21173 21174 21175# configure is writing to config.log, and then calls config.status. 21176# config.status does its own redirection, appending to config.log. 21177# Unfortunately, on DOS this fails, as config.log is still kept open 21178# by configure, so config.status won't be able to write to it; its 21179# output is simply discarded. So we exec the FD to /dev/null, 21180# effectively closing config.log, so it can be properly (re)opened and 21181# appended to by config.status. When coming back to configure, we 21182# need to make the FD available again. 21183if test "$no_create" != yes; then 21184 ac_cs_success=: 21185 ac_config_status_args= 21186 test "$silent" = yes && 21187 ac_config_status_args="$ac_config_status_args --quiet" 21188 exec 5>/dev/null 21189 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 21190 exec 5>>config.log 21191 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 21192 # would make configure fail if this is the last instruction. 21193 $ac_cs_success || as_fn_exit 1 21194fi 21195if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 21196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 21197$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 21198fi 21199 21200