1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xf86-input-evdev 2.10.6. 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 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 279$0: about your system, including any error possibly output 280$0: before this message. Then install a modern shell, or 281$0: manually run the script under such a shell if you do 282$0: have one." 283 fi 284 exit 1 285fi 286fi 287fi 288SHELL=${CONFIG_SHELL-/bin/sh} 289export SHELL 290# Unset more variables known to interfere with behavior of common tools. 291CLICOLOR_FORCE= GREP_OPTIONS= 292unset CLICOLOR_FORCE GREP_OPTIONS 293 294## --------------------- ## 295## M4sh Shell Functions. ## 296## --------------------- ## 297# as_fn_unset VAR 298# --------------- 299# Portably unset VAR. 300as_fn_unset () 301{ 302 { eval $1=; unset $1;} 303} 304as_unset=as_fn_unset 305 306# as_fn_set_status STATUS 307# ----------------------- 308# Set $? to STATUS, without forking. 309as_fn_set_status () 310{ 311 return $1 312} # as_fn_set_status 313 314# as_fn_exit STATUS 315# ----------------- 316# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 317as_fn_exit () 318{ 319 set +e 320 as_fn_set_status $1 321 exit $1 322} # as_fn_exit 323 324# as_fn_mkdir_p 325# ------------- 326# Create "$as_dir" as a directory, including parents if necessary. 327as_fn_mkdir_p () 328{ 329 330 case $as_dir in #( 331 -*) as_dir=./$as_dir;; 332 esac 333 test -d "$as_dir" || eval $as_mkdir_p || { 334 as_dirs= 335 while :; do 336 case $as_dir in #( 337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 338 *) as_qdir=$as_dir;; 339 esac 340 as_dirs="'$as_qdir' $as_dirs" 341 as_dir=`$as_dirname -- "$as_dir" || 342$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 343 X"$as_dir" : 'X\(//\)[^/]' \| \ 344 X"$as_dir" : 'X\(//\)$' \| \ 345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 346$as_echo X"$as_dir" | 347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)[^/].*/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\/\)$/{ 356 s//\1/ 357 q 358 } 359 /^X\(\/\).*/{ 360 s//\1/ 361 q 362 } 363 s/.*/./; q'` 364 test -d "$as_dir" && break 365 done 366 test -z "$as_dirs" || eval "mkdir $as_dirs" 367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 368 369 370} # as_fn_mkdir_p 371 372# as_fn_executable_p FILE 373# ----------------------- 374# Test if FILE is an executable regular file. 375as_fn_executable_p () 376{ 377 test -f "$1" && test -x "$1" 378} # as_fn_executable_p 379# as_fn_append VAR VALUE 380# ---------------------- 381# Append the text in VALUE to the end of the definition contained in VAR. Take 382# advantage of any shell optimizations that allow amortized linear growth over 383# repeated appends, instead of the typical quadratic growth present in naive 384# implementations. 385if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 386 eval 'as_fn_append () 387 { 388 eval $1+=\$2 389 }' 390else 391 as_fn_append () 392 { 393 eval $1=\$$1\$2 394 } 395fi # as_fn_append 396 397# as_fn_arith ARG... 398# ------------------ 399# Perform arithmetic evaluation on the ARGs, and store the result in the 400# global $as_val. Take advantage of shells that can avoid forks. The arguments 401# must be portable across $(()) and expr. 402if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 403 eval 'as_fn_arith () 404 { 405 as_val=$(( $* )) 406 }' 407else 408 as_fn_arith () 409 { 410 as_val=`expr "$@" || test $? -eq 1` 411 } 412fi # as_fn_arith 413 414 415# as_fn_error STATUS ERROR [LINENO LOG_FD] 416# ---------------------------------------- 417# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 418# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 419# script with STATUS, using 1 if that was 0. 420as_fn_error () 421{ 422 as_status=$1; test $as_status -eq 0 && as_status=1 423 if test "$4"; then 424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 426 fi 427 $as_echo "$as_me: error: $2" >&2 428 as_fn_exit $as_status 429} # as_fn_error 430 431if expr a : '\(a\)' >/dev/null 2>&1 && 432 test "X`expr 00001 : '.*\(...\)'`" = X001; then 433 as_expr=expr 434else 435 as_expr=false 436fi 437 438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 439 as_basename=basename 440else 441 as_basename=false 442fi 443 444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 445 as_dirname=dirname 446else 447 as_dirname=false 448fi 449 450as_me=`$as_basename -- "$0" || 451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 452 X"$0" : 'X\(//\)$' \| \ 453 X"$0" : 'X\(/\)' \| . 2>/dev/null || 454$as_echo X/"$0" | 455 sed '/^.*\/\([^/][^/]*\)\/*$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\/\)$/{ 460 s//\1/ 461 q 462 } 463 /^X\/\(\/\).*/{ 464 s//\1/ 465 q 466 } 467 s/.*/./; q'` 468 469# Avoid depending upon Character Ranges. 470as_cr_letters='abcdefghijklmnopqrstuvwxyz' 471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 472as_cr_Letters=$as_cr_letters$as_cr_LETTERS 473as_cr_digits='0123456789' 474as_cr_alnum=$as_cr_Letters$as_cr_digits 475 476 477 as_lineno_1=$LINENO as_lineno_1a=$LINENO 478 as_lineno_2=$LINENO as_lineno_2a=$LINENO 479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 482 sed -n ' 483 p 484 /[$]LINENO/= 485 ' <$as_myself | 486 sed ' 487 s/[$]LINENO.*/&-/ 488 t lineno 489 b 490 :lineno 491 N 492 :loop 493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 494 t loop 495 s/-\n.*// 496 ' >$as_me.lineno && 497 chmod +x "$as_me.lineno" || 498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 499 500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 501 # already done that, so ensure we don't try to do so again and fall 502 # in an infinite loop. This has already happened in practice. 503 _as_can_reexec=no; export _as_can_reexec 504 # Don't try to exec as it changes $[0], causing all sort of problems 505 # (the dirname of $[0] is not the place where we might find the 506 # original and so on. Autoconf is especially sensitive to this). 507 . "./$as_me.lineno" 508 # Exit status is that of the last command. 509 exit 510} 511 512ECHO_C= ECHO_N= ECHO_T= 513case `echo -n x` in #((((( 514-n*) 515 case `echo 'xy\c'` in 516 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 517 xy) ECHO_C='\c';; 518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 519 ECHO_T=' ';; 520 esac;; 521*) 522 ECHO_N='-n';; 523esac 524 525rm -f conf$$ conf$$.exe conf$$.file 526if test -d conf$$.dir; then 527 rm -f conf$$.dir/conf$$.file 528else 529 rm -f conf$$.dir 530 mkdir conf$$.dir 2>/dev/null 531fi 532if (echo >conf$$.file) 2>/dev/null; then 533 if ln -s conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s='ln -s' 535 # ... but there are two gotchas: 536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 538 # In both cases, we have to default to `cp -pR'. 539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 540 as_ln_s='cp -pR' 541 elif ln conf$$.file conf$$ 2>/dev/null; then 542 as_ln_s=ln 543 else 544 as_ln_s='cp -pR' 545 fi 546else 547 as_ln_s='cp -pR' 548fi 549rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 550rmdir conf$$.dir 2>/dev/null 551 552if mkdir -p . 2>/dev/null; then 553 as_mkdir_p='mkdir -p "$as_dir"' 554else 555 test -d ./-p && rmdir ./-p 556 as_mkdir_p=false 557fi 558 559as_test_x='test -x' 560as_executable_p=as_fn_executable_p 561 562# Sed expression to map a string onto a valid CPP name. 563as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 564 565# Sed expression to map a string onto a valid variable name. 566as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 567 568SHELL=${CONFIG_SHELL-/bin/sh} 569 570 571test -n "$DJDIR" || exec 7<&0 </dev/null 572exec 6>&1 573 574# Name of the host. 575# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 576# so uname gets run too. 577ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 578 579# 580# Initializations. 581# 582ac_default_prefix=/usr/local 583ac_clean_files= 584ac_config_libobj_dir=. 585LIBOBJS= 586cross_compiling=no 587subdirs= 588MFLAGS= 589MAKEFLAGS= 590 591# Identity of this package. 592PACKAGE_NAME='xf86-input-evdev' 593PACKAGE_TARNAME='xf86-input-evdev' 594PACKAGE_VERSION='2.10.6' 595PACKAGE_STRING='xf86-input-evdev 2.10.6' 596PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 597PACKAGE_URL='' 598 599ac_unique_file="Makefile.am" 600# Factoring default headers for most tests. 601ac_includes_default="\ 602#include <stdio.h> 603#ifdef HAVE_SYS_TYPES_H 604# include <sys/types.h> 605#endif 606#ifdef HAVE_SYS_STAT_H 607# include <sys/stat.h> 608#endif 609#ifdef STDC_HEADERS 610# include <stdlib.h> 611# include <stddef.h> 612#else 613# ifdef HAVE_STDLIB_H 614# include <stdlib.h> 615# endif 616#endif 617#ifdef HAVE_STRING_H 618# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 619# include <memory.h> 620# endif 621# include <string.h> 622#endif 623#ifdef HAVE_STRINGS_H 624# include <strings.h> 625#endif 626#ifdef HAVE_INTTYPES_H 627# include <inttypes.h> 628#endif 629#ifdef HAVE_STDINT_H 630# include <stdint.h> 631#endif 632#ifdef HAVE_UNISTD_H 633# include <unistd.h> 634#endif" 635 636ac_subst_vars='am__EXEEXT_FALSE 637am__EXEEXT_TRUE 638LTLIBOBJS 639LIBOBJS 640DRIVER_NAME 641sdkdir 642xorgconfdir 643inputdir 644MTDEV_LIBS 645MTDEV_CFLAGS 646LIBEVDEV_LIBS 647LIBEVDEV_CFLAGS 648UDEV_LIBS 649UDEV_CFLAGS 650XORG_LIBS 651XORG_CFLAGS 652MAN_SUBSTS 653XORG_MAN_PAGE 654ADMIN_MAN_DIR 655DRIVER_MAN_DIR 656MISC_MAN_DIR 657FILE_MAN_DIR 658LIB_MAN_DIR 659APP_MAN_DIR 660ADMIN_MAN_SUFFIX 661DRIVER_MAN_SUFFIX 662MISC_MAN_SUFFIX 663FILE_MAN_SUFFIX 664LIB_MAN_SUFFIX 665APP_MAN_SUFFIX 666INSTALL_CMD 667PKG_CONFIG_LIBDIR 668PKG_CONFIG_PATH 669PKG_CONFIG 670CHANGELOG_CMD 671STRICT_CFLAGS 672CWARNFLAGS 673BASE_CFLAGS 674CPP 675LT_SYS_LIBRARY_PATH 676OTOOL64 677OTOOL 678LIPO 679NMEDIT 680DSYMUTIL 681MANIFEST_TOOL 682RANLIB 683ac_ct_AR 684AR 685DLLTOOL 686OBJDUMP 687LN_S 688NM 689ac_ct_DUMPBIN 690DUMPBIN 691LD 692FGREP 693EGREP 694GREP 695SED 696am__fastdepCC_FALSE 697am__fastdepCC_TRUE 698CCDEPMODE 699am__nodep 700AMDEPBACKSLASH 701AMDEP_FALSE 702AMDEP_TRUE 703am__quote 704am__include 705DEPDIR 706OBJEXT 707EXEEXT 708ac_ct_CC 709CPPFLAGS 710LDFLAGS 711CFLAGS 712CC 713host_os 714host_vendor 715host_cpu 716host 717build_os 718build_vendor 719build_cpu 720build 721LIBTOOL 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724AM_DEFAULT_V 725AM_V 726am__untar 727am__tar 728AMTAR 729am__leading_dot 730SET_MAKE 731AWK 732mkdir_p 733MKDIR_P 734INSTALL_STRIP_PROGRAM 735STRIP 736install_sh 737MAKEINFO 738AUTOHEADER 739AUTOMAKE 740AUTOCONF 741ACLOCAL 742VERSION 743PACKAGE 744CYGPATH_W 745am__isrc 746INSTALL_DATA 747INSTALL_SCRIPT 748INSTALL_PROGRAM 749target_alias 750host_alias 751build_alias 752LIBS 753ECHO_T 754ECHO_N 755ECHO_C 756DEFS 757mandir 758localedir 759libdir 760psdir 761pdfdir 762dvidir 763htmldir 764infodir 765docdir 766oldincludedir 767includedir 768localstatedir 769sharedstatedir 770sysconfdir 771datadir 772datarootdir 773libexecdir 774sbindir 775bindir 776program_transform_name 777prefix 778exec_prefix 779PACKAGE_URL 780PACKAGE_BUGREPORT 781PACKAGE_STRING 782PACKAGE_VERSION 783PACKAGE_TARNAME 784PACKAGE_NAME 785PATH_SEPARATOR 786SHELL' 787ac_subst_files='' 788ac_user_opts=' 789enable_option_checking 790enable_silent_rules 791enable_static 792enable_shared 793with_pic 794enable_fast_install 795with_aix_soname 796enable_dependency_tracking 797with_gnu_ld 798with_sysroot 799enable_libtool_lock 800enable_selective_werror 801enable_strict_compilation 802with_xorg_module_dir 803with_xorg_conf_dir 804with_sdkdir 805' 806 ac_precious_vars='build_alias 807host_alias 808target_alias 809CC 810CFLAGS 811LDFLAGS 812LIBS 813CPPFLAGS 814LT_SYS_LIBRARY_PATH 815CPP 816PKG_CONFIG 817PKG_CONFIG_PATH 818PKG_CONFIG_LIBDIR 819XORG_CFLAGS 820XORG_LIBS 821UDEV_CFLAGS 822UDEV_LIBS 823LIBEVDEV_CFLAGS 824LIBEVDEV_LIBS 825MTDEV_CFLAGS 826MTDEV_LIBS' 827 828 829# Initialize some variables set by options. 830ac_init_help= 831ac_init_version=false 832ac_unrecognized_opts= 833ac_unrecognized_sep= 834# The variables have the same names as the options, with 835# dashes changed to underlines. 836cache_file=/dev/null 837exec_prefix=NONE 838no_create= 839no_recursion= 840prefix=NONE 841program_prefix=NONE 842program_suffix=NONE 843program_transform_name=s,x,x, 844silent= 845site= 846srcdir= 847verbose= 848x_includes=NONE 849x_libraries=NONE 850 851# Installation directory options. 852# These are left unexpanded so users can "make install exec_prefix=/foo" 853# and all the variables that are supposed to be based on exec_prefix 854# by default will actually change. 855# Use braces instead of parens because sh, perl, etc. also accept them. 856# (The list follows the same order as the GNU Coding Standards.) 857bindir='${exec_prefix}/bin' 858sbindir='${exec_prefix}/sbin' 859libexecdir='${exec_prefix}/libexec' 860datarootdir='${prefix}/share' 861datadir='${datarootdir}' 862sysconfdir='${prefix}/etc' 863sharedstatedir='${prefix}/com' 864localstatedir='${prefix}/var' 865includedir='${prefix}/include' 866oldincludedir='/usr/include' 867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 868infodir='${datarootdir}/info' 869htmldir='${docdir}' 870dvidir='${docdir}' 871pdfdir='${docdir}' 872psdir='${docdir}' 873libdir='${exec_prefix}/lib' 874localedir='${datarootdir}/locale' 875mandir='${datarootdir}/man' 876 877ac_prev= 878ac_dashdash= 879for ac_option 880do 881 # If the previous option needs an argument, assign it. 882 if test -n "$ac_prev"; then 883 eval $ac_prev=\$ac_option 884 ac_prev= 885 continue 886 fi 887 888 case $ac_option in 889 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 890 *=) ac_optarg= ;; 891 *) ac_optarg=yes ;; 892 esac 893 894 # Accept the important Cygnus configure options, so we can diagnose typos. 895 896 case $ac_dashdash$ac_option in 897 --) 898 ac_dashdash=yes ;; 899 900 -bindir | --bindir | --bindi | --bind | --bin | --bi) 901 ac_prev=bindir ;; 902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 903 bindir=$ac_optarg ;; 904 905 -build | --build | --buil | --bui | --bu) 906 ac_prev=build_alias ;; 907 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 908 build_alias=$ac_optarg ;; 909 910 -cache-file | --cache-file | --cache-fil | --cache-fi \ 911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 912 ac_prev=cache_file ;; 913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 915 cache_file=$ac_optarg ;; 916 917 --config-cache | -C) 918 cache_file=config.cache ;; 919 920 -datadir | --datadir | --datadi | --datad) 921 ac_prev=datadir ;; 922 -datadir=* | --datadir=* | --datadi=* | --datad=*) 923 datadir=$ac_optarg ;; 924 925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 926 | --dataroo | --dataro | --datar) 927 ac_prev=datarootdir ;; 928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 930 datarootdir=$ac_optarg ;; 931 932 -disable-* | --disable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=no ;; 947 948 -docdir | --docdir | --docdi | --doc | --do) 949 ac_prev=docdir ;; 950 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 951 docdir=$ac_optarg ;; 952 953 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 954 ac_prev=dvidir ;; 955 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 956 dvidir=$ac_optarg ;; 957 958 -enable-* | --enable-*) 959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 960 # Reject names that are not valid shell variable names. 961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 962 as_fn_error $? "invalid feature name: $ac_useropt" 963 ac_useropt_orig=$ac_useropt 964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 965 case $ac_user_opts in 966 *" 967"enable_$ac_useropt" 968"*) ;; 969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 970 ac_unrecognized_sep=', ';; 971 esac 972 eval enable_$ac_useropt=\$ac_optarg ;; 973 974 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 975 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 976 | --exec | --exe | --ex) 977 ac_prev=exec_prefix ;; 978 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 979 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 980 | --exec=* | --exe=* | --ex=*) 981 exec_prefix=$ac_optarg ;; 982 983 -gas | --gas | --ga | --g) 984 # Obsolete; use --with-gas. 985 with_gas=yes ;; 986 987 -help | --help | --hel | --he | -h) 988 ac_init_help=long ;; 989 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 990 ac_init_help=recursive ;; 991 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 992 ac_init_help=short ;; 993 994 -host | --host | --hos | --ho) 995 ac_prev=host_alias ;; 996 -host=* | --host=* | --hos=* | --ho=*) 997 host_alias=$ac_optarg ;; 998 999 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1000 ac_prev=htmldir ;; 1001 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1002 | --ht=*) 1003 htmldir=$ac_optarg ;; 1004 1005 -includedir | --includedir | --includedi | --included | --include \ 1006 | --includ | --inclu | --incl | --inc) 1007 ac_prev=includedir ;; 1008 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1009 | --includ=* | --inclu=* | --incl=* | --inc=*) 1010 includedir=$ac_optarg ;; 1011 1012 -infodir | --infodir | --infodi | --infod | --info | --inf) 1013 ac_prev=infodir ;; 1014 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1015 infodir=$ac_optarg ;; 1016 1017 -libdir | --libdir | --libdi | --libd) 1018 ac_prev=libdir ;; 1019 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1020 libdir=$ac_optarg ;; 1021 1022 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1023 | --libexe | --libex | --libe) 1024 ac_prev=libexecdir ;; 1025 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1026 | --libexe=* | --libex=* | --libe=*) 1027 libexecdir=$ac_optarg ;; 1028 1029 -localedir | --localedir | --localedi | --localed | --locale) 1030 ac_prev=localedir ;; 1031 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1032 localedir=$ac_optarg ;; 1033 1034 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1035 | --localstate | --localstat | --localsta | --localst | --locals) 1036 ac_prev=localstatedir ;; 1037 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1038 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1039 localstatedir=$ac_optarg ;; 1040 1041 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1042 ac_prev=mandir ;; 1043 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1044 mandir=$ac_optarg ;; 1045 1046 -nfp | --nfp | --nf) 1047 # Obsolete; use --without-fp. 1048 with_fp=no ;; 1049 1050 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1051 | --no-cr | --no-c | -n) 1052 no_create=yes ;; 1053 1054 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1055 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1056 no_recursion=yes ;; 1057 1058 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1059 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1060 | --oldin | --oldi | --old | --ol | --o) 1061 ac_prev=oldincludedir ;; 1062 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1063 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1064 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1065 oldincludedir=$ac_optarg ;; 1066 1067 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1068 ac_prev=prefix ;; 1069 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1070 prefix=$ac_optarg ;; 1071 1072 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1073 | --program-pre | --program-pr | --program-p) 1074 ac_prev=program_prefix ;; 1075 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1076 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1077 program_prefix=$ac_optarg ;; 1078 1079 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1080 | --program-suf | --program-su | --program-s) 1081 ac_prev=program_suffix ;; 1082 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1083 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1084 program_suffix=$ac_optarg ;; 1085 1086 -program-transform-name | --program-transform-name \ 1087 | --program-transform-nam | --program-transform-na \ 1088 | --program-transform-n | --program-transform- \ 1089 | --program-transform | --program-transfor \ 1090 | --program-transfo | --program-transf \ 1091 | --program-trans | --program-tran \ 1092 | --progr-tra | --program-tr | --program-t) 1093 ac_prev=program_transform_name ;; 1094 -program-transform-name=* | --program-transform-name=* \ 1095 | --program-transform-nam=* | --program-transform-na=* \ 1096 | --program-transform-n=* | --program-transform-=* \ 1097 | --program-transform=* | --program-transfor=* \ 1098 | --program-transfo=* | --program-transf=* \ 1099 | --program-trans=* | --program-tran=* \ 1100 | --progr-tra=* | --program-tr=* | --program-t=*) 1101 program_transform_name=$ac_optarg ;; 1102 1103 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1104 ac_prev=pdfdir ;; 1105 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1106 pdfdir=$ac_optarg ;; 1107 1108 -psdir | --psdir | --psdi | --psd | --ps) 1109 ac_prev=psdir ;; 1110 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1111 psdir=$ac_optarg ;; 1112 1113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1114 | -silent | --silent | --silen | --sile | --sil) 1115 silent=yes ;; 1116 1117 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1118 ac_prev=sbindir ;; 1119 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1120 | --sbi=* | --sb=*) 1121 sbindir=$ac_optarg ;; 1122 1123 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1124 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1125 | --sharedst | --shareds | --shared | --share | --shar \ 1126 | --sha | --sh) 1127 ac_prev=sharedstatedir ;; 1128 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1129 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1130 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1131 | --sha=* | --sh=*) 1132 sharedstatedir=$ac_optarg ;; 1133 1134 -site | --site | --sit) 1135 ac_prev=site ;; 1136 -site=* | --site=* | --sit=*) 1137 site=$ac_optarg ;; 1138 1139 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1140 ac_prev=srcdir ;; 1141 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1142 srcdir=$ac_optarg ;; 1143 1144 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1145 | --syscon | --sysco | --sysc | --sys | --sy) 1146 ac_prev=sysconfdir ;; 1147 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1148 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1149 sysconfdir=$ac_optarg ;; 1150 1151 -target | --target | --targe | --targ | --tar | --ta | --t) 1152 ac_prev=target_alias ;; 1153 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1154 target_alias=$ac_optarg ;; 1155 1156 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1157 verbose=yes ;; 1158 1159 -version | --version | --versio | --versi | --vers | -V) 1160 ac_init_version=: ;; 1161 1162 -with-* | --with-*) 1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1164 # Reject names that are not valid shell variable names. 1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1166 as_fn_error $? "invalid package name: $ac_useropt" 1167 ac_useropt_orig=$ac_useropt 1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1169 case $ac_user_opts in 1170 *" 1171"with_$ac_useropt" 1172"*) ;; 1173 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1174 ac_unrecognized_sep=', ';; 1175 esac 1176 eval with_$ac_useropt=\$ac_optarg ;; 1177 1178 -without-* | --without-*) 1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1180 # Reject names that are not valid shell variable names. 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1182 as_fn_error $? "invalid package name: $ac_useropt" 1183 ac_useropt_orig=$ac_useropt 1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1185 case $ac_user_opts in 1186 *" 1187"with_$ac_useropt" 1188"*) ;; 1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1190 ac_unrecognized_sep=', ';; 1191 esac 1192 eval with_$ac_useropt=no ;; 1193 1194 --x) 1195 # Obsolete; use --with-x. 1196 with_x=yes ;; 1197 1198 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1199 | --x-incl | --x-inc | --x-in | --x-i) 1200 ac_prev=x_includes ;; 1201 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1202 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1203 x_includes=$ac_optarg ;; 1204 1205 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1206 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1207 ac_prev=x_libraries ;; 1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1210 x_libraries=$ac_optarg ;; 1211 1212 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1213Try \`$0 --help' for more information" 1214 ;; 1215 1216 *=*) 1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1218 # Reject names that are not valid shell variable names. 1219 case $ac_envvar in #( 1220 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1221 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1222 esac 1223 eval $ac_envvar=\$ac_optarg 1224 export $ac_envvar ;; 1225 1226 *) 1227 # FIXME: should be removed in autoconf 3.0. 1228 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1229 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1230 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1231 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1232 ;; 1233 1234 esac 1235done 1236 1237if test -n "$ac_prev"; then 1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1239 as_fn_error $? "missing argument to $ac_option" 1240fi 1241 1242if test -n "$ac_unrecognized_opts"; then 1243 case $enable_option_checking in 1244 no) ;; 1245 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1247 esac 1248fi 1249 1250# Check all directory arguments for consistency. 1251for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1252 datadir sysconfdir sharedstatedir localstatedir includedir \ 1253 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1254 libdir localedir mandir 1255do 1256 eval ac_val=\$$ac_var 1257 # Remove trailing slashes. 1258 case $ac_val in 1259 */ ) 1260 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1261 eval $ac_var=\$ac_val;; 1262 esac 1263 # Be sure to have absolute directory names. 1264 case $ac_val in 1265 [\\/$]* | ?:[\\/]* ) continue;; 1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1267 esac 1268 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1269done 1270 1271# There might be people who depend on the old broken behavior: `$host' 1272# used to hold the argument of --host etc. 1273# FIXME: To remove some day. 1274build=$build_alias 1275host=$host_alias 1276target=$target_alias 1277 1278# FIXME: To remove some day. 1279if test "x$host_alias" != x; then 1280 if test "x$build_alias" = x; then 1281 cross_compiling=maybe 1282 elif test "x$build_alias" != "x$host_alias"; then 1283 cross_compiling=yes 1284 fi 1285fi 1286 1287ac_tool_prefix= 1288test -n "$host_alias" && ac_tool_prefix=$host_alias- 1289 1290test "$silent" = yes && exec 6>/dev/null 1291 1292 1293ac_pwd=`pwd` && test -n "$ac_pwd" && 1294ac_ls_di=`ls -di .` && 1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1296 as_fn_error $? "working directory cannot be determined" 1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1298 as_fn_error $? "pwd does not report name of working directory" 1299 1300 1301# Find the source files, if location was not specified. 1302if test -z "$srcdir"; then 1303 ac_srcdir_defaulted=yes 1304 # Try the directory containing this script, then the parent directory. 1305 ac_confdir=`$as_dirname -- "$as_myself" || 1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1307 X"$as_myself" : 'X\(//\)[^/]' \| \ 1308 X"$as_myself" : 'X\(//\)$' \| \ 1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1310$as_echo X"$as_myself" | 1311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1312 s//\1/ 1313 q 1314 } 1315 /^X\(\/\/\)[^/].*/{ 1316 s//\1/ 1317 q 1318 } 1319 /^X\(\/\/\)$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\).*/{ 1324 s//\1/ 1325 q 1326 } 1327 s/.*/./; q'` 1328 srcdir=$ac_confdir 1329 if test ! -r "$srcdir/$ac_unique_file"; then 1330 srcdir=.. 1331 fi 1332else 1333 ac_srcdir_defaulted=no 1334fi 1335if test ! -r "$srcdir/$ac_unique_file"; then 1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1337 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1338fi 1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1340ac_abs_confdir=`( 1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1342 pwd)` 1343# When building in place, set srcdir=. 1344if test "$ac_abs_confdir" = "$ac_pwd"; then 1345 srcdir=. 1346fi 1347# Remove unnecessary trailing slashes from srcdir. 1348# Double slashes in file names in object file debugging info 1349# mess up M-x gdb in Emacs. 1350case $srcdir in 1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1352esac 1353for ac_var in $ac_precious_vars; do 1354 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_env_${ac_var}_value=\$${ac_var} 1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1357 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1358done 1359 1360# 1361# Report the --help message. 1362# 1363if test "$ac_init_help" = "long"; then 1364 # Omit some internal or obsolete options to make the list less imposing. 1365 # This message is too long to be a string in the A/UX 3.1 sh. 1366 cat <<_ACEOF 1367\`configure' configures xf86-input-evdev 2.10.6 to adapt to many kinds of systems. 1368 1369Usage: $0 [OPTION]... [VAR=VALUE]... 1370 1371To assign environment variables (e.g., CC, CFLAGS...), specify them as 1372VAR=VALUE. See below for descriptions of some of the useful variables. 1373 1374Defaults for the options are specified in brackets. 1375 1376Configuration: 1377 -h, --help display this help and exit 1378 --help=short display options specific to this package 1379 --help=recursive display the short help of all the included packages 1380 -V, --version display version information and exit 1381 -q, --quiet, --silent do not print \`checking ...' messages 1382 --cache-file=FILE cache test results in FILE [disabled] 1383 -C, --config-cache alias for \`--cache-file=config.cache' 1384 -n, --no-create do not create output files 1385 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1386 1387Installation directories: 1388 --prefix=PREFIX install architecture-independent files in PREFIX 1389 [$ac_default_prefix] 1390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1391 [PREFIX] 1392 1393By default, \`make install' will install all the files in 1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1395an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1396for instance \`--prefix=\$HOME'. 1397 1398For better control, use the options below. 1399 1400Fine tuning of the installation directories: 1401 --bindir=DIR user executables [EPREFIX/bin] 1402 --sbindir=DIR system admin executables [EPREFIX/sbin] 1403 --libexecdir=DIR program executables [EPREFIX/libexec] 1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1407 --libdir=DIR object code libraries [EPREFIX/lib] 1408 --includedir=DIR C header files [PREFIX/include] 1409 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1412 --infodir=DIR info documentation [DATAROOTDIR/info] 1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1414 --mandir=DIR man documentation [DATAROOTDIR/man] 1415 --docdir=DIR documentation root 1416 [DATAROOTDIR/doc/xf86-input-evdev] 1417 --htmldir=DIR html documentation [DOCDIR] 1418 --dvidir=DIR dvi documentation [DOCDIR] 1419 --pdfdir=DIR pdf documentation [DOCDIR] 1420 --psdir=DIR ps documentation [DOCDIR] 1421_ACEOF 1422 1423 cat <<\_ACEOF 1424 1425Program names: 1426 --program-prefix=PREFIX prepend PREFIX to installed program names 1427 --program-suffix=SUFFIX append SUFFIX to installed program names 1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1429 1430System types: 1431 --build=BUILD configure for building on BUILD [guessed] 1432 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1433_ACEOF 1434fi 1435 1436if test -n "$ac_init_help"; then 1437 case $ac_init_help in 1438 short | recursive ) echo "Configuration of xf86-input-evdev 2.10.6:";; 1439 esac 1440 cat <<\_ACEOF 1441 1442Optional Features: 1443 --disable-option-checking ignore unrecognized --enable/--with options 1444 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1445 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1446 --enable-silent-rules less verbose build output (undo: "make V=1") 1447 --disable-silent-rules verbose build output (undo: "make V=0") 1448 --enable-static[=PKGS] build static libraries [default=no] 1449 --enable-shared[=PKGS] build shared libraries [default=yes] 1450 --enable-fast-install[=PKGS] 1451 optimize for fast installation [default=yes] 1452 --enable-dependency-tracking 1453 do not reject slow dependency extractors 1454 --disable-dependency-tracking 1455 speeds up one-time build 1456 --disable-libtool-lock avoid locking (might break parallel builds) 1457 --disable-selective-werror 1458 Turn off selective compiler errors. (default: 1459 enabled) 1460 --enable-strict-compilation 1461 Enable all warnings from compiler and make them 1462 errors (default: disabled) 1463 1464Optional Packages: 1465 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1466 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1467 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1468 both] 1469 --with-aix-soname=aix|svr4|both 1470 shared library versioning (aka "SONAME") variant to 1471 provide on AIX, [default=aix]. 1472 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1473 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1474 compiler's sysroot if not specified). 1475 --with-xorg-module-dir=DIR 1476 Default xorg module directory 1477 [[default=$libdir/xorg/modules]] 1478 --with-xorg-conf-dir=DIR 1479 Default xorg.conf.d directory 1480 [[default=$prefix/share/X11/xorg.conf.d/]] 1481 1482 1483Some influential environment variables: 1484 CC C compiler command 1485 CFLAGS C compiler flags 1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1487 nonstandard directory <lib dir> 1488 LIBS libraries to pass to the linker, e.g. -l<library> 1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1490 you have headers in a nonstandard directory <include dir> 1491 LT_SYS_LIBRARY_PATH 1492 User-defined run-time library search path. 1493 CPP C preprocessor 1494 PKG_CONFIG path to pkg-config utility 1495 PKG_CONFIG_PATH 1496 directories to add to pkg-config's search path 1497 PKG_CONFIG_LIBDIR 1498 path overriding pkg-config's built-in search path 1499 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config 1500 XORG_LIBS linker flags for XORG, overriding pkg-config 1501 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config 1502 UDEV_LIBS linker flags for UDEV, overriding pkg-config 1503 LIBEVDEV_CFLAGS 1504 C compiler flags for LIBEVDEV, overriding pkg-config 1505 LIBEVDEV_LIBS 1506 linker flags for LIBEVDEV, overriding pkg-config 1507 MTDEV_CFLAGS 1508 C compiler flags for MTDEV, overriding pkg-config 1509 MTDEV_LIBS linker flags for MTDEV, overriding pkg-config 1510 1511Use these variables to override the choices made by `configure' or to help 1512it to find libraries and programs with nonstandard names/locations. 1513 1514Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1515_ACEOF 1516ac_status=$? 1517fi 1518 1519if test "$ac_init_help" = "recursive"; then 1520 # If there are subdirs, report their specific --help. 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1522 test -d "$ac_dir" || 1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1524 continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577xf86-input-evdev configure 2.10.6 1578generated by GNU Autoconf 2.69 1579 1580Copyright (C) 2012 Free Software Foundation, Inc. 1581This configure script is free software; the Free Software Foundation 1582gives unlimited permission to copy, distribute and modify it. 1583_ACEOF 1584 exit 1585fi 1586 1587## ------------------------ ## 1588## Autoconf initialization. ## 1589## ------------------------ ## 1590 1591# ac_fn_c_try_compile LINENO 1592# -------------------------- 1593# Try to compile conftest.$ac_ext, and return whether this succeeded. 1594ac_fn_c_try_compile () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 rm -f conftest.$ac_objext 1598 if { { ac_try="$ac_compile" 1599case "(($ac_try" in 1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1601 *) ac_try_echo=$ac_try;; 1602esac 1603eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1604$as_echo "$ac_try_echo"; } >&5 1605 (eval "$ac_compile") 2>conftest.err 1606 ac_status=$? 1607 if test -s conftest.err; then 1608 grep -v '^ *+' conftest.err >conftest.er1 1609 cat conftest.er1 >&5 1610 mv -f conftest.er1 conftest.err 1611 fi 1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1613 test $ac_status = 0; } && { 1614 test -z "$ac_c_werror_flag" || 1615 test ! -s conftest.err 1616 } && test -s conftest.$ac_objext; then : 1617 ac_retval=0 1618else 1619 $as_echo "$as_me: failed program was:" >&5 1620sed 's/^/| /' conftest.$ac_ext >&5 1621 1622 ac_retval=1 1623fi 1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1625 as_fn_set_status $ac_retval 1626 1627} # ac_fn_c_try_compile 1628 1629# ac_fn_c_try_link LINENO 1630# ----------------------- 1631# Try to link conftest.$ac_ext, and return whether this succeeded. 1632ac_fn_c_try_link () 1633{ 1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1635 rm -f conftest.$ac_objext conftest$ac_exeext 1636 if { { ac_try="$ac_link" 1637case "(($ac_try" in 1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1639 *) ac_try_echo=$ac_try;; 1640esac 1641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1642$as_echo "$ac_try_echo"; } >&5 1643 (eval "$ac_link") 2>conftest.err 1644 ac_status=$? 1645 if test -s conftest.err; then 1646 grep -v '^ *+' conftest.err >conftest.er1 1647 cat conftest.er1 >&5 1648 mv -f conftest.er1 conftest.err 1649 fi 1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1651 test $ac_status = 0; } && { 1652 test -z "$ac_c_werror_flag" || 1653 test ! -s conftest.err 1654 } && test -s conftest$ac_exeext && { 1655 test "$cross_compiling" = yes || 1656 test -x conftest$ac_exeext 1657 }; then : 1658 ac_retval=0 1659else 1660 $as_echo "$as_me: failed program was:" >&5 1661sed 's/^/| /' conftest.$ac_ext >&5 1662 1663 ac_retval=1 1664fi 1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1667 # interfere with the next link command; also delete a directory that is 1668 # left behind by Apple's compiler. We do this before executing the actions. 1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1671 as_fn_set_status $ac_retval 1672 1673} # ac_fn_c_try_link 1674 1675# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1676# ------------------------------------------------------- 1677# Tests whether HEADER exists and can be compiled using the include files in 1678# INCLUDES, setting the cache variable VAR accordingly. 1679ac_fn_c_check_header_compile () 1680{ 1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1683$as_echo_n "checking for $2... " >&6; } 1684if eval \${$3+:} false; then : 1685 $as_echo_n "(cached) " >&6 1686else 1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1688/* end confdefs.h. */ 1689$4 1690#include <$2> 1691_ACEOF 1692if ac_fn_c_try_compile "$LINENO"; then : 1693 eval "$3=yes" 1694else 1695 eval "$3=no" 1696fi 1697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1698fi 1699eval ac_res=\$$3 1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1701$as_echo "$ac_res" >&6; } 1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1703 1704} # ac_fn_c_check_header_compile 1705 1706# ac_fn_c_try_cpp LINENO 1707# ---------------------- 1708# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1709ac_fn_c_try_cpp () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 if { { ac_try="$ac_cpp conftest.$ac_ext" 1713case "(($ac_try" in 1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1715 *) ac_try_echo=$ac_try;; 1716esac 1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1718$as_echo "$ac_try_echo"; } >&5 1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1720 ac_status=$? 1721 if test -s conftest.err; then 1722 grep -v '^ *+' conftest.err >conftest.er1 1723 cat conftest.er1 >&5 1724 mv -f conftest.er1 conftest.err 1725 fi 1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1727 test $ac_status = 0; } > conftest.i && { 1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1729 test ! -s conftest.err 1730 }; then : 1731 ac_retval=0 1732else 1733 $as_echo "$as_me: failed program was:" >&5 1734sed 's/^/| /' conftest.$ac_ext >&5 1735 1736 ac_retval=1 1737fi 1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1739 as_fn_set_status $ac_retval 1740 1741} # ac_fn_c_try_cpp 1742 1743# ac_fn_c_try_run LINENO 1744# ---------------------- 1745# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1746# that executables *can* be run. 1747ac_fn_c_try_run () 1748{ 1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1750 if { { ac_try="$ac_link" 1751case "(($ac_try" in 1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1753 *) ac_try_echo=$ac_try;; 1754esac 1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1756$as_echo "$ac_try_echo"; } >&5 1757 (eval "$ac_link") 2>&5 1758 ac_status=$? 1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1761 { { case "(($ac_try" in 1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1763 *) ac_try_echo=$ac_try;; 1764esac 1765eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1766$as_echo "$ac_try_echo"; } >&5 1767 (eval "$ac_try") 2>&5 1768 ac_status=$? 1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1770 test $ac_status = 0; }; }; then : 1771 ac_retval=0 1772else 1773 $as_echo "$as_me: program exited with status $ac_status" >&5 1774 $as_echo "$as_me: failed program was:" >&5 1775sed 's/^/| /' conftest.$ac_ext >&5 1776 1777 ac_retval=$ac_status 1778fi 1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1781 as_fn_set_status $ac_retval 1782 1783} # ac_fn_c_try_run 1784 1785# ac_fn_c_check_func LINENO FUNC VAR 1786# ---------------------------------- 1787# Tests whether FUNC exists, setting the cache variable VAR accordingly 1788ac_fn_c_check_func () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1792$as_echo_n "checking for $2... " >&6; } 1793if eval \${$3+:} false; then : 1794 $as_echo_n "(cached) " >&6 1795else 1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1797/* end confdefs.h. */ 1798/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1800#define $2 innocuous_$2 1801 1802/* System header to define __stub macros and hopefully few prototypes, 1803 which can conflict with char $2 (); below. 1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1805 <limits.h> exists even on freestanding compilers. */ 1806 1807#ifdef __STDC__ 1808# include <limits.h> 1809#else 1810# include <assert.h> 1811#endif 1812 1813#undef $2 1814 1815/* Override any GCC internal prototype to avoid an error. 1816 Use char because int might match the return type of a GCC 1817 builtin and then its argument prototype would still apply. */ 1818#ifdef __cplusplus 1819extern "C" 1820#endif 1821char $2 (); 1822/* The GNU C library defines this for functions which it implements 1823 to always fail with ENOSYS. Some functions are actually named 1824 something starting with __ and the normal name is an alias. */ 1825#if defined __stub_$2 || defined __stub___$2 1826choke me 1827#endif 1828 1829int 1830main () 1831{ 1832return $2 (); 1833 ; 1834 return 0; 1835} 1836_ACEOF 1837if ac_fn_c_try_link "$LINENO"; then : 1838 eval "$3=yes" 1839else 1840 eval "$3=no" 1841fi 1842rm -f core conftest.err conftest.$ac_objext \ 1843 conftest$ac_exeext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 1850} # ac_fn_c_check_func 1851 1852# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1853# --------------------------------------------- 1854# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1855# accordingly. 1856ac_fn_c_check_decl () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 as_decl_name=`echo $2|sed 's/ *(.*//'` 1860 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1862$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1863if eval \${$3+:} false; then : 1864 $as_echo_n "(cached) " >&6 1865else 1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1867/* end confdefs.h. */ 1868$4 1869int 1870main () 1871{ 1872#ifndef $as_decl_name 1873#ifdef __cplusplus 1874 (void) $as_decl_use; 1875#else 1876 (void) $as_decl_name; 1877#endif 1878#endif 1879 1880 ; 1881 return 0; 1882} 1883_ACEOF 1884if ac_fn_c_try_compile "$LINENO"; then : 1885 eval "$3=yes" 1886else 1887 eval "$3=no" 1888fi 1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1890fi 1891eval ac_res=\$$3 1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1893$as_echo "$ac_res" >&6; } 1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1895 1896} # ac_fn_c_check_decl 1897cat >config.log <<_ACEOF 1898This file contains any messages produced by compilers while 1899running configure, to aid debugging if configure makes a mistake. 1900 1901It was created by xf86-input-evdev $as_me 2.10.6, which was 1902generated by GNU Autoconf 2.69. Invocation command line was 1903 1904 $ $0 $@ 1905 1906_ACEOF 1907exec 5>>config.log 1908{ 1909cat <<_ASUNAME 1910## --------- ## 1911## Platform. ## 1912## --------- ## 1913 1914hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1915uname -m = `(uname -m) 2>/dev/null || echo unknown` 1916uname -r = `(uname -r) 2>/dev/null || echo unknown` 1917uname -s = `(uname -s) 2>/dev/null || echo unknown` 1918uname -v = `(uname -v) 2>/dev/null || echo unknown` 1919 1920/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1921/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1922 1923/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1924/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1925/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1926/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1927/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1928/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1929/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1930 1931_ASUNAME 1932 1933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1934for as_dir in $PATH 1935do 1936 IFS=$as_save_IFS 1937 test -z "$as_dir" && as_dir=. 1938 $as_echo "PATH: $as_dir" 1939 done 1940IFS=$as_save_IFS 1941 1942} >&5 1943 1944cat >&5 <<_ACEOF 1945 1946 1947## ----------- ## 1948## Core tests. ## 1949## ----------- ## 1950 1951_ACEOF 1952 1953 1954# Keep a trace of the command line. 1955# Strip out --no-create and --no-recursion so they do not pile up. 1956# Strip out --silent because we don't want to record it for future runs. 1957# Also quote any args containing shell meta-characters. 1958# Make two passes to allow for proper duplicate-argument suppression. 1959ac_configure_args= 1960ac_configure_args0= 1961ac_configure_args1= 1962ac_must_keep_next=false 1963for ac_pass in 1 2 1964do 1965 for ac_arg 1966 do 1967 case $ac_arg in 1968 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1970 | -silent | --silent | --silen | --sile | --sil) 1971 continue ;; 1972 *\'*) 1973 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1974 esac 1975 case $ac_pass in 1976 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1977 2) 1978 as_fn_append ac_configure_args1 " '$ac_arg'" 1979 if test $ac_must_keep_next = true; then 1980 ac_must_keep_next=false # Got value, back to normal. 1981 else 1982 case $ac_arg in 1983 *=* | --config-cache | -C | -disable-* | --disable-* \ 1984 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1985 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1986 | -with-* | --with-* | -without-* | --without-* | --x) 1987 case "$ac_configure_args0 " in 1988 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1989 esac 1990 ;; 1991 -* ) ac_must_keep_next=true ;; 1992 esac 1993 fi 1994 as_fn_append ac_configure_args " '$ac_arg'" 1995 ;; 1996 esac 1997 done 1998done 1999{ ac_configure_args0=; unset ac_configure_args0;} 2000{ ac_configure_args1=; unset ac_configure_args1;} 2001 2002# When interrupted or exit'd, cleanup temporary files, and complete 2003# config.log. We remove comments because anyway the quotes in there 2004# would cause problems or look ugly. 2005# WARNING: Use '\'' to represent an apostrophe within the trap. 2006# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2007trap 'exit_status=$? 2008 # Save into config.log some information that might help in debugging. 2009 { 2010 echo 2011 2012 $as_echo "## ---------------- ## 2013## Cache variables. ## 2014## ---------------- ##" 2015 echo 2016 # The following way of writing the cache mishandles newlines in values, 2017( 2018 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2019 eval ac_val=\$$ac_var 2020 case $ac_val in #( 2021 *${as_nl}*) 2022 case $ac_var in #( 2023 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2024$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2025 esac 2026 case $ac_var in #( 2027 _ | IFS | as_nl) ;; #( 2028 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2029 *) { eval $ac_var=; unset $ac_var;} ;; 2030 esac ;; 2031 esac 2032 done 2033 (set) 2>&1 | 2034 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2035 *${as_nl}ac_space=\ *) 2036 sed -n \ 2037 "s/'\''/'\''\\\\'\'''\''/g; 2038 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2039 ;; #( 2040 *) 2041 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2042 ;; 2043 esac | 2044 sort 2045) 2046 echo 2047 2048 $as_echo "## ----------------- ## 2049## Output variables. ## 2050## ----------------- ##" 2051 echo 2052 for ac_var in $ac_subst_vars 2053 do 2054 eval ac_val=\$$ac_var 2055 case $ac_val in 2056 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2057 esac 2058 $as_echo "$ac_var='\''$ac_val'\''" 2059 done | sort 2060 echo 2061 2062 if test -n "$ac_subst_files"; then 2063 $as_echo "## ------------------- ## 2064## File substitutions. ## 2065## ------------------- ##" 2066 echo 2067 for ac_var in $ac_subst_files 2068 do 2069 eval ac_val=\$$ac_var 2070 case $ac_val in 2071 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2072 esac 2073 $as_echo "$ac_var='\''$ac_val'\''" 2074 done | sort 2075 echo 2076 fi 2077 2078 if test -s confdefs.h; then 2079 $as_echo "## ----------- ## 2080## confdefs.h. ## 2081## ----------- ##" 2082 echo 2083 cat confdefs.h 2084 echo 2085 fi 2086 test "$ac_signal" != 0 && 2087 $as_echo "$as_me: caught signal $ac_signal" 2088 $as_echo "$as_me: exit $exit_status" 2089 } >&5 2090 rm -f core *.core core.conftest.* && 2091 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2092 exit $exit_status 2093' 0 2094for ac_signal in 1 2 13 15; do 2095 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2096done 2097ac_signal=0 2098 2099# confdefs.h avoids OS command line length limits that DEFS can exceed. 2100rm -f -r conftest* confdefs.h 2101 2102$as_echo "/* confdefs.h */" > confdefs.h 2103 2104# Predefined preprocessor variables. 2105 2106cat >>confdefs.h <<_ACEOF 2107#define PACKAGE_NAME "$PACKAGE_NAME" 2108_ACEOF 2109 2110cat >>confdefs.h <<_ACEOF 2111#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2112_ACEOF 2113 2114cat >>confdefs.h <<_ACEOF 2115#define PACKAGE_VERSION "$PACKAGE_VERSION" 2116_ACEOF 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_STRING "$PACKAGE_STRING" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2124_ACEOF 2125 2126cat >>confdefs.h <<_ACEOF 2127#define PACKAGE_URL "$PACKAGE_URL" 2128_ACEOF 2129 2130 2131# Let the site file select an alternate cache file if it wants to. 2132# Prefer an explicitly selected file to automatically selected ones. 2133ac_site_file1=NONE 2134ac_site_file2=NONE 2135if test -n "$CONFIG_SITE"; then 2136 # We do not want a PATH search for config.site. 2137 case $CONFIG_SITE in #(( 2138 -*) ac_site_file1=./$CONFIG_SITE;; 2139 */*) ac_site_file1=$CONFIG_SITE;; 2140 *) ac_site_file1=./$CONFIG_SITE;; 2141 esac 2142elif test "x$prefix" != xNONE; then 2143 ac_site_file1=$prefix/share/config.site 2144 ac_site_file2=$prefix/etc/config.site 2145else 2146 ac_site_file1=$ac_default_prefix/share/config.site 2147 ac_site_file2=$ac_default_prefix/etc/config.site 2148fi 2149for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2150do 2151 test "x$ac_site_file" = xNONE && continue 2152 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2153 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2154$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2155 sed 's/^/| /' "$ac_site_file" >&5 2156 . "$ac_site_file" \ 2157 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2158$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2159as_fn_error $? "failed to load site script $ac_site_file 2160See \`config.log' for more details" "$LINENO" 5; } 2161 fi 2162done 2163 2164if test -r "$cache_file"; then 2165 # Some versions of bash will fail to source /dev/null (special files 2166 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2167 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2168 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2169$as_echo "$as_me: loading cache $cache_file" >&6;} 2170 case $cache_file in 2171 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2172 *) . "./$cache_file";; 2173 esac 2174 fi 2175else 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2177$as_echo "$as_me: creating cache $cache_file" >&6;} 2178 >$cache_file 2179fi 2180 2181# Check that the precious variables saved in the cache have kept the same 2182# value. 2183ac_cache_corrupted=false 2184for ac_var in $ac_precious_vars; do 2185 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2186 eval ac_new_set=\$ac_env_${ac_var}_set 2187 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2188 eval ac_new_val=\$ac_env_${ac_var}_value 2189 case $ac_old_set,$ac_new_set in 2190 set,) 2191 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2192$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2193 ac_cache_corrupted=: ;; 2194 ,set) 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2196$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2197 ac_cache_corrupted=: ;; 2198 ,);; 2199 *) 2200 if test "x$ac_old_val" != "x$ac_new_val"; then 2201 # differences in whitespace do not lead to failure. 2202 ac_old_val_w=`echo x $ac_old_val` 2203 ac_new_val_w=`echo x $ac_new_val` 2204 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2206$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2207 ac_cache_corrupted=: 2208 else 2209 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2210$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2211 eval $ac_var=\$ac_old_val 2212 fi 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2214$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2215 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2216$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2217 fi;; 2218 esac 2219 # Pass precious variables to config.status. 2220 if test "$ac_new_set" = set; then 2221 case $ac_new_val in 2222 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2223 *) ac_arg=$ac_var=$ac_new_val ;; 2224 esac 2225 case " $ac_configure_args " in 2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2227 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2228 esac 2229 fi 2230done 2231if $ac_cache_corrupted; then 2232 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2235$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2236 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2237fi 2238## -------------------- ## 2239## Main body of script. ## 2240## -------------------- ## 2241 2242ac_ext=c 2243ac_cpp='$CPP $CPPFLAGS' 2244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2246ac_compiler_gnu=$ac_cv_c_compiler_gnu 2247 2248 2249 2250ac_config_headers="$ac_config_headers config.h" 2251 2252ac_aux_dir= 2253for ac_dir in . "$srcdir"/.; do 2254 if test -f "$ac_dir/install-sh"; then 2255 ac_aux_dir=$ac_dir 2256 ac_install_sh="$ac_aux_dir/install-sh -c" 2257 break 2258 elif test -f "$ac_dir/install.sh"; then 2259 ac_aux_dir=$ac_dir 2260 ac_install_sh="$ac_aux_dir/install.sh -c" 2261 break 2262 elif test -f "$ac_dir/shtool"; then 2263 ac_aux_dir=$ac_dir 2264 ac_install_sh="$ac_aux_dir/shtool install -c" 2265 break 2266 fi 2267done 2268if test -z "$ac_aux_dir"; then 2269 as_fn_error $? "cannot find install-sh, install.sh, or shtool in . \"$srcdir\"/." "$LINENO" 5 2270fi 2271 2272# These three variables are undocumented and unsupported, 2273# and are intended to be withdrawn in a future Autoconf release. 2274# They can cause serious problems if a builder's source tree is in a directory 2275# whose full name contains unusual characters. 2276ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2277ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2278ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2279 2280 2281 2282# Initialize Automake 2283am__api_version='1.15' 2284 2285# Find a good install program. We prefer a C program (faster), 2286# so one script is as good as another. But avoid the broken or 2287# incompatible versions: 2288# SysV /etc/install, /usr/sbin/install 2289# SunOS /usr/etc/install 2290# IRIX /sbin/install 2291# AIX /bin/install 2292# AmigaOS /C/install, which installs bootblocks on floppy discs 2293# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2294# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2295# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2296# OS/2's system install, which has a completely different semantic 2297# ./install, which can be erroneously created by make from ./install.sh. 2298# Reject install programs that cannot install multiple files. 2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2300$as_echo_n "checking for a BSD-compatible install... " >&6; } 2301if test -z "$INSTALL"; then 2302if ${ac_cv_path_install+:} false; then : 2303 $as_echo_n "(cached) " >&6 2304else 2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2306for as_dir in $PATH 2307do 2308 IFS=$as_save_IFS 2309 test -z "$as_dir" && as_dir=. 2310 # Account for people who put trailing slashes in PATH elements. 2311case $as_dir/ in #(( 2312 ./ | .// | /[cC]/* | \ 2313 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2314 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2315 /usr/ucb/* ) ;; 2316 *) 2317 # OSF1 and SCO ODT 3.0 have their own names for install. 2318 # Don't use installbsd from OSF since it installs stuff as root 2319 # by default. 2320 for ac_prog in ginstall scoinst install; do 2321 for ac_exec_ext in '' $ac_executable_extensions; do 2322 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2323 if test $ac_prog = install && 2324 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2325 # AIX install. It has an incompatible calling convention. 2326 : 2327 elif test $ac_prog = install && 2328 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2329 # program-specific install script used by HP pwplus--don't use. 2330 : 2331 else 2332 rm -rf conftest.one conftest.two conftest.dir 2333 echo one > conftest.one 2334 echo two > conftest.two 2335 mkdir conftest.dir 2336 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2337 test -s conftest.one && test -s conftest.two && 2338 test -s conftest.dir/conftest.one && 2339 test -s conftest.dir/conftest.two 2340 then 2341 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2342 break 3 2343 fi 2344 fi 2345 fi 2346 done 2347 done 2348 ;; 2349esac 2350 2351 done 2352IFS=$as_save_IFS 2353 2354rm -rf conftest.one conftest.two conftest.dir 2355 2356fi 2357 if test "${ac_cv_path_install+set}" = set; then 2358 INSTALL=$ac_cv_path_install 2359 else 2360 # As a last resort, use the slow shell script. Don't cache a 2361 # value for INSTALL within a source directory, because that will 2362 # break other packages using the cache if that directory is 2363 # removed, or if the value is a relative name. 2364 INSTALL=$ac_install_sh 2365 fi 2366fi 2367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2368$as_echo "$INSTALL" >&6; } 2369 2370# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2371# It thinks the first close brace ends the variable substitution. 2372test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2373 2374test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2375 2376test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2377 2378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2379$as_echo_n "checking whether build environment is sane... " >&6; } 2380# Reject unsafe characters in $srcdir or the absolute working directory 2381# name. Accept space and tab only in the latter. 2382am_lf=' 2383' 2384case `pwd` in 2385 *[\\\"\#\$\&\'\`$am_lf]*) 2386 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2387esac 2388case $srcdir in 2389 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2390 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2391esac 2392 2393# Do 'set' in a subshell so we don't clobber the current shell's 2394# arguments. Must try -L first in case configure is actually a 2395# symlink; some systems play weird games with the mod time of symlinks 2396# (eg FreeBSD returns the mod time of the symlink's containing 2397# directory). 2398if ( 2399 am_has_slept=no 2400 for am_try in 1 2; do 2401 echo "timestamp, slept: $am_has_slept" > conftest.file 2402 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2403 if test "$*" = "X"; then 2404 # -L didn't work. 2405 set X `ls -t "$srcdir/configure" conftest.file` 2406 fi 2407 if test "$*" != "X $srcdir/configure conftest.file" \ 2408 && test "$*" != "X conftest.file $srcdir/configure"; then 2409 2410 # If neither matched, then we have a broken ls. This can happen 2411 # if, for instance, CONFIG_SHELL is bash and it inherits a 2412 # broken ls alias from the environment. This has actually 2413 # happened. Such a system could not be considered "sane". 2414 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2415 alias in your environment" "$LINENO" 5 2416 fi 2417 if test "$2" = conftest.file || test $am_try -eq 2; then 2418 break 2419 fi 2420 # Just in case. 2421 sleep 1 2422 am_has_slept=yes 2423 done 2424 test "$2" = conftest.file 2425 ) 2426then 2427 # Ok. 2428 : 2429else 2430 as_fn_error $? "newly created file is older than distributed files! 2431Check your system clock" "$LINENO" 5 2432fi 2433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2434$as_echo "yes" >&6; } 2435# If we didn't sleep, we still need to ensure time stamps of config.status and 2436# generated files are strictly newer. 2437am_sleep_pid= 2438if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2439 ( sleep 1 ) & 2440 am_sleep_pid=$! 2441fi 2442 2443rm -f conftest.file 2444 2445test "$program_prefix" != NONE && 2446 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2447# Use a double $ so make ignores it. 2448test "$program_suffix" != NONE && 2449 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2450# Double any \ or $. 2451# By default was `s,x,x', remove it if useless. 2452ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2453program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2454 2455# Expand $ac_aux_dir to an absolute path. 2456am_aux_dir=`cd "$ac_aux_dir" && pwd` 2457 2458if test x"${MISSING+set}" != xset; then 2459 case $am_aux_dir in 2460 *\ * | *\ *) 2461 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2462 *) 2463 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2464 esac 2465fi 2466# Use eval to expand $SHELL 2467if eval "$MISSING --is-lightweight"; then 2468 am_missing_run="$MISSING " 2469else 2470 am_missing_run= 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2472$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2473fi 2474 2475if test x"${install_sh+set}" != xset; then 2476 case $am_aux_dir in 2477 *\ * | *\ *) 2478 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2479 *) 2480 install_sh="\${SHELL} $am_aux_dir/install-sh" 2481 esac 2482fi 2483 2484# Installed binaries are usually stripped using 'strip' when the user 2485# run "make install-strip". However 'strip' might not be the right 2486# tool to use in cross-compilation environments, therefore Automake 2487# will honor the 'STRIP' environment variable to overrule this program. 2488if test "$cross_compiling" != no; then 2489 if test -n "$ac_tool_prefix"; then 2490 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2491set dummy ${ac_tool_prefix}strip; ac_word=$2 2492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2493$as_echo_n "checking for $ac_word... " >&6; } 2494if ${ac_cv_prog_STRIP+:} false; then : 2495 $as_echo_n "(cached) " >&6 2496else 2497 if test -n "$STRIP"; then 2498 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2499else 2500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2501for as_dir in $PATH 2502do 2503 IFS=$as_save_IFS 2504 test -z "$as_dir" && as_dir=. 2505 for ac_exec_ext in '' $ac_executable_extensions; do 2506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2507 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2509 break 2 2510 fi 2511done 2512 done 2513IFS=$as_save_IFS 2514 2515fi 2516fi 2517STRIP=$ac_cv_prog_STRIP 2518if test -n "$STRIP"; then 2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2520$as_echo "$STRIP" >&6; } 2521else 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2523$as_echo "no" >&6; } 2524fi 2525 2526 2527fi 2528if test -z "$ac_cv_prog_STRIP"; then 2529 ac_ct_STRIP=$STRIP 2530 # Extract the first word of "strip", so it can be a program name with args. 2531set dummy strip; ac_word=$2 2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2533$as_echo_n "checking for $ac_word... " >&6; } 2534if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2535 $as_echo_n "(cached) " >&6 2536else 2537 if test -n "$ac_ct_STRIP"; then 2538 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2539else 2540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2541for as_dir in $PATH 2542do 2543 IFS=$as_save_IFS 2544 test -z "$as_dir" && as_dir=. 2545 for ac_exec_ext in '' $ac_executable_extensions; do 2546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2547 ac_cv_prog_ac_ct_STRIP="strip" 2548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2549 break 2 2550 fi 2551done 2552 done 2553IFS=$as_save_IFS 2554 2555fi 2556fi 2557ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2558if test -n "$ac_ct_STRIP"; then 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2560$as_echo "$ac_ct_STRIP" >&6; } 2561else 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2563$as_echo "no" >&6; } 2564fi 2565 2566 if test "x$ac_ct_STRIP" = x; then 2567 STRIP=":" 2568 else 2569 case $cross_compiling:$ac_tool_warned in 2570yes:) 2571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2573ac_tool_warned=yes ;; 2574esac 2575 STRIP=$ac_ct_STRIP 2576 fi 2577else 2578 STRIP="$ac_cv_prog_STRIP" 2579fi 2580 2581fi 2582INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2583 2584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2585$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2586if test -z "$MKDIR_P"; then 2587 if ${ac_cv_path_mkdir+:} false; then : 2588 $as_echo_n "(cached) " >&6 2589else 2590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_prog in mkdir gmkdir; do 2596 for ac_exec_ext in '' $ac_executable_extensions; do 2597 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2598 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2599 'mkdir (GNU coreutils) '* | \ 2600 'mkdir (coreutils) '* | \ 2601 'mkdir (fileutils) '4.1*) 2602 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2603 break 3;; 2604 esac 2605 done 2606 done 2607 done 2608IFS=$as_save_IFS 2609 2610fi 2611 2612 test -d ./--version && rmdir ./--version 2613 if test "${ac_cv_path_mkdir+set}" = set; then 2614 MKDIR_P="$ac_cv_path_mkdir -p" 2615 else 2616 # As a last resort, use the slow shell script. Don't cache a 2617 # value for MKDIR_P within a source directory, because that will 2618 # break other packages using the cache if that directory is 2619 # removed, or if the value is a relative name. 2620 MKDIR_P="$ac_install_sh -d" 2621 fi 2622fi 2623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2624$as_echo "$MKDIR_P" >&6; } 2625 2626for ac_prog in gawk mawk nawk awk 2627do 2628 # Extract the first word of "$ac_prog", so it can be a program name with args. 2629set dummy $ac_prog; ac_word=$2 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2631$as_echo_n "checking for $ac_word... " >&6; } 2632if ${ac_cv_prog_AWK+:} false; then : 2633 $as_echo_n "(cached) " >&6 2634else 2635 if test -n "$AWK"; then 2636 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2637else 2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 test -z "$as_dir" && as_dir=. 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2645 ac_cv_prog_AWK="$ac_prog" 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650 done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655AWK=$ac_cv_prog_AWK 2656if test -n "$AWK"; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2658$as_echo "$AWK" >&6; } 2659else 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661$as_echo "no" >&6; } 2662fi 2663 2664 2665 test -n "$AWK" && break 2666done 2667 2668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2669$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2670set x ${MAKE-make} 2671ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2672if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2673 $as_echo_n "(cached) " >&6 2674else 2675 cat >conftest.make <<\_ACEOF 2676SHELL = /bin/sh 2677all: 2678 @echo '@@@%%%=$(MAKE)=@@@%%%' 2679_ACEOF 2680# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2681case `${MAKE-make} -f conftest.make 2>/dev/null` in 2682 *@@@%%%=?*=@@@%%%*) 2683 eval ac_cv_prog_make_${ac_make}_set=yes;; 2684 *) 2685 eval ac_cv_prog_make_${ac_make}_set=no;; 2686esac 2687rm -f conftest.make 2688fi 2689if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2691$as_echo "yes" >&6; } 2692 SET_MAKE= 2693else 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2695$as_echo "no" >&6; } 2696 SET_MAKE="MAKE=${MAKE-make}" 2697fi 2698 2699rm -rf .tst 2>/dev/null 2700mkdir .tst 2>/dev/null 2701if test -d .tst; then 2702 am__leading_dot=. 2703else 2704 am__leading_dot=_ 2705fi 2706rmdir .tst 2>/dev/null 2707 2708# Check whether --enable-silent-rules was given. 2709if test "${enable_silent_rules+set}" = set; then : 2710 enableval=$enable_silent_rules; 2711fi 2712 2713case $enable_silent_rules in # ((( 2714 yes) AM_DEFAULT_VERBOSITY=0;; 2715 no) AM_DEFAULT_VERBOSITY=1;; 2716 *) AM_DEFAULT_VERBOSITY=1;; 2717esac 2718am_make=${MAKE-make} 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2720$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2721if ${am_cv_make_support_nested_variables+:} false; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 if $as_echo 'TRUE=$(BAR$(V)) 2725BAR0=false 2726BAR1=true 2727V=1 2728am__doit: 2729 @$(TRUE) 2730.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 2731 am_cv_make_support_nested_variables=yes 2732else 2733 am_cv_make_support_nested_variables=no 2734fi 2735fi 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 2737$as_echo "$am_cv_make_support_nested_variables" >&6; } 2738if test $am_cv_make_support_nested_variables = yes; then 2739 AM_V='$(V)' 2740 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 2741else 2742 AM_V=$AM_DEFAULT_VERBOSITY 2743 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 2744fi 2745AM_BACKSLASH='\' 2746 2747if test "`cd $srcdir && pwd`" != "`pwd`"; then 2748 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2749 # is not polluted with repeated "-I." 2750 am__isrc=' -I$(srcdir)' 2751 # test to see if srcdir already configured 2752 if test -f $srcdir/config.status; then 2753 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2754 fi 2755fi 2756 2757# test whether we have cygpath 2758if test -z "$CYGPATH_W"; then 2759 if (cygpath --version) >/dev/null 2>/dev/null; then 2760 CYGPATH_W='cygpath -w' 2761 else 2762 CYGPATH_W=echo 2763 fi 2764fi 2765 2766 2767# Define the identity of the package. 2768 PACKAGE='xf86-input-evdev' 2769 VERSION='2.10.6' 2770 2771 2772cat >>confdefs.h <<_ACEOF 2773#define PACKAGE "$PACKAGE" 2774_ACEOF 2775 2776 2777cat >>confdefs.h <<_ACEOF 2778#define VERSION "$VERSION" 2779_ACEOF 2780 2781# Some tools Automake needs. 2782 2783ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2784 2785 2786AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2787 2788 2789AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2790 2791 2792AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2793 2794 2795MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2796 2797# For better backward compatibility. To be removed once Automake 1.9.x 2798# dies out for good. For more background, see: 2799# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2800# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2801mkdir_p='$(MKDIR_P)' 2802 2803# We need awk for the "check" target (and possibly the TAP driver). The 2804# system "awk" is bad on some platforms. 2805# Always define AMTAR for backward compatibility. Yes, it's still used 2806# in the wild :-( We should find a proper way to deprecate it ... 2807AMTAR='$${TAR-tar}' 2808 2809 2810# We'll loop over all known methods to create a tar archive until one works. 2811_am_tools='gnutar pax cpio none' 2812 2813am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2814 2815 2816 2817 2818 2819 2820# POSIX will say in a future version that running "rm -f" with no argument 2821# is OK; and we want to be able to make that assumption in our Makefile 2822# recipes. So use an aggressive probe to check that the usage we want is 2823# actually supported "in the wild" to an acceptable degree. 2824# See automake bug#10828. 2825# To make any issue more visible, cause the running configure to be aborted 2826# by default if the 'rm' program in use doesn't match our expectations; the 2827# user can still override this though. 2828if rm -f && rm -fr && rm -rf; then : OK; else 2829 cat >&2 <<'END' 2830Oops! 2831 2832Your 'rm' program seems unable to run without file operands specified 2833on the command line, even when the '-f' option is present. This is contrary 2834to the behaviour of most rm programs out there, and not conforming with 2835the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 2836 2837Please tell bug-automake@gnu.org about your system, including the value 2838of your $PATH and any error possibly output before this message. This 2839can help us improve future automake versions. 2840 2841END 2842 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 2843 echo 'Configuration will proceed anyway, since you have set the' >&2 2844 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 2845 echo >&2 2846 else 2847 cat >&2 <<'END' 2848Aborting the configuration process, to ensure you take notice of the issue. 2849 2850You can download and install GNU coreutils to get an 'rm' implementation 2851that behaves properly: <http://www.gnu.org/software/coreutils/>. 2852 2853If you want to complete the configuration process using your problematic 2854'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 2855to "yes", and re-run configure. 2856 2857END 2858 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 2859 fi 2860fi 2861 2862 2863# Initialize libtool 2864# Check whether --enable-static was given. 2865if test "${enable_static+set}" = set; then : 2866 enableval=$enable_static; p=${PACKAGE-default} 2867 case $enableval in 2868 yes) enable_static=yes ;; 2869 no) enable_static=no ;; 2870 *) 2871 enable_static=no 2872 # Look at the argument we got. We use all the common list separators. 2873 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 2874 for pkg in $enableval; do 2875 IFS=$lt_save_ifs 2876 if test "X$pkg" = "X$p"; then 2877 enable_static=yes 2878 fi 2879 done 2880 IFS=$lt_save_ifs 2881 ;; 2882 esac 2883else 2884 enable_static=no 2885fi 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895case `pwd` in 2896 *\ * | *\ *) 2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2898$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2899esac 2900 2901 2902 2903macro_version='2.4.6' 2904macro_revision='2.4.6' 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918ltmain=$ac_aux_dir/ltmain.sh 2919 2920# Make sure we can run config.sub. 2921$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2922 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2923 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2925$as_echo_n "checking build system type... " >&6; } 2926if ${ac_cv_build+:} false; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 ac_build_alias=$build_alias 2930test "x$ac_build_alias" = x && 2931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2932test "x$ac_build_alias" = x && 2933 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2934ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2935 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2936 2937fi 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2939$as_echo "$ac_cv_build" >&6; } 2940case $ac_cv_build in 2941*-*-*) ;; 2942*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2943esac 2944build=$ac_cv_build 2945ac_save_IFS=$IFS; IFS='-' 2946set x $ac_cv_build 2947shift 2948build_cpu=$1 2949build_vendor=$2 2950shift; shift 2951# Remember, the first character of IFS is used to create $*, 2952# except with old shells: 2953build_os=$* 2954IFS=$ac_save_IFS 2955case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2956 2957 2958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2959$as_echo_n "checking host system type... " >&6; } 2960if ${ac_cv_host+:} false; then : 2961 $as_echo_n "(cached) " >&6 2962else 2963 if test "x$host_alias" = x; then 2964 ac_cv_host=$ac_cv_build 2965else 2966 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2967 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2968fi 2969 2970fi 2971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2972$as_echo "$ac_cv_host" >&6; } 2973case $ac_cv_host in 2974*-*-*) ;; 2975*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2976esac 2977host=$ac_cv_host 2978ac_save_IFS=$IFS; IFS='-' 2979set x $ac_cv_host 2980shift 2981host_cpu=$1 2982host_vendor=$2 2983shift; shift 2984# Remember, the first character of IFS is used to create $*, 2985# except with old shells: 2986host_os=$* 2987IFS=$ac_save_IFS 2988case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2989 2990 2991# Backslashify metacharacters that are still active within 2992# double-quoted strings. 2993sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2994 2995# Same as above, but do not quote variable references. 2996double_quote_subst='s/\(["`\\]\)/\\\1/g' 2997 2998# Sed substitution to delay expansion of an escaped shell variable in a 2999# double_quote_subst'ed string. 3000delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 3001 3002# Sed substitution to delay expansion of an escaped single quote. 3003delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 3004 3005# Sed substitution to avoid accidental globbing in evaled expressions 3006no_glob_subst='s/\*/\\\*/g' 3007 3008ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3009ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 3010ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 3011 3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 3013$as_echo_n "checking how to print strings... " >&6; } 3014# Test print first, because it will be a builtin if present. 3015if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 3016 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 3017 ECHO='print -r --' 3018elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 3019 ECHO='printf %s\n' 3020else 3021 # Use this function as a fallback that always works. 3022 func_fallback_echo () 3023 { 3024 eval 'cat <<_LTECHO_EOF 3025$1 3026_LTECHO_EOF' 3027 } 3028 ECHO='func_fallback_echo' 3029fi 3030 3031# func_echo_all arg... 3032# Invoke $ECHO with all args, space-separated. 3033func_echo_all () 3034{ 3035 $ECHO "" 3036} 3037 3038case $ECHO in 3039 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 3040$as_echo "printf" >&6; } ;; 3041 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 3042$as_echo "print -r" >&6; } ;; 3043 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 3044$as_echo "cat" >&6; } ;; 3045esac 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060DEPDIR="${am__leading_dot}deps" 3061 3062ac_config_commands="$ac_config_commands depfiles" 3063 3064 3065am_make=${MAKE-make} 3066cat > confinc << 'END' 3067am__doit: 3068 @echo this is the am__doit target 3069.PHONY: am__doit 3070END 3071# If we don't find an include directive, just comment out the code. 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3073$as_echo_n "checking for style of include used by $am_make... " >&6; } 3074am__include="#" 3075am__quote= 3076_am_result=none 3077# First try GNU make style include. 3078echo "include confinc" > confmf 3079# Ignore all kinds of additional output from 'make'. 3080case `$am_make -s -f confmf 2> /dev/null` in #( 3081*the\ am__doit\ target*) 3082 am__include=include 3083 am__quote= 3084 _am_result=GNU 3085 ;; 3086esac 3087# Now try BSD make style include. 3088if test "$am__include" = "#"; then 3089 echo '.include "confinc"' > confmf 3090 case `$am_make -s -f confmf 2> /dev/null` in #( 3091 *the\ am__doit\ target*) 3092 am__include=.include 3093 am__quote="\"" 3094 _am_result=BSD 3095 ;; 3096 esac 3097fi 3098 3099 3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3101$as_echo "$_am_result" >&6; } 3102rm -f confinc confmf 3103 3104# Check whether --enable-dependency-tracking was given. 3105if test "${enable_dependency_tracking+set}" = set; then : 3106 enableval=$enable_dependency_tracking; 3107fi 3108 3109if test "x$enable_dependency_tracking" != xno; then 3110 am_depcomp="$ac_aux_dir/depcomp" 3111 AMDEPBACKSLASH='\' 3112 am__nodep='_no' 3113fi 3114 if test "x$enable_dependency_tracking" != xno; then 3115 AMDEP_TRUE= 3116 AMDEP_FALSE='#' 3117else 3118 AMDEP_TRUE='#' 3119 AMDEP_FALSE= 3120fi 3121 3122 3123ac_ext=c 3124ac_cpp='$CPP $CPPFLAGS' 3125ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3126ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3127ac_compiler_gnu=$ac_cv_c_compiler_gnu 3128if test -n "$ac_tool_prefix"; then 3129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3130set dummy ${ac_tool_prefix}gcc; ac_word=$2 3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3132$as_echo_n "checking for $ac_word... " >&6; } 3133if ${ac_cv_prog_CC+:} false; then : 3134 $as_echo_n "(cached) " >&6 3135else 3136 if test -n "$CC"; then 3137 ac_cv_prog_CC="$CC" # Let the user override the test. 3138else 3139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3140for as_dir in $PATH 3141do 3142 IFS=$as_save_IFS 3143 test -z "$as_dir" && as_dir=. 3144 for ac_exec_ext in '' $ac_executable_extensions; do 3145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3146 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3148 break 2 3149 fi 3150done 3151 done 3152IFS=$as_save_IFS 3153 3154fi 3155fi 3156CC=$ac_cv_prog_CC 3157if test -n "$CC"; then 3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3159$as_echo "$CC" >&6; } 3160else 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162$as_echo "no" >&6; } 3163fi 3164 3165 3166fi 3167if test -z "$ac_cv_prog_CC"; then 3168 ac_ct_CC=$CC 3169 # Extract the first word of "gcc", so it can be a program name with args. 3170set dummy gcc; ac_word=$2 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3172$as_echo_n "checking for $ac_word... " >&6; } 3173if ${ac_cv_prog_ac_ct_CC+:} false; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 if test -n "$ac_ct_CC"; then 3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3178else 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3186 ac_cv_prog_ac_ct_CC="gcc" 3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190done 3191 done 3192IFS=$as_save_IFS 3193 3194fi 3195fi 3196ac_ct_CC=$ac_cv_prog_ac_ct_CC 3197if test -n "$ac_ct_CC"; then 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3199$as_echo "$ac_ct_CC" >&6; } 3200else 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3202$as_echo "no" >&6; } 3203fi 3204 3205 if test "x$ac_ct_CC" = x; then 3206 CC="" 3207 else 3208 case $cross_compiling:$ac_tool_warned in 3209yes:) 3210{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3212ac_tool_warned=yes ;; 3213esac 3214 CC=$ac_ct_CC 3215 fi 3216else 3217 CC="$ac_cv_prog_CC" 3218fi 3219 3220if test -z "$CC"; then 3221 if test -n "$ac_tool_prefix"; then 3222 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3223set dummy ${ac_tool_prefix}cc; ac_word=$2 3224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3225$as_echo_n "checking for $ac_word... " >&6; } 3226if ${ac_cv_prog_CC+:} false; then : 3227 $as_echo_n "(cached) " >&6 3228else 3229 if test -n "$CC"; then 3230 ac_cv_prog_CC="$CC" # Let the user override the test. 3231else 3232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH 3234do 3235 IFS=$as_save_IFS 3236 test -z "$as_dir" && as_dir=. 3237 for ac_exec_ext in '' $ac_executable_extensions; do 3238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3239 ac_cv_prog_CC="${ac_tool_prefix}cc" 3240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3241 break 2 3242 fi 3243done 3244 done 3245IFS=$as_save_IFS 3246 3247fi 3248fi 3249CC=$ac_cv_prog_CC 3250if test -n "$CC"; then 3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3252$as_echo "$CC" >&6; } 3253else 3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3255$as_echo "no" >&6; } 3256fi 3257 3258 3259 fi 3260fi 3261if test -z "$CC"; then 3262 # Extract the first word of "cc", so it can be a program name with args. 3263set dummy cc; ac_word=$2 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3265$as_echo_n "checking for $ac_word... " >&6; } 3266if ${ac_cv_prog_CC+:} false; then : 3267 $as_echo_n "(cached) " >&6 3268else 3269 if test -n "$CC"; then 3270 ac_cv_prog_CC="$CC" # Let the user override the test. 3271else 3272 ac_prog_rejected=no 3273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3274for as_dir in $PATH 3275do 3276 IFS=$as_save_IFS 3277 test -z "$as_dir" && as_dir=. 3278 for ac_exec_ext in '' $ac_executable_extensions; do 3279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3280 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3281 ac_prog_rejected=yes 3282 continue 3283 fi 3284 ac_cv_prog_CC="cc" 3285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3286 break 2 3287 fi 3288done 3289 done 3290IFS=$as_save_IFS 3291 3292if test $ac_prog_rejected = yes; then 3293 # We found a bogon in the path, so make sure we never use it. 3294 set dummy $ac_cv_prog_CC 3295 shift 3296 if test $# != 0; then 3297 # We chose a different compiler from the bogus one. 3298 # However, it has the same basename, so the bogon will be chosen 3299 # first if we set CC to just the basename; use the full file name. 3300 shift 3301 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3302 fi 3303fi 3304fi 3305fi 3306CC=$ac_cv_prog_CC 3307if test -n "$CC"; then 3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3309$as_echo "$CC" >&6; } 3310else 3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3312$as_echo "no" >&6; } 3313fi 3314 3315 3316fi 3317if test -z "$CC"; then 3318 if test -n "$ac_tool_prefix"; then 3319 for ac_prog in cl.exe 3320 do 3321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3322set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3324$as_echo_n "checking for $ac_word... " >&6; } 3325if ${ac_cv_prog_CC+:} false; then : 3326 $as_echo_n "(cached) " >&6 3327else 3328 if test -n "$CC"; then 3329 ac_cv_prog_CC="$CC" # Let the user override the test. 3330else 3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3332for as_dir in $PATH 3333do 3334 IFS=$as_save_IFS 3335 test -z "$as_dir" && as_dir=. 3336 for ac_exec_ext in '' $ac_executable_extensions; do 3337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3338 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3340 break 2 3341 fi 3342done 3343 done 3344IFS=$as_save_IFS 3345 3346fi 3347fi 3348CC=$ac_cv_prog_CC 3349if test -n "$CC"; then 3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3351$as_echo "$CC" >&6; } 3352else 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3354$as_echo "no" >&6; } 3355fi 3356 3357 3358 test -n "$CC" && break 3359 done 3360fi 3361if test -z "$CC"; then 3362 ac_ct_CC=$CC 3363 for ac_prog in cl.exe 3364do 3365 # Extract the first word of "$ac_prog", so it can be a program name with args. 3366set dummy $ac_prog; ac_word=$2 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3368$as_echo_n "checking for $ac_word... " >&6; } 3369if ${ac_cv_prog_ac_ct_CC+:} false; then : 3370 $as_echo_n "(cached) " >&6 3371else 3372 if test -n "$ac_ct_CC"; then 3373 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3374else 3375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3376for as_dir in $PATH 3377do 3378 IFS=$as_save_IFS 3379 test -z "$as_dir" && as_dir=. 3380 for ac_exec_ext in '' $ac_executable_extensions; do 3381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3382 ac_cv_prog_ac_ct_CC="$ac_prog" 3383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3384 break 2 3385 fi 3386done 3387 done 3388IFS=$as_save_IFS 3389 3390fi 3391fi 3392ac_ct_CC=$ac_cv_prog_ac_ct_CC 3393if test -n "$ac_ct_CC"; then 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3395$as_echo "$ac_ct_CC" >&6; } 3396else 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3398$as_echo "no" >&6; } 3399fi 3400 3401 3402 test -n "$ac_ct_CC" && break 3403done 3404 3405 if test "x$ac_ct_CC" = x; then 3406 CC="" 3407 else 3408 case $cross_compiling:$ac_tool_warned in 3409yes:) 3410{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3411$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3412ac_tool_warned=yes ;; 3413esac 3414 CC=$ac_ct_CC 3415 fi 3416fi 3417 3418fi 3419 3420 3421test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3423as_fn_error $? "no acceptable C compiler found in \$PATH 3424See \`config.log' for more details" "$LINENO" 5; } 3425 3426# Provide some information about the compiler. 3427$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3428set X $ac_compile 3429ac_compiler=$2 3430for ac_option in --version -v -V -qversion; do 3431 { { ac_try="$ac_compiler $ac_option >&5" 3432case "(($ac_try" in 3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3434 *) ac_try_echo=$ac_try;; 3435esac 3436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3437$as_echo "$ac_try_echo"; } >&5 3438 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3439 ac_status=$? 3440 if test -s conftest.err; then 3441 sed '10a\ 3442... rest of stderr output deleted ... 3443 10q' conftest.err >conftest.er1 3444 cat conftest.er1 >&5 3445 fi 3446 rm -f conftest.er1 conftest.err 3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3448 test $ac_status = 0; } 3449done 3450 3451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453 3454int 3455main () 3456{ 3457 3458 ; 3459 return 0; 3460} 3461_ACEOF 3462ac_clean_files_save=$ac_clean_files 3463ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3464# Try to create an executable without -o first, disregard a.out. 3465# It will help us diagnose broken compilers, and finding out an intuition 3466# of exeext. 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3468$as_echo_n "checking whether the C compiler works... " >&6; } 3469ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3470 3471# The possible output files: 3472ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3473 3474ac_rmfiles= 3475for ac_file in $ac_files 3476do 3477 case $ac_file in 3478 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3479 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3480 esac 3481done 3482rm -f $ac_rmfiles 3483 3484if { { ac_try="$ac_link_default" 3485case "(($ac_try" in 3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3487 *) ac_try_echo=$ac_try;; 3488esac 3489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3490$as_echo "$ac_try_echo"; } >&5 3491 (eval "$ac_link_default") 2>&5 3492 ac_status=$? 3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3494 test $ac_status = 0; }; then : 3495 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3496# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3497# in a Makefile. We should not override ac_cv_exeext if it was cached, 3498# so that the user can short-circuit this test for compilers unknown to 3499# Autoconf. 3500for ac_file in $ac_files '' 3501do 3502 test -f "$ac_file" || continue 3503 case $ac_file in 3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3505 ;; 3506 [ab].out ) 3507 # We found the default executable, but exeext='' is most 3508 # certainly right. 3509 break;; 3510 *.* ) 3511 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3512 then :; else 3513 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3514 fi 3515 # We set ac_cv_exeext here because the later test for it is not 3516 # safe: cross compilers may not add the suffix if given an `-o' 3517 # argument, so we may need to know it at that point already. 3518 # Even if this section looks crufty: it has the advantage of 3519 # actually working. 3520 break;; 3521 * ) 3522 break;; 3523 esac 3524done 3525test "$ac_cv_exeext" = no && ac_cv_exeext= 3526 3527else 3528 ac_file='' 3529fi 3530if test -z "$ac_file"; then : 3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3532$as_echo "no" >&6; } 3533$as_echo "$as_me: failed program was:" >&5 3534sed 's/^/| /' conftest.$ac_ext >&5 3535 3536{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3537$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3538as_fn_error 77 "C compiler cannot create executables 3539See \`config.log' for more details" "$LINENO" 5; } 3540else 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3542$as_echo "yes" >&6; } 3543fi 3544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3545$as_echo_n "checking for C compiler default output file name... " >&6; } 3546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3547$as_echo "$ac_file" >&6; } 3548ac_exeext=$ac_cv_exeext 3549 3550rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3551ac_clean_files=$ac_clean_files_save 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3553$as_echo_n "checking for suffix of executables... " >&6; } 3554if { { ac_try="$ac_link" 3555case "(($ac_try" in 3556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3557 *) ac_try_echo=$ac_try;; 3558esac 3559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3560$as_echo "$ac_try_echo"; } >&5 3561 (eval "$ac_link") 2>&5 3562 ac_status=$? 3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3564 test $ac_status = 0; }; then : 3565 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3566# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3567# work properly (i.e., refer to `conftest.exe'), while it won't with 3568# `rm'. 3569for ac_file in conftest.exe conftest conftest.*; do 3570 test -f "$ac_file" || continue 3571 case $ac_file in 3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3574 break;; 3575 * ) break;; 3576 esac 3577done 3578else 3579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3581as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3582See \`config.log' for more details" "$LINENO" 5; } 3583fi 3584rm -f conftest conftest$ac_cv_exeext 3585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3586$as_echo "$ac_cv_exeext" >&6; } 3587 3588rm -f conftest.$ac_ext 3589EXEEXT=$ac_cv_exeext 3590ac_exeext=$EXEEXT 3591cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593#include <stdio.h> 3594int 3595main () 3596{ 3597FILE *f = fopen ("conftest.out", "w"); 3598 return ferror (f) || fclose (f) != 0; 3599 3600 ; 3601 return 0; 3602} 3603_ACEOF 3604ac_clean_files="$ac_clean_files conftest.out" 3605# Check that the compiler produces executables we can run. If not, either 3606# the compiler is broken, or we cross compile. 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3608$as_echo_n "checking whether we are cross compiling... " >&6; } 3609if test "$cross_compiling" != yes; then 3610 { { ac_try="$ac_link" 3611case "(($ac_try" in 3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3613 *) ac_try_echo=$ac_try;; 3614esac 3615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3616$as_echo "$ac_try_echo"; } >&5 3617 (eval "$ac_link") 2>&5 3618 ac_status=$? 3619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3620 test $ac_status = 0; } 3621 if { ac_try='./conftest$ac_cv_exeext' 3622 { { case "(($ac_try" in 3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3624 *) ac_try_echo=$ac_try;; 3625esac 3626eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3627$as_echo "$ac_try_echo"; } >&5 3628 (eval "$ac_try") 2>&5 3629 ac_status=$? 3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3631 test $ac_status = 0; }; }; then 3632 cross_compiling=no 3633 else 3634 if test "$cross_compiling" = maybe; then 3635 cross_compiling=yes 3636 else 3637 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3638$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3639as_fn_error $? "cannot run C compiled programs. 3640If you meant to cross compile, use \`--host'. 3641See \`config.log' for more details" "$LINENO" 5; } 3642 fi 3643 fi 3644fi 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3646$as_echo "$cross_compiling" >&6; } 3647 3648rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3649ac_clean_files=$ac_clean_files_save 3650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3651$as_echo_n "checking for suffix of object files... " >&6; } 3652if ${ac_cv_objext+:} false; then : 3653 $as_echo_n "(cached) " >&6 3654else 3655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3656/* end confdefs.h. */ 3657 3658int 3659main () 3660{ 3661 3662 ; 3663 return 0; 3664} 3665_ACEOF 3666rm -f conftest.o conftest.obj 3667if { { ac_try="$ac_compile" 3668case "(($ac_try" in 3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3670 *) ac_try_echo=$ac_try;; 3671esac 3672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3673$as_echo "$ac_try_echo"; } >&5 3674 (eval "$ac_compile") 2>&5 3675 ac_status=$? 3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3677 test $ac_status = 0; }; then : 3678 for ac_file in conftest.o conftest.obj conftest.*; do 3679 test -f "$ac_file" || continue; 3680 case $ac_file in 3681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3682 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3683 break;; 3684 esac 3685done 3686else 3687 $as_echo "$as_me: failed program was:" >&5 3688sed 's/^/| /' conftest.$ac_ext >&5 3689 3690{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3691$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3692as_fn_error $? "cannot compute suffix of object files: cannot compile 3693See \`config.log' for more details" "$LINENO" 5; } 3694fi 3695rm -f conftest.$ac_cv_objext conftest.$ac_ext 3696fi 3697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3698$as_echo "$ac_cv_objext" >&6; } 3699OBJEXT=$ac_cv_objext 3700ac_objext=$OBJEXT 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3702$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3703if ${ac_cv_c_compiler_gnu+:} false; then : 3704 $as_echo_n "(cached) " >&6 3705else 3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3707/* end confdefs.h. */ 3708 3709int 3710main () 3711{ 3712#ifndef __GNUC__ 3713 choke me 3714#endif 3715 3716 ; 3717 return 0; 3718} 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO"; then : 3721 ac_compiler_gnu=yes 3722else 3723 ac_compiler_gnu=no 3724fi 3725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3726ac_cv_c_compiler_gnu=$ac_compiler_gnu 3727 3728fi 3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3730$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3731if test $ac_compiler_gnu = yes; then 3732 GCC=yes 3733else 3734 GCC= 3735fi 3736ac_test_CFLAGS=${CFLAGS+set} 3737ac_save_CFLAGS=$CFLAGS 3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3739$as_echo_n "checking whether $CC accepts -g... " >&6; } 3740if ${ac_cv_prog_cc_g+:} false; then : 3741 $as_echo_n "(cached) " >&6 3742else 3743 ac_save_c_werror_flag=$ac_c_werror_flag 3744 ac_c_werror_flag=yes 3745 ac_cv_prog_cc_g=no 3746 CFLAGS="-g" 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749 3750int 3751main () 3752{ 3753 3754 ; 3755 return 0; 3756} 3757_ACEOF 3758if ac_fn_c_try_compile "$LINENO"; then : 3759 ac_cv_prog_cc_g=yes 3760else 3761 CFLAGS="" 3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3763/* end confdefs.h. */ 3764 3765int 3766main () 3767{ 3768 3769 ; 3770 return 0; 3771} 3772_ACEOF 3773if ac_fn_c_try_compile "$LINENO"; then : 3774 3775else 3776 ac_c_werror_flag=$ac_save_c_werror_flag 3777 CFLAGS="-g" 3778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3779/* end confdefs.h. */ 3780 3781int 3782main () 3783{ 3784 3785 ; 3786 return 0; 3787} 3788_ACEOF 3789if ac_fn_c_try_compile "$LINENO"; then : 3790 ac_cv_prog_cc_g=yes 3791fi 3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3793fi 3794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3795fi 3796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3797 ac_c_werror_flag=$ac_save_c_werror_flag 3798fi 3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3800$as_echo "$ac_cv_prog_cc_g" >&6; } 3801if test "$ac_test_CFLAGS" = set; then 3802 CFLAGS=$ac_save_CFLAGS 3803elif test $ac_cv_prog_cc_g = yes; then 3804 if test "$GCC" = yes; then 3805 CFLAGS="-g -O2" 3806 else 3807 CFLAGS="-g" 3808 fi 3809else 3810 if test "$GCC" = yes; then 3811 CFLAGS="-O2" 3812 else 3813 CFLAGS= 3814 fi 3815fi 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3817$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3818if ${ac_cv_prog_cc_c89+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 ac_cv_prog_cc_c89=no 3822ac_save_CC=$CC 3823cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3824/* end confdefs.h. */ 3825#include <stdarg.h> 3826#include <stdio.h> 3827struct stat; 3828/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3829struct buf { int x; }; 3830FILE * (*rcsopen) (struct buf *, struct stat *, int); 3831static char *e (p, i) 3832 char **p; 3833 int i; 3834{ 3835 return p[i]; 3836} 3837static char *f (char * (*g) (char **, int), char **p, ...) 3838{ 3839 char *s; 3840 va_list v; 3841 va_start (v,p); 3842 s = g (p, va_arg (v,int)); 3843 va_end (v); 3844 return s; 3845} 3846 3847/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3848 function prototypes and stuff, but not '\xHH' hex character constants. 3849 These don't provoke an error unfortunately, instead are silently treated 3850 as 'x'. The following induces an error, until -std is added to get 3851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3852 array size at least. It's necessary to write '\x00'==0 to get something 3853 that's true only with -std. */ 3854int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3855 3856/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3857 inside strings and character constants. */ 3858#define FOO(x) 'x' 3859int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3860 3861int test (int i, double x); 3862struct s1 {int (*f) (int a);}; 3863struct s2 {int (*f) (double a);}; 3864int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3865int argc; 3866char **argv; 3867int 3868main () 3869{ 3870return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3871 ; 3872 return 0; 3873} 3874_ACEOF 3875for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3877do 3878 CC="$ac_save_CC $ac_arg" 3879 if ac_fn_c_try_compile "$LINENO"; then : 3880 ac_cv_prog_cc_c89=$ac_arg 3881fi 3882rm -f core conftest.err conftest.$ac_objext 3883 test "x$ac_cv_prog_cc_c89" != "xno" && break 3884done 3885rm -f conftest.$ac_ext 3886CC=$ac_save_CC 3887 3888fi 3889# AC_CACHE_VAL 3890case "x$ac_cv_prog_cc_c89" in 3891 x) 3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3893$as_echo "none needed" >&6; } ;; 3894 xno) 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3896$as_echo "unsupported" >&6; } ;; 3897 *) 3898 CC="$CC $ac_cv_prog_cc_c89" 3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3900$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3901esac 3902if test "x$ac_cv_prog_cc_c89" != xno; then : 3903 3904fi 3905 3906ac_ext=c 3907ac_cpp='$CPP $CPPFLAGS' 3908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3910ac_compiler_gnu=$ac_cv_c_compiler_gnu 3911 3912ac_ext=c 3913ac_cpp='$CPP $CPPFLAGS' 3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3916ac_compiler_gnu=$ac_cv_c_compiler_gnu 3917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3918$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3919if ${am_cv_prog_cc_c_o+:} false; then : 3920 $as_echo_n "(cached) " >&6 3921else 3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3923/* end confdefs.h. */ 3924 3925int 3926main () 3927{ 3928 3929 ; 3930 return 0; 3931} 3932_ACEOF 3933 # Make sure it works both with $CC and with simple cc. 3934 # Following AC_PROG_CC_C_O, we do the test twice because some 3935 # compilers refuse to overwrite an existing .o file with -o, 3936 # though they will create one. 3937 am_cv_prog_cc_c_o=yes 3938 for am_i in 1 2; do 3939 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3940 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3941 ac_status=$? 3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3943 (exit $ac_status); } \ 3944 && test -f conftest2.$ac_objext; then 3945 : OK 3946 else 3947 am_cv_prog_cc_c_o=no 3948 break 3949 fi 3950 done 3951 rm -f core conftest* 3952 unset am_i 3953fi 3954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3955$as_echo "$am_cv_prog_cc_c_o" >&6; } 3956if test "$am_cv_prog_cc_c_o" != yes; then 3957 # Losing compiler, so override with the script. 3958 # FIXME: It is wrong to rewrite CC. 3959 # But if we don't then we get into trouble of one sort or another. 3960 # A longer-term fix would be to have automake use am__CC in this case, 3961 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3962 CC="$am_aux_dir/compile $CC" 3963fi 3964ac_ext=c 3965ac_cpp='$CPP $CPPFLAGS' 3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3968ac_compiler_gnu=$ac_cv_c_compiler_gnu 3969 3970 3971depcc="$CC" am_compiler_list= 3972 3973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3974$as_echo_n "checking dependency style of $depcc... " >&6; } 3975if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3976 $as_echo_n "(cached) " >&6 3977else 3978 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3979 # We make a subdir and do the tests there. Otherwise we can end up 3980 # making bogus files that we don't know about and never remove. For 3981 # instance it was reported that on HP-UX the gcc test will end up 3982 # making a dummy file named 'D' -- because '-MD' means "put the output 3983 # in D". 3984 rm -rf conftest.dir 3985 mkdir conftest.dir 3986 # Copy depcomp to subdir because otherwise we won't find it if we're 3987 # using a relative directory. 3988 cp "$am_depcomp" conftest.dir 3989 cd conftest.dir 3990 # We will build objects and dependencies in a subdirectory because 3991 # it helps to detect inapplicable dependency modes. For instance 3992 # both Tru64's cc and ICC support -MD to output dependencies as a 3993 # side effect of compilation, but ICC will put the dependencies in 3994 # the current directory while Tru64 will put them in the object 3995 # directory. 3996 mkdir sub 3997 3998 am_cv_CC_dependencies_compiler_type=none 3999 if test "$am_compiler_list" = ""; then 4000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4001 fi 4002 am__universal=false 4003 case " $depcc " in #( 4004 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4005 esac 4006 4007 for depmode in $am_compiler_list; do 4008 # Setup a source with many dependencies, because some compilers 4009 # like to wrap large dependency lists on column 80 (with \), and 4010 # we should not choose a depcomp mode which is confused by this. 4011 # 4012 # We need to recreate these files for each test, as the compiler may 4013 # overwrite some of them when testing with obscure command lines. 4014 # This happens at least with the AIX C compiler. 4015 : > sub/conftest.c 4016 for i in 1 2 3 4 5 6; do 4017 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4018 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4019 # Solaris 10 /bin/sh. 4020 echo '/* dummy */' > sub/conftst$i.h 4021 done 4022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4023 4024 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4025 # mode. It turns out that the SunPro C++ compiler does not properly 4026 # handle '-M -o', and we need to detect this. Also, some Intel 4027 # versions had trouble with output in subdirs. 4028 am__obj=sub/conftest.${OBJEXT-o} 4029 am__minus_obj="-o $am__obj" 4030 case $depmode in 4031 gcc) 4032 # This depmode causes a compiler race in universal mode. 4033 test "$am__universal" = false || continue 4034 ;; 4035 nosideeffect) 4036 # After this tag, mechanisms are not by side-effect, so they'll 4037 # only be used when explicitly requested. 4038 if test "x$enable_dependency_tracking" = xyes; then 4039 continue 4040 else 4041 break 4042 fi 4043 ;; 4044 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4045 # This compiler won't grok '-c -o', but also, the minuso test has 4046 # not run yet. These depmodes are late enough in the game, and 4047 # so weak that their functioning should not be impacted. 4048 am__obj=conftest.${OBJEXT-o} 4049 am__minus_obj= 4050 ;; 4051 none) break ;; 4052 esac 4053 if depmode=$depmode \ 4054 source=sub/conftest.c object=$am__obj \ 4055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4057 >/dev/null 2>conftest.err && 4058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4062 # icc doesn't choke on unknown options, it will just issue warnings 4063 # or remarks (even with -Werror). So we grep stderr for any message 4064 # that says an option was ignored or not supported. 4065 # When given -MP, icc 7.0 and 7.1 complain thusly: 4066 # icc: Command line warning: ignoring option '-M'; no argument required 4067 # The diagnosis changed in icc 8.0: 4068 # icc: Command line remark: option '-MP' not supported 4069 if (grep 'ignoring option' conftest.err || 4070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4071 am_cv_CC_dependencies_compiler_type=$depmode 4072 break 4073 fi 4074 fi 4075 done 4076 4077 cd .. 4078 rm -rf conftest.dir 4079else 4080 am_cv_CC_dependencies_compiler_type=none 4081fi 4082 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4085$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4086CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4087 4088 if 4089 test "x$enable_dependency_tracking" != xno \ 4090 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4091 am__fastdepCC_TRUE= 4092 am__fastdepCC_FALSE='#' 4093else 4094 am__fastdepCC_TRUE='#' 4095 am__fastdepCC_FALSE= 4096fi 4097 4098 4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4100$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4101if ${ac_cv_path_SED+:} false; then : 4102 $as_echo_n "(cached) " >&6 4103else 4104 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4105 for ac_i in 1 2 3 4 5 6 7; do 4106 ac_script="$ac_script$as_nl$ac_script" 4107 done 4108 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4109 { ac_script=; unset ac_script;} 4110 if test -z "$SED"; then 4111 ac_path_SED_found=false 4112 # Loop through the user's path and test for each of PROGNAME-LIST 4113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4114for as_dir in $PATH 4115do 4116 IFS=$as_save_IFS 4117 test -z "$as_dir" && as_dir=. 4118 for ac_prog in sed gsed; do 4119 for ac_exec_ext in '' $ac_executable_extensions; do 4120 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4121 as_fn_executable_p "$ac_path_SED" || continue 4122# Check for GNU ac_path_SED and select it if it is found. 4123 # Check for GNU $ac_path_SED 4124case `"$ac_path_SED" --version 2>&1` in 4125*GNU*) 4126 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4127*) 4128 ac_count=0 4129 $as_echo_n 0123456789 >"conftest.in" 4130 while : 4131 do 4132 cat "conftest.in" "conftest.in" >"conftest.tmp" 4133 mv "conftest.tmp" "conftest.in" 4134 cp "conftest.in" "conftest.nl" 4135 $as_echo '' >> "conftest.nl" 4136 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4137 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4138 as_fn_arith $ac_count + 1 && ac_count=$as_val 4139 if test $ac_count -gt ${ac_path_SED_max-0}; then 4140 # Best one so far, save it but keep looking for a better one 4141 ac_cv_path_SED="$ac_path_SED" 4142 ac_path_SED_max=$ac_count 4143 fi 4144 # 10*(2^10) chars as input seems more than enough 4145 test $ac_count -gt 10 && break 4146 done 4147 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4148esac 4149 4150 $ac_path_SED_found && break 3 4151 done 4152 done 4153 done 4154IFS=$as_save_IFS 4155 if test -z "$ac_cv_path_SED"; then 4156 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4157 fi 4158else 4159 ac_cv_path_SED=$SED 4160fi 4161 4162fi 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4164$as_echo "$ac_cv_path_SED" >&6; } 4165 SED="$ac_cv_path_SED" 4166 rm -f conftest.sed 4167 4168test -z "$SED" && SED=sed 4169Xsed="$SED -e 1s/^X//" 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4182$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4183if ${ac_cv_path_GREP+:} false; then : 4184 $as_echo_n "(cached) " >&6 4185else 4186 if test -z "$GREP"; then 4187 ac_path_GREP_found=false 4188 # Loop through the user's path and test for each of PROGNAME-LIST 4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4191do 4192 IFS=$as_save_IFS 4193 test -z "$as_dir" && as_dir=. 4194 for ac_prog in grep ggrep; do 4195 for ac_exec_ext in '' $ac_executable_extensions; do 4196 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4197 as_fn_executable_p "$ac_path_GREP" || continue 4198# Check for GNU ac_path_GREP and select it if it is found. 4199 # Check for GNU $ac_path_GREP 4200case `"$ac_path_GREP" --version 2>&1` in 4201*GNU*) 4202 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4203*) 4204 ac_count=0 4205 $as_echo_n 0123456789 >"conftest.in" 4206 while : 4207 do 4208 cat "conftest.in" "conftest.in" >"conftest.tmp" 4209 mv "conftest.tmp" "conftest.in" 4210 cp "conftest.in" "conftest.nl" 4211 $as_echo 'GREP' >> "conftest.nl" 4212 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4214 as_fn_arith $ac_count + 1 && ac_count=$as_val 4215 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4216 # Best one so far, save it but keep looking for a better one 4217 ac_cv_path_GREP="$ac_path_GREP" 4218 ac_path_GREP_max=$ac_count 4219 fi 4220 # 10*(2^10) chars as input seems more than enough 4221 test $ac_count -gt 10 && break 4222 done 4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4224esac 4225 4226 $ac_path_GREP_found && break 3 4227 done 4228 done 4229 done 4230IFS=$as_save_IFS 4231 if test -z "$ac_cv_path_GREP"; then 4232 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4233 fi 4234else 4235 ac_cv_path_GREP=$GREP 4236fi 4237 4238fi 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4240$as_echo "$ac_cv_path_GREP" >&6; } 4241 GREP="$ac_cv_path_GREP" 4242 4243 4244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4245$as_echo_n "checking for egrep... " >&6; } 4246if ${ac_cv_path_EGREP+:} false; then : 4247 $as_echo_n "(cached) " >&6 4248else 4249 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4250 then ac_cv_path_EGREP="$GREP -E" 4251 else 4252 if test -z "$EGREP"; then 4253 ac_path_EGREP_found=false 4254 # Loop through the user's path and test for each of PROGNAME-LIST 4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4256for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4257do 4258 IFS=$as_save_IFS 4259 test -z "$as_dir" && as_dir=. 4260 for ac_prog in egrep; do 4261 for ac_exec_ext in '' $ac_executable_extensions; do 4262 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4263 as_fn_executable_p "$ac_path_EGREP" || continue 4264# Check for GNU ac_path_EGREP and select it if it is found. 4265 # Check for GNU $ac_path_EGREP 4266case `"$ac_path_EGREP" --version 2>&1` in 4267*GNU*) 4268 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4269*) 4270 ac_count=0 4271 $as_echo_n 0123456789 >"conftest.in" 4272 while : 4273 do 4274 cat "conftest.in" "conftest.in" >"conftest.tmp" 4275 mv "conftest.tmp" "conftest.in" 4276 cp "conftest.in" "conftest.nl" 4277 $as_echo 'EGREP' >> "conftest.nl" 4278 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4280 as_fn_arith $ac_count + 1 && ac_count=$as_val 4281 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4282 # Best one so far, save it but keep looking for a better one 4283 ac_cv_path_EGREP="$ac_path_EGREP" 4284 ac_path_EGREP_max=$ac_count 4285 fi 4286 # 10*(2^10) chars as input seems more than enough 4287 test $ac_count -gt 10 && break 4288 done 4289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4290esac 4291 4292 $ac_path_EGREP_found && break 3 4293 done 4294 done 4295 done 4296IFS=$as_save_IFS 4297 if test -z "$ac_cv_path_EGREP"; then 4298 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4299 fi 4300else 4301 ac_cv_path_EGREP=$EGREP 4302fi 4303 4304 fi 4305fi 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4307$as_echo "$ac_cv_path_EGREP" >&6; } 4308 EGREP="$ac_cv_path_EGREP" 4309 4310 4311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4312$as_echo_n "checking for fgrep... " >&6; } 4313if ${ac_cv_path_FGREP+:} false; then : 4314 $as_echo_n "(cached) " >&6 4315else 4316 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4317 then ac_cv_path_FGREP="$GREP -F" 4318 else 4319 if test -z "$FGREP"; then 4320 ac_path_FGREP_found=false 4321 # Loop through the user's path and test for each of PROGNAME-LIST 4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4323for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4324do 4325 IFS=$as_save_IFS 4326 test -z "$as_dir" && as_dir=. 4327 for ac_prog in fgrep; do 4328 for ac_exec_ext in '' $ac_executable_extensions; do 4329 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4330 as_fn_executable_p "$ac_path_FGREP" || continue 4331# Check for GNU ac_path_FGREP and select it if it is found. 4332 # Check for GNU $ac_path_FGREP 4333case `"$ac_path_FGREP" --version 2>&1` in 4334*GNU*) 4335 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4336*) 4337 ac_count=0 4338 $as_echo_n 0123456789 >"conftest.in" 4339 while : 4340 do 4341 cat "conftest.in" "conftest.in" >"conftest.tmp" 4342 mv "conftest.tmp" "conftest.in" 4343 cp "conftest.in" "conftest.nl" 4344 $as_echo 'FGREP' >> "conftest.nl" 4345 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4347 as_fn_arith $ac_count + 1 && ac_count=$as_val 4348 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4349 # Best one so far, save it but keep looking for a better one 4350 ac_cv_path_FGREP="$ac_path_FGREP" 4351 ac_path_FGREP_max=$ac_count 4352 fi 4353 # 10*(2^10) chars as input seems more than enough 4354 test $ac_count -gt 10 && break 4355 done 4356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4357esac 4358 4359 $ac_path_FGREP_found && break 3 4360 done 4361 done 4362 done 4363IFS=$as_save_IFS 4364 if test -z "$ac_cv_path_FGREP"; then 4365 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4366 fi 4367else 4368 ac_cv_path_FGREP=$FGREP 4369fi 4370 4371 fi 4372fi 4373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4374$as_echo "$ac_cv_path_FGREP" >&6; } 4375 FGREP="$ac_cv_path_FGREP" 4376 4377 4378test -z "$GREP" && GREP=grep 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398# Check whether --with-gnu-ld was given. 4399if test "${with_gnu_ld+set}" = set; then : 4400 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 4401else 4402 with_gnu_ld=no 4403fi 4404 4405ac_prog=ld 4406if test yes = "$GCC"; then 4407 # Check if gcc -print-prog-name=ld gives a path. 4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4409$as_echo_n "checking for ld used by $CC... " >&6; } 4410 case $host in 4411 *-*-mingw*) 4412 # gcc leaves a trailing carriage return, which upsets mingw 4413 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4414 *) 4415 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4416 esac 4417 case $ac_prog in 4418 # Accept absolute paths. 4419 [\\/]* | ?:[\\/]*) 4420 re_direlt='/[^/][^/]*/\.\./' 4421 # Canonicalize the pathname of ld 4422 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4423 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4424 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4425 done 4426 test -z "$LD" && LD=$ac_prog 4427 ;; 4428 "") 4429 # If it fails, then pretend we aren't using GCC. 4430 ac_prog=ld 4431 ;; 4432 *) 4433 # If it is relative, then search for the first ld in PATH. 4434 with_gnu_ld=unknown 4435 ;; 4436 esac 4437elif test yes = "$with_gnu_ld"; then 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4439$as_echo_n "checking for GNU ld... " >&6; } 4440else 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4442$as_echo_n "checking for non-GNU ld... " >&6; } 4443fi 4444if ${lt_cv_path_LD+:} false; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 if test -z "$LD"; then 4448 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4449 for ac_dir in $PATH; do 4450 IFS=$lt_save_ifs 4451 test -z "$ac_dir" && ac_dir=. 4452 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4453 lt_cv_path_LD=$ac_dir/$ac_prog 4454 # Check to see if the program is GNU ld. I'd rather use --version, 4455 # but apparently some variants of GNU ld only accept -v. 4456 # Break only if it was the GNU/non-GNU ld that we prefer. 4457 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4458 *GNU* | *'with BFD'*) 4459 test no != "$with_gnu_ld" && break 4460 ;; 4461 *) 4462 test yes != "$with_gnu_ld" && break 4463 ;; 4464 esac 4465 fi 4466 done 4467 IFS=$lt_save_ifs 4468else 4469 lt_cv_path_LD=$LD # Let the user override the test with a path. 4470fi 4471fi 4472 4473LD=$lt_cv_path_LD 4474if test -n "$LD"; then 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4476$as_echo "$LD" >&6; } 4477else 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4479$as_echo "no" >&6; } 4480fi 4481test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4483$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4484if ${lt_cv_prog_gnu_ld+:} false; then : 4485 $as_echo_n "(cached) " >&6 4486else 4487 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4488case `$LD -v 2>&1 </dev/null` in 4489*GNU* | *'with BFD'*) 4490 lt_cv_prog_gnu_ld=yes 4491 ;; 4492*) 4493 lt_cv_prog_gnu_ld=no 4494 ;; 4495esac 4496fi 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4498$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4499with_gnu_ld=$lt_cv_prog_gnu_ld 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4510$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4511if ${lt_cv_path_NM+:} false; then : 4512 $as_echo_n "(cached) " >&6 4513else 4514 if test -n "$NM"; then 4515 # Let the user override the test. 4516 lt_cv_path_NM=$NM 4517else 4518 lt_nm_to_check=${ac_tool_prefix}nm 4519 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4520 lt_nm_to_check="$lt_nm_to_check nm" 4521 fi 4522 for lt_tmp_nm in $lt_nm_to_check; do 4523 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 4524 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4525 IFS=$lt_save_ifs 4526 test -z "$ac_dir" && ac_dir=. 4527 tmp_nm=$ac_dir/$lt_tmp_nm 4528 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 4529 # Check to see if the nm accepts a BSD-compat flag. 4530 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 4531 # nm: unknown option "B" ignored 4532 # Tru64's nm complains that /dev/null is an invalid object file 4533 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 4534 case $build_os in 4535 mingw*) lt_bad_file=conftest.nm/nofile ;; 4536 *) lt_bad_file=/dev/null ;; 4537 esac 4538 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 4539 *$lt_bad_file* | *'Invalid file or object type'*) 4540 lt_cv_path_NM="$tmp_nm -B" 4541 break 2 4542 ;; 4543 *) 4544 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4545 */dev/null*) 4546 lt_cv_path_NM="$tmp_nm -p" 4547 break 2 4548 ;; 4549 *) 4550 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4551 continue # so that we can try to find one that supports BSD flags 4552 ;; 4553 esac 4554 ;; 4555 esac 4556 fi 4557 done 4558 IFS=$lt_save_ifs 4559 done 4560 : ${lt_cv_path_NM=no} 4561fi 4562fi 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4564$as_echo "$lt_cv_path_NM" >&6; } 4565if test no != "$lt_cv_path_NM"; then 4566 NM=$lt_cv_path_NM 4567else 4568 # Didn't find any BSD compatible name lister, look for dumpbin. 4569 if test -n "$DUMPBIN"; then : 4570 # Let the user override the test. 4571 else 4572 if test -n "$ac_tool_prefix"; then 4573 for ac_prog in dumpbin "link -dump" 4574 do 4575 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4576set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4578$as_echo_n "checking for $ac_word... " >&6; } 4579if ${ac_cv_prog_DUMPBIN+:} false; then : 4580 $as_echo_n "(cached) " >&6 4581else 4582 if test -n "$DUMPBIN"; then 4583 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4584else 4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4586for as_dir in $PATH 4587do 4588 IFS=$as_save_IFS 4589 test -z "$as_dir" && as_dir=. 4590 for ac_exec_ext in '' $ac_executable_extensions; do 4591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4592 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4594 break 2 4595 fi 4596done 4597 done 4598IFS=$as_save_IFS 4599 4600fi 4601fi 4602DUMPBIN=$ac_cv_prog_DUMPBIN 4603if test -n "$DUMPBIN"; then 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4605$as_echo "$DUMPBIN" >&6; } 4606else 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4608$as_echo "no" >&6; } 4609fi 4610 4611 4612 test -n "$DUMPBIN" && break 4613 done 4614fi 4615if test -z "$DUMPBIN"; then 4616 ac_ct_DUMPBIN=$DUMPBIN 4617 for ac_prog in dumpbin "link -dump" 4618do 4619 # Extract the first word of "$ac_prog", so it can be a program name with args. 4620set dummy $ac_prog; ac_word=$2 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4622$as_echo_n "checking for $ac_word... " >&6; } 4623if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4624 $as_echo_n "(cached) " >&6 4625else 4626 if test -n "$ac_ct_DUMPBIN"; then 4627 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4628else 4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4630for as_dir in $PATH 4631do 4632 IFS=$as_save_IFS 4633 test -z "$as_dir" && as_dir=. 4634 for ac_exec_ext in '' $ac_executable_extensions; do 4635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4636 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4638 break 2 4639 fi 4640done 4641 done 4642IFS=$as_save_IFS 4643 4644fi 4645fi 4646ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4647if test -n "$ac_ct_DUMPBIN"; then 4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4649$as_echo "$ac_ct_DUMPBIN" >&6; } 4650else 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4652$as_echo "no" >&6; } 4653fi 4654 4655 4656 test -n "$ac_ct_DUMPBIN" && break 4657done 4658 4659 if test "x$ac_ct_DUMPBIN" = x; then 4660 DUMPBIN=":" 4661 else 4662 case $cross_compiling:$ac_tool_warned in 4663yes:) 4664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4666ac_tool_warned=yes ;; 4667esac 4668 DUMPBIN=$ac_ct_DUMPBIN 4669 fi 4670fi 4671 4672 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4673 *COFF*) 4674 DUMPBIN="$DUMPBIN -symbols -headers" 4675 ;; 4676 *) 4677 DUMPBIN=: 4678 ;; 4679 esac 4680 fi 4681 4682 if test : != "$DUMPBIN"; then 4683 NM=$DUMPBIN 4684 fi 4685fi 4686test -z "$NM" && NM=nm 4687 4688 4689 4690 4691 4692 4693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4694$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4695if ${lt_cv_nm_interface+:} false; then : 4696 $as_echo_n "(cached) " >&6 4697else 4698 lt_cv_nm_interface="BSD nm" 4699 echo "int some_variable = 0;" > conftest.$ac_ext 4700 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4701 (eval "$ac_compile" 2>conftest.err) 4702 cat conftest.err >&5 4703 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4704 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4705 cat conftest.err >&5 4706 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4707 cat conftest.out >&5 4708 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4709 lt_cv_nm_interface="MS dumpbin" 4710 fi 4711 rm -f conftest* 4712fi 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4714$as_echo "$lt_cv_nm_interface" >&6; } 4715 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4717$as_echo_n "checking whether ln -s works... " >&6; } 4718LN_S=$as_ln_s 4719if test "$LN_S" = "ln -s"; then 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4721$as_echo "yes" >&6; } 4722else 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4724$as_echo "no, using $LN_S" >&6; } 4725fi 4726 4727# find the maximum length of command line arguments 4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4729$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4730if ${lt_cv_sys_max_cmd_len+:} false; then : 4731 $as_echo_n "(cached) " >&6 4732else 4733 i=0 4734 teststring=ABCD 4735 4736 case $build_os in 4737 msdosdjgpp*) 4738 # On DJGPP, this test can blow up pretty badly due to problems in libc 4739 # (any single argument exceeding 2000 bytes causes a buffer overrun 4740 # during glob expansion). Even if it were fixed, the result of this 4741 # check would be larger than it should be. 4742 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4743 ;; 4744 4745 gnu*) 4746 # Under GNU Hurd, this test is not required because there is 4747 # no limit to the length of command line arguments. 4748 # Libtool will interpret -1 as no limit whatsoever 4749 lt_cv_sys_max_cmd_len=-1; 4750 ;; 4751 4752 cygwin* | mingw* | cegcc*) 4753 # On Win9x/ME, this test blows up -- it succeeds, but takes 4754 # about 5 minutes as the teststring grows exponentially. 4755 # Worse, since 9x/ME are not pre-emptively multitasking, 4756 # you end up with a "frozen" computer, even though with patience 4757 # the test eventually succeeds (with a max line length of 256k). 4758 # Instead, let's just punt: use the minimum linelength reported by 4759 # all of the supported platforms: 8192 (on NT/2K/XP). 4760 lt_cv_sys_max_cmd_len=8192; 4761 ;; 4762 4763 mint*) 4764 # On MiNT this can take a long time and run out of memory. 4765 lt_cv_sys_max_cmd_len=8192; 4766 ;; 4767 4768 amigaos*) 4769 # On AmigaOS with pdksh, this test takes hours, literally. 4770 # So we just punt and use a minimum line length of 8192. 4771 lt_cv_sys_max_cmd_len=8192; 4772 ;; 4773 4774 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4775 # This has been around since 386BSD, at least. Likely further. 4776 if test -x /sbin/sysctl; then 4777 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4778 elif test -x /usr/sbin/sysctl; then 4779 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4780 else 4781 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4782 fi 4783 # And add a safety zone 4784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4786 ;; 4787 4788 interix*) 4789 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4790 lt_cv_sys_max_cmd_len=196608 4791 ;; 4792 4793 os2*) 4794 # The test takes a long time on OS/2. 4795 lt_cv_sys_max_cmd_len=8192 4796 ;; 4797 4798 osf*) 4799 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4800 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4801 # nice to cause kernel panics so lets avoid the loop below. 4802 # First set a reasonable default. 4803 lt_cv_sys_max_cmd_len=16384 4804 # 4805 if test -x /sbin/sysconfig; then 4806 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4807 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4808 esac 4809 fi 4810 ;; 4811 sco3.2v5*) 4812 lt_cv_sys_max_cmd_len=102400 4813 ;; 4814 sysv5* | sco5v6* | sysv4.2uw2*) 4815 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4816 if test -n "$kargmax"; then 4817 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4818 else 4819 lt_cv_sys_max_cmd_len=32768 4820 fi 4821 ;; 4822 *) 4823 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4824 if test -n "$lt_cv_sys_max_cmd_len" && \ 4825 test undefined != "$lt_cv_sys_max_cmd_len"; then 4826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4828 else 4829 # Make teststring a little bigger before we do anything with it. 4830 # a 1K string should be a reasonable start. 4831 for i in 1 2 3 4 5 6 7 8; do 4832 teststring=$teststring$teststring 4833 done 4834 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4835 # If test is not a shell built-in, we'll probably end up computing a 4836 # maximum length that is only half of the actual maximum length, but 4837 # we can't tell. 4838 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4839 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4840 test 17 != "$i" # 1/2 MB should be enough 4841 do 4842 i=`expr $i + 1` 4843 teststring=$teststring$teststring 4844 done 4845 # Only check the string length outside the loop. 4846 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4847 teststring= 4848 # Add a significant safety factor because C++ compilers can tack on 4849 # massive amounts of additional arguments before passing them to the 4850 # linker. It appears as though 1/2 is a usable value. 4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4852 fi 4853 ;; 4854 esac 4855 4856fi 4857 4858if test -n "$lt_cv_sys_max_cmd_len"; then 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4860$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4861else 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4863$as_echo "none" >&6; } 4864fi 4865max_cmd_len=$lt_cv_sys_max_cmd_len 4866 4867 4868 4869 4870 4871 4872: ${CP="cp -f"} 4873: ${MV="mv -f"} 4874: ${RM="rm -f"} 4875 4876if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4877 lt_unset=unset 4878else 4879 lt_unset=false 4880fi 4881 4882 4883 4884 4885 4886# test EBCDIC or ASCII 4887case `echo X|tr X '\101'` in 4888 A) # ASCII based system 4889 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4890 lt_SP2NL='tr \040 \012' 4891 lt_NL2SP='tr \015\012 \040\040' 4892 ;; 4893 *) # EBCDIC based system 4894 lt_SP2NL='tr \100 \n' 4895 lt_NL2SP='tr \r\n \100\100' 4896 ;; 4897esac 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4908$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4909if ${lt_cv_to_host_file_cmd+:} false; then : 4910 $as_echo_n "(cached) " >&6 4911else 4912 case $host in 4913 *-*-mingw* ) 4914 case $build in 4915 *-*-mingw* ) # actually msys 4916 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4917 ;; 4918 *-*-cygwin* ) 4919 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4920 ;; 4921 * ) # otherwise, assume *nix 4922 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4923 ;; 4924 esac 4925 ;; 4926 *-*-cygwin* ) 4927 case $build in 4928 *-*-mingw* ) # actually msys 4929 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4930 ;; 4931 *-*-cygwin* ) 4932 lt_cv_to_host_file_cmd=func_convert_file_noop 4933 ;; 4934 * ) # otherwise, assume *nix 4935 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4936 ;; 4937 esac 4938 ;; 4939 * ) # unhandled hosts (and "normal" native builds) 4940 lt_cv_to_host_file_cmd=func_convert_file_noop 4941 ;; 4942esac 4943 4944fi 4945 4946to_host_file_cmd=$lt_cv_to_host_file_cmd 4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4948$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4949 4950 4951 4952 4953 4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4955$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4956if ${lt_cv_to_tool_file_cmd+:} false; then : 4957 $as_echo_n "(cached) " >&6 4958else 4959 #assume ordinary cross tools, or native build. 4960lt_cv_to_tool_file_cmd=func_convert_file_noop 4961case $host in 4962 *-*-mingw* ) 4963 case $build in 4964 *-*-mingw* ) # actually msys 4965 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4966 ;; 4967 esac 4968 ;; 4969esac 4970 4971fi 4972 4973to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4975$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4976 4977 4978 4979 4980 4981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4982$as_echo_n "checking for $LD option to reload object files... " >&6; } 4983if ${lt_cv_ld_reload_flag+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 lt_cv_ld_reload_flag='-r' 4987fi 4988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4989$as_echo "$lt_cv_ld_reload_flag" >&6; } 4990reload_flag=$lt_cv_ld_reload_flag 4991case $reload_flag in 4992"" | " "*) ;; 4993*) reload_flag=" $reload_flag" ;; 4994esac 4995reload_cmds='$LD$reload_flag -o $output$reload_objs' 4996case $host_os in 4997 cygwin* | mingw* | pw32* | cegcc*) 4998 if test yes != "$GCC"; then 4999 reload_cmds=false 5000 fi 5001 ;; 5002 darwin*) 5003 if test yes = "$GCC"; then 5004 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 5005 else 5006 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5007 fi 5008 ;; 5009esac 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019if test -n "$ac_tool_prefix"; then 5020 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5021set dummy ${ac_tool_prefix}objdump; ac_word=$2 5022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5023$as_echo_n "checking for $ac_word... " >&6; } 5024if ${ac_cv_prog_OBJDUMP+:} false; then : 5025 $as_echo_n "(cached) " >&6 5026else 5027 if test -n "$OBJDUMP"; then 5028 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5029else 5030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5031for as_dir in $PATH 5032do 5033 IFS=$as_save_IFS 5034 test -z "$as_dir" && as_dir=. 5035 for ac_exec_ext in '' $ac_executable_extensions; do 5036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5037 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5039 break 2 5040 fi 5041done 5042 done 5043IFS=$as_save_IFS 5044 5045fi 5046fi 5047OBJDUMP=$ac_cv_prog_OBJDUMP 5048if test -n "$OBJDUMP"; then 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5050$as_echo "$OBJDUMP" >&6; } 5051else 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5053$as_echo "no" >&6; } 5054fi 5055 5056 5057fi 5058if test -z "$ac_cv_prog_OBJDUMP"; then 5059 ac_ct_OBJDUMP=$OBJDUMP 5060 # Extract the first word of "objdump", so it can be a program name with args. 5061set dummy objdump; ac_word=$2 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5063$as_echo_n "checking for $ac_word... " >&6; } 5064if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 if test -n "$ac_ct_OBJDUMP"; then 5068 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5069else 5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5071for as_dir in $PATH 5072do 5073 IFS=$as_save_IFS 5074 test -z "$as_dir" && as_dir=. 5075 for ac_exec_ext in '' $ac_executable_extensions; do 5076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5077 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5079 break 2 5080 fi 5081done 5082 done 5083IFS=$as_save_IFS 5084 5085fi 5086fi 5087ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5088if test -n "$ac_ct_OBJDUMP"; then 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5090$as_echo "$ac_ct_OBJDUMP" >&6; } 5091else 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5093$as_echo "no" >&6; } 5094fi 5095 5096 if test "x$ac_ct_OBJDUMP" = x; then 5097 OBJDUMP="false" 5098 else 5099 case $cross_compiling:$ac_tool_warned in 5100yes:) 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5103ac_tool_warned=yes ;; 5104esac 5105 OBJDUMP=$ac_ct_OBJDUMP 5106 fi 5107else 5108 OBJDUMP="$ac_cv_prog_OBJDUMP" 5109fi 5110 5111test -z "$OBJDUMP" && OBJDUMP=objdump 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5122$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5123if ${lt_cv_deplibs_check_method+:} false; then : 5124 $as_echo_n "(cached) " >&6 5125else 5126 lt_cv_file_magic_cmd='$MAGIC_CMD' 5127lt_cv_file_magic_test_file= 5128lt_cv_deplibs_check_method='unknown' 5129# Need to set the preceding variable on all platforms that support 5130# interlibrary dependencies. 5131# 'none' -- dependencies not supported. 5132# 'unknown' -- same as none, but documents that we really don't know. 5133# 'pass_all' -- all dependencies passed with no checks. 5134# 'test_compile' -- check by making test program. 5135# 'file_magic [[regex]]' -- check by looking for files in library path 5136# that responds to the $file_magic_cmd with a given extended regex. 5137# If you have 'file' or equivalent on your system and you're not sure 5138# whether 'pass_all' will *always* work, you probably want this one. 5139 5140case $host_os in 5141aix[4-9]*) 5142 lt_cv_deplibs_check_method=pass_all 5143 ;; 5144 5145beos*) 5146 lt_cv_deplibs_check_method=pass_all 5147 ;; 5148 5149bsdi[45]*) 5150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5151 lt_cv_file_magic_cmd='/usr/bin/file -L' 5152 lt_cv_file_magic_test_file=/shlib/libc.so 5153 ;; 5154 5155cygwin*) 5156 # func_win32_libid is a shell function defined in ltmain.sh 5157 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5158 lt_cv_file_magic_cmd='func_win32_libid' 5159 ;; 5160 5161mingw* | pw32*) 5162 # Base MSYS/MinGW do not provide the 'file' command needed by 5163 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5164 # unless we find 'file', for example because we are cross-compiling. 5165 if ( file / ) >/dev/null 2>&1; then 5166 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5167 lt_cv_file_magic_cmd='func_win32_libid' 5168 else 5169 # Keep this pattern in sync with the one in func_win32_libid. 5170 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5171 lt_cv_file_magic_cmd='$OBJDUMP -f' 5172 fi 5173 ;; 5174 5175cegcc*) 5176 # use the weaker test based on 'objdump'. See mingw*. 5177 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5178 lt_cv_file_magic_cmd='$OBJDUMP -f' 5179 ;; 5180 5181darwin* | rhapsody*) 5182 lt_cv_deplibs_check_method=pass_all 5183 ;; 5184 5185freebsd* | dragonfly*) 5186 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5187 case $host_cpu in 5188 i*86 ) 5189 # Not sure whether the presence of OpenBSD here was a mistake. 5190 # Let's accept both of them until this is cleared up. 5191 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5192 lt_cv_file_magic_cmd=/usr/bin/file 5193 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5194 ;; 5195 esac 5196 else 5197 lt_cv_deplibs_check_method=pass_all 5198 fi 5199 ;; 5200 5201haiku*) 5202 lt_cv_deplibs_check_method=pass_all 5203 ;; 5204 5205hpux10.20* | hpux11*) 5206 lt_cv_file_magic_cmd=/usr/bin/file 5207 case $host_cpu in 5208 ia64*) 5209 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5210 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5211 ;; 5212 hppa*64*) 5213 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]' 5214 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5215 ;; 5216 *) 5217 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5218 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5219 ;; 5220 esac 5221 ;; 5222 5223interix[3-9]*) 5224 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5225 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5226 ;; 5227 5228irix5* | irix6* | nonstopux*) 5229 case $LD in 5230 *-32|*"-32 ") libmagic=32-bit;; 5231 *-n32|*"-n32 ") libmagic=N32;; 5232 *-64|*"-64 ") libmagic=64-bit;; 5233 *) libmagic=never-match;; 5234 esac 5235 lt_cv_deplibs_check_method=pass_all 5236 ;; 5237 5238# This must be glibc/ELF. 5239linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 5240 lt_cv_deplibs_check_method=pass_all 5241 ;; 5242 5243netbsd*) 5244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5246 else 5247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5248 fi 5249 ;; 5250 5251newos6*) 5252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5253 lt_cv_file_magic_cmd=/usr/bin/file 5254 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5255 ;; 5256 5257*nto* | *qnx*) 5258 lt_cv_deplibs_check_method=pass_all 5259 ;; 5260 5261openbsd* | bitrig*) 5262 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 5263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5264 else 5265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5266 fi 5267 ;; 5268 5269osf3* | osf4* | osf5*) 5270 lt_cv_deplibs_check_method=pass_all 5271 ;; 5272 5273rdos*) 5274 lt_cv_deplibs_check_method=pass_all 5275 ;; 5276 5277solaris*) 5278 lt_cv_deplibs_check_method=pass_all 5279 ;; 5280 5281sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5282 lt_cv_deplibs_check_method=pass_all 5283 ;; 5284 5285sysv4 | sysv4.3*) 5286 case $host_vendor in 5287 motorola) 5288 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]' 5289 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5290 ;; 5291 ncr) 5292 lt_cv_deplibs_check_method=pass_all 5293 ;; 5294 sequent) 5295 lt_cv_file_magic_cmd='/bin/file' 5296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5297 ;; 5298 sni) 5299 lt_cv_file_magic_cmd='/bin/file' 5300 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5301 lt_cv_file_magic_test_file=/lib/libc.so 5302 ;; 5303 siemens) 5304 lt_cv_deplibs_check_method=pass_all 5305 ;; 5306 pc) 5307 lt_cv_deplibs_check_method=pass_all 5308 ;; 5309 esac 5310 ;; 5311 5312tpf*) 5313 lt_cv_deplibs_check_method=pass_all 5314 ;; 5315os2*) 5316 lt_cv_deplibs_check_method=pass_all 5317 ;; 5318esac 5319 5320fi 5321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5322$as_echo "$lt_cv_deplibs_check_method" >&6; } 5323 5324file_magic_glob= 5325want_nocaseglob=no 5326if test "$build" = "$host"; then 5327 case $host_os in 5328 mingw* | pw32*) 5329 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5330 want_nocaseglob=yes 5331 else 5332 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5333 fi 5334 ;; 5335 esac 5336fi 5337 5338file_magic_cmd=$lt_cv_file_magic_cmd 5339deplibs_check_method=$lt_cv_deplibs_check_method 5340test -z "$deplibs_check_method" && deplibs_check_method=unknown 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363if test -n "$ac_tool_prefix"; then 5364 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5365set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5367$as_echo_n "checking for $ac_word... " >&6; } 5368if ${ac_cv_prog_DLLTOOL+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370else 5371 if test -n "$DLLTOOL"; then 5372 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5373else 5374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5375for as_dir in $PATH 5376do 5377 IFS=$as_save_IFS 5378 test -z "$as_dir" && as_dir=. 5379 for ac_exec_ext in '' $ac_executable_extensions; do 5380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5381 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5383 break 2 5384 fi 5385done 5386 done 5387IFS=$as_save_IFS 5388 5389fi 5390fi 5391DLLTOOL=$ac_cv_prog_DLLTOOL 5392if test -n "$DLLTOOL"; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5394$as_echo "$DLLTOOL" >&6; } 5395else 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397$as_echo "no" >&6; } 5398fi 5399 5400 5401fi 5402if test -z "$ac_cv_prog_DLLTOOL"; then 5403 ac_ct_DLLTOOL=$DLLTOOL 5404 # Extract the first word of "dlltool", so it can be a program name with args. 5405set dummy dlltool; ac_word=$2 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5407$as_echo_n "checking for $ac_word... " >&6; } 5408if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5409 $as_echo_n "(cached) " >&6 5410else 5411 if test -n "$ac_ct_DLLTOOL"; then 5412 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5413else 5414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5415for as_dir in $PATH 5416do 5417 IFS=$as_save_IFS 5418 test -z "$as_dir" && as_dir=. 5419 for ac_exec_ext in '' $ac_executable_extensions; do 5420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5421 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5423 break 2 5424 fi 5425done 5426 done 5427IFS=$as_save_IFS 5428 5429fi 5430fi 5431ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5432if test -n "$ac_ct_DLLTOOL"; then 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5434$as_echo "$ac_ct_DLLTOOL" >&6; } 5435else 5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5437$as_echo "no" >&6; } 5438fi 5439 5440 if test "x$ac_ct_DLLTOOL" = x; then 5441 DLLTOOL="false" 5442 else 5443 case $cross_compiling:$ac_tool_warned in 5444yes:) 5445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5447ac_tool_warned=yes ;; 5448esac 5449 DLLTOOL=$ac_ct_DLLTOOL 5450 fi 5451else 5452 DLLTOOL="$ac_cv_prog_DLLTOOL" 5453fi 5454 5455test -z "$DLLTOOL" && DLLTOOL=dlltool 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5467$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5468if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5469 $as_echo_n "(cached) " >&6 5470else 5471 lt_cv_sharedlib_from_linklib_cmd='unknown' 5472 5473case $host_os in 5474cygwin* | mingw* | pw32* | cegcc*) 5475 # two different shell functions defined in ltmain.sh; 5476 # decide which one to use based on capabilities of $DLLTOOL 5477 case `$DLLTOOL --help 2>&1` in 5478 *--identify-strict*) 5479 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5480 ;; 5481 *) 5482 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5483 ;; 5484 esac 5485 ;; 5486*) 5487 # fallback: assume linklib IS sharedlib 5488 lt_cv_sharedlib_from_linklib_cmd=$ECHO 5489 ;; 5490esac 5491 5492fi 5493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5494$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5495sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5496test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5497 5498 5499 5500 5501 5502 5503 5504 5505if test -n "$ac_tool_prefix"; then 5506 for ac_prog in ar 5507 do 5508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5509set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5511$as_echo_n "checking for $ac_word... " >&6; } 5512if ${ac_cv_prog_AR+:} false; then : 5513 $as_echo_n "(cached) " >&6 5514else 5515 if test -n "$AR"; then 5516 ac_cv_prog_AR="$AR" # Let the user override the test. 5517else 5518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5519for as_dir in $PATH 5520do 5521 IFS=$as_save_IFS 5522 test -z "$as_dir" && as_dir=. 5523 for ac_exec_ext in '' $ac_executable_extensions; do 5524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5525 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5527 break 2 5528 fi 5529done 5530 done 5531IFS=$as_save_IFS 5532 5533fi 5534fi 5535AR=$ac_cv_prog_AR 5536if test -n "$AR"; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5538$as_echo "$AR" >&6; } 5539else 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5541$as_echo "no" >&6; } 5542fi 5543 5544 5545 test -n "$AR" && break 5546 done 5547fi 5548if test -z "$AR"; then 5549 ac_ct_AR=$AR 5550 for ac_prog in ar 5551do 5552 # Extract the first word of "$ac_prog", so it can be a program name with args. 5553set dummy $ac_prog; ac_word=$2 5554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5555$as_echo_n "checking for $ac_word... " >&6; } 5556if ${ac_cv_prog_ac_ct_AR+:} false; then : 5557 $as_echo_n "(cached) " >&6 5558else 5559 if test -n "$ac_ct_AR"; then 5560 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5561else 5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5563for as_dir in $PATH 5564do 5565 IFS=$as_save_IFS 5566 test -z "$as_dir" && as_dir=. 5567 for ac_exec_ext in '' $ac_executable_extensions; do 5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5569 ac_cv_prog_ac_ct_AR="$ac_prog" 5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5571 break 2 5572 fi 5573done 5574 done 5575IFS=$as_save_IFS 5576 5577fi 5578fi 5579ac_ct_AR=$ac_cv_prog_ac_ct_AR 5580if test -n "$ac_ct_AR"; then 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5582$as_echo "$ac_ct_AR" >&6; } 5583else 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5585$as_echo "no" >&6; } 5586fi 5587 5588 5589 test -n "$ac_ct_AR" && break 5590done 5591 5592 if test "x$ac_ct_AR" = x; then 5593 AR="false" 5594 else 5595 case $cross_compiling:$ac_tool_warned in 5596yes:) 5597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5599ac_tool_warned=yes ;; 5600esac 5601 AR=$ac_ct_AR 5602 fi 5603fi 5604 5605: ${AR=ar} 5606: ${AR_FLAGS=cru} 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5619$as_echo_n "checking for archiver @FILE support... " >&6; } 5620if ${lt_cv_ar_at_file+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 lt_cv_ar_at_file=no 5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5625/* end confdefs.h. */ 5626 5627int 5628main () 5629{ 5630 5631 ; 5632 return 0; 5633} 5634_ACEOF 5635if ac_fn_c_try_compile "$LINENO"; then : 5636 echo conftest.$ac_objext > conftest.lst 5637 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5639 (eval $lt_ar_try) 2>&5 5640 ac_status=$? 5641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5642 test $ac_status = 0; } 5643 if test 0 -eq "$ac_status"; then 5644 # Ensure the archiver fails upon bogus file names. 5645 rm -f conftest.$ac_objext libconftest.a 5646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5647 (eval $lt_ar_try) 2>&5 5648 ac_status=$? 5649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5650 test $ac_status = 0; } 5651 if test 0 -ne "$ac_status"; then 5652 lt_cv_ar_at_file=@ 5653 fi 5654 fi 5655 rm -f conftest.* libconftest.a 5656 5657fi 5658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5659 5660fi 5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5662$as_echo "$lt_cv_ar_at_file" >&6; } 5663 5664if test no = "$lt_cv_ar_at_file"; then 5665 archiver_list_spec= 5666else 5667 archiver_list_spec=$lt_cv_ar_at_file 5668fi 5669 5670 5671 5672 5673 5674 5675 5676if test -n "$ac_tool_prefix"; then 5677 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5678set dummy ${ac_tool_prefix}strip; ac_word=$2 5679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5680$as_echo_n "checking for $ac_word... " >&6; } 5681if ${ac_cv_prog_STRIP+:} false; then : 5682 $as_echo_n "(cached) " >&6 5683else 5684 if test -n "$STRIP"; then 5685 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5686else 5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5688for as_dir in $PATH 5689do 5690 IFS=$as_save_IFS 5691 test -z "$as_dir" && as_dir=. 5692 for ac_exec_ext in '' $ac_executable_extensions; do 5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5694 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5696 break 2 5697 fi 5698done 5699 done 5700IFS=$as_save_IFS 5701 5702fi 5703fi 5704STRIP=$ac_cv_prog_STRIP 5705if test -n "$STRIP"; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5707$as_echo "$STRIP" >&6; } 5708else 5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5710$as_echo "no" >&6; } 5711fi 5712 5713 5714fi 5715if test -z "$ac_cv_prog_STRIP"; then 5716 ac_ct_STRIP=$STRIP 5717 # Extract the first word of "strip", so it can be a program name with args. 5718set dummy strip; ac_word=$2 5719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5720$as_echo_n "checking for $ac_word... " >&6; } 5721if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5722 $as_echo_n "(cached) " >&6 5723else 5724 if test -n "$ac_ct_STRIP"; then 5725 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5726else 5727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5728for as_dir in $PATH 5729do 5730 IFS=$as_save_IFS 5731 test -z "$as_dir" && as_dir=. 5732 for ac_exec_ext in '' $ac_executable_extensions; do 5733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5734 ac_cv_prog_ac_ct_STRIP="strip" 5735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5736 break 2 5737 fi 5738done 5739 done 5740IFS=$as_save_IFS 5741 5742fi 5743fi 5744ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5745if test -n "$ac_ct_STRIP"; then 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5747$as_echo "$ac_ct_STRIP" >&6; } 5748else 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5750$as_echo "no" >&6; } 5751fi 5752 5753 if test "x$ac_ct_STRIP" = x; then 5754 STRIP=":" 5755 else 5756 case $cross_compiling:$ac_tool_warned in 5757yes:) 5758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5760ac_tool_warned=yes ;; 5761esac 5762 STRIP=$ac_ct_STRIP 5763 fi 5764else 5765 STRIP="$ac_cv_prog_STRIP" 5766fi 5767 5768test -z "$STRIP" && STRIP=: 5769 5770 5771 5772 5773 5774 5775if test -n "$ac_tool_prefix"; then 5776 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5777set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5779$as_echo_n "checking for $ac_word... " >&6; } 5780if ${ac_cv_prog_RANLIB+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 if test -n "$RANLIB"; then 5784 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5785else 5786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5787for as_dir in $PATH 5788do 5789 IFS=$as_save_IFS 5790 test -z "$as_dir" && as_dir=. 5791 for ac_exec_ext in '' $ac_executable_extensions; do 5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5793 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5795 break 2 5796 fi 5797done 5798 done 5799IFS=$as_save_IFS 5800 5801fi 5802fi 5803RANLIB=$ac_cv_prog_RANLIB 5804if test -n "$RANLIB"; then 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5806$as_echo "$RANLIB" >&6; } 5807else 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5809$as_echo "no" >&6; } 5810fi 5811 5812 5813fi 5814if test -z "$ac_cv_prog_RANLIB"; then 5815 ac_ct_RANLIB=$RANLIB 5816 # Extract the first word of "ranlib", so it can be a program name with args. 5817set dummy ranlib; ac_word=$2 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5819$as_echo_n "checking for $ac_word... " >&6; } 5820if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 if test -n "$ac_ct_RANLIB"; then 5824 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5825else 5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5827for as_dir in $PATH 5828do 5829 IFS=$as_save_IFS 5830 test -z "$as_dir" && as_dir=. 5831 for ac_exec_ext in '' $ac_executable_extensions; do 5832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5833 ac_cv_prog_ac_ct_RANLIB="ranlib" 5834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5835 break 2 5836 fi 5837done 5838 done 5839IFS=$as_save_IFS 5840 5841fi 5842fi 5843ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5844if test -n "$ac_ct_RANLIB"; then 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5846$as_echo "$ac_ct_RANLIB" >&6; } 5847else 5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5849$as_echo "no" >&6; } 5850fi 5851 5852 if test "x$ac_ct_RANLIB" = x; then 5853 RANLIB=":" 5854 else 5855 case $cross_compiling:$ac_tool_warned in 5856yes:) 5857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5859ac_tool_warned=yes ;; 5860esac 5861 RANLIB=$ac_ct_RANLIB 5862 fi 5863else 5864 RANLIB="$ac_cv_prog_RANLIB" 5865fi 5866 5867test -z "$RANLIB" && RANLIB=: 5868 5869 5870 5871 5872 5873 5874# Determine commands to create old-style static archives. 5875old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5876old_postinstall_cmds='chmod 644 $oldlib' 5877old_postuninstall_cmds= 5878 5879if test -n "$RANLIB"; then 5880 case $host_os in 5881 bitrig* | openbsd*) 5882 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5883 ;; 5884 *) 5885 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5886 ;; 5887 esac 5888 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5889fi 5890 5891case $host_os in 5892 darwin*) 5893 lock_old_archive_extraction=yes ;; 5894 *) 5895 lock_old_archive_extraction=no ;; 5896esac 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936# If no C compiler was specified, use CC. 5937LTCC=${LTCC-"$CC"} 5938 5939# If no C compiler flags were specified, use CFLAGS. 5940LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5941 5942# Allow CC to be a program name with arguments. 5943compiler=$CC 5944 5945 5946# Check for command to grab the raw symbol name followed by C symbol from nm. 5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5948$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5949if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 5953# These are sane defaults that work on at least a few old systems. 5954# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5955 5956# Character class describing NM global symbol codes. 5957symcode='[BCDEGRST]' 5958 5959# Regexp to match symbols that can be accessed directly from C. 5960sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5961 5962# Define system-specific variables. 5963case $host_os in 5964aix*) 5965 symcode='[BCDT]' 5966 ;; 5967cygwin* | mingw* | pw32* | cegcc*) 5968 symcode='[ABCDGISTW]' 5969 ;; 5970hpux*) 5971 if test ia64 = "$host_cpu"; then 5972 symcode='[ABCDEGRST]' 5973 fi 5974 ;; 5975irix* | nonstopux*) 5976 symcode='[BCDEGRST]' 5977 ;; 5978osf*) 5979 symcode='[BCDEGQRST]' 5980 ;; 5981solaris*) 5982 symcode='[BDRT]' 5983 ;; 5984sco3.2v5*) 5985 symcode='[DT]' 5986 ;; 5987sysv4.2uw2*) 5988 symcode='[DT]' 5989 ;; 5990sysv5* | sco5v6* | unixware* | OpenUNIX*) 5991 symcode='[ABDT]' 5992 ;; 5993sysv4) 5994 symcode='[DFNSTU]' 5995 ;; 5996esac 5997 5998# If we're using GNU nm, then use its standard symbol codes. 5999case `$NM -V 2>&1` in 6000*GNU* | *'with BFD'*) 6001 symcode='[ABCDGIRSTW]' ;; 6002esac 6003 6004if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6005 # Gets list of data symbols to import. 6006 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 6007 # Adjust the below global symbol transforms to fixup imported variables. 6008 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 6009 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 6010 lt_c_name_lib_hook="\ 6011 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 6012 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 6013else 6014 # Disable hooks by default. 6015 lt_cv_sys_global_symbol_to_import= 6016 lt_cdecl_hook= 6017 lt_c_name_hook= 6018 lt_c_name_lib_hook= 6019fi 6020 6021# Transform an extracted symbol line into a proper C declaration. 6022# Some systems (esp. on ia64) link data and code symbols differently, 6023# so use this general approach. 6024lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 6025$lt_cdecl_hook\ 6026" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 6027" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 6028 6029# Transform an extracted symbol line into symbol name and symbol address 6030lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 6031$lt_c_name_hook\ 6032" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6033" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 6034 6035# Transform an extracted symbol line into symbol name with lib prefix and 6036# symbol address. 6037lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 6038$lt_c_name_lib_hook\ 6039" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 6040" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 6041" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 6042 6043# Handle CRLF in mingw tool chain 6044opt_cr= 6045case $build_os in 6046mingw*) 6047 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6048 ;; 6049esac 6050 6051# Try without a prefix underscore, then with it. 6052for ac_symprfx in "" "_"; do 6053 6054 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6055 symxfrm="\\1 $ac_symprfx\\2 \\2" 6056 6057 # Write the raw and C identifiers. 6058 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6059 # Fake it for dumpbin and say T for any non-static function, 6060 # D for any global variable and I for any imported variable. 6061 # Also find C++ and __fastcall symbols from MSVC++, 6062 # which start with @ or ?. 6063 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6064" {last_section=section; section=\$ 3};"\ 6065" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6066" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6067" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 6068" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 6069" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 6070" \$ 0!~/External *\|/{next};"\ 6071" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6072" {if(hide[section]) next};"\ 6073" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 6074" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 6075" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 6076" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 6077" ' prfx=^$ac_symprfx" 6078 else 6079 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6080 fi 6081 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6082 6083 # Check to see that the pipe works correctly. 6084 pipe_works=no 6085 6086 rm -f conftest* 6087 cat > conftest.$ac_ext <<_LT_EOF 6088#ifdef __cplusplus 6089extern "C" { 6090#endif 6091char nm_test_var; 6092void nm_test_func(void); 6093void nm_test_func(void){} 6094#ifdef __cplusplus 6095} 6096#endif 6097int main(){nm_test_var='a';nm_test_func();return(0);} 6098_LT_EOF 6099 6100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6101 (eval $ac_compile) 2>&5 6102 ac_status=$? 6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6104 test $ac_status = 0; }; then 6105 # Now try to grab the symbols. 6106 nlist=conftest.nm 6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6108 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6109 ac_status=$? 6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6111 test $ac_status = 0; } && test -s "$nlist"; then 6112 # Try sorting and uniquifying the output. 6113 if sort "$nlist" | uniq > "$nlist"T; then 6114 mv -f "$nlist"T "$nlist" 6115 else 6116 rm -f "$nlist"T 6117 fi 6118 6119 # Make sure that we snagged all the symbols we need. 6120 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6121 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6122 cat <<_LT_EOF > conftest.$ac_ext 6123/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6124#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 6125/* DATA imports from DLLs on WIN32 can't be const, because runtime 6126 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6127# define LT_DLSYM_CONST 6128#elif defined __osf__ 6129/* This system does not cope well with relocations in const data. */ 6130# define LT_DLSYM_CONST 6131#else 6132# define LT_DLSYM_CONST const 6133#endif 6134 6135#ifdef __cplusplus 6136extern "C" { 6137#endif 6138 6139_LT_EOF 6140 # Now generate the symbol file. 6141 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6142 6143 cat <<_LT_EOF >> conftest.$ac_ext 6144 6145/* The mapping between symbol names and symbols. */ 6146LT_DLSYM_CONST struct { 6147 const char *name; 6148 void *address; 6149} 6150lt__PROGRAM__LTX_preloaded_symbols[] = 6151{ 6152 { "@PROGRAM@", (void *) 0 }, 6153_LT_EOF 6154 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6155 cat <<\_LT_EOF >> conftest.$ac_ext 6156 {0, (void *) 0} 6157}; 6158 6159/* This works around a problem in FreeBSD linker */ 6160#ifdef FREEBSD_WORKAROUND 6161static const void *lt_preloaded_setup() { 6162 return lt__PROGRAM__LTX_preloaded_symbols; 6163} 6164#endif 6165 6166#ifdef __cplusplus 6167} 6168#endif 6169_LT_EOF 6170 # Now try linking the two files. 6171 mv conftest.$ac_objext conftstm.$ac_objext 6172 lt_globsym_save_LIBS=$LIBS 6173 lt_globsym_save_CFLAGS=$CFLAGS 6174 LIBS=conftstm.$ac_objext 6175 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6177 (eval $ac_link) 2>&5 6178 ac_status=$? 6179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6180 test $ac_status = 0; } && test -s conftest$ac_exeext; then 6181 pipe_works=yes 6182 fi 6183 LIBS=$lt_globsym_save_LIBS 6184 CFLAGS=$lt_globsym_save_CFLAGS 6185 else 6186 echo "cannot find nm_test_func in $nlist" >&5 6187 fi 6188 else 6189 echo "cannot find nm_test_var in $nlist" >&5 6190 fi 6191 else 6192 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6193 fi 6194 else 6195 echo "$progname: failed program was:" >&5 6196 cat conftest.$ac_ext >&5 6197 fi 6198 rm -rf conftest* conftst* 6199 6200 # Do not use the global_symbol_pipe unless it works. 6201 if test yes = "$pipe_works"; then 6202 break 6203 else 6204 lt_cv_sys_global_symbol_pipe= 6205 fi 6206done 6207 6208fi 6209 6210if test -z "$lt_cv_sys_global_symbol_pipe"; then 6211 lt_cv_sys_global_symbol_to_cdecl= 6212fi 6213if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6215$as_echo "failed" >&6; } 6216else 6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6218$as_echo "ok" >&6; } 6219fi 6220 6221# Response file support. 6222if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6223 nm_file_list_spec='@' 6224elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6225 nm_file_list_spec='@' 6226fi 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6265$as_echo_n "checking for sysroot... " >&6; } 6266 6267# Check whether --with-sysroot was given. 6268if test "${with_sysroot+set}" = set; then : 6269 withval=$with_sysroot; 6270else 6271 with_sysroot=no 6272fi 6273 6274 6275lt_sysroot= 6276case $with_sysroot in #( 6277 yes) 6278 if test yes = "$GCC"; then 6279 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6280 fi 6281 ;; #( 6282 /*) 6283 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6284 ;; #( 6285 no|'') 6286 ;; #( 6287 *) 6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 6289$as_echo "$with_sysroot" >&6; } 6290 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6291 ;; 6292esac 6293 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6295$as_echo "${lt_sysroot:-no}" >&6; } 6296 6297 6298 6299 6300 6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 6302$as_echo_n "checking for a working dd... " >&6; } 6303if ${ac_cv_path_lt_DD+:} false; then : 6304 $as_echo_n "(cached) " >&6 6305else 6306 printf 0123456789abcdef0123456789abcdef >conftest.i 6307cat conftest.i conftest.i >conftest2.i 6308: ${lt_DD:=$DD} 6309if test -z "$lt_DD"; then 6310 ac_path_lt_DD_found=false 6311 # Loop through the user's path and test for each of PROGNAME-LIST 6312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6313for as_dir in $PATH 6314do 6315 IFS=$as_save_IFS 6316 test -z "$as_dir" && as_dir=. 6317 for ac_prog in dd; do 6318 for ac_exec_ext in '' $ac_executable_extensions; do 6319 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 6320 as_fn_executable_p "$ac_path_lt_DD" || continue 6321if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6322 cmp -s conftest.i conftest.out \ 6323 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 6324fi 6325 $ac_path_lt_DD_found && break 3 6326 done 6327 done 6328 done 6329IFS=$as_save_IFS 6330 if test -z "$ac_cv_path_lt_DD"; then 6331 : 6332 fi 6333else 6334 ac_cv_path_lt_DD=$lt_DD 6335fi 6336 6337rm -f conftest.i conftest2.i conftest.out 6338fi 6339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 6340$as_echo "$ac_cv_path_lt_DD" >&6; } 6341 6342 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 6344$as_echo_n "checking how to truncate binary pipes... " >&6; } 6345if ${lt_cv_truncate_bin+:} false; then : 6346 $as_echo_n "(cached) " >&6 6347else 6348 printf 0123456789abcdef0123456789abcdef >conftest.i 6349cat conftest.i conftest.i >conftest2.i 6350lt_cv_truncate_bin= 6351if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 6352 cmp -s conftest.i conftest.out \ 6353 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 6354fi 6355rm -f conftest.i conftest2.i conftest.out 6356test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 6357fi 6358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 6359$as_echo "$lt_cv_truncate_bin" >&6; } 6360 6361 6362 6363 6364 6365 6366 6367# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 6368func_cc_basename () 6369{ 6370 for cc_temp in $*""; do 6371 case $cc_temp in 6372 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6373 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6374 \-*) ;; 6375 *) break;; 6376 esac 6377 done 6378 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 6379} 6380 6381# Check whether --enable-libtool-lock was given. 6382if test "${enable_libtool_lock+set}" = set; then : 6383 enableval=$enable_libtool_lock; 6384fi 6385 6386test no = "$enable_libtool_lock" || enable_libtool_lock=yes 6387 6388# Some flags need to be propagated to the compiler or linker for good 6389# libtool support. 6390case $host in 6391ia64-*-hpux*) 6392 # Find out what ABI is being produced by ac_compile, and set mode 6393 # options accordingly. 6394 echo 'int i;' > conftest.$ac_ext 6395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6396 (eval $ac_compile) 2>&5 6397 ac_status=$? 6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6399 test $ac_status = 0; }; then 6400 case `/usr/bin/file conftest.$ac_objext` in 6401 *ELF-32*) 6402 HPUX_IA64_MODE=32 6403 ;; 6404 *ELF-64*) 6405 HPUX_IA64_MODE=64 6406 ;; 6407 esac 6408 fi 6409 rm -rf conftest* 6410 ;; 6411*-*-irix6*) 6412 # Find out what ABI is being produced by ac_compile, and set linker 6413 # options accordingly. 6414 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6416 (eval $ac_compile) 2>&5 6417 ac_status=$? 6418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6419 test $ac_status = 0; }; then 6420 if test yes = "$lt_cv_prog_gnu_ld"; then 6421 case `/usr/bin/file conftest.$ac_objext` in 6422 *32-bit*) 6423 LD="${LD-ld} -melf32bsmip" 6424 ;; 6425 *N32*) 6426 LD="${LD-ld} -melf32bmipn32" 6427 ;; 6428 *64-bit*) 6429 LD="${LD-ld} -melf64bmip" 6430 ;; 6431 esac 6432 else 6433 case `/usr/bin/file conftest.$ac_objext` in 6434 *32-bit*) 6435 LD="${LD-ld} -32" 6436 ;; 6437 *N32*) 6438 LD="${LD-ld} -n32" 6439 ;; 6440 *64-bit*) 6441 LD="${LD-ld} -64" 6442 ;; 6443 esac 6444 fi 6445 fi 6446 rm -rf conftest* 6447 ;; 6448 6449mips64*-*linux*) 6450 # Find out what ABI is being produced by ac_compile, and set linker 6451 # options accordingly. 6452 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6454 (eval $ac_compile) 2>&5 6455 ac_status=$? 6456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6457 test $ac_status = 0; }; then 6458 emul=elf 6459 case `/usr/bin/file conftest.$ac_objext` in 6460 *32-bit*) 6461 emul="${emul}32" 6462 ;; 6463 *64-bit*) 6464 emul="${emul}64" 6465 ;; 6466 esac 6467 case `/usr/bin/file conftest.$ac_objext` in 6468 *MSB*) 6469 emul="${emul}btsmip" 6470 ;; 6471 *LSB*) 6472 emul="${emul}ltsmip" 6473 ;; 6474 esac 6475 case `/usr/bin/file conftest.$ac_objext` in 6476 *N32*) 6477 emul="${emul}n32" 6478 ;; 6479 esac 6480 LD="${LD-ld} -m $emul" 6481 fi 6482 rm -rf conftest* 6483 ;; 6484 6485x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 6486s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6487 # Find out what ABI is being produced by ac_compile, and set linker 6488 # options accordingly. Note that the listed cases only cover the 6489 # situations where additional linker options are needed (such as when 6490 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 6491 # vice versa); the common cases where no linker options are needed do 6492 # not appear in the list. 6493 echo 'int i;' > conftest.$ac_ext 6494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6495 (eval $ac_compile) 2>&5 6496 ac_status=$? 6497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6498 test $ac_status = 0; }; then 6499 case `/usr/bin/file conftest.o` in 6500 *32-bit*) 6501 case $host in 6502 x86_64-*kfreebsd*-gnu) 6503 LD="${LD-ld} -m elf_i386_fbsd" 6504 ;; 6505 x86_64-*linux*) 6506 case `/usr/bin/file conftest.o` in 6507 *x86-64*) 6508 LD="${LD-ld} -m elf32_x86_64" 6509 ;; 6510 *) 6511 LD="${LD-ld} -m elf_i386" 6512 ;; 6513 esac 6514 ;; 6515 powerpc64le-*linux*) 6516 LD="${LD-ld} -m elf32lppclinux" 6517 ;; 6518 powerpc64-*linux*) 6519 LD="${LD-ld} -m elf32ppclinux" 6520 ;; 6521 s390x-*linux*) 6522 LD="${LD-ld} -m elf_s390" 6523 ;; 6524 sparc64-*linux*) 6525 LD="${LD-ld} -m elf32_sparc" 6526 ;; 6527 esac 6528 ;; 6529 *64-bit*) 6530 case $host in 6531 x86_64-*kfreebsd*-gnu) 6532 LD="${LD-ld} -m elf_x86_64_fbsd" 6533 ;; 6534 x86_64-*linux*) 6535 LD="${LD-ld} -m elf_x86_64" 6536 ;; 6537 powerpcle-*linux*) 6538 LD="${LD-ld} -m elf64lppc" 6539 ;; 6540 powerpc-*linux*) 6541 LD="${LD-ld} -m elf64ppc" 6542 ;; 6543 s390*-*linux*|s390*-*tpf*) 6544 LD="${LD-ld} -m elf64_s390" 6545 ;; 6546 sparc*-*linux*) 6547 LD="${LD-ld} -m elf64_sparc" 6548 ;; 6549 esac 6550 ;; 6551 esac 6552 fi 6553 rm -rf conftest* 6554 ;; 6555 6556*-*-sco3.2v5*) 6557 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6558 SAVE_CFLAGS=$CFLAGS 6559 CFLAGS="$CFLAGS -belf" 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6561$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6562if ${lt_cv_cc_needs_belf+:} false; then : 6563 $as_echo_n "(cached) " >&6 6564else 6565 ac_ext=c 6566ac_cpp='$CPP $CPPFLAGS' 6567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6569ac_compiler_gnu=$ac_cv_c_compiler_gnu 6570 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573 6574int 6575main () 6576{ 6577 6578 ; 6579 return 0; 6580} 6581_ACEOF 6582if ac_fn_c_try_link "$LINENO"; then : 6583 lt_cv_cc_needs_belf=yes 6584else 6585 lt_cv_cc_needs_belf=no 6586fi 6587rm -f core conftest.err conftest.$ac_objext \ 6588 conftest$ac_exeext conftest.$ac_ext 6589 ac_ext=c 6590ac_cpp='$CPP $CPPFLAGS' 6591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6593ac_compiler_gnu=$ac_cv_c_compiler_gnu 6594 6595fi 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6597$as_echo "$lt_cv_cc_needs_belf" >&6; } 6598 if test yes != "$lt_cv_cc_needs_belf"; then 6599 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6600 CFLAGS=$SAVE_CFLAGS 6601 fi 6602 ;; 6603*-*solaris*) 6604 # Find out what ABI is being produced by ac_compile, and set linker 6605 # options accordingly. 6606 echo 'int i;' > conftest.$ac_ext 6607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6608 (eval $ac_compile) 2>&5 6609 ac_status=$? 6610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6611 test $ac_status = 0; }; then 6612 case `/usr/bin/file conftest.o` in 6613 *64-bit*) 6614 case $lt_cv_prog_gnu_ld in 6615 yes*) 6616 case $host in 6617 i?86-*-solaris*|x86_64-*-solaris*) 6618 LD="${LD-ld} -m elf_x86_64" 6619 ;; 6620 sparc*-*-solaris*) 6621 LD="${LD-ld} -m elf64_sparc" 6622 ;; 6623 esac 6624 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6625 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6626 LD=${LD-ld}_sol2 6627 fi 6628 ;; 6629 *) 6630 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6631 LD="${LD-ld} -64" 6632 fi 6633 ;; 6634 esac 6635 ;; 6636 esac 6637 fi 6638 rm -rf conftest* 6639 ;; 6640esac 6641 6642need_locks=$enable_libtool_lock 6643 6644if test -n "$ac_tool_prefix"; then 6645 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6646set dummy ${ac_tool_prefix}mt; ac_word=$2 6647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6648$as_echo_n "checking for $ac_word... " >&6; } 6649if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6650 $as_echo_n "(cached) " >&6 6651else 6652 if test -n "$MANIFEST_TOOL"; then 6653 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6654else 6655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6656for as_dir in $PATH 6657do 6658 IFS=$as_save_IFS 6659 test -z "$as_dir" && as_dir=. 6660 for ac_exec_ext in '' $ac_executable_extensions; do 6661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6662 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6664 break 2 6665 fi 6666done 6667 done 6668IFS=$as_save_IFS 6669 6670fi 6671fi 6672MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6673if test -n "$MANIFEST_TOOL"; then 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6675$as_echo "$MANIFEST_TOOL" >&6; } 6676else 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6678$as_echo "no" >&6; } 6679fi 6680 6681 6682fi 6683if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6684 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6685 # Extract the first word of "mt", so it can be a program name with args. 6686set dummy mt; ac_word=$2 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6688$as_echo_n "checking for $ac_word... " >&6; } 6689if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test -n "$ac_ct_MANIFEST_TOOL"; then 6693 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6694else 6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696for as_dir in $PATH 6697do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6702 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6713if test -n "$ac_ct_MANIFEST_TOOL"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6715$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6716else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718$as_echo "no" >&6; } 6719fi 6720 6721 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6722 MANIFEST_TOOL=":" 6723 else 6724 case $cross_compiling:$ac_tool_warned in 6725yes:) 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6728ac_tool_warned=yes ;; 6729esac 6730 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6731 fi 6732else 6733 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6734fi 6735 6736test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6738$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6739if ${lt_cv_path_mainfest_tool+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741else 6742 lt_cv_path_mainfest_tool=no 6743 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6744 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6745 cat conftest.err >&5 6746 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6747 lt_cv_path_mainfest_tool=yes 6748 fi 6749 rm -f conftest* 6750fi 6751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6752$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6753if test yes != "$lt_cv_path_mainfest_tool"; then 6754 MANIFEST_TOOL=: 6755fi 6756 6757 6758 6759 6760 6761 6762 case $host_os in 6763 rhapsody* | darwin*) 6764 if test -n "$ac_tool_prefix"; then 6765 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6766set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6768$as_echo_n "checking for $ac_word... " >&6; } 6769if ${ac_cv_prog_DSYMUTIL+:} false; then : 6770 $as_echo_n "(cached) " >&6 6771else 6772 if test -n "$DSYMUTIL"; then 6773 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6774else 6775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6776for as_dir in $PATH 6777do 6778 IFS=$as_save_IFS 6779 test -z "$as_dir" && as_dir=. 6780 for ac_exec_ext in '' $ac_executable_extensions; do 6781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6782 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6784 break 2 6785 fi 6786done 6787 done 6788IFS=$as_save_IFS 6789 6790fi 6791fi 6792DSYMUTIL=$ac_cv_prog_DSYMUTIL 6793if test -n "$DSYMUTIL"; then 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6795$as_echo "$DSYMUTIL" >&6; } 6796else 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6798$as_echo "no" >&6; } 6799fi 6800 6801 6802fi 6803if test -z "$ac_cv_prog_DSYMUTIL"; then 6804 ac_ct_DSYMUTIL=$DSYMUTIL 6805 # Extract the first word of "dsymutil", so it can be a program name with args. 6806set dummy dsymutil; ac_word=$2 6807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6808$as_echo_n "checking for $ac_word... " >&6; } 6809if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6810 $as_echo_n "(cached) " >&6 6811else 6812 if test -n "$ac_ct_DSYMUTIL"; then 6813 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6814else 6815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6816for as_dir in $PATH 6817do 6818 IFS=$as_save_IFS 6819 test -z "$as_dir" && as_dir=. 6820 for ac_exec_ext in '' $ac_executable_extensions; do 6821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6822 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6824 break 2 6825 fi 6826done 6827 done 6828IFS=$as_save_IFS 6829 6830fi 6831fi 6832ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6833if test -n "$ac_ct_DSYMUTIL"; then 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6835$as_echo "$ac_ct_DSYMUTIL" >&6; } 6836else 6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6838$as_echo "no" >&6; } 6839fi 6840 6841 if test "x$ac_ct_DSYMUTIL" = x; then 6842 DSYMUTIL=":" 6843 else 6844 case $cross_compiling:$ac_tool_warned in 6845yes:) 6846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6848ac_tool_warned=yes ;; 6849esac 6850 DSYMUTIL=$ac_ct_DSYMUTIL 6851 fi 6852else 6853 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6854fi 6855 6856 if test -n "$ac_tool_prefix"; then 6857 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6858set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6860$as_echo_n "checking for $ac_word... " >&6; } 6861if ${ac_cv_prog_NMEDIT+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 if test -n "$NMEDIT"; then 6865 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6866else 6867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6868for as_dir in $PATH 6869do 6870 IFS=$as_save_IFS 6871 test -z "$as_dir" && as_dir=. 6872 for ac_exec_ext in '' $ac_executable_extensions; do 6873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6874 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6876 break 2 6877 fi 6878done 6879 done 6880IFS=$as_save_IFS 6881 6882fi 6883fi 6884NMEDIT=$ac_cv_prog_NMEDIT 6885if test -n "$NMEDIT"; then 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6887$as_echo "$NMEDIT" >&6; } 6888else 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6890$as_echo "no" >&6; } 6891fi 6892 6893 6894fi 6895if test -z "$ac_cv_prog_NMEDIT"; then 6896 ac_ct_NMEDIT=$NMEDIT 6897 # Extract the first word of "nmedit", so it can be a program name with args. 6898set dummy nmedit; ac_word=$2 6899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6900$as_echo_n "checking for $ac_word... " >&6; } 6901if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6902 $as_echo_n "(cached) " >&6 6903else 6904 if test -n "$ac_ct_NMEDIT"; then 6905 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6906else 6907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6908for as_dir in $PATH 6909do 6910 IFS=$as_save_IFS 6911 test -z "$as_dir" && as_dir=. 6912 for ac_exec_ext in '' $ac_executable_extensions; do 6913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6914 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6916 break 2 6917 fi 6918done 6919 done 6920IFS=$as_save_IFS 6921 6922fi 6923fi 6924ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6925if test -n "$ac_ct_NMEDIT"; then 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6927$as_echo "$ac_ct_NMEDIT" >&6; } 6928else 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930$as_echo "no" >&6; } 6931fi 6932 6933 if test "x$ac_ct_NMEDIT" = x; then 6934 NMEDIT=":" 6935 else 6936 case $cross_compiling:$ac_tool_warned in 6937yes:) 6938{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6939$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6940ac_tool_warned=yes ;; 6941esac 6942 NMEDIT=$ac_ct_NMEDIT 6943 fi 6944else 6945 NMEDIT="$ac_cv_prog_NMEDIT" 6946fi 6947 6948 if test -n "$ac_tool_prefix"; then 6949 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6950set dummy ${ac_tool_prefix}lipo; ac_word=$2 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6952$as_echo_n "checking for $ac_word... " >&6; } 6953if ${ac_cv_prog_LIPO+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955else 6956 if test -n "$LIPO"; then 6957 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 test -z "$as_dir" && as_dir=. 6964 for ac_exec_ext in '' $ac_executable_extensions; do 6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6966 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6968 break 2 6969 fi 6970done 6971 done 6972IFS=$as_save_IFS 6973 6974fi 6975fi 6976LIPO=$ac_cv_prog_LIPO 6977if test -n "$LIPO"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6979$as_echo "$LIPO" >&6; } 6980else 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6982$as_echo "no" >&6; } 6983fi 6984 6985 6986fi 6987if test -z "$ac_cv_prog_LIPO"; then 6988 ac_ct_LIPO=$LIPO 6989 # Extract the first word of "lipo", so it can be a program name with args. 6990set dummy lipo; ac_word=$2 6991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6992$as_echo_n "checking for $ac_word... " >&6; } 6993if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6994 $as_echo_n "(cached) " >&6 6995else 6996 if test -n "$ac_ct_LIPO"; then 6997 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6998else 6999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7000for as_dir in $PATH 7001do 7002 IFS=$as_save_IFS 7003 test -z "$as_dir" && as_dir=. 7004 for ac_exec_ext in '' $ac_executable_extensions; do 7005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7006 ac_cv_prog_ac_ct_LIPO="lipo" 7007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7008 break 2 7009 fi 7010done 7011 done 7012IFS=$as_save_IFS 7013 7014fi 7015fi 7016ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7017if test -n "$ac_ct_LIPO"; then 7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7019$as_echo "$ac_ct_LIPO" >&6; } 7020else 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7022$as_echo "no" >&6; } 7023fi 7024 7025 if test "x$ac_ct_LIPO" = x; then 7026 LIPO=":" 7027 else 7028 case $cross_compiling:$ac_tool_warned in 7029yes:) 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7031$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7032ac_tool_warned=yes ;; 7033esac 7034 LIPO=$ac_ct_LIPO 7035 fi 7036else 7037 LIPO="$ac_cv_prog_LIPO" 7038fi 7039 7040 if test -n "$ac_tool_prefix"; then 7041 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7042set dummy ${ac_tool_prefix}otool; ac_word=$2 7043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7044$as_echo_n "checking for $ac_word... " >&6; } 7045if ${ac_cv_prog_OTOOL+:} false; then : 7046 $as_echo_n "(cached) " >&6 7047else 7048 if test -n "$OTOOL"; then 7049 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7050else 7051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7052for as_dir in $PATH 7053do 7054 IFS=$as_save_IFS 7055 test -z "$as_dir" && as_dir=. 7056 for ac_exec_ext in '' $ac_executable_extensions; do 7057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7058 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7060 break 2 7061 fi 7062done 7063 done 7064IFS=$as_save_IFS 7065 7066fi 7067fi 7068OTOOL=$ac_cv_prog_OTOOL 7069if test -n "$OTOOL"; then 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7071$as_echo "$OTOOL" >&6; } 7072else 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7074$as_echo "no" >&6; } 7075fi 7076 7077 7078fi 7079if test -z "$ac_cv_prog_OTOOL"; then 7080 ac_ct_OTOOL=$OTOOL 7081 # Extract the first word of "otool", so it can be a program name with args. 7082set dummy otool; ac_word=$2 7083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7084$as_echo_n "checking for $ac_word... " >&6; } 7085if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7086 $as_echo_n "(cached) " >&6 7087else 7088 if test -n "$ac_ct_OTOOL"; then 7089 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7090else 7091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092for as_dir in $PATH 7093do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7098 ac_cv_prog_ac_ct_OTOOL="otool" 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102done 7103 done 7104IFS=$as_save_IFS 7105 7106fi 7107fi 7108ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7109if test -n "$ac_ct_OTOOL"; then 7110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7111$as_echo "$ac_ct_OTOOL" >&6; } 7112else 7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7114$as_echo "no" >&6; } 7115fi 7116 7117 if test "x$ac_ct_OTOOL" = x; then 7118 OTOOL=":" 7119 else 7120 case $cross_compiling:$ac_tool_warned in 7121yes:) 7122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7124ac_tool_warned=yes ;; 7125esac 7126 OTOOL=$ac_ct_OTOOL 7127 fi 7128else 7129 OTOOL="$ac_cv_prog_OTOOL" 7130fi 7131 7132 if test -n "$ac_tool_prefix"; then 7133 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7134set dummy ${ac_tool_prefix}otool64; ac_word=$2 7135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7136$as_echo_n "checking for $ac_word... " >&6; } 7137if ${ac_cv_prog_OTOOL64+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 if test -n "$OTOOL64"; then 7141 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7142else 7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7144for as_dir in $PATH 7145do 7146 IFS=$as_save_IFS 7147 test -z "$as_dir" && as_dir=. 7148 for ac_exec_ext in '' $ac_executable_extensions; do 7149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7150 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7152 break 2 7153 fi 7154done 7155 done 7156IFS=$as_save_IFS 7157 7158fi 7159fi 7160OTOOL64=$ac_cv_prog_OTOOL64 7161if test -n "$OTOOL64"; then 7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7163$as_echo "$OTOOL64" >&6; } 7164else 7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7166$as_echo "no" >&6; } 7167fi 7168 7169 7170fi 7171if test -z "$ac_cv_prog_OTOOL64"; then 7172 ac_ct_OTOOL64=$OTOOL64 7173 # Extract the first word of "otool64", so it can be a program name with args. 7174set dummy otool64; ac_word=$2 7175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7176$as_echo_n "checking for $ac_word... " >&6; } 7177if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7178 $as_echo_n "(cached) " >&6 7179else 7180 if test -n "$ac_ct_OTOOL64"; then 7181 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7182else 7183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7184for as_dir in $PATH 7185do 7186 IFS=$as_save_IFS 7187 test -z "$as_dir" && as_dir=. 7188 for ac_exec_ext in '' $ac_executable_extensions; do 7189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7190 ac_cv_prog_ac_ct_OTOOL64="otool64" 7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7192 break 2 7193 fi 7194done 7195 done 7196IFS=$as_save_IFS 7197 7198fi 7199fi 7200ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7201if test -n "$ac_ct_OTOOL64"; then 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7203$as_echo "$ac_ct_OTOOL64" >&6; } 7204else 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7206$as_echo "no" >&6; } 7207fi 7208 7209 if test "x$ac_ct_OTOOL64" = x; then 7210 OTOOL64=":" 7211 else 7212 case $cross_compiling:$ac_tool_warned in 7213yes:) 7214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7216ac_tool_warned=yes ;; 7217esac 7218 OTOOL64=$ac_ct_OTOOL64 7219 fi 7220else 7221 OTOOL64="$ac_cv_prog_OTOOL64" 7222fi 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7251$as_echo_n "checking for -single_module linker flag... " >&6; } 7252if ${lt_cv_apple_cc_single_mod+:} false; then : 7253 $as_echo_n "(cached) " >&6 7254else 7255 lt_cv_apple_cc_single_mod=no 7256 if test -z "$LT_MULTI_MODULE"; then 7257 # By default we will add the -single_module flag. You can override 7258 # by either setting the environment variable LT_MULTI_MODULE 7259 # non-empty at configure time, or by adding -multi_module to the 7260 # link flags. 7261 rm -rf libconftest.dylib* 7262 echo "int foo(void){return 1;}" > conftest.c 7263 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7264-dynamiclib -Wl,-single_module conftest.c" >&5 7265 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7266 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7267 _lt_result=$? 7268 # If there is a non-empty error log, and "single_module" 7269 # appears in it, assume the flag caused a linker warning 7270 if test -s conftest.err && $GREP single_module conftest.err; then 7271 cat conftest.err >&5 7272 # Otherwise, if the output was created with a 0 exit code from 7273 # the compiler, it worked. 7274 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 7275 lt_cv_apple_cc_single_mod=yes 7276 else 7277 cat conftest.err >&5 7278 fi 7279 rm -rf libconftest.dylib* 7280 rm -f conftest.* 7281 fi 7282fi 7283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7284$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7285 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7287$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7288if ${lt_cv_ld_exported_symbols_list+:} false; then : 7289 $as_echo_n "(cached) " >&6 7290else 7291 lt_cv_ld_exported_symbols_list=no 7292 save_LDFLAGS=$LDFLAGS 7293 echo "_main" > conftest.sym 7294 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7296/* end confdefs.h. */ 7297 7298int 7299main () 7300{ 7301 7302 ; 7303 return 0; 7304} 7305_ACEOF 7306if ac_fn_c_try_link "$LINENO"; then : 7307 lt_cv_ld_exported_symbols_list=yes 7308else 7309 lt_cv_ld_exported_symbols_list=no 7310fi 7311rm -f core conftest.err conftest.$ac_objext \ 7312 conftest$ac_exeext conftest.$ac_ext 7313 LDFLAGS=$save_LDFLAGS 7314 7315fi 7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7317$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7318 7319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7320$as_echo_n "checking for -force_load linker flag... " >&6; } 7321if ${lt_cv_ld_force_load+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 lt_cv_ld_force_load=no 7325 cat > conftest.c << _LT_EOF 7326int forced_loaded() { return 2;} 7327_LT_EOF 7328 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7329 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7330 echo "$AR cru libconftest.a conftest.o" >&5 7331 $AR cru libconftest.a conftest.o 2>&5 7332 echo "$RANLIB libconftest.a" >&5 7333 $RANLIB libconftest.a 2>&5 7334 cat > conftest.c << _LT_EOF 7335int main() { return 0;} 7336_LT_EOF 7337 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7338 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7339 _lt_result=$? 7340 if test -s conftest.err && $GREP force_load conftest.err; then 7341 cat conftest.err >&5 7342 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 7343 lt_cv_ld_force_load=yes 7344 else 7345 cat conftest.err >&5 7346 fi 7347 rm -f conftest.err libconftest.a conftest conftest.c 7348 rm -rf conftest.dSYM 7349 7350fi 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7352$as_echo "$lt_cv_ld_force_load" >&6; } 7353 case $host_os in 7354 rhapsody* | darwin1.[012]) 7355 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 7356 darwin1.*) 7357 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7358 darwin*) # darwin 5.x on 7359 # if running on 10.5 or later, the deployment target defaults 7360 # to the OS version, if on x86, and 10.4, the deployment 7361 # target defaults to 10.4. Don't you love it? 7362 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7363 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7364 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7365 10.[012][,.]*) 7366 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 7367 10.*) 7368 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 7369 esac 7370 ;; 7371 esac 7372 if test yes = "$lt_cv_apple_cc_single_mod"; then 7373 _lt_dar_single_mod='$single_module' 7374 fi 7375 if test yes = "$lt_cv_ld_exported_symbols_list"; then 7376 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 7377 else 7378 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 7379 fi 7380 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 7381 _lt_dsymutil='~$DSYMUTIL $lib || :' 7382 else 7383 _lt_dsymutil= 7384 fi 7385 ;; 7386 esac 7387 7388# func_munge_path_list VARIABLE PATH 7389# ----------------------------------- 7390# VARIABLE is name of variable containing _space_ separated list of 7391# directories to be munged by the contents of PATH, which is string 7392# having a format: 7393# "DIR[:DIR]:" 7394# string "DIR[ DIR]" will be prepended to VARIABLE 7395# ":DIR[:DIR]" 7396# string "DIR[ DIR]" will be appended to VARIABLE 7397# "DIRP[:DIRP]::[DIRA:]DIRA" 7398# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 7399# "DIRA[ DIRA]" will be appended to VARIABLE 7400# "DIR[:DIR]" 7401# VARIABLE will be replaced by "DIR[ DIR]" 7402func_munge_path_list () 7403{ 7404 case x$2 in 7405 x) 7406 ;; 7407 *:) 7408 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 7409 ;; 7410 x:*) 7411 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 7412 ;; 7413 *::*) 7414 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 7415 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 7416 ;; 7417 *) 7418 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 7419 ;; 7420 esac 7421} 7422 7423ac_ext=c 7424ac_cpp='$CPP $CPPFLAGS' 7425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7427ac_compiler_gnu=$ac_cv_c_compiler_gnu 7428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7429$as_echo_n "checking how to run the C preprocessor... " >&6; } 7430# On Suns, sometimes $CPP names a directory. 7431if test -n "$CPP" && test -d "$CPP"; then 7432 CPP= 7433fi 7434if test -z "$CPP"; then 7435 if ${ac_cv_prog_CPP+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 # Double quotes because CPP needs to be expanded 7439 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7440 do 7441 ac_preproc_ok=false 7442for ac_c_preproc_warn_flag in '' yes 7443do 7444 # Use a header file that comes with gcc, so configuring glibc 7445 # with a fresh cross-compiler works. 7446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7447 # <limits.h> exists even on freestanding compilers. 7448 # On the NeXT, cc -E runs the code through the compiler's parser, 7449 # not just through cpp. "Syntax error" is here to catch this case. 7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7451/* end confdefs.h. */ 7452#ifdef __STDC__ 7453# include <limits.h> 7454#else 7455# include <assert.h> 7456#endif 7457 Syntax error 7458_ACEOF 7459if ac_fn_c_try_cpp "$LINENO"; then : 7460 7461else 7462 # Broken: fails on valid input. 7463continue 7464fi 7465rm -f conftest.err conftest.i conftest.$ac_ext 7466 7467 # OK, works on sane cases. Now check whether nonexistent headers 7468 # can be detected and how. 7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7470/* end confdefs.h. */ 7471#include <ac_nonexistent.h> 7472_ACEOF 7473if ac_fn_c_try_cpp "$LINENO"; then : 7474 # Broken: success on invalid input. 7475continue 7476else 7477 # Passes both tests. 7478ac_preproc_ok=: 7479break 7480fi 7481rm -f conftest.err conftest.i conftest.$ac_ext 7482 7483done 7484# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7485rm -f conftest.i conftest.err conftest.$ac_ext 7486if $ac_preproc_ok; then : 7487 break 7488fi 7489 7490 done 7491 ac_cv_prog_CPP=$CPP 7492 7493fi 7494 CPP=$ac_cv_prog_CPP 7495else 7496 ac_cv_prog_CPP=$CPP 7497fi 7498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7499$as_echo "$CPP" >&6; } 7500ac_preproc_ok=false 7501for ac_c_preproc_warn_flag in '' yes 7502do 7503 # Use a header file that comes with gcc, so configuring glibc 7504 # with a fresh cross-compiler works. 7505 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7506 # <limits.h> exists even on freestanding compilers. 7507 # On the NeXT, cc -E runs the code through the compiler's parser, 7508 # not just through cpp. "Syntax error" is here to catch this case. 7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7510/* end confdefs.h. */ 7511#ifdef __STDC__ 7512# include <limits.h> 7513#else 7514# include <assert.h> 7515#endif 7516 Syntax error 7517_ACEOF 7518if ac_fn_c_try_cpp "$LINENO"; then : 7519 7520else 7521 # Broken: fails on valid input. 7522continue 7523fi 7524rm -f conftest.err conftest.i conftest.$ac_ext 7525 7526 # OK, works on sane cases. Now check whether nonexistent headers 7527 # can be detected and how. 7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7529/* end confdefs.h. */ 7530#include <ac_nonexistent.h> 7531_ACEOF 7532if ac_fn_c_try_cpp "$LINENO"; then : 7533 # Broken: success on invalid input. 7534continue 7535else 7536 # Passes both tests. 7537ac_preproc_ok=: 7538break 7539fi 7540rm -f conftest.err conftest.i conftest.$ac_ext 7541 7542done 7543# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7544rm -f conftest.i conftest.err conftest.$ac_ext 7545if $ac_preproc_ok; then : 7546 7547else 7548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7550as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7551See \`config.log' for more details" "$LINENO" 5; } 7552fi 7553 7554ac_ext=c 7555ac_cpp='$CPP $CPPFLAGS' 7556ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7557ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7558ac_compiler_gnu=$ac_cv_c_compiler_gnu 7559 7560 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7562$as_echo_n "checking for ANSI C header files... " >&6; } 7563if ${ac_cv_header_stdc+:} false; then : 7564 $as_echo_n "(cached) " >&6 7565else 7566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7567/* end confdefs.h. */ 7568#include <stdlib.h> 7569#include <stdarg.h> 7570#include <string.h> 7571#include <float.h> 7572 7573int 7574main () 7575{ 7576 7577 ; 7578 return 0; 7579} 7580_ACEOF 7581if ac_fn_c_try_compile "$LINENO"; then : 7582 ac_cv_header_stdc=yes 7583else 7584 ac_cv_header_stdc=no 7585fi 7586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7587 7588if test $ac_cv_header_stdc = yes; then 7589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7591/* end confdefs.h. */ 7592#include <string.h> 7593 7594_ACEOF 7595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7596 $EGREP "memchr" >/dev/null 2>&1; then : 7597 7598else 7599 ac_cv_header_stdc=no 7600fi 7601rm -f conftest* 7602 7603fi 7604 7605if test $ac_cv_header_stdc = yes; then 7606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7608/* end confdefs.h. */ 7609#include <stdlib.h> 7610 7611_ACEOF 7612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7613 $EGREP "free" >/dev/null 2>&1; then : 7614 7615else 7616 ac_cv_header_stdc=no 7617fi 7618rm -f conftest* 7619 7620fi 7621 7622if test $ac_cv_header_stdc = yes; then 7623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7624 if test "$cross_compiling" = yes; then : 7625 : 7626else 7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7628/* end confdefs.h. */ 7629#include <ctype.h> 7630#include <stdlib.h> 7631#if ((' ' & 0x0FF) == 0x020) 7632# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7633# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7634#else 7635# define ISLOWER(c) \ 7636 (('a' <= (c) && (c) <= 'i') \ 7637 || ('j' <= (c) && (c) <= 'r') \ 7638 || ('s' <= (c) && (c) <= 'z')) 7639# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7640#endif 7641 7642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7643int 7644main () 7645{ 7646 int i; 7647 for (i = 0; i < 256; i++) 7648 if (XOR (islower (i), ISLOWER (i)) 7649 || toupper (i) != TOUPPER (i)) 7650 return 2; 7651 return 0; 7652} 7653_ACEOF 7654if ac_fn_c_try_run "$LINENO"; then : 7655 7656else 7657 ac_cv_header_stdc=no 7658fi 7659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7660 conftest.$ac_objext conftest.beam conftest.$ac_ext 7661fi 7662 7663fi 7664fi 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7666$as_echo "$ac_cv_header_stdc" >&6; } 7667if test $ac_cv_header_stdc = yes; then 7668 7669$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7670 7671fi 7672 7673# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7674for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7675 inttypes.h stdint.h unistd.h 7676do : 7677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7678ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7679" 7680if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7681 cat >>confdefs.h <<_ACEOF 7682#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7683_ACEOF 7684 7685fi 7686 7687done 7688 7689 7690for ac_header in dlfcn.h 7691do : 7692 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7693" 7694if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7695 cat >>confdefs.h <<_ACEOF 7696#define HAVE_DLFCN_H 1 7697_ACEOF 7698 7699fi 7700 7701done 7702 7703 7704 7705 7706 7707# Set options 7708 7709 7710 7711 enable_dlopen=no 7712 7713 7714 enable_win32_dll=no 7715 7716 7717 # Check whether --enable-shared was given. 7718if test "${enable_shared+set}" = set; then : 7719 enableval=$enable_shared; p=${PACKAGE-default} 7720 case $enableval in 7721 yes) enable_shared=yes ;; 7722 no) enable_shared=no ;; 7723 *) 7724 enable_shared=no 7725 # Look at the argument we got. We use all the common list separators. 7726 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7727 for pkg in $enableval; do 7728 IFS=$lt_save_ifs 7729 if test "X$pkg" = "X$p"; then 7730 enable_shared=yes 7731 fi 7732 done 7733 IFS=$lt_save_ifs 7734 ;; 7735 esac 7736else 7737 enable_shared=yes 7738fi 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750# Check whether --with-pic was given. 7751if test "${with_pic+set}" = set; then : 7752 withval=$with_pic; lt_p=${PACKAGE-default} 7753 case $withval in 7754 yes|no) pic_mode=$withval ;; 7755 *) 7756 pic_mode=default 7757 # Look at the argument we got. We use all the common list separators. 7758 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7759 for lt_pkg in $withval; do 7760 IFS=$lt_save_ifs 7761 if test "X$lt_pkg" = "X$lt_p"; then 7762 pic_mode=yes 7763 fi 7764 done 7765 IFS=$lt_save_ifs 7766 ;; 7767 esac 7768else 7769 pic_mode=default 7770fi 7771 7772 7773 7774 7775 7776 7777 7778 7779 # Check whether --enable-fast-install was given. 7780if test "${enable_fast_install+set}" = set; then : 7781 enableval=$enable_fast_install; p=${PACKAGE-default} 7782 case $enableval in 7783 yes) enable_fast_install=yes ;; 7784 no) enable_fast_install=no ;; 7785 *) 7786 enable_fast_install=no 7787 # Look at the argument we got. We use all the common list separators. 7788 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7789 for pkg in $enableval; do 7790 IFS=$lt_save_ifs 7791 if test "X$pkg" = "X$p"; then 7792 enable_fast_install=yes 7793 fi 7794 done 7795 IFS=$lt_save_ifs 7796 ;; 7797 esac 7798else 7799 enable_fast_install=yes 7800fi 7801 7802 7803 7804 7805 7806 7807 7808 7809 shared_archive_member_spec= 7810case $host,$enable_shared in 7811power*-*-aix[5-9]*,yes) 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7813$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7814 7815# Check whether --with-aix-soname was given. 7816if test "${with_aix_soname+set}" = set; then : 7817 withval=$with_aix_soname; case $withval in 7818 aix|svr4|both) 7819 ;; 7820 *) 7821 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7822 ;; 7823 esac 7824 lt_cv_with_aix_soname=$with_aix_soname 7825else 7826 if ${lt_cv_with_aix_soname+:} false; then : 7827 $as_echo_n "(cached) " >&6 7828else 7829 lt_cv_with_aix_soname=aix 7830fi 7831 7832 with_aix_soname=$lt_cv_with_aix_soname 7833fi 7834 7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7836$as_echo "$with_aix_soname" >&6; } 7837 if test aix != "$with_aix_soname"; then 7838 # For the AIX way of multilib, we name the shared archive member 7839 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7840 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7841 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7842 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7843 if test 64 = "${OBJECT_MODE-32}"; then 7844 shared_archive_member_spec=shr_64 7845 else 7846 shared_archive_member_spec=shr 7847 fi 7848 fi 7849 ;; 7850*) 7851 with_aix_soname=aix 7852 ;; 7853esac 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864# This can be used to rebuild libtool when needed 7865LIBTOOL_DEPS=$ltmain 7866 7867# Always use our own libtool. 7868LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899test -z "$LN_S" && LN_S="ln -s" 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914if test -n "${ZSH_VERSION+set}"; then 7915 setopt NO_GLOB_SUBST 7916fi 7917 7918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7919$as_echo_n "checking for objdir... " >&6; } 7920if ${lt_cv_objdir+:} false; then : 7921 $as_echo_n "(cached) " >&6 7922else 7923 rm -f .libs 2>/dev/null 7924mkdir .libs 2>/dev/null 7925if test -d .libs; then 7926 lt_cv_objdir=.libs 7927else 7928 # MS-DOS does not allow filenames that begin with a dot. 7929 lt_cv_objdir=_libs 7930fi 7931rmdir .libs 2>/dev/null 7932fi 7933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7934$as_echo "$lt_cv_objdir" >&6; } 7935objdir=$lt_cv_objdir 7936 7937 7938 7939 7940 7941cat >>confdefs.h <<_ACEOF 7942#define LT_OBJDIR "$lt_cv_objdir/" 7943_ACEOF 7944 7945 7946 7947 7948case $host_os in 7949aix3*) 7950 # AIX sometimes has problems with the GCC collect2 program. For some 7951 # reason, if we set the COLLECT_NAMES environment variable, the problems 7952 # vanish in a puff of smoke. 7953 if test set != "${COLLECT_NAMES+set}"; then 7954 COLLECT_NAMES= 7955 export COLLECT_NAMES 7956 fi 7957 ;; 7958esac 7959 7960# Global variables: 7961ofile=libtool 7962can_build_shared=yes 7963 7964# All known linkers require a '.a' archive for static linking (except MSVC, 7965# which needs '.lib'). 7966libext=a 7967 7968with_gnu_ld=$lt_cv_prog_gnu_ld 7969 7970old_CC=$CC 7971old_CFLAGS=$CFLAGS 7972 7973# Set sane defaults for various variables 7974test -z "$CC" && CC=cc 7975test -z "$LTCC" && LTCC=$CC 7976test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7977test -z "$LD" && LD=ld 7978test -z "$ac_objext" && ac_objext=o 7979 7980func_cc_basename $compiler 7981cc_basename=$func_cc_basename_result 7982 7983 7984# Only perform the check for file, if the check method requires it 7985test -z "$MAGIC_CMD" && MAGIC_CMD=file 7986case $deplibs_check_method in 7987file_magic*) 7988 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7990$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7991if ${lt_cv_path_MAGIC_CMD+:} false; then : 7992 $as_echo_n "(cached) " >&6 7993else 7994 case $MAGIC_CMD in 7995[\\/*] | ?:[\\/]*) 7996 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7997 ;; 7998*) 7999 lt_save_MAGIC_CMD=$MAGIC_CMD 8000 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8001 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8002 for ac_dir in $ac_dummy; do 8003 IFS=$lt_save_ifs 8004 test -z "$ac_dir" && ac_dir=. 8005 if test -f "$ac_dir/${ac_tool_prefix}file"; then 8006 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 8007 if test -n "$file_magic_test_file"; then 8008 case $deplibs_check_method in 8009 "file_magic "*) 8010 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8011 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8012 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8013 $EGREP "$file_magic_regex" > /dev/null; then 8014 : 8015 else 8016 cat <<_LT_EOF 1>&2 8017 8018*** Warning: the command libtool uses to detect shared libraries, 8019*** $file_magic_cmd, produces output that libtool cannot recognize. 8020*** The result is that libtool may fail to recognize shared libraries 8021*** as such. This will affect the creation of libtool libraries that 8022*** depend on shared libraries, but programs linked with such libtool 8023*** libraries will work regardless of this problem. Nevertheless, you 8024*** may want to report the problem to your system manager and/or to 8025*** bug-libtool@gnu.org 8026 8027_LT_EOF 8028 fi ;; 8029 esac 8030 fi 8031 break 8032 fi 8033 done 8034 IFS=$lt_save_ifs 8035 MAGIC_CMD=$lt_save_MAGIC_CMD 8036 ;; 8037esac 8038fi 8039 8040MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8041if test -n "$MAGIC_CMD"; then 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8043$as_echo "$MAGIC_CMD" >&6; } 8044else 8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8046$as_echo "no" >&6; } 8047fi 8048 8049 8050 8051 8052 8053if test -z "$lt_cv_path_MAGIC_CMD"; then 8054 if test -n "$ac_tool_prefix"; then 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8056$as_echo_n "checking for file... " >&6; } 8057if ${lt_cv_path_MAGIC_CMD+:} false; then : 8058 $as_echo_n "(cached) " >&6 8059else 8060 case $MAGIC_CMD in 8061[\\/*] | ?:[\\/]*) 8062 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 8063 ;; 8064*) 8065 lt_save_MAGIC_CMD=$MAGIC_CMD 8066 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 8067 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8068 for ac_dir in $ac_dummy; do 8069 IFS=$lt_save_ifs 8070 test -z "$ac_dir" && ac_dir=. 8071 if test -f "$ac_dir/file"; then 8072 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 8073 if test -n "$file_magic_test_file"; then 8074 case $deplibs_check_method in 8075 "file_magic "*) 8076 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8077 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8078 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8079 $EGREP "$file_magic_regex" > /dev/null; then 8080 : 8081 else 8082 cat <<_LT_EOF 1>&2 8083 8084*** Warning: the command libtool uses to detect shared libraries, 8085*** $file_magic_cmd, produces output that libtool cannot recognize. 8086*** The result is that libtool may fail to recognize shared libraries 8087*** as such. This will affect the creation of libtool libraries that 8088*** depend on shared libraries, but programs linked with such libtool 8089*** libraries will work regardless of this problem. Nevertheless, you 8090*** may want to report the problem to your system manager and/or to 8091*** bug-libtool@gnu.org 8092 8093_LT_EOF 8094 fi ;; 8095 esac 8096 fi 8097 break 8098 fi 8099 done 8100 IFS=$lt_save_ifs 8101 MAGIC_CMD=$lt_save_MAGIC_CMD 8102 ;; 8103esac 8104fi 8105 8106MAGIC_CMD=$lt_cv_path_MAGIC_CMD 8107if test -n "$MAGIC_CMD"; then 8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8109$as_echo "$MAGIC_CMD" >&6; } 8110else 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8112$as_echo "no" >&6; } 8113fi 8114 8115 8116 else 8117 MAGIC_CMD=: 8118 fi 8119fi 8120 8121 fi 8122 ;; 8123esac 8124 8125# Use C for the default configuration in the libtool script 8126 8127lt_save_CC=$CC 8128ac_ext=c 8129ac_cpp='$CPP $CPPFLAGS' 8130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8132ac_compiler_gnu=$ac_cv_c_compiler_gnu 8133 8134 8135# Source file extension for C test sources. 8136ac_ext=c 8137 8138# Object file extension for compiled C test sources. 8139objext=o 8140objext=$objext 8141 8142# Code to be used in simple compile tests 8143lt_simple_compile_test_code="int some_variable = 0;" 8144 8145# Code to be used in simple link tests 8146lt_simple_link_test_code='int main(){return(0);}' 8147 8148 8149 8150 8151 8152 8153 8154# If no C compiler was specified, use CC. 8155LTCC=${LTCC-"$CC"} 8156 8157# If no C compiler flags were specified, use CFLAGS. 8158LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8159 8160# Allow CC to be a program name with arguments. 8161compiler=$CC 8162 8163# Save the default compiler, since it gets overwritten when the other 8164# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8165compiler_DEFAULT=$CC 8166 8167# save warnings/boilerplate of simple test code 8168ac_outfile=conftest.$ac_objext 8169echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8170eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8171_lt_compiler_boilerplate=`cat conftest.err` 8172$RM conftest* 8173 8174ac_outfile=conftest.$ac_objext 8175echo "$lt_simple_link_test_code" >conftest.$ac_ext 8176eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8177_lt_linker_boilerplate=`cat conftest.err` 8178$RM -r conftest* 8179 8180 8181if test -n "$compiler"; then 8182 8183lt_prog_compiler_no_builtin_flag= 8184 8185if test yes = "$GCC"; then 8186 case $cc_basename in 8187 nvcc*) 8188 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8189 *) 8190 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8191 esac 8192 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8194$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8195if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 lt_cv_prog_compiler_rtti_exceptions=no 8199 ac_outfile=conftest.$ac_objext 8200 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8201 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 8202 # Insert the option either (1) after the last *FLAGS variable, or 8203 # (2) before a word containing "conftest.", or (3) at the end. 8204 # Note that $ac_compile itself does not contain backslashes and begins 8205 # with a dollar sign (not a hyphen), so the echo should work correctly. 8206 # The option is referenced via a variable to avoid confusing sed. 8207 lt_compile=`echo "$ac_compile" | $SED \ 8208 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8209 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8210 -e 's:$: $lt_compiler_flag:'` 8211 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8212 (eval "$lt_compile" 2>conftest.err) 8213 ac_status=$? 8214 cat conftest.err >&5 8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8216 if (exit $ac_status) && test -s "$ac_outfile"; then 8217 # The compiler can only warn and ignore the option if not recognized 8218 # So say no if there are warnings other than the usual output. 8219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8220 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8221 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8222 lt_cv_prog_compiler_rtti_exceptions=yes 8223 fi 8224 fi 8225 $RM conftest* 8226 8227fi 8228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8229$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8230 8231if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 8232 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8233else 8234 : 8235fi 8236 8237fi 8238 8239 8240 8241 8242 8243 8244 lt_prog_compiler_wl= 8245lt_prog_compiler_pic= 8246lt_prog_compiler_static= 8247 8248 8249 if test yes = "$GCC"; then 8250 lt_prog_compiler_wl='-Wl,' 8251 lt_prog_compiler_static='-static' 8252 8253 case $host_os in 8254 aix*) 8255 # All AIX code is PIC. 8256 if test ia64 = "$host_cpu"; then 8257 # AIX 5 now supports IA64 processor 8258 lt_prog_compiler_static='-Bstatic' 8259 fi 8260 lt_prog_compiler_pic='-fPIC' 8261 ;; 8262 8263 amigaos*) 8264 case $host_cpu in 8265 powerpc) 8266 # see comment about AmigaOS4 .so support 8267 lt_prog_compiler_pic='-fPIC' 8268 ;; 8269 m68k) 8270 # FIXME: we need at least 68020 code to build shared libraries, but 8271 # adding the '-m68020' flag to GCC prevents building anything better, 8272 # like '-m68040'. 8273 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8274 ;; 8275 esac 8276 ;; 8277 8278 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8279 # PIC is the default for these OSes. 8280 ;; 8281 8282 mingw* | cygwin* | pw32* | os2* | cegcc*) 8283 # This hack is so that the source file can tell whether it is being 8284 # built for inclusion in a dll (and should export symbols for example). 8285 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8286 # (--disable-auto-import) libraries 8287 lt_prog_compiler_pic='-DDLL_EXPORT' 8288 case $host_os in 8289 os2*) 8290 lt_prog_compiler_static='$wl-static' 8291 ;; 8292 esac 8293 ;; 8294 8295 darwin* | rhapsody*) 8296 # PIC is the default on this platform 8297 # Common symbols not allowed in MH_DYLIB files 8298 lt_prog_compiler_pic='-fno-common' 8299 ;; 8300 8301 haiku*) 8302 # PIC is the default for Haiku. 8303 # The "-static" flag exists, but is broken. 8304 lt_prog_compiler_static= 8305 ;; 8306 8307 hpux*) 8308 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8309 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8310 # sets the default TLS model and affects inlining. 8311 case $host_cpu in 8312 hppa*64*) 8313 # +Z the default 8314 ;; 8315 *) 8316 lt_prog_compiler_pic='-fPIC' 8317 ;; 8318 esac 8319 ;; 8320 8321 interix[3-9]*) 8322 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8323 # Instead, we relocate shared libraries at runtime. 8324 ;; 8325 8326 msdosdjgpp*) 8327 # Just because we use GCC doesn't mean we suddenly get shared libraries 8328 # on systems that don't support them. 8329 lt_prog_compiler_can_build_shared=no 8330 enable_shared=no 8331 ;; 8332 8333 *nto* | *qnx*) 8334 # QNX uses GNU C++, but need to define -shared option too, otherwise 8335 # it will coredump. 8336 lt_prog_compiler_pic='-fPIC -shared' 8337 ;; 8338 8339 sysv4*MP*) 8340 if test -d /usr/nec; then 8341 lt_prog_compiler_pic=-Kconform_pic 8342 fi 8343 ;; 8344 8345 *) 8346 lt_prog_compiler_pic='-fPIC' 8347 ;; 8348 esac 8349 8350 case $cc_basename in 8351 nvcc*) # Cuda Compiler Driver 2.2 8352 lt_prog_compiler_wl='-Xlinker ' 8353 if test -n "$lt_prog_compiler_pic"; then 8354 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8355 fi 8356 ;; 8357 esac 8358 else 8359 # PORTME Check for flag to pass linker flags through the system compiler. 8360 case $host_os in 8361 aix*) 8362 lt_prog_compiler_wl='-Wl,' 8363 if test ia64 = "$host_cpu"; then 8364 # AIX 5 now supports IA64 processor 8365 lt_prog_compiler_static='-Bstatic' 8366 else 8367 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8368 fi 8369 ;; 8370 8371 darwin* | rhapsody*) 8372 # PIC is the default on this platform 8373 # Common symbols not allowed in MH_DYLIB files 8374 lt_prog_compiler_pic='-fno-common' 8375 case $cc_basename in 8376 nagfor*) 8377 # NAG Fortran compiler 8378 lt_prog_compiler_wl='-Wl,-Wl,,' 8379 lt_prog_compiler_pic='-PIC' 8380 lt_prog_compiler_static='-Bstatic' 8381 ;; 8382 esac 8383 ;; 8384 8385 mingw* | cygwin* | pw32* | os2* | cegcc*) 8386 # This hack is so that the source file can tell whether it is being 8387 # built for inclusion in a dll (and should export symbols for example). 8388 lt_prog_compiler_pic='-DDLL_EXPORT' 8389 case $host_os in 8390 os2*) 8391 lt_prog_compiler_static='$wl-static' 8392 ;; 8393 esac 8394 ;; 8395 8396 hpux9* | hpux10* | hpux11*) 8397 lt_prog_compiler_wl='-Wl,' 8398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8399 # not for PA HP-UX. 8400 case $host_cpu in 8401 hppa*64*|ia64*) 8402 # +Z the default 8403 ;; 8404 *) 8405 lt_prog_compiler_pic='+Z' 8406 ;; 8407 esac 8408 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8409 lt_prog_compiler_static='$wl-a ${wl}archive' 8410 ;; 8411 8412 irix5* | irix6* | nonstopux*) 8413 lt_prog_compiler_wl='-Wl,' 8414 # PIC (with -KPIC) is the default. 8415 lt_prog_compiler_static='-non_shared' 8416 ;; 8417 8418 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 8419 case $cc_basename in 8420 # old Intel for x86_64, which still supported -KPIC. 8421 ecc*) 8422 lt_prog_compiler_wl='-Wl,' 8423 lt_prog_compiler_pic='-KPIC' 8424 lt_prog_compiler_static='-static' 8425 ;; 8426 # icc used to be incompatible with GCC. 8427 # ICC 10 doesn't accept -KPIC any more. 8428 icc* | ifort*) 8429 lt_prog_compiler_wl='-Wl,' 8430 lt_prog_compiler_pic='-fPIC' 8431 lt_prog_compiler_static='-static' 8432 ;; 8433 # Lahey Fortran 8.1. 8434 lf95*) 8435 lt_prog_compiler_wl='-Wl,' 8436 lt_prog_compiler_pic='--shared' 8437 lt_prog_compiler_static='--static' 8438 ;; 8439 nagfor*) 8440 # NAG Fortran compiler 8441 lt_prog_compiler_wl='-Wl,-Wl,,' 8442 lt_prog_compiler_pic='-PIC' 8443 lt_prog_compiler_static='-Bstatic' 8444 ;; 8445 tcc*) 8446 # Fabrice Bellard et al's Tiny C Compiler 8447 lt_prog_compiler_wl='-Wl,' 8448 lt_prog_compiler_pic='-fPIC' 8449 lt_prog_compiler_static='-static' 8450 ;; 8451 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8452 # Portland Group compilers (*not* the Pentium gcc compiler, 8453 # which looks to be a dead project) 8454 lt_prog_compiler_wl='-Wl,' 8455 lt_prog_compiler_pic='-fpic' 8456 lt_prog_compiler_static='-Bstatic' 8457 ;; 8458 ccc*) 8459 lt_prog_compiler_wl='-Wl,' 8460 # All Alpha code is PIC. 8461 lt_prog_compiler_static='-non_shared' 8462 ;; 8463 xl* | bgxl* | bgf* | mpixl*) 8464 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8465 lt_prog_compiler_wl='-Wl,' 8466 lt_prog_compiler_pic='-qpic' 8467 lt_prog_compiler_static='-qstaticlink' 8468 ;; 8469 *) 8470 case `$CC -V 2>&1 | sed 5q` in 8471 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8472 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8473 lt_prog_compiler_pic='-KPIC' 8474 lt_prog_compiler_static='-Bstatic' 8475 lt_prog_compiler_wl='' 8476 ;; 8477 *Sun\ F* | *Sun*Fortran*) 8478 lt_prog_compiler_pic='-KPIC' 8479 lt_prog_compiler_static='-Bstatic' 8480 lt_prog_compiler_wl='-Qoption ld ' 8481 ;; 8482 *Sun\ C*) 8483 # Sun C 5.9 8484 lt_prog_compiler_pic='-KPIC' 8485 lt_prog_compiler_static='-Bstatic' 8486 lt_prog_compiler_wl='-Wl,' 8487 ;; 8488 *Intel*\ [CF]*Compiler*) 8489 lt_prog_compiler_wl='-Wl,' 8490 lt_prog_compiler_pic='-fPIC' 8491 lt_prog_compiler_static='-static' 8492 ;; 8493 *Portland\ Group*) 8494 lt_prog_compiler_wl='-Wl,' 8495 lt_prog_compiler_pic='-fpic' 8496 lt_prog_compiler_static='-Bstatic' 8497 ;; 8498 esac 8499 ;; 8500 esac 8501 ;; 8502 8503 newsos6) 8504 lt_prog_compiler_pic='-KPIC' 8505 lt_prog_compiler_static='-Bstatic' 8506 ;; 8507 8508 *nto* | *qnx*) 8509 # QNX uses GNU C++, but need to define -shared option too, otherwise 8510 # it will coredump. 8511 lt_prog_compiler_pic='-fPIC -shared' 8512 ;; 8513 8514 osf3* | osf4* | osf5*) 8515 lt_prog_compiler_wl='-Wl,' 8516 # All OSF/1 code is PIC. 8517 lt_prog_compiler_static='-non_shared' 8518 ;; 8519 8520 rdos*) 8521 lt_prog_compiler_static='-non_shared' 8522 ;; 8523 8524 solaris*) 8525 lt_prog_compiler_pic='-KPIC' 8526 lt_prog_compiler_static='-Bstatic' 8527 case $cc_basename in 8528 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8529 lt_prog_compiler_wl='-Qoption ld ';; 8530 *) 8531 lt_prog_compiler_wl='-Wl,';; 8532 esac 8533 ;; 8534 8535 sunos4*) 8536 lt_prog_compiler_wl='-Qoption ld ' 8537 lt_prog_compiler_pic='-PIC' 8538 lt_prog_compiler_static='-Bstatic' 8539 ;; 8540 8541 sysv4 | sysv4.2uw2* | sysv4.3*) 8542 lt_prog_compiler_wl='-Wl,' 8543 lt_prog_compiler_pic='-KPIC' 8544 lt_prog_compiler_static='-Bstatic' 8545 ;; 8546 8547 sysv4*MP*) 8548 if test -d /usr/nec; then 8549 lt_prog_compiler_pic='-Kconform_pic' 8550 lt_prog_compiler_static='-Bstatic' 8551 fi 8552 ;; 8553 8554 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8555 lt_prog_compiler_wl='-Wl,' 8556 lt_prog_compiler_pic='-KPIC' 8557 lt_prog_compiler_static='-Bstatic' 8558 ;; 8559 8560 unicos*) 8561 lt_prog_compiler_wl='-Wl,' 8562 lt_prog_compiler_can_build_shared=no 8563 ;; 8564 8565 uts4*) 8566 lt_prog_compiler_pic='-pic' 8567 lt_prog_compiler_static='-Bstatic' 8568 ;; 8569 8570 *) 8571 lt_prog_compiler_can_build_shared=no 8572 ;; 8573 esac 8574 fi 8575 8576case $host_os in 8577 # For platforms that do not support PIC, -DPIC is meaningless: 8578 *djgpp*) 8579 lt_prog_compiler_pic= 8580 ;; 8581 *) 8582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8583 ;; 8584esac 8585 8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8587$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8588if ${lt_cv_prog_compiler_pic+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590else 8591 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8592fi 8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8594$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8595lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8596 8597# 8598# Check to make sure the PIC flag actually works. 8599# 8600if test -n "$lt_prog_compiler_pic"; then 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8602$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8603if ${lt_cv_prog_compiler_pic_works+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 lt_cv_prog_compiler_pic_works=no 8607 ac_outfile=conftest.$ac_objext 8608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8609 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8610 # Insert the option either (1) after the last *FLAGS variable, or 8611 # (2) before a word containing "conftest.", or (3) at the end. 8612 # Note that $ac_compile itself does not contain backslashes and begins 8613 # with a dollar sign (not a hyphen), so the echo should work correctly. 8614 # The option is referenced via a variable to avoid confusing sed. 8615 lt_compile=`echo "$ac_compile" | $SED \ 8616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8618 -e 's:$: $lt_compiler_flag:'` 8619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8620 (eval "$lt_compile" 2>conftest.err) 8621 ac_status=$? 8622 cat conftest.err >&5 8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8624 if (exit $ac_status) && test -s "$ac_outfile"; then 8625 # The compiler can only warn and ignore the option if not recognized 8626 # So say no if there are warnings other than the usual output. 8627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8628 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8629 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8630 lt_cv_prog_compiler_pic_works=yes 8631 fi 8632 fi 8633 $RM conftest* 8634 8635fi 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8637$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8638 8639if test yes = "$lt_cv_prog_compiler_pic_works"; then 8640 case $lt_prog_compiler_pic in 8641 "" | " "*) ;; 8642 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8643 esac 8644else 8645 lt_prog_compiler_pic= 8646 lt_prog_compiler_can_build_shared=no 8647fi 8648 8649fi 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661# 8662# Check to make sure the static flag actually works. 8663# 8664wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8666$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8667if ${lt_cv_prog_compiler_static_works+:} false; then : 8668 $as_echo_n "(cached) " >&6 8669else 8670 lt_cv_prog_compiler_static_works=no 8671 save_LDFLAGS=$LDFLAGS 8672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8673 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8675 # The linker can only warn and ignore the option if not recognized 8676 # So say no if there are warnings 8677 if test -s conftest.err; then 8678 # Append any errors to the config.log. 8679 cat conftest.err 1>&5 8680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8682 if diff conftest.exp conftest.er2 >/dev/null; then 8683 lt_cv_prog_compiler_static_works=yes 8684 fi 8685 else 8686 lt_cv_prog_compiler_static_works=yes 8687 fi 8688 fi 8689 $RM -r conftest* 8690 LDFLAGS=$save_LDFLAGS 8691 8692fi 8693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8694$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8695 8696if test yes = "$lt_cv_prog_compiler_static_works"; then 8697 : 8698else 8699 lt_prog_compiler_static= 8700fi 8701 8702 8703 8704 8705 8706 8707 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8709$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8710if ${lt_cv_prog_compiler_c_o+:} false; then : 8711 $as_echo_n "(cached) " >&6 8712else 8713 lt_cv_prog_compiler_c_o=no 8714 $RM -r conftest 2>/dev/null 8715 mkdir conftest 8716 cd conftest 8717 mkdir out 8718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8719 8720 lt_compiler_flag="-o out/conftest2.$ac_objext" 8721 # Insert the option either (1) after the last *FLAGS variable, or 8722 # (2) before a word containing "conftest.", or (3) at the end. 8723 # Note that $ac_compile itself does not contain backslashes and begins 8724 # with a dollar sign (not a hyphen), so the echo should work correctly. 8725 lt_compile=`echo "$ac_compile" | $SED \ 8726 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8727 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8728 -e 's:$: $lt_compiler_flag:'` 8729 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8730 (eval "$lt_compile" 2>out/conftest.err) 8731 ac_status=$? 8732 cat out/conftest.err >&5 8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8734 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8735 then 8736 # The compiler can only warn and ignore the option if not recognized 8737 # So say no if there are warnings 8738 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8739 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8740 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8741 lt_cv_prog_compiler_c_o=yes 8742 fi 8743 fi 8744 chmod u+w . 2>&5 8745 $RM conftest* 8746 # SGI C++ compiler will create directory out/ii_files/ for 8747 # template instantiation 8748 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8749 $RM out/* && rmdir out 8750 cd .. 8751 $RM -r conftest 8752 $RM conftest* 8753 8754fi 8755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8756$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8757 8758 8759 8760 8761 8762 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8764$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8765if ${lt_cv_prog_compiler_c_o+:} false; then : 8766 $as_echo_n "(cached) " >&6 8767else 8768 lt_cv_prog_compiler_c_o=no 8769 $RM -r conftest 2>/dev/null 8770 mkdir conftest 8771 cd conftest 8772 mkdir out 8773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8774 8775 lt_compiler_flag="-o out/conftest2.$ac_objext" 8776 # Insert the option either (1) after the last *FLAGS variable, or 8777 # (2) before a word containing "conftest.", or (3) at the end. 8778 # Note that $ac_compile itself does not contain backslashes and begins 8779 # with a dollar sign (not a hyphen), so the echo should work correctly. 8780 lt_compile=`echo "$ac_compile" | $SED \ 8781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8783 -e 's:$: $lt_compiler_flag:'` 8784 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8785 (eval "$lt_compile" 2>out/conftest.err) 8786 ac_status=$? 8787 cat out/conftest.err >&5 8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8789 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8790 then 8791 # The compiler can only warn and ignore the option if not recognized 8792 # So say no if there are warnings 8793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8794 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8795 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8796 lt_cv_prog_compiler_c_o=yes 8797 fi 8798 fi 8799 chmod u+w . 2>&5 8800 $RM conftest* 8801 # SGI C++ compiler will create directory out/ii_files/ for 8802 # template instantiation 8803 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8804 $RM out/* && rmdir out 8805 cd .. 8806 $RM -r conftest 8807 $RM conftest* 8808 8809fi 8810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8811$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8812 8813 8814 8815 8816hard_links=nottested 8817if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8818 # do not overwrite the value of need_locks provided by the user 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8820$as_echo_n "checking if we can lock with hard links... " >&6; } 8821 hard_links=yes 8822 $RM conftest* 8823 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8824 touch conftest.a 8825 ln conftest.a conftest.b 2>&5 || hard_links=no 8826 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8828$as_echo "$hard_links" >&6; } 8829 if test no = "$hard_links"; then 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8831$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8832 need_locks=warn 8833 fi 8834else 8835 need_locks=no 8836fi 8837 8838 8839 8840 8841 8842 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8844$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8845 8846 runpath_var= 8847 allow_undefined_flag= 8848 always_export_symbols=no 8849 archive_cmds= 8850 archive_expsym_cmds= 8851 compiler_needs_object=no 8852 enable_shared_with_static_runtimes=no 8853 export_dynamic_flag_spec= 8854 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8855 hardcode_automatic=no 8856 hardcode_direct=no 8857 hardcode_direct_absolute=no 8858 hardcode_libdir_flag_spec= 8859 hardcode_libdir_separator= 8860 hardcode_minus_L=no 8861 hardcode_shlibpath_var=unsupported 8862 inherit_rpath=no 8863 link_all_deplibs=unknown 8864 module_cmds= 8865 module_expsym_cmds= 8866 old_archive_from_new_cmds= 8867 old_archive_from_expsyms_cmds= 8868 thread_safe_flag_spec= 8869 whole_archive_flag_spec= 8870 # include_expsyms should be a list of space-separated symbols to be *always* 8871 # included in the symbol list 8872 include_expsyms= 8873 # exclude_expsyms can be an extended regexp of symbols to exclude 8874 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8875 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8876 # as well as any symbol that contains 'd'. 8877 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8878 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8879 # platforms (ab)use it in PIC code, but their linkers get confused if 8880 # the symbol is explicitly referenced. Since portable code cannot 8881 # rely on this symbol name, it's probably fine to never include it in 8882 # preloaded symbol tables. 8883 # Exclude shared library initialization/finalization symbols. 8884 extract_expsyms_cmds= 8885 8886 case $host_os in 8887 cygwin* | mingw* | pw32* | cegcc*) 8888 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8889 # When not using gcc, we currently assume that we are using 8890 # Microsoft Visual C++. 8891 if test yes != "$GCC"; then 8892 with_gnu_ld=no 8893 fi 8894 ;; 8895 interix*) 8896 # we just hope/assume this is gcc and not c89 (= MSVC++) 8897 with_gnu_ld=yes 8898 ;; 8899 openbsd* | bitrig*) 8900 with_gnu_ld=no 8901 ;; 8902 esac 8903 8904 ld_shlibs=yes 8905 8906 # On some targets, GNU ld is compatible enough with the native linker 8907 # that we're better off using the native interface for both. 8908 lt_use_gnu_ld_interface=no 8909 if test yes = "$with_gnu_ld"; then 8910 case $host_os in 8911 aix*) 8912 # The AIX port of GNU ld has always aspired to compatibility 8913 # with the native linker. However, as the warning in the GNU ld 8914 # block says, versions before 2.19.5* couldn't really create working 8915 # shared libraries, regardless of the interface used. 8916 case `$LD -v 2>&1` in 8917 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8918 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8919 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8920 *) 8921 lt_use_gnu_ld_interface=yes 8922 ;; 8923 esac 8924 ;; 8925 *) 8926 lt_use_gnu_ld_interface=yes 8927 ;; 8928 esac 8929 fi 8930 8931 if test yes = "$lt_use_gnu_ld_interface"; then 8932 # If archive_cmds runs LD, not CC, wlarc should be empty 8933 wlarc='$wl' 8934 8935 # Set some defaults for GNU ld with shared library support. These 8936 # are reset later if shared libraries are not supported. Putting them 8937 # here allows them to be overridden if necessary. 8938 runpath_var=LD_RUN_PATH 8939 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8940 export_dynamic_flag_spec='$wl--export-dynamic' 8941 # ancient GNU ld didn't support --whole-archive et. al. 8942 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8943 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8944 else 8945 whole_archive_flag_spec= 8946 fi 8947 supports_anon_versioning=no 8948 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8949 *GNU\ gold*) supports_anon_versioning=yes ;; 8950 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8951 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8952 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8953 *\ 2.11.*) ;; # other 2.11 versions 8954 *) supports_anon_versioning=yes ;; 8955 esac 8956 8957 # See if GNU ld supports shared libraries. 8958 case $host_os in 8959 aix[3-9]*) 8960 # On AIX/PPC, the GNU linker is very broken 8961 if test ia64 != "$host_cpu"; then 8962 ld_shlibs=no 8963 cat <<_LT_EOF 1>&2 8964 8965*** Warning: the GNU linker, at least up to release 2.19, is reported 8966*** to be unable to reliably create shared libraries on AIX. 8967*** Therefore, libtool is disabling shared libraries support. If you 8968*** really care for shared libraries, you may want to install binutils 8969*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8970*** You will then need to restart the configuration process. 8971 8972_LT_EOF 8973 fi 8974 ;; 8975 8976 amigaos*) 8977 case $host_cpu in 8978 powerpc) 8979 # see comment about AmigaOS4 .so support 8980 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8981 archive_expsym_cmds='' 8982 ;; 8983 m68k) 8984 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)' 8985 hardcode_libdir_flag_spec='-L$libdir' 8986 hardcode_minus_L=yes 8987 ;; 8988 esac 8989 ;; 8990 8991 beos*) 8992 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8993 allow_undefined_flag=unsupported 8994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8995 # support --undefined. This deserves some investigation. FIXME 8996 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8997 else 8998 ld_shlibs=no 8999 fi 9000 ;; 9001 9002 cygwin* | mingw* | pw32* | cegcc*) 9003 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9004 # as there is no search path for DLLs. 9005 hardcode_libdir_flag_spec='-L$libdir' 9006 export_dynamic_flag_spec='$wl--export-all-symbols' 9007 allow_undefined_flag=unsupported 9008 always_export_symbols=no 9009 enable_shared_with_static_runtimes=yes 9010 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' 9011 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9012 9013 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9015 # If the export-symbols file already is a .def file, use it as 9016 # is; otherwise, prepend EXPORTS... 9017 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9018 cp $export_symbols $output_objdir/$soname.def; 9019 else 9020 echo EXPORTS > $output_objdir/$soname.def; 9021 cat $export_symbols >> $output_objdir/$soname.def; 9022 fi~ 9023 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9024 else 9025 ld_shlibs=no 9026 fi 9027 ;; 9028 9029 haiku*) 9030 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9031 link_all_deplibs=yes 9032 ;; 9033 9034 os2*) 9035 hardcode_libdir_flag_spec='-L$libdir' 9036 hardcode_minus_L=yes 9037 allow_undefined_flag=unsupported 9038 shrext_cmds=.dll 9039 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9040 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9041 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9042 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9043 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9044 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9045 emximp -o $lib $output_objdir/$libname.def' 9046 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9047 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9048 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9049 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9050 prefix_cmds="$SED"~ 9051 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9052 prefix_cmds="$prefix_cmds -e 1d"; 9053 fi~ 9054 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9055 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9056 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9057 emximp -o $lib $output_objdir/$libname.def' 9058 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9059 enable_shared_with_static_runtimes=yes 9060 ;; 9061 9062 interix[3-9]*) 9063 hardcode_direct=no 9064 hardcode_shlibpath_var=no 9065 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9066 export_dynamic_flag_spec='$wl-E' 9067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9068 # Instead, shared libraries are loaded at an image base (0x10000000 by 9069 # default) and relocated if they conflict, which is a slow very memory 9070 # consuming and fragmenting process. To avoid this, we pick a random, 9071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9072 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9074 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' 9075 ;; 9076 9077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9078 tmp_diet=no 9079 if test linux-dietlibc = "$host_os"; then 9080 case $cc_basename in 9081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9082 esac 9083 fi 9084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9085 && test no = "$tmp_diet" 9086 then 9087 tmp_addflag=' $pic_flag' 9088 tmp_sharedflag='-shared' 9089 case $cc_basename,$host_cpu in 9090 pgcc*) # Portland Group C compiler 9091 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' 9092 tmp_addflag=' $pic_flag' 9093 ;; 9094 pgf77* | pgf90* | pgf95* | pgfortran*) 9095 # Portland Group f77 and f90 compilers 9096 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' 9097 tmp_addflag=' $pic_flag -Mnomain' ;; 9098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9099 tmp_addflag=' -i_dynamic' ;; 9100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9101 tmp_addflag=' -i_dynamic -nofor_main' ;; 9102 ifc* | ifort*) # Intel Fortran compiler 9103 tmp_addflag=' -nofor_main' ;; 9104 lf95*) # Lahey Fortran 8.1 9105 whole_archive_flag_spec= 9106 tmp_sharedflag='--shared' ;; 9107 nagfor*) # NAGFOR 5.3 9108 tmp_sharedflag='-Wl,-shared' ;; 9109 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9110 tmp_sharedflag='-qmkshrobj' 9111 tmp_addflag= ;; 9112 nvcc*) # Cuda Compiler Driver 2.2 9113 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' 9114 compiler_needs_object=yes 9115 ;; 9116 esac 9117 case `$CC -V 2>&1 | sed 5q` in 9118 *Sun\ C*) # Sun C 5.9 9119 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' 9120 compiler_needs_object=yes 9121 tmp_sharedflag='-G' ;; 9122 *Sun\ F*) # Sun Fortran 8.3 9123 tmp_sharedflag='-G' ;; 9124 esac 9125 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9126 9127 if test yes = "$supports_anon_versioning"; then 9128 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9130 echo "local: *; };" >> $output_objdir/$libname.ver~ 9131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 9132 fi 9133 9134 case $cc_basename in 9135 tcc*) 9136 export_dynamic_flag_spec='-rdynamic' 9137 ;; 9138 xlf* | bgf* | bgxlf* | mpixlf*) 9139 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9140 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9142 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9143 if test yes = "$supports_anon_versioning"; then 9144 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9145 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9146 echo "local: *; };" >> $output_objdir/$libname.ver~ 9147 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9148 fi 9149 ;; 9150 esac 9151 else 9152 ld_shlibs=no 9153 fi 9154 ;; 9155 9156 netbsd*) 9157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9158 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9159 wlarc= 9160 else 9161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9162 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9163 fi 9164 ;; 9165 9166 solaris*) 9167 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9168 ld_shlibs=no 9169 cat <<_LT_EOF 1>&2 9170 9171*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9172*** create shared libraries on Solaris systems. Therefore, libtool 9173*** is disabling shared libraries support. We urge you to upgrade GNU 9174*** binutils to release 2.9.1 or newer. Another option is to modify 9175*** your PATH or compiler configuration so that the native linker is 9176*** used, and then restart. 9177 9178_LT_EOF 9179 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9180 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9181 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9182 else 9183 ld_shlibs=no 9184 fi 9185 ;; 9186 9187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9188 case `$LD -v 2>&1` in 9189 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9190 ld_shlibs=no 9191 cat <<_LT_EOF 1>&2 9192 9193*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 9194*** reliably create shared libraries on SCO systems. Therefore, libtool 9195*** is disabling shared libraries support. We urge you to upgrade GNU 9196*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9197*** your PATH or compiler configuration so that the native linker is 9198*** used, and then restart. 9199 9200_LT_EOF 9201 ;; 9202 *) 9203 # For security reasons, it is highly recommended that you always 9204 # use absolute paths for naming shared libraries, and exclude the 9205 # DT_RUNPATH tag from executables and libraries. But doing so 9206 # requires that you compile everything twice, which is a pain. 9207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9208 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9210 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9211 else 9212 ld_shlibs=no 9213 fi 9214 ;; 9215 esac 9216 ;; 9217 9218 sunos4*) 9219 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9220 wlarc= 9221 hardcode_direct=yes 9222 hardcode_shlibpath_var=no 9223 ;; 9224 9225 *) 9226 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9227 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9228 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 9229 else 9230 ld_shlibs=no 9231 fi 9232 ;; 9233 esac 9234 9235 if test no = "$ld_shlibs"; then 9236 runpath_var= 9237 hardcode_libdir_flag_spec= 9238 export_dynamic_flag_spec= 9239 whole_archive_flag_spec= 9240 fi 9241 else 9242 # PORTME fill in a description of your system's linker (not GNU ld) 9243 case $host_os in 9244 aix3*) 9245 allow_undefined_flag=unsupported 9246 always_export_symbols=yes 9247 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' 9248 # Note: this linker hardcodes the directories in LIBPATH if there 9249 # are no directories specified by -L. 9250 hardcode_minus_L=yes 9251 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 9252 # Neither direct hardcoding nor static linking is supported with a 9253 # broken collect2. 9254 hardcode_direct=unsupported 9255 fi 9256 ;; 9257 9258 aix[4-9]*) 9259 if test ia64 = "$host_cpu"; then 9260 # On IA64, the linker does run time linking by default, so we don't 9261 # have to do anything special. 9262 aix_use_runtimelinking=no 9263 exp_sym_flag='-Bexport' 9264 no_entry_flag= 9265 else 9266 # If we're using GNU nm, then we don't want the "-C" option. 9267 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 9268 # Without the "-l" option, or with the "-B" option, AIX nm treats 9269 # weak defined symbols like other global defined symbols, whereas 9270 # GNU nm marks them as "W". 9271 # While the 'weak' keyword is ignored in the Export File, we need 9272 # it in the Import File for the 'aix-soname' feature, so we have 9273 # to replace the "-B" option with "-P" for AIX nm. 9274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9275 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' 9276 else 9277 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' 9278 fi 9279 aix_use_runtimelinking=no 9280 9281 # Test if we are trying to use run time linking or normal 9282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9283 # have runtime linking enabled, and use it for executables. 9284 # For shared libraries, we enable/disable runtime linking 9285 # depending on the kind of the shared library created - 9286 # when "with_aix_soname,aix_use_runtimelinking" is: 9287 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 9288 # "aix,yes" lib.so shared, rtl:yes, for executables 9289 # lib.a static archive 9290 # "both,no" lib.so.V(shr.o) shared, rtl:yes 9291 # lib.a(lib.so.V) shared, rtl:no, for executables 9292 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 9293 # lib.a(lib.so.V) shared, rtl:no 9294 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 9295 # lib.a static archive 9296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9297 for ld_flag in $LDFLAGS; do 9298 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 9299 aix_use_runtimelinking=yes 9300 break 9301 fi 9302 done 9303 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 9304 # With aix-soname=svr4, we create the lib.so.V shared archives only, 9305 # so we don't have lib.a shared libs to link our executables. 9306 # We have to force runtime linking in this case. 9307 aix_use_runtimelinking=yes 9308 LDFLAGS="$LDFLAGS -Wl,-brtl" 9309 fi 9310 ;; 9311 esac 9312 9313 exp_sym_flag='-bexport' 9314 no_entry_flag='-bnoentry' 9315 fi 9316 9317 # When large executables or shared objects are built, AIX ld can 9318 # have problems creating the table of contents. If linking a library 9319 # or program results in "error TOC overflow" add -mminimal-toc to 9320 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9321 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9322 9323 archive_cmds='' 9324 hardcode_direct=yes 9325 hardcode_direct_absolute=yes 9326 hardcode_libdir_separator=':' 9327 link_all_deplibs=yes 9328 file_list_spec='$wl-f,' 9329 case $with_aix_soname,$aix_use_runtimelinking in 9330 aix,*) ;; # traditional, no import file 9331 svr4,* | *,yes) # use import file 9332 # The Import File defines what to hardcode. 9333 hardcode_direct=no 9334 hardcode_direct_absolute=no 9335 ;; 9336 esac 9337 9338 if test yes = "$GCC"; then 9339 case $host_os in aix4.[012]|aix4.[012].*) 9340 # We only want to do this on AIX 4.2 and lower, the check 9341 # below for broken collect2 doesn't work under 4.3+ 9342 collect2name=`$CC -print-prog-name=collect2` 9343 if test -f "$collect2name" && 9344 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9345 then 9346 # We have reworked collect2 9347 : 9348 else 9349 # We have old collect2 9350 hardcode_direct=unsupported 9351 # It fails to find uninstalled libraries when the uninstalled 9352 # path is not listed in the libpath. Setting hardcode_minus_L 9353 # to unsupported forces relinking 9354 hardcode_minus_L=yes 9355 hardcode_libdir_flag_spec='-L$libdir' 9356 hardcode_libdir_separator= 9357 fi 9358 ;; 9359 esac 9360 shared_flag='-shared' 9361 if test yes = "$aix_use_runtimelinking"; then 9362 shared_flag="$shared_flag "'$wl-G' 9363 fi 9364 # Need to ensure runtime linking is disabled for the traditional 9365 # shared library, or the linker may eventually find shared libraries 9366 # /with/ Import File - we do not want to mix them. 9367 shared_flag_aix='-shared' 9368 shared_flag_svr4='-shared $wl-G' 9369 else 9370 # not using gcc 9371 if test ia64 = "$host_cpu"; then 9372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9373 # chokes on -Wl,-G. The following line is correct: 9374 shared_flag='-G' 9375 else 9376 if test yes = "$aix_use_runtimelinking"; then 9377 shared_flag='$wl-G' 9378 else 9379 shared_flag='$wl-bM:SRE' 9380 fi 9381 shared_flag_aix='$wl-bM:SRE' 9382 shared_flag_svr4='$wl-G' 9383 fi 9384 fi 9385 9386 export_dynamic_flag_spec='$wl-bexpall' 9387 # It seems that -bexpall does not export symbols beginning with 9388 # underscore (_), so it is better to generate a list of symbols to export. 9389 always_export_symbols=yes 9390 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 9391 # Warning - without using the other runtime loading flags (-brtl), 9392 # -berok will link without error, but may produce a broken library. 9393 allow_undefined_flag='-berok' 9394 # Determine the default libpath from the value encoded in an 9395 # empty executable. 9396 if test set = "${lt_cv_aix_libpath+set}"; then 9397 aix_libpath=$lt_cv_aix_libpath 9398else 9399 if ${lt_cv_aix_libpath_+:} false; then : 9400 $as_echo_n "(cached) " >&6 9401else 9402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404 9405int 9406main () 9407{ 9408 9409 ; 9410 return 0; 9411} 9412_ACEOF 9413if ac_fn_c_try_link "$LINENO"; then : 9414 9415 lt_aix_libpath_sed=' 9416 /Import File Strings/,/^$/ { 9417 /^0/ { 9418 s/^0 *\([^ ]*\) *$/\1/ 9419 p 9420 } 9421 }' 9422 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9423 # Check for a 64-bit object if we didn't find anything. 9424 if test -z "$lt_cv_aix_libpath_"; then 9425 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9426 fi 9427fi 9428rm -f core conftest.err conftest.$ac_objext \ 9429 conftest$ac_exeext conftest.$ac_ext 9430 if test -z "$lt_cv_aix_libpath_"; then 9431 lt_cv_aix_libpath_=/usr/lib:/lib 9432 fi 9433 9434fi 9435 9436 aix_libpath=$lt_cv_aix_libpath_ 9437fi 9438 9439 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9440 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 9441 else 9442 if test ia64 = "$host_cpu"; then 9443 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 9444 allow_undefined_flag="-z nodefs" 9445 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" 9446 else 9447 # Determine the default libpath from the value encoded in an 9448 # empty executable. 9449 if test set = "${lt_cv_aix_libpath+set}"; then 9450 aix_libpath=$lt_cv_aix_libpath 9451else 9452 if ${lt_cv_aix_libpath_+:} false; then : 9453 $as_echo_n "(cached) " >&6 9454else 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9456/* end confdefs.h. */ 9457 9458int 9459main () 9460{ 9461 9462 ; 9463 return 0; 9464} 9465_ACEOF 9466if ac_fn_c_try_link "$LINENO"; then : 9467 9468 lt_aix_libpath_sed=' 9469 /Import File Strings/,/^$/ { 9470 /^0/ { 9471 s/^0 *\([^ ]*\) *$/\1/ 9472 p 9473 } 9474 }' 9475 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9476 # Check for a 64-bit object if we didn't find anything. 9477 if test -z "$lt_cv_aix_libpath_"; then 9478 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9479 fi 9480fi 9481rm -f core conftest.err conftest.$ac_objext \ 9482 conftest$ac_exeext conftest.$ac_ext 9483 if test -z "$lt_cv_aix_libpath_"; then 9484 lt_cv_aix_libpath_=/usr/lib:/lib 9485 fi 9486 9487fi 9488 9489 aix_libpath=$lt_cv_aix_libpath_ 9490fi 9491 9492 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 9493 # Warning - without using the other run time loading flags, 9494 # -berok will link without error, but may produce a broken library. 9495 no_undefined_flag=' $wl-bernotok' 9496 allow_undefined_flag=' $wl-berok' 9497 if test yes = "$with_gnu_ld"; then 9498 # We only use this code for GNU lds that support --whole-archive. 9499 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 9500 else 9501 # Exported symbols can be pulled into shared objects from archives 9502 whole_archive_flag_spec='$convenience' 9503 fi 9504 archive_cmds_need_lc=yes 9505 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 9506 # -brtl affects multiple linker settings, -berok does not and is overridden later 9507 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 9508 if test svr4 != "$with_aix_soname"; then 9509 # This is similar to how AIX traditionally builds its shared libraries. 9510 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' 9511 fi 9512 if test aix != "$with_aix_soname"; then 9513 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' 9514 else 9515 # used by -dlpreopen to get the symbols 9516 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 9517 fi 9518 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 9519 fi 9520 fi 9521 ;; 9522 9523 amigaos*) 9524 case $host_cpu in 9525 powerpc) 9526 # see comment about AmigaOS4 .so support 9527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9528 archive_expsym_cmds='' 9529 ;; 9530 m68k) 9531 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)' 9532 hardcode_libdir_flag_spec='-L$libdir' 9533 hardcode_minus_L=yes 9534 ;; 9535 esac 9536 ;; 9537 9538 bsdi[45]*) 9539 export_dynamic_flag_spec=-rdynamic 9540 ;; 9541 9542 cygwin* | mingw* | pw32* | cegcc*) 9543 # When not using gcc, we currently assume that we are using 9544 # Microsoft Visual C++. 9545 # hardcode_libdir_flag_spec is actually meaningless, as there is 9546 # no search path for DLLs. 9547 case $cc_basename in 9548 cl*) 9549 # Native MSVC 9550 hardcode_libdir_flag_spec=' ' 9551 allow_undefined_flag=unsupported 9552 always_export_symbols=yes 9553 file_list_spec='@' 9554 # Tell ltmain to make .lib files, not .a files. 9555 libext=lib 9556 # Tell ltmain to make .dll files, not .so files. 9557 shrext_cmds=.dll 9558 # FIXME: Setting linknames here is a bad hack. 9559 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9560 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9561 cp "$export_symbols" "$output_objdir/$soname.def"; 9562 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9563 else 9564 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9565 fi~ 9566 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9567 linknames=' 9568 # The linker will not automatically build a static lib if we build a DLL. 9569 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9570 enable_shared_with_static_runtimes=yes 9571 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9572 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9573 # Don't use ranlib 9574 old_postinstall_cmds='chmod 644 $oldlib' 9575 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9576 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9577 case $lt_outputfile in 9578 *.exe|*.EXE) ;; 9579 *) 9580 lt_outputfile=$lt_outputfile.exe 9581 lt_tool_outputfile=$lt_tool_outputfile.exe 9582 ;; 9583 esac~ 9584 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9585 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9586 $RM "$lt_outputfile.manifest"; 9587 fi' 9588 ;; 9589 *) 9590 # Assume MSVC wrapper 9591 hardcode_libdir_flag_spec=' ' 9592 allow_undefined_flag=unsupported 9593 # Tell ltmain to make .lib files, not .a files. 9594 libext=lib 9595 # Tell ltmain to make .dll files, not .so files. 9596 shrext_cmds=.dll 9597 # FIXME: Setting linknames here is a bad hack. 9598 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9599 # The linker will automatically build a .lib file if we build a DLL. 9600 old_archive_from_new_cmds='true' 9601 # FIXME: Should let the user specify the lib program. 9602 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9603 enable_shared_with_static_runtimes=yes 9604 ;; 9605 esac 9606 ;; 9607 9608 darwin* | rhapsody*) 9609 9610 9611 archive_cmds_need_lc=no 9612 hardcode_direct=no 9613 hardcode_automatic=yes 9614 hardcode_shlibpath_var=unsupported 9615 if test yes = "$lt_cv_ld_force_load"; then 9616 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\"`' 9617 9618 else 9619 whole_archive_flag_spec='' 9620 fi 9621 link_all_deplibs=yes 9622 allow_undefined_flag=$_lt_dar_allow_undefined 9623 case $cc_basename in 9624 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9625 *) _lt_dar_can_shared=$GCC ;; 9626 esac 9627 if test yes = "$_lt_dar_can_shared"; then 9628 output_verbose_link_cmd=func_echo_all 9629 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9630 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9631 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" 9632 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" 9633 9634 else 9635 ld_shlibs=no 9636 fi 9637 9638 ;; 9639 9640 dgux*) 9641 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9642 hardcode_libdir_flag_spec='-L$libdir' 9643 hardcode_shlibpath_var=no 9644 ;; 9645 9646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9647 # support. Future versions do this automatically, but an explicit c++rt0.o 9648 # does not break anything, and helps significantly (at the cost of a little 9649 # extra space). 9650 freebsd2.2*) 9651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9652 hardcode_libdir_flag_spec='-R$libdir' 9653 hardcode_direct=yes 9654 hardcode_shlibpath_var=no 9655 ;; 9656 9657 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9658 freebsd2.*) 9659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9660 hardcode_direct=yes 9661 hardcode_minus_L=yes 9662 hardcode_shlibpath_var=no 9663 ;; 9664 9665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9666 freebsd* | dragonfly*) 9667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9668 hardcode_libdir_flag_spec='-R$libdir' 9669 hardcode_direct=yes 9670 hardcode_shlibpath_var=no 9671 ;; 9672 9673 hpux9*) 9674 if test yes = "$GCC"; then 9675 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' 9676 else 9677 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' 9678 fi 9679 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9680 hardcode_libdir_separator=: 9681 hardcode_direct=yes 9682 9683 # hardcode_minus_L: Not really in the search PATH, 9684 # but as the default location of the library. 9685 hardcode_minus_L=yes 9686 export_dynamic_flag_spec='$wl-E' 9687 ;; 9688 9689 hpux10*) 9690 if test yes,no = "$GCC,$with_gnu_ld"; then 9691 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9692 else 9693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9694 fi 9695 if test no = "$with_gnu_ld"; then 9696 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9697 hardcode_libdir_separator=: 9698 hardcode_direct=yes 9699 hardcode_direct_absolute=yes 9700 export_dynamic_flag_spec='$wl-E' 9701 # hardcode_minus_L: Not really in the search PATH, 9702 # but as the default location of the library. 9703 hardcode_minus_L=yes 9704 fi 9705 ;; 9706 9707 hpux11*) 9708 if test yes,no = "$GCC,$with_gnu_ld"; then 9709 case $host_cpu in 9710 hppa*64*) 9711 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9712 ;; 9713 ia64*) 9714 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9715 ;; 9716 *) 9717 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9718 ;; 9719 esac 9720 else 9721 case $host_cpu in 9722 hppa*64*) 9723 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9724 ;; 9725 ia64*) 9726 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9727 ;; 9728 *) 9729 9730 # Older versions of the 11.00 compiler do not understand -b yet 9731 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9733$as_echo_n "checking if $CC understands -b... " >&6; } 9734if ${lt_cv_prog_compiler__b+:} false; then : 9735 $as_echo_n "(cached) " >&6 9736else 9737 lt_cv_prog_compiler__b=no 9738 save_LDFLAGS=$LDFLAGS 9739 LDFLAGS="$LDFLAGS -b" 9740 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9741 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9742 # The linker can only warn and ignore the option if not recognized 9743 # So say no if there are warnings 9744 if test -s conftest.err; then 9745 # Append any errors to the config.log. 9746 cat conftest.err 1>&5 9747 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9748 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9749 if diff conftest.exp conftest.er2 >/dev/null; then 9750 lt_cv_prog_compiler__b=yes 9751 fi 9752 else 9753 lt_cv_prog_compiler__b=yes 9754 fi 9755 fi 9756 $RM -r conftest* 9757 LDFLAGS=$save_LDFLAGS 9758 9759fi 9760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9761$as_echo "$lt_cv_prog_compiler__b" >&6; } 9762 9763if test yes = "$lt_cv_prog_compiler__b"; then 9764 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9765else 9766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9767fi 9768 9769 ;; 9770 esac 9771 fi 9772 if test no = "$with_gnu_ld"; then 9773 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9774 hardcode_libdir_separator=: 9775 9776 case $host_cpu in 9777 hppa*64*|ia64*) 9778 hardcode_direct=no 9779 hardcode_shlibpath_var=no 9780 ;; 9781 *) 9782 hardcode_direct=yes 9783 hardcode_direct_absolute=yes 9784 export_dynamic_flag_spec='$wl-E' 9785 9786 # hardcode_minus_L: Not really in the search PATH, 9787 # but as the default location of the library. 9788 hardcode_minus_L=yes 9789 ;; 9790 esac 9791 fi 9792 ;; 9793 9794 irix5* | irix6* | nonstopux*) 9795 if test yes = "$GCC"; then 9796 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' 9797 # Try to use the -exported_symbol ld option, if it does not 9798 # work, assume that -exports_file does not work either and 9799 # implicitly export all symbols. 9800 # This should be the same for all languages, so no per-tag cache variable. 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9802$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9803if ${lt_cv_irix_exported_symbol+:} false; then : 9804 $as_echo_n "(cached) " >&6 9805else 9806 save_LDFLAGS=$LDFLAGS 9807 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9809/* end confdefs.h. */ 9810int foo (void) { return 0; } 9811_ACEOF 9812if ac_fn_c_try_link "$LINENO"; then : 9813 lt_cv_irix_exported_symbol=yes 9814else 9815 lt_cv_irix_exported_symbol=no 9816fi 9817rm -f core conftest.err conftest.$ac_objext \ 9818 conftest$ac_exeext conftest.$ac_ext 9819 LDFLAGS=$save_LDFLAGS 9820fi 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9822$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9823 if test yes = "$lt_cv_irix_exported_symbol"; then 9824 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' 9825 fi 9826 else 9827 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' 9828 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' 9829 fi 9830 archive_cmds_need_lc='no' 9831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9832 hardcode_libdir_separator=: 9833 inherit_rpath=yes 9834 link_all_deplibs=yes 9835 ;; 9836 9837 linux*) 9838 case $cc_basename in 9839 tcc*) 9840 # Fabrice Bellard et al's Tiny C Compiler 9841 ld_shlibs=yes 9842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9843 ;; 9844 esac 9845 ;; 9846 9847 netbsd*) 9848 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9850 else 9851 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9852 fi 9853 hardcode_libdir_flag_spec='-R$libdir' 9854 hardcode_direct=yes 9855 hardcode_shlibpath_var=no 9856 ;; 9857 9858 newsos6) 9859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9860 hardcode_direct=yes 9861 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9862 hardcode_libdir_separator=: 9863 hardcode_shlibpath_var=no 9864 ;; 9865 9866 *nto* | *qnx*) 9867 ;; 9868 9869 openbsd* | bitrig*) 9870 if test -f /usr/libexec/ld.so; then 9871 hardcode_direct=yes 9872 hardcode_shlibpath_var=no 9873 hardcode_direct_absolute=yes 9874 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9875 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9876 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9877 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9878 export_dynamic_flag_spec='$wl-E' 9879 else 9880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9881 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9882 fi 9883 else 9884 ld_shlibs=no 9885 fi 9886 ;; 9887 9888 os2*) 9889 hardcode_libdir_flag_spec='-L$libdir' 9890 hardcode_minus_L=yes 9891 allow_undefined_flag=unsupported 9892 shrext_cmds=.dll 9893 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9894 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9895 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9896 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9897 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9898 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9899 emximp -o $lib $output_objdir/$libname.def' 9900 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9901 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9902 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9903 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9904 prefix_cmds="$SED"~ 9905 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9906 prefix_cmds="$prefix_cmds -e 1d"; 9907 fi~ 9908 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9909 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9910 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9911 emximp -o $lib $output_objdir/$libname.def' 9912 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9913 enable_shared_with_static_runtimes=yes 9914 ;; 9915 9916 osf3*) 9917 if test yes = "$GCC"; then 9918 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9919 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' 9920 else 9921 allow_undefined_flag=' -expect_unresolved \*' 9922 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' 9923 fi 9924 archive_cmds_need_lc='no' 9925 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9926 hardcode_libdir_separator=: 9927 ;; 9928 9929 osf4* | osf5*) # as osf3* with the addition of -msym flag 9930 if test yes = "$GCC"; then 9931 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9932 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' 9933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9934 else 9935 allow_undefined_flag=' -expect_unresolved \*' 9936 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' 9937 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~ 9938 $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' 9939 9940 # Both c and cxx compiler support -rpath directly 9941 hardcode_libdir_flag_spec='-rpath $libdir' 9942 fi 9943 archive_cmds_need_lc='no' 9944 hardcode_libdir_separator=: 9945 ;; 9946 9947 solaris*) 9948 no_undefined_flag=' -z defs' 9949 if test yes = "$GCC"; then 9950 wlarc='$wl' 9951 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9953 $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' 9954 else 9955 case `$CC -V 2>&1` in 9956 *"Compilers 5.0"*) 9957 wlarc='' 9958 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9960 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9961 ;; 9962 *) 9963 wlarc='$wl' 9964 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9966 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9967 ;; 9968 esac 9969 fi 9970 hardcode_libdir_flag_spec='-R$libdir' 9971 hardcode_shlibpath_var=no 9972 case $host_os in 9973 solaris2.[0-5] | solaris2.[0-5].*) ;; 9974 *) 9975 # The compiler driver will combine and reorder linker options, 9976 # but understands '-z linker_flag'. GCC discards it without '$wl', 9977 # but is careful enough not to reorder. 9978 # Supported since Solaris 2.6 (maybe 2.5.1?) 9979 if test yes = "$GCC"; then 9980 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9981 else 9982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9983 fi 9984 ;; 9985 esac 9986 link_all_deplibs=yes 9987 ;; 9988 9989 sunos4*) 9990 if test sequent = "$host_vendor"; then 9991 # Use $CC to link under sequent, because it throws in some extra .o 9992 # files that make .init and .fini sections work. 9993 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9994 else 9995 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9996 fi 9997 hardcode_libdir_flag_spec='-L$libdir' 9998 hardcode_direct=yes 9999 hardcode_minus_L=yes 10000 hardcode_shlibpath_var=no 10001 ;; 10002 10003 sysv4) 10004 case $host_vendor in 10005 sni) 10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10007 hardcode_direct=yes # is this really true??? 10008 ;; 10009 siemens) 10010 ## LD is ld it makes a PLAMLIB 10011 ## CC just makes a GrossModule. 10012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10013 reload_cmds='$CC -r -o $output$reload_objs' 10014 hardcode_direct=no 10015 ;; 10016 motorola) 10017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10018 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10019 ;; 10020 esac 10021 runpath_var='LD_RUN_PATH' 10022 hardcode_shlibpath_var=no 10023 ;; 10024 10025 sysv4.3*) 10026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10027 hardcode_shlibpath_var=no 10028 export_dynamic_flag_spec='-Bexport' 10029 ;; 10030 10031 sysv4*MP*) 10032 if test -d /usr/nec; then 10033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10034 hardcode_shlibpath_var=no 10035 runpath_var=LD_RUN_PATH 10036 hardcode_runpath_var=yes 10037 ld_shlibs=yes 10038 fi 10039 ;; 10040 10041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10042 no_undefined_flag='$wl-z,text' 10043 archive_cmds_need_lc=no 10044 hardcode_shlibpath_var=no 10045 runpath_var='LD_RUN_PATH' 10046 10047 if test yes = "$GCC"; then 10048 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10049 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10050 else 10051 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10052 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10053 fi 10054 ;; 10055 10056 sysv5* | sco3.2v5* | sco5v6*) 10057 # Note: We CANNOT use -z defs as we might desire, because we do not 10058 # link with -lc, and that would cause any symbols used from libc to 10059 # always be unresolved, which means just about no library would 10060 # ever link correctly. If we're not using GNU ld we use -z text 10061 # though, which does catch some bad symbols but isn't as heavy-handed 10062 # as -z defs. 10063 no_undefined_flag='$wl-z,text' 10064 allow_undefined_flag='$wl-z,nodefs' 10065 archive_cmds_need_lc=no 10066 hardcode_shlibpath_var=no 10067 hardcode_libdir_flag_spec='$wl-R,$libdir' 10068 hardcode_libdir_separator=':' 10069 link_all_deplibs=yes 10070 export_dynamic_flag_spec='$wl-Bexport' 10071 runpath_var='LD_RUN_PATH' 10072 10073 if test yes = "$GCC"; then 10074 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10075 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10076 else 10077 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10078 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10079 fi 10080 ;; 10081 10082 uts4*) 10083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10084 hardcode_libdir_flag_spec='-L$libdir' 10085 hardcode_shlibpath_var=no 10086 ;; 10087 10088 *) 10089 ld_shlibs=no 10090 ;; 10091 esac 10092 10093 if test sni = "$host_vendor"; then 10094 case $host in 10095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10096 export_dynamic_flag_spec='$wl-Blargedynsym' 10097 ;; 10098 esac 10099 fi 10100 fi 10101 10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10103$as_echo "$ld_shlibs" >&6; } 10104test no = "$ld_shlibs" && can_build_shared=no 10105 10106with_gnu_ld=$with_gnu_ld 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122# 10123# Do we need to explicitly link libc? 10124# 10125case "x$archive_cmds_need_lc" in 10126x|xyes) 10127 # Assume -lc should be added 10128 archive_cmds_need_lc=yes 10129 10130 if test yes,yes = "$GCC,$enable_shared"; then 10131 case $archive_cmds in 10132 *'~'*) 10133 # FIXME: we may have to deal with multi-command sequences. 10134 ;; 10135 '$CC '*) 10136 # Test whether the compiler implicitly links with -lc since on some 10137 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10138 # to ld, don't add -lc before -lgcc. 10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10140$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10141if ${lt_cv_archive_cmds_need_lc+:} false; then : 10142 $as_echo_n "(cached) " >&6 10143else 10144 $RM conftest* 10145 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10146 10147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10148 (eval $ac_compile) 2>&5 10149 ac_status=$? 10150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10151 test $ac_status = 0; } 2>conftest.err; then 10152 soname=conftest 10153 lib=conftest 10154 libobjs=conftest.$ac_objext 10155 deplibs= 10156 wl=$lt_prog_compiler_wl 10157 pic_flag=$lt_prog_compiler_pic 10158 compiler_flags=-v 10159 linker_flags=-v 10160 verstring= 10161 output_objdir=. 10162 libname=conftest 10163 lt_save_allow_undefined_flag=$allow_undefined_flag 10164 allow_undefined_flag= 10165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10166 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10167 ac_status=$? 10168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10169 test $ac_status = 0; } 10170 then 10171 lt_cv_archive_cmds_need_lc=no 10172 else 10173 lt_cv_archive_cmds_need_lc=yes 10174 fi 10175 allow_undefined_flag=$lt_save_allow_undefined_flag 10176 else 10177 cat conftest.err 1>&5 10178 fi 10179 $RM conftest* 10180 10181fi 10182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10183$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10184 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10185 ;; 10186 esac 10187 fi 10188 ;; 10189esac 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10343$as_echo_n "checking dynamic linker characteristics... " >&6; } 10344 10345if test yes = "$GCC"; then 10346 case $host_os in 10347 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 10348 *) lt_awk_arg='/^libraries:/' ;; 10349 esac 10350 case $host_os in 10351 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 10352 *) lt_sed_strip_eq='s|=/|/|g' ;; 10353 esac 10354 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10355 case $lt_search_path_spec in 10356 *\;*) 10357 # if the path contains ";" then we assume it to be the separator 10358 # otherwise default to the standard path separator (i.e. ":") - it is 10359 # assumed that no part of a normal pathname contains ";" but that should 10360 # okay in the real world where ";" in dirpaths is itself problematic. 10361 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10362 ;; 10363 *) 10364 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10365 ;; 10366 esac 10367 # Ok, now we have the path, separated by spaces, we can step through it 10368 # and add multilib dir if necessary... 10369 lt_tmp_lt_search_path_spec= 10370 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10371 # ...but if some path component already ends with the multilib dir we assume 10372 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 10373 case "$lt_multi_os_dir; $lt_search_path_spec " in 10374 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 10375 lt_multi_os_dir= 10376 ;; 10377 esac 10378 for lt_sys_path in $lt_search_path_spec; do 10379 if test -d "$lt_sys_path$lt_multi_os_dir"; then 10380 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 10381 elif test -n "$lt_multi_os_dir"; then 10382 test -d "$lt_sys_path" && \ 10383 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10384 fi 10385 done 10386 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10387BEGIN {RS = " "; FS = "/|\n";} { 10388 lt_foo = ""; 10389 lt_count = 0; 10390 for (lt_i = NF; lt_i > 0; lt_i--) { 10391 if ($lt_i != "" && $lt_i != ".") { 10392 if ($lt_i == "..") { 10393 lt_count++; 10394 } else { 10395 if (lt_count == 0) { 10396 lt_foo = "/" $lt_i lt_foo; 10397 } else { 10398 lt_count--; 10399 } 10400 } 10401 } 10402 } 10403 if (lt_foo != "") { lt_freq[lt_foo]++; } 10404 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10405}'` 10406 # AWK program above erroneously prepends '/' to C:/dos/paths 10407 # for these hosts. 10408 case $host_os in 10409 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10410 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 10411 esac 10412 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10413else 10414 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10415fi 10416library_names_spec= 10417libname_spec='lib$name' 10418soname_spec= 10419shrext_cmds=.so 10420postinstall_cmds= 10421postuninstall_cmds= 10422finish_cmds= 10423finish_eval= 10424shlibpath_var= 10425shlibpath_overrides_runpath=unknown 10426version_type=none 10427dynamic_linker="$host_os ld.so" 10428sys_lib_dlsearch_path_spec="/lib /usr/lib" 10429need_lib_prefix=unknown 10430hardcode_into_libs=no 10431 10432# when you set need_version to no, make sure it does not cause -set_version 10433# flags to be left without arguments 10434need_version=unknown 10435 10436 10437 10438case $host_os in 10439aix3*) 10440 version_type=linux # correct to gnu/linux during the next big refactor 10441 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 10442 shlibpath_var=LIBPATH 10443 10444 # AIX 3 has no versioning support, so we append a major version to the name. 10445 soname_spec='$libname$release$shared_ext$major' 10446 ;; 10447 10448aix[4-9]*) 10449 version_type=linux # correct to gnu/linux during the next big refactor 10450 need_lib_prefix=no 10451 need_version=no 10452 hardcode_into_libs=yes 10453 if test ia64 = "$host_cpu"; then 10454 # AIX 5 supports IA64 10455 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 10456 shlibpath_var=LD_LIBRARY_PATH 10457 else 10458 # With GCC up to 2.95.x, collect2 would create an import file 10459 # for dependence libraries. The import file would start with 10460 # the line '#! .'. This would cause the generated library to 10461 # depend on '.', always an invalid library. This was fixed in 10462 # development snapshots of GCC prior to 3.0. 10463 case $host_os in 10464 aix4 | aix4.[01] | aix4.[01].*) 10465 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10466 echo ' yes ' 10467 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 10468 : 10469 else 10470 can_build_shared=no 10471 fi 10472 ;; 10473 esac 10474 # Using Import Files as archive members, it is possible to support 10475 # filename-based versioning of shared library archives on AIX. While 10476 # this would work for both with and without runtime linking, it will 10477 # prevent static linking of such archives. So we do filename-based 10478 # shared library versioning with .so extension only, which is used 10479 # when both runtime linking and shared linking is enabled. 10480 # Unfortunately, runtime linking may impact performance, so we do 10481 # not want this to be the default eventually. Also, we use the 10482 # versioned .so libs for executables only if there is the -brtl 10483 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 10484 # To allow for filename-based versioning support, we need to create 10485 # libNAME.so.V as an archive file, containing: 10486 # *) an Import File, referring to the versioned filename of the 10487 # archive as well as the shared archive member, telling the 10488 # bitwidth (32 or 64) of that shared object, and providing the 10489 # list of exported symbols of that shared object, eventually 10490 # decorated with the 'weak' keyword 10491 # *) the shared object with the F_LOADONLY flag set, to really avoid 10492 # it being seen by the linker. 10493 # At run time we better use the real file rather than another symlink, 10494 # but for link time we create the symlink libNAME.so -> libNAME.so.V 10495 10496 case $with_aix_soname,$aix_use_runtimelinking in 10497 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 10498 # soname into executable. Probably we can add versioning support to 10499 # collect2, so additional links can be useful in future. 10500 aix,yes) # traditional libtool 10501 dynamic_linker='AIX unversionable lib.so' 10502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10503 # instead of lib<name>.a to let people know that these are not 10504 # typical AIX shared libraries. 10505 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10506 ;; 10507 aix,no) # traditional AIX only 10508 dynamic_linker='AIX lib.a(lib.so.V)' 10509 # We preserve .a as extension for shared libraries through AIX4.2 10510 # and later when we are not doing run time linking. 10511 library_names_spec='$libname$release.a $libname.a' 10512 soname_spec='$libname$release$shared_ext$major' 10513 ;; 10514 svr4,*) # full svr4 only 10515 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 10516 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10517 # We do not specify a path in Import Files, so LIBPATH fires. 10518 shlibpath_overrides_runpath=yes 10519 ;; 10520 *,yes) # both, prefer svr4 10521 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 10522 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10523 # unpreferred sharedlib libNAME.a needs extra handling 10524 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"' 10525 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"' 10526 # We do not specify a path in Import Files, so LIBPATH fires. 10527 shlibpath_overrides_runpath=yes 10528 ;; 10529 *,no) # both, prefer aix 10530 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10531 library_names_spec='$libname$release.a $libname.a' 10532 soname_spec='$libname$release$shared_ext$major' 10533 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10534 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)' 10535 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"' 10536 ;; 10537 esac 10538 shlibpath_var=LIBPATH 10539 fi 10540 ;; 10541 10542amigaos*) 10543 case $host_cpu in 10544 powerpc) 10545 # Since July 2007 AmigaOS4 officially supports .so libraries. 10546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10548 ;; 10549 m68k) 10550 library_names_spec='$libname.ixlibrary $libname.a' 10551 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10552 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' 10553 ;; 10554 esac 10555 ;; 10556 10557beos*) 10558 library_names_spec='$libname$shared_ext' 10559 dynamic_linker="$host_os ld.so" 10560 shlibpath_var=LIBRARY_PATH 10561 ;; 10562 10563bsdi[45]*) 10564 version_type=linux # correct to gnu/linux during the next big refactor 10565 need_version=no 10566 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10567 soname_spec='$libname$release$shared_ext$major' 10568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10569 shlibpath_var=LD_LIBRARY_PATH 10570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10572 # the default ld.so.conf also contains /usr/contrib/lib and 10573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10574 # libtool to hard-code these into programs 10575 ;; 10576 10577cygwin* | mingw* | pw32* | cegcc*) 10578 version_type=windows 10579 shrext_cmds=.dll 10580 need_version=no 10581 need_lib_prefix=no 10582 10583 case $GCC,$cc_basename in 10584 yes,*) 10585 # gcc 10586 library_names_spec='$libname.dll.a' 10587 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10588 postinstall_cmds='base_file=`basename \$file`~ 10589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10590 dldir=$destdir/`dirname \$dlpath`~ 10591 test -d \$dldir || mkdir -p \$dldir~ 10592 $install_prog $dir/$dlname \$dldir/$dlname~ 10593 chmod a+x \$dldir/$dlname~ 10594 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10595 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10596 fi' 10597 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10598 dlpath=$dir/\$dldll~ 10599 $RM \$dlpath' 10600 shlibpath_overrides_runpath=yes 10601 10602 case $host_os in 10603 cygwin*) 10604 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10605 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10606 10607 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10608 ;; 10609 mingw* | cegcc*) 10610 # MinGW DLLs use traditional 'lib' prefix 10611 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10612 ;; 10613 pw32*) 10614 # pw32 DLLs use 'pw' prefix rather than 'lib' 10615 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10616 ;; 10617 esac 10618 dynamic_linker='Win32 ld.exe' 10619 ;; 10620 10621 *,cl*) 10622 # Native MSVC 10623 libname_spec='$name' 10624 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10625 library_names_spec='$libname.dll.lib' 10626 10627 case $build_os in 10628 mingw*) 10629 sys_lib_search_path_spec= 10630 lt_save_ifs=$IFS 10631 IFS=';' 10632 for lt_path in $LIB 10633 do 10634 IFS=$lt_save_ifs 10635 # Let DOS variable expansion print the short 8.3 style file name. 10636 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10637 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10638 done 10639 IFS=$lt_save_ifs 10640 # Convert to MSYS style. 10641 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10642 ;; 10643 cygwin*) 10644 # Convert to unix form, then to dos form, then back to unix form 10645 # but this time dos style (no spaces!) so that the unix form looks 10646 # like /cygdrive/c/PROGRA~1:/cygdr... 10647 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10648 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10649 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10650 ;; 10651 *) 10652 sys_lib_search_path_spec=$LIB 10653 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10654 # It is most probably a Windows format PATH. 10655 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10656 else 10657 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10658 fi 10659 # FIXME: find the short name or the path components, as spaces are 10660 # common. (e.g. "Program Files" -> "PROGRA~1") 10661 ;; 10662 esac 10663 10664 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10665 postinstall_cmds='base_file=`basename \$file`~ 10666 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10667 dldir=$destdir/`dirname \$dlpath`~ 10668 test -d \$dldir || mkdir -p \$dldir~ 10669 $install_prog $dir/$dlname \$dldir/$dlname' 10670 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10671 dlpath=$dir/\$dldll~ 10672 $RM \$dlpath' 10673 shlibpath_overrides_runpath=yes 10674 dynamic_linker='Win32 link.exe' 10675 ;; 10676 10677 *) 10678 # Assume MSVC wrapper 10679 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10680 dynamic_linker='Win32 ld.exe' 10681 ;; 10682 esac 10683 # FIXME: first we should search . and the directory the executable is in 10684 shlibpath_var=PATH 10685 ;; 10686 10687darwin* | rhapsody*) 10688 dynamic_linker="$host_os dyld" 10689 version_type=darwin 10690 need_lib_prefix=no 10691 need_version=no 10692 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10693 soname_spec='$libname$release$major$shared_ext' 10694 shlibpath_overrides_runpath=yes 10695 shlibpath_var=DYLD_LIBRARY_PATH 10696 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10697 10698 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10699 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10700 ;; 10701 10702dgux*) 10703 version_type=linux # correct to gnu/linux during the next big refactor 10704 need_lib_prefix=no 10705 need_version=no 10706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10707 soname_spec='$libname$release$shared_ext$major' 10708 shlibpath_var=LD_LIBRARY_PATH 10709 ;; 10710 10711freebsd* | dragonfly*) 10712 # DragonFly does not have aout. When/if they implement a new 10713 # versioning mechanism, adjust this. 10714 if test -x /usr/bin/objformat; then 10715 objformat=`/usr/bin/objformat` 10716 else 10717 case $host_os in 10718 freebsd[23].*) objformat=aout ;; 10719 *) objformat=elf ;; 10720 esac 10721 fi 10722 version_type=freebsd-$objformat 10723 case $version_type in 10724 freebsd-elf*) 10725 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10726 soname_spec='$libname$release$shared_ext$major' 10727 need_version=no 10728 need_lib_prefix=no 10729 ;; 10730 freebsd-*) 10731 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10732 need_version=yes 10733 ;; 10734 esac 10735 shlibpath_var=LD_LIBRARY_PATH 10736 case $host_os in 10737 freebsd2.*) 10738 shlibpath_overrides_runpath=yes 10739 ;; 10740 freebsd3.[01]* | freebsdelf3.[01]*) 10741 shlibpath_overrides_runpath=yes 10742 hardcode_into_libs=yes 10743 ;; 10744 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10745 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10746 shlibpath_overrides_runpath=no 10747 hardcode_into_libs=yes 10748 ;; 10749 *) # from 4.6 on, and DragonFly 10750 shlibpath_overrides_runpath=yes 10751 hardcode_into_libs=yes 10752 ;; 10753 esac 10754 ;; 10755 10756haiku*) 10757 version_type=linux # correct to gnu/linux during the next big refactor 10758 need_lib_prefix=no 10759 need_version=no 10760 dynamic_linker="$host_os runtime_loader" 10761 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10762 soname_spec='$libname$release$shared_ext$major' 10763 shlibpath_var=LIBRARY_PATH 10764 shlibpath_overrides_runpath=no 10765 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10766 hardcode_into_libs=yes 10767 ;; 10768 10769hpux9* | hpux10* | hpux11*) 10770 # Give a soname corresponding to the major version so that dld.sl refuses to 10771 # link against other versions. 10772 version_type=sunos 10773 need_lib_prefix=no 10774 need_version=no 10775 case $host_cpu in 10776 ia64*) 10777 shrext_cmds='.so' 10778 hardcode_into_libs=yes 10779 dynamic_linker="$host_os dld.so" 10780 shlibpath_var=LD_LIBRARY_PATH 10781 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10782 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10783 soname_spec='$libname$release$shared_ext$major' 10784 if test 32 = "$HPUX_IA64_MODE"; then 10785 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10786 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10787 else 10788 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10789 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10790 fi 10791 ;; 10792 hppa*64*) 10793 shrext_cmds='.sl' 10794 hardcode_into_libs=yes 10795 dynamic_linker="$host_os dld.sl" 10796 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10797 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10798 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10799 soname_spec='$libname$release$shared_ext$major' 10800 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10802 ;; 10803 *) 10804 shrext_cmds='.sl' 10805 dynamic_linker="$host_os dld.sl" 10806 shlibpath_var=SHLIB_PATH 10807 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10808 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10809 soname_spec='$libname$release$shared_ext$major' 10810 ;; 10811 esac 10812 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10813 postinstall_cmds='chmod 555 $lib' 10814 # or fails outright, so override atomically: 10815 install_override_mode=555 10816 ;; 10817 10818interix[3-9]*) 10819 version_type=linux # correct to gnu/linux during the next big refactor 10820 need_lib_prefix=no 10821 need_version=no 10822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10823 soname_spec='$libname$release$shared_ext$major' 10824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10825 shlibpath_var=LD_LIBRARY_PATH 10826 shlibpath_overrides_runpath=no 10827 hardcode_into_libs=yes 10828 ;; 10829 10830irix5* | irix6* | nonstopux*) 10831 case $host_os in 10832 nonstopux*) version_type=nonstopux ;; 10833 *) 10834 if test yes = "$lt_cv_prog_gnu_ld"; then 10835 version_type=linux # correct to gnu/linux during the next big refactor 10836 else 10837 version_type=irix 10838 fi ;; 10839 esac 10840 need_lib_prefix=no 10841 need_version=no 10842 soname_spec='$libname$release$shared_ext$major' 10843 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10844 case $host_os in 10845 irix5* | nonstopux*) 10846 libsuff= shlibsuff= 10847 ;; 10848 *) 10849 case $LD in # libtool.m4 will add one of these switches to LD 10850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10851 libsuff= shlibsuff= libmagic=32-bit;; 10852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10853 libsuff=32 shlibsuff=N32 libmagic=N32;; 10854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10855 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10856 *) libsuff= shlibsuff= libmagic=never-match;; 10857 esac 10858 ;; 10859 esac 10860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10861 shlibpath_overrides_runpath=no 10862 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10863 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10864 hardcode_into_libs=yes 10865 ;; 10866 10867# No shared lib support for Linux oldld, aout, or coff. 10868linux*oldld* | linux*aout* | linux*coff*) 10869 dynamic_linker=no 10870 ;; 10871 10872linux*android*) 10873 version_type=none # Android doesn't support versioned libraries. 10874 need_lib_prefix=no 10875 need_version=no 10876 library_names_spec='$libname$release$shared_ext' 10877 soname_spec='$libname$release$shared_ext' 10878 finish_cmds= 10879 shlibpath_var=LD_LIBRARY_PATH 10880 shlibpath_overrides_runpath=yes 10881 10882 # This implies no fast_install, which is unacceptable. 10883 # Some rework will be needed to allow for fast_install 10884 # before this can be enabled. 10885 hardcode_into_libs=yes 10886 10887 dynamic_linker='Android linker' 10888 # Don't embed -rpath directories since the linker doesn't support them. 10889 hardcode_libdir_flag_spec='-L$libdir' 10890 ;; 10891 10892# This must be glibc/ELF. 10893linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10894 version_type=linux # correct to gnu/linux during the next big refactor 10895 need_lib_prefix=no 10896 need_version=no 10897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10898 soname_spec='$libname$release$shared_ext$major' 10899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10900 shlibpath_var=LD_LIBRARY_PATH 10901 shlibpath_overrides_runpath=no 10902 10903 # Some binutils ld are patched to set DT_RUNPATH 10904 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906else 10907 lt_cv_shlibpath_overrides_runpath=no 10908 save_LDFLAGS=$LDFLAGS 10909 save_libdir=$libdir 10910 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10911 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10913/* end confdefs.h. */ 10914 10915int 10916main () 10917{ 10918 10919 ; 10920 return 0; 10921} 10922_ACEOF 10923if ac_fn_c_try_link "$LINENO"; then : 10924 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10925 lt_cv_shlibpath_overrides_runpath=yes 10926fi 10927fi 10928rm -f core conftest.err conftest.$ac_objext \ 10929 conftest$ac_exeext conftest.$ac_ext 10930 LDFLAGS=$save_LDFLAGS 10931 libdir=$save_libdir 10932 10933fi 10934 10935 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10936 10937 # This implies no fast_install, which is unacceptable. 10938 # Some rework will be needed to allow for fast_install 10939 # before this can be enabled. 10940 hardcode_into_libs=yes 10941 10942 # Add ABI-specific directories to the system library path. 10943 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10944 10945 # Ideally, we could use ldconfig to report *all* directores which are 10946 # searched for libraries, however this is still not possible. Aside from not 10947 # being certain /sbin/ldconfig is available, command 10948 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10949 # even though it is searched at run-time. Try to do the best guess by 10950 # appending ld.so.conf contents (and includes) to the search path. 10951 if test -f /etc/ld.so.conf; then 10952 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' ' '` 10953 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10954 fi 10955 10956 # We used to test for /lib/ld.so.1 and disable shared libraries on 10957 # powerpc, because MkLinux only supported shared libraries with the 10958 # GNU dynamic linker. Since this was broken with cross compilers, 10959 # most powerpc-linux boxes support dynamic linking these days and 10960 # people can always --disable-shared, the test was removed, and we 10961 # assume the GNU/Linux dynamic linker is in use. 10962 dynamic_linker='GNU/Linux ld.so' 10963 ;; 10964 10965netbsd*) 10966 version_type=sunos 10967 need_lib_prefix=no 10968 need_version=no 10969 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10970 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10972 dynamic_linker='NetBSD (a.out) ld.so' 10973 else 10974 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10975 soname_spec='$libname$release$shared_ext$major' 10976 dynamic_linker='NetBSD ld.elf_so' 10977 fi 10978 shlibpath_var=LD_LIBRARY_PATH 10979 shlibpath_overrides_runpath=yes 10980 hardcode_into_libs=yes 10981 ;; 10982 10983newsos6) 10984 version_type=linux # correct to gnu/linux during the next big refactor 10985 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10986 shlibpath_var=LD_LIBRARY_PATH 10987 shlibpath_overrides_runpath=yes 10988 ;; 10989 10990*nto* | *qnx*) 10991 version_type=qnx 10992 need_lib_prefix=no 10993 need_version=no 10994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10995 soname_spec='$libname$release$shared_ext$major' 10996 shlibpath_var=LD_LIBRARY_PATH 10997 shlibpath_overrides_runpath=no 10998 hardcode_into_libs=yes 10999 dynamic_linker='ldqnx.so' 11000 ;; 11001 11002openbsd* | bitrig*) 11003 version_type=sunos 11004 sys_lib_dlsearch_path_spec=/usr/lib 11005 need_lib_prefix=no 11006 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11007 need_version=no 11008 else 11009 need_version=yes 11010 fi 11011 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11013 shlibpath_var=LD_LIBRARY_PATH 11014 shlibpath_overrides_runpath=yes 11015 ;; 11016 11017os2*) 11018 libname_spec='$name' 11019 version_type=windows 11020 shrext_cmds=.dll 11021 need_version=no 11022 need_lib_prefix=no 11023 # OS/2 can only load a DLL with a base name of 8 characters or less. 11024 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 11025 v=$($ECHO $release$versuffix | tr -d .-); 11026 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 11027 $ECHO $n$v`$shared_ext' 11028 library_names_spec='${libname}_dll.$libext' 11029 dynamic_linker='OS/2 ld.exe' 11030 shlibpath_var=BEGINLIBPATH 11031 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 11032 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11033 postinstall_cmds='base_file=`basename \$file`~ 11034 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 11035 dldir=$destdir/`dirname \$dlpath`~ 11036 test -d \$dldir || mkdir -p \$dldir~ 11037 $install_prog $dir/$dlname \$dldir/$dlname~ 11038 chmod a+x \$dldir/$dlname~ 11039 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11040 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11041 fi' 11042 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 11043 dlpath=$dir/\$dldll~ 11044 $RM \$dlpath' 11045 ;; 11046 11047osf3* | osf4* | osf5*) 11048 version_type=osf 11049 need_lib_prefix=no 11050 need_version=no 11051 soname_spec='$libname$release$shared_ext$major' 11052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11053 shlibpath_var=LD_LIBRARY_PATH 11054 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11056 ;; 11057 11058rdos*) 11059 dynamic_linker=no 11060 ;; 11061 11062solaris*) 11063 version_type=linux # correct to gnu/linux during the next big refactor 11064 need_lib_prefix=no 11065 need_version=no 11066 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11067 soname_spec='$libname$release$shared_ext$major' 11068 shlibpath_var=LD_LIBRARY_PATH 11069 shlibpath_overrides_runpath=yes 11070 hardcode_into_libs=yes 11071 # ldd complains unless libraries are executable 11072 postinstall_cmds='chmod +x $lib' 11073 ;; 11074 11075sunos4*) 11076 version_type=sunos 11077 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 11078 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11079 shlibpath_var=LD_LIBRARY_PATH 11080 shlibpath_overrides_runpath=yes 11081 if test yes = "$with_gnu_ld"; then 11082 need_lib_prefix=no 11083 fi 11084 need_version=yes 11085 ;; 11086 11087sysv4 | sysv4.3*) 11088 version_type=linux # correct to gnu/linux during the next big refactor 11089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11090 soname_spec='$libname$release$shared_ext$major' 11091 shlibpath_var=LD_LIBRARY_PATH 11092 case $host_vendor in 11093 sni) 11094 shlibpath_overrides_runpath=no 11095 need_lib_prefix=no 11096 runpath_var=LD_RUN_PATH 11097 ;; 11098 siemens) 11099 need_lib_prefix=no 11100 ;; 11101 motorola) 11102 need_lib_prefix=no 11103 need_version=no 11104 shlibpath_overrides_runpath=no 11105 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11106 ;; 11107 esac 11108 ;; 11109 11110sysv4*MP*) 11111 if test -d /usr/nec; then 11112 version_type=linux # correct to gnu/linux during the next big refactor 11113 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 11114 soname_spec='$libname$shared_ext.$major' 11115 shlibpath_var=LD_LIBRARY_PATH 11116 fi 11117 ;; 11118 11119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11120 version_type=sco 11121 need_lib_prefix=no 11122 need_version=no 11123 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 11124 soname_spec='$libname$release$shared_ext$major' 11125 shlibpath_var=LD_LIBRARY_PATH 11126 shlibpath_overrides_runpath=yes 11127 hardcode_into_libs=yes 11128 if test yes = "$with_gnu_ld"; then 11129 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11130 else 11131 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11132 case $host_os in 11133 sco3.2v5*) 11134 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11135 ;; 11136 esac 11137 fi 11138 sys_lib_dlsearch_path_spec='/usr/lib' 11139 ;; 11140 11141tpf*) 11142 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11143 version_type=linux # correct to gnu/linux during the next big refactor 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 shlibpath_var=LD_LIBRARY_PATH 11148 shlibpath_overrides_runpath=no 11149 hardcode_into_libs=yes 11150 ;; 11151 11152uts4*) 11153 version_type=linux # correct to gnu/linux during the next big refactor 11154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 11155 soname_spec='$libname$release$shared_ext$major' 11156 shlibpath_var=LD_LIBRARY_PATH 11157 ;; 11158 11159*) 11160 dynamic_linker=no 11161 ;; 11162esac 11163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11164$as_echo "$dynamic_linker" >&6; } 11165test no = "$dynamic_linker" && can_build_shared=no 11166 11167variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11168if test yes = "$GCC"; then 11169 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11170fi 11171 11172if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 11173 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 11174fi 11175 11176if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 11177 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 11178fi 11179 11180# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 11181configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 11182 11183# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 11184func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 11185 11186# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 11187configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11286$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11287hardcode_action= 11288if test -n "$hardcode_libdir_flag_spec" || 11289 test -n "$runpath_var" || 11290 test yes = "$hardcode_automatic"; then 11291 11292 # We can hardcode non-existent directories. 11293 if test no != "$hardcode_direct" && 11294 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11295 # have to relink, otherwise we might link with an installed library 11296 # when we should be linking with a yet-to-be-installed one 11297 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 11298 test no != "$hardcode_minus_L"; then 11299 # Linking always hardcodes the temporary library directory. 11300 hardcode_action=relink 11301 else 11302 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11303 hardcode_action=immediate 11304 fi 11305else 11306 # We cannot hardcode anything, or else we can only hardcode existing 11307 # directories. 11308 hardcode_action=unsupported 11309fi 11310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11311$as_echo "$hardcode_action" >&6; } 11312 11313if test relink = "$hardcode_action" || 11314 test yes = "$inherit_rpath"; then 11315 # Fast installation is not supported 11316 enable_fast_install=no 11317elif test yes = "$shlibpath_overrides_runpath" || 11318 test no = "$enable_shared"; then 11319 # Fast installation is not necessary 11320 enable_fast_install=needless 11321fi 11322 11323 11324 11325 11326 11327 11328 if test yes != "$enable_dlopen"; then 11329 enable_dlopen=unknown 11330 enable_dlopen_self=unknown 11331 enable_dlopen_self_static=unknown 11332else 11333 lt_cv_dlopen=no 11334 lt_cv_dlopen_libs= 11335 11336 case $host_os in 11337 beos*) 11338 lt_cv_dlopen=load_add_on 11339 lt_cv_dlopen_libs= 11340 lt_cv_dlopen_self=yes 11341 ;; 11342 11343 mingw* | pw32* | cegcc*) 11344 lt_cv_dlopen=LoadLibrary 11345 lt_cv_dlopen_libs= 11346 ;; 11347 11348 cygwin*) 11349 lt_cv_dlopen=dlopen 11350 lt_cv_dlopen_libs= 11351 ;; 11352 11353 darwin*) 11354 # if libdl is installed we need to link against it 11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11356$as_echo_n "checking for dlopen in -ldl... " >&6; } 11357if ${ac_cv_lib_dl_dlopen+:} false; then : 11358 $as_echo_n "(cached) " >&6 11359else 11360 ac_check_lib_save_LIBS=$LIBS 11361LIBS="-ldl $LIBS" 11362cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11363/* end confdefs.h. */ 11364 11365/* Override any GCC internal prototype to avoid an error. 11366 Use char because int might match the return type of a GCC 11367 builtin and then its argument prototype would still apply. */ 11368#ifdef __cplusplus 11369extern "C" 11370#endif 11371char dlopen (); 11372int 11373main () 11374{ 11375return dlopen (); 11376 ; 11377 return 0; 11378} 11379_ACEOF 11380if ac_fn_c_try_link "$LINENO"; then : 11381 ac_cv_lib_dl_dlopen=yes 11382else 11383 ac_cv_lib_dl_dlopen=no 11384fi 11385rm -f core conftest.err conftest.$ac_objext \ 11386 conftest$ac_exeext conftest.$ac_ext 11387LIBS=$ac_check_lib_save_LIBS 11388fi 11389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11390$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11391if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11392 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11393else 11394 11395 lt_cv_dlopen=dyld 11396 lt_cv_dlopen_libs= 11397 lt_cv_dlopen_self=yes 11398 11399fi 11400 11401 ;; 11402 11403 tpf*) 11404 # Don't try to run any link tests for TPF. We know it's impossible 11405 # because TPF is a cross-compiler, and we know how we open DSOs. 11406 lt_cv_dlopen=dlopen 11407 lt_cv_dlopen_libs= 11408 lt_cv_dlopen_self=no 11409 ;; 11410 11411 *) 11412 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11413if test "x$ac_cv_func_shl_load" = xyes; then : 11414 lt_cv_dlopen=shl_load 11415else 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11417$as_echo_n "checking for shl_load in -ldld... " >&6; } 11418if ${ac_cv_lib_dld_shl_load+:} false; then : 11419 $as_echo_n "(cached) " >&6 11420else 11421 ac_check_lib_save_LIBS=$LIBS 11422LIBS="-ldld $LIBS" 11423cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11424/* end confdefs.h. */ 11425 11426/* Override any GCC internal prototype to avoid an error. 11427 Use char because int might match the return type of a GCC 11428 builtin and then its argument prototype would still apply. */ 11429#ifdef __cplusplus 11430extern "C" 11431#endif 11432char shl_load (); 11433int 11434main () 11435{ 11436return shl_load (); 11437 ; 11438 return 0; 11439} 11440_ACEOF 11441if ac_fn_c_try_link "$LINENO"; then : 11442 ac_cv_lib_dld_shl_load=yes 11443else 11444 ac_cv_lib_dld_shl_load=no 11445fi 11446rm -f core conftest.err conftest.$ac_objext \ 11447 conftest$ac_exeext conftest.$ac_ext 11448LIBS=$ac_check_lib_save_LIBS 11449fi 11450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11451$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11452if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11453 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 11454else 11455 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11456if test "x$ac_cv_func_dlopen" = xyes; then : 11457 lt_cv_dlopen=dlopen 11458else 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11460$as_echo_n "checking for dlopen in -ldl... " >&6; } 11461if ${ac_cv_lib_dl_dlopen+:} false; then : 11462 $as_echo_n "(cached) " >&6 11463else 11464 ac_check_lib_save_LIBS=$LIBS 11465LIBS="-ldl $LIBS" 11466cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11467/* end confdefs.h. */ 11468 11469/* Override any GCC internal prototype to avoid an error. 11470 Use char because int might match the return type of a GCC 11471 builtin and then its argument prototype would still apply. */ 11472#ifdef __cplusplus 11473extern "C" 11474#endif 11475char dlopen (); 11476int 11477main () 11478{ 11479return dlopen (); 11480 ; 11481 return 0; 11482} 11483_ACEOF 11484if ac_fn_c_try_link "$LINENO"; then : 11485 ac_cv_lib_dl_dlopen=yes 11486else 11487 ac_cv_lib_dl_dlopen=no 11488fi 11489rm -f core conftest.err conftest.$ac_objext \ 11490 conftest$ac_exeext conftest.$ac_ext 11491LIBS=$ac_check_lib_save_LIBS 11492fi 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11494$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11495if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11496 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 11497else 11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11499$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11500if ${ac_cv_lib_svld_dlopen+:} false; then : 11501 $as_echo_n "(cached) " >&6 11502else 11503 ac_check_lib_save_LIBS=$LIBS 11504LIBS="-lsvld $LIBS" 11505cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11506/* end confdefs.h. */ 11507 11508/* Override any GCC internal prototype to avoid an error. 11509 Use char because int might match the return type of a GCC 11510 builtin and then its argument prototype would still apply. */ 11511#ifdef __cplusplus 11512extern "C" 11513#endif 11514char dlopen (); 11515int 11516main () 11517{ 11518return dlopen (); 11519 ; 11520 return 0; 11521} 11522_ACEOF 11523if ac_fn_c_try_link "$LINENO"; then : 11524 ac_cv_lib_svld_dlopen=yes 11525else 11526 ac_cv_lib_svld_dlopen=no 11527fi 11528rm -f core conftest.err conftest.$ac_objext \ 11529 conftest$ac_exeext conftest.$ac_ext 11530LIBS=$ac_check_lib_save_LIBS 11531fi 11532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11533$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11534if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11535 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11536else 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11538$as_echo_n "checking for dld_link in -ldld... " >&6; } 11539if ${ac_cv_lib_dld_dld_link+:} false; then : 11540 $as_echo_n "(cached) " >&6 11541else 11542 ac_check_lib_save_LIBS=$LIBS 11543LIBS="-ldld $LIBS" 11544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11545/* end confdefs.h. */ 11546 11547/* Override any GCC internal prototype to avoid an error. 11548 Use char because int might match the return type of a GCC 11549 builtin and then its argument prototype would still apply. */ 11550#ifdef __cplusplus 11551extern "C" 11552#endif 11553char dld_link (); 11554int 11555main () 11556{ 11557return dld_link (); 11558 ; 11559 return 0; 11560} 11561_ACEOF 11562if ac_fn_c_try_link "$LINENO"; then : 11563 ac_cv_lib_dld_dld_link=yes 11564else 11565 ac_cv_lib_dld_dld_link=no 11566fi 11567rm -f core conftest.err conftest.$ac_objext \ 11568 conftest$ac_exeext conftest.$ac_ext 11569LIBS=$ac_check_lib_save_LIBS 11570fi 11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11572$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11573if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11574 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11575fi 11576 11577 11578fi 11579 11580 11581fi 11582 11583 11584fi 11585 11586 11587fi 11588 11589 11590fi 11591 11592 ;; 11593 esac 11594 11595 if test no = "$lt_cv_dlopen"; then 11596 enable_dlopen=no 11597 else 11598 enable_dlopen=yes 11599 fi 11600 11601 case $lt_cv_dlopen in 11602 dlopen) 11603 save_CPPFLAGS=$CPPFLAGS 11604 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11605 11606 save_LDFLAGS=$LDFLAGS 11607 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11608 11609 save_LIBS=$LIBS 11610 LIBS="$lt_cv_dlopen_libs $LIBS" 11611 11612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11613$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11614if ${lt_cv_dlopen_self+:} false; then : 11615 $as_echo_n "(cached) " >&6 11616else 11617 if test yes = "$cross_compiling"; then : 11618 lt_cv_dlopen_self=cross 11619else 11620 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11621 lt_status=$lt_dlunknown 11622 cat > conftest.$ac_ext <<_LT_EOF 11623#line $LINENO "configure" 11624#include "confdefs.h" 11625 11626#if HAVE_DLFCN_H 11627#include <dlfcn.h> 11628#endif 11629 11630#include <stdio.h> 11631 11632#ifdef RTLD_GLOBAL 11633# define LT_DLGLOBAL RTLD_GLOBAL 11634#else 11635# ifdef DL_GLOBAL 11636# define LT_DLGLOBAL DL_GLOBAL 11637# else 11638# define LT_DLGLOBAL 0 11639# endif 11640#endif 11641 11642/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11643 find out it does not work in some platform. */ 11644#ifndef LT_DLLAZY_OR_NOW 11645# ifdef RTLD_LAZY 11646# define LT_DLLAZY_OR_NOW RTLD_LAZY 11647# else 11648# ifdef DL_LAZY 11649# define LT_DLLAZY_OR_NOW DL_LAZY 11650# else 11651# ifdef RTLD_NOW 11652# define LT_DLLAZY_OR_NOW RTLD_NOW 11653# else 11654# ifdef DL_NOW 11655# define LT_DLLAZY_OR_NOW DL_NOW 11656# else 11657# define LT_DLLAZY_OR_NOW 0 11658# endif 11659# endif 11660# endif 11661# endif 11662#endif 11663 11664/* When -fvisibility=hidden is used, assume the code has been annotated 11665 correspondingly for the symbols needed. */ 11666#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11667int fnord () __attribute__((visibility("default"))); 11668#endif 11669 11670int fnord () { return 42; } 11671int main () 11672{ 11673 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11674 int status = $lt_dlunknown; 11675 11676 if (self) 11677 { 11678 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11679 else 11680 { 11681 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11682 else puts (dlerror ()); 11683 } 11684 /* dlclose (self); */ 11685 } 11686 else 11687 puts (dlerror ()); 11688 11689 return status; 11690} 11691_LT_EOF 11692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11693 (eval $ac_link) 2>&5 11694 ac_status=$? 11695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11696 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11697 (./conftest; exit; ) >&5 2>/dev/null 11698 lt_status=$? 11699 case x$lt_status in 11700 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11701 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11702 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11703 esac 11704 else : 11705 # compilation failed 11706 lt_cv_dlopen_self=no 11707 fi 11708fi 11709rm -fr conftest* 11710 11711 11712fi 11713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11714$as_echo "$lt_cv_dlopen_self" >&6; } 11715 11716 if test yes = "$lt_cv_dlopen_self"; then 11717 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11719$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11720if ${lt_cv_dlopen_self_static+:} false; then : 11721 $as_echo_n "(cached) " >&6 11722else 11723 if test yes = "$cross_compiling"; then : 11724 lt_cv_dlopen_self_static=cross 11725else 11726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11727 lt_status=$lt_dlunknown 11728 cat > conftest.$ac_ext <<_LT_EOF 11729#line $LINENO "configure" 11730#include "confdefs.h" 11731 11732#if HAVE_DLFCN_H 11733#include <dlfcn.h> 11734#endif 11735 11736#include <stdio.h> 11737 11738#ifdef RTLD_GLOBAL 11739# define LT_DLGLOBAL RTLD_GLOBAL 11740#else 11741# ifdef DL_GLOBAL 11742# define LT_DLGLOBAL DL_GLOBAL 11743# else 11744# define LT_DLGLOBAL 0 11745# endif 11746#endif 11747 11748/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11749 find out it does not work in some platform. */ 11750#ifndef LT_DLLAZY_OR_NOW 11751# ifdef RTLD_LAZY 11752# define LT_DLLAZY_OR_NOW RTLD_LAZY 11753# else 11754# ifdef DL_LAZY 11755# define LT_DLLAZY_OR_NOW DL_LAZY 11756# else 11757# ifdef RTLD_NOW 11758# define LT_DLLAZY_OR_NOW RTLD_NOW 11759# else 11760# ifdef DL_NOW 11761# define LT_DLLAZY_OR_NOW DL_NOW 11762# else 11763# define LT_DLLAZY_OR_NOW 0 11764# endif 11765# endif 11766# endif 11767# endif 11768#endif 11769 11770/* When -fvisibility=hidden is used, assume the code has been annotated 11771 correspondingly for the symbols needed. */ 11772#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11773int fnord () __attribute__((visibility("default"))); 11774#endif 11775 11776int fnord () { return 42; } 11777int main () 11778{ 11779 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11780 int status = $lt_dlunknown; 11781 11782 if (self) 11783 { 11784 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11785 else 11786 { 11787 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11788 else puts (dlerror ()); 11789 } 11790 /* dlclose (self); */ 11791 } 11792 else 11793 puts (dlerror ()); 11794 11795 return status; 11796} 11797_LT_EOF 11798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11799 (eval $ac_link) 2>&5 11800 ac_status=$? 11801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11802 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11803 (./conftest; exit; ) >&5 2>/dev/null 11804 lt_status=$? 11805 case x$lt_status in 11806 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11807 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11808 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11809 esac 11810 else : 11811 # compilation failed 11812 lt_cv_dlopen_self_static=no 11813 fi 11814fi 11815rm -fr conftest* 11816 11817 11818fi 11819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11820$as_echo "$lt_cv_dlopen_self_static" >&6; } 11821 fi 11822 11823 CPPFLAGS=$save_CPPFLAGS 11824 LDFLAGS=$save_LDFLAGS 11825 LIBS=$save_LIBS 11826 ;; 11827 esac 11828 11829 case $lt_cv_dlopen_self in 11830 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11831 *) enable_dlopen_self=unknown ;; 11832 esac 11833 11834 case $lt_cv_dlopen_self_static in 11835 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11836 *) enable_dlopen_self_static=unknown ;; 11837 esac 11838fi 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856striplib= 11857old_striplib= 11858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11859$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11860if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11861 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11862 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11864$as_echo "yes" >&6; } 11865else 11866# FIXME - insert some real tests, host_os isn't really good enough 11867 case $host_os in 11868 darwin*) 11869 if test -n "$STRIP"; then 11870 striplib="$STRIP -x" 11871 old_striplib="$STRIP -S" 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11873$as_echo "yes" >&6; } 11874 else 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11876$as_echo "no" >&6; } 11877 fi 11878 ;; 11879 *) 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11881$as_echo "no" >&6; } 11882 ;; 11883 esac 11884fi 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 # Report what library types will actually be built 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11899$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11901$as_echo "$can_build_shared" >&6; } 11902 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11904$as_echo_n "checking whether to build shared libraries... " >&6; } 11905 test no = "$can_build_shared" && enable_shared=no 11906 11907 # On AIX, shared libraries and static libraries use the same namespace, and 11908 # are all built from PIC. 11909 case $host_os in 11910 aix3*) 11911 test yes = "$enable_shared" && enable_static=no 11912 if test -n "$RANLIB"; then 11913 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11914 postinstall_cmds='$RANLIB $lib' 11915 fi 11916 ;; 11917 11918 aix[4-9]*) 11919 if test ia64 != "$host_cpu"; then 11920 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11921 yes,aix,yes) ;; # shared object as lib.so file only 11922 yes,svr4,*) ;; # shared object as lib.so archive member only 11923 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11924 esac 11925 fi 11926 ;; 11927 esac 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11929$as_echo "$enable_shared" >&6; } 11930 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11932$as_echo_n "checking whether to build static libraries... " >&6; } 11933 # Make sure either enable_shared or enable_static is yes. 11934 test yes = "$enable_shared" || enable_static=yes 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11936$as_echo "$enable_static" >&6; } 11937 11938 11939 11940 11941fi 11942ac_ext=c 11943ac_cpp='$CPP $CPPFLAGS' 11944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11946ac_compiler_gnu=$ac_cv_c_compiler_gnu 11947 11948CC=$lt_save_CC 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 ac_config_commands="$ac_config_commands libtool" 11965 11966 11967 11968 11969# Only expand once: 11970 11971 11972 11973# Initialize X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11986$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11987if ${ac_cv_prog_cc_c99+:} false; then : 11988 $as_echo_n "(cached) " >&6 11989else 11990 ac_cv_prog_cc_c99=no 11991ac_save_CC=$CC 11992cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11993/* end confdefs.h. */ 11994#include <stdarg.h> 11995#include <stdbool.h> 11996#include <stdlib.h> 11997#include <wchar.h> 11998#include <stdio.h> 11999 12000// Check varargs macros. These examples are taken from C99 6.10.3.5. 12001#define debug(...) fprintf (stderr, __VA_ARGS__) 12002#define showlist(...) puts (#__VA_ARGS__) 12003#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 12004static void 12005test_varargs_macros (void) 12006{ 12007 int x = 1234; 12008 int y = 5678; 12009 debug ("Flag"); 12010 debug ("X = %d\n", x); 12011 showlist (The first, second, and third items.); 12012 report (x>y, "x is %d but y is %d", x, y); 12013} 12014 12015// Check long long types. 12016#define BIG64 18446744073709551615ull 12017#define BIG32 4294967295ul 12018#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 12019#if !BIG_OK 12020 your preprocessor is broken; 12021#endif 12022#if BIG_OK 12023#else 12024 your preprocessor is broken; 12025#endif 12026static long long int bignum = -9223372036854775807LL; 12027static unsigned long long int ubignum = BIG64; 12028 12029struct incomplete_array 12030{ 12031 int datasize; 12032 double data[]; 12033}; 12034 12035struct named_init { 12036 int number; 12037 const wchar_t *name; 12038 double average; 12039}; 12040 12041typedef const char *ccp; 12042 12043static inline int 12044test_restrict (ccp restrict text) 12045{ 12046 // See if C++-style comments work. 12047 // Iterate through items via the restricted pointer. 12048 // Also check for declarations in for loops. 12049 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 12050 continue; 12051 return 0; 12052} 12053 12054// Check varargs and va_copy. 12055static void 12056test_varargs (const char *format, ...) 12057{ 12058 va_list args; 12059 va_start (args, format); 12060 va_list args_copy; 12061 va_copy (args_copy, args); 12062 12063 const char *str; 12064 int number; 12065 float fnumber; 12066 12067 while (*format) 12068 { 12069 switch (*format++) 12070 { 12071 case 's': // string 12072 str = va_arg (args_copy, const char *); 12073 break; 12074 case 'd': // int 12075 number = va_arg (args_copy, int); 12076 break; 12077 case 'f': // float 12078 fnumber = va_arg (args_copy, double); 12079 break; 12080 default: 12081 break; 12082 } 12083 } 12084 va_end (args_copy); 12085 va_end (args); 12086} 12087 12088int 12089main () 12090{ 12091 12092 // Check bool. 12093 _Bool success = false; 12094 12095 // Check restrict. 12096 if (test_restrict ("String literal") == 0) 12097 success = true; 12098 char *restrict newvar = "Another string"; 12099 12100 // Check varargs. 12101 test_varargs ("s, d' f .", "string", 65, 34.234); 12102 test_varargs_macros (); 12103 12104 // Check flexible array members. 12105 struct incomplete_array *ia = 12106 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 12107 ia->datasize = 10; 12108 for (int i = 0; i < ia->datasize; ++i) 12109 ia->data[i] = i * 1.234; 12110 12111 // Check named initializers. 12112 struct named_init ni = { 12113 .number = 34, 12114 .name = L"Test wide string", 12115 .average = 543.34343, 12116 }; 12117 12118 ni.number = 58; 12119 12120 int dynamic_array[ni.number]; 12121 dynamic_array[ni.number - 1] = 543; 12122 12123 // work around unused variable warnings 12124 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 12125 || dynamic_array[ni.number - 1] != 543); 12126 12127 ; 12128 return 0; 12129} 12130_ACEOF 12131for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 12132do 12133 CC="$ac_save_CC $ac_arg" 12134 if ac_fn_c_try_compile "$LINENO"; then : 12135 ac_cv_prog_cc_c99=$ac_arg 12136fi 12137rm -f core conftest.err conftest.$ac_objext 12138 test "x$ac_cv_prog_cc_c99" != "xno" && break 12139done 12140rm -f conftest.$ac_ext 12141CC=$ac_save_CC 12142 12143fi 12144# AC_CACHE_VAL 12145case "x$ac_cv_prog_cc_c99" in 12146 x) 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 12148$as_echo "none needed" >&6; } ;; 12149 xno) 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 12151$as_echo "unsupported" >&6; } ;; 12152 *) 12153 CC="$CC $ac_cv_prog_cc_c99" 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 12155$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 12156esac 12157if test "x$ac_cv_prog_cc_c99" != xno; then : 12158 12159fi 12160 12161 12162 12163 12164 12165 12166ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 12167if test "x$ac_cv_have_decl___clang__" = xyes; then : 12168 CLANGCC="yes" 12169else 12170 CLANGCC="no" 12171fi 12172 12173ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 12174if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 12175 INTELCC="yes" 12176else 12177 INTELCC="no" 12178fi 12179 12180ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 12181if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 12182 SUNCC="yes" 12183else 12184 SUNCC="no" 12185fi 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 12196 if test -n "$ac_tool_prefix"; then 12197 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 12198set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 12199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12200$as_echo_n "checking for $ac_word... " >&6; } 12201if ${ac_cv_path_PKG_CONFIG+:} false; then : 12202 $as_echo_n "(cached) " >&6 12203else 12204 case $PKG_CONFIG in 12205 [\\/]* | ?:[\\/]*) 12206 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12207 ;; 12208 *) 12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12210for as_dir in $PATH 12211do 12212 IFS=$as_save_IFS 12213 test -z "$as_dir" && as_dir=. 12214 for ac_exec_ext in '' $ac_executable_extensions; do 12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12216 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12218 break 2 12219 fi 12220done 12221 done 12222IFS=$as_save_IFS 12223 12224 ;; 12225esac 12226fi 12227PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12228if test -n "$PKG_CONFIG"; then 12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12230$as_echo "$PKG_CONFIG" >&6; } 12231else 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12233$as_echo "no" >&6; } 12234fi 12235 12236 12237fi 12238if test -z "$ac_cv_path_PKG_CONFIG"; then 12239 ac_pt_PKG_CONFIG=$PKG_CONFIG 12240 # Extract the first word of "pkg-config", so it can be a program name with args. 12241set dummy pkg-config; ac_word=$2 12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12243$as_echo_n "checking for $ac_word... " >&6; } 12244if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 12245 $as_echo_n "(cached) " >&6 12246else 12247 case $ac_pt_PKG_CONFIG in 12248 [\\/]* | ?:[\\/]*) 12249 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 12250 ;; 12251 *) 12252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12253for as_dir in $PATH 12254do 12255 IFS=$as_save_IFS 12256 test -z "$as_dir" && as_dir=. 12257 for ac_exec_ext in '' $ac_executable_extensions; do 12258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12259 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12261 break 2 12262 fi 12263done 12264 done 12265IFS=$as_save_IFS 12266 12267 ;; 12268esac 12269fi 12270ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 12271if test -n "$ac_pt_PKG_CONFIG"; then 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 12273$as_echo "$ac_pt_PKG_CONFIG" >&6; } 12274else 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12276$as_echo "no" >&6; } 12277fi 12278 12279 if test "x$ac_pt_PKG_CONFIG" = x; then 12280 PKG_CONFIG="" 12281 else 12282 case $cross_compiling:$ac_tool_warned in 12283yes:) 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12285$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12286ac_tool_warned=yes ;; 12287esac 12288 PKG_CONFIG=$ac_pt_PKG_CONFIG 12289 fi 12290else 12291 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 12292fi 12293 12294fi 12295if test -n "$PKG_CONFIG"; then 12296 _pkg_min_version=0.9.0 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 12298$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 12299 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12301$as_echo "yes" >&6; } 12302 else 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12304$as_echo "no" >&6; } 12305 PKG_CONFIG="" 12306 fi 12307fi 12308 12309 12310 12311 12312 12313# Check whether --enable-selective-werror was given. 12314if test "${enable_selective_werror+set}" = set; then : 12315 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 12316else 12317 SELECTIVE_WERROR=yes 12318fi 12319 12320 12321 12322 12323 12324# -v is too short to test reliably with XORG_TESTSET_CFLAG 12325if test "x$SUNCC" = "xyes"; then 12326 BASE_CFLAGS="-v" 12327else 12328 BASE_CFLAGS="" 12329fi 12330 12331# This chunk of warnings were those that existed in the legacy CWARNFLAGS 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345xorg_testset_save_CFLAGS="$CFLAGS" 12346 12347if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12350$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12351if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12352 $as_echo_n "(cached) " >&6 12353else 12354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12355/* end confdefs.h. */ 12356int i; 12357_ACEOF 12358if ac_fn_c_try_compile "$LINENO"; then : 12359 xorg_cv_cc_flag_unknown_warning_option=yes 12360else 12361 xorg_cv_cc_flag_unknown_warning_option=no 12362fi 12363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12364fi 12365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12366$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12367 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12368 CFLAGS="$xorg_testset_save_CFLAGS" 12369fi 12370 12371if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12372 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12373 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12374 fi 12375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12377$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12378if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12379 $as_echo_n "(cached) " >&6 12380else 12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12382/* end confdefs.h. */ 12383int i; 12384_ACEOF 12385if ac_fn_c_try_compile "$LINENO"; then : 12386 xorg_cv_cc_flag_unused_command_line_argument=yes 12387else 12388 xorg_cv_cc_flag_unused_command_line_argument=no 12389fi 12390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12391fi 12392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12393$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12394 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12395 CFLAGS="$xorg_testset_save_CFLAGS" 12396fi 12397 12398found="no" 12399 12400 if test $found = "no" ; then 12401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12403 fi 12404 12405 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12407 fi 12408 12409 CFLAGS="$CFLAGS -Wall" 12410 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 12412$as_echo_n "checking if $CC supports -Wall... " >&6; } 12413 cacheid=xorg_cv_cc_flag__Wall 12414 if eval \${$cacheid+:} false; then : 12415 $as_echo_n "(cached) " >&6 12416else 12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12418/* end confdefs.h. */ 12419int i; 12420int 12421main () 12422{ 12423 12424 ; 12425 return 0; 12426} 12427_ACEOF 12428if ac_fn_c_try_link "$LINENO"; then : 12429 eval $cacheid=yes 12430else 12431 eval $cacheid=no 12432fi 12433rm -f core conftest.err conftest.$ac_objext \ 12434 conftest$ac_exeext conftest.$ac_ext 12435fi 12436 12437 12438 CFLAGS="$xorg_testset_save_CFLAGS" 12439 12440 eval supported=\$$cacheid 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12442$as_echo "$supported" >&6; } 12443 if test "$supported" = "yes" ; then 12444 BASE_CFLAGS="$BASE_CFLAGS -Wall" 12445 found="yes" 12446 fi 12447 fi 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463xorg_testset_save_CFLAGS="$CFLAGS" 12464 12465if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12468$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12469if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12470 $as_echo_n "(cached) " >&6 12471else 12472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12473/* end confdefs.h. */ 12474int i; 12475_ACEOF 12476if ac_fn_c_try_compile "$LINENO"; then : 12477 xorg_cv_cc_flag_unknown_warning_option=yes 12478else 12479 xorg_cv_cc_flag_unknown_warning_option=no 12480fi 12481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12482fi 12483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12484$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12486 CFLAGS="$xorg_testset_save_CFLAGS" 12487fi 12488 12489if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12491 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12492 fi 12493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12495$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12496if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12497 $as_echo_n "(cached) " >&6 12498else 12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12500/* end confdefs.h. */ 12501int i; 12502_ACEOF 12503if ac_fn_c_try_compile "$LINENO"; then : 12504 xorg_cv_cc_flag_unused_command_line_argument=yes 12505else 12506 xorg_cv_cc_flag_unused_command_line_argument=no 12507fi 12508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12509fi 12510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12511$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12513 CFLAGS="$xorg_testset_save_CFLAGS" 12514fi 12515 12516found="no" 12517 12518 if test $found = "no" ; then 12519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12521 fi 12522 12523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12525 fi 12526 12527 CFLAGS="$CFLAGS -Wpointer-arith" 12528 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 12530$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 12531 cacheid=xorg_cv_cc_flag__Wpointer_arith 12532 if eval \${$cacheid+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12536/* end confdefs.h. */ 12537int i; 12538int 12539main () 12540{ 12541 12542 ; 12543 return 0; 12544} 12545_ACEOF 12546if ac_fn_c_try_link "$LINENO"; then : 12547 eval $cacheid=yes 12548else 12549 eval $cacheid=no 12550fi 12551rm -f core conftest.err conftest.$ac_objext \ 12552 conftest$ac_exeext conftest.$ac_ext 12553fi 12554 12555 12556 CFLAGS="$xorg_testset_save_CFLAGS" 12557 12558 eval supported=\$$cacheid 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12560$as_echo "$supported" >&6; } 12561 if test "$supported" = "yes" ; then 12562 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 12563 found="yes" 12564 fi 12565 fi 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581xorg_testset_save_CFLAGS="$CFLAGS" 12582 12583if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12586$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12587if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12588 $as_echo_n "(cached) " >&6 12589else 12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12591/* end confdefs.h. */ 12592int i; 12593_ACEOF 12594if ac_fn_c_try_compile "$LINENO"; then : 12595 xorg_cv_cc_flag_unknown_warning_option=yes 12596else 12597 xorg_cv_cc_flag_unknown_warning_option=no 12598fi 12599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12600fi 12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12602$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12604 CFLAGS="$xorg_testset_save_CFLAGS" 12605fi 12606 12607if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12609 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12610 fi 12611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12613$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12614if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12615 $as_echo_n "(cached) " >&6 12616else 12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12618/* end confdefs.h. */ 12619int i; 12620_ACEOF 12621if ac_fn_c_try_compile "$LINENO"; then : 12622 xorg_cv_cc_flag_unused_command_line_argument=yes 12623else 12624 xorg_cv_cc_flag_unused_command_line_argument=no 12625fi 12626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12627fi 12628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12629$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12631 CFLAGS="$xorg_testset_save_CFLAGS" 12632fi 12633 12634found="no" 12635 12636 if test $found = "no" ; then 12637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12639 fi 12640 12641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12643 fi 12644 12645 CFLAGS="$CFLAGS -Wmissing-declarations" 12646 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 12648$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 12649 cacheid=xorg_cv_cc_flag__Wmissing_declarations 12650 if eval \${$cacheid+:} false; then : 12651 $as_echo_n "(cached) " >&6 12652else 12653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12654/* end confdefs.h. */ 12655int i; 12656int 12657main () 12658{ 12659 12660 ; 12661 return 0; 12662} 12663_ACEOF 12664if ac_fn_c_try_link "$LINENO"; then : 12665 eval $cacheid=yes 12666else 12667 eval $cacheid=no 12668fi 12669rm -f core conftest.err conftest.$ac_objext \ 12670 conftest$ac_exeext conftest.$ac_ext 12671fi 12672 12673 12674 CFLAGS="$xorg_testset_save_CFLAGS" 12675 12676 eval supported=\$$cacheid 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12678$as_echo "$supported" >&6; } 12679 if test "$supported" = "yes" ; then 12680 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 12681 found="yes" 12682 fi 12683 fi 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699xorg_testset_save_CFLAGS="$CFLAGS" 12700 12701if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12704$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12705if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12706 $as_echo_n "(cached) " >&6 12707else 12708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12709/* end confdefs.h. */ 12710int i; 12711_ACEOF 12712if ac_fn_c_try_compile "$LINENO"; then : 12713 xorg_cv_cc_flag_unknown_warning_option=yes 12714else 12715 xorg_cv_cc_flag_unknown_warning_option=no 12716fi 12717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12718fi 12719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12720$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12722 CFLAGS="$xorg_testset_save_CFLAGS" 12723fi 12724 12725if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12727 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12728 fi 12729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12731$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12732if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12733 $as_echo_n "(cached) " >&6 12734else 12735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12736/* end confdefs.h. */ 12737int i; 12738_ACEOF 12739if ac_fn_c_try_compile "$LINENO"; then : 12740 xorg_cv_cc_flag_unused_command_line_argument=yes 12741else 12742 xorg_cv_cc_flag_unused_command_line_argument=no 12743fi 12744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12745fi 12746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12747$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12748 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12749 CFLAGS="$xorg_testset_save_CFLAGS" 12750fi 12751 12752found="no" 12753 12754 if test $found = "no" ; then 12755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12757 fi 12758 12759 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12761 fi 12762 12763 CFLAGS="$CFLAGS -Wformat=2" 12764 12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 12766$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 12767 cacheid=xorg_cv_cc_flag__Wformat_2 12768 if eval \${$cacheid+:} false; then : 12769 $as_echo_n "(cached) " >&6 12770else 12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12772/* end confdefs.h. */ 12773int i; 12774int 12775main () 12776{ 12777 12778 ; 12779 return 0; 12780} 12781_ACEOF 12782if ac_fn_c_try_link "$LINENO"; then : 12783 eval $cacheid=yes 12784else 12785 eval $cacheid=no 12786fi 12787rm -f core conftest.err conftest.$ac_objext \ 12788 conftest$ac_exeext conftest.$ac_ext 12789fi 12790 12791 12792 CFLAGS="$xorg_testset_save_CFLAGS" 12793 12794 eval supported=\$$cacheid 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12796$as_echo "$supported" >&6; } 12797 if test "$supported" = "yes" ; then 12798 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 12799 found="yes" 12800 fi 12801 fi 12802 12803 if test $found = "no" ; then 12804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12805 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12806 fi 12807 12808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12810 fi 12811 12812 CFLAGS="$CFLAGS -Wformat" 12813 12814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 12815$as_echo_n "checking if $CC supports -Wformat... " >&6; } 12816 cacheid=xorg_cv_cc_flag__Wformat 12817 if eval \${$cacheid+:} false; then : 12818 $as_echo_n "(cached) " >&6 12819else 12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12821/* end confdefs.h. */ 12822int i; 12823int 12824main () 12825{ 12826 12827 ; 12828 return 0; 12829} 12830_ACEOF 12831if ac_fn_c_try_link "$LINENO"; then : 12832 eval $cacheid=yes 12833else 12834 eval $cacheid=no 12835fi 12836rm -f core conftest.err conftest.$ac_objext \ 12837 conftest$ac_exeext conftest.$ac_ext 12838fi 12839 12840 12841 CFLAGS="$xorg_testset_save_CFLAGS" 12842 12843 eval supported=\$$cacheid 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12845$as_echo "$supported" >&6; } 12846 if test "$supported" = "yes" ; then 12847 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 12848 found="yes" 12849 fi 12850 fi 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868xorg_testset_save_CFLAGS="$CFLAGS" 12869 12870if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12871 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12873$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12874if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12875 $as_echo_n "(cached) " >&6 12876else 12877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879int i; 12880_ACEOF 12881if ac_fn_c_try_compile "$LINENO"; then : 12882 xorg_cv_cc_flag_unknown_warning_option=yes 12883else 12884 xorg_cv_cc_flag_unknown_warning_option=no 12885fi 12886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12887fi 12888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 12889$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 12890 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 12891 CFLAGS="$xorg_testset_save_CFLAGS" 12892fi 12893 12894if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 12895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12896 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12897 fi 12898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 12900$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 12901if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 12902 $as_echo_n "(cached) " >&6 12903else 12904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12905/* end confdefs.h. */ 12906int i; 12907_ACEOF 12908if ac_fn_c_try_compile "$LINENO"; then : 12909 xorg_cv_cc_flag_unused_command_line_argument=yes 12910else 12911 xorg_cv_cc_flag_unused_command_line_argument=no 12912fi 12913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12914fi 12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 12916$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 12917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 12918 CFLAGS="$xorg_testset_save_CFLAGS" 12919fi 12920 12921found="no" 12922 12923 if test $found = "no" ; then 12924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 12925 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12926 fi 12927 12928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 12929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 12930 fi 12931 12932 CFLAGS="$CFLAGS -Wstrict-prototypes" 12933 12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 12935$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 12936 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 12937 if eval \${$cacheid+:} false; then : 12938 $as_echo_n "(cached) " >&6 12939else 12940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12941/* end confdefs.h. */ 12942int i; 12943int 12944main () 12945{ 12946 12947 ; 12948 return 0; 12949} 12950_ACEOF 12951if ac_fn_c_try_link "$LINENO"; then : 12952 eval $cacheid=yes 12953else 12954 eval $cacheid=no 12955fi 12956rm -f core conftest.err conftest.$ac_objext \ 12957 conftest$ac_exeext conftest.$ac_ext 12958fi 12959 12960 12961 CFLAGS="$xorg_testset_save_CFLAGS" 12962 12963 eval supported=\$$cacheid 12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 12965$as_echo "$supported" >&6; } 12966 if test "$supported" = "yes" ; then 12967 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 12968 found="yes" 12969 fi 12970 fi 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986xorg_testset_save_CFLAGS="$CFLAGS" 12987 12988if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 12989 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 12991$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 12992if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 12993 $as_echo_n "(cached) " >&6 12994else 12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12996/* end confdefs.h. */ 12997int i; 12998_ACEOF 12999if ac_fn_c_try_compile "$LINENO"; then : 13000 xorg_cv_cc_flag_unknown_warning_option=yes 13001else 13002 xorg_cv_cc_flag_unknown_warning_option=no 13003fi 13004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13005fi 13006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13007$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13008 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13009 CFLAGS="$xorg_testset_save_CFLAGS" 13010fi 13011 13012if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13014 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13015 fi 13016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13018$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13019if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13020 $as_echo_n "(cached) " >&6 13021else 13022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13023/* end confdefs.h. */ 13024int i; 13025_ACEOF 13026if ac_fn_c_try_compile "$LINENO"; then : 13027 xorg_cv_cc_flag_unused_command_line_argument=yes 13028else 13029 xorg_cv_cc_flag_unused_command_line_argument=no 13030fi 13031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13032fi 13033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13034$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13036 CFLAGS="$xorg_testset_save_CFLAGS" 13037fi 13038 13039found="no" 13040 13041 if test $found = "no" ; then 13042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13043 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13044 fi 13045 13046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13048 fi 13049 13050 CFLAGS="$CFLAGS -Wmissing-prototypes" 13051 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 13053$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 13054 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 13055 if eval \${$cacheid+:} false; then : 13056 $as_echo_n "(cached) " >&6 13057else 13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13059/* end confdefs.h. */ 13060int i; 13061int 13062main () 13063{ 13064 13065 ; 13066 return 0; 13067} 13068_ACEOF 13069if ac_fn_c_try_link "$LINENO"; then : 13070 eval $cacheid=yes 13071else 13072 eval $cacheid=no 13073fi 13074rm -f core conftest.err conftest.$ac_objext \ 13075 conftest$ac_exeext conftest.$ac_ext 13076fi 13077 13078 13079 CFLAGS="$xorg_testset_save_CFLAGS" 13080 13081 eval supported=\$$cacheid 13082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13083$as_echo "$supported" >&6; } 13084 if test "$supported" = "yes" ; then 13085 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 13086 found="yes" 13087 fi 13088 fi 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104xorg_testset_save_CFLAGS="$CFLAGS" 13105 13106if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13107 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13109$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13110if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13111 $as_echo_n "(cached) " >&6 13112else 13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13114/* end confdefs.h. */ 13115int i; 13116_ACEOF 13117if ac_fn_c_try_compile "$LINENO"; then : 13118 xorg_cv_cc_flag_unknown_warning_option=yes 13119else 13120 xorg_cv_cc_flag_unknown_warning_option=no 13121fi 13122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13123fi 13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13125$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13126 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13127 CFLAGS="$xorg_testset_save_CFLAGS" 13128fi 13129 13130if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13132 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13133 fi 13134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13136$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13137if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13138 $as_echo_n "(cached) " >&6 13139else 13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13141/* end confdefs.h. */ 13142int i; 13143_ACEOF 13144if ac_fn_c_try_compile "$LINENO"; then : 13145 xorg_cv_cc_flag_unused_command_line_argument=yes 13146else 13147 xorg_cv_cc_flag_unused_command_line_argument=no 13148fi 13149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13150fi 13151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13152$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13154 CFLAGS="$xorg_testset_save_CFLAGS" 13155fi 13156 13157found="no" 13158 13159 if test $found = "no" ; then 13160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13161 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13162 fi 13163 13164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13166 fi 13167 13168 CFLAGS="$CFLAGS -Wnested-externs" 13169 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 13171$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 13172 cacheid=xorg_cv_cc_flag__Wnested_externs 13173 if eval \${$cacheid+:} false; then : 13174 $as_echo_n "(cached) " >&6 13175else 13176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13177/* end confdefs.h. */ 13178int i; 13179int 13180main () 13181{ 13182 13183 ; 13184 return 0; 13185} 13186_ACEOF 13187if ac_fn_c_try_link "$LINENO"; then : 13188 eval $cacheid=yes 13189else 13190 eval $cacheid=no 13191fi 13192rm -f core conftest.err conftest.$ac_objext \ 13193 conftest$ac_exeext conftest.$ac_ext 13194fi 13195 13196 13197 CFLAGS="$xorg_testset_save_CFLAGS" 13198 13199 eval supported=\$$cacheid 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13201$as_echo "$supported" >&6; } 13202 if test "$supported" = "yes" ; then 13203 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 13204 found="yes" 13205 fi 13206 fi 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222xorg_testset_save_CFLAGS="$CFLAGS" 13223 13224if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13225 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13227$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13228if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13229 $as_echo_n "(cached) " >&6 13230else 13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13232/* end confdefs.h. */ 13233int i; 13234_ACEOF 13235if ac_fn_c_try_compile "$LINENO"; then : 13236 xorg_cv_cc_flag_unknown_warning_option=yes 13237else 13238 xorg_cv_cc_flag_unknown_warning_option=no 13239fi 13240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13241fi 13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13243$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13244 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13245 CFLAGS="$xorg_testset_save_CFLAGS" 13246fi 13247 13248if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13250 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13251 fi 13252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13254$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13255if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13256 $as_echo_n "(cached) " >&6 13257else 13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13259/* end confdefs.h. */ 13260int i; 13261_ACEOF 13262if ac_fn_c_try_compile "$LINENO"; then : 13263 xorg_cv_cc_flag_unused_command_line_argument=yes 13264else 13265 xorg_cv_cc_flag_unused_command_line_argument=no 13266fi 13267rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13268fi 13269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13270$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13272 CFLAGS="$xorg_testset_save_CFLAGS" 13273fi 13274 13275found="no" 13276 13277 if test $found = "no" ; then 13278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13279 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13280 fi 13281 13282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13284 fi 13285 13286 CFLAGS="$CFLAGS -Wbad-function-cast" 13287 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 13289$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 13290 cacheid=xorg_cv_cc_flag__Wbad_function_cast 13291 if eval \${$cacheid+:} false; then : 13292 $as_echo_n "(cached) " >&6 13293else 13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13295/* end confdefs.h. */ 13296int i; 13297int 13298main () 13299{ 13300 13301 ; 13302 return 0; 13303} 13304_ACEOF 13305if ac_fn_c_try_link "$LINENO"; then : 13306 eval $cacheid=yes 13307else 13308 eval $cacheid=no 13309fi 13310rm -f core conftest.err conftest.$ac_objext \ 13311 conftest$ac_exeext conftest.$ac_ext 13312fi 13313 13314 13315 CFLAGS="$xorg_testset_save_CFLAGS" 13316 13317 eval supported=\$$cacheid 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13319$as_echo "$supported" >&6; } 13320 if test "$supported" = "yes" ; then 13321 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 13322 found="yes" 13323 fi 13324 fi 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340xorg_testset_save_CFLAGS="$CFLAGS" 13341 13342if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13343 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13345$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13346if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13347 $as_echo_n "(cached) " >&6 13348else 13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13350/* end confdefs.h. */ 13351int i; 13352_ACEOF 13353if ac_fn_c_try_compile "$LINENO"; then : 13354 xorg_cv_cc_flag_unknown_warning_option=yes 13355else 13356 xorg_cv_cc_flag_unknown_warning_option=no 13357fi 13358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13359fi 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13361$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13362 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13363 CFLAGS="$xorg_testset_save_CFLAGS" 13364fi 13365 13366if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13368 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13369 fi 13370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13372$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13373if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13374 $as_echo_n "(cached) " >&6 13375else 13376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13377/* end confdefs.h. */ 13378int i; 13379_ACEOF 13380if ac_fn_c_try_compile "$LINENO"; then : 13381 xorg_cv_cc_flag_unused_command_line_argument=yes 13382else 13383 xorg_cv_cc_flag_unused_command_line_argument=no 13384fi 13385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13386fi 13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13388$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13389 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13390 CFLAGS="$xorg_testset_save_CFLAGS" 13391fi 13392 13393found="no" 13394 13395 if test $found = "no" ; then 13396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13397 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13398 fi 13399 13400 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13401 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13402 fi 13403 13404 CFLAGS="$CFLAGS -Wold-style-definition" 13405 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 13407$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 13408 cacheid=xorg_cv_cc_flag__Wold_style_definition 13409 if eval \${$cacheid+:} false; then : 13410 $as_echo_n "(cached) " >&6 13411else 13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13413/* end confdefs.h. */ 13414int i; 13415int 13416main () 13417{ 13418 13419 ; 13420 return 0; 13421} 13422_ACEOF 13423if ac_fn_c_try_link "$LINENO"; then : 13424 eval $cacheid=yes 13425else 13426 eval $cacheid=no 13427fi 13428rm -f core conftest.err conftest.$ac_objext \ 13429 conftest$ac_exeext conftest.$ac_ext 13430fi 13431 13432 13433 CFLAGS="$xorg_testset_save_CFLAGS" 13434 13435 eval supported=\$$cacheid 13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13437$as_echo "$supported" >&6; } 13438 if test "$supported" = "yes" ; then 13439 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 13440 found="yes" 13441 fi 13442 fi 13443 13444 if test $found = "no" ; then 13445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13446 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13447 fi 13448 13449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13451 fi 13452 13453 CFLAGS="$CFLAGS -fd" 13454 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 13456$as_echo_n "checking if $CC supports -fd... " >&6; } 13457 cacheid=xorg_cv_cc_flag__fd 13458 if eval \${$cacheid+:} false; then : 13459 $as_echo_n "(cached) " >&6 13460else 13461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13462/* end confdefs.h. */ 13463int i; 13464int 13465main () 13466{ 13467 13468 ; 13469 return 0; 13470} 13471_ACEOF 13472if ac_fn_c_try_link "$LINENO"; then : 13473 eval $cacheid=yes 13474else 13475 eval $cacheid=no 13476fi 13477rm -f core conftest.err conftest.$ac_objext \ 13478 conftest$ac_exeext conftest.$ac_ext 13479fi 13480 13481 13482 CFLAGS="$xorg_testset_save_CFLAGS" 13483 13484 eval supported=\$$cacheid 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13486$as_echo "$supported" >&6; } 13487 if test "$supported" = "yes" ; then 13488 BASE_CFLAGS="$BASE_CFLAGS -fd" 13489 found="yes" 13490 fi 13491 fi 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507xorg_testset_save_CFLAGS="$CFLAGS" 13508 13509if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13510 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13512$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13513if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13514 $as_echo_n "(cached) " >&6 13515else 13516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13517/* end confdefs.h. */ 13518int i; 13519_ACEOF 13520if ac_fn_c_try_compile "$LINENO"; then : 13521 xorg_cv_cc_flag_unknown_warning_option=yes 13522else 13523 xorg_cv_cc_flag_unknown_warning_option=no 13524fi 13525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13526fi 13527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13528$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13529 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13530 CFLAGS="$xorg_testset_save_CFLAGS" 13531fi 13532 13533if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13535 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13536 fi 13537 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13539$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13540if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13541 $as_echo_n "(cached) " >&6 13542else 13543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13544/* end confdefs.h. */ 13545int i; 13546_ACEOF 13547if ac_fn_c_try_compile "$LINENO"; then : 13548 xorg_cv_cc_flag_unused_command_line_argument=yes 13549else 13550 xorg_cv_cc_flag_unused_command_line_argument=no 13551fi 13552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13553fi 13554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13555$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13557 CFLAGS="$xorg_testset_save_CFLAGS" 13558fi 13559 13560found="no" 13561 13562 if test $found = "no" ; then 13563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13564 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13565 fi 13566 13567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13569 fi 13570 13571 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 13572 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 13574$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 13575 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 13576 if eval \${$cacheid+:} false; then : 13577 $as_echo_n "(cached) " >&6 13578else 13579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13580/* end confdefs.h. */ 13581int i; 13582int 13583main () 13584{ 13585 13586 ; 13587 return 0; 13588} 13589_ACEOF 13590if ac_fn_c_try_link "$LINENO"; then : 13591 eval $cacheid=yes 13592else 13593 eval $cacheid=no 13594fi 13595rm -f core conftest.err conftest.$ac_objext \ 13596 conftest$ac_exeext conftest.$ac_ext 13597fi 13598 13599 13600 CFLAGS="$xorg_testset_save_CFLAGS" 13601 13602 eval supported=\$$cacheid 13603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13604$as_echo "$supported" >&6; } 13605 if test "$supported" = "yes" ; then 13606 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 13607 found="yes" 13608 fi 13609 fi 13610 13611 13612 13613 13614 13615# This chunk adds additional warnings that could catch undesired effects. 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629xorg_testset_save_CFLAGS="$CFLAGS" 13630 13631if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13632 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13634$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13635if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13636 $as_echo_n "(cached) " >&6 13637else 13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13639/* end confdefs.h. */ 13640int i; 13641_ACEOF 13642if ac_fn_c_try_compile "$LINENO"; then : 13643 xorg_cv_cc_flag_unknown_warning_option=yes 13644else 13645 xorg_cv_cc_flag_unknown_warning_option=no 13646fi 13647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13648fi 13649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13650$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13651 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13652 CFLAGS="$xorg_testset_save_CFLAGS" 13653fi 13654 13655if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13657 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13658 fi 13659 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13661$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13662if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13663 $as_echo_n "(cached) " >&6 13664else 13665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13666/* end confdefs.h. */ 13667int i; 13668_ACEOF 13669if ac_fn_c_try_compile "$LINENO"; then : 13670 xorg_cv_cc_flag_unused_command_line_argument=yes 13671else 13672 xorg_cv_cc_flag_unused_command_line_argument=no 13673fi 13674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13675fi 13676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13677$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13679 CFLAGS="$xorg_testset_save_CFLAGS" 13680fi 13681 13682found="no" 13683 13684 if test $found = "no" ; then 13685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13687 fi 13688 13689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13691 fi 13692 13693 CFLAGS="$CFLAGS -Wunused" 13694 13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 13696$as_echo_n "checking if $CC supports -Wunused... " >&6; } 13697 cacheid=xorg_cv_cc_flag__Wunused 13698 if eval \${$cacheid+:} false; then : 13699 $as_echo_n "(cached) " >&6 13700else 13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13702/* end confdefs.h. */ 13703int i; 13704int 13705main () 13706{ 13707 13708 ; 13709 return 0; 13710} 13711_ACEOF 13712if ac_fn_c_try_link "$LINENO"; then : 13713 eval $cacheid=yes 13714else 13715 eval $cacheid=no 13716fi 13717rm -f core conftest.err conftest.$ac_objext \ 13718 conftest$ac_exeext conftest.$ac_ext 13719fi 13720 13721 13722 CFLAGS="$xorg_testset_save_CFLAGS" 13723 13724 eval supported=\$$cacheid 13725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13726$as_echo "$supported" >&6; } 13727 if test "$supported" = "yes" ; then 13728 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 13729 found="yes" 13730 fi 13731 fi 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747xorg_testset_save_CFLAGS="$CFLAGS" 13748 13749if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13750 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13752$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13753if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13754 $as_echo_n "(cached) " >&6 13755else 13756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13757/* end confdefs.h. */ 13758int i; 13759_ACEOF 13760if ac_fn_c_try_compile "$LINENO"; then : 13761 xorg_cv_cc_flag_unknown_warning_option=yes 13762else 13763 xorg_cv_cc_flag_unknown_warning_option=no 13764fi 13765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13766fi 13767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13768$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13769 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13770 CFLAGS="$xorg_testset_save_CFLAGS" 13771fi 13772 13773if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13776 fi 13777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13779$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13780if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13781 $as_echo_n "(cached) " >&6 13782else 13783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13784/* end confdefs.h. */ 13785int i; 13786_ACEOF 13787if ac_fn_c_try_compile "$LINENO"; then : 13788 xorg_cv_cc_flag_unused_command_line_argument=yes 13789else 13790 xorg_cv_cc_flag_unused_command_line_argument=no 13791fi 13792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13793fi 13794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13795$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13797 CFLAGS="$xorg_testset_save_CFLAGS" 13798fi 13799 13800found="no" 13801 13802 if test $found = "no" ; then 13803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13805 fi 13806 13807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13809 fi 13810 13811 CFLAGS="$CFLAGS -Wuninitialized" 13812 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 13814$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 13815 cacheid=xorg_cv_cc_flag__Wuninitialized 13816 if eval \${$cacheid+:} false; then : 13817 $as_echo_n "(cached) " >&6 13818else 13819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13820/* end confdefs.h. */ 13821int i; 13822int 13823main () 13824{ 13825 13826 ; 13827 return 0; 13828} 13829_ACEOF 13830if ac_fn_c_try_link "$LINENO"; then : 13831 eval $cacheid=yes 13832else 13833 eval $cacheid=no 13834fi 13835rm -f core conftest.err conftest.$ac_objext \ 13836 conftest$ac_exeext conftest.$ac_ext 13837fi 13838 13839 13840 CFLAGS="$xorg_testset_save_CFLAGS" 13841 13842 eval supported=\$$cacheid 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13844$as_echo "$supported" >&6; } 13845 if test "$supported" = "yes" ; then 13846 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 13847 found="yes" 13848 fi 13849 fi 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865xorg_testset_save_CFLAGS="$CFLAGS" 13866 13867if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13868 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13870$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13871if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13872 $as_echo_n "(cached) " >&6 13873else 13874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13875/* end confdefs.h. */ 13876int i; 13877_ACEOF 13878if ac_fn_c_try_compile "$LINENO"; then : 13879 xorg_cv_cc_flag_unknown_warning_option=yes 13880else 13881 xorg_cv_cc_flag_unknown_warning_option=no 13882fi 13883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13884fi 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 13886$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 13887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 13888 CFLAGS="$xorg_testset_save_CFLAGS" 13889fi 13890 13891if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 13892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13894 fi 13895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 13897$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 13898if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 13899 $as_echo_n "(cached) " >&6 13900else 13901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13902/* end confdefs.h. */ 13903int i; 13904_ACEOF 13905if ac_fn_c_try_compile "$LINENO"; then : 13906 xorg_cv_cc_flag_unused_command_line_argument=yes 13907else 13908 xorg_cv_cc_flag_unused_command_line_argument=no 13909fi 13910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13911fi 13912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 13913$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 13914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 13915 CFLAGS="$xorg_testset_save_CFLAGS" 13916fi 13917 13918found="no" 13919 13920 if test $found = "no" ; then 13921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 13922 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13923 fi 13924 13925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 13926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 13927 fi 13928 13929 CFLAGS="$CFLAGS -Wshadow" 13930 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 13932$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 13933 cacheid=xorg_cv_cc_flag__Wshadow 13934 if eval \${$cacheid+:} false; then : 13935 $as_echo_n "(cached) " >&6 13936else 13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13938/* end confdefs.h. */ 13939int i; 13940int 13941main () 13942{ 13943 13944 ; 13945 return 0; 13946} 13947_ACEOF 13948if ac_fn_c_try_link "$LINENO"; then : 13949 eval $cacheid=yes 13950else 13951 eval $cacheid=no 13952fi 13953rm -f core conftest.err conftest.$ac_objext \ 13954 conftest$ac_exeext conftest.$ac_ext 13955fi 13956 13957 13958 CFLAGS="$xorg_testset_save_CFLAGS" 13959 13960 eval supported=\$$cacheid 13961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 13962$as_echo "$supported" >&6; } 13963 if test "$supported" = "yes" ; then 13964 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 13965 found="yes" 13966 fi 13967 fi 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983xorg_testset_save_CFLAGS="$CFLAGS" 13984 13985if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 13986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 13988$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 13989if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 13990 $as_echo_n "(cached) " >&6 13991else 13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13993/* end confdefs.h. */ 13994int i; 13995_ACEOF 13996if ac_fn_c_try_compile "$LINENO"; then : 13997 xorg_cv_cc_flag_unknown_warning_option=yes 13998else 13999 xorg_cv_cc_flag_unknown_warning_option=no 14000fi 14001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14002fi 14003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14004$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14005 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14006 CFLAGS="$xorg_testset_save_CFLAGS" 14007fi 14008 14009if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14010 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14011 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14012 fi 14013 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14015$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14016if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14017 $as_echo_n "(cached) " >&6 14018else 14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14020/* end confdefs.h. */ 14021int i; 14022_ACEOF 14023if ac_fn_c_try_compile "$LINENO"; then : 14024 xorg_cv_cc_flag_unused_command_line_argument=yes 14025else 14026 xorg_cv_cc_flag_unused_command_line_argument=no 14027fi 14028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14029fi 14030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14031$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14033 CFLAGS="$xorg_testset_save_CFLAGS" 14034fi 14035 14036found="no" 14037 14038 if test $found = "no" ; then 14039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14040 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14041 fi 14042 14043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14045 fi 14046 14047 CFLAGS="$CFLAGS -Wmissing-noreturn" 14048 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 14050$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 14051 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 14052 if eval \${$cacheid+:} false; then : 14053 $as_echo_n "(cached) " >&6 14054else 14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14056/* end confdefs.h. */ 14057int i; 14058int 14059main () 14060{ 14061 14062 ; 14063 return 0; 14064} 14065_ACEOF 14066if ac_fn_c_try_link "$LINENO"; then : 14067 eval $cacheid=yes 14068else 14069 eval $cacheid=no 14070fi 14071rm -f core conftest.err conftest.$ac_objext \ 14072 conftest$ac_exeext conftest.$ac_ext 14073fi 14074 14075 14076 CFLAGS="$xorg_testset_save_CFLAGS" 14077 14078 eval supported=\$$cacheid 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14080$as_echo "$supported" >&6; } 14081 if test "$supported" = "yes" ; then 14082 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 14083 found="yes" 14084 fi 14085 fi 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101xorg_testset_save_CFLAGS="$CFLAGS" 14102 14103if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14106$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14107if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14108 $as_echo_n "(cached) " >&6 14109else 14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14111/* end confdefs.h. */ 14112int i; 14113_ACEOF 14114if ac_fn_c_try_compile "$LINENO"; then : 14115 xorg_cv_cc_flag_unknown_warning_option=yes 14116else 14117 xorg_cv_cc_flag_unknown_warning_option=no 14118fi 14119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14120fi 14121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14122$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14123 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14124 CFLAGS="$xorg_testset_save_CFLAGS" 14125fi 14126 14127if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14128 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14129 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14130 fi 14131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14133$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14134if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14135 $as_echo_n "(cached) " >&6 14136else 14137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14138/* end confdefs.h. */ 14139int i; 14140_ACEOF 14141if ac_fn_c_try_compile "$LINENO"; then : 14142 xorg_cv_cc_flag_unused_command_line_argument=yes 14143else 14144 xorg_cv_cc_flag_unused_command_line_argument=no 14145fi 14146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14147fi 14148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14149$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14151 CFLAGS="$xorg_testset_save_CFLAGS" 14152fi 14153 14154found="no" 14155 14156 if test $found = "no" ; then 14157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14158 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14159 fi 14160 14161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14163 fi 14164 14165 CFLAGS="$CFLAGS -Wmissing-format-attribute" 14166 14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 14168$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 14169 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 14170 if eval \${$cacheid+:} false; then : 14171 $as_echo_n "(cached) " >&6 14172else 14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14174/* end confdefs.h. */ 14175int i; 14176int 14177main () 14178{ 14179 14180 ; 14181 return 0; 14182} 14183_ACEOF 14184if ac_fn_c_try_link "$LINENO"; then : 14185 eval $cacheid=yes 14186else 14187 eval $cacheid=no 14188fi 14189rm -f core conftest.err conftest.$ac_objext \ 14190 conftest$ac_exeext conftest.$ac_ext 14191fi 14192 14193 14194 CFLAGS="$xorg_testset_save_CFLAGS" 14195 14196 eval supported=\$$cacheid 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14198$as_echo "$supported" >&6; } 14199 if test "$supported" = "yes" ; then 14200 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 14201 found="yes" 14202 fi 14203 fi 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219xorg_testset_save_CFLAGS="$CFLAGS" 14220 14221if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14222 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14224$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14225if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14226 $as_echo_n "(cached) " >&6 14227else 14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14229/* end confdefs.h. */ 14230int i; 14231_ACEOF 14232if ac_fn_c_try_compile "$LINENO"; then : 14233 xorg_cv_cc_flag_unknown_warning_option=yes 14234else 14235 xorg_cv_cc_flag_unknown_warning_option=no 14236fi 14237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14238fi 14239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14240$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14242 CFLAGS="$xorg_testset_save_CFLAGS" 14243fi 14244 14245if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14247 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14248 fi 14249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14251$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14252if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14253 $as_echo_n "(cached) " >&6 14254else 14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14256/* end confdefs.h. */ 14257int i; 14258_ACEOF 14259if ac_fn_c_try_compile "$LINENO"; then : 14260 xorg_cv_cc_flag_unused_command_line_argument=yes 14261else 14262 xorg_cv_cc_flag_unused_command_line_argument=no 14263fi 14264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14265fi 14266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14267$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14269 CFLAGS="$xorg_testset_save_CFLAGS" 14270fi 14271 14272found="no" 14273 14274 if test $found = "no" ; then 14275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14276 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14277 fi 14278 14279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14281 fi 14282 14283 CFLAGS="$CFLAGS -Wredundant-decls" 14284 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 14286$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 14287 cacheid=xorg_cv_cc_flag__Wredundant_decls 14288 if eval \${$cacheid+:} false; then : 14289 $as_echo_n "(cached) " >&6 14290else 14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14292/* end confdefs.h. */ 14293int i; 14294int 14295main () 14296{ 14297 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302if ac_fn_c_try_link "$LINENO"; then : 14303 eval $cacheid=yes 14304else 14305 eval $cacheid=no 14306fi 14307rm -f core conftest.err conftest.$ac_objext \ 14308 conftest$ac_exeext conftest.$ac_ext 14309fi 14310 14311 14312 CFLAGS="$xorg_testset_save_CFLAGS" 14313 14314 eval supported=\$$cacheid 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14316$as_echo "$supported" >&6; } 14317 if test "$supported" = "yes" ; then 14318 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 14319 found="yes" 14320 fi 14321 fi 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337xorg_testset_save_CFLAGS="$CFLAGS" 14338 14339if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14340 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14342$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14343if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14344 $as_echo_n "(cached) " >&6 14345else 14346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14347/* end confdefs.h. */ 14348int i; 14349_ACEOF 14350if ac_fn_c_try_compile "$LINENO"; then : 14351 xorg_cv_cc_flag_unknown_warning_option=yes 14352else 14353 xorg_cv_cc_flag_unknown_warning_option=no 14354fi 14355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14356fi 14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14358$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14359 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14360 CFLAGS="$xorg_testset_save_CFLAGS" 14361fi 14362 14363if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14365 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14366 fi 14367 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14369$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14370if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14371 $as_echo_n "(cached) " >&6 14372else 14373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14374/* end confdefs.h. */ 14375int i; 14376_ACEOF 14377if ac_fn_c_try_compile "$LINENO"; then : 14378 xorg_cv_cc_flag_unused_command_line_argument=yes 14379else 14380 xorg_cv_cc_flag_unused_command_line_argument=no 14381fi 14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14383fi 14384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14385$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14386 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14387 CFLAGS="$xorg_testset_save_CFLAGS" 14388fi 14389 14390found="no" 14391 14392 if test $found = "no" ; then 14393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14395 fi 14396 14397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14399 fi 14400 14401 CFLAGS="$CFLAGS -Wlogical-op" 14402 14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 14404$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 14405 cacheid=xorg_cv_cc_flag__Wlogical_op 14406 if eval \${$cacheid+:} false; then : 14407 $as_echo_n "(cached) " >&6 14408else 14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14410/* end confdefs.h. */ 14411int i; 14412int 14413main () 14414{ 14415 14416 ; 14417 return 0; 14418} 14419_ACEOF 14420if ac_fn_c_try_link "$LINENO"; then : 14421 eval $cacheid=yes 14422else 14423 eval $cacheid=no 14424fi 14425rm -f core conftest.err conftest.$ac_objext \ 14426 conftest$ac_exeext conftest.$ac_ext 14427fi 14428 14429 14430 CFLAGS="$xorg_testset_save_CFLAGS" 14431 14432 eval supported=\$$cacheid 14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14434$as_echo "$supported" >&6; } 14435 if test "$supported" = "yes" ; then 14436 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 14437 found="yes" 14438 fi 14439 fi 14440 14441 14442 14443# These are currently disabled because they are noisy. They will be enabled 14444# in the future once the codebase is sufficiently modernized to silence 14445# them. For now, I don't want them to drown out the other warnings. 14446# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 14447# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 14448# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 14449 14450# Turn some warnings into errors, so we don't accidently get successful builds 14451# when there are problems that should be fixed. 14452 14453if test "x$SELECTIVE_WERROR" = "xyes" ; then 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467xorg_testset_save_CFLAGS="$CFLAGS" 14468 14469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14474 $as_echo_n "(cached) " >&6 14475else 14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14477/* end confdefs.h. */ 14478int i; 14479_ACEOF 14480if ac_fn_c_try_compile "$LINENO"; then : 14481 xorg_cv_cc_flag_unknown_warning_option=yes 14482else 14483 xorg_cv_cc_flag_unknown_warning_option=no 14484fi 14485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14486fi 14487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14490 CFLAGS="$xorg_testset_save_CFLAGS" 14491fi 14492 14493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14496 fi 14497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14501 $as_echo_n "(cached) " >&6 14502else 14503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14504/* end confdefs.h. */ 14505int i; 14506_ACEOF 14507if ac_fn_c_try_compile "$LINENO"; then : 14508 xorg_cv_cc_flag_unused_command_line_argument=yes 14509else 14510 xorg_cv_cc_flag_unused_command_line_argument=no 14511fi 14512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14513fi 14514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14517 CFLAGS="$xorg_testset_save_CFLAGS" 14518fi 14519 14520found="no" 14521 14522 if test $found = "no" ; then 14523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14525 fi 14526 14527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14529 fi 14530 14531 CFLAGS="$CFLAGS -Werror=implicit" 14532 14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 14534$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 14535 cacheid=xorg_cv_cc_flag__Werror_implicit 14536 if eval \${$cacheid+:} false; then : 14537 $as_echo_n "(cached) " >&6 14538else 14539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14540/* end confdefs.h. */ 14541int i; 14542int 14543main () 14544{ 14545 14546 ; 14547 return 0; 14548} 14549_ACEOF 14550if ac_fn_c_try_link "$LINENO"; then : 14551 eval $cacheid=yes 14552else 14553 eval $cacheid=no 14554fi 14555rm -f core conftest.err conftest.$ac_objext \ 14556 conftest$ac_exeext conftest.$ac_ext 14557fi 14558 14559 14560 CFLAGS="$xorg_testset_save_CFLAGS" 14561 14562 eval supported=\$$cacheid 14563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14564$as_echo "$supported" >&6; } 14565 if test "$supported" = "yes" ; then 14566 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 14567 found="yes" 14568 fi 14569 fi 14570 14571 if test $found = "no" ; then 14572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14574 fi 14575 14576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14578 fi 14579 14580 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14581 14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 14583$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 14584 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 14585 if eval \${$cacheid+:} false; then : 14586 $as_echo_n "(cached) " >&6 14587else 14588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14589/* end confdefs.h. */ 14590int i; 14591int 14592main () 14593{ 14594 14595 ; 14596 return 0; 14597} 14598_ACEOF 14599if ac_fn_c_try_link "$LINENO"; then : 14600 eval $cacheid=yes 14601else 14602 eval $cacheid=no 14603fi 14604rm -f core conftest.err conftest.$ac_objext \ 14605 conftest$ac_exeext conftest.$ac_ext 14606fi 14607 14608 14609 CFLAGS="$xorg_testset_save_CFLAGS" 14610 14611 eval supported=\$$cacheid 14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14613$as_echo "$supported" >&6; } 14614 if test "$supported" = "yes" ; then 14615 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 14616 found="yes" 14617 fi 14618 fi 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634xorg_testset_save_CFLAGS="$CFLAGS" 14635 14636if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14637 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14639$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14640if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14641 $as_echo_n "(cached) " >&6 14642else 14643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14644/* end confdefs.h. */ 14645int i; 14646_ACEOF 14647if ac_fn_c_try_compile "$LINENO"; then : 14648 xorg_cv_cc_flag_unknown_warning_option=yes 14649else 14650 xorg_cv_cc_flag_unknown_warning_option=no 14651fi 14652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14653fi 14654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14655$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14656 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14657 CFLAGS="$xorg_testset_save_CFLAGS" 14658fi 14659 14660if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14662 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14663 fi 14664 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14666$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14667if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14668 $as_echo_n "(cached) " >&6 14669else 14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14671/* end confdefs.h. */ 14672int i; 14673_ACEOF 14674if ac_fn_c_try_compile "$LINENO"; then : 14675 xorg_cv_cc_flag_unused_command_line_argument=yes 14676else 14677 xorg_cv_cc_flag_unused_command_line_argument=no 14678fi 14679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14680fi 14681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14682$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14684 CFLAGS="$xorg_testset_save_CFLAGS" 14685fi 14686 14687found="no" 14688 14689 if test $found = "no" ; then 14690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14691 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14692 fi 14693 14694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14696 fi 14697 14698 CFLAGS="$CFLAGS -Werror=nonnull" 14699 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 14701$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 14702 cacheid=xorg_cv_cc_flag__Werror_nonnull 14703 if eval \${$cacheid+:} false; then : 14704 $as_echo_n "(cached) " >&6 14705else 14706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14707/* end confdefs.h. */ 14708int i; 14709int 14710main () 14711{ 14712 14713 ; 14714 return 0; 14715} 14716_ACEOF 14717if ac_fn_c_try_link "$LINENO"; then : 14718 eval $cacheid=yes 14719else 14720 eval $cacheid=no 14721fi 14722rm -f core conftest.err conftest.$ac_objext \ 14723 conftest$ac_exeext conftest.$ac_ext 14724fi 14725 14726 14727 CFLAGS="$xorg_testset_save_CFLAGS" 14728 14729 eval supported=\$$cacheid 14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14731$as_echo "$supported" >&6; } 14732 if test "$supported" = "yes" ; then 14733 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 14734 found="yes" 14735 fi 14736 fi 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752xorg_testset_save_CFLAGS="$CFLAGS" 14753 14754if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14755 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14757$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14758if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14759 $as_echo_n "(cached) " >&6 14760else 14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14762/* end confdefs.h. */ 14763int i; 14764_ACEOF 14765if ac_fn_c_try_compile "$LINENO"; then : 14766 xorg_cv_cc_flag_unknown_warning_option=yes 14767else 14768 xorg_cv_cc_flag_unknown_warning_option=no 14769fi 14770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14771fi 14772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14773$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14775 CFLAGS="$xorg_testset_save_CFLAGS" 14776fi 14777 14778if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14780 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14781 fi 14782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14784$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14785if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14786 $as_echo_n "(cached) " >&6 14787else 14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14789/* end confdefs.h. */ 14790int i; 14791_ACEOF 14792if ac_fn_c_try_compile "$LINENO"; then : 14793 xorg_cv_cc_flag_unused_command_line_argument=yes 14794else 14795 xorg_cv_cc_flag_unused_command_line_argument=no 14796fi 14797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14798fi 14799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14800$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14801 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14802 CFLAGS="$xorg_testset_save_CFLAGS" 14803fi 14804 14805found="no" 14806 14807 if test $found = "no" ; then 14808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14810 fi 14811 14812 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14814 fi 14815 14816 CFLAGS="$CFLAGS -Werror=init-self" 14817 14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 14819$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 14820 cacheid=xorg_cv_cc_flag__Werror_init_self 14821 if eval \${$cacheid+:} false; then : 14822 $as_echo_n "(cached) " >&6 14823else 14824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14825/* end confdefs.h. */ 14826int i; 14827int 14828main () 14829{ 14830 14831 ; 14832 return 0; 14833} 14834_ACEOF 14835if ac_fn_c_try_link "$LINENO"; then : 14836 eval $cacheid=yes 14837else 14838 eval $cacheid=no 14839fi 14840rm -f core conftest.err conftest.$ac_objext \ 14841 conftest$ac_exeext conftest.$ac_ext 14842fi 14843 14844 14845 CFLAGS="$xorg_testset_save_CFLAGS" 14846 14847 eval supported=\$$cacheid 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14849$as_echo "$supported" >&6; } 14850 if test "$supported" = "yes" ; then 14851 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 14852 found="yes" 14853 fi 14854 fi 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870xorg_testset_save_CFLAGS="$CFLAGS" 14871 14872if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14873 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14875$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14876if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14877 $as_echo_n "(cached) " >&6 14878else 14879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14880/* end confdefs.h. */ 14881int i; 14882_ACEOF 14883if ac_fn_c_try_compile "$LINENO"; then : 14884 xorg_cv_cc_flag_unknown_warning_option=yes 14885else 14886 xorg_cv_cc_flag_unknown_warning_option=no 14887fi 14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14889fi 14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 14891$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 14892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 14893 CFLAGS="$xorg_testset_save_CFLAGS" 14894fi 14895 14896if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 14897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14898 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14899 fi 14900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 14902$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 14903if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 14904 $as_echo_n "(cached) " >&6 14905else 14906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14907/* end confdefs.h. */ 14908int i; 14909_ACEOF 14910if ac_fn_c_try_compile "$LINENO"; then : 14911 xorg_cv_cc_flag_unused_command_line_argument=yes 14912else 14913 xorg_cv_cc_flag_unused_command_line_argument=no 14914fi 14915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14916fi 14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 14918$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 14919 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 14920 CFLAGS="$xorg_testset_save_CFLAGS" 14921fi 14922 14923found="no" 14924 14925 if test $found = "no" ; then 14926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 14927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14928 fi 14929 14930 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 14931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 14932 fi 14933 14934 CFLAGS="$CFLAGS -Werror=main" 14935 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 14937$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 14938 cacheid=xorg_cv_cc_flag__Werror_main 14939 if eval \${$cacheid+:} false; then : 14940 $as_echo_n "(cached) " >&6 14941else 14942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14943/* end confdefs.h. */ 14944int i; 14945int 14946main () 14947{ 14948 14949 ; 14950 return 0; 14951} 14952_ACEOF 14953if ac_fn_c_try_link "$LINENO"; then : 14954 eval $cacheid=yes 14955else 14956 eval $cacheid=no 14957fi 14958rm -f core conftest.err conftest.$ac_objext \ 14959 conftest$ac_exeext conftest.$ac_ext 14960fi 14961 14962 14963 CFLAGS="$xorg_testset_save_CFLAGS" 14964 14965 eval supported=\$$cacheid 14966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 14967$as_echo "$supported" >&6; } 14968 if test "$supported" = "yes" ; then 14969 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 14970 found="yes" 14971 fi 14972 fi 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988xorg_testset_save_CFLAGS="$CFLAGS" 14989 14990if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 14991 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 14993$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 14994if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 14995 $as_echo_n "(cached) " >&6 14996else 14997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14998/* end confdefs.h. */ 14999int i; 15000_ACEOF 15001if ac_fn_c_try_compile "$LINENO"; then : 15002 xorg_cv_cc_flag_unknown_warning_option=yes 15003else 15004 xorg_cv_cc_flag_unknown_warning_option=no 15005fi 15006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15007fi 15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15009$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15011 CFLAGS="$xorg_testset_save_CFLAGS" 15012fi 15013 15014if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15016 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15017 fi 15018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15020$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15021if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15022 $as_echo_n "(cached) " >&6 15023else 15024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15025/* end confdefs.h. */ 15026int i; 15027_ACEOF 15028if ac_fn_c_try_compile "$LINENO"; then : 15029 xorg_cv_cc_flag_unused_command_line_argument=yes 15030else 15031 xorg_cv_cc_flag_unused_command_line_argument=no 15032fi 15033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15034fi 15035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15036$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15037 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15038 CFLAGS="$xorg_testset_save_CFLAGS" 15039fi 15040 15041found="no" 15042 15043 if test $found = "no" ; then 15044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15046 fi 15047 15048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15050 fi 15051 15052 CFLAGS="$CFLAGS -Werror=missing-braces" 15053 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 15055$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 15056 cacheid=xorg_cv_cc_flag__Werror_missing_braces 15057 if eval \${$cacheid+:} false; then : 15058 $as_echo_n "(cached) " >&6 15059else 15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15061/* end confdefs.h. */ 15062int i; 15063int 15064main () 15065{ 15066 15067 ; 15068 return 0; 15069} 15070_ACEOF 15071if ac_fn_c_try_link "$LINENO"; then : 15072 eval $cacheid=yes 15073else 15074 eval $cacheid=no 15075fi 15076rm -f core conftest.err conftest.$ac_objext \ 15077 conftest$ac_exeext conftest.$ac_ext 15078fi 15079 15080 15081 CFLAGS="$xorg_testset_save_CFLAGS" 15082 15083 eval supported=\$$cacheid 15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15085$as_echo "$supported" >&6; } 15086 if test "$supported" = "yes" ; then 15087 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 15088 found="yes" 15089 fi 15090 fi 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106xorg_testset_save_CFLAGS="$CFLAGS" 15107 15108if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15109 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15111$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15112if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15113 $as_echo_n "(cached) " >&6 15114else 15115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15116/* end confdefs.h. */ 15117int i; 15118_ACEOF 15119if ac_fn_c_try_compile "$LINENO"; then : 15120 xorg_cv_cc_flag_unknown_warning_option=yes 15121else 15122 xorg_cv_cc_flag_unknown_warning_option=no 15123fi 15124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15125fi 15126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15127$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15129 CFLAGS="$xorg_testset_save_CFLAGS" 15130fi 15131 15132if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15134 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15135 fi 15136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15138$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15139if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15140 $as_echo_n "(cached) " >&6 15141else 15142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15143/* end confdefs.h. */ 15144int i; 15145_ACEOF 15146if ac_fn_c_try_compile "$LINENO"; then : 15147 xorg_cv_cc_flag_unused_command_line_argument=yes 15148else 15149 xorg_cv_cc_flag_unused_command_line_argument=no 15150fi 15151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15152fi 15153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15154$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15155 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15156 CFLAGS="$xorg_testset_save_CFLAGS" 15157fi 15158 15159found="no" 15160 15161 if test $found = "no" ; then 15162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15164 fi 15165 15166 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15168 fi 15169 15170 CFLAGS="$CFLAGS -Werror=sequence-point" 15171 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 15173$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 15174 cacheid=xorg_cv_cc_flag__Werror_sequence_point 15175 if eval \${$cacheid+:} false; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180int i; 15181int 15182main () 15183{ 15184 15185 ; 15186 return 0; 15187} 15188_ACEOF 15189if ac_fn_c_try_link "$LINENO"; then : 15190 eval $cacheid=yes 15191else 15192 eval $cacheid=no 15193fi 15194rm -f core conftest.err conftest.$ac_objext \ 15195 conftest$ac_exeext conftest.$ac_ext 15196fi 15197 15198 15199 CFLAGS="$xorg_testset_save_CFLAGS" 15200 15201 eval supported=\$$cacheid 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15203$as_echo "$supported" >&6; } 15204 if test "$supported" = "yes" ; then 15205 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 15206 found="yes" 15207 fi 15208 fi 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224xorg_testset_save_CFLAGS="$CFLAGS" 15225 15226if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15227 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15229$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15230if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15231 $as_echo_n "(cached) " >&6 15232else 15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15234/* end confdefs.h. */ 15235int i; 15236_ACEOF 15237if ac_fn_c_try_compile "$LINENO"; then : 15238 xorg_cv_cc_flag_unknown_warning_option=yes 15239else 15240 xorg_cv_cc_flag_unknown_warning_option=no 15241fi 15242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15243fi 15244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15245$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15247 CFLAGS="$xorg_testset_save_CFLAGS" 15248fi 15249 15250if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15252 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15253 fi 15254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15256$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15257if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15258 $as_echo_n "(cached) " >&6 15259else 15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15261/* end confdefs.h. */ 15262int i; 15263_ACEOF 15264if ac_fn_c_try_compile "$LINENO"; then : 15265 xorg_cv_cc_flag_unused_command_line_argument=yes 15266else 15267 xorg_cv_cc_flag_unused_command_line_argument=no 15268fi 15269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15270fi 15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15272$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15274 CFLAGS="$xorg_testset_save_CFLAGS" 15275fi 15276 15277found="no" 15278 15279 if test $found = "no" ; then 15280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15281 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15282 fi 15283 15284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15286 fi 15287 15288 CFLAGS="$CFLAGS -Werror=return-type" 15289 15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 15291$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 15292 cacheid=xorg_cv_cc_flag__Werror_return_type 15293 if eval \${$cacheid+:} false; then : 15294 $as_echo_n "(cached) " >&6 15295else 15296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15297/* end confdefs.h. */ 15298int i; 15299int 15300main () 15301{ 15302 15303 ; 15304 return 0; 15305} 15306_ACEOF 15307if ac_fn_c_try_link "$LINENO"; then : 15308 eval $cacheid=yes 15309else 15310 eval $cacheid=no 15311fi 15312rm -f core conftest.err conftest.$ac_objext \ 15313 conftest$ac_exeext conftest.$ac_ext 15314fi 15315 15316 15317 CFLAGS="$xorg_testset_save_CFLAGS" 15318 15319 eval supported=\$$cacheid 15320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15321$as_echo "$supported" >&6; } 15322 if test "$supported" = "yes" ; then 15323 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 15324 found="yes" 15325 fi 15326 fi 15327 15328 if test $found = "no" ; then 15329 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15330 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15331 fi 15332 15333 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15335 fi 15336 15337 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15338 15339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 15340$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 15341 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 15342 if eval \${$cacheid+:} false; then : 15343 $as_echo_n "(cached) " >&6 15344else 15345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15346/* end confdefs.h. */ 15347int i; 15348int 15349main () 15350{ 15351 15352 ; 15353 return 0; 15354} 15355_ACEOF 15356if ac_fn_c_try_link "$LINENO"; then : 15357 eval $cacheid=yes 15358else 15359 eval $cacheid=no 15360fi 15361rm -f core conftest.err conftest.$ac_objext \ 15362 conftest$ac_exeext conftest.$ac_ext 15363fi 15364 15365 15366 CFLAGS="$xorg_testset_save_CFLAGS" 15367 15368 eval supported=\$$cacheid 15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15370$as_echo "$supported" >&6; } 15371 if test "$supported" = "yes" ; then 15372 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 15373 found="yes" 15374 fi 15375 fi 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391xorg_testset_save_CFLAGS="$CFLAGS" 15392 15393if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15394 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15396$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15397if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15398 $as_echo_n "(cached) " >&6 15399else 15400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15401/* end confdefs.h. */ 15402int i; 15403_ACEOF 15404if ac_fn_c_try_compile "$LINENO"; then : 15405 xorg_cv_cc_flag_unknown_warning_option=yes 15406else 15407 xorg_cv_cc_flag_unknown_warning_option=no 15408fi 15409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15410fi 15411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15412$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15413 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15414 CFLAGS="$xorg_testset_save_CFLAGS" 15415fi 15416 15417if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15418 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15419 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15420 fi 15421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15423$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15424if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15425 $as_echo_n "(cached) " >&6 15426else 15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15428/* end confdefs.h. */ 15429int i; 15430_ACEOF 15431if ac_fn_c_try_compile "$LINENO"; then : 15432 xorg_cv_cc_flag_unused_command_line_argument=yes 15433else 15434 xorg_cv_cc_flag_unused_command_line_argument=no 15435fi 15436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15437fi 15438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15439$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15440 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15441 CFLAGS="$xorg_testset_save_CFLAGS" 15442fi 15443 15444found="no" 15445 15446 if test $found = "no" ; then 15447 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15448 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15449 fi 15450 15451 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15453 fi 15454 15455 CFLAGS="$CFLAGS -Werror=trigraphs" 15456 15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 15458$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 15459 cacheid=xorg_cv_cc_flag__Werror_trigraphs 15460 if eval \${$cacheid+:} false; then : 15461 $as_echo_n "(cached) " >&6 15462else 15463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15464/* end confdefs.h. */ 15465int i; 15466int 15467main () 15468{ 15469 15470 ; 15471 return 0; 15472} 15473_ACEOF 15474if ac_fn_c_try_link "$LINENO"; then : 15475 eval $cacheid=yes 15476else 15477 eval $cacheid=no 15478fi 15479rm -f core conftest.err conftest.$ac_objext \ 15480 conftest$ac_exeext conftest.$ac_ext 15481fi 15482 15483 15484 CFLAGS="$xorg_testset_save_CFLAGS" 15485 15486 eval supported=\$$cacheid 15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15488$as_echo "$supported" >&6; } 15489 if test "$supported" = "yes" ; then 15490 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 15491 found="yes" 15492 fi 15493 fi 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509xorg_testset_save_CFLAGS="$CFLAGS" 15510 15511if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15512 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15514$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15515if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15516 $as_echo_n "(cached) " >&6 15517else 15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15519/* end confdefs.h. */ 15520int i; 15521_ACEOF 15522if ac_fn_c_try_compile "$LINENO"; then : 15523 xorg_cv_cc_flag_unknown_warning_option=yes 15524else 15525 xorg_cv_cc_flag_unknown_warning_option=no 15526fi 15527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15528fi 15529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15530$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15532 CFLAGS="$xorg_testset_save_CFLAGS" 15533fi 15534 15535if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15537 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15538 fi 15539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15541$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15542if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15543 $as_echo_n "(cached) " >&6 15544else 15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15546/* end confdefs.h. */ 15547int i; 15548_ACEOF 15549if ac_fn_c_try_compile "$LINENO"; then : 15550 xorg_cv_cc_flag_unused_command_line_argument=yes 15551else 15552 xorg_cv_cc_flag_unused_command_line_argument=no 15553fi 15554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15555fi 15556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15557$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15559 CFLAGS="$xorg_testset_save_CFLAGS" 15560fi 15561 15562found="no" 15563 15564 if test $found = "no" ; then 15565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15566 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15567 fi 15568 15569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15571 fi 15572 15573 CFLAGS="$CFLAGS -Werror=array-bounds" 15574 15575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 15576$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 15577 cacheid=xorg_cv_cc_flag__Werror_array_bounds 15578 if eval \${$cacheid+:} false; then : 15579 $as_echo_n "(cached) " >&6 15580else 15581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583int i; 15584int 15585main () 15586{ 15587 15588 ; 15589 return 0; 15590} 15591_ACEOF 15592if ac_fn_c_try_link "$LINENO"; then : 15593 eval $cacheid=yes 15594else 15595 eval $cacheid=no 15596fi 15597rm -f core conftest.err conftest.$ac_objext \ 15598 conftest$ac_exeext conftest.$ac_ext 15599fi 15600 15601 15602 CFLAGS="$xorg_testset_save_CFLAGS" 15603 15604 eval supported=\$$cacheid 15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15606$as_echo "$supported" >&6; } 15607 if test "$supported" = "yes" ; then 15608 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 15609 found="yes" 15610 fi 15611 fi 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627xorg_testset_save_CFLAGS="$CFLAGS" 15628 15629if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15630 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15632$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15633if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15634 $as_echo_n "(cached) " >&6 15635else 15636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15637/* end confdefs.h. */ 15638int i; 15639_ACEOF 15640if ac_fn_c_try_compile "$LINENO"; then : 15641 xorg_cv_cc_flag_unknown_warning_option=yes 15642else 15643 xorg_cv_cc_flag_unknown_warning_option=no 15644fi 15645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15646fi 15647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15648$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15649 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15650 CFLAGS="$xorg_testset_save_CFLAGS" 15651fi 15652 15653if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15654 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15655 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15656 fi 15657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15659$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15660if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15661 $as_echo_n "(cached) " >&6 15662else 15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15664/* end confdefs.h. */ 15665int i; 15666_ACEOF 15667if ac_fn_c_try_compile "$LINENO"; then : 15668 xorg_cv_cc_flag_unused_command_line_argument=yes 15669else 15670 xorg_cv_cc_flag_unused_command_line_argument=no 15671fi 15672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15673fi 15674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15675$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15677 CFLAGS="$xorg_testset_save_CFLAGS" 15678fi 15679 15680found="no" 15681 15682 if test $found = "no" ; then 15683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15684 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15685 fi 15686 15687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15689 fi 15690 15691 CFLAGS="$CFLAGS -Werror=write-strings" 15692 15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 15694$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 15695 cacheid=xorg_cv_cc_flag__Werror_write_strings 15696 if eval \${$cacheid+:} false; then : 15697 $as_echo_n "(cached) " >&6 15698else 15699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15700/* end confdefs.h. */ 15701int i; 15702int 15703main () 15704{ 15705 15706 ; 15707 return 0; 15708} 15709_ACEOF 15710if ac_fn_c_try_link "$LINENO"; then : 15711 eval $cacheid=yes 15712else 15713 eval $cacheid=no 15714fi 15715rm -f core conftest.err conftest.$ac_objext \ 15716 conftest$ac_exeext conftest.$ac_ext 15717fi 15718 15719 15720 CFLAGS="$xorg_testset_save_CFLAGS" 15721 15722 eval supported=\$$cacheid 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15724$as_echo "$supported" >&6; } 15725 if test "$supported" = "yes" ; then 15726 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 15727 found="yes" 15728 fi 15729 fi 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745xorg_testset_save_CFLAGS="$CFLAGS" 15746 15747if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15750$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15751if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15752 $as_echo_n "(cached) " >&6 15753else 15754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15755/* end confdefs.h. */ 15756int i; 15757_ACEOF 15758if ac_fn_c_try_compile "$LINENO"; then : 15759 xorg_cv_cc_flag_unknown_warning_option=yes 15760else 15761 xorg_cv_cc_flag_unknown_warning_option=no 15762fi 15763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15764fi 15765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15766$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15767 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15768 CFLAGS="$xorg_testset_save_CFLAGS" 15769fi 15770 15771if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15773 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15774 fi 15775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15777$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15778if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15779 $as_echo_n "(cached) " >&6 15780else 15781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15782/* end confdefs.h. */ 15783int i; 15784_ACEOF 15785if ac_fn_c_try_compile "$LINENO"; then : 15786 xorg_cv_cc_flag_unused_command_line_argument=yes 15787else 15788 xorg_cv_cc_flag_unused_command_line_argument=no 15789fi 15790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15791fi 15792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15793$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15794 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15795 CFLAGS="$xorg_testset_save_CFLAGS" 15796fi 15797 15798found="no" 15799 15800 if test $found = "no" ; then 15801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15802 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15803 fi 15804 15805 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15807 fi 15808 15809 CFLAGS="$CFLAGS -Werror=address" 15810 15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 15812$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 15813 cacheid=xorg_cv_cc_flag__Werror_address 15814 if eval \${$cacheid+:} false; then : 15815 $as_echo_n "(cached) " >&6 15816else 15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818/* end confdefs.h. */ 15819int i; 15820int 15821main () 15822{ 15823 15824 ; 15825 return 0; 15826} 15827_ACEOF 15828if ac_fn_c_try_link "$LINENO"; then : 15829 eval $cacheid=yes 15830else 15831 eval $cacheid=no 15832fi 15833rm -f core conftest.err conftest.$ac_objext \ 15834 conftest$ac_exeext conftest.$ac_ext 15835fi 15836 15837 15838 CFLAGS="$xorg_testset_save_CFLAGS" 15839 15840 eval supported=\$$cacheid 15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15842$as_echo "$supported" >&6; } 15843 if test "$supported" = "yes" ; then 15844 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 15845 found="yes" 15846 fi 15847 fi 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863xorg_testset_save_CFLAGS="$CFLAGS" 15864 15865if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 15866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 15868$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 15869if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 15870 $as_echo_n "(cached) " >&6 15871else 15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15873/* end confdefs.h. */ 15874int i; 15875_ACEOF 15876if ac_fn_c_try_compile "$LINENO"; then : 15877 xorg_cv_cc_flag_unknown_warning_option=yes 15878else 15879 xorg_cv_cc_flag_unknown_warning_option=no 15880fi 15881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15882fi 15883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 15884$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 15885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 15886 CFLAGS="$xorg_testset_save_CFLAGS" 15887fi 15888 15889if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 15890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15891 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15892 fi 15893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 15895$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 15896if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 15897 $as_echo_n "(cached) " >&6 15898else 15899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15900/* end confdefs.h. */ 15901int i; 15902_ACEOF 15903if ac_fn_c_try_compile "$LINENO"; then : 15904 xorg_cv_cc_flag_unused_command_line_argument=yes 15905else 15906 xorg_cv_cc_flag_unused_command_line_argument=no 15907fi 15908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15909fi 15910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 15911$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 15912 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 15913 CFLAGS="$xorg_testset_save_CFLAGS" 15914fi 15915 15916found="no" 15917 15918 if test $found = "no" ; then 15919 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15920 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15921 fi 15922 15923 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15925 fi 15926 15927 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 15928 15929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 15930$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 15931 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 15932 if eval \${$cacheid+:} false; then : 15933 $as_echo_n "(cached) " >&6 15934else 15935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15936/* end confdefs.h. */ 15937int i; 15938int 15939main () 15940{ 15941 15942 ; 15943 return 0; 15944} 15945_ACEOF 15946if ac_fn_c_try_link "$LINENO"; then : 15947 eval $cacheid=yes 15948else 15949 eval $cacheid=no 15950fi 15951rm -f core conftest.err conftest.$ac_objext \ 15952 conftest$ac_exeext conftest.$ac_ext 15953fi 15954 15955 15956 CFLAGS="$xorg_testset_save_CFLAGS" 15957 15958 eval supported=\$$cacheid 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 15960$as_echo "$supported" >&6; } 15961 if test "$supported" = "yes" ; then 15962 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 15963 found="yes" 15964 fi 15965 fi 15966 15967 if test $found = "no" ; then 15968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 15969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 15970 fi 15971 15972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 15973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 15974 fi 15975 15976 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 15977 15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 15979$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 15980 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 15981 if eval \${$cacheid+:} false; then : 15982 $as_echo_n "(cached) " >&6 15983else 15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15985/* end confdefs.h. */ 15986int i; 15987int 15988main () 15989{ 15990 15991 ; 15992 return 0; 15993} 15994_ACEOF 15995if ac_fn_c_try_link "$LINENO"; then : 15996 eval $cacheid=yes 15997else 15998 eval $cacheid=no 15999fi 16000rm -f core conftest.err conftest.$ac_objext \ 16001 conftest$ac_exeext conftest.$ac_ext 16002fi 16003 16004 16005 CFLAGS="$xorg_testset_save_CFLAGS" 16006 16007 eval supported=\$$cacheid 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16009$as_echo "$supported" >&6; } 16010 if test "$supported" = "yes" ; then 16011 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 16012 found="yes" 16013 fi 16014 fi 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030xorg_testset_save_CFLAGS="$CFLAGS" 16031 16032if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16033 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16035$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16036if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16037 $as_echo_n "(cached) " >&6 16038else 16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16040/* end confdefs.h. */ 16041int i; 16042_ACEOF 16043if ac_fn_c_try_compile "$LINENO"; then : 16044 xorg_cv_cc_flag_unknown_warning_option=yes 16045else 16046 xorg_cv_cc_flag_unknown_warning_option=no 16047fi 16048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16049fi 16050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16051$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16053 CFLAGS="$xorg_testset_save_CFLAGS" 16054fi 16055 16056if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16058 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16059 fi 16060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16062$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16063if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16064 $as_echo_n "(cached) " >&6 16065else 16066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16067/* end confdefs.h. */ 16068int i; 16069_ACEOF 16070if ac_fn_c_try_compile "$LINENO"; then : 16071 xorg_cv_cc_flag_unused_command_line_argument=yes 16072else 16073 xorg_cv_cc_flag_unused_command_line_argument=no 16074fi 16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16076fi 16077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16078$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16080 CFLAGS="$xorg_testset_save_CFLAGS" 16081fi 16082 16083found="no" 16084 16085 if test $found = "no" ; then 16086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16088 fi 16089 16090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16092 fi 16093 16094 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 16095 16096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 16097$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 16098 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 16099 if eval \${$cacheid+:} false; then : 16100 $as_echo_n "(cached) " >&6 16101else 16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16103/* end confdefs.h. */ 16104int i; 16105int 16106main () 16107{ 16108 16109 ; 16110 return 0; 16111} 16112_ACEOF 16113if ac_fn_c_try_link "$LINENO"; then : 16114 eval $cacheid=yes 16115else 16116 eval $cacheid=no 16117fi 16118rm -f core conftest.err conftest.$ac_objext \ 16119 conftest$ac_exeext conftest.$ac_ext 16120fi 16121 16122 16123 CFLAGS="$xorg_testset_save_CFLAGS" 16124 16125 eval supported=\$$cacheid 16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16127$as_echo "$supported" >&6; } 16128 if test "$supported" = "yes" ; then 16129 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 16130 found="yes" 16131 fi 16132 fi 16133 16134 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 16135else 16136{ $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 16137$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;} 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151xorg_testset_save_CFLAGS="$CFLAGS" 16152 16153if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16156$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16157if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16158 $as_echo_n "(cached) " >&6 16159else 16160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16161/* end confdefs.h. */ 16162int i; 16163_ACEOF 16164if ac_fn_c_try_compile "$LINENO"; then : 16165 xorg_cv_cc_flag_unknown_warning_option=yes 16166else 16167 xorg_cv_cc_flag_unknown_warning_option=no 16168fi 16169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16170fi 16171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16172$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16173 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16174 CFLAGS="$xorg_testset_save_CFLAGS" 16175fi 16176 16177if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16179 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16180 fi 16181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16183$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16184if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16185 $as_echo_n "(cached) " >&6 16186else 16187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16188/* end confdefs.h. */ 16189int i; 16190_ACEOF 16191if ac_fn_c_try_compile "$LINENO"; then : 16192 xorg_cv_cc_flag_unused_command_line_argument=yes 16193else 16194 xorg_cv_cc_flag_unused_command_line_argument=no 16195fi 16196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16197fi 16198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16199$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16200 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16201 CFLAGS="$xorg_testset_save_CFLAGS" 16202fi 16203 16204found="no" 16205 16206 if test $found = "no" ; then 16207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16208 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16209 fi 16210 16211 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16212 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16213 fi 16214 16215 CFLAGS="$CFLAGS -Wimplicit" 16216 16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 16218$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 16219 cacheid=xorg_cv_cc_flag__Wimplicit 16220 if eval \${$cacheid+:} false; then : 16221 $as_echo_n "(cached) " >&6 16222else 16223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16224/* end confdefs.h. */ 16225int i; 16226int 16227main () 16228{ 16229 16230 ; 16231 return 0; 16232} 16233_ACEOF 16234if ac_fn_c_try_link "$LINENO"; then : 16235 eval $cacheid=yes 16236else 16237 eval $cacheid=no 16238fi 16239rm -f core conftest.err conftest.$ac_objext \ 16240 conftest$ac_exeext conftest.$ac_ext 16241fi 16242 16243 16244 CFLAGS="$xorg_testset_save_CFLAGS" 16245 16246 eval supported=\$$cacheid 16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16248$as_echo "$supported" >&6; } 16249 if test "$supported" = "yes" ; then 16250 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 16251 found="yes" 16252 fi 16253 fi 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269xorg_testset_save_CFLAGS="$CFLAGS" 16270 16271if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16272 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16274$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16275if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16276 $as_echo_n "(cached) " >&6 16277else 16278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16279/* end confdefs.h. */ 16280int i; 16281_ACEOF 16282if ac_fn_c_try_compile "$LINENO"; then : 16283 xorg_cv_cc_flag_unknown_warning_option=yes 16284else 16285 xorg_cv_cc_flag_unknown_warning_option=no 16286fi 16287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16288fi 16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16290$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16291 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16292 CFLAGS="$xorg_testset_save_CFLAGS" 16293fi 16294 16295if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16297 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16298 fi 16299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16301$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16302if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16303 $as_echo_n "(cached) " >&6 16304else 16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16306/* end confdefs.h. */ 16307int i; 16308_ACEOF 16309if ac_fn_c_try_compile "$LINENO"; then : 16310 xorg_cv_cc_flag_unused_command_line_argument=yes 16311else 16312 xorg_cv_cc_flag_unused_command_line_argument=no 16313fi 16314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16315fi 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16317$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16319 CFLAGS="$xorg_testset_save_CFLAGS" 16320fi 16321 16322found="no" 16323 16324 if test $found = "no" ; then 16325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16326 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16327 fi 16328 16329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16331 fi 16332 16333 CFLAGS="$CFLAGS -Wnonnull" 16334 16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 16336$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 16337 cacheid=xorg_cv_cc_flag__Wnonnull 16338 if eval \${$cacheid+:} false; then : 16339 $as_echo_n "(cached) " >&6 16340else 16341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16342/* end confdefs.h. */ 16343int i; 16344int 16345main () 16346{ 16347 16348 ; 16349 return 0; 16350} 16351_ACEOF 16352if ac_fn_c_try_link "$LINENO"; then : 16353 eval $cacheid=yes 16354else 16355 eval $cacheid=no 16356fi 16357rm -f core conftest.err conftest.$ac_objext \ 16358 conftest$ac_exeext conftest.$ac_ext 16359fi 16360 16361 16362 CFLAGS="$xorg_testset_save_CFLAGS" 16363 16364 eval supported=\$$cacheid 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16366$as_echo "$supported" >&6; } 16367 if test "$supported" = "yes" ; then 16368 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 16369 found="yes" 16370 fi 16371 fi 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387xorg_testset_save_CFLAGS="$CFLAGS" 16388 16389if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16390 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16392$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16393if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16394 $as_echo_n "(cached) " >&6 16395else 16396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16397/* end confdefs.h. */ 16398int i; 16399_ACEOF 16400if ac_fn_c_try_compile "$LINENO"; then : 16401 xorg_cv_cc_flag_unknown_warning_option=yes 16402else 16403 xorg_cv_cc_flag_unknown_warning_option=no 16404fi 16405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16406fi 16407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16408$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16410 CFLAGS="$xorg_testset_save_CFLAGS" 16411fi 16412 16413if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16415 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16416 fi 16417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16419$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16420if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16421 $as_echo_n "(cached) " >&6 16422else 16423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16424/* end confdefs.h. */ 16425int i; 16426_ACEOF 16427if ac_fn_c_try_compile "$LINENO"; then : 16428 xorg_cv_cc_flag_unused_command_line_argument=yes 16429else 16430 xorg_cv_cc_flag_unused_command_line_argument=no 16431fi 16432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16433fi 16434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16435$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16437 CFLAGS="$xorg_testset_save_CFLAGS" 16438fi 16439 16440found="no" 16441 16442 if test $found = "no" ; then 16443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16444 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16445 fi 16446 16447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16449 fi 16450 16451 CFLAGS="$CFLAGS -Winit-self" 16452 16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 16454$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 16455 cacheid=xorg_cv_cc_flag__Winit_self 16456 if eval \${$cacheid+:} false; then : 16457 $as_echo_n "(cached) " >&6 16458else 16459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16460/* end confdefs.h. */ 16461int i; 16462int 16463main () 16464{ 16465 16466 ; 16467 return 0; 16468} 16469_ACEOF 16470if ac_fn_c_try_link "$LINENO"; then : 16471 eval $cacheid=yes 16472else 16473 eval $cacheid=no 16474fi 16475rm -f core conftest.err conftest.$ac_objext \ 16476 conftest$ac_exeext conftest.$ac_ext 16477fi 16478 16479 16480 CFLAGS="$xorg_testset_save_CFLAGS" 16481 16482 eval supported=\$$cacheid 16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16484$as_echo "$supported" >&6; } 16485 if test "$supported" = "yes" ; then 16486 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 16487 found="yes" 16488 fi 16489 fi 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505xorg_testset_save_CFLAGS="$CFLAGS" 16506 16507if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16508 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16510$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16511if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16512 $as_echo_n "(cached) " >&6 16513else 16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16515/* end confdefs.h. */ 16516int i; 16517_ACEOF 16518if ac_fn_c_try_compile "$LINENO"; then : 16519 xorg_cv_cc_flag_unknown_warning_option=yes 16520else 16521 xorg_cv_cc_flag_unknown_warning_option=no 16522fi 16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16524fi 16525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16526$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16528 CFLAGS="$xorg_testset_save_CFLAGS" 16529fi 16530 16531if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16533 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16534 fi 16535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16537$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16538if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16539 $as_echo_n "(cached) " >&6 16540else 16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16542/* end confdefs.h. */ 16543int i; 16544_ACEOF 16545if ac_fn_c_try_compile "$LINENO"; then : 16546 xorg_cv_cc_flag_unused_command_line_argument=yes 16547else 16548 xorg_cv_cc_flag_unused_command_line_argument=no 16549fi 16550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16551fi 16552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16553$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16554 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16555 CFLAGS="$xorg_testset_save_CFLAGS" 16556fi 16557 16558found="no" 16559 16560 if test $found = "no" ; then 16561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16562 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16563 fi 16564 16565 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16567 fi 16568 16569 CFLAGS="$CFLAGS -Wmain" 16570 16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 16572$as_echo_n "checking if $CC supports -Wmain... " >&6; } 16573 cacheid=xorg_cv_cc_flag__Wmain 16574 if eval \${$cacheid+:} false; then : 16575 $as_echo_n "(cached) " >&6 16576else 16577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16578/* end confdefs.h. */ 16579int i; 16580int 16581main () 16582{ 16583 16584 ; 16585 return 0; 16586} 16587_ACEOF 16588if ac_fn_c_try_link "$LINENO"; then : 16589 eval $cacheid=yes 16590else 16591 eval $cacheid=no 16592fi 16593rm -f core conftest.err conftest.$ac_objext \ 16594 conftest$ac_exeext conftest.$ac_ext 16595fi 16596 16597 16598 CFLAGS="$xorg_testset_save_CFLAGS" 16599 16600 eval supported=\$$cacheid 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16602$as_echo "$supported" >&6; } 16603 if test "$supported" = "yes" ; then 16604 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 16605 found="yes" 16606 fi 16607 fi 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623xorg_testset_save_CFLAGS="$CFLAGS" 16624 16625if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16626 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16628$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16629if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16630 $as_echo_n "(cached) " >&6 16631else 16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16633/* end confdefs.h. */ 16634int i; 16635_ACEOF 16636if ac_fn_c_try_compile "$LINENO"; then : 16637 xorg_cv_cc_flag_unknown_warning_option=yes 16638else 16639 xorg_cv_cc_flag_unknown_warning_option=no 16640fi 16641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16642fi 16643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16644$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16646 CFLAGS="$xorg_testset_save_CFLAGS" 16647fi 16648 16649if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16651 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16652 fi 16653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16655$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16656if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16657 $as_echo_n "(cached) " >&6 16658else 16659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16660/* end confdefs.h. */ 16661int i; 16662_ACEOF 16663if ac_fn_c_try_compile "$LINENO"; then : 16664 xorg_cv_cc_flag_unused_command_line_argument=yes 16665else 16666 xorg_cv_cc_flag_unused_command_line_argument=no 16667fi 16668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16669fi 16670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16671$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16672 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16673 CFLAGS="$xorg_testset_save_CFLAGS" 16674fi 16675 16676found="no" 16677 16678 if test $found = "no" ; then 16679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16680 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16681 fi 16682 16683 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16685 fi 16686 16687 CFLAGS="$CFLAGS -Wmissing-braces" 16688 16689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 16690$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 16691 cacheid=xorg_cv_cc_flag__Wmissing_braces 16692 if eval \${$cacheid+:} false; then : 16693 $as_echo_n "(cached) " >&6 16694else 16695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16696/* end confdefs.h. */ 16697int i; 16698int 16699main () 16700{ 16701 16702 ; 16703 return 0; 16704} 16705_ACEOF 16706if ac_fn_c_try_link "$LINENO"; then : 16707 eval $cacheid=yes 16708else 16709 eval $cacheid=no 16710fi 16711rm -f core conftest.err conftest.$ac_objext \ 16712 conftest$ac_exeext conftest.$ac_ext 16713fi 16714 16715 16716 CFLAGS="$xorg_testset_save_CFLAGS" 16717 16718 eval supported=\$$cacheid 16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16720$as_echo "$supported" >&6; } 16721 if test "$supported" = "yes" ; then 16722 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 16723 found="yes" 16724 fi 16725 fi 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741xorg_testset_save_CFLAGS="$CFLAGS" 16742 16743if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16744 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16746$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16747if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16748 $as_echo_n "(cached) " >&6 16749else 16750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16751/* end confdefs.h. */ 16752int i; 16753_ACEOF 16754if ac_fn_c_try_compile "$LINENO"; then : 16755 xorg_cv_cc_flag_unknown_warning_option=yes 16756else 16757 xorg_cv_cc_flag_unknown_warning_option=no 16758fi 16759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16760fi 16761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16762$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16763 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16764 CFLAGS="$xorg_testset_save_CFLAGS" 16765fi 16766 16767if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16768 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16769 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16770 fi 16771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16773$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16774if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16775 $as_echo_n "(cached) " >&6 16776else 16777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16778/* end confdefs.h. */ 16779int i; 16780_ACEOF 16781if ac_fn_c_try_compile "$LINENO"; then : 16782 xorg_cv_cc_flag_unused_command_line_argument=yes 16783else 16784 xorg_cv_cc_flag_unused_command_line_argument=no 16785fi 16786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16787fi 16788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16789$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16791 CFLAGS="$xorg_testset_save_CFLAGS" 16792fi 16793 16794found="no" 16795 16796 if test $found = "no" ; then 16797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16798 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16799 fi 16800 16801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16803 fi 16804 16805 CFLAGS="$CFLAGS -Wsequence-point" 16806 16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 16808$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 16809 cacheid=xorg_cv_cc_flag__Wsequence_point 16810 if eval \${$cacheid+:} false; then : 16811 $as_echo_n "(cached) " >&6 16812else 16813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16814/* end confdefs.h. */ 16815int i; 16816int 16817main () 16818{ 16819 16820 ; 16821 return 0; 16822} 16823_ACEOF 16824if ac_fn_c_try_link "$LINENO"; then : 16825 eval $cacheid=yes 16826else 16827 eval $cacheid=no 16828fi 16829rm -f core conftest.err conftest.$ac_objext \ 16830 conftest$ac_exeext conftest.$ac_ext 16831fi 16832 16833 16834 CFLAGS="$xorg_testset_save_CFLAGS" 16835 16836 eval supported=\$$cacheid 16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16838$as_echo "$supported" >&6; } 16839 if test "$supported" = "yes" ; then 16840 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 16841 found="yes" 16842 fi 16843 fi 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859xorg_testset_save_CFLAGS="$CFLAGS" 16860 16861if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16862 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16864$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16865if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16866 $as_echo_n "(cached) " >&6 16867else 16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16869/* end confdefs.h. */ 16870int i; 16871_ACEOF 16872if ac_fn_c_try_compile "$LINENO"; then : 16873 xorg_cv_cc_flag_unknown_warning_option=yes 16874else 16875 xorg_cv_cc_flag_unknown_warning_option=no 16876fi 16877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16878fi 16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16880$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 16882 CFLAGS="$xorg_testset_save_CFLAGS" 16883fi 16884 16885if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 16886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16887 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16888 fi 16889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 16891$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 16892if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 16893 $as_echo_n "(cached) " >&6 16894else 16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16896/* end confdefs.h. */ 16897int i; 16898_ACEOF 16899if ac_fn_c_try_compile "$LINENO"; then : 16900 xorg_cv_cc_flag_unused_command_line_argument=yes 16901else 16902 xorg_cv_cc_flag_unused_command_line_argument=no 16903fi 16904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16905fi 16906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 16907$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 16908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 16909 CFLAGS="$xorg_testset_save_CFLAGS" 16910fi 16911 16912found="no" 16913 16914 if test $found = "no" ; then 16915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 16916 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16917 fi 16918 16919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 16920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 16921 fi 16922 16923 CFLAGS="$CFLAGS -Wreturn-type" 16924 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 16926$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 16927 cacheid=xorg_cv_cc_flag__Wreturn_type 16928 if eval \${$cacheid+:} false; then : 16929 $as_echo_n "(cached) " >&6 16930else 16931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16932/* end confdefs.h. */ 16933int i; 16934int 16935main () 16936{ 16937 16938 ; 16939 return 0; 16940} 16941_ACEOF 16942if ac_fn_c_try_link "$LINENO"; then : 16943 eval $cacheid=yes 16944else 16945 eval $cacheid=no 16946fi 16947rm -f core conftest.err conftest.$ac_objext \ 16948 conftest$ac_exeext conftest.$ac_ext 16949fi 16950 16951 16952 CFLAGS="$xorg_testset_save_CFLAGS" 16953 16954 eval supported=\$$cacheid 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 16956$as_echo "$supported" >&6; } 16957 if test "$supported" = "yes" ; then 16958 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 16959 found="yes" 16960 fi 16961 fi 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977xorg_testset_save_CFLAGS="$CFLAGS" 16978 16979if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 16980 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 16982$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 16983if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 16984 $as_echo_n "(cached) " >&6 16985else 16986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16987/* end confdefs.h. */ 16988int i; 16989_ACEOF 16990if ac_fn_c_try_compile "$LINENO"; then : 16991 xorg_cv_cc_flag_unknown_warning_option=yes 16992else 16993 xorg_cv_cc_flag_unknown_warning_option=no 16994fi 16995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16996fi 16997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 16998$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 16999 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17000 CFLAGS="$xorg_testset_save_CFLAGS" 17001fi 17002 17003if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17004 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17005 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17006 fi 17007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17009$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17010if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17011 $as_echo_n "(cached) " >&6 17012else 17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17014/* end confdefs.h. */ 17015int i; 17016_ACEOF 17017if ac_fn_c_try_compile "$LINENO"; then : 17018 xorg_cv_cc_flag_unused_command_line_argument=yes 17019else 17020 xorg_cv_cc_flag_unused_command_line_argument=no 17021fi 17022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17023fi 17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17025$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17026 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17027 CFLAGS="$xorg_testset_save_CFLAGS" 17028fi 17029 17030found="no" 17031 17032 if test $found = "no" ; then 17033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17035 fi 17036 17037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17039 fi 17040 17041 CFLAGS="$CFLAGS -Wtrigraphs" 17042 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 17044$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 17045 cacheid=xorg_cv_cc_flag__Wtrigraphs 17046 if eval \${$cacheid+:} false; then : 17047 $as_echo_n "(cached) " >&6 17048else 17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17050/* end confdefs.h. */ 17051int i; 17052int 17053main () 17054{ 17055 17056 ; 17057 return 0; 17058} 17059_ACEOF 17060if ac_fn_c_try_link "$LINENO"; then : 17061 eval $cacheid=yes 17062else 17063 eval $cacheid=no 17064fi 17065rm -f core conftest.err conftest.$ac_objext \ 17066 conftest$ac_exeext conftest.$ac_ext 17067fi 17068 17069 17070 CFLAGS="$xorg_testset_save_CFLAGS" 17071 17072 eval supported=\$$cacheid 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17074$as_echo "$supported" >&6; } 17075 if test "$supported" = "yes" ; then 17076 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 17077 found="yes" 17078 fi 17079 fi 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095xorg_testset_save_CFLAGS="$CFLAGS" 17096 17097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17102 $as_echo_n "(cached) " >&6 17103else 17104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17105/* end confdefs.h. */ 17106int i; 17107_ACEOF 17108if ac_fn_c_try_compile "$LINENO"; then : 17109 xorg_cv_cc_flag_unknown_warning_option=yes 17110else 17111 xorg_cv_cc_flag_unknown_warning_option=no 17112fi 17113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17114fi 17115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17118 CFLAGS="$xorg_testset_save_CFLAGS" 17119fi 17120 17121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17124 fi 17125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17129 $as_echo_n "(cached) " >&6 17130else 17131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17132/* end confdefs.h. */ 17133int i; 17134_ACEOF 17135if ac_fn_c_try_compile "$LINENO"; then : 17136 xorg_cv_cc_flag_unused_command_line_argument=yes 17137else 17138 xorg_cv_cc_flag_unused_command_line_argument=no 17139fi 17140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17141fi 17142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17145 CFLAGS="$xorg_testset_save_CFLAGS" 17146fi 17147 17148found="no" 17149 17150 if test $found = "no" ; then 17151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17153 fi 17154 17155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17157 fi 17158 17159 CFLAGS="$CFLAGS -Warray-bounds" 17160 17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 17162$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 17163 cacheid=xorg_cv_cc_flag__Warray_bounds 17164 if eval \${$cacheid+:} false; then : 17165 $as_echo_n "(cached) " >&6 17166else 17167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17168/* end confdefs.h. */ 17169int i; 17170int 17171main () 17172{ 17173 17174 ; 17175 return 0; 17176} 17177_ACEOF 17178if ac_fn_c_try_link "$LINENO"; then : 17179 eval $cacheid=yes 17180else 17181 eval $cacheid=no 17182fi 17183rm -f core conftest.err conftest.$ac_objext \ 17184 conftest$ac_exeext conftest.$ac_ext 17185fi 17186 17187 17188 CFLAGS="$xorg_testset_save_CFLAGS" 17189 17190 eval supported=\$$cacheid 17191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17192$as_echo "$supported" >&6; } 17193 if test "$supported" = "yes" ; then 17194 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 17195 found="yes" 17196 fi 17197 fi 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213xorg_testset_save_CFLAGS="$CFLAGS" 17214 17215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17220 $as_echo_n "(cached) " >&6 17221else 17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17223/* end confdefs.h. */ 17224int i; 17225_ACEOF 17226if ac_fn_c_try_compile "$LINENO"; then : 17227 xorg_cv_cc_flag_unknown_warning_option=yes 17228else 17229 xorg_cv_cc_flag_unknown_warning_option=no 17230fi 17231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17232fi 17233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17236 CFLAGS="$xorg_testset_save_CFLAGS" 17237fi 17238 17239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17242 fi 17243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17247 $as_echo_n "(cached) " >&6 17248else 17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17250/* end confdefs.h. */ 17251int i; 17252_ACEOF 17253if ac_fn_c_try_compile "$LINENO"; then : 17254 xorg_cv_cc_flag_unused_command_line_argument=yes 17255else 17256 xorg_cv_cc_flag_unused_command_line_argument=no 17257fi 17258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17259fi 17260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17263 CFLAGS="$xorg_testset_save_CFLAGS" 17264fi 17265 17266found="no" 17267 17268 if test $found = "no" ; then 17269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17271 fi 17272 17273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17275 fi 17276 17277 CFLAGS="$CFLAGS -Wwrite-strings" 17278 17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 17280$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 17281 cacheid=xorg_cv_cc_flag__Wwrite_strings 17282 if eval \${$cacheid+:} false; then : 17283 $as_echo_n "(cached) " >&6 17284else 17285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17286/* end confdefs.h. */ 17287int i; 17288int 17289main () 17290{ 17291 17292 ; 17293 return 0; 17294} 17295_ACEOF 17296if ac_fn_c_try_link "$LINENO"; then : 17297 eval $cacheid=yes 17298else 17299 eval $cacheid=no 17300fi 17301rm -f core conftest.err conftest.$ac_objext \ 17302 conftest$ac_exeext conftest.$ac_ext 17303fi 17304 17305 17306 CFLAGS="$xorg_testset_save_CFLAGS" 17307 17308 eval supported=\$$cacheid 17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17310$as_echo "$supported" >&6; } 17311 if test "$supported" = "yes" ; then 17312 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 17313 found="yes" 17314 fi 17315 fi 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331xorg_testset_save_CFLAGS="$CFLAGS" 17332 17333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17338 $as_echo_n "(cached) " >&6 17339else 17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17341/* end confdefs.h. */ 17342int i; 17343_ACEOF 17344if ac_fn_c_try_compile "$LINENO"; then : 17345 xorg_cv_cc_flag_unknown_warning_option=yes 17346else 17347 xorg_cv_cc_flag_unknown_warning_option=no 17348fi 17349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17350fi 17351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17354 CFLAGS="$xorg_testset_save_CFLAGS" 17355fi 17356 17357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17360 fi 17361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17365 $as_echo_n "(cached) " >&6 17366else 17367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17368/* end confdefs.h. */ 17369int i; 17370_ACEOF 17371if ac_fn_c_try_compile "$LINENO"; then : 17372 xorg_cv_cc_flag_unused_command_line_argument=yes 17373else 17374 xorg_cv_cc_flag_unused_command_line_argument=no 17375fi 17376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17377fi 17378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17381 CFLAGS="$xorg_testset_save_CFLAGS" 17382fi 17383 17384found="no" 17385 17386 if test $found = "no" ; then 17387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17389 fi 17390 17391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17393 fi 17394 17395 CFLAGS="$CFLAGS -Waddress" 17396 17397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 17398$as_echo_n "checking if $CC supports -Waddress... " >&6; } 17399 cacheid=xorg_cv_cc_flag__Waddress 17400 if eval \${$cacheid+:} false; then : 17401 $as_echo_n "(cached) " >&6 17402else 17403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17404/* end confdefs.h. */ 17405int i; 17406int 17407main () 17408{ 17409 17410 ; 17411 return 0; 17412} 17413_ACEOF 17414if ac_fn_c_try_link "$LINENO"; then : 17415 eval $cacheid=yes 17416else 17417 eval $cacheid=no 17418fi 17419rm -f core conftest.err conftest.$ac_objext \ 17420 conftest$ac_exeext conftest.$ac_ext 17421fi 17422 17423 17424 CFLAGS="$xorg_testset_save_CFLAGS" 17425 17426 eval supported=\$$cacheid 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17428$as_echo "$supported" >&6; } 17429 if test "$supported" = "yes" ; then 17430 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 17431 found="yes" 17432 fi 17433 fi 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449xorg_testset_save_CFLAGS="$CFLAGS" 17450 17451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17456 $as_echo_n "(cached) " >&6 17457else 17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17459/* end confdefs.h. */ 17460int i; 17461_ACEOF 17462if ac_fn_c_try_compile "$LINENO"; then : 17463 xorg_cv_cc_flag_unknown_warning_option=yes 17464else 17465 xorg_cv_cc_flag_unknown_warning_option=no 17466fi 17467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17468fi 17469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17472 CFLAGS="$xorg_testset_save_CFLAGS" 17473fi 17474 17475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17478 fi 17479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17483 $as_echo_n "(cached) " >&6 17484else 17485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17486/* end confdefs.h. */ 17487int i; 17488_ACEOF 17489if ac_fn_c_try_compile "$LINENO"; then : 17490 xorg_cv_cc_flag_unused_command_line_argument=yes 17491else 17492 xorg_cv_cc_flag_unused_command_line_argument=no 17493fi 17494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17495fi 17496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17499 CFLAGS="$xorg_testset_save_CFLAGS" 17500fi 17501 17502found="no" 17503 17504 if test $found = "no" ; then 17505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17507 fi 17508 17509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17511 fi 17512 17513 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 17514 17515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 17516$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 17517 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 17518 if eval \${$cacheid+:} false; then : 17519 $as_echo_n "(cached) " >&6 17520else 17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17522/* end confdefs.h. */ 17523int i; 17524int 17525main () 17526{ 17527 17528 ; 17529 return 0; 17530} 17531_ACEOF 17532if ac_fn_c_try_link "$LINENO"; then : 17533 eval $cacheid=yes 17534else 17535 eval $cacheid=no 17536fi 17537rm -f core conftest.err conftest.$ac_objext \ 17538 conftest$ac_exeext conftest.$ac_ext 17539fi 17540 17541 17542 CFLAGS="$xorg_testset_save_CFLAGS" 17543 17544 eval supported=\$$cacheid 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17546$as_echo "$supported" >&6; } 17547 if test "$supported" = "yes" ; then 17548 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 17549 found="yes" 17550 fi 17551 fi 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567xorg_testset_save_CFLAGS="$CFLAGS" 17568 17569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17574 $as_echo_n "(cached) " >&6 17575else 17576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17577/* end confdefs.h. */ 17578int i; 17579_ACEOF 17580if ac_fn_c_try_compile "$LINENO"; then : 17581 xorg_cv_cc_flag_unknown_warning_option=yes 17582else 17583 xorg_cv_cc_flag_unknown_warning_option=no 17584fi 17585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17586fi 17587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17590 CFLAGS="$xorg_testset_save_CFLAGS" 17591fi 17592 17593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17596 fi 17597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17601 $as_echo_n "(cached) " >&6 17602else 17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17604/* end confdefs.h. */ 17605int i; 17606_ACEOF 17607if ac_fn_c_try_compile "$LINENO"; then : 17608 xorg_cv_cc_flag_unused_command_line_argument=yes 17609else 17610 xorg_cv_cc_flag_unused_command_line_argument=no 17611fi 17612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17613fi 17614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17617 CFLAGS="$xorg_testset_save_CFLAGS" 17618fi 17619 17620found="no" 17621 17622 if test $found = "no" ; then 17623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17625 fi 17626 17627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17629 fi 17630 17631 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 17632 17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 17634$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 17635 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 17636 if eval \${$cacheid+:} false; then : 17637 $as_echo_n "(cached) " >&6 17638else 17639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17640/* end confdefs.h. */ 17641int i; 17642int 17643main () 17644{ 17645 17646 ; 17647 return 0; 17648} 17649_ACEOF 17650if ac_fn_c_try_link "$LINENO"; then : 17651 eval $cacheid=yes 17652else 17653 eval $cacheid=no 17654fi 17655rm -f core conftest.err conftest.$ac_objext \ 17656 conftest$ac_exeext conftest.$ac_ext 17657fi 17658 17659 17660 CFLAGS="$xorg_testset_save_CFLAGS" 17661 17662 eval supported=\$$cacheid 17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17664$as_echo "$supported" >&6; } 17665 if test "$supported" = "yes" ; then 17666 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 17667 found="yes" 17668 fi 17669 fi 17670 17671 17672fi 17673 17674 17675 17676 17677 17678 17679 17680 CWARNFLAGS="$BASE_CFLAGS" 17681 if test "x$GCC" = xyes ; then 17682 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 17683 fi 17684 17685 17686 17687 17688 17689 17690 17691 17692# Check whether --enable-strict-compilation was given. 17693if test "${enable_strict_compilation+set}" = set; then : 17694 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 17695else 17696 STRICT_COMPILE=no 17697fi 17698 17699 17700 17701 17702 17703 17704STRICT_CFLAGS="" 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718xorg_testset_save_CFLAGS="$CFLAGS" 17719 17720if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17721 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17723$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17724if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17725 $as_echo_n "(cached) " >&6 17726else 17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17728/* end confdefs.h. */ 17729int i; 17730_ACEOF 17731if ac_fn_c_try_compile "$LINENO"; then : 17732 xorg_cv_cc_flag_unknown_warning_option=yes 17733else 17734 xorg_cv_cc_flag_unknown_warning_option=no 17735fi 17736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17737fi 17738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17739$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17740 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17741 CFLAGS="$xorg_testset_save_CFLAGS" 17742fi 17743 17744if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17746 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17747 fi 17748 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17750$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17751if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17752 $as_echo_n "(cached) " >&6 17753else 17754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17755/* end confdefs.h. */ 17756int i; 17757_ACEOF 17758if ac_fn_c_try_compile "$LINENO"; then : 17759 xorg_cv_cc_flag_unused_command_line_argument=yes 17760else 17761 xorg_cv_cc_flag_unused_command_line_argument=no 17762fi 17763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17764fi 17765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17766$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17767 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17768 CFLAGS="$xorg_testset_save_CFLAGS" 17769fi 17770 17771found="no" 17772 17773 if test $found = "no" ; then 17774 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17775 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17776 fi 17777 17778 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17779 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17780 fi 17781 17782 CFLAGS="$CFLAGS -pedantic" 17783 17784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 17785$as_echo_n "checking if $CC supports -pedantic... " >&6; } 17786 cacheid=xorg_cv_cc_flag__pedantic 17787 if eval \${$cacheid+:} false; then : 17788 $as_echo_n "(cached) " >&6 17789else 17790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17791/* end confdefs.h. */ 17792int i; 17793int 17794main () 17795{ 17796 17797 ; 17798 return 0; 17799} 17800_ACEOF 17801if ac_fn_c_try_link "$LINENO"; then : 17802 eval $cacheid=yes 17803else 17804 eval $cacheid=no 17805fi 17806rm -f core conftest.err conftest.$ac_objext \ 17807 conftest$ac_exeext conftest.$ac_ext 17808fi 17809 17810 17811 CFLAGS="$xorg_testset_save_CFLAGS" 17812 17813 eval supported=\$$cacheid 17814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17815$as_echo "$supported" >&6; } 17816 if test "$supported" = "yes" ; then 17817 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 17818 found="yes" 17819 fi 17820 fi 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836xorg_testset_save_CFLAGS="$CFLAGS" 17837 17838if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 17839 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 17841$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 17842if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 17843 $as_echo_n "(cached) " >&6 17844else 17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17846/* end confdefs.h. */ 17847int i; 17848_ACEOF 17849if ac_fn_c_try_compile "$LINENO"; then : 17850 xorg_cv_cc_flag_unknown_warning_option=yes 17851else 17852 xorg_cv_cc_flag_unknown_warning_option=no 17853fi 17854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17855fi 17856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 17857$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 17858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 17859 CFLAGS="$xorg_testset_save_CFLAGS" 17860fi 17861 17862if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 17863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17864 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17865 fi 17866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 17868$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 17869if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 17870 $as_echo_n "(cached) " >&6 17871else 17872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17873/* end confdefs.h. */ 17874int i; 17875_ACEOF 17876if ac_fn_c_try_compile "$LINENO"; then : 17877 xorg_cv_cc_flag_unused_command_line_argument=yes 17878else 17879 xorg_cv_cc_flag_unused_command_line_argument=no 17880fi 17881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17882fi 17883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 17884$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 17885 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 17886 CFLAGS="$xorg_testset_save_CFLAGS" 17887fi 17888 17889found="no" 17890 17891 if test $found = "no" ; then 17892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17893 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17894 fi 17895 17896 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17897 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17898 fi 17899 17900 CFLAGS="$CFLAGS -Werror" 17901 17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 17903$as_echo_n "checking if $CC supports -Werror... " >&6; } 17904 cacheid=xorg_cv_cc_flag__Werror 17905 if eval \${$cacheid+:} false; then : 17906 $as_echo_n "(cached) " >&6 17907else 17908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17909/* end confdefs.h. */ 17910int i; 17911int 17912main () 17913{ 17914 17915 ; 17916 return 0; 17917} 17918_ACEOF 17919if ac_fn_c_try_link "$LINENO"; then : 17920 eval $cacheid=yes 17921else 17922 eval $cacheid=no 17923fi 17924rm -f core conftest.err conftest.$ac_objext \ 17925 conftest$ac_exeext conftest.$ac_ext 17926fi 17927 17928 17929 CFLAGS="$xorg_testset_save_CFLAGS" 17930 17931 eval supported=\$$cacheid 17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17933$as_echo "$supported" >&6; } 17934 if test "$supported" = "yes" ; then 17935 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 17936 found="yes" 17937 fi 17938 fi 17939 17940 if test $found = "no" ; then 17941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 17942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 17943 fi 17944 17945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 17946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 17947 fi 17948 17949 CFLAGS="$CFLAGS -errwarn" 17950 17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 17952$as_echo_n "checking if $CC supports -errwarn... " >&6; } 17953 cacheid=xorg_cv_cc_flag__errwarn 17954 if eval \${$cacheid+:} false; then : 17955 $as_echo_n "(cached) " >&6 17956else 17957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17958/* end confdefs.h. */ 17959int i; 17960int 17961main () 17962{ 17963 17964 ; 17965 return 0; 17966} 17967_ACEOF 17968if ac_fn_c_try_link "$LINENO"; then : 17969 eval $cacheid=yes 17970else 17971 eval $cacheid=no 17972fi 17973rm -f core conftest.err conftest.$ac_objext \ 17974 conftest$ac_exeext conftest.$ac_ext 17975fi 17976 17977 17978 CFLAGS="$xorg_testset_save_CFLAGS" 17979 17980 eval supported=\$$cacheid 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 17982$as_echo "$supported" >&6; } 17983 if test "$supported" = "yes" ; then 17984 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 17985 found="yes" 17986 fi 17987 fi 17988 17989 17990 17991# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 17992# activate it with -Werror, so we add it here explicitly. 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006xorg_testset_save_CFLAGS="$CFLAGS" 18007 18008if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 18009 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 18011$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 18012if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 18013 $as_echo_n "(cached) " >&6 18014else 18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18016/* end confdefs.h. */ 18017int i; 18018_ACEOF 18019if ac_fn_c_try_compile "$LINENO"; then : 18020 xorg_cv_cc_flag_unknown_warning_option=yes 18021else 18022 xorg_cv_cc_flag_unknown_warning_option=no 18023fi 18024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18025fi 18026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 18027$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 18028 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 18029 CFLAGS="$xorg_testset_save_CFLAGS" 18030fi 18031 18032if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 18033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18035 fi 18036 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 18038$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 18039if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 18040 $as_echo_n "(cached) " >&6 18041else 18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18043/* end confdefs.h. */ 18044int i; 18045_ACEOF 18046if ac_fn_c_try_compile "$LINENO"; then : 18047 xorg_cv_cc_flag_unused_command_line_argument=yes 18048else 18049 xorg_cv_cc_flag_unused_command_line_argument=no 18050fi 18051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18052fi 18053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 18054$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 18055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 18056 CFLAGS="$xorg_testset_save_CFLAGS" 18057fi 18058 18059found="no" 18060 18061 if test $found = "no" ; then 18062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 18063 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 18064 fi 18065 18066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 18067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 18068 fi 18069 18070 CFLAGS="$CFLAGS -Werror=attributes" 18071 18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 18073$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 18074 cacheid=xorg_cv_cc_flag__Werror_attributes 18075 if eval \${$cacheid+:} false; then : 18076 $as_echo_n "(cached) " >&6 18077else 18078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18079/* end confdefs.h. */ 18080int i; 18081int 18082main () 18083{ 18084 18085 ; 18086 return 0; 18087} 18088_ACEOF 18089if ac_fn_c_try_link "$LINENO"; then : 18090 eval $cacheid=yes 18091else 18092 eval $cacheid=no 18093fi 18094rm -f core conftest.err conftest.$ac_objext \ 18095 conftest$ac_exeext conftest.$ac_ext 18096fi 18097 18098 18099 CFLAGS="$xorg_testset_save_CFLAGS" 18100 18101 eval supported=\$$cacheid 18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 18103$as_echo "$supported" >&6; } 18104 if test "$supported" = "yes" ; then 18105 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 18106 found="yes" 18107 fi 18108 fi 18109 18110 18111 18112if test "x$STRICT_COMPILE" = "xyes"; then 18113 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 18114 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 18115fi 18116 18117 18118 18119 18120 18121 18122cat >>confdefs.h <<_ACEOF 18123#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 18124_ACEOF 18125 18126 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 18127 if test "x$PVM" = "x"; then 18128 PVM="0" 18129 fi 18130 18131cat >>confdefs.h <<_ACEOF 18132#define PACKAGE_VERSION_MINOR $PVM 18133_ACEOF 18134 18135 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 18136 if test "x$PVP" = "x"; then 18137 PVP="0" 18138 fi 18139 18140cat >>confdefs.h <<_ACEOF 18141#define PACKAGE_VERSION_PATCHLEVEL $PVP 18142_ACEOF 18143 18144 18145 18146CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 18147mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 18148|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 18149echo 'git directory not found: installing possibly empty changelog.' >&2)" 18150 18151 18152 18153 18154macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 18155INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 18156mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 18157|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 18158echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 18159 18160 18161 18162 18163 18164 18165if test x$APP_MAN_SUFFIX = x ; then 18166 APP_MAN_SUFFIX=1 18167fi 18168if test x$APP_MAN_DIR = x ; then 18169 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 18170fi 18171 18172if test x$LIB_MAN_SUFFIX = x ; then 18173 LIB_MAN_SUFFIX=3 18174fi 18175if test x$LIB_MAN_DIR = x ; then 18176 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 18177fi 18178 18179if test x$FILE_MAN_SUFFIX = x ; then 18180 case $host_os in 18181 solaris*) FILE_MAN_SUFFIX=4 ;; 18182 *) FILE_MAN_SUFFIX=5 ;; 18183 esac 18184fi 18185if test x$FILE_MAN_DIR = x ; then 18186 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 18187fi 18188 18189if test x$MISC_MAN_SUFFIX = x ; then 18190 case $host_os in 18191 solaris*) MISC_MAN_SUFFIX=5 ;; 18192 *) MISC_MAN_SUFFIX=7 ;; 18193 esac 18194fi 18195if test x$MISC_MAN_DIR = x ; then 18196 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 18197fi 18198 18199if test x$DRIVER_MAN_SUFFIX = x ; then 18200 case $host_os in 18201 solaris*) DRIVER_MAN_SUFFIX=7 ;; 18202 *) DRIVER_MAN_SUFFIX=4 ;; 18203 esac 18204fi 18205if test x$DRIVER_MAN_DIR = x ; then 18206 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 18207fi 18208 18209if test x$ADMIN_MAN_SUFFIX = x ; then 18210 case $host_os in 18211 solaris*) ADMIN_MAN_SUFFIX=1m ;; 18212 *) ADMIN_MAN_SUFFIX=8 ;; 18213 esac 18214fi 18215if test x$ADMIN_MAN_DIR = x ; then 18216 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 18217fi 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233XORG_MAN_PAGE="X Version 11" 18234 18235MAN_SUBSTS="\ 18236 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18237 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 18238 -e 's|__xservername__|Xorg|g' \ 18239 -e 's|__xconfigfile__|xorg.conf|g' \ 18240 -e 's|__projectroot__|\$(prefix)|g' \ 18241 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 18242 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 18243 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 18244 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 18245 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 18246 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 18247 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 18248 18249 18250 18251# Check whether --enable-silent-rules was given. 18252if test "${enable_silent_rules+set}" = set; then : 18253 enableval=$enable_silent_rules; 18254fi 18255 18256case $enable_silent_rules in # ((( 18257 yes) AM_DEFAULT_VERBOSITY=0;; 18258 no) AM_DEFAULT_VERBOSITY=1;; 18259 *) AM_DEFAULT_VERBOSITY=0;; 18260esac 18261am_make=${MAKE-make} 18262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 18263$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 18264if ${am_cv_make_support_nested_variables+:} false; then : 18265 $as_echo_n "(cached) " >&6 18266else 18267 if $as_echo 'TRUE=$(BAR$(V)) 18268BAR0=false 18269BAR1=true 18270V=1 18271am__doit: 18272 @$(TRUE) 18273.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 18274 am_cv_make_support_nested_variables=yes 18275else 18276 am_cv_make_support_nested_variables=no 18277fi 18278fi 18279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 18280$as_echo "$am_cv_make_support_nested_variables" >&6; } 18281if test $am_cv_make_support_nested_variables = yes; then 18282 AM_V='$(V)' 18283 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 18284else 18285 AM_V=$AM_DEFAULT_VERBOSITY 18286 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 18287fi 18288AM_BACKSLASH='\' 18289 18290 18291 18292# Obtain compiler/linker options from server and required extensions 18293 18294pkg_failed=no 18295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5 18296$as_echo_n "checking for XORG... " >&6; } 18297 18298if test -n "$XORG_CFLAGS"; then 18299 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS" 18300 elif test -n "$PKG_CONFIG"; then 18301 if test -n "$PKG_CONFIG" && \ 18302 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.12 xproto inputproto >= 2.1.99.3\""; } >&5 18303 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.12 xproto inputproto >= 2.1.99.3") 2>&5 18304 ac_status=$? 18305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18306 test $ac_status = 0; }; then 18307 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.12 xproto inputproto >= 2.1.99.3" 2>/dev/null` 18308 test "x$?" != "x0" && pkg_failed=yes 18309else 18310 pkg_failed=yes 18311fi 18312 else 18313 pkg_failed=untried 18314fi 18315if test -n "$XORG_LIBS"; then 18316 pkg_cv_XORG_LIBS="$XORG_LIBS" 18317 elif test -n "$PKG_CONFIG"; then 18318 if test -n "$PKG_CONFIG" && \ 18319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.12 xproto inputproto >= 2.1.99.3\""; } >&5 18320 ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.12 xproto inputproto >= 2.1.99.3") 2>&5 18321 ac_status=$? 18322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18323 test $ac_status = 0; }; then 18324 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.12 xproto inputproto >= 2.1.99.3" 2>/dev/null` 18325 test "x$?" != "x0" && pkg_failed=yes 18326else 18327 pkg_failed=yes 18328fi 18329 else 18330 pkg_failed=untried 18331fi 18332 18333 18334 18335if test $pkg_failed = yes; then 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18337$as_echo "no" >&6; } 18338 18339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18340 _pkg_short_errors_supported=yes 18341else 18342 _pkg_short_errors_supported=no 18343fi 18344 if test $_pkg_short_errors_supported = yes; then 18345 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xorg-server >= 1.12 xproto inputproto >= 2.1.99.3" 2>&1` 18346 else 18347 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xorg-server >= 1.12 xproto inputproto >= 2.1.99.3" 2>&1` 18348 fi 18349 # Put the nasty error message in config.log where it belongs 18350 echo "$XORG_PKG_ERRORS" >&5 18351 18352 as_fn_error $? "Package requirements (xorg-server >= 1.12 xproto inputproto >= 2.1.99.3) were not met: 18353 18354$XORG_PKG_ERRORS 18355 18356Consider adjusting the PKG_CONFIG_PATH environment variable if you 18357installed software in a non-standard prefix. 18358 18359Alternatively, you may set the environment variables XORG_CFLAGS 18360and XORG_LIBS to avoid the need to call pkg-config. 18361See the pkg-config man page for more details." "$LINENO" 5 18362elif test $pkg_failed = untried; then 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18364$as_echo "no" >&6; } 18365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18367as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18368is in your PATH or set the PKG_CONFIG environment variable to the full 18369path to pkg-config. 18370 18371Alternatively, you may set the environment variables XORG_CFLAGS 18372and XORG_LIBS to avoid the need to call pkg-config. 18373See the pkg-config man page for more details. 18374 18375To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18376See \`config.log' for more details" "$LINENO" 5; } 18377else 18378 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS 18379 XORG_LIBS=$pkg_cv_XORG_LIBS 18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18381$as_echo "yes" >&6; } 18382 18383fi 18384 18385pkg_failed=no 18386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5 18387$as_echo_n "checking for UDEV... " >&6; } 18388 18389if test -n "$UDEV_CFLAGS"; then 18390 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" 18391 elif test -n "$PKG_CONFIG"; then 18392 if test -n "$PKG_CONFIG" && \ 18393 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 18394 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 18395 ac_status=$? 18396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18397 test $ac_status = 0; }; then 18398 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null` 18399 test "x$?" != "x0" && pkg_failed=yes 18400else 18401 pkg_failed=yes 18402fi 18403 else 18404 pkg_failed=untried 18405fi 18406if test -n "$UDEV_LIBS"; then 18407 pkg_cv_UDEV_LIBS="$UDEV_LIBS" 18408 elif test -n "$PKG_CONFIG"; then 18409 if test -n "$PKG_CONFIG" && \ 18410 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5 18411 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5 18412 ac_status=$? 18413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18414 test $ac_status = 0; }; then 18415 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null` 18416 test "x$?" != "x0" && pkg_failed=yes 18417else 18418 pkg_failed=yes 18419fi 18420 else 18421 pkg_failed=untried 18422fi 18423 18424 18425 18426if test $pkg_failed = yes; then 18427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18428$as_echo "no" >&6; } 18429 18430if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18431 _pkg_short_errors_supported=yes 18432else 18433 _pkg_short_errors_supported=no 18434fi 18435 if test $_pkg_short_errors_supported = yes; then 18436 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1` 18437 else 18438 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1` 18439 fi 18440 # Put the nasty error message in config.log where it belongs 18441 echo "$UDEV_PKG_ERRORS" >&5 18442 18443 as_fn_error $? "Package requirements (libudev) were not met: 18444 18445$UDEV_PKG_ERRORS 18446 18447Consider adjusting the PKG_CONFIG_PATH environment variable if you 18448installed software in a non-standard prefix. 18449 18450Alternatively, you may set the environment variables UDEV_CFLAGS 18451and UDEV_LIBS to avoid the need to call pkg-config. 18452See the pkg-config man page for more details." "$LINENO" 5 18453elif test $pkg_failed = untried; then 18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18455$as_echo "no" >&6; } 18456 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18457$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18458as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18459is in your PATH or set the PKG_CONFIG environment variable to the full 18460path to pkg-config. 18461 18462Alternatively, you may set the environment variables UDEV_CFLAGS 18463and UDEV_LIBS to avoid the need to call pkg-config. 18464See the pkg-config man page for more details. 18465 18466To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18467See \`config.log' for more details" "$LINENO" 5; } 18468else 18469 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS 18470 UDEV_LIBS=$pkg_cv_UDEV_LIBS 18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18472$as_echo "yes" >&6; } 18473 18474fi 18475 18476 18477pkg_failed=no 18478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBEVDEV" >&5 18479$as_echo_n "checking for LIBEVDEV... " >&6; } 18480 18481if test -n "$LIBEVDEV_CFLAGS"; then 18482 pkg_cv_LIBEVDEV_CFLAGS="$LIBEVDEV_CFLAGS" 18483 elif test -n "$PKG_CONFIG"; then 18484 if test -n "$PKG_CONFIG" && \ 18485 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevdev >= 0.4\""; } >&5 18486 ($PKG_CONFIG --exists --print-errors "libevdev >= 0.4") 2>&5 18487 ac_status=$? 18488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18489 test $ac_status = 0; }; then 18490 pkg_cv_LIBEVDEV_CFLAGS=`$PKG_CONFIG --cflags "libevdev >= 0.4" 2>/dev/null` 18491 test "x$?" != "x0" && pkg_failed=yes 18492else 18493 pkg_failed=yes 18494fi 18495 else 18496 pkg_failed=untried 18497fi 18498if test -n "$LIBEVDEV_LIBS"; then 18499 pkg_cv_LIBEVDEV_LIBS="$LIBEVDEV_LIBS" 18500 elif test -n "$PKG_CONFIG"; then 18501 if test -n "$PKG_CONFIG" && \ 18502 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libevdev >= 0.4\""; } >&5 18503 ($PKG_CONFIG --exists --print-errors "libevdev >= 0.4") 2>&5 18504 ac_status=$? 18505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18506 test $ac_status = 0; }; then 18507 pkg_cv_LIBEVDEV_LIBS=`$PKG_CONFIG --libs "libevdev >= 0.4" 2>/dev/null` 18508 test "x$?" != "x0" && pkg_failed=yes 18509else 18510 pkg_failed=yes 18511fi 18512 else 18513 pkg_failed=untried 18514fi 18515 18516 18517 18518if test $pkg_failed = yes; then 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18520$as_echo "no" >&6; } 18521 18522if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18523 _pkg_short_errors_supported=yes 18524else 18525 _pkg_short_errors_supported=no 18526fi 18527 if test $_pkg_short_errors_supported = yes; then 18528 LIBEVDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libevdev >= 0.4" 2>&1` 18529 else 18530 LIBEVDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libevdev >= 0.4" 2>&1` 18531 fi 18532 # Put the nasty error message in config.log where it belongs 18533 echo "$LIBEVDEV_PKG_ERRORS" >&5 18534 18535 as_fn_error $? "Package requirements (libevdev >= 0.4) were not met: 18536 18537$LIBEVDEV_PKG_ERRORS 18538 18539Consider adjusting the PKG_CONFIG_PATH environment variable if you 18540installed software in a non-standard prefix. 18541 18542Alternatively, you may set the environment variables LIBEVDEV_CFLAGS 18543and LIBEVDEV_LIBS to avoid the need to call pkg-config. 18544See the pkg-config man page for more details." "$LINENO" 5 18545elif test $pkg_failed = untried; then 18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18547$as_echo "no" >&6; } 18548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18550as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18551is in your PATH or set the PKG_CONFIG environment variable to the full 18552path to pkg-config. 18553 18554Alternatively, you may set the environment variables LIBEVDEV_CFLAGS 18555and LIBEVDEV_LIBS to avoid the need to call pkg-config. 18556See the pkg-config man page for more details. 18557 18558To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18559See \`config.log' for more details" "$LINENO" 5; } 18560else 18561 LIBEVDEV_CFLAGS=$pkg_cv_LIBEVDEV_CFLAGS 18562 LIBEVDEV_LIBS=$pkg_cv_LIBEVDEV_LIBS 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18564$as_echo "yes" >&6; } 18565 18566fi 18567 18568pkg_failed=no 18569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MTDEV" >&5 18570$as_echo_n "checking for MTDEV... " >&6; } 18571 18572if test -n "$MTDEV_CFLAGS"; then 18573 pkg_cv_MTDEV_CFLAGS="$MTDEV_CFLAGS" 18574 elif test -n "$PKG_CONFIG"; then 18575 if test -n "$PKG_CONFIG" && \ 18576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mtdev\""; } >&5 18577 ($PKG_CONFIG --exists --print-errors "mtdev") 2>&5 18578 ac_status=$? 18579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18580 test $ac_status = 0; }; then 18581 pkg_cv_MTDEV_CFLAGS=`$PKG_CONFIG --cflags "mtdev" 2>/dev/null` 18582 test "x$?" != "x0" && pkg_failed=yes 18583else 18584 pkg_failed=yes 18585fi 18586 else 18587 pkg_failed=untried 18588fi 18589if test -n "$MTDEV_LIBS"; then 18590 pkg_cv_MTDEV_LIBS="$MTDEV_LIBS" 18591 elif test -n "$PKG_CONFIG"; then 18592 if test -n "$PKG_CONFIG" && \ 18593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mtdev\""; } >&5 18594 ($PKG_CONFIG --exists --print-errors "mtdev") 2>&5 18595 ac_status=$? 18596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18597 test $ac_status = 0; }; then 18598 pkg_cv_MTDEV_LIBS=`$PKG_CONFIG --libs "mtdev" 2>/dev/null` 18599 test "x$?" != "x0" && pkg_failed=yes 18600else 18601 pkg_failed=yes 18602fi 18603 else 18604 pkg_failed=untried 18605fi 18606 18607 18608 18609if test $pkg_failed = yes; then 18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18611$as_echo "no" >&6; } 18612 18613if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 18614 _pkg_short_errors_supported=yes 18615else 18616 _pkg_short_errors_supported=no 18617fi 18618 if test $_pkg_short_errors_supported = yes; then 18619 MTDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mtdev" 2>&1` 18620 else 18621 MTDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mtdev" 2>&1` 18622 fi 18623 # Put the nasty error message in config.log where it belongs 18624 echo "$MTDEV_PKG_ERRORS" >&5 18625 18626 as_fn_error $? "Package requirements (mtdev) were not met: 18627 18628$MTDEV_PKG_ERRORS 18629 18630Consider adjusting the PKG_CONFIG_PATH environment variable if you 18631installed software in a non-standard prefix. 18632 18633Alternatively, you may set the environment variables MTDEV_CFLAGS 18634and MTDEV_LIBS to avoid the need to call pkg-config. 18635See the pkg-config man page for more details." "$LINENO" 5 18636elif test $pkg_failed = untried; then 18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18638$as_echo "no" >&6; } 18639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18641as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 18642is in your PATH or set the PKG_CONFIG environment variable to the full 18643path to pkg-config. 18644 18645Alternatively, you may set the environment variables MTDEV_CFLAGS 18646and MTDEV_LIBS to avoid the need to call pkg-config. 18647See the pkg-config man page for more details. 18648 18649To get pkg-config, see <http://pkg-config.freedesktop.org/>. 18650See \`config.log' for more details" "$LINENO" 5; } 18651else 18652 MTDEV_CFLAGS=$pkg_cv_MTDEV_CFLAGS 18653 MTDEV_LIBS=$pkg_cv_MTDEV_LIBS 18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18655$as_echo "yes" >&6; } 18656 18657fi 18658 18659# Define a configure option for an alternate input module directory 18660 18661# Check whether --with-xorg-module-dir was given. 18662if test "${with_xorg_module_dir+set}" = set; then : 18663 withval=$with_xorg_module_dir; moduledir="$withval" 18664else 18665 moduledir="$libdir/xorg/modules" 18666fi 18667 18668inputdir=${moduledir}/input 18669 18670 18671 18672# Check whether --with-xorg-conf-dir was given. 18673if test "${with_xorg_conf_dir+set}" = set; then : 18674 withval=$with_xorg_conf_dir; xorgconfdir="$withval" 18675else 18676 xorgconfdir="$prefix/share/X11/xorg.conf.d" 18677fi 18678 18679 18680 18681# X Server SDK location is required to install evdev header files 18682# This location is also relayed in the xorg-evdev.pc file 18683sdkdir=`$PKG_CONFIG --variable=sdkdir xorg-server` 18684 18685# Workaround overriding sdkdir to be able to create a tarball when user has no 18686# write permission in sdkdir. See DISTCHECK_CONFIGURE_FLAGS in Makefile.am 18687 18688# Check whether --with-sdkdir was given. 18689if test "${with_sdkdir+set}" = set; then : 18690 withval=$with_sdkdir; sdkdir="$withval" 18691fi 18692 18693 18694 18695DRIVER_NAME=evdev 18696 18697 18698ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile include/Makefile xorg-evdev.pc" 18699 18700cat >confcache <<\_ACEOF 18701# This file is a shell script that caches the results of configure 18702# tests run on this system so they can be shared between configure 18703# scripts and configure runs, see configure's option --config-cache. 18704# It is not useful on other systems. If it contains results you don't 18705# want to keep, you may remove or edit it. 18706# 18707# config.status only pays attention to the cache file if you give it 18708# the --recheck option to rerun configure. 18709# 18710# `ac_cv_env_foo' variables (set or unset) will be overridden when 18711# loading this file, other *unset* `ac_cv_foo' will be assigned the 18712# following values. 18713 18714_ACEOF 18715 18716# The following way of writing the cache mishandles newlines in values, 18717# but we know of no workaround that is simple, portable, and efficient. 18718# So, we kill variables containing newlines. 18719# Ultrix sh set writes to stderr and can't be redirected directly, 18720# and sets the high bit in the cache file unless we assign to the vars. 18721( 18722 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 18723 eval ac_val=\$$ac_var 18724 case $ac_val in #( 18725 *${as_nl}*) 18726 case $ac_var in #( 18727 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 18728$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 18729 esac 18730 case $ac_var in #( 18731 _ | IFS | as_nl) ;; #( 18732 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 18733 *) { eval $ac_var=; unset $ac_var;} ;; 18734 esac ;; 18735 esac 18736 done 18737 18738 (set) 2>&1 | 18739 case $as_nl`(ac_space=' '; set) 2>&1` in #( 18740 *${as_nl}ac_space=\ *) 18741 # `set' does not quote correctly, so add quotes: double-quote 18742 # substitution turns \\\\ into \\, and sed turns \\ into \. 18743 sed -n \ 18744 "s/'/'\\\\''/g; 18745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18746 ;; #( 18747 *) 18748 # `set' quotes correctly as required by POSIX, so do not add quotes. 18749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18750 ;; 18751 esac | 18752 sort 18753) | 18754 sed ' 18755 /^ac_cv_env_/b end 18756 t clear 18757 :clear 18758 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18759 t end 18760 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18761 :end' >>confcache 18762if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18763 if test -w "$cache_file"; then 18764 if test "x$cache_file" != "x/dev/null"; then 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18766$as_echo "$as_me: updating cache $cache_file" >&6;} 18767 if test ! -f "$cache_file" || test -h "$cache_file"; then 18768 cat confcache >"$cache_file" 18769 else 18770 case $cache_file in #( 18771 */* | ?:*) 18772 mv -f confcache "$cache_file"$$ && 18773 mv -f "$cache_file"$$ "$cache_file" ;; #( 18774 *) 18775 mv -f confcache "$cache_file" ;; 18776 esac 18777 fi 18778 fi 18779 else 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18781$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18782 fi 18783fi 18784rm -f confcache 18785 18786test "x$prefix" = xNONE && prefix=$ac_default_prefix 18787# Let make expand exec_prefix. 18788test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18789 18790DEFS=-DHAVE_CONFIG_H 18791 18792ac_libobjs= 18793ac_ltlibobjs= 18794U= 18795for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18796 # 1. Remove the extension, and $U if already installed. 18797 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18798 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18799 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18800 # will be set to the directory where LIBOBJS objects are built. 18801 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18802 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18803done 18804LIBOBJS=$ac_libobjs 18805 18806LTLIBOBJS=$ac_ltlibobjs 18807 18808 18809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 18810$as_echo_n "checking that generated files are newer than configure... " >&6; } 18811 if test -n "$am_sleep_pid"; then 18812 # Hide warnings about reused PIDs. 18813 wait $am_sleep_pid 2>/dev/null 18814 fi 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 18816$as_echo "done" >&6; } 18817 if test -n "$EXEEXT"; then 18818 am__EXEEXT_TRUE= 18819 am__EXEEXT_FALSE='#' 18820else 18821 am__EXEEXT_TRUE='#' 18822 am__EXEEXT_FALSE= 18823fi 18824 18825if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18826 as_fn_error $? "conditional \"AMDEP\" was never defined. 18827Usually this means the macro was only invoked conditionally." "$LINENO" 5 18828fi 18829if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18830 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18831Usually this means the macro was only invoked conditionally." "$LINENO" 5 18832fi 18833 18834: "${CONFIG_STATUS=./config.status}" 18835ac_write_fail=0 18836ac_clean_files_save=$ac_clean_files 18837ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18838{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18839$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18840as_write_fail=0 18841cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18842#! $SHELL 18843# Generated by $as_me. 18844# Run this file to recreate the current configuration. 18845# Compiler output produced by configure, useful for debugging 18846# configure, is in config.log if it exists. 18847 18848debug=false 18849ac_cs_recheck=false 18850ac_cs_silent=false 18851 18852SHELL=\${CONFIG_SHELL-$SHELL} 18853export SHELL 18854_ASEOF 18855cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18856## -------------------- ## 18857## M4sh Initialization. ## 18858## -------------------- ## 18859 18860# Be more Bourne compatible 18861DUALCASE=1; export DUALCASE # for MKS sh 18862if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18863 emulate sh 18864 NULLCMD=: 18865 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18866 # is contrary to our usage. Disable this feature. 18867 alias -g '${1+"$@"}'='"$@"' 18868 setopt NO_GLOB_SUBST 18869else 18870 case `(set -o) 2>/dev/null` in #( 18871 *posix*) : 18872 set -o posix ;; #( 18873 *) : 18874 ;; 18875esac 18876fi 18877 18878 18879as_nl=' 18880' 18881export as_nl 18882# Printing a long string crashes Solaris 7 /usr/bin/printf. 18883as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18884as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18885as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18886# Prefer a ksh shell builtin over an external printf program on Solaris, 18887# but without wasting forks for bash or zsh. 18888if test -z "$BASH_VERSION$ZSH_VERSION" \ 18889 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18890 as_echo='print -r --' 18891 as_echo_n='print -rn --' 18892elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18893 as_echo='printf %s\n' 18894 as_echo_n='printf %s' 18895else 18896 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18897 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18898 as_echo_n='/usr/ucb/echo -n' 18899 else 18900 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18901 as_echo_n_body='eval 18902 arg=$1; 18903 case $arg in #( 18904 *"$as_nl"*) 18905 expr "X$arg" : "X\\(.*\\)$as_nl"; 18906 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18907 esac; 18908 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18909 ' 18910 export as_echo_n_body 18911 as_echo_n='sh -c $as_echo_n_body as_echo' 18912 fi 18913 export as_echo_body 18914 as_echo='sh -c $as_echo_body as_echo' 18915fi 18916 18917# The user is always right. 18918if test "${PATH_SEPARATOR+set}" != set; then 18919 PATH_SEPARATOR=: 18920 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18921 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18922 PATH_SEPARATOR=';' 18923 } 18924fi 18925 18926 18927# IFS 18928# We need space, tab and new line, in precisely that order. Quoting is 18929# there to prevent editors from complaining about space-tab. 18930# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18931# splitting by setting IFS to empty value.) 18932IFS=" "" $as_nl" 18933 18934# Find who we are. Look in the path if we contain no directory separator. 18935as_myself= 18936case $0 in #(( 18937 *[\\/]* ) as_myself=$0 ;; 18938 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18939for as_dir in $PATH 18940do 18941 IFS=$as_save_IFS 18942 test -z "$as_dir" && as_dir=. 18943 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18944 done 18945IFS=$as_save_IFS 18946 18947 ;; 18948esac 18949# We did not find ourselves, most probably we were run as `sh COMMAND' 18950# in which case we are not to be found in the path. 18951if test "x$as_myself" = x; then 18952 as_myself=$0 18953fi 18954if test ! -f "$as_myself"; then 18955 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18956 exit 1 18957fi 18958 18959# Unset variables that we do not need and which cause bugs (e.g. in 18960# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18961# suppresses any "Segmentation fault" message there. '((' could 18962# trigger a bug in pdksh 5.2.14. 18963for as_var in BASH_ENV ENV MAIL MAILPATH 18964do eval test x\${$as_var+set} = xset \ 18965 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18966done 18967PS1='$ ' 18968PS2='> ' 18969PS4='+ ' 18970 18971# NLS nuisances. 18972LC_ALL=C 18973export LC_ALL 18974LANGUAGE=C 18975export LANGUAGE 18976 18977# CDPATH. 18978(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18979 18980 18981# as_fn_error STATUS ERROR [LINENO LOG_FD] 18982# ---------------------------------------- 18983# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18984# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18985# script with STATUS, using 1 if that was 0. 18986as_fn_error () 18987{ 18988 as_status=$1; test $as_status -eq 0 && as_status=1 18989 if test "$4"; then 18990 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18991 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18992 fi 18993 $as_echo "$as_me: error: $2" >&2 18994 as_fn_exit $as_status 18995} # as_fn_error 18996 18997 18998# as_fn_set_status STATUS 18999# ----------------------- 19000# Set $? to STATUS, without forking. 19001as_fn_set_status () 19002{ 19003 return $1 19004} # as_fn_set_status 19005 19006# as_fn_exit STATUS 19007# ----------------- 19008# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 19009as_fn_exit () 19010{ 19011 set +e 19012 as_fn_set_status $1 19013 exit $1 19014} # as_fn_exit 19015 19016# as_fn_unset VAR 19017# --------------- 19018# Portably unset VAR. 19019as_fn_unset () 19020{ 19021 { eval $1=; unset $1;} 19022} 19023as_unset=as_fn_unset 19024# as_fn_append VAR VALUE 19025# ---------------------- 19026# Append the text in VALUE to the end of the definition contained in VAR. Take 19027# advantage of any shell optimizations that allow amortized linear growth over 19028# repeated appends, instead of the typical quadratic growth present in naive 19029# implementations. 19030if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 19031 eval 'as_fn_append () 19032 { 19033 eval $1+=\$2 19034 }' 19035else 19036 as_fn_append () 19037 { 19038 eval $1=\$$1\$2 19039 } 19040fi # as_fn_append 19041 19042# as_fn_arith ARG... 19043# ------------------ 19044# Perform arithmetic evaluation on the ARGs, and store the result in the 19045# global $as_val. Take advantage of shells that can avoid forks. The arguments 19046# must be portable across $(()) and expr. 19047if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 19048 eval 'as_fn_arith () 19049 { 19050 as_val=$(( $* )) 19051 }' 19052else 19053 as_fn_arith () 19054 { 19055 as_val=`expr "$@" || test $? -eq 1` 19056 } 19057fi # as_fn_arith 19058 19059 19060if expr a : '\(a\)' >/dev/null 2>&1 && 19061 test "X`expr 00001 : '.*\(...\)'`" = X001; then 19062 as_expr=expr 19063else 19064 as_expr=false 19065fi 19066 19067if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 19068 as_basename=basename 19069else 19070 as_basename=false 19071fi 19072 19073if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 19074 as_dirname=dirname 19075else 19076 as_dirname=false 19077fi 19078 19079as_me=`$as_basename -- "$0" || 19080$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19081 X"$0" : 'X\(//\)$' \| \ 19082 X"$0" : 'X\(/\)' \| . 2>/dev/null || 19083$as_echo X/"$0" | 19084 sed '/^.*\/\([^/][^/]*\)\/*$/{ 19085 s//\1/ 19086 q 19087 } 19088 /^X\/\(\/\/\)$/{ 19089 s//\1/ 19090 q 19091 } 19092 /^X\/\(\/\).*/{ 19093 s//\1/ 19094 q 19095 } 19096 s/.*/./; q'` 19097 19098# Avoid depending upon Character Ranges. 19099as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19100as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19101as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19102as_cr_digits='0123456789' 19103as_cr_alnum=$as_cr_Letters$as_cr_digits 19104 19105ECHO_C= ECHO_N= ECHO_T= 19106case `echo -n x` in #((((( 19107-n*) 19108 case `echo 'xy\c'` in 19109 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 19110 xy) ECHO_C='\c';; 19111 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 19112 ECHO_T=' ';; 19113 esac;; 19114*) 19115 ECHO_N='-n';; 19116esac 19117 19118rm -f conf$$ conf$$.exe conf$$.file 19119if test -d conf$$.dir; then 19120 rm -f conf$$.dir/conf$$.file 19121else 19122 rm -f conf$$.dir 19123 mkdir conf$$.dir 2>/dev/null 19124fi 19125if (echo >conf$$.file) 2>/dev/null; then 19126 if ln -s conf$$.file conf$$ 2>/dev/null; then 19127 as_ln_s='ln -s' 19128 # ... but there are two gotchas: 19129 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 19130 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 19131 # In both cases, we have to default to `cp -pR'. 19132 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 19133 as_ln_s='cp -pR' 19134 elif ln conf$$.file conf$$ 2>/dev/null; then 19135 as_ln_s=ln 19136 else 19137 as_ln_s='cp -pR' 19138 fi 19139else 19140 as_ln_s='cp -pR' 19141fi 19142rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 19143rmdir conf$$.dir 2>/dev/null 19144 19145 19146# as_fn_mkdir_p 19147# ------------- 19148# Create "$as_dir" as a directory, including parents if necessary. 19149as_fn_mkdir_p () 19150{ 19151 19152 case $as_dir in #( 19153 -*) as_dir=./$as_dir;; 19154 esac 19155 test -d "$as_dir" || eval $as_mkdir_p || { 19156 as_dirs= 19157 while :; do 19158 case $as_dir in #( 19159 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 19160 *) as_qdir=$as_dir;; 19161 esac 19162 as_dirs="'$as_qdir' $as_dirs" 19163 as_dir=`$as_dirname -- "$as_dir" || 19164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19165 X"$as_dir" : 'X\(//\)[^/]' \| \ 19166 X"$as_dir" : 'X\(//\)$' \| \ 19167 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 19168$as_echo X"$as_dir" | 19169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19170 s//\1/ 19171 q 19172 } 19173 /^X\(\/\/\)[^/].*/{ 19174 s//\1/ 19175 q 19176 } 19177 /^X\(\/\/\)$/{ 19178 s//\1/ 19179 q 19180 } 19181 /^X\(\/\).*/{ 19182 s//\1/ 19183 q 19184 } 19185 s/.*/./; q'` 19186 test -d "$as_dir" && break 19187 done 19188 test -z "$as_dirs" || eval "mkdir $as_dirs" 19189 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 19190 19191 19192} # as_fn_mkdir_p 19193if mkdir -p . 2>/dev/null; then 19194 as_mkdir_p='mkdir -p "$as_dir"' 19195else 19196 test -d ./-p && rmdir ./-p 19197 as_mkdir_p=false 19198fi 19199 19200 19201# as_fn_executable_p FILE 19202# ----------------------- 19203# Test if FILE is an executable regular file. 19204as_fn_executable_p () 19205{ 19206 test -f "$1" && test -x "$1" 19207} # as_fn_executable_p 19208as_test_x='test -x' 19209as_executable_p=as_fn_executable_p 19210 19211# Sed expression to map a string onto a valid CPP name. 19212as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19213 19214# Sed expression to map a string onto a valid variable name. 19215as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19216 19217 19218exec 6>&1 19219## ----------------------------------- ## 19220## Main body of $CONFIG_STATUS script. ## 19221## ----------------------------------- ## 19222_ASEOF 19223test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 19224 19225cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19226# Save the log message, to keep $0 and so on meaningful, and to 19227# report actual input values of CONFIG_FILES etc. instead of their 19228# values after options handling. 19229ac_log=" 19230This file was extended by xf86-input-evdev $as_me 2.10.6, which was 19231generated by GNU Autoconf 2.69. Invocation command line was 19232 19233 CONFIG_FILES = $CONFIG_FILES 19234 CONFIG_HEADERS = $CONFIG_HEADERS 19235 CONFIG_LINKS = $CONFIG_LINKS 19236 CONFIG_COMMANDS = $CONFIG_COMMANDS 19237 $ $0 $@ 19238 19239on `(hostname || uname -n) 2>/dev/null | sed 1q` 19240" 19241 19242_ACEOF 19243 19244case $ac_config_files in *" 19245"*) set x $ac_config_files; shift; ac_config_files=$*;; 19246esac 19247 19248case $ac_config_headers in *" 19249"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 19250esac 19251 19252 19253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19254# Files that config.status was made for. 19255config_files="$ac_config_files" 19256config_headers="$ac_config_headers" 19257config_commands="$ac_config_commands" 19258 19259_ACEOF 19260 19261cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19262ac_cs_usage="\ 19263\`$as_me' instantiates files and other configuration actions 19264from templates according to the current configuration. Unless the files 19265and actions are specified as TAGs, all are instantiated by default. 19266 19267Usage: $0 [OPTION]... [TAG]... 19268 19269 -h, --help print this help, then exit 19270 -V, --version print version number and configuration settings, then exit 19271 --config print configuration, then exit 19272 -q, --quiet, --silent 19273 do not print progress messages 19274 -d, --debug don't remove temporary files 19275 --recheck update $as_me by reconfiguring in the same conditions 19276 --file=FILE[:TEMPLATE] 19277 instantiate the configuration file FILE 19278 --header=FILE[:TEMPLATE] 19279 instantiate the configuration header FILE 19280 19281Configuration files: 19282$config_files 19283 19284Configuration headers: 19285$config_headers 19286 19287Configuration commands: 19288$config_commands 19289 19290Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 19291 19292_ACEOF 19293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19294ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 19295ac_cs_version="\\ 19296xf86-input-evdev config.status 2.10.6 19297configured by $0, generated by GNU Autoconf 2.69, 19298 with options \\"\$ac_cs_config\\" 19299 19300Copyright (C) 2012 Free Software Foundation, Inc. 19301This config.status script is free software; the Free Software Foundation 19302gives unlimited permission to copy, distribute and modify it." 19303 19304ac_pwd='$ac_pwd' 19305srcdir='$srcdir' 19306INSTALL='$INSTALL' 19307MKDIR_P='$MKDIR_P' 19308AWK='$AWK' 19309test -n "\$AWK" || AWK=awk 19310_ACEOF 19311 19312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19313# The default lists apply if the user does not specify any file. 19314ac_need_defaults=: 19315while test $# != 0 19316do 19317 case $1 in 19318 --*=?*) 19319 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19320 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 19321 ac_shift=: 19322 ;; 19323 --*=) 19324 ac_option=`expr "X$1" : 'X\([^=]*\)='` 19325 ac_optarg= 19326 ac_shift=: 19327 ;; 19328 *) 19329 ac_option=$1 19330 ac_optarg=$2 19331 ac_shift=shift 19332 ;; 19333 esac 19334 19335 case $ac_option in 19336 # Handling of the options. 19337 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19338 ac_cs_recheck=: ;; 19339 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 19340 $as_echo "$ac_cs_version"; exit ;; 19341 --config | --confi | --conf | --con | --co | --c ) 19342 $as_echo "$ac_cs_config"; exit ;; 19343 --debug | --debu | --deb | --de | --d | -d ) 19344 debug=: ;; 19345 --file | --fil | --fi | --f ) 19346 $ac_shift 19347 case $ac_optarg in 19348 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19349 '') as_fn_error $? "missing file argument" ;; 19350 esac 19351 as_fn_append CONFIG_FILES " '$ac_optarg'" 19352 ac_need_defaults=false;; 19353 --header | --heade | --head | --hea ) 19354 $ac_shift 19355 case $ac_optarg in 19356 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 19357 esac 19358 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 19359 ac_need_defaults=false;; 19360 --he | --h) 19361 # Conflict between --help and --header 19362 as_fn_error $? "ambiguous option: \`$1' 19363Try \`$0 --help' for more information.";; 19364 --help | --hel | -h ) 19365 $as_echo "$ac_cs_usage"; exit ;; 19366 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19367 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19368 ac_cs_silent=: ;; 19369 19370 # This is an error. 19371 -*) as_fn_error $? "unrecognized option: \`$1' 19372Try \`$0 --help' for more information." ;; 19373 19374 *) as_fn_append ac_config_targets " $1" 19375 ac_need_defaults=false ;; 19376 19377 esac 19378 shift 19379done 19380 19381ac_configure_extra_args= 19382 19383if $ac_cs_silent; then 19384 exec 6>/dev/null 19385 ac_configure_extra_args="$ac_configure_extra_args --silent" 19386fi 19387 19388_ACEOF 19389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19390if \$ac_cs_recheck; then 19391 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19392 shift 19393 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 19394 CONFIG_SHELL='$SHELL' 19395 export CONFIG_SHELL 19396 exec "\$@" 19397fi 19398 19399_ACEOF 19400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19401exec 5>>config.log 19402{ 19403 echo 19404 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19405## Running $as_me. ## 19406_ASBOX 19407 $as_echo "$ac_log" 19408} >&5 19409 19410_ACEOF 19411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19412# 19413# INIT-COMMANDS 19414# 19415AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19416 19417 19418# The HP-UX ksh and POSIX shell print the target directory to stdout 19419# if CDPATH is set. 19420(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19421 19422sed_quote_subst='$sed_quote_subst' 19423double_quote_subst='$double_quote_subst' 19424delay_variable_subst='$delay_variable_subst' 19425enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 19426macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 19427macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 19428enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 19429pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 19430enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 19431shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 19432SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 19433ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 19434PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 19435host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 19436host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 19437host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 19438build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 19439build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 19440build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 19441SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 19442Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 19443GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 19444EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 19445FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 19446LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 19447NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 19448LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 19449max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 19450ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 19451exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 19452lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 19453lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 19454lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 19455lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 19456lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 19457reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 19458reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 19459OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 19460deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 19461file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 19462file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 19463want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 19464DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 19465sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 19466AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 19467AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 19468archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 19469STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 19470RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 19471old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19472old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19473old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 19474lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 19475CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 19476CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 19477compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 19478GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 19479lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 19480lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 19481lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 19482lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 19483lt_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"`' 19484lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 19485nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 19486lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 19487lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 19488objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 19489MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 19490lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 19491lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 19492lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 19493lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 19494lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 19495need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 19496MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 19497DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 19498NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 19499LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 19500OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 19501OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 19502libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 19503shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 19504extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19505archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 19506enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 19507export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 19508whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 19509compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 19510old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 19511old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 19512archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 19513archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19514module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 19515module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 19516with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 19517allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 19518no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 19519hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 19520hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 19521hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 19522hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 19523hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 19524hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 19525hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 19526inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 19527link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 19528always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 19529export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 19530exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 19531include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 19532prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 19533postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 19534file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 19535variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 19536need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 19537need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 19538version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 19539runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 19540shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 19541shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 19542libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 19543library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 19544soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 19545install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 19546postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 19547postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 19548finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 19549finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 19550hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 19551sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 19552configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 19553configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 19554hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 19555enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 19556enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 19557enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 19558old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 19559striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 19560 19561LTCC='$LTCC' 19562LTCFLAGS='$LTCFLAGS' 19563compiler='$compiler_DEFAULT' 19564 19565# A function that is used when there is no print builtin or printf. 19566func_fallback_echo () 19567{ 19568 eval 'cat <<_LTECHO_EOF 19569\$1 19570_LTECHO_EOF' 19571} 19572 19573# Quote evaled strings. 19574for var in SHELL \ 19575ECHO \ 19576PATH_SEPARATOR \ 19577SED \ 19578GREP \ 19579EGREP \ 19580FGREP \ 19581LD \ 19582NM \ 19583LN_S \ 19584lt_SP2NL \ 19585lt_NL2SP \ 19586reload_flag \ 19587OBJDUMP \ 19588deplibs_check_method \ 19589file_magic_cmd \ 19590file_magic_glob \ 19591want_nocaseglob \ 19592DLLTOOL \ 19593sharedlib_from_linklib_cmd \ 19594AR \ 19595AR_FLAGS \ 19596archiver_list_spec \ 19597STRIP \ 19598RANLIB \ 19599CC \ 19600CFLAGS \ 19601compiler \ 19602lt_cv_sys_global_symbol_pipe \ 19603lt_cv_sys_global_symbol_to_cdecl \ 19604lt_cv_sys_global_symbol_to_import \ 19605lt_cv_sys_global_symbol_to_c_name_address \ 19606lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 19607lt_cv_nm_interface \ 19608nm_file_list_spec \ 19609lt_cv_truncate_bin \ 19610lt_prog_compiler_no_builtin_flag \ 19611lt_prog_compiler_pic \ 19612lt_prog_compiler_wl \ 19613lt_prog_compiler_static \ 19614lt_cv_prog_compiler_c_o \ 19615need_locks \ 19616MANIFEST_TOOL \ 19617DSYMUTIL \ 19618NMEDIT \ 19619LIPO \ 19620OTOOL \ 19621OTOOL64 \ 19622shrext_cmds \ 19623export_dynamic_flag_spec \ 19624whole_archive_flag_spec \ 19625compiler_needs_object \ 19626with_gnu_ld \ 19627allow_undefined_flag \ 19628no_undefined_flag \ 19629hardcode_libdir_flag_spec \ 19630hardcode_libdir_separator \ 19631exclude_expsyms \ 19632include_expsyms \ 19633file_list_spec \ 19634variables_saved_for_relink \ 19635libname_spec \ 19636library_names_spec \ 19637soname_spec \ 19638install_override_mode \ 19639finish_eval \ 19640old_striplib \ 19641striplib; do 19642 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19643 *[\\\\\\\`\\"\\\$]*) 19644 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19645 ;; 19646 *) 19647 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19648 ;; 19649 esac 19650done 19651 19652# Double-quote double-evaled strings. 19653for var in reload_cmds \ 19654old_postinstall_cmds \ 19655old_postuninstall_cmds \ 19656old_archive_cmds \ 19657extract_expsyms_cmds \ 19658old_archive_from_new_cmds \ 19659old_archive_from_expsyms_cmds \ 19660archive_cmds \ 19661archive_expsym_cmds \ 19662module_cmds \ 19663module_expsym_cmds \ 19664export_symbols_cmds \ 19665prelink_cmds \ 19666postlink_cmds \ 19667postinstall_cmds \ 19668postuninstall_cmds \ 19669finish_cmds \ 19670sys_lib_search_path_spec \ 19671configure_time_dlsearch_path \ 19672configure_time_lt_sys_library_path; do 19673 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 19674 *[\\\\\\\`\\"\\\$]*) 19675 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 19676 ;; 19677 *) 19678 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 19679 ;; 19680 esac 19681done 19682 19683ac_aux_dir='$ac_aux_dir' 19684 19685# See if we are running on zsh, and set the options that allow our 19686# commands through without removal of \ escapes INIT. 19687if test -n "\${ZSH_VERSION+set}"; then 19688 setopt NO_GLOB_SUBST 19689fi 19690 19691 19692 PACKAGE='$PACKAGE' 19693 VERSION='$VERSION' 19694 RM='$RM' 19695 ofile='$ofile' 19696 19697 19698 19699 19700_ACEOF 19701 19702cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19703 19704# Handling of arguments. 19705for ac_config_target in $ac_config_targets 19706do 19707 case $ac_config_target in 19708 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 19709 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 19710 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 19711 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 19712 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 19713 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 19714 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; 19715 "xorg-evdev.pc") CONFIG_FILES="$CONFIG_FILES xorg-evdev.pc" ;; 19716 19717 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 19718 esac 19719done 19720 19721 19722# If the user did not use the arguments to specify the items to instantiate, 19723# then the envvar interface is used. Set only those that are not. 19724# We use the long form for the default assignment because of an extremely 19725# bizarre bug on SunOS 4.1.3. 19726if $ac_need_defaults; then 19727 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 19728 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 19729 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 19730fi 19731 19732# Have a temporary directory for convenience. Make it in the build tree 19733# simply because there is no reason against having it here, and in addition, 19734# creating and moving files from /tmp can sometimes cause problems. 19735# Hook for its removal unless debugging. 19736# Note that there is a small window in which the directory will not be cleaned: 19737# after its creation but before its name has been assigned to `$tmp'. 19738$debug || 19739{ 19740 tmp= ac_tmp= 19741 trap 'exit_status=$? 19742 : "${ac_tmp:=$tmp}" 19743 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 19744' 0 19745 trap 'as_fn_exit 1' 1 2 13 15 19746} 19747# Create a (secure) tmp directory for tmp files. 19748 19749{ 19750 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 19751 test -d "$tmp" 19752} || 19753{ 19754 tmp=./conf$$-$RANDOM 19755 (umask 077 && mkdir "$tmp") 19756} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 19757ac_tmp=$tmp 19758 19759# Set up the scripts for CONFIG_FILES section. 19760# No need to generate them if there are no CONFIG_FILES. 19761# This happens for instance with `./config.status config.h'. 19762if test -n "$CONFIG_FILES"; then 19763 19764 19765ac_cr=`echo X | tr X '\015'` 19766# On cygwin, bash can eat \r inside `` if the user requested igncr. 19767# But we know of no other shell where ac_cr would be empty at this 19768# point, so we can use a bashism as a fallback. 19769if test "x$ac_cr" = x; then 19770 eval ac_cr=\$\'\\r\' 19771fi 19772ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19773if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19774 ac_cs_awk_cr='\\r' 19775else 19776 ac_cs_awk_cr=$ac_cr 19777fi 19778 19779echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 19780_ACEOF 19781 19782 19783{ 19784 echo "cat >conf$$subs.awk <<_ACEOF" && 19785 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19786 echo "_ACEOF" 19787} >conf$$subs.sh || 19788 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19789ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19790ac_delim='%!_!# ' 19791for ac_last_try in false false false false false :; do 19792 . ./conf$$subs.sh || 19793 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19794 19795 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19796 if test $ac_delim_n = $ac_delim_num; then 19797 break 19798 elif $ac_last_try; then 19799 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19800 else 19801 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19802 fi 19803done 19804rm -f conf$$subs.sh 19805 19806cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19807cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 19808_ACEOF 19809sed -n ' 19810h 19811s/^/S["/; s/!.*/"]=/ 19812p 19813g 19814s/^[^!]*!// 19815:repl 19816t repl 19817s/'"$ac_delim"'$// 19818t delim 19819:nl 19820h 19821s/\(.\{148\}\)..*/\1/ 19822t more1 19823s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19824p 19825n 19826b repl 19827:more1 19828s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19829p 19830g 19831s/.\{148\}// 19832t nl 19833:delim 19834h 19835s/\(.\{148\}\)..*/\1/ 19836t more2 19837s/["\\]/\\&/g; s/^/"/; s/$/"/ 19838p 19839b 19840:more2 19841s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19842p 19843g 19844s/.\{148\}// 19845t delim 19846' <conf$$subs.awk | sed ' 19847/^[^""]/{ 19848 N 19849 s/\n// 19850} 19851' >>$CONFIG_STATUS || ac_write_fail=1 19852rm -f conf$$subs.awk 19853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19854_ACAWK 19855cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 19856 for (key in S) S_is_set[key] = 1 19857 FS = "" 19858 19859} 19860{ 19861 line = $ 0 19862 nfields = split(line, field, "@") 19863 substed = 0 19864 len = length(field[1]) 19865 for (i = 2; i < nfields; i++) { 19866 key = field[i] 19867 keylen = length(key) 19868 if (S_is_set[key]) { 19869 value = S[key] 19870 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19871 len += length(value) + length(field[++i]) 19872 substed = 1 19873 } else 19874 len += 1 + keylen 19875 } 19876 19877 print line 19878} 19879 19880_ACAWK 19881_ACEOF 19882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19883if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19884 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19885else 19886 cat 19887fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 19888 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19889_ACEOF 19890 19891# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19892# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19893# trailing colons and then remove the whole line if VPATH becomes empty 19894# (actually we leave an empty line to preserve line numbers). 19895if test "x$srcdir" = x.; then 19896 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19897h 19898s/// 19899s/^/:/ 19900s/[ ]*$/:/ 19901s/:\$(srcdir):/:/g 19902s/:\${srcdir}:/:/g 19903s/:@srcdir@:/:/g 19904s/^:*// 19905s/:*$// 19906x 19907s/\(=[ ]*\).*/\1/ 19908G 19909s/\n// 19910s/^[^=]*=[ ]*$// 19911}' 19912fi 19913 19914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19915fi # test -n "$CONFIG_FILES" 19916 19917# Set up the scripts for CONFIG_HEADERS section. 19918# No need to generate them if there are no CONFIG_HEADERS. 19919# This happens for instance with `./config.status Makefile'. 19920if test -n "$CONFIG_HEADERS"; then 19921cat >"$ac_tmp/defines.awk" <<\_ACAWK || 19922BEGIN { 19923_ACEOF 19924 19925# Transform confdefs.h into an awk script `defines.awk', embedded as 19926# here-document in config.status, that substitutes the proper values into 19927# config.h.in to produce config.h. 19928 19929# Create a delimiter string that does not exist in confdefs.h, to ease 19930# handling of long lines. 19931ac_delim='%!_!# ' 19932for ac_last_try in false false :; do 19933 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 19934 if test -z "$ac_tt"; then 19935 break 19936 elif $ac_last_try; then 19937 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19938 else 19939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19940 fi 19941done 19942 19943# For the awk script, D is an array of macro values keyed by name, 19944# likewise P contains macro parameters if any. Preserve backslash 19945# newline sequences. 19946 19947ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19948sed -n ' 19949s/.\{148\}/&'"$ac_delim"'/g 19950t rset 19951:rset 19952s/^[ ]*#[ ]*define[ ][ ]*/ / 19953t def 19954d 19955:def 19956s/\\$// 19957t bsnl 19958s/["\\]/\\&/g 19959s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19960D["\1"]=" \3"/p 19961s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19962d 19963:bsnl 19964s/["\\]/\\&/g 19965s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19966D["\1"]=" \3\\\\\\n"\\/p 19967t cont 19968s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19969t cont 19970d 19971:cont 19972n 19973s/.\{148\}/&'"$ac_delim"'/g 19974t clear 19975:clear 19976s/\\$// 19977t bsnlc 19978s/["\\]/\\&/g; s/^/"/; s/$/"/p 19979d 19980:bsnlc 19981s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19982b cont 19983' <confdefs.h | sed ' 19984s/'"$ac_delim"'/"\\\ 19985"/g' >>$CONFIG_STATUS || ac_write_fail=1 19986 19987cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19988 for (key in D) D_is_set[key] = 1 19989 FS = "" 19990} 19991/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19992 line = \$ 0 19993 split(line, arg, " ") 19994 if (arg[1] == "#") { 19995 defundef = arg[2] 19996 mac1 = arg[3] 19997 } else { 19998 defundef = substr(arg[1], 2) 19999 mac1 = arg[2] 20000 } 20001 split(mac1, mac2, "(") #) 20002 macro = mac2[1] 20003 prefix = substr(line, 1, index(line, defundef) - 1) 20004 if (D_is_set[macro]) { 20005 # Preserve the white space surrounding the "#". 20006 print prefix "define", macro P[macro] D[macro] 20007 next 20008 } else { 20009 # Replace #undef with comments. This is necessary, for example, 20010 # in the case of _POSIX_SOURCE, which is predefined and required 20011 # on some systems where configure will not decide to define it. 20012 if (defundef == "undef") { 20013 print "/*", prefix defundef, macro, "*/" 20014 next 20015 } 20016 } 20017} 20018{ print } 20019_ACAWK 20020_ACEOF 20021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20022 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 20023fi # test -n "$CONFIG_HEADERS" 20024 20025 20026eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 20027shift 20028for ac_tag 20029do 20030 case $ac_tag in 20031 :[FHLC]) ac_mode=$ac_tag; continue;; 20032 esac 20033 case $ac_mode$ac_tag in 20034 :[FHL]*:*);; 20035 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 20036 :[FH]-) ac_tag=-:-;; 20037 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 20038 esac 20039 ac_save_IFS=$IFS 20040 IFS=: 20041 set x $ac_tag 20042 IFS=$ac_save_IFS 20043 shift 20044 ac_file=$1 20045 shift 20046 20047 case $ac_mode in 20048 :L) ac_source=$1;; 20049 :[FH]) 20050 ac_file_inputs= 20051 for ac_f 20052 do 20053 case $ac_f in 20054 -) ac_f="$ac_tmp/stdin";; 20055 *) # Look for the file first in the build tree, then in the source tree 20056 # (if the path is not absolute). The absolute path cannot be DOS-style, 20057 # because $ac_f cannot contain `:'. 20058 test -f "$ac_f" || 20059 case $ac_f in 20060 [\\/$]*) false;; 20061 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 20062 esac || 20063 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 20064 esac 20065 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 20066 as_fn_append ac_file_inputs " '$ac_f'" 20067 done 20068 20069 # Let's still pretend it is `configure' which instantiates (i.e., don't 20070 # use $as_me), people would be surprised to read: 20071 # /* config.h. Generated by config.status. */ 20072 configure_input='Generated from '` 20073 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 20074 `' by configure.' 20075 if test x"$ac_file" != x-; then 20076 configure_input="$ac_file. $configure_input" 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 20078$as_echo "$as_me: creating $ac_file" >&6;} 20079 fi 20080 # Neutralize special characters interpreted by sed in replacement strings. 20081 case $configure_input in #( 20082 *\&* | *\|* | *\\* ) 20083 ac_sed_conf_input=`$as_echo "$configure_input" | 20084 sed 's/[\\\\&|]/\\\\&/g'`;; #( 20085 *) ac_sed_conf_input=$configure_input;; 20086 esac 20087 20088 case $ac_tag in 20089 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 20090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 20091 esac 20092 ;; 20093 esac 20094 20095 ac_dir=`$as_dirname -- "$ac_file" || 20096$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20097 X"$ac_file" : 'X\(//\)[^/]' \| \ 20098 X"$ac_file" : 'X\(//\)$' \| \ 20099 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 20100$as_echo X"$ac_file" | 20101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20102 s//\1/ 20103 q 20104 } 20105 /^X\(\/\/\)[^/].*/{ 20106 s//\1/ 20107 q 20108 } 20109 /^X\(\/\/\)$/{ 20110 s//\1/ 20111 q 20112 } 20113 /^X\(\/\).*/{ 20114 s//\1/ 20115 q 20116 } 20117 s/.*/./; q'` 20118 as_dir="$ac_dir"; as_fn_mkdir_p 20119 ac_builddir=. 20120 20121case "$ac_dir" in 20122.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 20123*) 20124 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 20125 # A ".." for each directory in $ac_dir_suffix. 20126 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 20127 case $ac_top_builddir_sub in 20128 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 20129 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 20130 esac ;; 20131esac 20132ac_abs_top_builddir=$ac_pwd 20133ac_abs_builddir=$ac_pwd$ac_dir_suffix 20134# for backward compatibility: 20135ac_top_builddir=$ac_top_build_prefix 20136 20137case $srcdir in 20138 .) # We are building in place. 20139 ac_srcdir=. 20140 ac_top_srcdir=$ac_top_builddir_sub 20141 ac_abs_top_srcdir=$ac_pwd ;; 20142 [\\/]* | ?:[\\/]* ) # Absolute name. 20143 ac_srcdir=$srcdir$ac_dir_suffix; 20144 ac_top_srcdir=$srcdir 20145 ac_abs_top_srcdir=$srcdir ;; 20146 *) # Relative name. 20147 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 20148 ac_top_srcdir=$ac_top_build_prefix$srcdir 20149 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 20150esac 20151ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 20152 20153 20154 case $ac_mode in 20155 :F) 20156 # 20157 # CONFIG_FILE 20158 # 20159 20160 case $INSTALL in 20161 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20162 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 20163 esac 20164 ac_MKDIR_P=$MKDIR_P 20165 case $MKDIR_P in 20166 [\\/$]* | ?:[\\/]* ) ;; 20167 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 20168 esac 20169_ACEOF 20170 20171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20172# If the template does not know about datarootdir, expand it. 20173# FIXME: This hack should be removed a few years after 2.60. 20174ac_datarootdir_hack=; ac_datarootdir_seen= 20175ac_sed_dataroot=' 20176/datarootdir/ { 20177 p 20178 q 20179} 20180/@datadir@/p 20181/@docdir@/p 20182/@infodir@/p 20183/@localedir@/p 20184/@mandir@/p' 20185case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 20186*datarootdir*) ac_datarootdir_seen=yes;; 20187*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 20188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 20189$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 20190_ACEOF 20191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20192 ac_datarootdir_hack=' 20193 s&@datadir@&$datadir&g 20194 s&@docdir@&$docdir&g 20195 s&@infodir@&$infodir&g 20196 s&@localedir@&$localedir&g 20197 s&@mandir@&$mandir&g 20198 s&\\\${datarootdir}&$datarootdir&g' ;; 20199esac 20200_ACEOF 20201 20202# Neutralize VPATH when `$srcdir' = `.'. 20203# Shell code in configure.ac might set extrasub. 20204# FIXME: do we really want to maintain this feature? 20205cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20206ac_sed_extra="$ac_vpsub 20207$extrasub 20208_ACEOF 20209cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20210:t 20211/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20212s|@configure_input@|$ac_sed_conf_input|;t t 20213s&@top_builddir@&$ac_top_builddir_sub&;t t 20214s&@top_build_prefix@&$ac_top_build_prefix&;t t 20215s&@srcdir@&$ac_srcdir&;t t 20216s&@abs_srcdir@&$ac_abs_srcdir&;t t 20217s&@top_srcdir@&$ac_top_srcdir&;t t 20218s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 20219s&@builddir@&$ac_builddir&;t t 20220s&@abs_builddir@&$ac_abs_builddir&;t t 20221s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 20222s&@INSTALL@&$ac_INSTALL&;t t 20223s&@MKDIR_P@&$ac_MKDIR_P&;t t 20224$ac_datarootdir_hack 20225" 20226eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 20227 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20228 20229test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 20230 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 20231 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 20232 "$ac_tmp/out"`; test -z "$ac_out"; } && 20233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20234which seems to be undefined. Please make sure it is defined" >&5 20235$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 20236which seems to be undefined. Please make sure it is defined" >&2;} 20237 20238 rm -f "$ac_tmp/stdin" 20239 case $ac_file in 20240 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 20241 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 20242 esac \ 20243 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20244 ;; 20245 :H) 20246 # 20247 # CONFIG_HEADER 20248 # 20249 if test x"$ac_file" != x-; then 20250 { 20251 $as_echo "/* $configure_input */" \ 20252 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 20253 } >"$ac_tmp/config.h" \ 20254 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20255 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 20256 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 20257$as_echo "$as_me: $ac_file is unchanged" >&6;} 20258 else 20259 rm -f "$ac_file" 20260 mv "$ac_tmp/config.h" "$ac_file" \ 20261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 20262 fi 20263 else 20264 $as_echo "/* $configure_input */" \ 20265 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 20266 || as_fn_error $? "could not create -" "$LINENO" 5 20267 fi 20268# Compute "$ac_file"'s index in $config_headers. 20269_am_arg="$ac_file" 20270_am_stamp_count=1 20271for _am_header in $config_headers :; do 20272 case $_am_header in 20273 $_am_arg | $_am_arg:* ) 20274 break ;; 20275 * ) 20276 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 20277 esac 20278done 20279echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 20280$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20281 X"$_am_arg" : 'X\(//\)[^/]' \| \ 20282 X"$_am_arg" : 'X\(//\)$' \| \ 20283 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 20284$as_echo X"$_am_arg" | 20285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20286 s//\1/ 20287 q 20288 } 20289 /^X\(\/\/\)[^/].*/{ 20290 s//\1/ 20291 q 20292 } 20293 /^X\(\/\/\)$/{ 20294 s//\1/ 20295 q 20296 } 20297 /^X\(\/\).*/{ 20298 s//\1/ 20299 q 20300 } 20301 s/.*/./; q'`/stamp-h$_am_stamp_count 20302 ;; 20303 20304 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 20305$as_echo "$as_me: executing $ac_file commands" >&6;} 20306 ;; 20307 esac 20308 20309 20310 case $ac_file$ac_mode in 20311 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 20312 # Older Autoconf quotes --file arguments for eval, but not when files 20313 # are listed without --file. Let's play safe and only enable the eval 20314 # if we detect the quoting. 20315 case $CONFIG_FILES in 20316 *\'*) eval set x "$CONFIG_FILES" ;; 20317 *) set x $CONFIG_FILES ;; 20318 esac 20319 shift 20320 for mf 20321 do 20322 # Strip MF so we end up with the name of the file. 20323 mf=`echo "$mf" | sed -e 's/:.*$//'` 20324 # Check whether this is an Automake generated Makefile or not. 20325 # We used to match only the files named 'Makefile.in', but 20326 # some people rename them; so instead we look at the file content. 20327 # Grep'ing the first line is not enough: some people post-process 20328 # each Makefile.in and add a new line on top of each file to say so. 20329 # Grep'ing the whole file is not good either: AIX grep has a line 20330 # limit of 2048, but all sed's we know have understand at least 4000. 20331 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 20332 dirpart=`$as_dirname -- "$mf" || 20333$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20334 X"$mf" : 'X\(//\)[^/]' \| \ 20335 X"$mf" : 'X\(//\)$' \| \ 20336 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 20337$as_echo X"$mf" | 20338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20339 s//\1/ 20340 q 20341 } 20342 /^X\(\/\/\)[^/].*/{ 20343 s//\1/ 20344 q 20345 } 20346 /^X\(\/\/\)$/{ 20347 s//\1/ 20348 q 20349 } 20350 /^X\(\/\).*/{ 20351 s//\1/ 20352 q 20353 } 20354 s/.*/./; q'` 20355 else 20356 continue 20357 fi 20358 # Extract the definition of DEPDIR, am__include, and am__quote 20359 # from the Makefile without running 'make'. 20360 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 20361 test -z "$DEPDIR" && continue 20362 am__include=`sed -n 's/^am__include = //p' < "$mf"` 20363 test -z "$am__include" && continue 20364 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 20365 # Find all dependency output files, they are included files with 20366 # $(DEPDIR) in their names. We invoke sed twice because it is the 20367 # simplest approach to changing $(DEPDIR) to its actual value in the 20368 # expansion. 20369 for file in `sed -n " 20370 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 20371 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 20372 # Make sure the directory exists. 20373 test -f "$dirpart/$file" && continue 20374 fdir=`$as_dirname -- "$file" || 20375$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20376 X"$file" : 'X\(//\)[^/]' \| \ 20377 X"$file" : 'X\(//\)$' \| \ 20378 X"$file" : 'X\(/\)' \| . 2>/dev/null || 20379$as_echo X"$file" | 20380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20381 s//\1/ 20382 q 20383 } 20384 /^X\(\/\/\)[^/].*/{ 20385 s//\1/ 20386 q 20387 } 20388 /^X\(\/\/\)$/{ 20389 s//\1/ 20390 q 20391 } 20392 /^X\(\/\).*/{ 20393 s//\1/ 20394 q 20395 } 20396 s/.*/./; q'` 20397 as_dir=$dirpart/$fdir; as_fn_mkdir_p 20398 # echo "creating $dirpart/$file" 20399 echo '# dummy' > "$dirpart/$file" 20400 done 20401 done 20402} 20403 ;; 20404 "libtool":C) 20405 20406 # See if we are running on zsh, and set the options that allow our 20407 # commands through without removal of \ escapes. 20408 if test -n "${ZSH_VERSION+set}"; then 20409 setopt NO_GLOB_SUBST 20410 fi 20411 20412 cfgfile=${ofile}T 20413 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 20414 $RM "$cfgfile" 20415 20416 cat <<_LT_EOF >> "$cfgfile" 20417#! $SHELL 20418# Generated automatically by $as_me ($PACKAGE) $VERSION 20419# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 20420# NOTE: Changes made to this file will be lost: look at ltmain.sh. 20421 20422# Provide generalized library-building support services. 20423# Written by Gordon Matzigkeit, 1996 20424 20425# Copyright (C) 2014 Free Software Foundation, Inc. 20426# This is free software; see the source for copying conditions. There is NO 20427# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 20428 20429# GNU Libtool is free software; you can redistribute it and/or modify 20430# it under the terms of the GNU General Public License as published by 20431# the Free Software Foundation; either version 2 of of the License, or 20432# (at your option) any later version. 20433# 20434# As a special exception to the GNU General Public License, if you 20435# distribute this file as part of a program or library that is built 20436# using GNU Libtool, you may include this file under the same 20437# distribution terms that you use for the rest of that program. 20438# 20439# GNU Libtool is distributed in the hope that it will be useful, but 20440# WITHOUT ANY WARRANTY; without even the implied warranty of 20441# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20442# GNU General Public License for more details. 20443# 20444# You should have received a copy of the GNU General Public License 20445# along with this program. If not, see <http://www.gnu.org/licenses/>. 20446 20447 20448# The names of the tagged configurations supported by this script. 20449available_tags='' 20450 20451# Configured defaults for sys_lib_dlsearch_path munging. 20452: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 20453 20454# ### BEGIN LIBTOOL CONFIG 20455 20456# Whether or not to build static libraries. 20457build_old_libs=$enable_static 20458 20459# Which release of libtool.m4 was used? 20460macro_version=$macro_version 20461macro_revision=$macro_revision 20462 20463# Whether or not to build shared libraries. 20464build_libtool_libs=$enable_shared 20465 20466# What type of objects to build. 20467pic_mode=$pic_mode 20468 20469# Whether or not to optimize for fast installation. 20470fast_install=$enable_fast_install 20471 20472# Shared archive member basename,for filename based shared library versioning on AIX. 20473shared_archive_member_spec=$shared_archive_member_spec 20474 20475# Shell to use when invoking shell scripts. 20476SHELL=$lt_SHELL 20477 20478# An echo program that protects backslashes. 20479ECHO=$lt_ECHO 20480 20481# The PATH separator for the build system. 20482PATH_SEPARATOR=$lt_PATH_SEPARATOR 20483 20484# The host system. 20485host_alias=$host_alias 20486host=$host 20487host_os=$host_os 20488 20489# The build system. 20490build_alias=$build_alias 20491build=$build 20492build_os=$build_os 20493 20494# A sed program that does not truncate output. 20495SED=$lt_SED 20496 20497# Sed that helps us avoid accidentally triggering echo(1) options like -n. 20498Xsed="\$SED -e 1s/^X//" 20499 20500# A grep program that handles long lines. 20501GREP=$lt_GREP 20502 20503# An ERE matcher. 20504EGREP=$lt_EGREP 20505 20506# A literal string matcher. 20507FGREP=$lt_FGREP 20508 20509# A BSD- or MS-compatible name lister. 20510NM=$lt_NM 20511 20512# Whether we need soft or hard links. 20513LN_S=$lt_LN_S 20514 20515# What is the maximum length of a command? 20516max_cmd_len=$max_cmd_len 20517 20518# Object file suffix (normally "o"). 20519objext=$ac_objext 20520 20521# Executable file suffix (normally ""). 20522exeext=$exeext 20523 20524# whether the shell understands "unset". 20525lt_unset=$lt_unset 20526 20527# turn spaces into newlines. 20528SP2NL=$lt_lt_SP2NL 20529 20530# turn newlines into spaces. 20531NL2SP=$lt_lt_NL2SP 20532 20533# convert \$build file names to \$host format. 20534to_host_file_cmd=$lt_cv_to_host_file_cmd 20535 20536# convert \$build files to toolchain format. 20537to_tool_file_cmd=$lt_cv_to_tool_file_cmd 20538 20539# An object symbol dumper. 20540OBJDUMP=$lt_OBJDUMP 20541 20542# Method to check whether dependent libraries are shared objects. 20543deplibs_check_method=$lt_deplibs_check_method 20544 20545# Command to use when deplibs_check_method = "file_magic". 20546file_magic_cmd=$lt_file_magic_cmd 20547 20548# How to find potential files when deplibs_check_method = "file_magic". 20549file_magic_glob=$lt_file_magic_glob 20550 20551# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 20552want_nocaseglob=$lt_want_nocaseglob 20553 20554# DLL creation program. 20555DLLTOOL=$lt_DLLTOOL 20556 20557# Command to associate shared and link libraries. 20558sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 20559 20560# The archiver. 20561AR=$lt_AR 20562 20563# Flags to create an archive. 20564AR_FLAGS=$lt_AR_FLAGS 20565 20566# How to feed a file listing to the archiver. 20567archiver_list_spec=$lt_archiver_list_spec 20568 20569# A symbol stripping program. 20570STRIP=$lt_STRIP 20571 20572# Commands used to install an old-style archive. 20573RANLIB=$lt_RANLIB 20574old_postinstall_cmds=$lt_old_postinstall_cmds 20575old_postuninstall_cmds=$lt_old_postuninstall_cmds 20576 20577# Whether to use a lock for old archive extraction. 20578lock_old_archive_extraction=$lock_old_archive_extraction 20579 20580# A C compiler. 20581LTCC=$lt_CC 20582 20583# LTCC compiler flags. 20584LTCFLAGS=$lt_CFLAGS 20585 20586# Take the output of nm and produce a listing of raw symbols and C names. 20587global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 20588 20589# Transform the output of nm in a proper C declaration. 20590global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 20591 20592# Transform the output of nm into a list of symbols to manually relocate. 20593global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 20594 20595# Transform the output of nm in a C name address pair. 20596global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 20597 20598# Transform the output of nm in a C name address pair when lib prefix is needed. 20599global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 20600 20601# The name lister interface. 20602nm_interface=$lt_lt_cv_nm_interface 20603 20604# Specify filename containing input files for \$NM. 20605nm_file_list_spec=$lt_nm_file_list_spec 20606 20607# The root where to search for dependent libraries,and where our libraries should be installed. 20608lt_sysroot=$lt_sysroot 20609 20610# Command to truncate a binary pipe. 20611lt_truncate_bin=$lt_lt_cv_truncate_bin 20612 20613# The name of the directory that contains temporary libtool files. 20614objdir=$objdir 20615 20616# Used to examine libraries when file_magic_cmd begins with "file". 20617MAGIC_CMD=$MAGIC_CMD 20618 20619# Must we lock files when doing compilation? 20620need_locks=$lt_need_locks 20621 20622# Manifest tool. 20623MANIFEST_TOOL=$lt_MANIFEST_TOOL 20624 20625# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 20626DSYMUTIL=$lt_DSYMUTIL 20627 20628# Tool to change global to local symbols on Mac OS X. 20629NMEDIT=$lt_NMEDIT 20630 20631# Tool to manipulate fat objects and archives on Mac OS X. 20632LIPO=$lt_LIPO 20633 20634# ldd/readelf like tool for Mach-O binaries on Mac OS X. 20635OTOOL=$lt_OTOOL 20636 20637# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 20638OTOOL64=$lt_OTOOL64 20639 20640# Old archive suffix (normally "a"). 20641libext=$libext 20642 20643# Shared library suffix (normally ".so"). 20644shrext_cmds=$lt_shrext_cmds 20645 20646# The commands to extract the exported symbol list from a shared archive. 20647extract_expsyms_cmds=$lt_extract_expsyms_cmds 20648 20649# Variables whose values should be saved in libtool wrapper scripts and 20650# restored at link time. 20651variables_saved_for_relink=$lt_variables_saved_for_relink 20652 20653# Do we need the "lib" prefix for modules? 20654need_lib_prefix=$need_lib_prefix 20655 20656# Do we need a version for libraries? 20657need_version=$need_version 20658 20659# Library versioning type. 20660version_type=$version_type 20661 20662# Shared library runtime path variable. 20663runpath_var=$runpath_var 20664 20665# Shared library path variable. 20666shlibpath_var=$shlibpath_var 20667 20668# Is shlibpath searched before the hard-coded library search path? 20669shlibpath_overrides_runpath=$shlibpath_overrides_runpath 20670 20671# Format of library name prefix. 20672libname_spec=$lt_libname_spec 20673 20674# List of archive names. First name is the real one, the rest are links. 20675# The last name is the one that the linker finds with -lNAME 20676library_names_spec=$lt_library_names_spec 20677 20678# The coded name of the library, if different from the real name. 20679soname_spec=$lt_soname_spec 20680 20681# Permission mode override for installation of shared libraries. 20682install_override_mode=$lt_install_override_mode 20683 20684# Command to use after installation of a shared archive. 20685postinstall_cmds=$lt_postinstall_cmds 20686 20687# Command to use after uninstallation of a shared archive. 20688postuninstall_cmds=$lt_postuninstall_cmds 20689 20690# Commands used to finish a libtool library installation in a directory. 20691finish_cmds=$lt_finish_cmds 20692 20693# As "finish_cmds", except a single script fragment to be evaled but 20694# not shown. 20695finish_eval=$lt_finish_eval 20696 20697# Whether we should hardcode library paths into libraries. 20698hardcode_into_libs=$hardcode_into_libs 20699 20700# Compile-time system search path for libraries. 20701sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 20702 20703# Detected run-time system search path for libraries. 20704sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 20705 20706# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 20707configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 20708 20709# Whether dlopen is supported. 20710dlopen_support=$enable_dlopen 20711 20712# Whether dlopen of programs is supported. 20713dlopen_self=$enable_dlopen_self 20714 20715# Whether dlopen of statically linked programs is supported. 20716dlopen_self_static=$enable_dlopen_self_static 20717 20718# Commands to strip libraries. 20719old_striplib=$lt_old_striplib 20720striplib=$lt_striplib 20721 20722 20723# The linker used to build libraries. 20724LD=$lt_LD 20725 20726# How to create reloadable object files. 20727reload_flag=$lt_reload_flag 20728reload_cmds=$lt_reload_cmds 20729 20730# Commands used to build an old-style archive. 20731old_archive_cmds=$lt_old_archive_cmds 20732 20733# A language specific compiler. 20734CC=$lt_compiler 20735 20736# Is the compiler the GNU compiler? 20737with_gcc=$GCC 20738 20739# Compiler flag to turn off builtin functions. 20740no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 20741 20742# Additional compiler flags for building library objects. 20743pic_flag=$lt_lt_prog_compiler_pic 20744 20745# How to pass a linker flag through the compiler. 20746wl=$lt_lt_prog_compiler_wl 20747 20748# Compiler flag to prevent dynamic linking. 20749link_static_flag=$lt_lt_prog_compiler_static 20750 20751# Does compiler simultaneously support -c and -o options? 20752compiler_c_o=$lt_lt_cv_prog_compiler_c_o 20753 20754# Whether or not to add -lc for building shared libraries. 20755build_libtool_need_lc=$archive_cmds_need_lc 20756 20757# Whether or not to disallow shared libs when runtime libs are static. 20758allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 20759 20760# Compiler flag to allow reflexive dlopens. 20761export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 20762 20763# Compiler flag to generate shared objects directly from archives. 20764whole_archive_flag_spec=$lt_whole_archive_flag_spec 20765 20766# Whether the compiler copes with passing no objects directly. 20767compiler_needs_object=$lt_compiler_needs_object 20768 20769# Create an old-style archive from a shared archive. 20770old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 20771 20772# Create a temporary old-style archive to link instead of a shared archive. 20773old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 20774 20775# Commands used to build a shared archive. 20776archive_cmds=$lt_archive_cmds 20777archive_expsym_cmds=$lt_archive_expsym_cmds 20778 20779# Commands used to build a loadable module if different from building 20780# a shared archive. 20781module_cmds=$lt_module_cmds 20782module_expsym_cmds=$lt_module_expsym_cmds 20783 20784# Whether we are building with GNU ld or not. 20785with_gnu_ld=$lt_with_gnu_ld 20786 20787# Flag that allows shared libraries with undefined symbols to be built. 20788allow_undefined_flag=$lt_allow_undefined_flag 20789 20790# Flag that enforces no undefined symbols. 20791no_undefined_flag=$lt_no_undefined_flag 20792 20793# Flag to hardcode \$libdir into a binary during linking. 20794# This must work even if \$libdir does not exist 20795hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 20796 20797# Whether we need a single "-rpath" flag with a separated argument. 20798hardcode_libdir_separator=$lt_hardcode_libdir_separator 20799 20800# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20801# DIR into the resulting binary. 20802hardcode_direct=$hardcode_direct 20803 20804# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 20805# DIR into the resulting binary and the resulting library dependency is 20806# "absolute",i.e impossible to change by setting \$shlibpath_var if the 20807# library is relocated. 20808hardcode_direct_absolute=$hardcode_direct_absolute 20809 20810# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 20811# into the resulting binary. 20812hardcode_minus_L=$hardcode_minus_L 20813 20814# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20815# into the resulting binary. 20816hardcode_shlibpath_var=$hardcode_shlibpath_var 20817 20818# Set to "yes" if building a shared library automatically hardcodes DIR 20819# into the library and all subsequent libraries and executables linked 20820# against it. 20821hardcode_automatic=$hardcode_automatic 20822 20823# Set to yes if linker adds runtime paths of dependent libraries 20824# to runtime path list. 20825inherit_rpath=$inherit_rpath 20826 20827# Whether libtool must link a program against all its dependency libraries. 20828link_all_deplibs=$link_all_deplibs 20829 20830# Set to "yes" if exported symbols are required. 20831always_export_symbols=$always_export_symbols 20832 20833# The commands to list exported symbols. 20834export_symbols_cmds=$lt_export_symbols_cmds 20835 20836# Symbols that should not be listed in the preloaded symbols. 20837exclude_expsyms=$lt_exclude_expsyms 20838 20839# Symbols that must always be exported. 20840include_expsyms=$lt_include_expsyms 20841 20842# Commands necessary for linking programs (against libraries) with templates. 20843prelink_cmds=$lt_prelink_cmds 20844 20845# Commands necessary for finishing linking programs. 20846postlink_cmds=$lt_postlink_cmds 20847 20848# Specify filename containing input files. 20849file_list_spec=$lt_file_list_spec 20850 20851# How to hardcode a shared library path into an executable. 20852hardcode_action=$hardcode_action 20853 20854# ### END LIBTOOL CONFIG 20855 20856_LT_EOF 20857 20858 cat <<'_LT_EOF' >> "$cfgfile" 20859 20860# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 20861 20862# func_munge_path_list VARIABLE PATH 20863# ----------------------------------- 20864# VARIABLE is name of variable containing _space_ separated list of 20865# directories to be munged by the contents of PATH, which is string 20866# having a format: 20867# "DIR[:DIR]:" 20868# string "DIR[ DIR]" will be prepended to VARIABLE 20869# ":DIR[:DIR]" 20870# string "DIR[ DIR]" will be appended to VARIABLE 20871# "DIRP[:DIRP]::[DIRA:]DIRA" 20872# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 20873# "DIRA[ DIRA]" will be appended to VARIABLE 20874# "DIR[:DIR]" 20875# VARIABLE will be replaced by "DIR[ DIR]" 20876func_munge_path_list () 20877{ 20878 case x$2 in 20879 x) 20880 ;; 20881 *:) 20882 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 20883 ;; 20884 x:*) 20885 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 20886 ;; 20887 *::*) 20888 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 20889 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 20890 ;; 20891 *) 20892 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 20893 ;; 20894 esac 20895} 20896 20897 20898# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 20899func_cc_basename () 20900{ 20901 for cc_temp in $*""; do 20902 case $cc_temp in 20903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 20904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 20905 \-*) ;; 20906 *) break;; 20907 esac 20908 done 20909 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 20910} 20911 20912 20913# ### END FUNCTIONS SHARED WITH CONFIGURE 20914 20915_LT_EOF 20916 20917 case $host_os in 20918 aix3*) 20919 cat <<\_LT_EOF >> "$cfgfile" 20920# AIX sometimes has problems with the GCC collect2 program. For some 20921# reason, if we set the COLLECT_NAMES environment variable, the problems 20922# vanish in a puff of smoke. 20923if test set != "${COLLECT_NAMES+set}"; then 20924 COLLECT_NAMES= 20925 export COLLECT_NAMES 20926fi 20927_LT_EOF 20928 ;; 20929 esac 20930 20931 20932ltmain=$ac_aux_dir/ltmain.sh 20933 20934 20935 # We use sed instead of cat because bash on DJGPP gets confused if 20936 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20937 # text mode, it properly converts lines to CR/LF. This bash problem 20938 # is reportedly fixed, but why not run on old versions too? 20939 sed '$q' "$ltmain" >> "$cfgfile" \ 20940 || (rm -f "$cfgfile"; exit 1) 20941 20942 mv -f "$cfgfile" "$ofile" || 20943 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20944 chmod +x "$ofile" 20945 20946 ;; 20947 20948 esac 20949done # for ac_tag 20950 20951 20952as_fn_exit 0 20953_ACEOF 20954ac_clean_files=$ac_clean_files_save 20955 20956test $ac_write_fail = 0 || 20957 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20958 20959 20960# configure is writing to config.log, and then calls config.status. 20961# config.status does its own redirection, appending to config.log. 20962# Unfortunately, on DOS this fails, as config.log is still kept open 20963# by configure, so config.status won't be able to write to it; its 20964# output is simply discarded. So we exec the FD to /dev/null, 20965# effectively closing config.log, so it can be properly (re)opened and 20966# appended to by config.status. When coming back to configure, we 20967# need to make the FD available again. 20968if test "$no_create" != yes; then 20969 ac_cs_success=: 20970 ac_config_status_args= 20971 test "$silent" = yes && 20972 ac_config_status_args="$ac_config_status_args --quiet" 20973 exec 5>/dev/null 20974 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20975 exec 5>>config.log 20976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20977 # would make configure fail if this is the last instruction. 20978 $ac_cs_success || as_fn_exit 1 20979fi 20980if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20982$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20983fi 20984 20985